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 |
|---|---|---|---|---|---|---|---|---|---|
58000a20fdc803d5bd77059b40a51180f52ce3ed | runtime/src/main/kotlin/kotlin/collections/MutableCollections.kt | runtime/src/main/kotlin/kotlin/collections/MutableCollections.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.collections
import kotlin.comparisons.*
/**
* Sorts elements in the list in-place according to their natural sort order.
*
* The sort is _stable_. I... | /*
* 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.collections
/**
* Sorts elements in the list in-place according to their natural sort order.
*
* The sort is _stable_. It means that equal elements p... | Rewrite MutableList.sortWith to suppress warning instead of error | Rewrite MutableList.sortWith to suppress warning instead of error
Use available naturalOrder comparator in MutableList.sort()
| Kotlin | apache-2.0 | JetBrains/kotlin-native,wiltonlazary/kotlin-native,wiltonlazary/kotlin-native,wiltonlazary/kotlin-native,wiltonlazary/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,wiltonlazary/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-... |
28a8a6b74247404b420f844b8e78b0a3299c0ffb | ktor-core/src/org/jetbrains/ktor/application/Application.kt | ktor-core/src/org/jetbrains/ktor/application/Application.kt | package org.jetbrains.ktor.application
import java.util.*
/** Current executing application
*/
public open class Application(val config: ApplicationConfig) {
private val interceptors = ArrayList<(ApplicationRequest, (ApplicationRequest) -> ApplicationRequestStatus) -> ApplicationRequestStatus>()
public fun ... | package org.jetbrains.ktor.application
import java.util.*
/** Current executing application
*/
public open class Application(val config: ApplicationConfig) {
private val interceptors = ArrayList<(ApplicationRequest, (ApplicationRequest) -> ApplicationRequestStatus) -> ApplicationRequestStatus>()
public fun ... | Fix logging of query parameters | Fix logging of query parameters
| Kotlin | apache-2.0 | ktorio/ktor,ktorio/ktor,ktorio/ktor,ktorio/ktor |
67056bdea1ca4ff5330ff19eb5c1333c43394287 | wrench-sample/src/main/java/com/example/wrench/di/Module.kt | wrench-sample/src/main/java/com/example/wrench/di/Module.kt | package com.example.wrench.di
import com.example.wrench.livedataprefs.LiveDataPreferencesFragmentViewModel
import com.example.wrench.service.WrenchServiceFragmentViewModel
import com.example.wrench.wrenchprefs.WrenchPreferencesFragmentViewModel
import com.izettle.wrench.preferences.WrenchPreferences
import com.izettle... | package com.example.wrench.di
import com.example.wrench.livedataprefs.LiveDataPreferencesFragmentViewModel
import com.example.wrench.service.WrenchServiceFragmentViewModel
import com.example.wrench.wrenchprefs.WrenchPreferencesFragmentViewModel
import com.izettle.wrench.preferences.WrenchPreferences
import com.izettle... | Fix crash in sample application | Fix crash in sample application
| Kotlin | mit | iZettle/wrench,iZettle/wrench |
1fef249258e9ea08d97f6d724ef72be60b1fd344 | build.gradle.kts | build.gradle.kts | buildscript {
var kotlinVer: String by extra
kotlinVer = "1.2.40"
repositories {
mavenCentral()
}
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVer")
}
}
allprojects {
apply { plugin("idea") }
group = "com.github.epabst.kotlin-showcase"
v... | buildscript {
var kotlinVer: String by extra
kotlinVer = "1.2.40"
repositories {
mavenCentral()
}
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVer")
}
}
allprojects {
apply { plugin("idea") }
group = "com.github.epabst.kotlin-showcase"
v... | Remove bogus reference to nexus.yested.net | Remove bogus reference to nexus.yested.net
| Kotlin | apache-2.0 | epabst/kotlin-showcase,epabst/kotlin-showcase,epabst/kotlin-showcase,epabst/kotlin-showcase |
9b851af06c11a7598351bea4e2bb861d40073e2d | src/main/kotlin/org/rust/ide/settings/RsAutoImportOptions.kt | src/main/kotlin/org/rust/ide/settings/RsAutoImportOptions.kt | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.ide.settings
import com.intellij.application.options.editor.AutoImportOptionsProvider
import com.intellij.openapi.application.ApplicationBundle
import com.intellij.openapi.options.UiDslConfigura... | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.ide.settings
import com.intellij.application.options.editor.AutoImportOptionsProvider
import com.intellij.openapi.application.ApplicationBundle
import com.intellij.openapi.options.UiDslUnnamedCo... | Fix auto-import options for 2022.1 | Fix auto-import options for 2022.1
| Kotlin | mit | Undin/intellij-rust,Undin/intellij-rust,Undin/intellij-rust,intellij-rust/intellij-rust,intellij-rust/intellij-rust,Undin/intellij-rust,intellij-rust/intellij-rust,Undin/intellij-rust,Undin/intellij-rust,intellij-rust/intellij-rust,intellij-rust/intellij-rust,intellij-rust/intellij-rust |
e9cdd1b87d29e7588b68a056ef72faecffd29c4b | src/test/java/com/masahirosaito/spigot/homes/tests/Permission.kt | src/test/java/com/masahirosaito/spigot/homes/tests/Permission.kt | package com.masahirosaito.spigot.homes.tests
enum class Permission(val permission: String) {
HOME_DEFAULT("homes.command"),
HOME_NAME("homes.command.name"),
HOME_PLAYER("homes.command.player"),
HOME_PLAYER_NAME("homes.command.player.name"),
HOME_SET("homes.command.set"),
HOME_SET_NAME("homes.... | package com.masahirosaito.spigot.homes.tests
enum class Permission(val permission: String) {
HOME_DEFAULT("homes.command"),
HOME_NAME("homes.command.name"),
HOME_PLAYER("homes.command.player"),
HOME_PLAYER_NAME("homes.command.player.name"),
HOME_SET("homes.command.set"),
HOME_SET_NAME("homes.... | Add two permissions for invite command | Add two permissions for invite command
| Kotlin | apache-2.0 | Homes-MinecraftServerMod/Homes,Homes-MinecraftServerMod/Homes |
55f2399a80158d9b6242ee58f3137b520e0699a6 | buildSrc/subprojects/uber-plugins/uber-plugins.gradle.kts | buildSrc/subprojects/uber-plugins/uber-plugins.gradle.kts | dependencies {
implementation(project(":binaryCompatibility"))
implementation(project(":cleanup"))
implementation(project(":configuration"))
implementation(project(":kotlinDsl"))
implementation(project(":profiling"))
implementation(project(":plugins"))
}
| dependencies {
implementation(project(":binaryCompatibility"))
implementation(project(":buildquality"))
implementation(project(":cleanup"))
implementation(project(":configuration"))
implementation(project(":kotlinDsl"))
implementation(project(":profiling"))
implementation(project(":plugins")... | Add missing dependency to `buildSrc/uber-plugins` | Add missing dependency to `buildSrc/uber-plugins`
The implementation dependency on `project(":buildquality")` is
required because the script plugin `java-projects.gradle.kts` applies
the `gradlebuild.incubation-report` plugin defined on it.
| Kotlin | apache-2.0 | blindpirate/gradle,gradle/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,robinverduijn/gradle,blindpirate/gradle,gradle/gr... |
89f861ddd9dbbf7d8611518b8439495dbc4fcdfd | xamoomsdk/src/main/java/com/xamoom/android/xamoomsdk/BeaconViewModel.kt | xamoomsdk/src/main/java/com/xamoom/android/xamoomsdk/BeaconViewModel.kt | package com.xamoom.android.xamoomsdk
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import org.altbeacon.beacon.Beacon
import java.util.*
import kotlin.collections.HashMap
class BeaconViewModel: ViewModel() {
// TODO: Change to minor as key
val beaco... | package com.xamoom.android.xamoomsdk
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import org.altbeacon.beacon.Beacon
import java.util.*
import kotlin.collections.HashMap
import kotlin.collections.LinkedHashMap
class BeaconViewModel : ViewModel() {
... | Change beaconViewModel to save per minor id | Change beaconViewModel to save per minor id
| Kotlin | mit | xamoom/xamoom-android-sdk,xamoom/xamoom-android-sdk |
ddc5c61cd48c6c16fbe9667d86c2db4ddc476d6f | scraper/src/main/kotlin/com/nilhcem/devoxxfr/scraper/api/DevoxxApi.kt | scraper/src/main/kotlin/com/nilhcem/devoxxfr/scraper/api/DevoxxApi.kt | package com.nilhcem.devoxxfr.scraper.api
import com.nilhcem.devoxxfr.scraper.model.devoxx.Speaker
import com.squareup.moshi.Moshi
import okhttp3.OkHttpClient
import retrofit2.Call
import retrofit2.Retrofit
import retrofit2.converter.moshi.MoshiConverterFactory
import retrofit2.http.GET
import retrofit2.http.Path
inte... | package com.nilhcem.devoxxfr.scraper.api
import com.nilhcem.devoxxfr.scraper.model.devoxx.ScheduleDay
import com.nilhcem.devoxxfr.scraper.model.devoxx.Speaker
import com.squareup.moshi.Moshi
import okhttp3.OkHttpClient
import retrofit2.Call
import retrofit2.Retrofit
import retrofit2.converter.moshi.MoshiConverterFacto... | Create api method to get ScheduleDay | Create api method to get ScheduleDay
| Kotlin | apache-2.0 | Nilhcem/droidconde-2016,Nilhcem/devoxxfr-2016,Nilhcem/devoxxfr-2016,Nilhcem/devoxxfr-2016,Nilhcem/droidconde-2016,Nilhcem/droidconde-2016,Nilhcem/devoxxfr-2016,Nilhcem/devoxxfr-2016,Nilhcem/droidconde-2016,Nilhcem/droidconde-2016 |
67c7ad076c0e087debe7c1bc39cffd1c8a2d3f23 | functions/src/main/kotlin/org/kethereum/functions/TransactionRLPEncoder.kt | functions/src/main/kotlin/org/kethereum/functions/TransactionRLPEncoder.kt | package org.kethereum.functions
import org.kethereum.functions.rlp.RLPList
import org.kethereum.functions.rlp.encode
import org.kethereum.functions.rlp.toRLP
import org.kethereum.model.SignatureData
import org.kethereum.model.Transaction
import org.walleth.khex.hexToByteArray
fun Transaction.toRLPList(signature: Sign... | package org.kethereum.functions
import org.kethereum.functions.rlp.RLPList
import org.kethereum.functions.rlp.encode
import org.kethereum.functions.rlp.toRLP
import org.kethereum.model.SignatureData
import org.kethereum.model.SignedTransaction
import org.kethereum.model.Transaction
import org.walleth.khex.hexToByteArr... | Add method to encodeRLP a SignedTransaction() | Add method to encodeRLP a SignedTransaction()
| Kotlin | mit | walleth/kethereum |
8086aefe92dc7bd2b5733435c3ba1b6e5f2af547 | src/main/kotlin/me/mrkirby153/KirBot/command/args/elements/StringElement.kt | src/main/kotlin/me/mrkirby153/KirBot/command/args/elements/StringElement.kt | package me.mrkirby153.KirBot.command.args.elements
import me.mrkirby153.KirBot.command.args.ArgumentList
import me.mrkirby153.KirBot.command.args.ArgumentParseException
import me.mrkirby153.KirBot.command.args.CommandElement
class StringElement : CommandElement<String> {
override fun parse(list: ArgumentList): S... | package me.mrkirby153.KirBot.command.args.elements
import me.mrkirby153.KirBot.command.args.ArgumentList
import me.mrkirby153.KirBot.command.args.ArgumentParseException
import me.mrkirby153.KirBot.command.args.CommandElement
class StringElement : CommandElement<String> {
override fun parse(list: ArgumentList): S... | Update regex to support escaped quotes with " | Update regex to support escaped quotes with "
| Kotlin | mit | mrkirby153/KirBot |
60f6c8931e1e90573a8b7647ab1bada87d0837d2 | kotpref/src/test/java/com/chibatching/kotpref/CustomRobolectricTestRunner.kt | kotpref/src/test/java/com/chibatching/kotpref/CustomRobolectricTestRunner.kt | package com.chibatching.kotpref
import org.robolectric.RobolectricGradleTestRunner
import org.robolectric.annotation.Config
import org.robolectric.manifest.AndroidManifest
import org.robolectric.res.FileFsFile
class CustomRobolectricTestRunner(testClass: Class<*>) : RobolectricGradleTestRunner(testClass) {
comp... | package com.chibatching.kotpref
import org.robolectric.RobolectricTestRunner
import org.robolectric.annotation.Config
import org.robolectric.manifest.AndroidManifest
import org.robolectric.res.FileFsFile
class CustomRobolectricTestRunner(testClass: Class<*>) : RobolectricTestRunner(testClass) {
companion object... | Fix test resource file path in TestRunner | Fix test resource file path in TestRunner
| Kotlin | apache-2.0 | chibatching/Kotpref |
ea4588be44afa53cdff2908edcff6ab93adbd6cd | core/src/main/kotlin/org/nwapw/abacus/context/ChainSearchDelegate.kt | core/src/main/kotlin/org/nwapw/abacus/context/ChainSearchDelegate.kt | package org.nwapw.abacus.context
import org.nwapw.abacus.exception.ContextException
import kotlin.reflect.KProperty
/**
* A delegate to search a hierarchy made up of [EvaluationContext].
*
* ChainSearchDelegate is a variable delegate written specifically for use in [EvaluationContext], because
* of its hierarchic... | package org.nwapw.abacus.context
import org.nwapw.abacus.exception.ContextException
import kotlin.reflect.KProperty
/**
* A delegate to search a hierarchy made up of [EvaluationContext].
*
* ChainSearchDelegate is a variable delegate written specifically for use in [EvaluationContext], because
* of its hierarchic... | Add more descriptive message to context exceptions. | Add more descriptive message to context exceptions.
| Kotlin | mit | DanilaFe/abacus,DanilaFe/abacus |
82061cbe5df06f0c86c8b518be679b6ca341fab9 | buildSrc/src/main/kotlin/androidx/build/resources/PublicResourcesStubHelper.kt | buildSrc/src/main/kotlin/androidx/build/resources/PublicResourcesStubHelper.kt | /*
* Copyright 2021 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 2021 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... | Use playground agnostic way of determining project.rootDir | Use playground agnostic way of determining project.rootDir
Playground is currently failing due to the copy task failing to locate
the public res file since the rootDir isn't frameworks/support for
playground projects, but is instead the library group folder itself.
Test: cd activity && ./gradlew activity:generateReso... | 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... |
f397600290283d3447a435e437930a480c14978f | asciidoctor-gradle-jvm-pdf/src/gradleTest/complex-jvm-setup/build.gradle.kts | asciidoctor-gradle-jvm-pdf/src/gradleTest/complex-jvm-setup/build.gradle.kts | import org.asciidoctor.gradle.jvm.pdf.AsciidoctorPdfTask
import org.asciidoctor.gradle.jvm.ProcessMode
// tag::using-two-plugins-three-backends[]
plugins {
id("org.asciidoctor.jvm.pdf")
// id("com.gradle.build-scan") version "1.16"
}
repositories {
jcenter()
}
asciidoctorj {
modules.getDiagram().setVe... | import org.asciidoctor.gradle.jvm.pdf.AsciidoctorPdfTask
import org.asciidoctor.gradle.jvm.ProcessMode
// tag::using-two-plugins-three-backends[]
plugins {
id("org.asciidoctor.jvm.pdf")
// id("com.gradle.build-scan") version "1.16"
}
repositories {
jcenter()
}
asciidoctorj {
modules.getDiagram().setVe... | Use named type rather than string in Kotlin DSL | Use named type rather than string in Kotlin DSL
| Kotlin | apache-2.0 | asciidoctor/asciidoctor-gradle-plugin,ysb33r/asciidoctor-gradle-plugin,ysb33r/asciidoctor-gradle-plugin,asciidoctor/asciidoctor-gradle-plugin,ysb33r/asciidoctor-gradle-plugin,asciidoctor/asciidoctor-gradle-plugin,asciidoctor/asciidoctor-gradle-plugin,asciidoctor/asciidoctor-gradle-plugin,ysb33r/asciidoctor-gradle-plugi... |
c4fc5f2902ca6efe8b16a2dd35e6f3b9d0279fe5 | ktor-client/ktor-client-core/src/io/ktor/client/HttpClientFactory.kt | ktor-client/ktor-client-core/src/io/ktor/client/HttpClientFactory.kt | package io.ktor.client
import io.ktor.client.backend.*
import io.ktor.client.call.*
import io.ktor.client.features.*
import io.ktor.client.request.*
import io.ktor.client.response.*
import io.ktor.client.utils.*
object HttpClientFactory {
fun createDefault(backendFactory: HttpClientBackendFactory, block: ClientC... | package io.ktor.client
import io.ktor.client.backend.*
import io.ktor.client.call.*
import io.ktor.client.features.*
import io.ktor.client.request.*
import io.ktor.client.response.*
import io.ktor.client.utils.*
object HttpClientFactory {
fun createDefault(backendFactory: HttpClientBackendFactory, block: ClientC... | Check body type in backend response | Check body type in backend response
| Kotlin | apache-2.0 | ktorio/ktor,ktorio/ktor,ktorio/ktor,ktorio/ktor |
6449d9962d4c2a3848215d203bcb29a6ba5675e9 | app/src/main/kotlin/de/markusfisch/android/binaryeye/actions/web/WebAction.kt | app/src/main/kotlin/de/markusfisch/android/binaryeye/actions/web/WebAction.kt | package de.markusfisch.android.binaryeye.actions.web
import android.content.Context
import de.markusfisch.android.binaryeye.R
import de.markusfisch.android.binaryeye.actions.IAction
import de.markusfisch.android.binaryeye.content.openUrl
object WebAction : IAction {
private val colloquialRegex =
"""^(http[s]*://)*... | package de.markusfisch.android.binaryeye.actions.web
import android.content.Context
import de.markusfisch.android.binaryeye.R
import de.markusfisch.android.binaryeye.actions.IAction
import de.markusfisch.android.binaryeye.content.openUrl
object WebAction : IAction {
private val colloquialRegex =
"^(http[s]*://)*[A... | Simplify RegEx to recognize URLs | Simplify RegEx to recognize URLs
Because the current expression leads to an infinite loop for some
inputs. For example, this string was reported to make the app crash:
com.taobao.arthas.boot.ProcessUtils.findJavaHome(ProcessUtils.java:222)
The problem seems to be somehow related to case insensitivity as the
expressio... | Kotlin | mit | markusfisch/BinaryEye,markusfisch/BinaryEye |
1b4053446d6102544ac496a497eefab28928a7ee | plugins/api/item/LootTable.kt | plugins/api/item/LootTable.kt | package api.item
import api.predef.*
import io.luna.game.model.item.Item
/**
* A model representing a loot table. Loot tables are collections of items that can select items to be picked based
* on their rarity.
*
* @author lare96
*/
class LootTable(private val items: List<LootTableItem>) : Iterable<LootTableItem... | package api.item
import api.predef.*
import io.luna.game.model.item.Item
/**
* A model representing a loot table. Loot tables are collections of items that can select items to be picked based
* on their rarity.
*
* @author lare96
*/
class LootTable(private val items: List<LootTableItem>) : Iterable<LootTableItem... | Test and fix bugs with loot tables | Test and fix bugs with loot tables
| Kotlin | mit | lare96/luna |
3a5a3e682cb96e63573d42049ebf2206d3c23b98 | 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
inline fun <R> View.visibleInScope(finallyInvisible: Boolean = false, block: () -> R) = try {
isVisible = true
block()
} finally {
visibility = if (finallyInvi... | 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... | Add contracts to view visibility scope extensions | Add contracts to view visibility scope extensions
| Kotlin | apache-2.0 | LouisCAD/Splitties,LouisCAD/Splitties,LouisCAD/Splitties |
da8a27844d6e5094385a494bec2cd199e33364f8 | build.gradle.kts | 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 clean task and remove debug println | Refactor clean task and remove debug println
| Kotlin | apache-2.0 | AcornUI/Acorn,AcornUI/Acorn,AcornUI/Acorn |
a3cd1ea7f24a8fe5e3c10bd8c42a6ab54bb32d85 | 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 {
const val LOG_DEFAULT_LEVEL = 1
const val LOG_MAX_LEVEL = 3
val BUILD_FILE_NAME = "Build.kt"
val BUILD_FILE_DIRECTORY = "kobalt/src"
val BUILD_FILE_PATH = KFiles.joinDir(BUILD_FILE_DIRECTORY, BUILD_FILE_NAME)
val K... | package com.beust.kobalt
import com.beust.kobalt.misc.KFiles
object Constants {
const val LOG_DEFAULT_LEVEL = 1
const val LOG_MAX_LEVEL = 3
val BUILD_FILE_NAME = "Build.kt"
val BUILD_FILE_DIRECTORY = "kobalt/src"
val BUILD_FILE_PATH = KFiles.joinDir(BUILD_FILE_DIRECTORY, BUILD_FILE_NAME)
val K... | Remove the JetBrains repo (which contains snapshots). | Remove the JetBrains repo (which contains snapshots).
| Kotlin | apache-2.0 | ethauvin/kobalt,cbeust/kobalt,ethauvin/kobalt,cbeust/kobalt,ethauvin/kobalt,ethauvin/kobalt,cbeust/kobalt |
67e1deba92d63f0d83c1edb66244e322a35fd60d | tinbo-plugin-api/src/main/kotlin/io/gitlab/arturbosch/tinbo/api/config/Notification.kt | tinbo-plugin-api/src/main/kotlin/io/gitlab/arturbosch/tinbo/api/config/Notification.kt | package io.gitlab.arturbosch.tinbo.api.config
import org.apache.log4j.LogManager
import java.io.IOException
/**
* @author artur
*/
object Notification {
private val logger = LogManager.getLogger(javaClass)
private const val NOTIFY_SEND_ERROR = "Could not execute 'notify-send', install it to get notifications ab... | package io.gitlab.arturbosch.tinbo.api.config
import java.io.IOException
import java.io.UncheckedIOException
/**
* @author artur
*/
object Notification {
private const val NOTIFY_SEND_ERROR =
"Could not execute 'notify-send', install 'libnotify' to get notifications about finished timers."
private const val M... | Support windows msg for notifications | Support windows msg for notifications
| Kotlin | apache-2.0 | arturbosch/TiNBo,arturbosch/TiNBo,arturbosch/TiNBo |
062db4300c2f2cfb6150d632948b6ff65b0eb071 | update-app/build.gradle.kts | update-app/build.gradle.kts | plugins {
java
}
dependencies {
repositories {
mavenCentral()
}
implementation(Lib.commons_io)
implementation(Lib.annimon)
implementation(Lib.univocity)
}
val updateBusStops by tasks.creating(JavaExec::class) {
classpath(sourceSets["main"].runtimeClasspath)
main = "fr.cph.chic... | plugins {
java
}
dependencies {
repositories {
mavenCentral()
}
implementation(Lib.commons_io)
implementation(Lib.annimon)
implementation(Lib.univocity)
}
val updateBusStops by tasks.creating(JavaExec::class) {
classpath(sourceSets["main"].runtimeClasspath)
mainClass.set("fr.c... | Use non deprecated api in update-app | Use non deprecated api in update-app
| Kotlin | apache-2.0 | carlphilipp/chicago-commutes,carlphilipp/chicago-commutes,carlphilipp/chicago-commutes |
e4701a58b08029e4cdfc8de9ee7ce0cff302215b | app/src/main/java/net/squanchy/eventdetails/widget/EventDetailsCoordinatorLayout.kt | app/src/main/java/net/squanchy/eventdetails/widget/EventDetailsCoordinatorLayout.kt | package net.squanchy.eventdetails.widget
import android.content.Context
import android.support.design.widget.CoordinatorLayout
import android.util.AttributeSet
import android.view.View
import kotlinx.android.synthetic.main.activity_event_details.view.*
import net.squanchy.R
import net.squanchy.schedule.domain.view.Eve... | package net.squanchy.eventdetails.widget
import android.content.Context
import android.support.design.widget.CoordinatorLayout
import android.util.AttributeSet
import androidx.view.isVisible
import kotlinx.android.synthetic.main.activity_event_details.view.*
import net.squanchy.R
import net.squanchy.schedule.domain.vi... | Allow workshops to be favourited | Allow workshops to be favourited
| Kotlin | apache-2.0 | squanchy-dev/squanchy-android,squanchy-dev/squanchy-android,squanchy-dev/squanchy-android |
f5094a976fd9e71e3d386f9234f96218111cce49 | src/main/kotlin/engineer/carrot/warren/thump/config/GeneralConfiguration.kt | src/main/kotlin/engineer/carrot/warren/thump/config/GeneralConfiguration.kt | package engineer.carrot.warren.thump.config
import net.minecraftforge.common.config.Configuration
class GeneralConfiguration(configuration: Configuration) {
var obfuscateUserSourceFromMinecraft = true
init {
this.obfuscateUserSourceFromMinecraft = configuration.getBoolean(OBFUSCATE_USER_SOURCE_FROM_M... | package engineer.carrot.warren.thump.config
import net.minecraftforge.common.config.Configuration
class GeneralConfiguration(configuration: Configuration) {
var obfuscateUserSourceFromMinecraft = true
init {
this.obfuscateUserSourceFromMinecraft = configuration.getBoolean(OBFUSCATE_USER_SOURCE_FROM_M... | Remove specific reference to IRC from general config | Remove specific reference to IRC from general config
| Kotlin | isc | CarrotCodes/Thump,voxelcarrot/Thump,carrotengineer/Thump,WillowChat/Thump,voxelcarrot/Thump,carrotengineer/Thump,CarrotCodes/Thump,WillowChat/Thump |
6c472cf7892335853430dcb59b84e6ba74c29042 | rxpalette-kotlin/src/main/kotlin/io/sweers/rxpalette/RxPalette.kt | rxpalette-kotlin/src/main/kotlin/io/sweers/rxpalette/RxPalette.kt | package io.sweers.rxpalette
import android.graphics.Bitmap
import android.support.v7.graphics.Palette
import rx.Observable
/**
* Generate the `Palette` synchronously.
*/
public inline fun Palette.generate(bitmap: Bitmap): Observable<Palette> = RxPalette.generate(bitmap)
/**
* Generate the `Palette` synchronously.... | package io.sweers.rxpalette
import android.graphics.Bitmap
import android.support.v7.graphics.Palette
import rx.Observable
/**
* Generate the `Palette` synchronously.
*/
public inline fun Palette.asObservable(bitmap: Bitmap): Observable<Palette> = RxPalette.generate(bitmap)
/**
* Generate the `Palette` synchronou... | Change Kotlin API to use asObservable | Change Kotlin API to use asObservable
Function extensions don't replace existing signatures
| Kotlin | apache-2.0 | hzsweers/RxPalette,hzsweers/RxPalette,hzsweers/RxPalette |
fae91525fbe6d726651bc29f71608f1e4cc8f811 | feature-reminder/src/main/java/fr/o80/featurereminder/ScheduleRemind.kt | feature-reminder/src/main/java/fr/o80/featurereminder/ScheduleRemind.kt | package fr.o80.featurereminder
import android.app.AlarmManager
import android.app.PendingIntent
import android.content.Context
import androidx.core.content.systemService
import java.util.Calendar
import android.content.Intent
import fr.o80.sample.lib.core.Const
import timber.log.Timber
import java.util.Date
/**
* @a... | package fr.o80.featurereminder
import android.app.AlarmManager
import android.app.PendingIntent
import android.content.Context
import androidx.core.content.systemService
import java.util.Calendar
import android.content.Intent
import fr.o80.sample.lib.core.Const
import timber.log.Timber
import java.util.Date
/**
* @a... | Fix set hour of reminder alarm | Fix set hour of reminder alarm
| Kotlin | apache-2.0 | olivierperez/crapp |
9c8c162639b69413955838f5f944740a5b8becc9 | plugins/space/src/main/kotlin/circlet/settings/CircletProjectSettings.kt | plugins/space/src/main/kotlin/circlet/settings/CircletProjectSettings.kt | package circlet.settings
import circlet.utils.*
import com.intellij.openapi.components.*
import com.intellij.openapi.project.*
import runtime.reactive.*
@State(name = "CircletProjectSettings", storages = [Storage(StoragePathMacros.WORKSPACE_FILE)])
class CircletProjectSettings(private val project: Project) :
ILif... | package circlet.settings
import circlet.utils.*
import com.intellij.openapi.components.*
import com.intellij.openapi.project.*
import runtime.reactive.*
@State(
name = "CircletProjectSettings",
storages = [Storage(value = "CircletClient.xml", roamingType = RoamingType.DISABLED)]
)
class CircletProjectSettings... | Store settings in IDEA in separate file | Store settings in IDEA in separate file
GitOrigin-RevId: 5ff267c6d69c07638bedac97e603a1603e81e22e | 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... |
41a33db171dcca0774157f6c4dcd3ff271d62caa | src/main/java/backend/services/mail/SpyMailSenderServiceImpl.kt | src/main/java/backend/services/mail/SpyMailSenderServiceImpl.kt | package backend.services.mail
import backend.model.misc.Email
import backend.model.misc.EmailRepository
import backend.util.Profiles.DEVELOPMENT
import backend.util.Profiles.STAGING
import backend.util.Profiles.TEST
import org.slf4j.LoggerFactory
import org.springframework.beans.factory.annotation.Autowired
import org... | package backend.services.mail
import backend.model.misc.Email
import backend.model.misc.EmailRepository
import backend.util.Profiles.DEVELOPMENT
import backend.util.Profiles.STAGING
import backend.util.Profiles.TEST
import org.slf4j.LoggerFactory
import org.springframework.beans.factory.annotation.Autowired
import org... | Add email count to SpyMailService | Add email count to SpyMailService
| Kotlin | agpl-3.0 | BreakOutEvent/breakout-backend,BreakOutEvent/breakout-backend,BreakOutEvent/breakout-backend |
d226ae8c9c080de0e94b008b6524897f38e1167f | azure-active-directory-server/src/main/kotlin/org/jetbrains/teamcity/aad/LoginViaAADController.kt | azure-active-directory-server/src/main/kotlin/org/jetbrains/teamcity/aad/LoginViaAADController.kt | package org.jetbrains.teamcity.aad
import jetbrains.buildServer.controllers.AuthorizationInterceptor
import jetbrains.buildServer.controllers.BaseController
import jetbrains.buildServer.web.openapi.WebControllerManager
import org.springframework.web.servlet.ModelAndView
import org.springframework.web.servlet.view.Redi... | package org.jetbrains.teamcity.aad
import jetbrains.buildServer.controllers.AuthorizationInterceptor
import jetbrains.buildServer.controllers.BaseController
import jetbrains.buildServer.web.openapi.WebControllerManager
import org.springframework.web.servlet.ModelAndView
import org.springframework.web.servlet.view.Redi... | Remove custom header in login controller | Remove custom header in login controller
| Kotlin | apache-2.0 | ekoshkin/teamcity-azure-active-directory |
97495b304de11c241e3295974225d8da1e8adbfe | anko/library/static/common/src/Ui.kt | anko/library/static/common/src/Ui.kt | /*
* Copyright 2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | /*
* Copyright 2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | Remove labelFor() because it requires Android SDK 17 | Remove labelFor() because it requires Android SDK 17
| Kotlin | apache-2.0 | fboldog/anko,JetBrains/anko,Kotlin/anko,JetBrains/anko,deva666/anko,JetBrains/anko,deva666/anko,fboldog/anko,deva666/anko,Kotlin/anko,Kotlin/anko,fboldog/anko |
e50c9e7c523703bebe2078830cbd598119009e7b | app/src/main/java/org/stepic/droid/storage/migration/MigrationFrom75To76.kt | app/src/main/java/org/stepic/droid/storage/migration/MigrationFrom75To76.kt | package org.stepic.droid.storage.migration
import androidx.room.migration.Migration
import androidx.sqlite.db.SupportSQLiteDatabase
import org.stepic.droid.storage.structure.DbStructureCourse
object MigrationFrom75To76 : Migration(75, 76) {
override fun migrate(db: SupportSQLiteDatabase) {
db.execSQL("ALT... | package org.stepic.droid.storage.migration
import androidx.room.migration.Migration
import androidx.sqlite.db.SupportSQLiteDatabase
import org.stepic.droid.storage.structure.DbStructureCourse
object MigrationFrom75To76 : Migration(75, 76) {
override fun migrate(db: SupportSQLiteDatabase) {
db.execSQL("ALT... | Remove visited courses from courses table upon migration | Remove visited courses from courses table upon migration
| Kotlin | apache-2.0 | StepicOrg/stepik-android,StepicOrg/stepik-android,StepicOrg/stepik-android |
b3444308b70f667b7cb2ac92234206c9ea5e7005 | detekt-rules/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/providers/CodeSmellProvider.kt | detekt-rules/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/providers/CodeSmellProvider.kt | package io.gitlab.arturbosch.detekt.rules.providers
import io.gitlab.arturbosch.detekt.api.Config
import io.gitlab.arturbosch.detekt.api.RuleSet
import io.gitlab.arturbosch.detekt.api.RuleSetProvider
import io.gitlab.arturbosch.detekt.rules.ComplexMethod
import io.gitlab.arturbosch.detekt.rules.FeatureEnvy
import io.g... | package io.gitlab.arturbosch.detekt.rules.providers
import io.gitlab.arturbosch.detekt.api.Config
import io.gitlab.arturbosch.detekt.api.RuleSet
import io.gitlab.arturbosch.detekt.api.RuleSetProvider
import io.gitlab.arturbosch.detekt.rules.ComplexMethod
import io.gitlab.arturbosch.detekt.rules.LargeClass
import io.gi... | Remove feature envy for current M7 build 1 | Remove feature envy for current M7 build 1
| Kotlin | apache-2.0 | rock3r/detekt,Mauin/detekt,Mauin/detekt,Mauin/detekt,arturbosch/detekt,MyDogTom/detekt,arturbosch/detekt,rock3r/detekt,rock3r/detekt,arturbosch/detekt,Mauin/detekt |
3ba1ffb9e5b58b4b9697dfeaa3729b31d79d46a4 | plugins/korge-gradle-plugin/src/main/kotlin/com/soywiz/korge/gradle/Repos.kt | plugins/korge-gradle-plugin/src/main/kotlin/com/soywiz/korge/gradle/Repos.kt | package com.soywiz.korge.gradle
import org.gradle.api.Project
import java.net.URI
fun Project.configureRepositories() {
repositories.apply {
mavenLocal().content {
it.excludeGroup("Kotlin/Native")
}
maven {
it.url = URI("https://dl.bintray.com/korlibs/korlibs")
it.content {
it.includeGroup("com.so... | package com.soywiz.korge.gradle
import org.gradle.api.Project
import java.net.URI
fun Project.configureRepositories() {
repositories.apply {
mavenLocal().content {
it.excludeGroup("Kotlin/Native")
}
maven {
it.url = URI("https://dl.bintray.com/korlibs/korlibs")
it.content {
it.excludeGroup("Kotlin... | Remove includeGroup since now it is in separated packages com.soywiz.korlibs.* | Remove includeGroup since now it is in separated packages com.soywiz.korlibs.*
| Kotlin | apache-2.0 | soywiz/korge,soywiz/korge,soywiz/korge |
35f622f7c54f6d0e88cc706b6098ede4f53809d0 | subprojects/docs/src/samples/build-organization/cross-project-output-sharing/kotlin/consumer/build.gradle.kts | subprojects/docs/src/samples/build-organization/cross-project-output-sharing/kotlin/consumer/build.gradle.kts | val sharedConfiguration: Configuration by configurations.creating {
isCanBeConsumed = false
isCanBeResolved = true
}
dependencies {
sharedConfiguration(project(path = ":producer", configuration = "sharedConfiguration"))
}
val sharedFile: File = sharedConfiguration.singleFile
tasks.register("showFile") {
... | val sharedConfiguration: Configuration by configurations.creating {
isCanBeConsumed = false
isCanBeResolved = true
}
dependencies {
sharedConfiguration(project(path = ":producer", configuration = "sharedConfiguration"))
}
tasks.register("showFile") {
inputs.files(sharedConfiguration)
doFirst {
... | Align samples better by simplifying Kotlin code | Align samples better by simplifying Kotlin code
| Kotlin | apache-2.0 | gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle |
df23e6189b88beab3524fcef76269b95a23b6ccd | detekt-core/src/test/kotlin/io/gitlab/arturbosch/detekt/core/KtTreeCompilerSpec.kt | detekt-core/src/test/kotlin/io/gitlab/arturbosch/detekt/core/KtTreeCompilerSpec.kt | package io.gitlab.arturbosch.detekt.core
import org.jetbrains.spek.api.Spek
import org.jetbrains.spek.api.dsl.describe
import org.jetbrains.spek.api.dsl.it
import kotlin.test.assertNull
import kotlin.test.assertTrue
/**
* @author Artur Bosch
*/
class KtTreeCompilerSpec : Spek({
describe("tree compiler functionali... | package io.gitlab.arturbosch.detekt.core
import org.assertj.core.api.Assertions.assertThat
import org.jetbrains.spek.api.Spek
import org.jetbrains.spek.api.dsl.describe
import org.jetbrains.spek.api.dsl.it
import kotlin.test.assertNull
import kotlin.test.assertTrue
/**
* @author Artur Bosch
*/
class KtTreeCompilerS... | Add test for more than one filter for compiler | Add test for more than one filter for compiler
| Kotlin | apache-2.0 | arturbosch/detekt,arturbosch/detekt,rock3r/detekt,Mauin/detekt,Mauin/detekt,rock3r/detekt,MyDogTom/detekt,Mauin/detekt,rock3r/detekt,Mauin/detekt,arturbosch/detekt |
853397e86cb8f888e34d290c953cdbab12b00a1f | subprojects/kotlin-dsl-tooling-builders/src/main/kotlin/org/gradle/kotlin/dsl/tooling/builders/KotlinScriptingModelBuildersRegistrationAction.kt | subprojects/kotlin-dsl-tooling-builders/src/main/kotlin/org/gradle/kotlin/dsl/tooling/builders/KotlinScriptingModelBuildersRegistrationAction.kt | /*
* Copyright 2016 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 2016 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... | Set `prepareKotlinBuildScriptModel` task group explicitly | Set `prepareKotlinBuildScriptModel` task group explicitly
| Kotlin | apache-2.0 | gradle/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,gradle/gradle,blindpirate/gradle,robinverduijn/gradle,gradle/gradle,b... |
82bac7f346622e37547e1099cc5aecb77c90f317 | kotlin-frontend/src/main/kotlin/org/jetbrains/kotlin/gradle/frontend/KotlinFrontendExtension.kt | kotlin-frontend/src/main/kotlin/org/jetbrains/kotlin/gradle/frontend/KotlinFrontendExtension.kt | package org.jetbrains.kotlin.gradle.frontend
open class KotlinFrontendExtension {
var sourceMaps: Boolean = false
var moduleName: String = ""
} | package org.jetbrains.kotlin.gradle.frontend
import org.gradle.api.tasks.*
open class KotlinFrontendExtension {
@Input
var sourceMaps: Boolean = false
@Input
var moduleName: String = ""
} | Mark frontend extension properties as input | Mark frontend extension properties as input
| Kotlin | apache-2.0 | cy6erGn0m/kotlin-frontend-plugin,cy6erGn0m/kotlin-frontend-plugin |
146b94ad21ce1b4af6d401d0bc1ca07225f6763b | modules/coroutines/src/commonMain/kotlin/splitties/coroutines/ScopeLoops.kt | modules/coroutines/src/commonMain/kotlin/splitties/coroutines/ScopeLoops.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.ensureActive
import splitties.experimental.ExperimentalSplittiesApi
import kotlin.coroutines.corou... | /*
* 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.ensureActive
import splitties.experimental.ExperimentalSplittiesApi
import kotlin.coroutines.corou... | Add KDoc for repeatWhileActive overload | Add KDoc for repeatWhileActive overload
| Kotlin | apache-2.0 | LouisCAD/Splitties,LouisCAD/Splitties,LouisCAD/Splitties |
02b9bef57677cb482758d4d3e877febcec6a7524 | provider/src/test/kotlin/org/gradle/kotlin/dsl/integration/KotlinInitScriptIntegrationTest.kt | provider/src/test/kotlin/org/gradle/kotlin/dsl/integration/KotlinInitScriptIntegrationTest.kt | package org.gradle.kotlin.dsl.integration
import org.gradle.kotlin.dsl.fixtures.AbstractIntegrationTest
import org.gradle.kotlin.dsl.fixtures.DeepThought
import org.junit.Test
class KotlinInitScriptIntegrationTest : AbstractIntegrationTest() {
@Test
fun `initscript classpath`() {
withClassJar("fixt... | package org.gradle.kotlin.dsl.integration
import org.gradle.kotlin.dsl.fixtures.AbstractIntegrationTest
import org.gradle.kotlin.dsl.fixtures.DeepThought
import org.junit.Test
class KotlinInitScriptIntegrationTest : AbstractIntegrationTest() {
@Test
fun `initscript classpath`() {
withClassJar("fixt... | Reorder test statements for clarity | Reorder test statements for clarity
| Kotlin | apache-2.0 | blindpirate/gradle,robinverduijn/gradle,blindpirate/gradle,gradle/gradle-script-kotlin,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradl... |
4575ece9b3bf20fe339d2335a78b792e39bfbaab | rider/src/main/kotlin/com/jetbrains/rider/plugins/unity/workspace/UnitySolutionManagerExtensions.kt | rider/src/main/kotlin/com/jetbrains/rider/plugins/unity/workspace/UnitySolutionManagerExtensions.kt | package com.jetbrains.rider.plugins.unity.workspace
import com.intellij.ide.util.PropertiesComponent
import com.jetbrains.rdclient.util.idea.toVirtualFile
import com.jetbrains.rider.UnityProjectDiscoverer
import com.jetbrains.rider.projectView.SolutionManagerExtensions
import java.nio.file.Path
class UnitySolutionMan... | package com.jetbrains.rider.plugins.unity.workspace
import com.intellij.ide.util.PropertiesComponent
import com.jetbrains.rdclient.util.idea.toVirtualFile
import com.jetbrains.rider.UnityProjectDiscoverer
import com.jetbrains.rider.projectView.SolutionManagerExtensions
import java.nio.file.Path
class UnitySolutionMan... | Clean up old folders from the content model store | Clean up old folders from the content model store
| Kotlin | apache-2.0 | JetBrains/resharper-unity,JetBrains/resharper-unity,JetBrains/resharper-unity |
d45323e152ff9eb9ebb7fc7199145eccaab434f8 | src/main/kotlin/com/kotlinnlp/simplednn/core/layers/RecurrentParametersUnit.kt | src/main/kotlin/com/kotlinnlp/simplednn/core/layers/RecurrentParametersUnit.kt | /* Copyright 2016-present The KotlinNLP Authors. All Rights Reserved.
*
* 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/.
* ------------------------------------------... | /* Copyright 2016-present The KotlinNLP Authors. All Rights Reserved.
*
* 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/.
* ------------------------------------------... | Add meProp parameter and update recurrentWeights type | Add meProp parameter and update recurrentWeights type
| Kotlin | mpl-2.0 | KotlinNLP/SimpleDNN |
0fb2ce498254fe295860fe5bc838a9df86702bf3 | viewdsl-appcompat/src/main/java/splitties/viewdsl/appcompat/experimental/AppCompatViewInstantiatorInjectProvider.kt | viewdsl-appcompat/src/main/java/splitties/viewdsl/appcompat/experimental/AppCompatViewInstantiatorInjectProvider.kt | /*
* Copyright (c) 2018. Louis Cognault Ayeva Derman
*
* 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 ... | /*
* Copyright (c) 2018. Louis Cognault Ayeva Derman
*
* 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 ... | Convert a function to expression body | Convert a function to expression body
| Kotlin | apache-2.0 | LouisCAD/Splitties,LouisCAD/Splitties,LouisCAD/Splitties |
941ec85b0e6435de891e9f464808e4bdb5f557e4 | src/main/kotlin/org/rust/lang/core/resolve/ref/RsReferencesSearchExtensionImpl.kt | src/main/kotlin/org/rust/lang/core/resolve/ref/RsReferencesSearchExtensionImpl.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.resolve.ref
import com.intellij.openapi.application.QueryExecutorBase
import com.intellij.psi.search.UsageSearchContext
import com.intellij.psi.search.searches.ReferencesSearch
import ... | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.lang.core.resolve.ref
import com.intellij.openapi.application.QueryExecutorBase
import com.intellij.psi.search.UsageSearchContext
import com.intellij.psi.search.searches.ReferencesSearch
import ... | Fix incorrect module search scope | Fix incorrect module search scope
| Kotlin | mit | Undin/intellij-rust,Undin/intellij-rust,intellij-rust/intellij-rust,intellij-rust/intellij-rust,Undin/intellij-rust,Undin/intellij-rust,intellij-rust/intellij-rust,Undin/intellij-rust,intellij-rust/intellij-rust,intellij-rust/intellij-rust,intellij-rust/intellij-rust,Undin/intellij-rust |
74819e8c6a251fe8bb5fb06647acc55aae40b9fc | ktor-hosts/ktor-netty/src/org/jetbrains/ktor/netty/NettyHostHttp1Handler.kt | ktor-hosts/ktor-netty/src/org/jetbrains/ktor/netty/NettyHostHttp1Handler.kt | package org.jetbrains.ktor.netty
import io.netty.channel.*
import io.netty.handler.codec.http.*
import io.netty.handler.codec.http.HttpResponseStatus.*
import io.netty.handler.codec.http.HttpVersion.*
import io.netty.util.*
@ChannelHandler.Sharable
internal class NettyHostHttp1Handler(private val host: NettyApplicati... | package org.jetbrains.ktor.netty
import io.netty.channel.*
import io.netty.handler.codec.http.*
import io.netty.handler.codec.http.HttpResponseStatus.*
import io.netty.handler.codec.http.HttpVersion.*
import io.netty.util.*
@ChannelHandler.Sharable
internal class NettyHostHttp1Handler(private val host: NettyApplicati... | Simplify Netty processing of incoming HttpMessages | Simplify Netty processing of incoming HttpMessages
| Kotlin | apache-2.0 | ktorio/ktor,ktorio/ktor,ktorio/ktor,ktorio/ktor |
82aba7f7de57908630ffe583ecb0414801b46b30 | uspek/build.gradle.kts | uspek/build.gradle.kts | plugins {
kotlin("multiplatform")
`maven-publish`
}
group = "com.github.langara.uspek"
version = "0.0.12"
repositories {
mavenCentral()
}
kotlin {
jvm()
js {
nodejs()
browser {
testTask {
enabled = System.getenv("JITPACK") != "true"
}
... | plugins {
kotlin("multiplatform")
`maven-publish`
}
group = "com.github.langara.uspek"
version = "0.0.12"
repositories {
mavenCentral()
}
kotlin {
jvm()
js {
nodejs()
browser {
testTask {
enabled = System.getenv("JITPACK") != "true"
}
... | Enable native target and tests (works on ubuntu after installing libtinfo5 package) | Enable native target and tests (works on ubuntu after installing libtinfo5 package)
| Kotlin | apache-2.0 | langara/USpek,langara/USpek,langara/USpek |
737c2927ceffb88efd4f0feb23affadf6406b723 | src/main/kotlin/money/Dollar.kt | src/main/kotlin/money/Dollar.kt | package money
class Dollar(val amount: Int) {
fun times(multiplier: Int): Dollar {
return Dollar(amount * multiplier)
}
}
| package money
class Dollar(val amount: Int) {
fun times(multiplier: Int): Dollar {
return Dollar(amount * multiplier)
}
override fun equals(other: Any?): Boolean {
return true
}
}
| Make new test green (green) | Make new test green (green)
| Kotlin | mit | s-nagahori/TDD_book |
5ef25c0e8f00eedd8a6b1a02e6a2dc7aeafe2c81 | ktor-samples/ktor-samples-json/src/org/jetbrains/ktor/samples/json/JsonApplication.kt | ktor-samples/ktor-samples-json/src/org/jetbrains/ktor/samples/json/JsonApplication.kt | package org.jetbrains.ktor.samples.json
import com.google.gson.*
import org.jetbrains.ktor.application.*
import org.jetbrains.ktor.http.*
import org.jetbrains.ktor.routing.*
data class Model(val name: String, val items: List<Item>)
data class Item(val key: String, val value: String)
class JsonApplication(config: App... | package org.jetbrains.ktor.samples.json
import com.google.gson.*
import org.jetbrains.ktor.application.*
import org.jetbrains.ktor.http.*
import org.jetbrains.ktor.routing.*
import java.util.zip.*
data class Model(val name: String, val items: List<Item>)
data class Item(val key: String, val value: String)
class Json... | Add deflate interceptor to support Accept-Encoding: gzip as an example | Add deflate interceptor to support Accept-Encoding: gzip as an example
| Kotlin | apache-2.0 | ktorio/ktor,ktorio/ktor,ktorio/ktor,ktorio/ktor |
c84844765897e70d8100ea7a373fbb98bf948990 | src/iii_conventions/MyDate.kt | src/iii_conventions/MyDate.kt | package iii_conventions
data class MyDate(val year: Int, val month: Int, val dayOfMonth: Int) : Comparable<MyDate> {
override fun compareTo(other: MyDate): Int {
return when {
year.compareTo(other.year) != 0 -> year.compareTo(other.year)
month.compareTo(other.month) != 0 -> month.co... | package iii_conventions
data class MyDate(val year: Int, val month: Int, val dayOfMonth: Int) : Comparable<MyDate> {
override fun compareTo(other: MyDate): Int {
return when {
year.compareTo(other.year) != 0 -> year.compareTo(other.year)
month.compareTo(other.month) != 0 -> month.co... | Fix warning in ch 2 ex 26 | Fix warning in ch 2 ex 26
| Kotlin | mit | verhoevenv/kotlin-koans,verhoevenv/kotlin-koans |
88f879aa5010a343b0d78306fcac12c6ace3dcc5 | src/main/kotlin/net/bjoernpetersen/musicbot/spi/plugin/predefined/AudioFilePlaybackFactory.kt | src/main/kotlin/net/bjoernpetersen/musicbot/spi/plugin/predefined/AudioFilePlaybackFactory.kt | package net.bjoernpetersen.musicbot.spi.plugin.predefined
import net.bjoernpetersen.musicbot.api.plugin.Base
/**
* PlaybackFactory capable of playing `.aac` and `.m4a` files.
*/
@Base
interface AacPlaybackFactory :
FilePlaybackFactory
/**
* PlaybackFactory capable of playing `.aac` and `.m4a` files.
*/
@Depr... | package net.bjoernpetersen.musicbot.spi.plugin.predefined
import net.bjoernpetersen.musicbot.api.plugin.Base
/**
* PlaybackFactory capable of playing `.aac` and `.m4a` files.
*/
@Base
interface AacPlaybackFactory :
FilePlaybackFactory
/**
* PlaybackFactory capable of playing `.aac` and `.m4a` files.
*/
@Depr... | Make AacPlabackFactory deprecation a warning | Make AacPlabackFactory deprecation a warning
| Kotlin | mit | BjoernPetersen/JMusicBot |
c41a62b22c7a621567f168e91d882e48a1a889e7 | detekt-rules/src/test/kotlin/io/gitlab/arturbosch/detekt/rules/NamingConventionViolationSpec.kt | detekt-rules/src/test/kotlin/io/gitlab/arturbosch/detekt/rules/NamingConventionViolationSpec.kt | package io.gitlab.arturbosch.detekt.rules
import com.natpryce.hamkrest.assertion.assertThat
import com.natpryce.hamkrest.equalTo
import com.natpryce.hamkrest.hasSize
import org.jetbrains.spek.api.SubjectSpek
import org.jetbrains.spek.api.dsl.it
/**
* @author Artur Bosch
*/
class NamingConventionViolationSpec : Subj... | package io.gitlab.arturbosch.detekt.rules
import com.natpryce.hamkrest.assertion.assertThat
import com.natpryce.hamkrest.equalTo
import com.natpryce.hamkrest.hasSize
import org.jetbrains.spek.api.SubjectSpek
import org.jetbrains.spek.api.dsl.it
/**
* @author Artur Bosch
*/
class NamingConventionViolationSpec : Subj... | Remove syso in naming convention test | Remove syso in naming convention test
| Kotlin | apache-2.0 | Mauin/detekt,rock3r/detekt,arturbosch/detekt,rock3r/detekt,Mauin/detekt,Mauin/detekt,Mauin/detekt,arturbosch/detekt,MyDogTom/detekt,rock3r/detekt,arturbosch/detekt |
1ea38c35fd51de7a8c747ad02db0065d04d3c6df | spek-junit-platform-engine/src/main/kotlin/org/jetbrains/spek/engine/ThrowableCollector.kt | spek-junit-platform-engine/src/main/kotlin/org/jetbrains/spek/engine/ThrowableCollector.kt | package org.jetbrains.spek.engine
/**
* @author Ranie Jade Ramiso
*/
class ThrowableCollector {
private var throwable: Throwable? = null
fun add(throwable: Throwable) {
if (this.throwable == null) {
this.throwable = throwable
} else {
(this.throwable as java.lang.Thro... | package org.jetbrains.spek.engine
/**
* @author Ranie Jade Ramiso
*/
class ThrowableCollector {
private var throwable: Throwable? = null
fun add(throwable: Throwable) {
if (this.throwable == null) {
this.throwable = throwable
} else {
(this.throwable as java.lang.Thro... | Print stacktraces if exception is thrown inside of tests | Print stacktraces if exception is thrown inside of tests
| Kotlin | bsd-3-clause | JetBrains/spek |
8465f94c5a98ac2402b7093ad5f6ae53c5872dc3 | app/src/main/java/net/squanchy/service/firestore/injection/FirestoreModule.kt | app/src/main/java/net/squanchy/service/firestore/injection/FirestoreModule.kt | package net.squanchy.service.firestore.injection
import com.google.firebase.firestore.FirebaseFirestore
import dagger.Module
import dagger.Provides
import net.squanchy.injection.ApplicationLifecycle
import net.squanchy.service.firestore.FirestoreDbService
@Module
class FirestoreModule {
@Provides
@Applicatio... | package net.squanchy.service.firestore.injection
import com.google.firebase.firestore.FirebaseFirestore
import dagger.Module
import dagger.Provides
import net.squanchy.injection.ApplicationLifecycle
import net.squanchy.service.firestore.FirestoreDbService
@Module
class FirestoreModule {
@Provides
internal fu... | Remove the @ApplicationLifecycle from Firestore | Remove the @ApplicationLifecycle from Firestore
We don't need it; we were doing it because we assumed that was the
issue causing the crash, but it isn't.
| Kotlin | apache-2.0 | squanchy-dev/squanchy-android,squanchy-dev/squanchy-android,squanchy-dev/squanchy-android |
1a9bcb76aca8dc814e2e9964a4370f63dc5c4bf1 | rider/src/main/kotlin/com/jetbrains/rider/plugins/unity/javascript/UnityPackageJsonConfiguratorHandler.kt | rider/src/main/kotlin/com/jetbrains/rider/plugins/unity/javascript/UnityPackageJsonConfiguratorHandler.kt | package com.jetbrains.rider.plugins.unity.javascript
import com.intellij.openapi.project.Project
import com.intellij.openapi.vfs.VirtualFile
import com.jetbrains.rider.isLikeUnityProject
import com.jetbrains.rider.plugins.javascript.nodejs.RiderPackageJsonConfiguratorHandler
class UnityPackageJsonConfiguratorHandler(... | package com.jetbrains.rider.plugins.unity.javascript
import com.intellij.openapi.project.Project
import com.intellij.openapi.vfs.VirtualFile
import com.jetbrains.rider.isLikeUnityProject
import com.jetbrains.rider.plugins.javascript.nodejs.RiderPackageJsonConfiguratorHandler
import com.intellij.util.ThreeState
class ... | Change API of RiderPackageJsonConfiguratorHandler to ThreeState (plugin part) | Change API of RiderPackageJsonConfiguratorHandler to ThreeState (plugin part)
| Kotlin | apache-2.0 | JetBrains/resharper-unity,JetBrains/resharper-unity,JetBrains/resharper-unity |
21f620f7bfd0e6492d37417ee1a7226ccab66d51 | maven_import/build.gradle.kts | maven_import/build.gradle.kts | plugins {
java
kotlin("jvm") version "1.3.61"
}
group = "org.example"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
maven {
url = uri("https://maven.pkg.github.com/zathras/db9010")
credentials {
username = "zathras"
password = "848e249a25d6c3da4b68287ba... | plugins {
java
kotlin("jvm") version "1.3.61"
}
group = "org.example"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
maven {
url = uri("https://zathras.github.io/maven/")
// For github pacakges:
// url = uri("https://maven.pkg.github.com/zathras/db9010")
// cred... | Switch away from Github Packages. | Switch away from Github Packages.
| Kotlin | mit | zathras/misc,zathras/misc,zathras/misc,zathras/misc,zathras/misc |
092c316d474f15ccd59c56709ff1773cdf34365c | platform-tooling-support-tests/projects/gradle-kotlin-extensions/build.gradle.kts | platform-tooling-support-tests/projects/gradle-kotlin-extensions/build.gradle.kts | import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.3.10"
}
repositories {
mavenLocal()
mavenCentral()
maven { url = uri("https://oss.sonatype.org/content/repositories/snapshots") }
}
// don't use `build` as target to prevent Jenkins picking up
project.buildDir = file("bin")... | import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.3.50"
}
repositories {
mavenLocal()
mavenCentral()
maven { url = uri("https://oss.sonatype.org/content/repositories/snapshots") }
}
// don't use `build` as target to prevent Jenkins picking up
project.buildDir = file("bin")... | Make test compatible with Gradle 6 | Make test compatible with Gradle 6
| Kotlin | epl-1.0 | junit-team/junit-lambda,sbrannen/junit-lambda |
6d5adef1faa45539282099549ceff7fb3c8c762a | build.gradle.kts | build.gradle.kts | plugins {
val kotlinVersion = "1.3.70"
kotlin("js") version kotlinVersion apply false
kotlin("jvm") version kotlinVersion apply false
kotlin("multiplatform") version kotlinVersion apply false
kotlin("plugin.spring") version kotlinVersion apply false
id("org.jetbrains.kotlin.plugin.serialization"... | plugins {
val kotlinVersion = "1.3.70"
kotlin("js") version kotlinVersion apply false
kotlin("jvm") version kotlinVersion apply false
kotlin("multiplatform") version kotlinVersion apply false
kotlin("plugin.spring") version kotlinVersion apply false
id("org.jetbrains.kotlin.plugin.serialization"... | Add maven repo to fix temporary jcenter sync issues | Add maven repo to fix temporary jcenter sync issues
| Kotlin | mit | luxons/seven-wonders,luxons/seven-wonders,luxons/seven-wonders |
66ca7fd84e59386fa0dd059a4814d0cf5febaf09 | settings.gradle.kts | settings.gradle.kts | rootProject.name = "sdf"
pluginManagement {
repositories {
maven("https://artifacts.metaborg.org/content/groups/public/")
}
}
enableFeaturePreview("GRADLE_METADATA")
fun includeProject(id: String, path: String = "org.metaborg.$id") {
include(id)
project(":$id").projectDir = file(path)
}
include("org.met... | rootProject.name = "sdf.root"
pluginManagement {
repositories {
maven("https://artifacts.metaborg.org/content/groups/public/")
}
}
if(org.gradle.util.VersionNumber.parse(gradle.gradleVersion).major < 6) {
enableFeaturePreview("GRADLE_METADATA")
}
fun includeProject(id: String, path: String = "org.metaborg.... | Fix name and warning on Gradle 6. | Fix name and warning on Gradle 6.
| Kotlin | apache-2.0 | metaborg/sdf,metaborg/sdf,metaborg/sdf |
b4b210373a9cdc0df5bdb7cf577320c328520f72 | src/test/kotlin/com/brunodles/ipgetter/IpGetterTest.kt | src/test/kotlin/com/brunodles/ipgetter/IpGetterTest.kt | package com.brunodles.ipgetter
import com.brunodles.oleaster.suiterunner.OleasterSuiteRunner
import com.brunodles.test.helper.context
import com.brunodles.test.helper.given
import com.brunodles.test.helper.xgiven
import com.mscharhag.oleaster.runner.StaticRunnerSupport.beforeEach
import com.mscharhag.oleaster.runner.S... | package com.brunodles.ipgetter
import com.brunodles.oleaster.suiterunner.OleasterSuiteRunner
import com.brunodles.test.helper.context
import com.brunodles.test.helper.given
import com.mscharhag.oleaster.runner.StaticRunnerSupport.beforeEach
import com.mscharhag.oleaster.runner.StaticRunnerSupport.it
import groovy.lang... | Update IpGettertest to fix the test | Update IpGettertest to fix the test
| Kotlin | mit | brunodles/IpGetter |
b8a2ed1b5ca3958a80dadcbe067d3169a2fbdce8 | lifecycle-coroutines/src/main/kotlin/splitties/lifecycle/coroutines/PotentialFutureAndroidXLifecycleKtxApi.kt | lifecycle-coroutines/src/main/kotlin/splitties/lifecycle/coroutines/PotentialFutureAndroidXLifecycleKtxApi.kt | package splitties.lifecycle.coroutines
/**
* Symbols having this annotation may get deprecated, then removed **if** an alternative or similar
* API makes it into AndroidX (likely in AndroidX Lifecycle KTX
* [as mentioned in this PR comment by Sergey Vasilinets from the AndroidX team](
https://github.com/Kotlin/kotl... | package splitties.lifecycle.coroutines
/**
* Symbols having this annotation will be deprecated, then removed after AndroidX Lifecycle KTX
* gets a similar API, which is under review as of January the 24th of 2019:
* https://android-review.googlesource.com/c/platform/frameworks/support/+/869365/14
*/
@MustBeDocumen... | Update an experimental annotation KDoc | Update an experimental annotation KDoc
| Kotlin | apache-2.0 | LouisCAD/Splitties,LouisCAD/Splitties,LouisCAD/Splitties |
4adf22dbf46902a08d38b6c9852cb3dc52019c93 | buildSrc/build.gradle.kts | buildSrc/build.gradle.kts | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
repositories {
mavenCentral()
}
plugins {
`kotlin-dsl`
}
| /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
repositories { mavenCentral() }
plugins { `kotlin-dsl` }
| Format .kts files with ktfmt | Format .kts files with ktfmt
Reviewed By: zertosh
Differential Revision: D36967010
fbshipit-source-id: a83f3facbb5f30b935b69fc70a5588e4da5996b2
| Kotlin | mit | facebook/fresco,facebook/fresco,facebook/fresco,facebook/fresco,facebook/fresco,facebook/fresco |
5eb38505eeb94994bddcc439778f78f354a5c03d | konfetti/src/main/java/nl/dionsegijn/konfetti/models/Size.kt | konfetti/src/main/java/nl/dionsegijn/konfetti/models/Size.kt | package nl.dionsegijn.konfetti.models
import android.content.res.Resources
/**
* Created by dionsegijn on 3/26/17.
* [sizeInDp] the size of the confetti in dip
* [mass] each size can have its own mass for slightly different behavior
*/
data class Size(val sizeInDp: Int, val mass: Float = 5f)
val Size.sizeDp: Int... | package nl.dionsegijn.konfetti.models
import android.content.res.Resources
/**
* Created by dionsegijn on 3/26/17.
* [sizeInDp] the size of the confetti in dip
* [mass] each size can have its own mass for slightly different behavior
*/
data class Size(val sizeInDp: Int, val mass: Float = 5f)
val Size.sizeInPx: F... | Rename sizeDp to sizeInPx and return a Float | Rename sizeDp to sizeInPx and return a Float
| Kotlin | isc | DanielMartinus/Konfetti |
a6a26f4ff72d467dbe4d93fcc54b41154b353631 | src/main/kotlin/net/yested/ext/bootstrap3/layout.kt | src/main/kotlin/net/yested/ext/bootstrap3/layout.kt | package net.yested.ext.bootstrap3
import net.yested.core.html.div
import org.w3c.dom.HTMLElement
enum class ContainerWidth(val code: String) {
Fixed("container"),
Fluid("container-fluid")
}
fun HTMLElement.container(
width: ContainerWidth = ContainerWidth.Fixed,
init: HTMLElement.()->Unit) {
... | package net.yested.ext.bootstrap3
import net.yested.core.html.div
import net.yested.core.html.hr
import net.yested.core.utils.with
import org.w3c.dom.HTMLDivElement
import org.w3c.dom.HTMLElement
import kotlin.browser.document
enum class ContainerWidth(val code: String) {
Fixed("container"),
Fluid("container-... | Add page from old yested framework. | Add page from old yested framework.
| Kotlin | mit | jean79/yested_fw,jean79/yested_fw |
d8f4906afb5ffd35d38ca0a9c2160295dc96e9fb | profile_prx/src/main/java/no/nordicsemi/android/prx/repository/AlarmHandler.kt | profile_prx/src/main/java/no/nordicsemi/android/prx/repository/AlarmHandler.kt | package no.nordicsemi.android.prx.repository
import android.content.Context
import android.media.RingtoneManager
import android.os.Build
import dagger.hilt.android.qualifiers.ApplicationContext
import no.nordicsemi.android.prx.data.AlarmLevel
import javax.inject.Inject
internal class AlarmHandler @Inject constructor(... | package no.nordicsemi.android.prx.repository
import android.content.Context
import android.media.RingtoneManager
import android.os.Build
import dagger.hilt.android.qualifiers.ApplicationContext
import no.nordicsemi.android.prx.data.AlarmLevel
import javax.inject.Inject
internal class AlarmHandler @Inject constructor(... | Change alarm sound for medium and high levels | Change alarm sound for medium and high levels
| Kotlin | bsd-3-clause | NordicSemiconductor/Android-nRF-Toolbox,NordicSemiconductor/Android-nRF-Toolbox,NordicSemiconductor/Android-nRF-Toolbox,NordicSemiconductor/Android-nRF-Toolbox |
fde3eca847096c8255d0a582fa662285c9ef231b | subprojects/files/files.gradle.kts | subprojects/files/files.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... | Remove redundant declaration of testFixturesImplementation | Remove redundant declaration of testFixturesImplementation
| Kotlin | apache-2.0 | gradle/gradle,lsmaira/gradle,lsmaira/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,lsmaira/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,lsmaira/gradle,lsmaira/gradle,blindpirate/gradle,lsmaira/gradle,robinverduijn/gradle,lsmaira/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/g... |
afcb7fd4d23a811885d202c2206245f5baf1550c | src/main/kotlin/me/elsiff/morefish/fishing/catchhandler/CatchCommandExecutor.kt | src/main/kotlin/me/elsiff/morefish/fishing/catchhandler/CatchCommandExecutor.kt | package me.elsiff.morefish.fishing.catchhandler
import me.elsiff.morefish.fishing.Fish
import org.bukkit.entity.Player
/**
* Created by elsiff on 2019-01-13.
*/
class CatchCommandExecutor(
private val commands: List<String>
) : CatchHandler {
override fun handle(catcher: Player, fish: Fish) {
val se... | package me.elsiff.morefish.fishing.catchhandler
import me.elsiff.morefish.fishing.Fish
import org.bukkit.entity.Player
/**
* Created by elsiff on 2019-01-13.
*/
class CatchCommandExecutor(
private val commands: List<String>
) : CatchHandler {
override fun handle(catcher: Player, fish: Fish) {
val se... | Add replacing '@p' to catcher's name on executing catch commands | Add replacing '@p' to catcher's name on executing catch commands
| Kotlin | mit | elsiff/MoreFish |
a875db9ef0304d20c80231d94df39af68a9c3c61 | src/test/kotlin/net/yested/ext/bootstrap3/InputTest.kt | src/test/kotlin/net/yested/ext/bootstrap3/InputTest.kt | package net.yested.ext.bootstrap3
import net.yested.core.properties.Property
import net.yested.core.properties.toProperty
import net.yested.ext.bootstrap3.utils.*
import org.junit.Test
import spec.*
/**
* A test for [dateInput], etc.
* @author Eric Pabst (epabst@gmail.com)
* Date: 9/29/16
* Time: 1:51 PM
*/
clas... | package net.yested.ext.bootstrap3
import net.yested.core.properties.Property
import net.yested.core.properties.toProperty
import net.yested.ext.bootstrap3.utils.*
import org.junit.Test
import spec.*
/**
* A test for [dateInput], etc.
* @author Eric Pabst (epabst@gmail.com)
* Date: 9/29/16
* Time: 1:51 PM
*/
clas... | Add test to try and diagnose why format string isn't being honored. | Add test to try and diagnose why format string isn't being honored.
| Kotlin | mit | jean79/yested_fw,jean79/yested_fw |
c4909e1d4baaf516ca1b4499ed9b16ab2b469057 | src/test/java/org/purescript/psi/PSVarTest.kt | src/test/java/org/purescript/psi/PSVarTest.kt | package org.purescript.psi
import com.intellij.psi.util.findDescendantOfType
import junit.framework.TestCase
import org.purescript.file.PSFile
import org.purescript.parser.PSLanguageParserTestBase
class PSVarTest : PSLanguageParserTestBase() {
fun `test var can resolve to top level`() {
val file = create... | package org.purescript.psi
import com.intellij.psi.util.findDescendantOfType
import junit.framework.TestCase
import org.purescript.file.PSFile
import org.purescript.parser.PSLanguageParserTestBase
class PSVarTest : PSLanguageParserTestBase() {
fun `test var can resolve to top level`() {
val file = create... | Generalize test to support more then one reference type | Generalize test to support more then one reference type
| Kotlin | bsd-3-clause | intellij-purescript/intellij-purescript,intellij-purescript/intellij-purescript |
2c27b19cda505e2b8f0f07d5a6456af9a8a03356 | src/main/kotlin/com/github/shiraji/permissionsdispatcherplugin/models/GeneratePMCodeModel.kt | src/main/kotlin/com/github/shiraji/permissionsdispatcherplugin/models/GeneratePMCodeModel.kt | package com.github.shiraji.permissionsdispatcherplugin.models
import com.intellij.openapi.project.Project
import com.intellij.psi.JavaPsiFacade
import com.intellij.psi.PsiClass
import com.intellij.psi.search.GlobalSearchScope
class GeneratePMCodeModel {
fun createPsiClass(qualifiedName: String, project: Project):... | package com.github.shiraji.permissionsdispatcherplugin.models
import com.intellij.openapi.project.Project
import com.intellij.psi.JavaPsiFacade
import com.intellij.psi.PsiClass
import com.intellij.psi.search.GlobalSearchScope
class GeneratePMCodeModel {
fun isActivity(aClass: PsiClass, project: Project): Boolean... | Add features that find if the class is Activity or Fragment | Add features that find if the class is Activity or Fragment
| Kotlin | apache-2.0 | shiraji/permissions-dispatcher-plugin,shiraji/permissions-dispatcher-plugin,shiraji/permissions-dispatcher-plugin |
f0789749e5e32265cd56b5f116c6a35a1f30b4a6 | stackdriver-trace/build.gradle.kts | stackdriver-trace/build.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... | Use latest Cloud Trace GA API | Use latest Cloud Trace GA API
| Kotlin | apache-2.0 | SpineEventEngine/gae-java,SpineEventEngine/gae-java |
4f32a79018704e0bbd47f8cef142afc394d86dae | samples/hello-kapt/build.gradle.kts | samples/hello-kapt/build.gradle.kts | plugins {
application
kotlin("jvm") version "1.2.60-eap-44"
kotlin("kapt") version "1.2.60-eap-44"
}
application {
mainClassName = "samples.HelloAutoValueKt"
}
repositories {
jcenter()
}
dependencies {
compileOnly("com.google.auto.value:auto-value:1.5")
kapt("com.google.auto.value:auto-va... | plugins {
application
kotlin("jvm") version "1.2.60-eap-44"
kotlin("kapt") version "1.2.60-eap-44"
}
application {
mainClassName = "samples.HelloAutoValueKt"
}
repositories {
jcenter()
}
dependencies {
compileOnly("com.google.auto.value:auto-value-annotations:1.6.2")
kapt("com.google.auto... | Upgrade auto-value to 1.6.2 in hello-kapt sample | Upgrade auto-value to 1.6.2 in hello-kapt sample
note that this didn't fix the sample yet but is a step forward
see #959
Signed-off-by: Paul Merlin <a027184a55211cd23e3f3094f1fdc728df5e0500@gradle.com>
| Kotlin | apache-2.0 | gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle-script-kotlin,robinverduijn/gradle,robinverduijn/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,robinverduijn/gradle,blindpirate/gradle,gradle/gradle-scr... |
4e4d3b0c48af56df77877945dbe773dcbb2748cd | subprojects/docs/src/samples/build-organization/cross-project-output-sharing/kotlin/consumer/build.gradle.kts | subprojects/docs/src/samples/build-organization/cross-project-output-sharing/kotlin/consumer/build.gradle.kts | val sharedConfiguration: Configuration by configurations.creating {
isCanBeConsumed = false
isCanBeResolved = true
}
dependencies {
add(sharedConfiguration.name, project(mapOf("path" to ":producer", "configuration" to "sharedConfiguration")))
}
tasks.register("showFile") {
inputs.files(sharedConfigura... | val sharedConfiguration: Configuration by configurations.creating {
isCanBeConsumed = false
isCanBeResolved = true
}
dependencies {
sharedConfiguration(project(path = ":producer", configuration = "sharedConfiguration"))
}
tasks.register("showFile") {
inputs.files(sharedConfiguration)
doFirst {
... | Simplify population of consumer configuration | Simplify population of consumer configuration
| Kotlin | apache-2.0 | gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle |
e210ef1e30b8f8eac7c0b0aa30b0a0e75ce69e5e | .teamcity/src/main/kotlin/util/WarmupEc2Agent.kt | .teamcity/src/main/kotlin/util/WarmupEc2Agent.kt | package util
import common.BuildToolBuildJvm
import common.Os
import common.buildToolGradleParameters
import common.gradleWrapper
import common.javaHome
import jetbrains.buildServer.configs.kotlin.v2019_2.BuildType
import jetbrains.buildServer.configs.kotlin.v2019_2.Requirement
import jetbrains.buildServer.configs.kot... | package util
import common.BuildToolBuildJvm
import common.Os
import common.buildToolGradleParameters
import common.gradleWrapper
import common.javaHome
import jetbrains.buildServer.configs.kotlin.v2019_2.BuildType
import jetbrains.buildServer.configs.kotlin.v2019_2.Requirement
import jetbrains.buildServer.configs.kot... | Use lenient dependency verification for EC2 warmup builds | Use lenient dependency verification for EC2 warmup builds
We run a `resolveAllDependencies` build to warm up the EC2 agent image.
However, sometimes the build fails with dependency verification failures,
which is not required because we just want to download all artifacts.
| Kotlin | apache-2.0 | gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,grad... |
4c3b4267c5b60d94a25373aaa97009da81c502b1 | src/main/kotlin/engine/mock/MockConsumerBase.kt | src/main/kotlin/engine/mock/MockConsumerBase.kt | package franz.engine.mock
import franz.JobStateException
import franz.JobStatus
import franz.Message
import franz.engine.ConsumerActor
import franz.engine.WorkerFunction
import kotlinx.coroutines.runBlocking
abstract class MockConsumerActorBase<T, U> : ConsumerActor<T, U> {
data class Result(
val throwab... | package franz.engine.mock
import franz.JobStateException
import franz.JobStatus
import franz.Message
import franz.engine.ConsumerActor
import franz.engine.WorkerFunction
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.runBlocking
abstract class MockConsumerActorBase<T, U> : ConsumerActor<T, U> {
... | Update to MockConsumerActorBase to actually implement ConsumerActor (add arg "scope" to function createWorker). | Update to MockConsumerActorBase to actually implement ConsumerActor (add arg "scope" to function createWorker).
| Kotlin | mit | zensum/franz,zensum/franz |
8f18206770008a21dc7ae9da80ddb7121db97d66 | subprojects/architecture-test/architecture-test.gradle.kts | subprojects/architecture-test/architecture-test.gradle.kts | import org.gradle.gradlebuild.PublicApi
plugins {
gradlebuild.internal.java
}
dependencies {
testImplementation(project(":baseServices"))
testImplementation(project(":modelCore"))
testImplementation(testLibrary("archunit_junit4"))
testImplementation(library("guava"))
rootProject.subprojects ... | import org.gradle.gradlebuild.PublicApi
plugins {
gradlebuild.internal.java
}
configurations {
testRuntimeClasspath.get().extendsFrom(fullGradleRuntimeClasspath.get())
}
dependencies {
testImplementation(project(":baseServices"))
testImplementation(project(":modelCore"))
testImplementation(testL... | Make use of shared fullGradleRuntimeClasspath in arch test project | Make use of shared fullGradleRuntimeClasspath in arch test project
| Kotlin | apache-2.0 | blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,grad... |
d6843bfe2e2f89e32acb57b83c1a4841ecc5c1c0 | docs/src/main/kotlin/net/dean/jraw/docs/DocLinkGenerator.kt | docs/src/main/kotlin/net/dean/jraw/docs/DocLinkGenerator.kt | package net.dean.jraw.docs
class DocLinkGenerator {
fun generate(name: String): String {
val clazz = ProjectTypeFinder.from(name) ?:
throw IllegalArgumentException("No JRAW classes with (simple) name '$name'")
return generate(clazz)
}
fun generate(clazz: Class<*>): String {
... | package net.dean.jraw.docs
import net.dean.jraw.Version
class DocLinkGenerator {
fun generate(name: String): String {
val clazz = ProjectTypeFinder.from(name) ?:
throw IllegalArgumentException("No JRAW classes with (simple) name '$name'")
return generate(clazz)
}
fun generate(... | Add working Javadoc link to gitbook site | Add working Javadoc link to gitbook site
| Kotlin | mit | thatJavaNerd/JRAW,thatJavaNerd/JRAW,Saketme/JRAW,Saketme/JRAW,Saketme/JRAW,thatJavaNerd/JRAW |
bc69eccb3a0f7f564204063e8fc3cdf57494a9d9 | app/src/main/java/org/wikipedia/page/PageAvailableOfflineHandler.kt | app/src/main/java/org/wikipedia/page/PageAvailableOfflineHandler.kt | package org.wikipedia.page
import android.annotation.SuppressLint
import io.reactivex.Observable
import io.reactivex.android.schedulers.AndroidSchedulers
import io.reactivex.schedulers.Schedulers
import org.wikipedia.WikipediaApp
import org.wikipedia.readinglist.database.ReadingListDbHelper
import org.wikipedia.readin... | package org.wikipedia.page
import android.annotation.SuppressLint
import kotlinx.coroutines.*
import org.wikipedia.WikipediaApp
import org.wikipedia.readinglist.database.ReadingListDbHelper
import org.wikipedia.readinglist.database.ReadingListPage
import org.wikipedia.util.log.L
object PageAvailableOfflineHandler {
... | Use coroutine in Kotlin file | Use coroutine in Kotlin file
| Kotlin | apache-2.0 | dbrant/apps-android-wikipedia,wikimedia/apps-android-wikipedia,dbrant/apps-android-wikipedia,dbrant/apps-android-wikipedia,wikimedia/apps-android-wikipedia,wikimedia/apps-android-wikipedia,dbrant/apps-android-wikipedia,wikimedia/apps-android-wikipedia,dbrant/apps-android-wikipedia |
5d68e76b3040cdea7b0e95b3e771a4bfa4140cf7 | .teamcity/_Self/subprojects/GitHub.kt | .teamcity/_Self/subprojects/GitHub.kt | package _Self.subprojects
import _Self.buildTypes.GithubLint
import _Self.buildTypes.GithubTests
import jetbrains.buildServer.configs.kotlin.v2019_2.Project
object GitHub : Project({
name = "Pull Requests checks"
description = "Automatic checking of GitHub Pull Requests"
buildType(GithubTests)
buildType(Gith... | package _Self.subprojects
import _Self.buildTypes.GithubTests
import jetbrains.buildServer.configs.kotlin.v2019_2.Project
object GitHub : Project({
name = "Pull Requests checks"
description = "Automatic checking of GitHub Pull Requests"
buildType(GithubTests)
})
| Remove linting checks on GH | [TC] Remove linting checks on GH
| Kotlin | mit | JetBrains/ideavim,JetBrains/ideavim |
c4e7a704be2ccbbf7c283b2241e950c0da2b46a4 | shared/src/main/kotlin/org/jetbrains/kotlin/konan/util/WithLogger.kt | shared/src/main/kotlin/org/jetbrains/kotlin/konan/util/WithLogger.kt | package org.jetbrains.kotlin.konan.util
import kotlin.system.exitProcess
interface Logger {
fun log(message: String)
fun error(message: String)
fun warning(message: String)
fun fatal(message: String): Nothing
}
interface WithLogger {
val logger: Logger
}
fun dummyLogger(message: String) {}
obje... | package org.jetbrains.kotlin.konan.util
import kotlin.system.exitProcess
interface Logger {
fun log(message: String)
fun error(message: String)
fun warning(message: String)
fun fatal(message: String): Nothing
}
interface WithLogger {
val logger: Logger
}
object DummyLogger : Logger {
overrid... | Allow dummy logger to produce messages with just printlns | Allow dummy logger to produce messages with just printlns
| Kotlin | apache-2.0 | JetBrains/kotlin-native,JetBrains/kotlin-native,wiltonlazary/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,wiltonlazary/kotlin-native,wiltonlazary/kotlin-native,JetBrains/kotlin-native,wiltonlazary/kotlin-native,wiltonlazary/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-... |
19b00891816feccf9166dd958e63b65bb98444e6 | aztec/src/main/kotlin/org/wordpress/aztec/plugins/ICommentHandler.kt | aztec/src/main/kotlin/org/wordpress/aztec/plugins/ICommentHandler.kt | package org.wordpress.aztec.plugins
import android.annotation.SuppressLint
import android.content.Context
import android.text.Editable
import android.text.Spanned
import android.text.style.CharacterStyle
import org.wordpress.aztec.plugins.IAztecPlugin
@SuppressLint("NewApi")
interface ICommentHandler : IAztecPlugin {... | package org.wordpress.aztec.plugins
import android.annotation.SuppressLint
import android.content.Context
import android.text.Editable
import android.text.Spanned
import android.text.style.CharacterStyle
import org.wordpress.aztec.plugins.IAztecPlugin
/**
* An interface for HTML comment processing plugins.
*/
@Supp... | Add documentation to the comment handler plugin | Add documentation to the comment handler plugin
| Kotlin | mpl-2.0 | wordpress-mobile/AztecEditor-Android,wordpress-mobile/AztecEditor-Android,wordpress-mobile/AztecEditor-Android |
245c1cc1411a9c58de9ed3c1b06110e87541e420 | src/main/kotlin/leetcode/Problem1954.kt | src/main/kotlin/leetcode/Problem1954.kt | package leetcode
/**
* https://leetcode.com/problems/minimum-garden-perimeter-to-collect-enough-apples/
*/
class Problem1954 {
fun minimumPerimeter(neededApples: Long): Long {
var answer = 0L
var lo = 1L
var hi = neededApples
while (lo <= hi) {
val mid = lo + ((hi - lo... | package leetcode
/**
* https://leetcode.com/problems/minimum-garden-perimeter-to-collect-enough-apples/
*/
class Problem1954 {
fun minimumPerimeter(neededApples: Long): Long {
var answer = 0L
var lo = 1L
var hi = neededApples
while (lo <= hi) {
val mid = lo + ((hi - lo... | Remove println in problem 1954 | Remove println in problem 1954
| Kotlin | mit | fredyw/leetcode,fredyw/leetcode,fredyw/leetcode,fredyw/leetcode |
1d943ca1eedd150ecf57c8c52b013075cefcdc6c | src/main/java/com/antonioleiva/kataagenda/ui/SysOutContactsListView.kt | src/main/java/com/antonioleiva/kataagenda/ui/SysOutContactsListView.kt | package com.antonioleiva.kataagenda.ui
import com.antonioleiva.kataagenda.domain.Contact
class SysOutContactsListView : ContactsListPresenter.View {
override fun showWelcomeMessage() {
println("Welcome to your awesome agenda!")
println("I'm going to ask you about some of your contacts information... | package com.antonioleiva.kataagenda.ui
import com.antonioleiva.kataagenda.domain.Contact
class SysOutContactsListView : ContactsListPresenter.View {
override fun showWelcomeMessage() {
println("Welcome to your awesome agenda!")
println("I'm going to ask you about some of your contacts information... | Improve they way contact is printed | Improve they way contact is printed
| Kotlin | apache-2.0 | antoniolg/KataContactsKotlin |
01277d1b5edb27cb0c211942ae567ede418a4867 | migration/src/main/java/br/com/bloder/migration/BetterMigration.kt | migration/src/main/java/br/com/bloder/migration/BetterMigration.kt | package br.com.bloder.migration
import br.com.bloder.migration.internal.InternalMigration
import io.realm.DynamicRealm
import io.realm.RealmMigration
/**
* Created by bloder on 24/09/16.
*/
class BetterMigration(internalMigration: InternalMigration) : RealmMigration {
override fun migrate(realm: DynamicRealm?,... | package br.com.bloder.migration
import br.com.bloder.migration.internal.detail.MigrationDetail
import io.realm.DynamicRealm
import io.realm.RealmMigration
/**
* Abstract better migration actions to transform in
* a realm migration
*/
class BetterMigration(private val migration: MigrationDetail) : RealmMigration {
... | Create up and down functions logic | Create up and down functions logic
| Kotlin | mit | ingresso-rapido-mobile/better-migrations,ingresso-rapido-mobile/better-migrations |
24187524c3db0287e40de4f057ff7fdea5595f34 | src/main/kotlin/cn/yiiguxing/plugin/translate/action/ShowWordOfTheDayAction.kt | src/main/kotlin/cn/yiiguxing/plugin/translate/action/ShowWordOfTheDayAction.kt | @file:Suppress("InvalidBundleOrProperty")
package cn.yiiguxing.plugin.translate.action
import cn.yiiguxing.plugin.translate.message
import cn.yiiguxing.plugin.translate.util.*
import com.intellij.openapi.actionSystem.AnAction
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.project.D... | @file:Suppress("InvalidBundleOrProperty")
package cn.yiiguxing.plugin.translate.action
import cn.yiiguxing.plugin.translate.message
import cn.yiiguxing.plugin.translate.util.*
import com.intellij.openapi.actionSystem.AnAction
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.project.D... | Optimize show word of the day action | Optimize show word of the day action
| Kotlin | mit | YiiGuxing/TranslationPlugin,YiiGuxing/TranslationPlugin |
0f1b95128b5efc4ca82204828921a75f694b4cb6 | platform/vcs-impl/src/com/intellij/util/progress/StepsProgressIndicator.kt | platform/vcs-impl/src/com/intellij/util/progress/StepsProgressIndicator.kt | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.util.progress
import com.intellij.openapi.progress.ProgressIndicator
class StepsProgressIndicator(private val indicator: ProgressIndicator, private val tota... | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.util.progress
import com.intellij.ide.util.DelegatingProgressIndicator
import com.intellij.openapi.progress.ProgressIndicator
class StepsProgressIndicator(p... | Use DelegatingProgressIndicator instead of kotlin's delegation to properly implement StandardProgressIndicator | [vcs] Use DelegatingProgressIndicator instead of kotlin's delegation to properly implement StandardProgressIndicator
GitOrigin-RevId: ef59cf70c02668e62b5f26541a470c738ba8d520 | 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... |
b39d2b784ed82b68130f4f59c4b146e2a123b08e | app-v3/src/main/java/com/khmelenko/lab/varis/repositories/RepoListAdapter.kt | app-v3/src/main/java/com/khmelenko/lab/varis/repositories/RepoListAdapter.kt | package com.khmelenko.lab.varis.repositories
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.ViewGroup
import com.khmelenko.lab.varis.R
import com.khmelenko.lab.varis.adapter.OnListItemListener
import com.khmelenko.lab.varis.adapter.viewholder.BuildViewHolder
import... | package com.khmelenko.lab.varis.repositories
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.ViewGroup
import com.khmelenko.lab.varis.R
import com.khmelenko.lab.varis.adapter.viewholder.BuildViewHolder
import com.khmelenko.lab.varis.network.response.Repo
/**
* Ada... | Fix listener in repo list adapter | Fix listener in repo list adapter
| Kotlin | apache-2.0 | dkhmelenko/Varis-Android,brave-warrior/TravisClient_Android,dkhmelenko/Varis-Android,brave-warrior/TravisClient_Android,dkhmelenko/Varis-Android |
a6c9bfb98b1b298e125d69cc0854fcc94259ad59 | src/Generation/ConsoleGenerator.kt | src/Generation/ConsoleGenerator.kt | package org.jetbrains.dokka
public class ConsoleGenerator(val signatureGenerator : SignatureGenerator) {
val IndentStep = " "
public fun generate(node: DocumentationNode, indent: String = "") {
generateHeader(node, indent)
//generateDetails(node, indent)
generateMembers(node, indent)
... | package org.jetbrains.dokka
public class ConsoleGenerator(val signatureGenerator : SignatureGenerator) {
val IndentStep = " "
public fun generate(node: DocumentationNode, indent: String = "") {
generateHeader(node, indent)
//generateDetails(node, indent)
generateMembers(node, indent)
... | Sort members by name for output. | Sort members by name for output.
| Kotlin | apache-2.0 | Kotlin/dokka,Kotlin/dokka,Kotlin/dokka,google/dokka,google/dokka,Kotlin/dokka,Kotlin/dokka,Kotlin/dokka |
1c8cd7ac910492353de1f57852d6633f76fdafdd | sources/src/test/kotlin/net/devromik/bw/MaxWhiteTest.kt | sources/src/test/kotlin/net/devromik/bw/MaxWhiteTest.kt | package net.devromik.bw
import org.junit.Assert.*
import org.junit.Test
/**
* @author Shulnyaev Roman
*/
class MaxWhiteTest {
val TREE_SIZE = 10
// ****************************** //
@Test fun numberOfBlackNodes_ShouldBe_From_0_To_SizeOfTree() {
val maxWhite = MaxWhite(treeSize = TREE_SIZE)
... | package net.devromik.bw
import org.junit.Assert.*
import org.junit.Test
/**
* @author Shulnyaev Roman
*/
class MaxWhiteTest {
val TREE_SIZE = 10
// ****************************** //
@Test fun numberOfBlackNodes_ShouldBe_From_0_To_SizeOfTree() {
val maxWhite = MaxWhite(treeSize = TREE_SIZE)
... | Fix the test for MaxWhite | Fix the test for MaxWhite
| Kotlin | mit | devromik/black-and-white |
930dafbee1cf049aa649d3f533556ccf4d62cb2e | app/src/main/java/com/sedsoftware/yaptalker/commons/extensions/ControllerExt.kt | app/src/main/java/com/sedsoftware/yaptalker/commons/extensions/ControllerExt.kt | package com.sedsoftware.yaptalker.commons.extensions
import android.widget.Toast
import com.bluelinelabs.conductor.Controller
import es.dmoral.toasty.Toasty
fun Controller.toastError(message: String) {
view?.let {
Toasty.error(it.context, message, Toast.LENGTH_SHORT, true).show()
}
}
fun Controller.toastSucc... | package com.sedsoftware.yaptalker.commons.extensions
import android.widget.Toast
import com.bluelinelabs.conductor.Controller
import com.bluelinelabs.conductor.autodispose.ControllerEvent
import com.bluelinelabs.conductor.autodispose.ControllerScopeProvider
import com.uber.autodispose.LifecycleScopeProvider
import es.... | Add scope provider ext property for Controller | Add scope provider ext property for Controller
| Kotlin | apache-2.0 | djkovrik/YapTalker,djkovrik/YapTalker |
82966f5e7280fc3414b8ea43e0a43f65c97106c0 | src/no/tornado/tornadofx/idea/configurations/TornadoFXRunLineMarkerContributor.kt | src/no/tornado/tornadofx/idea/configurations/TornadoFXRunLineMarkerContributor.kt | package no.tornado.tornadofx.idea.configurations
import com.intellij.execution.lineMarker.ExecutorAction
import com.intellij.execution.lineMarker.RunLineMarkerContributor
import com.intellij.psi.JavaPsiFacade
import com.intellij.psi.PsiElement
import com.intellij.util.Function
import no.tornado.tornadofx.idea.FXTools
... | package no.tornado.tornadofx.idea.configurations
import com.intellij.execution.lineMarker.ExecutorAction
import com.intellij.execution.lineMarker.RunLineMarkerContributor
import com.intellij.psi.JavaPsiFacade
import com.intellij.psi.PsiElement
import com.intellij.util.Function
import no.tornado.tornadofx.idea.FXTools
... | Support for running Fragment directly | Support for running Fragment directly
| Kotlin | apache-2.0 | edvin/tornadofx-idea-plugin,edvin/tornadofx-idea-plugin,edvin/tornadofx-idea-plugin,edvin/tornadofx-idea-plugin |
5821334382d9a41ba8b1fbf31f16fd8b3dda7143 | sample/src/androidTest/kotlin/com/agoda/sample/screen/AlertDialogActivityScreen.kt | sample/src/androidTest/kotlin/com/agoda/sample/screen/AlertDialogActivityScreen.kt | package com.agoda.sample.screen
import com.agoda.kakao.common.views.KView
import com.agoda.kakao.picker.date.KDatePickerDialog
import com.agoda.kakao.picker.time.KTimePickerDialog
import com.agoda.kakao.screen.Screen
import com.agoda.kakao.text.KTextView
import com.agoda.sample.R
open class AlertDialogActivityScreen... | package com.agoda.sample.screen
import com.agoda.kakao.common.views.KView
import com.agoda.kakao.dialog.KAlertDialog
import com.agoda.kakao.screen.Screen
import com.agoda.sample.R
open class AlertDialogActivityScreen : Screen<AlertDialogActivityScreen>() {
val showAlertDialogButton = KView { withId(R.id.show_aler... | Add Kakao Screen for Alerd Dialog | Add Kakao Screen for Alerd Dialog
| Kotlin | apache-2.0 | agoda-com/Kakao |
990fecac82cbf30970e6040ebc94370c52fbdea5 | core/kotlinx-coroutines-core/src/CoroutineExceptionHandlerImpl.kt | core/kotlinx-coroutines-core/src/CoroutineExceptionHandlerImpl.kt | /*
* Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
package kotlinx.coroutines.experimental
import java.util.*
import kotlin.coroutines.experimental.AbstractCoroutineContextElement
import kotlin.coroutines.experimental.CoroutineContext
internal actual fun han... | /*
* Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
package kotlinx.coroutines.experimental
import java.util.*
import kotlin.coroutines.experimental.*
/**
* A list of globally installed [CoroutineExceptionHandler] instances.
*
* Note, that Android may have... | Use explicit classloader when loading installed CoroutineExceptionHandler impls | Use explicit classloader when loading installed CoroutineExceptionHandler impls
Fixes #530
| Kotlin | apache-2.0 | Kotlin/kotlinx.coroutines,Kotlin/kotlinx.coroutines,Kotlin/kotlinx.coroutines,Kotlin/kotlinx.coroutines,Kotlin/kotlinx.coroutines |
ee4a16bfbd32cb387cc590e37e8383dab981ca97 | src/main/kotlin/ru/dyatel/tsuschedule/screens/PreferenceScreen.kt | src/main/kotlin/ru/dyatel/tsuschedule/screens/PreferenceScreen.kt | package ru.dyatel.tsuschedule.screens
import android.app.FragmentManager
import android.content.Context
import android.view.View
import com.wealthfront.magellan.BaseScreenView
import com.wealthfront.magellan.Screen
import org.jetbrains.anko.frameLayout
import org.jetbrains.anko.matchParent
import ru.dyatel.tsuschedule... | package ru.dyatel.tsuschedule.screens
import android.app.FragmentManager
import android.content.Context
import android.view.View
import com.wealthfront.magellan.BaseScreenView
import com.wealthfront.magellan.Screen
import org.jetbrains.anko.frameLayout
import org.jetbrains.anko.matchParent
import ru.dyatel.tsuschedule... | Remove init block in PreferenceView | Remove init block in PreferenceView
| Kotlin | mit | dya-tel/TSU-Schedule |
74ab336749bd14e40823cd3f927b5e3803dceea6 | src/main/kotlin/views/ImageView.kt | src/main/kotlin/views/ImageView.kt | package views
import models.Image
/**
* Created by allen on 3/30/17.
*/
class ImageView{
fun urlForImage(image: Image?): String{
if(image != null){
return "http://google.com/" + image.path
}
return ""
}
}
| package views
import models.Image
/**
* Created by allen on 3/30/17.
*/
class ImageView{
fun urlForImage(image: Image?): String{
if(image != null){
return "http://photog.alaska.dev/media/images/" + image.path
}
return ""
}
}
| Edit base url for url for image function | Edit base url for url for image function
| Kotlin | mit | allen-garvey/photog-spark,allen-garvey/photog-spark,allen-garvey/photog-spark |
95d4040b777b3a91b7e5dc242646eca011036731 | ktor-core/src/org/jetbrains/ktor/application/ApplicationResponse.kt | ktor-core/src/org/jetbrains/ktor/application/ApplicationResponse.kt | package org.jetbrains.ktor.application
import org.jetbrains.ktor.content.*
import org.jetbrains.ktor.host.*
import org.jetbrains.ktor.http.*
import org.jetbrains.ktor.nio.*
import org.jetbrains.ktor.response.*
import org.jetbrains.ktor.util.*
import java.io.*
/**
* Represents server's response
*/
interface Applicat... | package org.jetbrains.ktor.application
import org.jetbrains.ktor.content.*
import org.jetbrains.ktor.host.*
import org.jetbrains.ktor.http.*
import org.jetbrains.ktor.nio.*
import org.jetbrains.ktor.response.*
import org.jetbrains.ktor.util.*
import java.io.*
import java.nio.charset.*
/**
* Represents server's respo... | Add an optional charset to respondWrite | Add an optional charset to respondWrite
| Kotlin | apache-2.0 | ktorio/ktor,ktorio/ktor,ktorio/ktor,ktorio/ktor |
6ed5e125d97e4ddc5b1cd80ed3567fa7bd2e63e6 | plugins/kotlin-as-java/build.gradle.kts | plugins/kotlin-as-java/build.gradle.kts | publishing {
publications {
register<MavenPublication>("kotlin-as-java-plugin") {
artifactId = "kotlin-as-java-plugin"
from(components["java"])
}
}
}
dependencies {
implementation(project(":plugins:base"))
} | import org.jetbrains.configureBintrayPublication
plugins {
id("com.jfrog.bintray")
}
publishing {
publications {
register<MavenPublication>("kotlinAsJavaPlugin") {
artifactId = "kotlin-as-java-plugin"
from(components["java"])
}
}
}
dependencies {
implementation... | Configure bintray publishing for kotlin-as-java plugin | Configure bintray publishing for kotlin-as-java plugin
| Kotlin | apache-2.0 | Kotlin/dokka,Kotlin/dokka,Kotlin/dokka,Kotlin/dokka,Kotlin/dokka,Kotlin/dokka |
b3f8d4c47fb9b61d0c1788ecc0828d69c3c45706 | library/src/main/kotlin/com/wada811/rxviewmodel/commands/RxCommand.kt | library/src/main/kotlin/com/wada811/rxviewmodel/commands/RxCommand.kt | package com.wada811.rxviewmodel.commands
import android.databinding.ObservableBoolean
import io.reactivex.Flowable
import io.reactivex.Observable
import io.reactivex.disposables.CompositeDisposable
import io.reactivex.disposables.Disposable
import io.reactivex.processors.FlowableProcessor
import io.reactivex.processor... | package com.wada811.rxviewmodel.commands
import android.databinding.ObservableBoolean
import io.reactivex.Flowable
import io.reactivex.Observable
import io.reactivex.disposables.CompositeDisposable
import io.reactivex.disposables.Disposable
import io.reactivex.processors.FlowableProcessor
import io.reactivex.processor... | Make RxComamnd canExecute true as default | :+1: Make RxComamnd canExecute true as default
| Kotlin | apache-2.0 | wada811/RxViewModel,wada811/RxViewModel |
2b96dad50059360b011436a87875bf26186aed09 | app/src/main/java/com/chidurala/rahul/simonsays/Service/ButtonInputService.kt | app/src/main/java/com/chidurala/rahul/simonsays/Service/ButtonInputService.kt | package com.chidurala.rahul.simonsays.Service
import com.chidurala.rahul.simonsays.Delegate.UserInputDelegate
/**
* Created by Rahul Chidurala on 10/8/2017.
*/
class ButtonInputService {
private val userInputDelegate: UserInputDelegate
private var correctSequence: Sequence
private var userInputSequenc... | package com.chidurala.rahul.simonsays.Service
import com.chidurala.rahul.simonsays.Delegate.UserInputDelegate
/**
* Created by Rahul Chidurala on 10/8/2017.
*/
class ButtonInputService {
private val userInputDelegate: UserInputDelegate
private var correctSequence: Sequence
private var userInputSequenc... | Fix issue where game sequence is played after game is over. | Fix issue where game sequence is played after game is over.
| Kotlin | mit | RahulChidurala/SimonSays |
b57aa414e1584911963940112eb0e502ec8b2b08 | 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 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... | Use lateinit for autowired variables | Use lateinit for autowired variables
According to the Kotlin docs, this seems to be the preferred way to handle dependency
injected instance variables.
See: https://kotlinlang.org/docs/reference/properties.html#late-initialized-properties
| Kotlin | mit | mikegehard/user-management-evolution-kotlin,mikegehard/user-management-evolution-kotlin,mikegehard/user-management-evolution-kotlin |
bf0a9448faf2fa2fa7886c6cdc0e7cbde8c87b48 | build-logic/build.gradle.kts | build-logic/build.gradle.kts | plugins {
`kotlin-dsl`
id("com.diffplug.spotless") version "6.3.0"
}
buildscript {
dependencyLocking {
lockAllConfigurations()
}
}
dependencyLocking {
lockAllConfigurations()
}
spotless {
kotlinGradle {
ktlint("0.44.0")
}
}
dependencies {
implementation(plugin(id = "com... | plugins {
`kotlin-dsl`
id("com.diffplug.spotless") version "6.3.0"
}
buildscript {
dependencyLocking {
lockAllConfigurations()
}
}
dependencyLocking {
lockAllConfigurations()
}
spotless {
kotlinGradle {
target("*.gradle.kts", "src/main/kotlin/**/*.gradle.kts")
ktlint("0.... | Make sure build-logic precompiled plugins are formatted/checked | Make sure build-logic precompiled plugins are formatted/checked
| Kotlin | apache-2.0 | tbroyer/gradle-incap-helper,tbroyer/gradle-incap-helper |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.