commit
stringlengths
40
40
old_file
stringlengths
4
236
new_file
stringlengths
4
236
old_contents
stringlengths
1
3.26k
new_contents
stringlengths
16
4.43k
subject
stringlengths
16
624
message
stringlengths
17
3.29k
lang
stringclasses
5 values
license
stringclasses
13 values
repos
stringlengths
5
91.5k
659d8449454f8cf5aa83da3fd57c753b519edcb3
ktor-client/ktor-client-curl/posix/test/io/ktor/client/engine/curl/test/CurlNativeTests.kt
ktor-client/ktor-client-curl/posix/test/io/ktor/client/engine/curl/test/CurlNativeTests.kt
/* * Copyright 2014-2019 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license. */ package io.ktor.client.engine.curl.test import io.ktor.client.* import io.ktor.client.engine.curl.* import io.ktor.client.request.* import kotlinx.coroutines.* import kotlin.native.concurrent...
/* * Copyright 2014-2019 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license. */ package io.ktor.client.engine.curl.test import io.ktor.client.* import io.ktor.client.engine.curl.* import io.ktor.client.request.* import kotlinx.coroutines.* import kotlin.native.concurrent...
Add "testDownload" curl test to replace ignored "testDownloadInBackground".
Add "testDownload" curl test to replace ignored "testDownloadInBackground".
Kotlin
apache-2.0
ktorio/ktor,ktorio/ktor,ktorio/ktor,ktorio/ktor
5b8b396d262c1a3629fbb7b5a046090f03d00d9a
app/src/main/java/org/stepik/android/cache/course_list/CourseListQueryCacheDataSourceImpl.kt
app/src/main/java/org/stepik/android/cache/course_list/CourseListQueryCacheDataSourceImpl.kt
package org.stepik.android.cache.course_list import io.reactivex.Completable import io.reactivex.Single import org.stepic.droid.storage.dao.IDao import org.stepik.android.cache.course_list.structure.DbStructureCourseListQuery import org.stepik.android.data.course_list.model.CourseListQueryData import org.stepik.androi...
package org.stepik.android.cache.course_list import io.reactivex.Completable import io.reactivex.Single import org.stepic.droid.storage.dao.IDao import org.stepik.android.cache.course_list.structure.DbStructureCourseListQuery import org.stepik.android.data.course_list.model.CourseListQueryData import org.stepik.androi...
Return empty LongArray when DB is empty
Return empty LongArray when DB is empty
Kotlin
apache-2.0
StepicOrg/stepic-android,StepicOrg/stepik-android,StepicOrg/stepic-android,StepicOrg/stepik-android,StepicOrg/stepic-android,StepicOrg/stepik-android
55ec5f1c5311f7fbc959ae56a4b1e546915c87fa
examples/spring-boot-kotlin-redis/src/test/kotlin/com/example/redis/AbstractIntegrationTest.kt
examples/spring-boot-kotlin-redis/src/test/kotlin/com/example/redis/AbstractIntegrationTest.kt
package com.example.redis import org.junit.runner.RunWith import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc import org.springframework.boot.test.context.SpringBootTest import org.springframework.boot.test.util.TestPropertyValues import org.springframework.context.ApplicationContextIni...
package com.example.redis import org.junit.runner.RunWith import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc import org.springframework.boot.test.context.SpringBootTest import org.springframework.boot.test.util.TestPropertyValues import org.springframework.context.ApplicationContextIni...
Use host instead of containerIpAddress for Kotlin sample
Use host instead of containerIpAddress for Kotlin sample
Kotlin
mit
testcontainers/testcontainers-java,testcontainers/testcontainers-java,testcontainers/testcontainers-java
8fccfa505f23f64fe722b7c4fcf3453b406387bf
sample/src/main/kotlin/com/louiscad/splittiessample/extensions/View.kt
sample/src/main/kotlin/com/louiscad/splittiessample/extensions/View.kt
package com.louiscad.splittiessample.extensions import android.view.View import androidx.core.view.isInvisible import androidx.core.view.isVisible import kotlin.contracts.ExperimentalContracts import kotlin.contracts.InvocationKind import kotlin.contracts.contract @ExperimentalContracts inline fun <R> View.visibleInS...
package com.louiscad.splittiessample.extensions import android.view.View import androidx.core.view.isInvisible import androidx.core.view.isVisible import kotlin.contracts.ExperimentalContracts import kotlin.contracts.InvocationKind import kotlin.contracts.contract @UseExperimental(ExperimentalContracts::class) inline...
Replace experimental annotation with UseExperimental
Replace experimental annotation with UseExperimental
Kotlin
apache-2.0
LouisCAD/Splitties,LouisCAD/Splitties,LouisCAD/Splitties
91a8f332474876267b9f741314782ae8dd9a169b
ktor-core/src/org/jetbrains/ktor/application/ApplicationRequest.kt
ktor-core/src/org/jetbrains/ktor/application/ApplicationRequest.kt
package org.jetbrains.ktor.application import org.jetbrains.ktor.http.* import java.io.* /** Established connection with client, encapsulates request and response facilities */ public interface ApplicationRequest { public val application: Application public val requestLine: HttpRequestLine public val pa...
package org.jetbrains.ktor.application import org.jetbrains.ktor.http.* import java.io.* /** Established connection with client, encapsulates request and response facilities */ public interface ApplicationRequest { public val application: Application public val requestLine: HttpRequestLine public val pa...
Fix typo in (unused) extension function
Fix typo in (unused) extension function
Kotlin
apache-2.0
ktorio/ktor,ktorio/ktor,ktorio/ktor,ktorio/ktor
d2dd941e9f7121b099877a9e31ab03aef8a54ac9
platform/platform-api/src/com/intellij/execution/configurations/LowPriorityProcessRunner.kt
platform/platform-api/src/com/intellij/execution/configurations/LowPriorityProcessRunner.kt
// 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.execution.configurations import com.intellij.openapi.util.SystemInfo import com.intellij.openapi.util.registry.Registry import java.io.File /** * @author y...
// 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.execution.configurations import com.intellij.openapi.util.SystemInfo import com.intellij.openapi.util.registry.Registry import java.io.File /** * @author y...
Support low priority processes on Windows
Support low priority processes on Windows
Kotlin
apache-2.0
allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/int...
9dcf0f79122fb80c15292e9c327c053c6483b374
common/src/main/kotlin/common/model.kt
common/src/main/kotlin/common/model.kt
package common import common.util.* /** * The core model classes. * @author Eric Pabst (epabst@gmail.com) * Date: 6/9/16 * Time: 6:27 AM */ data class ToDo(val name: String, val dueDateString: String? = null, val note: String? = null, val createDateString: String, val id: ID<ToDo>? = null) : ProtectedWithID<ToDo...
package common import common.util.* /** * The core model classes. * @author Eric Pabst (epabst@gmail.com) * Date: 6/9/16 * Time: 6:27 AM */ data class ToDo(val name: String, val dueDateString: String? = null, val note: String? = null, val createDateString: String, val id: ID<ToDo>? = null) : ProtectedWithID<ToDo...
Fix compilation warning with ToDo
Fix compilation warning with ToDo
Kotlin
apache-2.0
epabst/kotlin-showcase,epabst/kotlin-showcase,epabst/kotlin-showcase,epabst/kotlin-showcase
1f4cf1bf6167bf163e1715a7369c72b3edc639a3
src/main/java/org/purescript/psi/exports/ExportedDataMemberReference.kt
src/main/java/org/purescript/psi/exports/ExportedDataMemberReference.kt
package org.purescript.psi.exports import com.intellij.psi.PsiElement import com.intellij.psi.PsiNamedElement import com.intellij.psi.PsiReferenceBase import org.purescript.psi.data.PSDataDeclaration class ExportedDataMemberReference(exportedDataMember: PSExportedDataMember) : PsiReferenceBase<PSExportedDataMember>( ...
package org.purescript.psi.exports import com.intellij.psi.PsiElement import com.intellij.psi.PsiNamedElement import com.intellij.psi.PsiReferenceBase import org.purescript.psi.data.PSDataDeclaration import org.purescript.psi.newtype.PSNewTypeDeclarationImpl class ExportedDataMemberReference(exportedDataMember: PSExp...
Make exported data member references resolve to newtype constructors
Make exported data member references resolve to newtype constructors
Kotlin
bsd-3-clause
intellij-purescript/intellij-purescript,intellij-purescript/intellij-purescript
902fdba39c4a0adb7bafcf67cfdacd4c238c991b
strict-version-matcher-plugin/src/test/java/com/google/android/gms/dependencies/DataObjectsTest.kt
strict-version-matcher-plugin/src/test/java/com/google/android/gms/dependencies/DataObjectsTest.kt
package com.google.android.gms.dependencies import org.junit.Rule import org.junit.Test import org.junit.rules.ExpectedException import org.junit.runner.RunWith import org.junit.runners.JUnit4 @RunWith(JUnit4::class) class ArtifactDependencyManagerTest { @Rule @JvmField var thrown: ExpectedException = ExpectedExce...
package com.google.android.gms.dependencies import org.junit.Rule import org.junit.Test import org.junit.rules.ExpectedException import org.junit.runner.RunWith import org.junit.runners.JUnit4 @RunWith(JUnit4::class) class DataObjectsTest { @Rule @JvmField var thrown: ExpectedException = ExpectedException.none() ...
Rename Kotlin test class to match file name.
Rename Kotlin test class to match file name.
Kotlin
apache-2.0
google/play-services-plugins,google/play-services-plugins
db824a39fbe56444333593ef547d132c7f2323dc
src/main/java/org/purescript/psi/PSForeignValueDeclaration.kt
src/main/java/org/purescript/psi/PSForeignValueDeclaration.kt
package org.purescript.psi import com.intellij.lang.ASTNode import com.intellij.psi.PsiElement import com.intellij.psi.PsiNameIdentifierOwner class PSForeignValueDeclaration(node: ASTNode) : PSPsiElement(node), PsiNameIdentifierOwner { override fun setName(name: String): PsiElement? { return null ...
package org.purescript.psi import com.intellij.lang.ASTNode import com.intellij.psi.PsiComment import com.intellij.psi.PsiElement import com.intellij.psi.PsiNameIdentifierOwner import com.intellij.psi.PsiWhiteSpace import com.intellij.psi.util.elementType import org.purescript.features.DocCommentOwner import org.pures...
Implement documentation for foreign values
Implement documentation for foreign values
Kotlin
bsd-3-clause
intellij-purescript/intellij-purescript,intellij-purescript/intellij-purescript
b80bb2546c651cd46640142a2a4b9012a860691e
buildSrc/subprojects/cleanup/src/main/kotlin/gradlebuild/root-cleanup.gradle.kts
buildSrc/subprojects/cleanup/src/main/kotlin/gradlebuild/root-cleanup.gradle.kts
/* * Copyright 2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
/* * Copyright 2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
Remove explicit rootProject references in root cleanup plugin
Remove explicit rootProject references in root cleanup plugin
Kotlin
apache-2.0
gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,grad...
4f9398f791819147fc71234785ed605c2c7ea605
src/main/kotlin/com/github/shiraji/databindinglayout/intentions/ConvertToDatabindingLayoutIntention.kt
src/main/kotlin/com/github/shiraji/databindinglayout/intentions/ConvertToDatabindingLayoutIntention.kt
package com.github.shiraji.databindinglayout.intentions import com.intellij.codeInsight.intention.IntentionAction import com.intellij.lang.xml.XMLLanguage import com.intellij.openapi.editor.Editor import com.intellij.openapi.project.Project import com.intellij.psi.PsiFile import com.intellij.psi.XmlElementFactory cla...
package com.github.shiraji.databindinglayout.intentions import com.intellij.codeInsight.intention.IntentionAction import com.intellij.lang.xml.XMLLanguage import com.intellij.openapi.editor.Editor import com.intellij.openapi.project.Project import com.intellij.psi.PsiFile import com.intellij.psi.XmlElementFactory cla...
Rename constants and add more black list root tag
Rename constants and add more black list root tag
Kotlin
apache-2.0
shiraji/databinding-support,shiraji/databinding-support,shiraji/databinding-support
f04d13a2b5b7d4ce91fad58fce7a9c182831b978
src/main/kotlin/engineer/carrot/warren/warren/state/IrcState.kt
src/main/kotlin/engineer/carrot/warren/warren/state/IrcState.kt
package engineer.carrot.warren.warren.state data class IrcState(val connection: ConnectionState, val parsing: ParsingState, val channels: ChannelsState) data class ChannelsState(val joined: MutableMap<String, ChannelState>) data class ChannelState(val name: String, val users: MutableSet<String>) data class Connecti...
package engineer.carrot.warren.warren.state data class IrcState(val connection: ConnectionState, val parsing: ParsingState, val channels: ChannelsState) data class ChannelsState(val joined: MutableMap<String, ChannelState>) data class ChannelState(val name: String, val users: MutableSet<String>, var topic: String? =...
Add connection lifecycle, channel topic to state
Add connection lifecycle, channel topic to state
Kotlin
isc
CarrotCodes/Warren,CarrotCodes/Warren,voxelcarrot/Warren,carrotengineer/Warren
4e9511221b3057f4d529c4f095743bf49cb59938
http4k-core/src/main/kotlin/org/http4k/filter/ResponseFilters.kt
http4k-core/src/main/kotlin/org/http4k/filter/ResponseFilters.kt
package org.http4k.filter import org.http4k.core.Filter import org.http4k.core.Request import org.http4k.core.Response import java.time.Clock import java.time.Duration import java.time.Duration.between object ResponseFilters { /** * Intercept the response after it is sent to the next service. */ fu...
package org.http4k.filter import org.http4k.core.Filter import org.http4k.core.Request import org.http4k.core.Response import java.time.Clock import java.time.Duration import java.time.Duration.between object ResponseFilters { /** * Intercept the response after it is sent to the next service. */ fu...
Add default system clock to ReportLatency
Add default system clock to ReportLatency
Kotlin
apache-2.0
http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k,grover-ws-1/http4k,grover-ws-1/http4k,http4k/http4k,http4k/http4k,grover-ws-1/http4k,grover-ws-1/http4k,grover-ws-1/http4k
09b335469d39b6bf0bf8afaf2c2b21ffb1e9c0ed
ui/ui-tooling/src/main/java/androidx/ui/tooling/preview/LayoutlibFontResourceLoader.kt
ui/ui-tooling/src/main/java/androidx/ui/tooling/preview/LayoutlibFontResourceLoader.kt
/* * Copyright 2019 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
/* * Copyright 2019 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
Remove RestrictTo from LayoutLib FontLoader
Remove RestrictTo from LayoutLib FontLoader Test: N/A Bug: 141371566 Change-Id: I6b4c453f05bab87af9462c0e67f6c35784275c82
Kotlin
apache-2.0
androidx/androidx,AndroidX/androidx,AndroidX/androidx,AndroidX/androidx,AndroidX/androidx,androidx/androidx,androidx/androidx,androidx/androidx,AndroidX/androidx,AndroidX/androidx,androidx/androidx,androidx/androidx,AndroidX/androidx,androidx/androidx,AndroidX/androidx,androidx/androidx,androidx/androidx,AndroidX/andro...
df4bf37f48e8d47d3c3876e9b6342033851bb4b5
bridgesample/src/main/java/com/livefront/bridgesample/base/BridgeBaseFragment.kt
bridgesample/src/main/java/com/livefront/bridgesample/base/BridgeBaseFragment.kt
package com.livefront.bridgesample.base import android.os.Bundle import android.support.v4.app.Fragment import com.livefront.bridge.Bridge abstract class BridgeBaseFragment : Fragment() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) Bridge.restoreInstance...
package com.livefront.bridgesample.base import android.os.Bundle import android.support.v4.app.Fragment import android.support.v4.app.FragmentStatePagerAdapter import com.livefront.bridge.Bridge abstract class BridgeBaseFragment : Fragment() { /** * Determines whether or not [Bridge.clear] will be called in ...
Add ability to disable Bridge clearing in onDestroy
Add ability to disable Bridge clearing in onDestroy
Kotlin
apache-2.0
livefront/bridge,livefront/bridge
f1b6c55d44834898eaea5df4ee3635cd4e1b1547
.teamcity/src/main/kotlin/common/JvmCategory.kt
.teamcity/src/main/kotlin/common/JvmCategory.kt
/* * Copyright 2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
/* * Copyright 2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
Change JDK vendor to adoptium
Change JDK vendor to adoptium Previously we were actually using OpenJDK 11, but somehow `-PtestVendor=oracle` had no problem with it. Now we correct the vendor as adoptium.
Kotlin
apache-2.0
blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpira...
05a5f07bdf32bba0725b1b07c97dcad47a982448
src/201/main/kotlin/org/rust/cargo/runconfig/RsDefaultProgramRunnerBase.kt
src/201/main/kotlin/org/rust/cargo/runconfig/RsDefaultProgramRunnerBase.kt
/* * Use of this source code is governed by the MIT license that can be * found in the LICENSE file. */ package org.rust.cargo.runconfig import com.intellij.execution.ExecutionException import com.intellij.execution.ExecutionManager import com.intellij.execution.configurations.RunProfileState import com.intellij.e...
/* * Use of this source code is governed by the MIT license that can be * found in the LICENSE file. */ package org.rust.cargo.runconfig import com.intellij.execution.ExecutionException import com.intellij.execution.ExecutionManager import com.intellij.execution.configurations.RunProfileState import com.intellij.e...
Fix code coverage runner on 2020.1
RUN: Fix code coverage runner on 2020.1 Signed-off-by: Mikhail Chernyavsky <056b989d45e0ecccebb627ec00065c144c800d02@jetbrains.com>
Kotlin
mit
Undin/intellij-rust,intellij-rust/intellij-rust,intellij-rust/intellij-rust,intellij-rust/intellij-rust,Undin/intellij-rust,intellij-rust/intellij-rust,Undin/intellij-rust,intellij-rust/intellij-rust,intellij-rust/intellij-rust,Undin/intellij-rust,Undin/intellij-rust,Undin/intellij-rust
f1279f1446c3a6643ca338c4ac9eaaa565ff37b8
app/src/main/java/com/tristanwiley/chatse/extensions/ImageViewExtensions.kt
app/src/main/java/com/tristanwiley/chatse/extensions/ImageViewExtensions.kt
package com.tristanwiley.chatse.extensions import android.widget.ImageView import com.koushikdutta.ion.Ion fun ImageView.loadUrl(url: String) { Ion.with(context).load(url).intoImageView(this) }
package com.tristanwiley.chatse.extensions import android.widget.ImageView import com.bumptech.glide.Glide fun ImageView.loadUrl(url: String) { Glide.with(this).load(url).into(this) }
Use Glide to load images instead Ion
Use Glide to load images instead Ion
Kotlin
apache-2.0
room-15/ChatSE,room-15/ChatSE
ca23a944da7c5c15c6997c2378cae560f006cf0e
buildSrc/subprojects/profiling/src/main/kotlin/gradlebuild/jmh.gradle.kts
buildSrc/subprojects/profiling/src/main/kotlin/gradlebuild/jmh.gradle.kts
/* * Copyright 2018 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
/* * Copyright 2018 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
Fix jmh in presence of composite build
Fix jmh in presence of composite build The configuration now requires some extra attributes to resolve the right dependency.
Kotlin
apache-2.0
gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpira...
fb0043e2b04b22f788e9301ad500ff5bdeda5110
src/main/kotlin/rx/javafx/kt/Nodes.kt
src/main/kotlin/rx/javafx/kt/Nodes.kt
package rx.javafx.kt import javafx.event.EventType import javafx.scene.control.TableView import javafx.scene.input.MouseEvent import rx.observables.JavaFxObservable //TableView Extensions fun <S> TableView<S>.mouseEvents(mouseEventType: EventType<MouseEvent>) = JavaFxObservable.fromNodeEvents(this,mouseEventT...
package rx.javafx.kt import javafx.event.EventType import javafx.scene.Node import javafx.scene.input.MouseEvent import rx.observables.JavaFxObservable fun <N: Node> N.mouseEvents(mouseEventType: EventType<MouseEvent>) = JavaFxObservable.fromNodeEvents(this,mouseEventType) fun <N: Node> N.mouseClicks() = ...
Add mouseEvent streams to Node
Add mouseEvent streams to Node
Kotlin
apache-2.0
thomasnield/RxKotlinFX
664d3a92da775f634c269c9b40f3748e2788d9e5
src/main/java/org/klips/dsl/Asserter.kt
src/main/java/org/klips/dsl/Asserter.kt
package org.klips.dsl interface Asserter { val asserted: List<Fact> val retired: List<Fact> fun assert(vararg facts: Fact): Array<out Fact> fun retire(vararg facts: Fact): Array<out Fact> operator fun Fact.unaryPlus():Fact { assert(this) return this } operator fun Fact.u...
package org.klips.dsl interface Asserter { val asserted: List<Fact> val retired: List<Fact> fun assert(vararg facts: Fact): Array<out Fact> fun retire(vararg facts: Fact): Array<out Fact> operator fun <T : Fact> T.unaryPlus() : T { assert(this) return this } operator fun...
Make unary plus/minus generic functions.
Make unary plus/minus generic functions.
Kotlin
apache-2.0
vjache/klips,vjache/klips
32d9f0c1c8fa3da73759d09a11ca2d5b1321b5f7
buildSrc/build.gradle.kts
buildSrc/build.gradle.kts
buildscript { var kotlinVersion: String by extra var kotlinEAPRepo: String by extra kotlinVersion = "1.1.2-eap-44" kotlinEAPRepo = "https://dl.bintray.com/kotlin/kotlin-eap-1.1" repositories { gradleScriptKotlin() } } plugins { id("org.jetbrains.kotlin.jvm") version "1.1.1" } va...
import org.gradle.api.tasks.Delete import org.jetbrains.kotlin.gradle.tasks.KotlinCompile buildscript { var kotlinVersion: String by extra var kotlinEAPRepo: String by extra kotlinVersion = "1.1.2-eap-44" kotlinEAPRepo = "https://dl.bintray.com/kotlin/kotlin-eap-1.1" repositories { gradl...
Fix buildSrc kotlin compilation issue.
Fix buildSrc kotlin compilation issue.
Kotlin
apache-2.0
sureshg/kotlin-starter,sureshg/kotlin-starter
5e72bf8392bc4844ba5abcd49eb63c55d19d4657
applications/billing/src/main/kotlin/com/example/billing/reocurringPayments/Controller.kt
applications/billing/src/main/kotlin/com/example/billing/reocurringPayments/Controller.kt
package com.example.billing.reocurringPayments import org.springframework.beans.factory.annotation.Autowired import org.springframework.boot.actuate.metrics.CounterService import org.springframework.http.HttpHeaders import org.springframework.http.HttpStatus import org.springframework.http.MediaType import org.springf...
package com.example.billing.reocurringPayments import com.example.payments.Gateway import org.springframework.boot.actuate.metrics.CounterService import org.springframework.http.HttpHeaders import org.springframework.http.HttpStatus import org.springframework.http.MediaType import org.springframework.http.ResponseEnti...
Use constructor injection so you can make instance variables vals
Use constructor injection so you can make instance variables vals
Kotlin
mit
mikegehard/user-management-evolution-kotlin,mikegehard/user-management-evolution-kotlin,mikegehard/user-management-evolution-kotlin
c239fd7882947372d9382cdcc7df3bc38a1d200e
loritta-plugins/rosbife/src/commonMain/kotlin/net/perfectdreams/loritta/plugin/rosbife/commands/BobBurningPaperCommand.kt
loritta-plugins/rosbife/src/commonMain/kotlin/net/perfectdreams/loritta/plugin/rosbife/commands/BobBurningPaperCommand.kt
package net.perfectdreams.loritta.plugin.rosbife.commands import net.perfectdreams.loritta.plugin.rosbife.RosbifePlugin import net.perfectdreams.loritta.plugin.rosbife.commands.base.BasicSkewedImageCommand class BobBurningPaperCommand(m: RosbifePlugin) : BasicSkewedImageCommand( m.loritta, listOf("bobburningpaper...
package net.perfectdreams.loritta.plugin.rosbife.commands import net.perfectdreams.loritta.plugin.rosbife.RosbifePlugin import net.perfectdreams.loritta.plugin.rosbife.commands.base.BasicSkewedImageCommand class BobBurningPaperCommand(m: RosbifePlugin) : BasicSkewedImageCommand( m.loritta, listOf("bobburningpaper...
Fix BobBurningFireCommand not working at all
Fix BobBurningFireCommand not working at all
Kotlin
agpl-3.0
LorittaBot/Loritta,LorittaBot/Loritta,LorittaBot/Loritta,LorittaBot/Loritta
d86641a8f00f1f3e628bf133e848df59c97ce75d
Core/src/com/rimmer/yttrium/Error.kt
Core/src/com/rimmer/yttrium/Error.kt
package com.rimmer.yttrium /* * Contains generic error types used within the server. * These errors are caught by the router and transformed into http responses. */ /** This is mapped to 404 and should be thrown whenever something that was requested doesn't exist. */ class NotFoundException : Exception("not_found"...
package com.rimmer.yttrium /* * Contains generic error types used within the server. * These errors are caught by the router and transformed into http responses. */ /** This is mapped to 404 and should be thrown whenever something that was requested doesn't exist. */ class NotFoundException : Exception("not_found"...
Support custom messages for UnauthorizedException
Support custom messages for UnauthorizedException
Kotlin
mit
Le-Chiffre/Yttrium,RimmerM/Yttrium
82a5b9ac62a34c18f5336208621338dd65674335
modules/coroutines/src/commonMain/kotlin/splitties/coroutines/SendChannel.kt
modules/coroutines/src/commonMain/kotlin/splitties/coroutines/SendChannel.kt
/* * Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license. */ package splitties.coroutines import kotlinx.coroutines.CancellationException import kotlinx.coroutines.channels.SendChannel /** * [SendChannel.offer] that returns `false` when this [SendChannel.isClo...
/* * Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license. */ package splitties.coroutines import kotlinx.coroutines.CancellationException import kotlinx.coroutines.channels.SendChannel /** * [SendChannel.offer] that returns `false` when this [SendChannel.isClo...
Add link to relevant issue
Add link to relevant issue
Kotlin
apache-2.0
LouisCAD/Splitties,LouisCAD/Splitties,LouisCAD/Splitties
4122269ae005de102b21838deb5f264d59990e3f
app/src/main/java/com/sedsoftware/yaptalker/presentation/features/news/NewsView.kt
app/src/main/java/com/sedsoftware/yaptalker/presentation/features/news/NewsView.kt
package com.sedsoftware.yaptalker.presentation.features.news import com.arellomobile.mvp.viewstate.strategy.AddToEndSingleStrategy import com.arellomobile.mvp.viewstate.strategy.AddToEndStrategy import com.arellomobile.mvp.viewstate.strategy.SingleStateStrategy import com.arellomobile.mvp.viewstate.strategy.SkipStrate...
package com.sedsoftware.yaptalker.presentation.features.news import com.arellomobile.mvp.viewstate.strategy.AddToEndStrategy import com.arellomobile.mvp.viewstate.strategy.SingleStateStrategy import com.arellomobile.mvp.viewstate.strategy.SkipStrategy import com.arellomobile.mvp.viewstate.strategy.StateStrategyType im...
Fix fab visibility funcs strategy
Fix fab visibility funcs strategy
Kotlin
apache-2.0
djkovrik/YapTalker,djkovrik/YapTalker
5165c5fc8b06ed33cc28bf06de4bcfc5cfc87920
app/src/main/java/nl/dionsegijn/steppertouchdemo/recyclerview/RecyclerViewFragment.kt
app/src/main/java/nl/dionsegijn/steppertouchdemo/recyclerview/RecyclerViewFragment.kt
package nl.dionsegijn.steppertouchdemo.recyclerview import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.fragment.app.Fragment import androidx.recyclerview.widget.LinearLayoutManager import com.xwray.groupie.GroupieAdapter import kotlinx.and...
package nl.dionsegijn.steppertouchdemo.recyclerview import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.fragment.app.Fragment import androidx.recyclerview.widget.LinearLayoutManager import com.xwray.groupie.GroupieAdapter import kotlinx.and...
Add 100 items to the list
Add 100 items to the list
Kotlin
apache-2.0
DanielMartinus/Stepper-Touch
8031f0fb5af27468e2902568b9b85a88e6e3ab38
test/nl/hannahsten/texifyidea/inspections/latex/LatexAbsolutePathInspectionTest.kt
test/nl/hannahsten/texifyidea/inspections/latex/LatexAbsolutePathInspectionTest.kt
package nl.hannahsten.texifyidea.inspections.latex import nl.hannahsten.texifyidea.file.LatexFileType import nl.hannahsten.texifyidea.inspections.TexifyInspectionTestBase import org.junit.Test import java.nio.file.Path import java.nio.file.Paths class LatexAbsolutePathInspectionTest : TexifyInspectionTestBase(LatexAb...
package nl.hannahsten.texifyidea.inspections.latex import nl.hannahsten.texifyidea.file.LatexFileType import nl.hannahsten.texifyidea.inspections.TexifyInspectionTestBase import org.junit.Test import java.nio.file.Path import java.nio.file.Paths class LatexAbsolutePathInspectionTest : TexifyInspectionTestBase(LatexAb...
Fix absolute path inspection test
Fix absolute path inspection test
Kotlin
mit
Ruben-Sten/TeXiFy-IDEA,Ruben-Sten/TeXiFy-IDEA,Ruben-Sten/TeXiFy-IDEA,Ruben-Sten/TeXiFy-IDEA
109fc72ee21a13d65da7ecd9bf3d0a9bf6850d36
app/src/main/java/pl/mg6/likeornot/commons/Collections.kt
app/src/main/java/pl/mg6/likeornot/commons/Collections.kt
package pl.mg6.likeornot.commons fun <T> List<T>.batch(chunkSize: Int): List<List<T>> { if (chunkSize <= 0) { throw IllegalArgumentException("chunkSize must be greater than 0") } val list = mutableListOf<MutableList<T>>() for (i in 0 until size) { if (i % chunkSize == 0) { l...
package pl.mg6.likeornot.commons fun <T> List<T>.batch(chunkSize: Int): List<List<T>> { if (chunkSize <= 0) { throw IllegalArgumentException("chunkSize must be greater than 0") } val capacity = (size + chunkSize - 1) / chunkSize val list = ArrayList<ArrayList<T>>(capacity) for (i in 0 until...
Set initial list of lists capacity to expected final size.
[optimization] Set initial list of lists capacity to expected final size.
Kotlin
apache-2.0
mg6maciej/fluffy-octo-rotary-phone,mg6maciej/fluffy-octo-rotary-phone,mg6maciej/fluffy-octo-rotary-phone
352b05d7928fe74c9d18956971048d548e0d7b30
method_signatures/src/main/kotlin/org/kethereum/methodsignatures/model/TextMethodSignature.kt
method_signatures/src/main/kotlin/org/kethereum/methodsignatures/model/TextMethodSignature.kt
package org.kethereum.methodsignatures.model data class TextMethodSignature(val signature: String) { val functionName by lazy { signature.substringBefore("(").trim() } val parameters by lazy { signature.substringAfter("(").substringBefore(")").split(",").map { it.trim() } } // see https://solidity.readth...
package org.kethereum.methodsignatures.model data class TextMethodSignature(val signature: String) { val functionName by lazy { signature.substringBefore("(").trim() } val parameters by lazy { signature.substringAfter("(").substringBefore(")").split(",").map { it.trim() } } // see https://solidity.readth...
Add mapping from byte to bytes1
Add mapping from byte to bytes1
Kotlin
mit
walleth/kethereum
6af3dc91f4705c00d2db970f3e46f9ea3b6e1a60
wear/src/main/java/com/codegy/aerlink/connection/Command.kt
wear/src/main/java/com/codegy/aerlink/connection/Command.kt
package com.codegy.aerlink.connection import java.util.* data class Command(val serviceUUID: UUID, val characteristicUUID: UUID, val packet: ByteArray? = null) { var isWriteCommand: Boolean = packet != null private var retryCount = 0 var importance = IMPORTANCE_NORMAL var successBlock: (() -> Unit)? ...
package com.codegy.aerlink.connection import java.util.* data class Command(val serviceUUID: UUID, val characteristicUUID: UUID, val packet: ByteArray? = null, var importance: Int = IMPORTANCE_NORMAL) { var isWriteCommand: Boolean = packet != null private var retryCount = 0 var successBlock: (() -> Unit)...
Add command importance to the constructor
Add command importance to the constructor
Kotlin
mit
GuiyeC/Aerlink-for-Android
9f075382da1474924a6ef39881d6874beebad67a
version.gradle.kts
version.gradle.kts
/* * Copyright 2020, TeamDev. All rights reserved. * * Redistribution and use in source and/or binary forms, with or without * modification, must retain the above copyright notice and the following * disclaimer. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR...
/* * Copyright 2020, TeamDev. All rights reserved. * * Redistribution and use in source and/or binary forms, with or without * modification, must retain the above copyright notice and the following * disclaimer. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR...
Declare versions via `extra` delegates
Declare versions via `extra` delegates
Kotlin
apache-2.0
SpineEventEngine/core-java,SpineEventEngine/core-java,SpineEventEngine/core-java
baa4da2567750fe2fcc5923fc3a3e643ff6014ac
subprojects/configuration-cache/src/main/kotlin/org/gradle/configurationcache/initialization/ConfigurationCacheBuildEnablement.kt
subprojects/configuration-cache/src/main/kotlin/org/gradle/configurationcache/initialization/ConfigurationCacheBuildEnablement.kt
/* * Copyright 2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
/* * Copyright 2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
Disable config cache problem reporting for any child build named `buildSrc`
Disable config cache problem reporting for any child build named `buildSrc`
Kotlin
apache-2.0
gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpira...
c2d88b34c531a209efe03b4a05c823bad4a453dd
plugins/changeReminder/src/com/jetbrains/changeReminder/changes/ChangeReminderCheckAction.kt
plugins/changeReminder/src/com/jetbrains/changeReminder/changes/ChangeReminderCheckAction.kt
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.jetbrains.changeReminder.changes import com.intellij.openapi.actionSystem.AnActionEvent import com.intellij.openapi.actionSystem.ToggleAction import com.intellij.open...
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.jetbrains.changeReminder.changes import com.intellij.openapi.actionSystem.AnActionEvent import com.intellij.openapi.actionSystem.ToggleAction import com.intellij.open...
Fix NPE: event may not contain project
Fix NPE: event may not contain project (cherry picked from commit d419262a4f6e7ac8a1ceaf8bc8fa6d0a59f9a79d) GitOrigin-RevId: 15ce50beca854b6452833f6a9939be3a270f3284
Kotlin
apache-2.0
allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/int...
8bd6c8a7fcd28c9534feaf45b1d447d68185834d
sw-client/build.gradle.kts
sw-client/build.gradle.kts
plugins { kotlin("multiplatform") } val krossbowVersion = "1.1.0" kotlin { jvm() js { browser() // necessary for local dependency from JS UI module } sourceSets { val commonMain by getting { dependencies { api(project(":sw-common-model")) ...
plugins { kotlin("multiplatform") } kotlin { jvm() js { browser() // necessary for local dependency from JS UI module } sourceSets { val commonMain by getting { dependencies { api(project(":sw-common-model")) api("org.hildan.krossbow:kross...
Upgrade to krossbow 1.1.2 to fix UTF-8 bugs
Upgrade to krossbow 1.1.2 to fix UTF-8 bugs
Kotlin
mit
luxons/seven-wonders,luxons/seven-wonders,luxons/seven-wonders
aab389a177fa93ed6772c640ff38eebf6b3efeb9
datacapture/src/main/java/com/google/android/fhir/datacapture/MoreQuestionnaireItemExtensions.kt
datacapture/src/main/java/com/google/android/fhir/datacapture/MoreQuestionnaireItemExtensions.kt
/* * Copyright 2020 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...
/* * Copyright 2020 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...
Fix test case to make sure item control extension code is part of supported codes
Fix test case to make sure item control extension code is part of supported codes
Kotlin
apache-2.0
google/android-fhir,google/android-fhir
0163f06fff5ae2a9a29db3572ce42c8b79ed345b
src/test/kotlin/io/kotlintest/TestCaseTest.kt
src/test/kotlin/io/kotlintest/TestCaseTest.kt
package io.kotlintest import io.kotlintest.matchers.shouldBe import io.kotlintest.specs.StringSpec class TestCaseTest : StringSpec() { object TagA : Tag() object TagB : Tag() init { val testTaggedA: TestCase = "should be tagged with tagA" { } testTaggedA.config(tags = setOf(TagA)) val untaggedTes...
package io.kotlintest import io.kotlintest.matchers.shouldBe import io.kotlintest.specs.StringSpec class TestCaseTest : StringSpec() { object TagA : Tag() object TagB : Tag() init { val testTaggedA: TestCase = "should be tagged with tagA" { } testTaggedA.config(tags = setOf(TagA)) val untaggedTes...
Add a test to verify tagged tests are active by default
Add a test to verify tagged tests are active by default If no include / exclude tags are specified, tagged tests should be active.
Kotlin
mit
kotlintest/kotlintest,sksamuel/ktest,kotlintest/kotlintest,kotlintest/kotlintest
6a5bd804b53eef5356ab55e0f836890995bb98d6
jupyter-lib/kotlin-jupyter-api-gradle-plugin/src/main/kotlin/org/jetbrains/kotlinx/jupyter/api/plugin/ApiGradlePlugin.kt
jupyter-lib/kotlin-jupyter-api-gradle-plugin/src/main/kotlin/org/jetbrains/kotlinx/jupyter/api/plugin/ApiGradlePlugin.kt
package org.jetbrains.kotlinx.jupyter.api.plugin import org.gradle.api.Plugin import org.gradle.api.Project import org.gradle.kotlin.dsl.invoke import org.gradle.kotlin.dsl.register import org.gradle.kotlin.dsl.repositories import org.jetbrains.kotlin.gradle.internal.Kapt3GradleSubplugin import org.jetbrains.kotlin.gr...
package org.jetbrains.kotlinx.jupyter.api.plugin import org.gradle.api.Plugin import org.gradle.api.Project import org.gradle.kotlin.dsl.invoke import org.gradle.kotlin.dsl.register import org.gradle.kotlin.dsl.repositories import org.jetbrains.kotlin.gradle.internal.Kapt3GradleSubplugin import org.jetbrains.kotlin.gr...
Clear Gradle caches for plugin properly
Clear Gradle caches for plugin properly
Kotlin
apache-2.0
ligee/kotlin-jupyter
1ef2c6cf71c110ca94975b23d1bc119cc8302be5
library/src/main/java/org/firezenk/kartographer/library/Logger.kt
library/src/main/java/org/firezenk/kartographer/library/Logger.kt
package org.firezenk.kartographer.library import org.firezenk.kartographer.library.types.Route class Logger { private val TAG = "Kartographer::" internal fun d(actionDesc: String) { println(TAG + actionDesc) } internal fun d(actionDesc: String, route: Route<*>): Route<*> { println(T...
package org.firezenk.kartographer.library import org.firezenk.kartographer.library.types.Route class Logger(val logReader: (String) -> Unit = ::println) { private val TAG = "Kartographer::" internal fun d(actionDesc: String) { logReader(TAG + actionDesc) } internal fun d(actionDesc: String,...
Add a logReader option with a default reader
Add a logReader option with a default reader
Kotlin
mit
FireZenk/Kartographer
94996a2a78743020945bf708616e202e7b988173
aconite-core/src/io/aconite/serializers/GsonBodySerializer.kt
aconite-core/src/io/aconite/serializers/GsonBodySerializer.kt
package io.aconite.serializers import com.google.gson.Gson import com.google.gson.GsonBuilder import com.google.gson.JsonParseException import io.aconite.BadRequestException import io.aconite.UnsupportedMediaTypeException import io.aconite.BodyBuffer import io.aconite.BodySerializer import io.aconite.Buffer import io....
package io.aconite.serializers import com.google.gson.Gson import com.google.gson.GsonBuilder import com.google.gson.JsonParseException import io.aconite.* import io.aconite.utils.toJavaType import java.lang.reflect.Type import kotlin.reflect.KAnnotatedElement import kotlin.reflect.KType class GsonBodySerializer(val ...
Add support for empty body without contentType specification
Add support for empty body without contentType specification
Kotlin
mit
AcapellaSoft/Aconite,AcapellaSoft/Aconite
4b4af3b52fe15ab93fdc06a8b10ce2001ca20e9c
src/main/kotlin/org/rust/lang/core/psi/ext/RsMod.kt
src/main/kotlin/org/rust/lang/core/psi/ext/RsMod.kt
/* * Use of this source code is governed by the MIT license that can be * found in the LICENSE file. */ package org.rust.lang.core.psi.ext import com.intellij.psi.PsiDirectory import java.util.* interface RsMod : RsQualifiedNamedElement, RsItemsOwner { /** * Returns a parent module (`super::` in paths)....
/* * Use of this source code is governed by the MIT license that can be * found in the LICENSE file. */ package org.rust.lang.core.psi.ext import com.intellij.psi.PsiDirectory import java.util.* interface RsMod : RsQualifiedNamedElement, RsItemsOwner { /** * Returns a parent module (`super::` in paths)....
Add an excuse comment :(
Add an excuse comment :(
Kotlin
mit
alygin/intellij-rust,alygin/intellij-rust,anton-okolelov/intellij-rust,intellij-rust/intellij-rust,anton-okolelov/intellij-rust,intellij-rust/intellij-rust,anton-okolelov/intellij-rust,alygin/intellij-rust,Undin/intellij-rust,intellij-rust/intellij-rust,anton-okolelov/intellij-rust,Undin/intellij-rust,Undin/intellij-ru...
b2830dda070ab7bf42d4530055b68806f0fe0203
src/main/kotlin/FyydClient.kt
src/main/kotlin/FyydClient.kt
package de.mfietz.fyydlin import com.squareup.moshi.Moshi import com.squareup.moshi.Rfc3339DateJsonAdapter import okhttp3.OkHttpClient import retrofit2.Retrofit import retrofit2.adapter.rxjava.RxJavaCallAdapterFactory import retrofit2.converter.moshi.MoshiConverterFactory import rx.Single import java.util.* class Fyy...
package de.mfietz.fyydlin import com.squareup.moshi.Moshi import com.squareup.moshi.Rfc3339DateJsonAdapter import okhttp3.OkHttpClient import retrofit2.Retrofit import retrofit2.adapter.rxjava.RxJavaCallAdapterFactory import retrofit2.converter.moshi.MoshiConverterFactory import rx.Single import java.util.* class Fyy...
Move constructor defaults to companion object
Move constructor defaults to companion object
Kotlin
apache-2.0
mfietz/fyydlin,mfietz/fyydlin
9107bad36365b4d1d87306654e340366d181c588
bundles/sirix-rest-api/src/main/kotlin/org/sirix/rest/crud/CreateMultipleResources.kt
bundles/sirix-rest-api/src/main/kotlin/org/sirix/rest/crud/CreateMultipleResources.kt
package org.sirix.rest.crud import io.vertx.ext.web.Route import io.vertx.ext.web.RoutingContext import org.sirix.rest.crud.json.JsonCreate import org.sirix.rest.crud.xml.XmlCreate import java.nio.file.Path class CreateMultipleResources(private val location: Path) { suspend fun handle(ctx: RoutingContext...
package org.sirix.rest.crud import io.vertx.ext.web.Route import io.vertx.ext.web.RoutingContext import org.sirix.rest.crud.json.JsonCreate import org.sirix.rest.crud.xml.XmlCreate import java.nio.file.Path class CreateMultipleResources(private val location: Path) { suspend fun handle(ctx: RoutingContext...
Add refactoring and performance tweak
Add refactoring and performance tweak
Kotlin
bsd-3-clause
sirixdb/sirix,sirixdb/sirix,sirixdb/sirix,sirixdb/sirix
741849d1917384d53f6048eb7ebe0e779403e512
platform/lang-impl/src/com/intellij/codeInsight/template/impl/DefaultLiveTemplateEP.kt
platform/lang-impl/src/com/intellij/codeInsight/template/impl/DefaultLiveTemplateEP.kt
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.codeInsight.template.impl import com.intellij.openapi.extensions.AbstractExtensionPointBean import com.intellij.openapi.extensions.ExtensionPointName import ...
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.codeInsight.template.impl import com.intellij.openapi.extensions.AbstractExtensionPointBean import com.intellij.openapi.extensions.ExtensionPointName import ...
Document file path format for live template extension point
Document file path format for live template extension point GitOrigin-RevId: d381232cbd537344455c62059514e9e952205976
Kotlin
apache-2.0
allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/int...
e3f997d7d6daf3ee1d4a8ee99b681b574e704a55
src/main/kotlin/com/elpassion/mainframerplugin/action/configure/templater/Templater.kt
src/main/kotlin/com/elpassion/mainframerplugin/action/configure/templater/Templater.kt
package com.elpassion.mainframerplugin.action.configure.templater import com.intellij.openapi.project.Project import io.reactivex.Completable import io.reactivex.Maybe import io.reactivex.Observable import java.io.File fun templateChooser(project: Project): Maybe<ProjectType> = templateApplicationDialog(project) fun...
package com.elpassion.mainframerplugin.action.configure.templater import com.intellij.openapi.project.Project import io.reactivex.Completable import io.reactivex.Maybe import io.reactivex.Observable fun templateChooser(project: Project): Maybe<ProjectType> = templateApplicationDialog(project) fun templateSetter(proj...
Apply CR: Replace fromIterable with just
Apply CR: Replace fromIterable with just
Kotlin
apache-2.0
elpassion/mainframer-intellij-plugin,elpassion/mainframer-intellij-plugin,elpassion/mainframer-intellij-plugin
a5894e53d694cffd7911e4383659af2cd6e4085b
acornui-utils/build.gradle.kts
acornui-utils/build.gradle.kts
/* * Copyright 2019 PolyForest * * 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 i...
/* * Copyright 2019 PolyForest * * 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 i...
Refactor acornui-utils to use 'basic' plugin
Refactor acornui-utils to use 'basic' plugin
Kotlin
apache-2.0
AcornUI/Acorn,AcornUI/Acorn,AcornUI/Acorn
cd68664877a284739d6b4c195c9e6aa69aae3425
rider/src/main/kotlin/com/jetbrains/rider/plugins/unity/actions/AttachToUnityProcessAction.kt
rider/src/main/kotlin/com/jetbrains/rider/plugins/unity/actions/AttachToUnityProcessAction.kt
package com.jetbrains.rider.plugins.unity.actions import com.intellij.openapi.actionSystem.AnAction import com.intellij.openapi.actionSystem.AnActionEvent import com.jetbrains.rider.plugins.unity.run.UnityProcessPickerDialog class AttachToUnityProcessAction : AnAction() { override fun actionPerformed(e: AnActionE...
package com.jetbrains.rider.plugins.unity.actions import com.intellij.openapi.actionSystem.AnAction import com.intellij.openapi.actionSystem.AnActionEvent import com.intellij.openapi.project.DumbAware import com.jetbrains.rider.plugins.unity.run.UnityProcessPickerDialog class AttachToUnityProcessAction : AnAction(), ...
Allow attaching to Unity process during indexing
Allow attaching to Unity process during indexing
Kotlin
apache-2.0
JetBrains/resharper-unity,JetBrains/resharper-unity,JetBrains/resharper-unity
ae064caa75ccdb6db3a9ba6d658e6f159584e283
buildSrc/src/main/java/AndroidComponents.kt
buildSrc/src/main/java/AndroidComponents.kt
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ object AndroidComponents { const val VERSION = "94.0.20210928190108" }
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ object AndroidComponents { const val VERSION = "95.0.20211006143357" }
Update Android Components to 95.0.20211006143357
Update Android Components to 95.0.20211006143357
Kotlin
mpl-2.0
mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android
ae0618523033bf85c936c2527f61b9b9333c32db
app/src/main/java/com/github/pockethub/android/ui/ResourceLoadingIndicator.kt
app/src/main/java/com/github/pockethub/android/ui/ResourceLoadingIndicator.kt
/* * Copyright (c) 2015 PocketHub * * 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 t...
/* * Copyright (c) 2015 PocketHub * * 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 t...
Use backing field instead of explicit setter
Use backing field instead of explicit setter
Kotlin
apache-2.0
PKRoma/PocketHub,PKRoma/PocketHub,Meisolsson/PocketHub,pockethub/PocketHub,Meisolsson/PocketHub,PKRoma/github-android,forkhubs/android,PKRoma/PocketHub,PKRoma/PocketHub,forkhubs/android,PKRoma/github-android,songful/PocketHub,PKRoma/github-android,songful/PocketHub,Meisolsson/PocketHub,pockethub/PocketHub,forkhubs/andr...
a676e1866a41aac05e615cd9833b38bb1d808d17
common/src/test/com/natpryce/jsonk/JsonRoundTripTest.kt
common/src/test/com/natpryce/jsonk/JsonRoundTripTest.kt
package com.natpryce.jsonk import org.junit.Test import kotlin.test.assertEquals class JsonRoundTripTest() { @Test fun round_trips_JSON() { ExampleJsonFiles.forEach { exampleName, original -> assertEquals(original, original.toJsonString().toJsonElement(), exampleName) } } }
package com.natpryce.jsonk import org.junit.Test import kotlin.test.assertEquals class JsonRoundTripTest() { @Test fun round_trips_JSON() { ExampleJsonFiles.forEach { exampleName, original -> assertEquals(expected = original, actual = original.toJsonString().toJsonElement(), message = exa...
Add parameter names to assertEquals call for clarity
Add parameter names to assertEquals call for clarity
Kotlin
apache-2.0
npryce/snodge,npryce/snodge,npryce/snodge
2f1fda990f30b7089add690599715a653da4fe6b
build.gradle.kts
build.gradle.kts
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { kotlin("jvm") version "1.6.20" id("com.vanniktech.maven.publish") version "0.19.0" id("com.github.ben-manes.versions") version "0.42.0" } repositories { mavenCentral() } buildscript { repositories { mavenCentral() } dependencies { ...
import org.jetbrains.kotlin.gradle.dsl.ExplicitApiMode.Strict import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { kotlin("jvm") version "1.6.20" id("com.vanniktech.maven.publish") version "0.19.0" id("com.github.ben-manes.versions") version "0.42.0" } repositories { mavenCentral() } buildscript ...
Add missing dependency on `ExplicitApiMode.Strict`
Add missing dependency on `ExplicitApiMode.Strict`
Kotlin
apache-2.0
chimbori/crux,chimbori/crux
51ccb9d55d95097a04b5dbf1db3344d000e447d7
app/src/main/kotlin/uk/co/ribot/androidboilerplate/util/extension/CursorExtension.kt
app/src/main/kotlin/uk/co/ribot/androidboilerplate/util/extension/CursorExtension.kt
package uk.co.ribot.androidboilerplate.util.extension import android.database.Cursor fun Cursor.getString(columnName: String): String { return getString(getColumnIndexOrThrow(columnName)) } fun Cursor.getInt(columnName: String): Int { return getInt(getColumnIndexOrThrow(columnName)) } fun Cursor.getLong(col...
package uk.co.ribot.androidboilerplate.util.extension import android.database.Cursor fun Cursor.getString(columnName: String, defaultValue: String = ""): String { val index = getColumnIndex(columnName) return getString(index) ?: defaultValue } fun Cursor.getInt(columnName: String, defaultValue: Int = 0): Int...
Add default values to prevent exceptions while parsing a cursor.
Add default values to prevent exceptions while parsing a cursor.
Kotlin
apache-2.0
viniciussoares/ribot-android-boilerplate-kotlin,viniciussoares/ribot-android-boilerplate-kotlin
4883227d66dddb82e140480a246a465598c6c25b
ZMain/ImkGithubApp/src/main/java/net/imknown/imkgithub/mvp/BaseMvpPresenterActivity.kt
ZMain/ImkGithubApp/src/main/java/net/imknown/imkgithub/mvp/BaseMvpPresenterActivity.kt
package net.imknown.imkgithub.mvp import android.content.pm.ActivityInfo import android.os.Bundle import android.support.v7.app.AppCompatActivity import android.widget.Toast import butterknife.ButterKnife import butterknife.Unbinder abstract class BaseMvpPresenterActivity : AppCompatActivity(), BaseMvpView { pri...
package net.imknown.imkgithub.mvp import android.content.pm.ActivityInfo import android.os.Bundle import android.support.v7.app.AppCompatActivity import android.widget.Toast import butterknife.ButterKnife import butterknife.Unbinder abstract class BaseMvpPresenterActivity : AppCompatActivity(), BaseMvpView { late...
Modify the init syntax of 'unbinder'.
Modify the init syntax of 'unbinder'.
Kotlin
apache-2.0
imknown/ImkGithub
a8898b46c4f3a7a25724e8592679c7fc7502c1ea
samples/gradle-plugin/plugin/src/main/kotlin/plugin/MyPlugin.kt
samples/gradle-plugin/plugin/src/main/kotlin/plugin/MyPlugin.kt
package plugin import org.gradle.api.Plugin import org.gradle.api.Project import org.gradle.api.Task import org.gradle.api.tasks.Copy import org.gradle.kotlin.dsl.* open class MyPlugin : Plugin<Project> { override fun apply(project: Project) { project.run { tasks { "myCopyTa...
package plugin import org.gradle.api.Plugin import org.gradle.api.Project import org.gradle.api.Task import org.gradle.api.tasks.Copy import org.gradle.kotlin.dsl.* open class MyPlugin : Plugin<Project> { override fun apply(project: Project) { project.run { tasks { "myCopyTa...
Add sample plugin task to sample task group
Add sample plugin task to sample task group
Kotlin
apache-2.0
robinverduijn/gradle,gradle/gradle,gradle/gradle-script-kotlin,gradle/gradle,robinverduijn/gradle,robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,robinverduijn/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,robinverduijn/gradle,gradle/gradle-script-kotl...
54f587baf12ecf8f0115cb406203df14c4d6ab5d
plugins/mathjax/src/main/kotlin/MathjaxPlugin.kt
plugins/mathjax/src/main/kotlin/MathjaxPlugin.kt
package org.jetbrains.dokka.mathjax import org.jetbrains.dokka.CoreExtensions import org.jetbrains.dokka.pages.ModulePageNode import org.jetbrains.dokka.pages.PageNode import org.jetbrains.dokka.plugability.DokkaContext import org.jetbrains.dokka.plugability.DokkaPlugin import org.jetbrains.dokka.transformers.pages.P...
package org.jetbrains.dokka.mathjax import model.doc.CustomTag import org.jetbrains.dokka.CoreExtensions import org.jetbrains.dokka.pages.ModulePageNode import org.jetbrains.dokka.pages.PageNode import org.jetbrains.dokka.plugability.DokkaContext import org.jetbrains.dokka.plugability.DokkaPlugin import org.jetbrains...
Fix mathjax plugin for dokka to compile
Fix mathjax plugin for dokka to compile
Kotlin
apache-2.0
Kotlin/dokka,Kotlin/dokka,Kotlin/dokka,Kotlin/dokka,Kotlin/dokka,Kotlin/dokka
7f1ce176daa8d173cba45c811e00918606c7b75f
keccak_shortcut/src/main/java/org/walleth/keccak_shortcut/Keccak.kt
keccak_shortcut/src/main/java/org/walleth/keccak_shortcut/Keccak.kt
package org.walleth.keccak_shortcut import org.walleth.keccak.Keccak import org.walleth.keccak.Parameter.KECCAK_256 fun String.keccak() = Keccak().getHash(this, KECCAK_256)
package org.walleth.keccak_shortcut import org.walleth.keccak.Keccak import org.walleth.keccak.Parameter.KECCAK_256 fun String.keccak() = Keccak().getHash(this, KECCAK_256) fun ByteArray.keccak() = Keccak().getHash(this, KECCAK_256)
Add keccak shortcut for ByteArray
Add keccak shortcut for ByteArray
Kotlin
mit
walleth/kethereum
3df95b04ba1dbb6e504de94e8ffeee3cf86a5917
app/src/main/kotlin/com/nagopy/android/aplin/presenter/AdPresenter.kt
app/src/main/kotlin/com/nagopy/android/aplin/presenter/AdPresenter.kt
package com.nagopy.android.aplin.presenter import com.google.android.gms.ads.AdRequest import com.google.android.gms.ads.AdView import javax.inject.Inject import javax.inject.Singleton /** * 広告表示(AdMob)の処理を移譲するためのクラス */ @Singleton public open class AdPresenter : Presenter { @Inject constructor() var a...
package com.nagopy.android.aplin.presenter import com.google.android.gms.ads.AdRequest import com.google.android.gms.ads.AdView import javax.inject.Inject import javax.inject.Singleton /** * 広告表示(AdMob)の処理を移譲するためのクラス */ @Singleton public open class AdPresenter : Presenter { @Inject constructor() var a...
Add admob test device id
Add admob test device id
Kotlin
apache-2.0
75py/Aplin
b1acc183368da3352a8b61614f0b943ae865b18b
buildSrc/build.gradle.kts
buildSrc/build.gradle.kts
plugins { `kotlin-dsl` } repositories { gradlePluginPortal() } dependencies { implementation("gradle.plugin.com.github.johnrengelman:shadow:7.1.2") implementation("org.jetbrains.kotlinx:binary-compatibility-validator:0.9.0") implementation("io.github.gradle-nexus:publish-plugin:1.1.0") }
plugins { `kotlin-dsl` } repositories { gradlePluginPortal() } dependencies { implementation("com.github.jengelman.gradle.plugins:shadow:2.0.4") implementation("org.jetbrains.kotlinx:binary-compatibility-validator:0.9.0") implementation("io.github.gradle-nexus:publish-plugin:1.1.0") }
Revert shadow plugin update due to incompatibility with tests
Revert shadow plugin update due to incompatibility with tests
Kotlin
apache-2.0
Kotlin/dokka,Kotlin/dokka,Kotlin/dokka,Kotlin/dokka,Kotlin/dokka,Kotlin/dokka
d05c44ffd8bf5b61f9ab160323170cca42240346
samples/copy/build.gradle.kts
samples/copy/build.gradle.kts
import org.gradle.api.file.* import org.gradle.api.tasks.* import org.apache.tools.ant.filters.* //for including in the copy task val dataContent = copySpec { it.from("src/data") it.include("*.data") } task<Copy>("initConfig") { from("src/main/config").let { it as CopySpec }.apply { include("**/*...
import org.gradle.api.tasks.* import org.apache.tools.ant.filters.* //for including in the copy task val dataContent = copySpec { it.from("src/data") it.include("*.data") } task<Copy>("initConfig") { from("src/main/config") { it.include("**/*.properties") it.include("**/*.xml") it...
Revert "Fix copy sample to work against latest Gradle API"
Revert "Fix copy sample to work against latest Gradle API" This reverts commit d49facf0025572e3a66987c48af4ed8914aeeb88 since the motivating changes in the Gradle API were also reverted.
Kotlin
apache-2.0
gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/gradle...
e3a67601b22ac76b71ae3883355b05310c35a52f
library/src/main/kotlin/me/proxer/library/enums/Medium.kt
library/src/main/kotlin/me/proxer/library/enums/Medium.kt
package me.proxer.library.enums import com.squareup.moshi.Json import com.squareup.moshi.JsonClass /** * Enum holding the available mediums. * * @author Ruben Gees */ @JsonClass(generateAdapter = false) enum class Medium { @Json(name = "animeseries") ANIMESERIES, @Json(name = "movie") MOVIE, ...
package me.proxer.library.enums import com.squareup.moshi.Json import com.squareup.moshi.JsonClass /** * Enum holding the available mediums. * * @author Ruben Gees */ @JsonClass(generateAdapter = false) enum class Medium { @Json(name = "animeseries") ANIMESERIES, @Json(name = "movie") MOVIE, ...
Add support for web novels
Add support for web novels
Kotlin
mit
proxer/ProxerLibJava
65401d90fa02c6a5cc6a7ae53eaa58cdb028c77c
src/test/kotlin/org/gradle/script/lang/kotlin/support/KotlinCompilerTest.kt
src/test/kotlin/org/gradle/script/lang/kotlin/support/KotlinCompilerTest.kt
package org.gradle.script.lang.kotlin.support import org.gradle.script.lang.kotlin.TestWithTempFiles import org.gradle.script.lang.kotlin.loggerFor import org.hamcrest.CoreMatchers.equalTo import org.hamcrest.MatcherAssert.assertThat import org.junit.Test import java.io.File import java.net.URLClassLoader class K...
package org.gradle.script.lang.kotlin.support import org.gradle.script.lang.kotlin.TestWithTempFiles import org.gradle.script.lang.kotlin.loggerFor import org.hamcrest.CoreMatchers.equalTo import org.hamcrest.MatcherAssert.assertThat import org.junit.Test import java.io.File import java.net.URLClassLoader class K...
Improve pop culture reference in test case
Improve pop culture reference in test case
Kotlin
apache-2.0
blindpirate/gradle,robinverduijn/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,robinverduijn/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/g...
55981aa114c94fb05c94a05c38ec52e72f1d77ed
app/src/main/kotlin/com/github/ramonrabello/kiphy/trends/TrendingEndpoint.kt
app/src/main/kotlin/com/github/ramonrabello/kiphy/trends/TrendingEndpoint.kt
package com.github.ramonrabello.kiphy.trends import com.github.ramonrabello.kiphy.data.model.Trending import retrofit2.Call import retrofit2.http.GET /** * Retrofit interface for Trending API endpoint. */ interface TrendingEndpoint { @GET("/v1/gifs/trending") fun load(): Call<Trending> }
package com.github.ramonrabello.kiphy.trends import com.github.ramonrabello.kiphy.trends.model.TrendingResponse import retrofit2.Call import retrofit2.http.GET /** * Retrofit interface for Trending API endpoint. */ interface TrendingEndpoint { @GET("/v1/gifs/trending") fun load(): Call<TrendingResponse> }
Update class aafter renaming class.
Update class aafter renaming class.
Kotlin
apache-2.0
ramonrabello/Kiphy
52aeea3fcf586e7feefdda51779478244cf28fe7
.teamcity/ReleaseType.kt
.teamcity/ReleaseType.kt
enum class ReleaseType(val gradleProperty: String, val username: String, val password: String, val userProvidedVersion: Boolean = false) { Snapshot("snapshot", "bot-build-tool", "credentialsJSON:fc942743-b732-4204-a131-26bb066c2073"), Alpha("alpha", "bot-build-tool", "credentialsJSON:fc942743-b732-4204-a131-26b...
const val gradleInternalRepositoryUsername = "%gradle.internal.repository.build-tool.publish.username%" const val gradleInternalRepositoryPassword = "%gradle.internal.repository.build-tool.publish.password%" enum class ReleaseType(val gradleProperty: String, val username: String, val password: String, val userProvided...
Use TC variable instead of credentials JSON
Use TC variable instead of credentials JSON
Kotlin
apache-2.0
adammurdoch/native-platform,adammurdoch/native-platform,adammurdoch/native-platform,adammurdoch/native-platform
2c4a56e76dcc41d121a524459cb2353063839943
src/main/kotlin/cn/yiiguxing/plugin/translate/action/TerminalTranslationAction.kt
src/main/kotlin/cn/yiiguxing/plugin/translate/action/TerminalTranslationAction.kt
package cn.yiiguxing.plugin.translate.action import cn.yiiguxing.plugin.translate.adaptedMessage import cn.yiiguxing.plugin.translate.service.TranslationUIManager import com.intellij.openapi.actionSystem.AnActionEvent import com.intellij.openapi.project.DumbAwareAction import com.intellij.terminal.JBTerminalWidget cl...
package cn.yiiguxing.plugin.translate.action import cn.yiiguxing.plugin.translate.adaptedMessage import cn.yiiguxing.plugin.translate.service.TranslationUIManager import com.intellij.openapi.actionSystem.AnActionEvent import com.intellij.openapi.project.DumbAwareAction import com.intellij.terminal.JBTerminalWidget cl...
Fix text of terminal translation action
Fix text of terminal translation action
Kotlin
mit
YiiGuxing/TranslationPlugin,YiiGuxing/TranslationPlugin
0e947377724bd32da28b1707a33c9d79b9f53386
javalin/src/main/java/io/javalin/http/sse/SseClient.kt
javalin/src/main/java/io/javalin/http/sse/SseClient.kt
package io.javalin.http.sse import io.javalin.http.Context import io.javalin.plugin.json.jsonMapper import java.io.Closeable import java.io.InputStream class SseClient internal constructor( private val closeSse: CloseSseFunction, @JvmField val ctx: Context ) : Closeable { private val emitter = Emitter(ct...
package io.javalin.http.sse import io.javalin.http.Context import io.javalin.plugin.json.jsonMapper import java.io.Closeable import java.io.InputStream class SseClient internal constructor( private val closeSse: CloseSseFunction, @JvmField val ctx: Context ) : Closeable { private val emitter = Emitter(ct...
Make sure connection is closed properly
[sse] Make sure connection is closed properly
Kotlin
apache-2.0
tipsy/javalin,tipsy/javalin,tipsy/javalin,tipsy/javalin
a5684668d9bba46bb442aaaa06594c4f8267e0f1
tools/acornui-texture-packer/build.gradle.kts
tools/acornui-texture-packer/build.gradle.kts
plugins { kotlin("multiplatform") `maven-publish` } val KOTLIN_LANGUAGE_VERSION: String by extra val KOTLIN_JVM_TARGET: String by extra kotlin { js { compilations.named("test") { runtimeDependencyFiles } compilations.all { kotlinOptions { modu...
plugins { kotlin("multiplatform") `maven-publish` } val KOTLIN_LANGUAGE_VERSION: String by extra val KOTLIN_JVM_TARGET: String by extra kotlin { js { compilations.named("test") { runtimeDependencyFiles } compilations.all { kotlinOptions { modu...
Add lwjgl backend dependency for texture-packer
Add lwjgl backend dependency for texture-packer
Kotlin
apache-2.0
AcornUI/Acorn,AcornUI/Acorn,AcornUI/Acorn
446a9ba00b3770ca8908d2bf89c98da7b77eb7b4
detekt-sonar-kotlin/src/main/kotlin/io/gitlab/arturbosch/detekt/sonar/NoAutoCorrectConfig.kt
detekt-sonar-kotlin/src/main/kotlin/io/gitlab/arturbosch/detekt/sonar/NoAutoCorrectConfig.kt
package io.gitlab.arturbosch.detekt.sonar import io.gitlab.arturbosch.detekt.api.Config /** * Config wrapper for disabling automatic correction */ @Suppress("UNCHECKED_CAST") class NoAutoCorrectConfig(private val config: Config): Config { override fun subConfig(key: String): Config = config.subConfig(key) ...
package io.gitlab.arturbosch.detekt.sonar import io.gitlab.arturbosch.detekt.api.Config /** * Config wrapper for disabling automatic correction */ @Suppress("UNCHECKED_CAST") class NoAutoCorrectConfig(private val config: Config) : Config { override fun subConfig(key: String): Config = config.subConfig(key) over...
Indent with tabs an use == instead of equals
Indent with tabs an use == instead of equals
Kotlin
apache-2.0
rock3r/detekt,MyDogTom/detekt,Mauin/detekt,arturbosch/detekt,rock3r/detekt,arturbosch/detekt,Mauin/detekt,arturbosch/detekt,rock3r/detekt,Mauin/detekt,Mauin/detekt
c9fe032185e0fbb86003aadbe5f2ba9345898f14
src/test/kotlin/at/phatbl/swiftpm/tasks/DumpPackageTaskSpek.kt
src/test/kotlin/at/phatbl/swiftpm/tasks/DumpPackageTaskSpek.kt
package at.phatbl.swiftpm.tasks import org.gradle.api.Project import org.gradle.api.Task import org.gradle.testfixtures.ProjectBuilder import org.jetbrains.spek.api.Spek import org.jetbrains.spek.api.dsl.* import kotlin.test.assertNotNull import kotlin.test.assertTrue object DumpPackageTaskSpek: Spek({ describe("...
package at.phatbl.swiftpm.tasks import org.gradle.api.Project import org.gradle.testfixtures.ProjectBuilder import org.jetbrains.spek.api.Spek import org.jetbrains.spek.api.dsl.* import kotlin.test.assertNotNull import kotlin.test.assertTrue object DumpPackageTaskSpek: Spek({ describe("dump package task") { ...
Add dump package tokenized command example
Add dump package tokenized command example
Kotlin
mit
phatblat/SwiftPM-Plugin,phatblat/SwiftPM-Plugin
bf25ced9210fdb22bdc7fb7530a64b2546e516b4
http4k-serverless/lambda/integration-test/src/test/kotlin/org/http4k/serverless/lambda/client/client.kt
http4k-serverless/lambda/integration-test/src/test/kotlin/org/http4k/serverless/lambda/client/client.kt
package org.http4k.serverless.lambda.client import org.http4k.aws.AwsApiGatewayApiClient import org.http4k.aws.AwsLambdaApiClient import org.http4k.aws.AwsProfile import org.http4k.aws.AwsRestApiGatewayApiClient import org.http4k.aws.Region import org.http4k.aws.awsClientFor fun AwsProfile.apiGatewayApiClient() = Aws...
package org.http4k.serverless.lambda.client import okhttp3.OkHttpClient import org.http4k.aws.AwsApiGatewayApiClient import org.http4k.aws.AwsLambdaApiClient import org.http4k.aws.AwsProfile import org.http4k.aws.AwsRestApiGatewayApiClient import org.http4k.aws.Region import org.http4k.aws.awsClientFilterFor import or...
Use okhttp to deploy test lambda
Use okhttp to deploy test lambda
Kotlin
apache-2.0
http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k
c0f3db7c9b1f68632275ea929d67248eecd52a2c
ktor-core/src/org/jetbrains/ktor/launcher/DefaultCommandLine.kt
ktor-core/src/org/jetbrains/ktor/launcher/DefaultCommandLine.kt
package org.jetbrains.ktor.launcher import com.typesafe.config.* import org.jetbrains.ktor.application.* import java.io.* fun buildDefaultConfig(args: Array<String>): ApplicationConfig { val argsMap = args.map { it.splitPair('=') }.filterNotNull().toMap() val jar = argsMap["-jar"]?.let { File(it).toURI().toU...
package org.jetbrains.ktor.launcher import com.typesafe.config.* import org.jetbrains.ktor.application.* import java.io.* fun buildDefaultConfig(args: Array<String>): ApplicationConfig { val argsMap = args.map { it.splitPair('=') }.filterNotNull().toMap() val jar = argsMap["-jar"]?.let { File(it).toURI().toU...
Remove "<>" from log name, make it configurable
Remove "<>" from log name, make it configurable
Kotlin
apache-2.0
ktorio/ktor,ktorio/ktor,ktorio/ktor,ktorio/ktor
40b695c00ea4a72c604428059eaeab0e240e5021
build.gradle.kts
build.gradle.kts
plugins { `java-library` } val majorMinorPatchVersion = "0.7.1" version = majorMinorPatchVersion.let { if (project.hasProperty("isReleaseBuild")) "${it}" else "${it}-SNAPSHOT" } val junitVersion by extra { "5.8.2" } val junitQuickcheckVersion by extra { "1.0" } val slf4jVersion by extra { "1.7.36" } dependencie...
plugins { `java-library` } val majorMinorPatchVersion = "0.7.1" version = majorMinorPatchVersion.let { if (project.hasProperty("isReleaseBuild")) "${it}" else "${it}-SNAPSHOT" } val junitVersion by extra { "5.8.2" } val junitQuickcheckVersion by extra { "1.0" } val slf4jVersion by extra { "1.7.36" } dependencie...
Add `Automatic-Module-Name` to library manifest
Add `Automatic-Module-Name` to library manifest
Kotlin
bsd-2-clause
usethesource/capsule,usethesource/capsule
885c05fcd4effe7da272604fe4f3ac183fa9fa4c
app/src/main/java/pl/temomuko/autostoprace/data/remote/ErrorResponseMessageProvider.kt
app/src/main/java/pl/temomuko/autostoprace/data/remote/ErrorResponseMessageProvider.kt
package pl.temomuko.autostoprace.data.remote import okhttp3.ResponseBody import pl.temomuko.autostoprace.data.remote.model.ErrorResponseEntity import retrofit2.Converter import retrofit2.Response import retrofit2.Retrofit import javax.inject.Inject class ErrorResponseMessageProvider @Inject constructor( private v...
package pl.temomuko.autostoprace.data.remote import okhttp3.ResponseBody import pl.temomuko.autostoprace.data.remote.model.ErrorResponseEntity import retrofit2.Converter import retrofit2.Response import retrofit2.Retrofit import javax.inject.Inject class ErrorResponseMessageProvider @Inject constructor( private v...
Add null check to error message provider
Add null check to error message provider
Kotlin
apache-2.0
TeMoMuKo/AutoStopRace,TeMoMuKo/AutoStopRace-Android,TeMoMuKo/AutoStopRace-Android,TeMoMuKo/AutoStopRace,TeMoMuKo/AutoStopRace-Android
d561c74beef7bd8826d73b01277b8ce3f457816e
buildSrc/src/main/kotlin/reactivecircus/flowbinding/Environment.kt
buildSrc/src/main/kotlin/reactivecircus/flowbinding/Environment.kt
package reactivecircus.flowbinding val isCiBuild: Boolean get() = System.getenv("CI") == "true"
package reactivecircus.flowbinding import org.gradle.api.Project @Suppress("UnstableApiUsage") val Project.isCiBuild: Boolean get() = providers.environmentVariable("CI").forUseAtConfigurationTime().orNull == "true"
Switch to ProviderFactory API for fetching environment variable and gradle properties during configuration.
Switch to ProviderFactory API for fetching environment variable and gradle properties during configuration.
Kotlin
apache-2.0
ReactiveCircus/FlowBinding,ReactiveCircus/FlowBinding
a21645158db409e969a8c438dece81fa374d3f05
buildSrc/subprojects/build/build.gradle.kts
buildSrc/subprojects/build/build.gradle.kts
dependencies { compile(project(":buildPlatform")) compile("commons-lang:commons-lang:2.6") compile("com.google.guava:guava:26.0-jre") compile("org.asciidoctor:asciidoctorj-pdf:1.5.0-alpha.11") compile("org.asciidoctor:asciidoctorj:1.5.5") compile("org.asciidoctor:asciidoctor-gradle-plugin:1.5.3"...
dependencies { implementation(project(":buildPlatform")) implementation("commons-lang:commons-lang:2.6") api("com.google.guava:guava:26.0-jre") implementation("org.asciidoctor:asciidoctorj-pdf:1.5.0-alpha.11") implementation("org.asciidoctor:asciidoctorj:1.5.5") implementation("org.asciidoctor:a...
Use implementation and api configurations instead of compile
Use implementation and api configurations instead of compile
Kotlin
apache-2.0
gradle/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,gradle/gradle,r...
a4ecb4a807276ef7c3fae6ab83463ce004fc7dbc
samples/precompiled-script-plugin/plugin/build.gradle.kts
samples/precompiled-script-plugin/plugin/build.gradle.kts
plugins { `java-gradle-plugin` kotlin("jvm") version embeddedKotlinVersion `kotlin-dsl` `maven-publish` } group = "my" version = "1.0" apply<org.gradle.kotlin.dsl.plugins.precompiled.PrecompiledScriptPlugins>() dependencies { kotlinCompilerPluginClasspath(gradleApi()) kotlinCompilerPluginCla...
plugins { `java-gradle-plugin` kotlin("jvm") version embeddedKotlinVersion `kotlin-dsl` `maven-publish` } group = "my" version = "1.0" apply<org.gradle.kotlin.dsl.plugins.precompiled.PrecompiledScriptPlugins>() publishing { repositories { maven(url = "build/repository") } } reposito...
Remove unnecessary kotlinCompilerPluginClasspath dependencies from sample
Remove unnecessary kotlinCompilerPluginClasspath dependencies from sample
Kotlin
apache-2.0
robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,gradle/gradle-script-kotlin,blindpirate/gradle,gradle/gradle-script-kotlin,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,gradle/gradle,gradle/gradle,robinverduijn...
3a3b5415a748ad75bc133097e9d7b7cfd0d73cb8
src/main/kotlin/com/github/michaelbull/result/On.kt
src/main/kotlin/com/github/michaelbull/result/On.kt
package com.github.michaelbull.result /** * Invokes a [callback] if this [Result] is [Ok]. */ inline infix fun <V, E> Result<V, E>.onSuccess(callback: (V) -> Unit) = mapBoth(callback, {}) /** * Invokes a [callback] if this [Result] is [Err]. */ inline infix fun <V, E> Result<V, E>.onFailure(callback: (E) -> Unit)...
package com.github.michaelbull.result /** * Invokes an [action] if this [Result] is [Ok]. */ inline infix fun <V, E> Result<V, E>.onSuccess(action: (V) -> Unit): Result<V, E> { if (this is Ok) { action(value) } return this } /** * Invokes an [action] if this [Result] is [Err]. */ inline infix...
Return the Result in on{Success,Failure}
Return the Result in on{Success,Failure} This facilitates chaining onSuccess/onFailure calls that may perform arbitrary side-effects, such as logging.
Kotlin
isc
michaelbull/kotlin-result
f84471f0f93c74edc5f8ade3c26bc382c7ca1234
build-logic/settings.gradle.kts
build-logic/settings.gradle.kts
/* * Copyright 2022 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
/* * Copyright 2022 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
Remove type-safe project accessors feature preview
Remove type-safe project accessors feature preview
Kotlin
apache-2.0
android/nowinandroid,android/nowinandroid
5813dfab08a4fd763269af27100486d203071684
ktor-samples/ktor-samples-async/src/org/jetbrains/ktor/samples/async/AsyncApplication.kt
ktor-samples/ktor-samples-async/src/org/jetbrains/ktor/samples/async/AsyncApplication.kt
package org.jetbrains.ktor.samples.async import kotlinx.html.* import kotlinx.html.stream.* import org.jetbrains.ktor.application.* import org.jetbrains.ktor.http.* import org.jetbrains.ktor.routing.* import java.util.* import java.util.concurrent.* import kotlin.util.* class AsyncApplication(config: ApplicationConfi...
package org.jetbrains.ktor.samples.async import kotlinx.html.* import kotlinx.html.stream.* import org.jetbrains.ktor.application.* import org.jetbrains.ktor.http.* import org.jetbrains.ktor.routing.* import java.util.* import java.util.concurrent.* class AsyncApplication(config: ApplicationConfig) : Application(conf...
Improve Async sample with possibility to test it from browser and report time in queue.
Improve Async sample with possibility to test it from browser and report time in queue.
Kotlin
apache-2.0
ktorio/ktor,ktorio/ktor,ktorio/ktor,ktorio/ktor
a64ccb8f24dcfd102281a190394a05485ee390e5
src/test/kotlin/at/phatbl/swiftpm/tasks/DumpPackageTaskSpec.kt
src/test/kotlin/at/phatbl/swiftpm/tasks/DumpPackageTaskSpec.kt
package at.phatbl.swiftpm.tasks import org.gradle.api.Project import org.gradle.api.Task import org.gradle.testfixtures.ProjectBuilder import org.jetbrains.spek.api.Spek import org.jetbrains.spek.api.dsl.* import kotlin.test.assertEquals object DumpPackageTaskSpec: Spek({ describe("dump package task") { v...
package at.phatbl.swiftpm.tasks import org.gradle.api.Project import org.gradle.api.Task import org.gradle.testfixtures.ProjectBuilder import org.jetbrains.spek.api.Spek import org.jetbrains.spek.api.dsl.* import kotlin.test.assertEquals object DumpPackageTaskSpec: Spek({ describe("dump package task") { v...
Fix reference to kotlin class from spec
Fix reference to kotlin class from spec
Kotlin
mit
phatblat/SwiftPM-Plugin,phatblat/SwiftPM-Plugin
9e96c81d0ba3e87a06226a4f52023cc8a9569030
processor/src/main/kotlin/io/michaelrocks/lightsaber/processor/io/FileExtensions.kt
processor/src/main/kotlin/io/michaelrocks/lightsaber/processor/io/FileExtensions.kt
/* * Copyright 2015 Michael Rozumyanskiy * * 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 a...
/* * Copyright 2015 Michael Rozumyanskiy * * 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 a...
Return empty sink and source for a non-existent input file
Return empty sink and source for a non-existent input file
Kotlin
apache-2.0
MichaelRocks/lightsaber,MichaelRocks/lightsaber
b5fd8908a7b56592952d60386db8a4650d5c40fa
buildSrc/src/main/kotlin/com/bmuschko/gradle/docker/UserGuidePlugin.kt
buildSrc/src/main/kotlin/com/bmuschko/gradle/docker/UserGuidePlugin.kt
package com.bmuschko.gradle.docker import org.asciidoctor.gradle.AsciidoctorPlugin import org.asciidoctor.gradle.AsciidoctorTask import org.gradle.api.Plugin import org.gradle.api.Project import org.gradle.api.tasks.util.PatternSet import org.gradle.kotlin.dsl.apply import org.gradle.kotlin.dsl.delegateClosureOf impor...
package com.bmuschko.gradle.docker import org.asciidoctor.gradle.AsciidoctorExtension import org.asciidoctor.gradle.AsciidoctorPlugin import org.asciidoctor.gradle.AsciidoctorTask import org.gradle.api.Plugin import org.gradle.api.Project import org.gradle.api.tasks.util.PatternSet import org.gradle.kotlin.dsl.apply i...
Use the same version of AsciidoctorJ to avoid classpath issues
Use the same version of AsciidoctorJ to avoid classpath issues
Kotlin
apache-2.0
bmuschko/gradle-docker-plugin,bmuschko/gradle-docker-plugin,bmuschko/gradle-docker-plugin
0d86734c3599184ff18ee545035c7ada1dd9ee7b
android/app/src/main/java/com/barzinga/view/TransactionFinishedActivity.kt
android/app/src/main/java/com/barzinga/view/TransactionFinishedActivity.kt
package com.barzinga.view import android.content.Context import android.content.Intent import android.os.Bundle import android.support.v7.app.AppCompatActivity import com.barzinga.R import kotlinx.android.synthetic.main.activity_transaction_finished.* import java.util.* import kotlin.concurrent.timerTask class Transa...
package com.barzinga.view import android.content.Context import android.content.Intent import android.os.Bundle import android.support.v7.app.AppCompatActivity import com.barzinga.R import kotlinx.android.synthetic.main.activity_transaction_finished.* import java.util.* import kotlin.concurrent.timerTask class Transa...
Fix to not create another main activity when transction finished
Fix to not create another main activity when transction finished
Kotlin
apache-2.0
jeffersonvenancio/BarzingaNow,jeffersonvenancio/BarzingaNow,jeffersonvenancio/BarzingaNow,jeffersonvenancio/BarzingaNow,jeffersonvenancio/BarzingaNow,jeffersonvenancio/BarzingaNow
5574f0f01ecb4f38cad51eaa595de819cf8d7f4e
dependencies-overview/src/main/kotlin/com/vgaidarji/dependencies/overview/DependenciesOverviewTask.kt
dependencies-overview/src/main/kotlin/com/vgaidarji/dependencies/overview/DependenciesOverviewTask.kt
package com.vgaidarji.dependencies.overview import org.gradle.api.DefaultTask import org.gradle.api.tasks.TaskAction open class DependenciesOverviewTask : DefaultTask() { override fun getDescription(): String { return "Generates project dependencies overview table from project dependencies" } ov...
package com.vgaidarji.dependencies.overview import org.gradle.api.DefaultTask import org.gradle.api.tasks.TaskAction open class DependenciesOverviewTask : DefaultTask() { init { description = "Generates project dependencies overview table from project dependencies" group = "documentation" } ...
Move task configuration to init block
Move task configuration to init block
Kotlin
apache-2.0
vgaidarji/dependencies-overview,vgaidarji/dependencies-overview,vgaidarji/dependencies-overview
0c2d515a65f90d8a4d81e5f45849c58444238bde
src/main/java/uk/co/reecedunn/intellij/plugin/marklogic/query/vars/MapVarsBuilder.kt
src/main/java/uk/co/reecedunn/intellij/plugin/marklogic/query/vars/MapVarsBuilder.kt
/* * Copyright (C) 2017 Reece H. Dunn * * 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 t...
/* * Copyright (C) 2017 Reece H. Dunn * * 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 t...
Use string variable references when building the map vars strings.
Use string variable references when building the map vars strings.
Kotlin
apache-2.0
rhdunn/marklogic-intellij-plugin
2f5c88205783e6b8b633a5e7cd26fab301b5ff5b
loritta-discord/src/main/java/net/perfectdreams/loritta/tables/SentYouTubeVideoIds.kt
loritta-discord/src/main/java/net/perfectdreams/loritta/tables/SentYouTubeVideoIds.kt
package net.perfectdreams.loritta.tables import org.jetbrains.exposed.dao.id.EntityID import org.jetbrains.exposed.dao.id.IdTable import org.jetbrains.exposed.sql.Column object SentYouTubeVideoIds : IdTable<String>() { val channelId = text("channel") val videoId = text("video") override val id: Column<EntityID<Str...
package net.perfectdreams.loritta.tables import org.jetbrains.exposed.dao.id.EntityID import org.jetbrains.exposed.dao.id.IdTable import org.jetbrains.exposed.sql.Column object SentYouTubeVideoIds : IdTable<String>() { val channelId = text("channel").index() val videoId = text("video").index() override val id: Col...
Add indexes to sent videos channel IDs/video IDs fields
Add indexes to sent videos channel IDs/video IDs fields
Kotlin
agpl-3.0
LorittaBot/Loritta,LorittaBot/Loritta,LorittaBot/Loritta,LorittaBot/Loritta
b53ca9b42390c23a599ad6ae7e8bf0c36da17b6f
app/src/main/java/net/ericschrag/takotlin/view/RecipeView.kt
app/src/main/java/net/ericschrag/takotlin/view/RecipeView.kt
package net.ericschrag.takotlin.view import android.app.Activity import android.view.View import android.widget.TextView import net.ericschrag.takotlin.R import org.jetbrains.anko.* class RecipeView : AnkoComponent<Activity> { var recipeTitle: TextView? = null override fun createView(ui: AnkoContext<Activity...
package net.ericschrag.takotlin.view import android.app.Activity import android.view.View import android.widget.TextView import net.ericschrag.takotlin.R import org.jetbrains.anko.* class RecipeView : AnkoComponent<Activity> { var recipeTitle: TextView? = null override fun createView(ui: AnkoContext<Activity...
Add some padding to the main layout
Add some padding to the main layout
Kotlin
mit
Kusand/TaKotlin,Kusand/TaKotlin
615df63c61b2e6904f4609ca891c86c7973f5926
leakcanary-android-instrumentation/src/main/java/leakcanary/DetectLeaksAfterTestSuccess.kt
leakcanary-android-instrumentation/src/main/java/leakcanary/DetectLeaksAfterTestSuccess.kt
package leakcanary import org.junit.rules.TestRule import org.junit.runner.Description import org.junit.runners.model.Statement /** * [TestRule] that invokes [LeakAssertions.assertNoLeaks] after the test * successfully evaluates. Pay attention to where you set up this rule in the * rule chain as you might detect d...
package leakcanary import org.junit.rules.TestRule import org.junit.runner.Description import org.junit.runners.model.Statement /** * [TestRule] that invokes [LeakAssertions.assertNoLeaks] after the test * successfully evaluates. Pay attention to where you set up this rule in the * rule chain as you might detect d...
Clear watched refs on rule end
Clear watched refs on rule end Fixes #2297
Kotlin
apache-2.0
square/leakcanary,square/leakcanary,square/leakcanary
516ae314353459ec65f498a64eb5254dcc0fe24a
subprojects/data-structures/build.gradle.kts
subprojects/data-structures/build.gradle.kts
plugins { id("gradlebuild.distribution.implementation-java") } dependencies { implementation(project(":base-services")) }
plugins { id("gradlebuild.distribution.implementation-java") } description = "A set of generic data structures." dependencies { implementation(project(":base-services")) }
Add description to `:data-structures` project
Add description to `:data-structures` project
Kotlin
apache-2.0
blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,grad...
e125912c6724f94fbbd45cb7ad183abde0ed765c
subprojects/logging/build.gradle.kts
subprojects/logging/build.gradle.kts
plugins { id("gradlebuild.distribution.api-java") } description = "Logging infrastructure" gradlebuildJava.usedInWorkers() dependencies { api(libs.slf4jApi) implementation(project(":base-services")) implementation(project(":messaging")) implementation(project(":cli")) implementation(project(...
plugins { id("gradlebuild.distribution.api-java") } description = "Logging infrastructure" gradlebuildJava.usedInWorkers() dependencies { api(libs.slf4jApi) implementation(project(":base-services")) implementation(project(":messaging")) implementation(project(":cli")) implementation(project(...
Upgrade 'logging' to Groovy 3
Upgrade 'logging' to Groovy 3
Kotlin
apache-2.0
blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpira...
546089b6192f1e1805c335d53d45a9b55c3af2bf
js/src/test/kotlin/trees.kt
js/src/test/kotlin/trees.kt
package html4k.tests import html4k.dom.append import html4k.js.div import html4k.p import org.w3c.dom.asList import kotlin.browser.document import kotlin.test.assertEquals import kotlin.test.assertTrue import org.junit.Test as test class DomTreeImplTest { test fun simpleTree() { val node = document.body!!...
package html4k.tests import html4k.dom.append import html4k.js.div import html4k.js.onClickFunction import html4k.p import org.w3c.dom.events.Event import org.w3c.dom.HTMLDivElement import org.w3c.dom.HTMLElement import org.w3c.dom.asList import kotlin.dom.asList import kotlin.browser.document import kotlin.test.asser...
Add test for event handling
Add test for event handling
Kotlin
apache-2.0
kotlinx/kotlinx.html,kotlinx/kotlinx.html,kotlinx/kotlinx.html
fa2ffd1c2486746a5d7083d739eb79100f246b08
library/src/main/kotlin/me/proxer/library/api/comment/CommentEndpoint.kt
library/src/main/kotlin/me/proxer/library/api/comment/CommentEndpoint.kt
package me.proxer.library.api.comment import me.proxer.library.ProxerCall import me.proxer.library.api.Endpoint import me.proxer.library.entity.info.Comment /** * Endpoint for sending error logs. * * @author Ruben Gees */ class CommentEndpoint internal constructor( private val internalApi: InternalApi, pr...
package me.proxer.library.api.comment import me.proxer.library.ProxerCall import me.proxer.library.api.Endpoint import me.proxer.library.entity.info.Comment /** * Endpoint for getting a [Comment] either by its [id] or the [entryId] of the associated * [me.proxer.library.entity.info.Entry]. * * @author Ruben Gees ...
Fix incorrect documentation for new comment api
Fix incorrect documentation for new comment api
Kotlin
mit
proxer/ProxerLibJava
278eed458a49dc0e41d0556c8734a434a0c36cef
app/src/main/java/acr/browser/lightning/animation/AnimationUtils.kt
app/src/main/java/acr/browser/lightning/animation/AnimationUtils.kt
package acr.browser.lightning.animation import android.support.annotation.DrawableRes import android.view.animation.AccelerateDecelerateInterpolator import android.view.animation.Animation import android.view.animation.Transformation import android.widget.ImageView /** * Animation specific helper code. */ object An...
package acr.browser.lightning.animation import android.support.annotation.DrawableRes import android.view.animation.AccelerateDecelerateInterpolator import android.view.animation.Animation import android.view.animation.Transformation import android.widget.ImageView /** * Animation specific helper code. */ object An...
Make factory method more idiomatic
Make factory method more idiomatic
Kotlin
mpl-2.0
anthonycr/Lightning-Browser,anthonycr/Lightning-Browser,anthonycr/Lightning-Browser,anthonycr/Lightning-Browser
54e1a79493b14e0220f93488fe7bb94f111013cc
app/src/main/kotlin/com/popalay/cardme/utils/behaviors/FabScrollBehavior.kt
app/src/main/kotlin/com/popalay/cardme/utils/behaviors/FabScrollBehavior.kt
package com.popalay.cardme.utils.behaviors import android.content.Context import android.os.Handler import android.support.design.widget.CoordinatorLayout import android.support.design.widget.FloatingActionButton import android.support.v4.view.ViewCompat import android.util.AttributeSet import android.view.View import...
package com.popalay.cardme.utils.behaviors import android.content.Context import android.os.Handler import android.support.design.widget.CoordinatorLayout import android.support.design.widget.FloatingActionButton import android.support.v4.view.ViewCompat import android.util.AttributeSet import android.view.View class...
Add possibility to move card to the trash from card details screen
Add possibility to move card to the trash from card details screen
Kotlin
apache-2.0
Popalay/Cardme,Popalay/Cardme,Popalay/Cardme
64acb6380b95b4492ce1102248eccc1a69502116
modules/collections/build.gradle.kts
modules/collections/build.gradle.kts
/* * Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license. */ plugins { kotlin("multiplatform") `maven-publish` id("com.jfrog.bintray") } kotlin { jvm() js() configure(targets) { configureMavenPublication() } sourceSets { getBy...
/* * Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license. */ plugins { kotlin("multiplatform") `maven-publish` id("com.jfrog.bintray") } kotlin { jvm() js() macos() ios() configure(targets) { configureMavenPublication() } setu...
Add iOS and macOS support for collections split
Add iOS and macOS support for collections split
Kotlin
apache-2.0
LouisCAD/Splitties,LouisCAD/Splitties,LouisCAD/Splitties
7b5e8666d5bb16b3daa2bd9f04829e20934e8d2d
modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/Constants.kt
modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/Constants.kt
package com.beust.kobalt import com.beust.kobalt.misc.KFiles object Constants { val BUILD_FILE_NAME = "Build.kt" val BUILD_FILE_DIRECTORY = "kobalt/src" val BUILD_FILE_PATH = KFiles.joinDir(BUILD_FILE_DIRECTORY, BUILD_FILE_NAME) internal val DEFAULT_REPOS = listOf( "http://repo1.maven.org...
package com.beust.kobalt import com.beust.kobalt.misc.KFiles object Constants { val BUILD_FILE_NAME = "Build.kt" val BUILD_FILE_DIRECTORY = "kobalt/src" val BUILD_FILE_PATH = KFiles.joinDir(BUILD_FILE_DIRECTORY, BUILD_FILE_NAME) internal val DEFAULT_REPOS = listOf( "http://repo1.maven.org...
Add the Sonatype snapshot directory.
Add the Sonatype snapshot directory.
Kotlin
apache-2.0
cbeust/kobalt,ethauvin/kobalt,cbeust/kobalt,evanchooly/kobalt,evanchooly/kobalt,cbeust/kobalt,ethauvin/kobalt,evanchooly/kobalt,ethauvin/kobalt,evanchooly/kobalt,ethauvin/kobalt
6c7fac2eafb062911f952249455ec43975741f1c
runtime/src/main/kotlin/kotlin/native/concurrent/Annotations.kt
runtime/src/main/kotlin/kotlin/native/concurrent/Annotations.kt
/* * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ package kotlin.native.concurrent /** * Marks a top level variable with a backing field or an object as thread local. * The object remains mutable and it is possible ...
/* * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ package kotlin.native.concurrent /** * Marks a top level property with a backing field or an object as thread local. * The object remains mutable and it is possible ...
Correct docs of ThreadLocal and SharedImmutable annotations
Correct docs of ThreadLocal and SharedImmutable annotations - clarify that they have effect only in K/N - correct possible application targets of SharedImmutable KT-36245
Kotlin
apache-2.0
JetBrains/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,wiltonlazary/kotlin-native,wiltonlazary/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,wiltonlazary/kotlin-native,JetBrains/kotlin-native,wiltonlazary/kotlin-nat...
9a96030e1e7694a532c01ef1963687a186272ca3
ktor-http/src/io/ktor/http/URLUtils.kt
ktor-http/src/io/ktor/http/URLUtils.kt
package io.ktor.http import io.ktor.util.* import java.net.* fun URLBuilder.takeFrom(uri: URI) { port = uri.port.takeIf { it > 0 } ?: if (uri.scheme == "https") 443 else 80 protocol = URLProtocol.createOrDefault(uri.scheme, port) host = uri.host val path = uri.path encodedPath = when (path) { ...
package io.ktor.http import io.ktor.util.* import java.net.* fun URLBuilder.takeFrom(uri: URI) { port = uri.port.takeIf { it > 0 } ?: if (uri.scheme == "https") 443 else 80 protocol = URLProtocol.createOrDefault(uri.scheme, port) host = uri.host val path = uri.path encodedPath = when (path) { ...
Fix empty path in http-client request
Fix empty path in http-client request
Kotlin
apache-2.0
ktorio/ktor,ktorio/ktor,ktorio/ktor,ktorio/ktor
62d7cab7c081bea3a559c5a875172d89b91c6b0f
subprojects/resources-s3/build.gradle.kts
subprojects/resources-s3/build.gradle.kts
plugins { id("gradlebuild.distribution.api-java") } dependencies { implementation(project(":base-services")) implementation(project(":core-api")) implementation(project(":core")) implementation(project(":resources")) implementation(project(":resources-http")) implementation(libs.slf4jApi) ...
plugins { id("gradlebuild.distribution.api-java") } dependencies { implementation(project(":base-services")) implementation(project(":core-api")) implementation(project(":core")) implementation(project(":resources")) implementation(project(":resources-http")) implementation(libs.slf4jApi) ...
Upgrade 's3' to Groovy 3
Upgrade 's3' to Groovy 3
Kotlin
apache-2.0
gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,grad...