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 |
|---|---|---|---|---|---|---|---|---|---|
2c220e9f7ac0160ba7a4d449ec1e2e5dd511960d | auth/src/main/java/com/vimeo/networking2/requests/AuthService.kt | auth/src/main/java/com/vimeo/networking2/requests/AuthService.kt | package com.vimeo.networking2.requests
import com.vimeo.networking2.VimeoAccount
import retrofit2.Call
import retrofit2.http.Field
import retrofit2.http.FormUrlEncoded
import retrofit2.http.Header
import retrofit2.http.POST
/**
* All the authentication endpoints.
*/
interface AuthService {
/**
* Get an ac... | package com.vimeo.networking2.requests
import com.vimeo.networking2.VimeoAccount
import retrofit2.Call
import retrofit2.http.Field
import retrofit2.http.FormUrlEncoded
import retrofit2.http.Header
import retrofit2.http.POST
/**
* All the authentication endpoints.
*/
interface AuthService {
/**
* Get an ac... | Fix for formatting in auth service | Fix for formatting in auth service
| Kotlin | mit | vimeo/vimeo-networking-java,vimeo/vimeo-networking-java,vimeo/vimeo-networking-java |
8f7c8d0dbd308a4490b034144c5b93d79d984b7d | test/nl/hannahsten/texifyidea/inspections/latex/redundancy/LatexDuplicateDefinitionInspectionTest.kt | test/nl/hannahsten/texifyidea/inspections/latex/redundancy/LatexDuplicateDefinitionInspectionTest.kt | package nl.hannahsten.texifyidea.inspections.latex.redundancy
import nl.hannahsten.texifyidea.file.LatexFileType
import nl.hannahsten.texifyidea.inspections.TexifyInspectionTestBase
class LatexDuplicateDefinitionInspectionTest : TexifyInspectionTestBase(LatexDuplicateDefinitionInspection()) {
fun testWarning() {... | package nl.hannahsten.texifyidea.inspections.latex.redundancy
import nl.hannahsten.texifyidea.file.LatexFileType
import nl.hannahsten.texifyidea.inspections.TexifyInspectionTestBase
class LatexDuplicateDefinitionInspectionTest : TexifyInspectionTestBase(LatexDuplicateDefinitionInspection()) {
fun testWarning() {... | Add test to verify the issue is solved and remove a part of another test that is now not supported as true positive anymore | Add test to verify the issue is solved and remove a part of another test that is now not supported as true positive anymore
| Kotlin | mit | Ruben-Sten/TeXiFy-IDEA,Ruben-Sten/TeXiFy-IDEA,Ruben-Sten/TeXiFy-IDEA,Ruben-Sten/TeXiFy-IDEA |
f15a7be1c92e78cf69aab04f092cc808b57ab736 | src/main/kotlin/org/rust/toml/Util.kt | src/main/kotlin/org/rust/toml/Util.kt | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.toml
import com.intellij.notification.NotificationType
import org.rust.ide.notifications.showBalloonWithoutProject
import org.toml.lang.psi.*
import kotlin.reflect.KProperty
fun tomlPluginIsAb... | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.toml
import com.intellij.notification.NotificationType
import org.rust.ide.notifications.showBalloonWithoutProject
import org.toml.lang.psi.*
import kotlin.reflect.KProperty
fun tomlPluginIsAb... | Make sure notification is shown at most once | Make sure notification is shown at most once
| Kotlin | mit | Undin/intellij-rust,intellij-rust/intellij-rust,intellij-rust/intellij-rust,Undin/intellij-rust,anton-okolelov/intellij-rust,intellij-rust/intellij-rust,anton-okolelov/intellij-rust,anton-okolelov/intellij-rust,intellij-rust/intellij-rust,anton-okolelov/intellij-rust,Undin/intellij-rust,anton-okolelov/intellij-rust,Und... |
36eaad90e85f69d2ee26de8188fcba434c937205 | src/main/java/org/purescript/psi/PSValueDeclaration.kt | src/main/java/org/purescript/psi/PSValueDeclaration.kt | package org.purescript.psi
import com.intellij.lang.ASTNode
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiNameIdentifierOwner
import com.intellij.psi.util.collectDescendantsOfType
class PSValueDeclaration(node: ASTNode) : PSPsiElement(node),
PsiNameIdentifierOwner {
override fun getName(): Str... | package org.purescript.psi
import com.intellij.lang.ASTNode
import com.intellij.navigation.ItemPresentation
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiNameIdentifierOwner
import com.intellij.psi.util.collectDescendantsOfType
import javax.swing.Icon
class PSValueDeclaration(node: ASTNode) : PSPsiEle... | Add presentation for value declaration | Add presentation for value declaration
| Kotlin | bsd-3-clause | intellij-purescript/intellij-purescript,intellij-purescript/intellij-purescript |
3b9d24909b6deb1470e7a63be6cc38ff47e64a75 | src/Strings.kt | src/Strings.kt | package Kotlin101.Strings
fun main(args : Array<String>) {
var plato1 = "Wise men speak because they have something to say; Fools because they have to say something."
//This is a single line string
println("I love ancient philosophy.")
//Use triple quote """ to go multi line. This also means that you... | package Kotlin101.Strings
fun main(args : Array<String>) {
var plato1 = "Wise men speak because they have something to say; Fools because they have to say something."
//This is a single line string
println("I love ancient philosophy.")
//Use triple quote """ to go multi line. This also means that you... | Add comment to continue to Variables.kt | Add comment to continue to Variables.kt
| Kotlin | bsd-3-clause | mewebstudio/Kotlin101,dodyg/Kotlin101 |
58ff631144f1c7d73a1e752e367d842453d34f0f | src/main/kotlin/venus/riscv/utils.kt | src/main/kotlin/venus/riscv/utils.kt | package venus.riscv
fun userStringToInt(s: String): Int {
if (isCharacterLiteral(s)) {
return characterLiteralToInt(s)
}
val radix = when (s.take(2)) {
"0x" -> 16
"0b" -> 2
else -> return s.toLong().toInt()
}
return s.drop(2).toLong(radix).toInt()
}
private fun isCh... | package venus.riscv
fun userStringToInt(s: String): Int {
if (isCharacterLiteral(s)) {
return characterLiteralToInt(s)
}
val radix = when {
s.startsWith("0x") -> 16
s.startsWith("0b") -> 2
s.drop(1).startsWith("0x") -> 16
s.drop(1).startsWith("0b") -> 2
else... | Fix to allow negative signs for hex/binary immediates | Fix to allow negative signs for hex/binary immediates
| Kotlin | mit | kvakil/venus,kvakil/venus,kvakil/venus |
29aa31ee66aec7803d045b342b28e8e33125fda0 | Api/src/test/kotlin/net/binggl/mydms/features/upload/UploadModelTest.kt | Api/src/test/kotlin/net/binggl/mydms/features/upload/UploadModelTest.kt | package net.binggl.mydms.features.upload
import FixtureHelpers
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
import net.binggl.mydms.features.upload.models.UploadItem
import org.junit.Assert
import org.junit.Test
import java.text.SimpleDateFormat
class UploadModelTest {
@Test
fun serializeTo... | package net.binggl.mydms.features.upload
import FixtureHelpers
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
import net.binggl.mydms.features.upload.models.UploadItem
import org.joda.time.format.DateTimeFormat
import org.junit.Assert
import org.junit.Test
import java.text.SimpleDateFormat
class Uploa... | Use jodatime to parse dates. | Use jodatime to parse dates.
| Kotlin | apache-2.0 | bihe/mydms-java,bihe/mydms-java,bihe/mydms-java,bihe/mydms-java,bihe/mydms-java |
547971a5fc1de27bee0a8a12a118002d851b6bd0 | test/me/scana/okgradle/data/TestUtil.kt | test/me/scana/okgradle/data/TestUtil.kt | package me.scana.okgradle.data
import okhttp3.*
import okhttp3.MediaType.Companion.toMediaType
import okhttp3.ResponseBody.Companion.toResponseBody
class TestInterceptor : Interceptor {
var recentRequest: Request? = null
private var response: Response = buildResponse("".toResponseBody("text/plain".toMediaTyp... | package me.scana.okgradle.data
import okhttp3.*
import okhttp3.MediaType.Companion.toMediaType
import okhttp3.ResponseBody.Companion.toResponseBody
class TestInterceptor : Interceptor {
var recentRequest: Request? = null
private var response: Response = buildResponse("".toResponseBody("text/plain".toMediaTyp... | Migrate method call to OkHttps extension function call | Migrate method call to OkHttps extension function call
| Kotlin | apache-2.0 | scana/ok-gradle,scana/ok-gradle |
3797ae78b4b78c5daaa72efd30d7d50e68b2b998 | app/src/main/java/pl/mg6/likeornot/view/SquareViewPager.kt | app/src/main/java/pl/mg6/likeornot/view/SquareViewPager.kt | package pl.mg6.likeornot.view
import android.content.Context
import android.support.v4.view.ViewPager
import android.util.AttributeSet
class SquareViewPager : ViewPager {
constructor(context: Context?) : super(context)
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs)
override... | package pl.mg6.likeornot.view
import android.content.Context
import android.support.v4.view.ViewPager
import android.util.AttributeSet
class SquareViewPager : ViewPager {
constructor(context: Context?) : super(context)
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs)
override... | Fix how sqaure view measures its height. | Fix how sqaure view measures its height.
| Kotlin | apache-2.0 | mg6maciej/fluffy-octo-rotary-phone,mg6maciej/fluffy-octo-rotary-phone,mg6maciej/fluffy-octo-rotary-phone |
3f9ca0758eec851e3561aee58d618d34c21647fe | uithread/src/main/java/splitties/uithread/UiThread.kt | uithread/src/main/java/splitties/uithread/UiThread.kt | /*
* Copyright (c) 2017. 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) 2017. 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 ... | Add uiThread inline proxy to mainThread property | Add uiThread inline proxy to mainThread property
| Kotlin | apache-2.0 | LouisCAD/Splitties,LouisCAD/Splitties,LouisCAD/Splitties |
4650c0da62324b958162ea9ab58df41f2b8f27e5 | src/Functions/Cascades.kt | src/Functions/Cascades.kt | package Kotlin101.Functions.Cascades
fun main (Args : Array<String>){
/* This call utilizes extension function and infix call */
var superman = Superman() with {
name = "Lux Luthor"
punch()
kick()
}
}
public fun <T>T.with(operations : T.() -> Unit) : T {
this.operat... | package Kotlin101.Functions.Cascades
fun main (Args : Array<String>){
/* This call utilizes extension function and infix call. It is handy to deal with pesky Java object initializations */
var superman = Superman() with {
name = "Lux Luthor"
punch()
kick()
sidekick = Spi... | Add sub object creation in with example | Add sub object creation in with example
| Kotlin | bsd-3-clause | dodyg/Kotlin101,mewebstudio/Kotlin101 |
1410baa90a684f2b79f0798e01a008c1982a8b15 | subprojects/build-option/build.gradle.kts | subprojects/build-option/build.gradle.kts | plugins {
id("gradlebuild.distribution.api-java")
}
gradlebuildJava.usedInWorkers()
dependencies {
implementation(project(":cli"))
implementation(project(":base-annotations"))
implementation(libs.commonsLang)
}
| plugins {
id("gradlebuild.distribution.api-java")
}
description = "The Gradle build option parser."
gradlebuildJava.usedInWorkers()
dependencies {
implementation(project(":cli"))
implementation(project(":base-annotations"))
implementation(libs.commonsLang)
}
| Add description to :build-option project | Add description to :build-option project
| Kotlin | apache-2.0 | blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,grad... |
e52ab8c50cbb588078887fd5a2f67889a8b9d381 | app/src/main/java/me/banes/chris/tivi/TiviAppGlideModule.kt | app/src/main/java/me/banes/chris/tivi/TiviAppGlideModule.kt | /*
* Copyright 2018 Google, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | /*
* Copyright 2018 Google, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | Disable HARDWARE bitmaps in Glide for now | Disable HARDWARE bitmaps in Glide for now
They break transitions
| Kotlin | apache-2.0 | chrisbanes/tivi,chrisbanes/tivi |
f63b1db8c35679c20974143a37b1415239a08b27 | .teamcity/Gradle_Check/configurations/ColonyCompatibility.kt | .teamcity/Gradle_Check/configurations/ColonyCompatibility.kt | package configurations
import jetbrains.buildServer.configs.kotlin.v10.BuildStep
import jetbrains.buildServer.configs.kotlin.v10.BuildType
import jetbrains.buildServer.configs.kotlin.v10.buildSteps.gradle
import jetbrains.buildServer.configs.kotlin.v10.buildSteps.script
import model.CIBuildModel
object ColonyCompatib... | package configurations
import jetbrains.buildServer.configs.kotlin.v10.BuildStep
import jetbrains.buildServer.configs.kotlin.v10.BuildType
import jetbrains.buildServer.configs.kotlin.v10.buildSteps.gradle
import jetbrains.buildServer.configs.kotlin.v10.buildSteps.script
import model.CIBuildModel
object ColonyCompatib... | Remove build scan init from Colony Comp build | Remove build scan init from Colony Comp build
We do not have that script in the other repository.
| Kotlin | apache-2.0 | blindpirate/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,robinverduijn/gradle,blindpirate/gradle... |
bc68eb5ded7515e47926a2bfa17c29a11c4b69db | aztec/src/main/kotlin/org/wordpress/aztec/TextFormat.kt | aztec/src/main/kotlin/org/wordpress/aztec/TextFormat.kt | package org.wordpress.aztec
/**
* Describes styles that could be applied to text
*/
enum class TextFormat {
FORMAT_BOLD,
FORMAT_ITALIC,
FORMAT_UNDERLINED,
FORMAT_STRIKETHROUGH,
FORMAT_BULLET,
FORMAT_QUOTE,
FORMAT_LINK
}
| package org.wordpress.aztec
/**
* Describes styles that could be applied to text
*/
enum class TextFormat {
FORMAT_HEADER_1,
FORMAT_HEADER_2,
FORMAT_HEADER_3,
FORMAT_HEADER_4,
FORMAT_HEADER_5,
FORMAT_HEADER_6,
FORMAT_BOLD,
FORMAT_ITALIC,
FORMAT_UNDERLINED,
FORMAT_STRIKETHROUGH... | Add headers to text format | Add headers to text format
| Kotlin | mpl-2.0 | wordpress-mobile/AztecEditor-Android,wordpress-mobile/AztecEditor-Android,wordpress-mobile/AztecEditor-Android |
4cd193e352e8baf8febc185214974681e090960c | acornui-core/src/commonMain/kotlin/com/acornui/skins/WindowScalingAttachment.kt | acornui-core/src/commonMain/kotlin/com/acornui/skins/WindowScalingAttachment.kt | package com.acornui.skins
import com.acornui.component.UiComponent
import com.acornui.component.createOrReuseAttachment
import com.acornui.component.style.addStyleRule
import com.acornui.component.text.charStyle
import com.acornui.core.di.inject
import com.acornui.core.graphic.Window
/**
* Watches the window for sca... | package com.acornui.skins
import com.acornui.component.UiComponent
import com.acornui.component.createOrReuseAttachment
import com.acornui.component.style.AlwaysFilter
import com.acornui.component.style.StyleRule
import com.acornui.component.text.charStyle
import com.acornui.core.Disposable
import com.acornui.core.di.... | Fix Scaling attachment not re-applying when changing skin | Fix Scaling attachment not re-applying when changing skin
| Kotlin | apache-2.0 | AcornUI/Acorn,AcornUI/Acorn,AcornUI/Acorn |
13ce923372304bf320325dec37556b90ec759c15 | tinbo-plugin-api/src/main/kotlin/io/gitlab/arturbosch/tinbo/plugins/TinboContext.kt | tinbo-plugin-api/src/main/kotlin/io/gitlab/arturbosch/tinbo/plugins/TinboContext.kt | package io.gitlab.arturbosch.tinbo.plugins
import io.gitlab.arturbosch.tinbo.config.TinboConfig
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.beans.factory.config.BeanDefinition
import org.springframework.context.ApplicationContext
import org.springframework.context.support.G... | package io.gitlab.arturbosch.tinbo.plugins
import io.gitlab.arturbosch.tinbo.config.TinboConfig
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.beans.factory.config.BeanDefinition
import org.springframework.context.ApplicationContext
import org.springframework.context.support.G... | Add non inlined beanOf and beansOf functions to context for better java interop | Add non inlined beanOf and beansOf functions to context for better java interop
| Kotlin | apache-2.0 | arturbosch/TiNBo,arturbosch/TiNBo,arturbosch/TiNBo |
9f120031e88e94a4bdd34c3d7027cd08966e3264 | subprojects/enterprise/build.gradle.kts | subprojects/enterprise/build.gradle.kts | plugins {
id("gradlebuild.distribution.api-java")
}
dependencies {
api(project(":base-services")) // leaks BuildOperationNotificationListener on API
implementation(libs.jsr305)
implementation(libs.inject)
implementation(project(":logging"))
implementation(project(":core-api"))
implementati... | plugins {
id("gradlebuild.distribution.api-java")
}
dependencies {
api(project(":base-services")) // leaks BuildOperationNotificationListener on API
implementation(libs.jsr305)
implementation(libs.inject)
implementation(libs.groovyJson)
implementation(project(":logging"))
implementation(pr... | Upgrade 'enterprise' to Groovy 3 | Upgrade 'enterprise' to Groovy 3
| Kotlin | apache-2.0 | blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,grad... |
b4e22f60962a51b36155ffd15260c5be1cf4c931 | library/src/test/java/org/firezenk/kartographer/library/core/CoreTest.kt | library/src/test/java/org/firezenk/kartographer/library/core/CoreTest.kt | package org.firezenk.kartographer.library.core
import org.junit.Assert.*
/**
* Created by Jorge Garrido Oval, aka firezenk on 14/01/18.
* Project: Kartographer
*/
class CoreTest {
} | package org.firezenk.kartographer.library.core
import org.firezenk.kartographer.library.Logger
import org.firezenk.kartographer.library.core.util.TargetRoute
import org.firezenk.kartographer.library.dsl.route
import org.junit.Assert.assertEquals
import org.junit.Before
import org.junit.Test
/**
* Created by Jorge Ga... | Add a basic Core test | Add a basic Core test
| Kotlin | mit | FireZenk/Kartographer |
5854b836e53795733afc4d0c3b7c866d96d73438 | src/main/kotlin/venus/riscv/insts/dsl/Instruction.kt | src/main/kotlin/venus/riscv/insts/dsl/Instruction.kt | package venus.riscv.insts.dsl
import venus.assembler.AssemblerError
import venus.riscv.MachineCode
import venus.riscv.insts.dsl.formats.InstructionFormat
import venus.riscv.insts.dsl.impls.InstructionImplementation
import venus.riscv.insts.dsl.parsers.InstructionParser
open class Instruction(
private val name... | package venus.riscv.insts.dsl
import venus.assembler.AssemblerError
import venus.riscv.MachineCode
import venus.riscv.insts.dsl.formats.InstructionFormat
import venus.riscv.insts.dsl.impls.InstructionImplementation
import venus.riscv.insts.dsl.parsers.InstructionParser
open class Instruction(
private val name... | Add toString to see current instruction | Add toString to see current instruction
| Kotlin | mit | kvakil/venus,kvakil/venus,kvakil/venus |
af9d9d76b5aa06f03fcdaba11f439aae87ab8e96 | src/main/kotlin/venus/riscv/insts/dsl/Instruction.kt | src/main/kotlin/venus/riscv/insts/dsl/Instruction.kt | package venus.riscv.insts.dsl
import venus.assembler.AssemblerError
import venus.riscv.MachineCode
import venus.riscv.insts.dsl.disasms.InstructionDisassembler
import venus.riscv.insts.dsl.formats.InstructionFormat
import venus.riscv.insts.dsl.impls.InstructionImplementation
import venus.riscv.insts.dsl.parsers.Instru... | package venus.riscv.insts.dsl
import venus.assembler.AssemblerError
import venus.riscv.MachineCode
import venus.riscv.insts.dsl.disasms.InstructionDisassembler
import venus.riscv.insts.dsl.formats.InstructionFormat
import venus.riscv.insts.dsl.impls.InstructionImplementation
import venus.riscv.insts.dsl.parsers.Instru... | Change to throw SimulatorError when appropriate | Change to throw SimulatorError when appropriate
| Kotlin | mit | kvakil/venus,kvakil/venus,kvakil/venus |
d49facf0025572e3a66987c48af4ed8914aeeb88 | samples/copy/build.gradle.kts | samples/copy/build.gradle.kts | import org.gradle.api.tasks.*
import org.apache.tools.ant.filters.*
//for including in the copy task
val dataContent = copySpec {
it.from("src/data")
it.include("*.data")
}
task<Copy>("initConfig") {
from("src/main/config") {
it.include("**/*.properties")
it.include("**/*.xml")
it... | import org.gradle.api.file.*
import org.gradle.api.tasks.*
import org.apache.tools.ant.filters.*
//for including in the copy task
val dataContent = copySpec {
it.from("src/data")
it.include("*.data")
}
task<Copy>("initConfig") {
from("src/main/config").let { it as CopySpec }.apply {
include("**/*... | Fix copy sample to work against latest Gradle API | Fix copy sample to work against latest Gradle API
Interim solution until either #52 is implemented or the change in the
Gradle API is reconsidered.
| Kotlin | apache-2.0 | blindpirate/gradle,robinverduijn/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle-script-kotlin,robinverduijn/gradle,gradle/gradle,gradle/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,robinverduijn/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gra... |
9b7b7102aa6596b4c378a27f758dd0a8f5d56916 | src/nl/rubensten/texifyidea/run/BibtexCommandLineState.kt | src/nl/rubensten/texifyidea/run/BibtexCommandLineState.kt | package nl.rubensten.texifyidea.run
import com.intellij.execution.ExecutionException
import com.intellij.execution.configurations.CommandLineState
import com.intellij.execution.configurations.GeneralCommandLine
import com.intellij.execution.process.KillableProcessHandler
import com.intellij.execution.process.ProcessHa... | package nl.rubensten.texifyidea.run
import com.intellij.execution.ExecutionException
import com.intellij.execution.configurations.CommandLineState
import com.intellij.execution.configurations.GeneralCommandLine
import com.intellij.execution.process.KillableProcessHandler
import com.intellij.execution.process.ProcessHa... | Enable the out directory on all systems, on by default | Enable the out directory on all systems, on by default
| Kotlin | mit | Ruben-Sten/TeXiFy-IDEA,Ruben-Sten/TeXiFy-IDEA,Ruben-Sten/TeXiFy-IDEA,Ruben-Sten/TeXiFy-IDEA |
4c906a7b97cfac6b3e351bdd3416e1090130cfcf | src/main/kotlin/com/masahirosaito/spigot/homes/Permission.kt | src/main/kotlin/com/masahirosaito/spigot/homes/Permission.kt | package com.masahirosaito.spigot.homes
object Permission {
val home_command = "homes.command"
val home_command_name = home_command + ".name"
val home_command_player = home_command + ".player"
val home_command_player_name = home_command_player + ".name"
val home_command_set = home_command + ".set"
... | package com.masahirosaito.spigot.homes
object Permission {
val home_command = "homes.command"
val home_command_name = home_command + ".name"
val home_command_player = home_command + ".player"
val home_command_player_name = home_command_player + ".name"
val home_command_set = home_command + ".set"
... | Add permission of list command | [Edit] Add permission of list command
| Kotlin | apache-2.0 | Homes-MinecraftServerMod/Homes,Homes-MinecraftServerMod/Homes |
e5c1d04a62df20e43a6386bceaaf3509c1b2852c | core/src/main/kotlin/Kotlin/KotlinElementSignatureProvider.kt | core/src/main/kotlin/Kotlin/KotlinElementSignatureProvider.kt | package org.jetbrains.dokka
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiMember
import com.intellij.psi.PsiNameIdentifierOwner
import org.jetbrains.kotlin.asJava.elements.KtLightElement
import org.jetbrains.kotlin.descriptors.DeclarationDescriptor
import org.jetbrains.kotlin.resolve.BindingContext
imp... | package org.jetbrains.dokka
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiMember
import com.intellij.psi.PsiNameIdentifierOwner
import com.intellij.psi.PsiPackage
import org.jetbrains.kotlin.asJava.elements.KtLightElement
import org.jetbrains.kotlin.descriptors.DeclarationDescriptor
import org.jetbrain... | Fix resolution of package links | Fix resolution of package links
| Kotlin | apache-2.0 | google/dokka,google/dokka |
ffd9dd315370e2a084a902f050dfa9061a43ded9 | mycollab-servlet/src/main/java/com/mycollab/module/billing/servlet/BillingSpringServletRegistrator.kt | mycollab-servlet/src/main/java/com/mycollab/module/billing/servlet/BillingSpringServletRegistrator.kt | /**
* Copyright © MyCollab
*
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
*
* This program is di... | /**
* Copyright © MyCollab
*
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
*
* This program is di... | Update the correct reset password servlet | Update the correct reset password servlet
| Kotlin | agpl-3.0 | esofthead/mycollab,esofthead/mycollab,aglne/mycollab,MyCollab/mycollab,esofthead/mycollab,aglne/mycollab,MyCollab/mycollab,MyCollab/mycollab,aglne/mycollab,MyCollab/mycollab,esofthead/mycollab,MyCollab/mycollab,aglne/mycollab |
b72e5012698b01590faff152348655756f614bf2 | src/main/kotlin/tv/fanart/bot/FanartBot.kt | src/main/kotlin/tv/fanart/bot/FanartBot.kt | package tv.fanart.bot
import kotlinx.coroutines.*
import org.koin.core.KoinComponent
import org.koin.core.inject
import tv.fanart.api.FanartApi
import tv.fanart.config.ConfigRepo
import java.lang.Runnable
import java.util.concurrent.TimeUnit
class FanartBot : KoinComponent {
private val configurationClient by i... | package tv.fanart.bot
import kotlinx.coroutines.*
import org.koin.core.KoinComponent
import org.koin.core.inject
import tv.fanart.api.FanartApi
import tv.fanart.config.ConfigRepo
import java.lang.Runnable
import java.util.concurrent.TimeUnit
class FanartBot : KoinComponent {
private val configurationClient by i... | Fix update times not changing after request | NOGH: Fix update times not changing after request
| Kotlin | mit | fanart-tv/fanarttv-discord-update-bot |
0edbe781a59ef70c14aa71f15a33ef9e161f8731 | wordpress-shortcodes/src/main/java/org/wordpress/aztec/plugins/shortcodes/spans/CaptionShortcodeSpan.kt | wordpress-shortcodes/src/main/java/org/wordpress/aztec/plugins/shortcodes/spans/CaptionShortcodeSpan.kt | package org.wordpress.aztec.plugins.shortcodes.spans
import android.text.TextPaint
import android.text.style.CharacterStyle
import android.text.style.ParagraphStyle
import org.wordpress.aztec.AztecAttributes
import org.wordpress.aztec.spans.*
import org.xml.sax.Attributes
class CaptionShortcodeSpan(override var attri... | package org.wordpress.aztec.plugins.shortcodes.spans
import android.graphics.Typeface
import android.text.style.StyleSpan
import org.wordpress.aztec.AztecAttributes
import org.wordpress.aztec.spans.*
class CaptionShortcodeSpan(override var attributes: AztecAttributes,
override val TAG: Stri... | Make the caption span a block span and styled as italic | Make the caption span a block span and styled as italic
| Kotlin | mpl-2.0 | wordpress-mobile/AztecEditor-Android,wordpress-mobile/AztecEditor-Android,wordpress-mobile/AztecEditor-Android |
6a58430516878dbd1c5f146bb7eef740d2bb5f42 | src/main/kotlin/org/wfanet/measurement/common/CommonServer.kt | src/main/kotlin/org/wfanet/measurement/common/CommonServer.kt | package org.wfanet.measurement.common
import io.grpc.BindableService
import io.grpc.Server
import io.grpc.ServerBuilder
import java.io.IOException
import java.util.logging.Level
import java.util.logging.Logger
class CommonServer(private val serversEnum: CommonServerType,
vararg services: BindableSe... | package org.wfanet.measurement.common
import io.grpc.BindableService
import io.grpc.Server
import io.grpc.ServerBuilder
import java.io.IOException
import java.util.logging.Level
import java.util.logging.Logger
class CommonServer(
private val nameForLogging: String,
private val port: Int,
vararg services: Bindab... | Create Duchy servers for workers and work management. | Create Duchy servers for workers and work management.
Change-Id: I8ecd8cdf0c02acda3588f9c539cc7caf3ce7f900
| Kotlin | apache-2.0 | world-federation-of-advertisers/common-jvm,world-federation-of-advertisers/common-jvm |
e9af8f85f2d39e08b3a068f07ecdb22962680c74 | buildSrc/src/main/kotlin/com/bmuschko/gradle/docker/FunctionalTestPlugin.kt | buildSrc/src/main/kotlin/com/bmuschko/gradle/docker/FunctionalTestPlugin.kt | package com.bmuschko.gradle.docker
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.plugins.JavaPluginConvention
import org.gradle.api.tasks.GroovySourceSet
import org.gradle.api.tasks.testing.Test
import org.gradle.kotlin.dsl.*
class FunctionalTestPlugin : Plugin<Project> {
overri... | package com.bmuschko.gradle.docker
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.plugins.JavaPluginConvention
import org.gradle.api.tasks.GroovySourceSet
import org.gradle.api.tasks.testing.Test
import org.gradle.kotlin.dsl.*
class FunctionalTestPlugin : Plugin<Project> {
overri... | Add test setup output to compile classpath | Add test setup output to compile classpath
| Kotlin | apache-2.0 | bmuschko/gradle-docker-plugin,bmuschko/gradle-docker-plugin,bmuschko/gradle-docker-plugin |
097fc4a9046eb3d39cf7d1ddb839ff030956f684 | src/main/kotlin/com/doomspork/helloworld/HelloWorldConfiguration.kt | src/main/kotlin/com/doomspork/helloworld/HelloWorldConfiguration.kt | package com.doomspork.helloworld
import io.dropwizard.Configuration
import org.hibernate.validator.constraints.NotEmpty
import com.fasterxml.jackson.annotation.JsonProperty
import com.fasterxml.jackson.annotation.JsonCreator
data class HelloWorldConfiguration [JsonCreator] (JsonProperty("template") NotEmpty var templ... | package com.doomspork.helloworld
import com.fasterxml.jackson.annotation.JsonProperty
import io.dropwizard.Configuration
public class HelloWorldConfiguration() : Configuration() {
@JsonProperty("template")
public var template: String=""
@JsonProperty("defaultName")
public var defaultName: String="Str... | Change data class to normal class as data class inheritance has been removed. | Change data class to normal class as data class inheritance has been removed.
| Kotlin | mit | doomspork/kotlin-dropwizard |
96c5348f0ce3ac74ec54051e3ba9fdbfdecc90ae | src/test/java/com/gitlab/artismarti/tinbo/config/TinboConfigTest.kt | src/test/java/com/gitlab/artismarti/tinbo/config/TinboConfigTest.kt | package com.gitlab.artismarti.tinbo.config
import com.google.common.io.Resources
import org.junit.After
import org.junit.Test
import java.nio.file.Files
import java.nio.file.Paths
/**
* @author artur
*/
class TinboConfigTest {
private val path = Paths.get("test")
private val config: TinboConfig
get() {
val... | package com.gitlab.artismarti.tinbo.config
import com.google.common.io.Resources
import org.junit.After
import org.junit.Test
import java.nio.file.Files
import java.nio.file.Paths
/**
* @author artur
*/
class TinboConfigTest {
private val path = Paths.get("test")
private val config: TinboConfig
get() {
val... | Use deleteIfExists in test case | Use deleteIfExists in test case
| Kotlin | apache-2.0 | arturbosch/TiNBo,arturbosch/TiNBo,arturbosch/TiNBo |
4a72cd0cd34ec80306be6480c1a71d4f6a25b6ba | src/main/kotlin/com/ridi/books/helper/view/SoftKeyboardHelper.kt | src/main/kotlin/com/ridi/books/helper/view/SoftKeyboardHelper.kt | package com.ridi.books.helper.view
import android.content.Context
import android.view.View
import android.view.inputmethod.InputMethodManager
private val Context.inputMethodManager: InputMethodManager
get() = getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager
@JvmOverloads
fun View.showSoftKeyb... | package com.ridi.books.helper.view
import android.content.Context
import android.view.View
import android.view.inputmethod.InputMethodManager
private val Context.inputMethodManager: InputMethodManager
get() = getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager
@JvmOverloads
fun View.showSoftKeyb... | Revert "뷰에 포커스를 주고 동시에 키보드를 띄우는 확장 매서드 추가" | Revert "뷰에 포커스를 주고 동시에 키보드를 띄우는 확장 매서드 추가"
This reverts commit 4b14402b2c40c17a1af636310079e712fc346b6a.
| Kotlin | mit | ridibooks/rbhelper-android,ridibooks/rbhelper-android |
6c052090669a87e71a0682ea91087905a90f8e44 | src/main/kotlin/me/mrkirby153/KirBot/command/executors/music/CommandVolume.kt | src/main/kotlin/me/mrkirby153/KirBot/command/executors/music/CommandVolume.kt | package me.mrkirby153.KirBot.command.executors.music
import me.mrkirby153.KirBot.command.Command
import me.mrkirby153.KirBot.user.Clearance
import net.dv8tion.jda.core.entities.Message
@Command(name = "volume", description = "Change the volume of the robot", clearance = Clearance.BOT_MANAGER)
class CommandVolume : Mu... | package me.mrkirby153.KirBot.command.executors.music
import me.mrkirby153.KirBot.command.Command
import me.mrkirby153.KirBot.user.Clearance
import net.dv8tion.jda.core.entities.Message
@Command(name = "volume", description = "Change the volume of the robot", clearance = Clearance.BOT_MANAGER)
class CommandVolume : Mu... | Add support for changing volume by an amount | Add support for changing volume by an amount
Instead of setting the volume, prefixing the volume with "+" will increase the volume by that amount, "-" will decrease the volume | Kotlin | mit | mrkirby153/KirBot |
4abddf84577869a451511b0dd9bc3903d1e6a81b | doc/comparison/minimal/gradle/build.gradle.kts | doc/comparison/minimal/gradle/build.gradle.kts | plugins {
`java-library`
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
version = "0"
tasks {
javadoc {
isFailOnError = false
(options as StandardJavadocDocletOptions).addStringOption("-module-source-path", "src/main/java")
... | plugins {
`java-library`
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
version = "0"
tasks {
javadoc {
(options as StandardJavadocDocletOptions).addStringOption("-module", "de.sormuras.bach.doc.minimal")
(options as StandardJavad... | Patch module for javadoc generation | Patch module for javadoc generation
Fixes #112
| Kotlin | mit | sormuras/bach,sormuras/bach |
aa7dae2a6dbcac076ed2fc5416c65e2ac7f04f4b | plugins/changeReminder/src/com/jetbrains/changeReminder/plugin/UserSettings.kt | plugins/changeReminder/src/com/jetbrains/changeReminder/plugin/UserSettings.kt | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.jetbrains.changeReminder.plugin
import com.intellij.openapi.Disposable
import com.intellij.openapi.components.PersistentStateComponent
import com.intellij.openapi.com... | // 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.jetbrains.changeReminder.plugin
import com.intellij.openapi.Disposable
import com.intellij.openapi.components.BaseState
import com.intellij.openapi.components.SimpleP... | Use PersistentStateComponent in proper way | [change-reminder] Use PersistentStateComponent in proper way
* PersistentComponent should be internal and should extend SimplePersistentStateComponent.
* State name should be in CamelCase.
* State class should extend BaseState
GitOrigin-RevId: 8c574c8a0e2923da13555b3dd24398c8a22d5f86 | 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... |
c295ad2011125e1d2f868b1d62edebb1498147cd | telegram-bot-bumblebee-core/src/main/java/com/github/bumblebee/command/notification/NotifyChatCommand.kt | telegram-bot-bumblebee-core/src/main/java/com/github/bumblebee/command/notification/NotifyChatCommand.kt | package com.github.bumblebee.command.notification
import com.github.bumblebee.bot.consumer.UpdateHandler
import com.github.bumblebee.service.RandomPhraseService
import com.github.telegram.api.BotApi
import com.github.telegram.domain.ChatType
import com.github.telegram.domain.Update
import org.springframework.stereotyp... | package com.github.bumblebee.command.notification
import com.github.bumblebee.bot.consumer.UpdateHandler
import com.github.bumblebee.service.RandomPhraseService
import com.github.telegram.api.BotApi
import com.github.telegram.domain.ChatType
import com.github.telegram.domain.Update
import org.springframework.stereotyp... | Use filterNotNull instead of explicit filter. | Use filterNotNull instead of explicit filter.
| Kotlin | mit | fare1990/telegram-bot-bumblebee,fare1990/telegram-bot-bumblebee,denzelby/telegram-bot-bumblebee,fare1990/telegram-bot-bumblebee |
f78118a2fbbb28bfb52aa497c4736f5fce0eb0b3 | src/main/kotlin/org/rust/lang/refactoring/RsNamesValidator.kt | src/main/kotlin/org/rust/lang/refactoring/RsNamesValidator.kt | package org.rust.lang.refactoring
import com.intellij.lang.refactoring.NamesValidator
import com.intellij.openapi.project.Project
import com.intellij.psi.tree.IElementType
import org.rust.lang.core.lexer.RsLexer
import org.rust.lang.core.psi.RS_KEYWORDS
import org.rust.lang.core.psi.RsElementTypes.IDENTIFIER
import or... | package org.rust.lang.refactoring
import com.intellij.lang.refactoring.NamesValidator
import com.intellij.openapi.project.Project
import com.intellij.psi.tree.IElementType
import org.rust.lang.core.lexer.RsLexer
import org.rust.lang.core.psi.RS_KEYWORDS
import org.rust.lang.core.psi.RsElementTypes.IDENTIFIER
import or... | Allow to use primitive type names in renaming | REN: Allow to use primitive type names in renaming
| Kotlin | mit | d9n/intellij-rust,d9n/intellij-rust,anton-okolelov/intellij-rust,alygin/intellij-rust,intellij-rust/intellij-rust,intellij-rust/intellij-rust,intellij-rust/intellij-rust,d9n/intellij-rust,Undin/intellij-rust,himikof/intellij-rust,alygin/intellij-rust,intellij-rust/intellij-rust,himikof/intellij-rust,intellij-rust/intel... |
4b7620198e88cfb56a06575078a6265da1e2c84b | src/samplesTest/kotlin/org/gradle/script/lang/kotlin/samples/SamplesSmokeTest.kt | src/samplesTest/kotlin/org/gradle/script/lang/kotlin/samples/SamplesSmokeTest.kt | package org.gradle.script.lang.kotlin.samples
import org.gradle.script.lang.kotlin.fixtures.AbstractIntegrationTest
import org.hamcrest.CoreMatchers.containsString
import org.hamcrest.CoreMatchers.not
import org.junit.Assume.assumeThat
import org.junit.Before
import org.junit.Test
import org.junit.runner.RunWith
imp... | package org.gradle.script.lang.kotlin.samples
import org.gradle.script.lang.kotlin.fixtures.AbstractIntegrationTest
import org.hamcrest.CoreMatchers.containsString
import org.hamcrest.CoreMatchers.not
import org.junit.Assume.assumeThat
import org.junit.Before
import org.junit.Test
import org.junit.runner.RunWith
imp... | Revert "Temporarily disable build-scan sample test until upstream breakage is fixed" | Revert "Temporarily disable build-scan sample test until upstream breakage is fixed"
This reverts commit 500c27ae5554da40d0aad24214b56a9cf0667cfb.
| Kotlin | apache-2.0 | robinverduijn/gradle,gradle/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/gradle,robinverduijn/gradle,robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradl... |
0ef926df941628e9bb2b24c27670ede86c78c890 | Manga/app/src/main/java/nhdphuong/com/manga/data/entity/book/BookTitle.kt | Manga/app/src/main/java/nhdphuong/com/manga/data/entity/book/BookTitle.kt | package nhdphuong.com.manga.data.entity.book
import com.google.gson.annotations.SerializedName
import nhdphuong.com.manga.Constants
import java.io.Serializable
/*
* Created by nhdphuong on 3/24/18.
*/
class BookTitle(@field:SerializedName(Constants.TITLE_ENG) val englishName: String,
@field:Serializ... | package nhdphuong.com.manga.data.entity.book
import com.google.gson.annotations.SerializedName
import nhdphuong.com.manga.Constants
import java.io.Serializable
/*
* Created by nhdphuong on 3/24/18.
*/
class BookTitle(@field:SerializedName(Constants.TITLE_ENG) private val mEnglishName: String?,
@fiel... | Fix bug crash on null Japanese name | Fix bug crash on null Japanese name
| Kotlin | mit | duyphuong5126/Android,duyphuong5126/Android |
5153409bcc2c251ad82b5667299f224bc8477d51 | toml/src/main/kotlin/org/rust/toml/intentions/RsTomlElementBaseIntentionAction.kt | toml/src/main/kotlin/org/rust/toml/intentions/RsTomlElementBaseIntentionAction.kt | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.toml.intentions
import com.intellij.openapi.editor.Editor
import com.intellij.openapi.project.Project
import com.intellij.psi.PsiElement
import org.rust.toml.tomlPluginIsAbiCompatible
import org... | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.toml.intentions
import com.intellij.openapi.editor.Editor
import com.intellij.openapi.project.Project
import com.intellij.psi.PsiElement
import org.rust.ide.intentions.RsElementBaseIntentionActi... | Use `RsElementBaseIntentionAction` to comply with non-latest Toml plugin | Use `RsElementBaseIntentionAction` to comply with non-latest Toml plugin
| Kotlin | mit | Undin/intellij-rust,intellij-rust/intellij-rust,intellij-rust/intellij-rust,intellij-rust/intellij-rust,intellij-rust/intellij-rust,Undin/intellij-rust,Undin/intellij-rust,Undin/intellij-rust,intellij-rust/intellij-rust,intellij-rust/intellij-rust,Undin/intellij-rust,Undin/intellij-rust |
a93554b1746b354e01f30c2da4288bf1cf46c7ff | app/src/main/java/nerd/tuxmobil/fahrplan/congress/utils/EventUrlComposer.kt | app/src/main/java/nerd/tuxmobil/fahrplan/congress/utils/EventUrlComposer.kt | package nerd.tuxmobil.fahrplan.congress.utils
import nerd.tuxmobil.fahrplan.congress.BuildConfig
import nerd.tuxmobil.fahrplan.congress.utils.ServerBackendType.*
import nerd.tuxmobil.fahrplan.congress.models.Lecture as Event
class EventUrlComposer @JvmOverloads constructor(
private val event: Event,
... | package nerd.tuxmobil.fahrplan.congress.utils
import nerd.tuxmobil.fahrplan.congress.BuildConfig
import nerd.tuxmobil.fahrplan.congress.utils.ServerBackendType.*
import nerd.tuxmobil.fahrplan.congress.models.Lecture as Event
class EventUrlComposer @JvmOverloads constructor(
private val event: Event,
... | Simplify by using a property extension. | Simplify by using a property extension.
| Kotlin | apache-2.0 | EventFahrplan/EventFahrplan,EventFahrplan/EventFahrplan |
f26e19b0fadc75ee99eba8e7a97eaf8433629ae4 | buildSrc/src/main/kotlin/dependencies/DependenciesRepositories.kt | buildSrc/src/main/kotlin/dependencies/DependenciesRepositories.kt | /*
* Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
*/
@file:Suppress("PackageDirectoryMismatch", "SpellCheckingInspection")
import org.gradle.api.artifacts.dsl.RepositoryHandler
import org.gradle.kotlin.dsl.maven
fun RepositoryHandler.setupForProject() {... | /*
* Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
*/
@file:Suppress("PackageDirectoryMismatch", "SpellCheckingInspection")
import org.gradle.api.artifacts.dsl.RepositoryHandler
import org.gradle.kotlin.dsl.maven
fun RepositoryHandler.setupForProject() {... | Add missing group in google repo content | Add missing group in google repo content
| Kotlin | apache-2.0 | LouisCAD/Splitties,LouisCAD/Splitties,LouisCAD/Splitties |
45b81721b38db06289a32db7896f932d07691dc9 | src/main/kotlin/flavor/pie/kludge/players.kt | src/main/kotlin/flavor/pie/kludge/players.kt | package flavor.pie.kludge
import org.spongepowered.api.entity.living.player.Player
import org.spongepowered.api.item.inventory.Inventory
import org.spongepowered.api.item.inventory.type.GridInventory
import org.spongepowered.api.item.inventory.entity.Hotbar
val Player.storageInventory
get() = inventory.query<Inve... | package flavor.pie.kludge
import org.spongepowered.api.entity.living.player.Player
import org.spongepowered.api.item.inventory.Inventory
import org.spongepowered.api.item.inventory.type.GridInventory
import org.spongepowered.api.item.inventory.entity.Hotbar
import org.spongepowered.api.text.Text
import org.spongepower... | Add ChatTypeMessageReceiver methods to MessageReceiver | Add ChatTypeMessageReceiver methods to MessageReceiver
| Kotlin | mit | pie-flavor/Kludge |
5f9789cd4df78ef124fa82386f4fb7d3d64dea4d | manual/build.gradle.kts | manual/build.gradle.kts | plugins {
id("org.asciidoctor.jvm.convert")
id("org.ajoberstar.github-pages")
}
tasks.asciidoctor {
sourceDirProperty.set(file("src/asciidoc"))
baseDirFollowsSourceDir()
attributes = mapOf("revnumber" to project.version.toString())
}
tasks.prepareGhPages {
dependsOn(tasks.asciidoctor)
}
githu... | plugins {
id("org.asciidoctor.jvm.convert")
id("org.ajoberstar.github-pages")
}
tasks.asciidoctor {
sourceDirProperty.set(file("src/asciidoc"))
baseDirFollowsSourceDir()
attributes = mapOf("revnumber" to project.version.toString())
}
tasks.prepareGhPages {
dependsOn(tasks.asciidoctor)
}
tasks... | Build manual when running 'check' | Build manual when running 'check'
| Kotlin | mit | EvidentSolutions/apina,EvidentSolutions/apina,EvidentSolutions/apina |
cead60cc8e643a151c3b61906fecb0a35f724970 | tools/acornui-texture-packer/build.gradle.kts | tools/acornui-texture-packer/build.gradle.kts | /*
* Copyright 2019 PolyForest
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | /*
* Copyright 2019 PolyForest
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | Refactor acornui-texture-packer to use 'basic' plugin | Refactor acornui-texture-packer to use 'basic' plugin
| Kotlin | apache-2.0 | AcornUI/Acorn,AcornUI/Acorn,AcornUI/Acorn |
82b02fa0f86aac1dea7b91971af341f7a5111bbf | acornui-spine/build.gradle.kts | acornui-spine/build.gradle.kts | /*
* Copyright 2019 PolyForest
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | /*
* Copyright 2019 PolyForest
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | Refactor acornui-spine to use 'basic' plugin | Refactor acornui-spine to use 'basic' plugin
| Kotlin | apache-2.0 | AcornUI/Acorn,AcornUI/Acorn,AcornUI/Acorn |
436342980610f009077bd5d01221f88b75e767c6 | junit-jupiter-api/junit-jupiter-api.gradle.kts | junit-jupiter-api/junit-jupiter-api.gradle.kts | description = "JUnit Jupiter API"
dependencies {
api("org.opentest4j:opentest4j:${Versions.ota4j}")
api(project(":junit-platform-commons"))
compileOnly("org.jetbrains.kotlin:kotlin-stdlib")
}
tasks.jar {
manifest {
attributes(
"Automatic-Module-Name" to "org.junit.jupiter.api"
)
}
}
| description = "JUnit Jupiter API"
dependencies {
api("org.opentest4j:opentest4j:${Versions.ota4j}")
api(project(":junit-platform-commons"))
compileOnly("org.jetbrains.kotlin:kotlin-stdlib")
runtimeOnly(project(":junit-jupiter-engine"))
}
tasks.jar {
manifest {
attributes(
"Automatic-Module-Name" to "org.jun... | Introduce runtime dependency from Jupiter API to its Engine | Introduce runtime dependency from Jupiter API to its Engine
Prior to this commit users needed to declare a runtime dependency for
the Jupiter Engine despite a compile time dependency to the Jupiter API
was already in place:
```
testCompile('org.junit.jupiter:junit-jupiter-api:<version>')
testRuntime('org.junit.jup... | Kotlin | epl-1.0 | junit-team/junit-lambda,sbrannen/junit-lambda |
8079ef89b47ac09b611a6bd34130df79f4372ad0 | app/storage/src/main/java/com/fsck/k9/storage/migrations/MigrationTo75.kt | app/storage/src/main/java/com/fsck/k9/storage/migrations/MigrationTo75.kt | package com.fsck.k9.storage.migrations
import android.database.sqlite.SQLiteDatabase
import com.fsck.k9.mailstore.MigrationsHelper
internal class MigrationTo75(private val db: SQLiteDatabase, private val migrationsHelper: MigrationsHelper) {
fun updateAccountWithSpecialFolderIds() {
val account = migratio... | package com.fsck.k9.storage.migrations
import android.database.sqlite.SQLiteDatabase
import com.fsck.k9.mailstore.MigrationsHelper
internal class MigrationTo75(private val db: SQLiteDatabase, private val migrationsHelper: MigrationsHelper) {
fun updateAccountWithSpecialFolderIds() {
val account = migratio... | Reset folder server IDs in Account | Reset folder server IDs in Account
| Kotlin | apache-2.0 | k9mail/k-9,cketti/k-9,k9mail/k-9,cketti/k-9,k9mail/k-9,cketti/k-9,cketti/k-9 |
157d5956e28b2f6cef7f876c31dc6ce40e2e0137 | build.gradle.kts | build.gradle.kts | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
buildscript {
repositories {
mavenLocal()
google()
mavenCentral()
}
dependencies {
val ... | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
buildscript {
repositories {
mavenLocal()
google()
mavenCentral()
}
dependencies {
val ... | Fix builds without NDK path env set | Fix builds without NDK path env set
Summary:
Gradle cannot find the property, because it is defined conditionally depending on env variable.
We want the default for it to be null instead, so the variable exists but doesn't change default NDK location.
Changelog: [Internal]
Reviewed By: motiz88
Differential Revision... | Kotlin | mit | pandiaraj44/react-native,javache/react-native,janicduplessis/react-native,facebook/react-native,javache/react-native,javache/react-native,javache/react-native,pandiaraj44/react-native,janicduplessis/react-native,janicduplessis/react-native,pandiaraj44/react-native,facebook/react-native,janicduplessis/react-native,faceb... |
52cc5e9a74923af463d311dbcbaa4598f7ddbc4e | src/main/kotlin/flavor/pie/kludge/commands.kt | src/main/kotlin/flavor/pie/kludge/commands.kt | package flavor.pie.kludge
import org.spongepowered.api.command.CommandResult
import org.spongepowered.api.command.CommandSource
import org.spongepowered.api.command.args.CommandContext
import org.spongepowered.api.command.spec.CommandExecutor
import org.spongepowered.api.command.spec.CommandSpec
val ((CommandSource, ... | package flavor.pie.kludge
import org.spongepowered.api.command.CommandResult
import org.spongepowered.api.command.CommandSource
import org.spongepowered.api.command.args.CommandContext
import org.spongepowered.api.command.spec.CommandExecutor
import org.spongepowered.api.command.spec.CommandSpec
fun ((CommandSource, ... | Convert `command` into a function | Convert `command` into a function
| Kotlin | mit | pie-flavor/Kludge |
d852bf648f3423a8bc0f2b277c1c25d3f63d7e4a | analysis/import/CodeMaatCouplingImporter/src/main/kotlin/de/maibornwolff/codecharta/importer/codemaat/CSVRow.kt | analysis/import/CodeMaatCouplingImporter/src/main/kotlin/de/maibornwolff/codecharta/importer/codemaat/CSVRow.kt | package de.maibornwolff.codecharta.importer.codemaat
import de.maibornwolff.codecharta.model.*
import java.util.*
class CSVRow(private val row: Array<String?>, private val header: CSVHeader, private val pathSeparator: Char) {
init {
if (row.size <= header.pathColumn) {
throw IllegalArgumentEx... | package de.maibornwolff.codecharta.importer.codemaat
import de.maibornwolff.codecharta.model.*
import java.util.*
class CSVRow(private val row: Array<String?>, private val header: CSVHeader, private val pathSeparator: Char) {
init {
if (row.size <= header.pathColumn) {
throw IllegalArgumentEx... | Update Prefix Path in dependencies | Update Prefix Path in dependencies
| Kotlin | bsd-3-clause | MaibornWolff/codecharta,MaibornWolff/codecharta,MaibornWolff/codecharta,MaibornWolff/codecharta,MaibornWolff/codecharta,MaibornWolff/codecharta,MaibornWolff/codecharta,MaibornWolff/codecharta |
d37827ce9342a8046c2d21b3ec486078c8ff857e | modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/misc/Benchmarks.kt | modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/misc/Benchmarks.kt | package com.beust.kobalt.misc
fun benchmarkMillis(run: () -> Unit) : Long {
val start = System.currentTimeMillis()
run()
return System.currentTimeMillis() - start
}
fun benchmarkSeconds(run: () -> Unit) = benchmarkMillis(run) / 1000
| package com.beust.kobalt.misc
fun <T> benchmarkMillis(run: () -> T) : Pair<Long, T> {
val start = System.currentTimeMillis()
val result = run()
return Pair(System.currentTimeMillis() - start, result)
}
fun <T> benchmarkSeconds(run: () -> T) : Pair<Long, T> {
val result = benchmarkMillis(run)
retur... | Return pairs for benchmark functions. | Return pairs for benchmark functions.
| Kotlin | apache-2.0 | ethauvin/kobalt,ethauvin/kobalt,cbeust/kobalt,ethauvin/kobalt,cbeust/kobalt,cbeust/kobalt,ethauvin/kobalt |
cbd2af02e93e7ae902659717135488bc9add218e | src/main/java/org/purescript/parser/ParserContext.kt | src/main/java/org/purescript/parser/ParserContext.kt | @file:Suppress("unused")
package org.purescript.parser
import com.intellij.lang.PsiBuilder
import com.intellij.psi.tree.IElementType
class ParserContext(private val builder: PsiBuilder) {
private val recoverySet = HashMap<IElementType, Int?>()
var isInAttempt = false
private var inOptional = 0
fun eo... | @file:Suppress("unused")
package org.purescript.parser
import com.intellij.lang.PsiBuilder
import com.intellij.psi.tree.IElementType
class ParserContext(private val builder: PsiBuilder) {
var isInAttempt = false
private var inOptional = 0
fun eof() = builder.eof()
fun advance() = builder.advanceLexe... | Remove methods and field that is not longer in use | Remove methods and field that is not longer in use
| Kotlin | bsd-3-clause | intellij-purescript/intellij-purescript,intellij-purescript/intellij-purescript |
a44efeac4f3c36a319b90ac3c71490259d26810e | ktor-client/ktor-client-tests/jvm/src/io/ktor/client/tests/utils/TestServer.kt | ktor-client/ktor-client-tests/jvm/src/io/ktor/client/tests/utils/TestServer.kt | /*
* Copyright 2014-2019 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package io.ktor.client.tests.utils
import ch.qos.logback.classic.*
import io.ktor.client.tests.utils.tests.*
import io.ktor.server.engine.*
import io.ktor.server.jetty.*
import org.slf4j.*
im... | /*
* Copyright 2014-2019 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package io.ktor.client.tests.utils
import ch.qos.logback.classic.*
import io.ktor.client.tests.utils.tests.*
import io.ktor.server.engine.*
import io.ktor.server.jetty.*
import io.ktor.server... | Use Netty as a default test server instead of Jetty (some issues like TCP half-close could be reproduced only on Netty). | Use Netty as a default test server instead of Jetty (some issues like TCP half-close could be reproduced only on Netty).
| Kotlin | apache-2.0 | ktorio/ktor,ktorio/ktor,ktorio/ktor,ktorio/ktor |
5db82bfd52cdc4778384b1291b35d1d8791b3046 | app/src/main/java/com/pr0gramm/app/util/Affiliate.kt | app/src/main/java/com/pr0gramm/app/util/Affiliate.kt | package com.pr0gramm.app.util
import android.net.Uri
object Affiliate {
private val paramsHubTraffic = mapOf(
"utm_source" to "paid",
"utm_medium" to "hubtraffic",
"utm_campaign" to "hubtraffic_pr0grammapp")
private val reHubTraffic = "(?:pornhub|redtube|tube8|youporn|xtub... | package com.pr0gramm.app.util
import android.util.Base64
object Affiliate {
private val paramsHubTraffic = mapOf(
"utm_source" to "paid",
"utm_medium" to "hubtraffic",
"utm_campaign" to "hubtraffic_pr0grammapp")
private val reHubTraffic = "(?:pornhub|redtube|tube8|youporn|... | Fix hubtraffic by redirecting over a app.pr0gramm.com domain. | Fix hubtraffic by redirecting over a app.pr0gramm.com domain.
| Kotlin | mit | mopsalarm/Pr0,mopsalarm/Pr0,mopsalarm/Pr0 |
d5cd7ab63d782b22ad90247ab85fdf24ee186b16 | src/main/kotlin/com/beust/kobalt/BuildScript.kt | src/main/kotlin/com/beust/kobalt/BuildScript.kt | package com.beust.kobalt
import com.beust.kobalt.api.Kobalt
import com.beust.kobalt.api.Project
import com.beust.kobalt.api.annotation.Directive
import com.beust.kobalt.maven.DepFactory
import com.beust.kobalt.maven.IClasspathDependency
import com.beust.kobalt.misc.KobaltExecutors
import com.beust.kobalt.SystemPropert... | package com.beust.kobalt
import com.beust.kobalt.api.Kobalt
import com.beust.kobalt.api.Project
import com.beust.kobalt.api.annotation.Directive
import com.beust.kobalt.maven.DepFactory
import com.beust.kobalt.maven.IClasspathDependency
import com.beust.kobalt.misc.KobaltExecutors
import com.beust.kobalt.SystemPropert... | Use the misc executor (otherwise threads left hanging). | Use the misc executor (otherwise threads left hanging).
| Kotlin | apache-2.0 | ethauvin/kobalt,ethauvin/kobalt,cbeust/kobalt,ethauvin/kobalt,ethauvin/kobalt,evanchooly/kobalt,cbeust/kobalt,cbeust/kobalt,evanchooly/kobalt,evanchooly/kobalt,evanchooly/kobalt |
ea7402f0aaa0a1326d32c4e350d5cd361281a31f | src/main/kotlin/org/logout/notifications/telegram/bot/processor/staticProcessors.kt | src/main/kotlin/org/logout/notifications/telegram/bot/processor/staticProcessors.kt | package org.logout.notifications.telegram.bot.processor
class HelpProcessor : Processor {
override fun onMessage(arguments: Array<String>?) =
listOf("/staima, /whatsup and a couple of secret aliases — the closest next event in near future\n" +
"/staima today — as much of today's sc... | package org.logout.notifications.telegram.bot.processor
class HelpProcessor : Processor {
override fun onMessage(arguments: Array<String>?) =
listOf("/staima, /whatsup and a couple of secret aliases — the closest next event in near future\n" +
"/staima today — as much of today's sc... | Update help and announce new feature | Update help and announce new feature
| Kotlin | apache-2.0 | Sulion/marco-paolo |
14d953c3d267ff47705b75ad3fb51562b1b7e10a | src/main/kotlin/com/reduks/reduks/StoreDSL.kt | src/main/kotlin/com/reduks/reduks/StoreDSL.kt | package com.reduks.reduks
data class StoreDSL<State> (
var initialState: State? = null,
var initialReducer: (State, Action<State>) -> State = { state, action -> action.action(state) },
var enhancer: Enhancer<State>? = null
)
fun <State> Any.reduksStore(dsl: StoreDSL<State>.() -> Unit) : Store<... | package com.reduks.reduks
import com.reduks.reduks.error.ReduksException
data class StoreDSL<State> (
var initialState: State?,
var initialReducer: (State, Action<State>) -> State,
var enhancer: Enhancer<State>?
) {
companion object Provider {
inline fun <reified State> get() : Sto... | Implement state default value in store dsl | Implement state default value in store dsl
| Kotlin | mit | Reduks/Reduks |
61de26ebec4caa3033d1301f5abd2c07086f2e6e | src/main/java/uk/co/reecedunn/intellij/plugin/marklogic/query/vars/KeyValueVarsBuilder.kt | src/main/java/uk/co/reecedunn/intellij/plugin/marklogic/query/vars/KeyValueVarsBuilder.kt | /*
* Copyright (C) 2017 Reece H. Dunn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | /*
* Copyright (C) 2017 Reece H. Dunn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | Use string variable references when building the key-value vars strings. | Use string variable references when building the key-value vars strings.
| Kotlin | apache-2.0 | rhdunn/marklogic-intellij-plugin |
ecab59b18b330dcfd797f6837b0e312464e94b67 | JankStatsSample/app/src/main/java/com/example/jankstats/compose/rememberMetricsStateHolder.kt | JankStatsSample/app/src/main/java/com/example/jankstats/compose/rememberMetricsStateHolder.kt | package com.example.jankstats.compose
import androidx.compose.runtime.Composable
import androidx.compose.runtime.remember
import androidx.compose.ui.platform.LocalView
import androidx.metrics.performance.PerformanceMetricsState
// [START rememberMetricsStateHolder]
/**
* Retrieve MetricsStateHolder from compose and ... | package com.example.jankstats.compose
import androidx.compose.runtime.Composable
import androidx.compose.runtime.remember
import androidx.compose.ui.platform.LocalView
import androidx.metrics.performance.PerformanceMetricsState
// [START metrics_state_holder]
/**
* Retrieve MetricsStateHolder from compose and rememb... | Rename DAC tag for state holder | Rename DAC tag for state holder
| Kotlin | apache-2.0 | android/performance-samples,android/performance-samples,android/performance-samples |
cd465144cacb31cad3e9175aa5c99501fda6dce8 | src/main/kotlin/com/fortify/fod/parser/BsiToken.kt | src/main/kotlin/com/fortify/fod/parser/BsiToken.kt | package com.fortify.fod.parser
class BsiToken {
var tenantId: Int = 0
var tenantCode: String? = null
var projectVersionId: Int = 0
var payloadType: String? = null
var assessmentTypeId: Int = 0
var technologyStack: String? = null
var languageLevel = ""
var endpoint: String? = null
}
| package com.fortify.fod.parser
class BsiToken {
var tenantId: Int = 0
var tenantCode: String? = null
var projectVersionId: Int = 0
var payloadType: String? = null
var assessmentTypeId: Int = 0
var technologyStack: String? = null
var languageLevel = ""
var apiUri: String = "https://api.a... | Rename endpoint to apiUri and default it to AMS portal | Rename endpoint to apiUri and default it to AMS portal
There are cases where the Bsi Url's path is used to determine the
environment endpoint that the caller wishes to interact with. I just
want to make it less vague with this change and provide a default.
| Kotlin | apache-2.0 | fod-dev/bsi-token-parser |
37b5f9807a7f41da61338c5c2dee200464f6d0c1 | tools/smoke-tests/test-factories/build.gradle.kts | tools/smoke-tests/test-factories/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... | Add dependency on the `tools-api`. | Add dependency on the `tools-api`.
| Kotlin | apache-2.0 | SpineEventEngine/base,SpineEventEngine/base,SpineEventEngine/base |
078b11bc260ca916b3cfb7f4ab61133739cc58bc | .teamcity/src/main/kotlin/util/UtilProject.kt | .teamcity/src/main/kotlin/util/UtilProject.kt | package util
import common.Os
import jetbrains.buildServer.configs.kotlin.v2019_2.Project
object UtilProject : Project({
id("Util")
name = "Util"
buildType(RerunFlakyTest(Os.LINUX))
buildType(RerunFlakyTest(Os.WINDOWS))
buildType(RerunFlakyTest(Os.MACOS))
buildType(WarmupEc2Agent)
})
| package util
import common.Os
import jetbrains.buildServer.configs.kotlin.v2019_2.Project
object UtilProject : Project({
id("Util")
name = "Util"
buildType(RerunFlakyTest(Os.LINUX))
buildType(RerunFlakyTest(Os.WINDOWS))
buildType(RerunFlakyTest(Os.MACOS))
buildType(WarmupEc2Agent)
params... | Add Gradle Enterprise key to Utils project | Add Gradle Enterprise key to Utils project
| Kotlin | apache-2.0 | blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpira... |
30caa6cd12c27b153506a6ae414d35a6313ebdcc | sources/src/main/kotlin/net/devromik/bw/Color.kt | sources/src/main/kotlin/net/devromik/bw/Color.kt | package net.devromik.bw
import net.devromik.bw.Color.values
/**
* @author Shulnyaev Roman
*/
enum class Color(val index: Int) {
BLACK(0),
WHITE(1),
GRAY(2);
}
val COLOR_COUNT = values().size
fun colorByIndex(index: Int) = Color.values().firstOrNull { it.index == index } | package net.devromik.bw
import net.devromik.bw.Color.*
/**
* @author Shulnyaev Roman
*/
enum class Color(val index: Int) {
BLACK(0),
WHITE(1),
GRAY(2);
}
val COLOR_COUNT = values().size
fun colorByIndex(index: Int) =
when (index) {
BLACK.index -> BLACK
WHITE.index -> WHITE
... | Optimize getting a color by an index | Optimize getting a color by an index
| Kotlin | mit | devromik/black-and-white |
20df724e1d905d1834e54958115b80565ae618c1 | code-sample-angular-kotlin/code-sample-jwt-token-example/kotlin-backend/src/main/kotlin/codesample/kotlin/jwtexample/security/config/SecurityConfig.kt | code-sample-angular-kotlin/code-sample-jwt-token-example/kotlin-backend/src/main/kotlin/codesample/kotlin/jwtexample/security/config/SecurityConfig.kt | package codesample.kotlin.jwtexample.security.config
import codesample.kotlin.jwtexample.security.AuthExceptionsEntry
import org.springframework.context.annotation.Configuration
import org.springframework.security.config.annotation.web.builders.HttpSecurity
import org.springframework.security.config.annotation.web.con... | package codesample.kotlin.jwtexample.security.config
import codesample.kotlin.jwtexample.security.AuthExceptionsEntry
import org.springframework.context.annotation.Configuration
import org.springframework.security.config.annotation.web.builders.HttpSecurity
import org.springframework.security.config.annotation.web.bui... | Fix h2-console being blocked by spring-security | Fix h2-console being blocked by spring-security
| Kotlin | mit | aquatir/remember_java_api,aquatir/remember_java_api,aquatir/remember_java_api,aquatir/remember_java_api |
545ba24370c8b3eedd365c4d0da84ea1819f374e | src/main/kotlin/com/github/kmizu/kotbinator/Control.kt | src/main/kotlin/com/github/kmizu/kotbinator/Control.kt | package com.github.kmizu.kotbinator
inline fun <T> block(body: () -> T): T {
return body()
}
| package com.github.kmizu.kotbinator
inline fun <T> block(body: () -> T): T {
return body()
}
inline fun <T, U> T?.map(f: (T) -> U): U? = block {
when(this) {
null -> null
else -> f(this)
}
}
fun foo() {
val x: String? = "FOO"
val y: Int? = x.map { x -> 1 }
}
| Define map method for nullable-type | Define map method for nullable-type
| Kotlin | mit | kmizu/kotbinator |
b1b8820fc1a7e849bd315f7505361b6ef42f3cdb | .teamcity/Gradle_Check/configurations/FunctionalTest.kt | .teamcity/Gradle_Check/configurations/FunctionalTest.kt | package configurations
import jetbrains.buildServer.configs.kotlin.v10.BuildType
import model.CIBuildModel
import model.OS
import model.TestCoverage
import model.TestType
class FunctionalTest(model: CIBuildModel, testCoverage : TestCoverage, subProject: String = "") : BuildType({
uuid = testCoverage.asConfigurati... | package configurations
import jetbrains.buildServer.configs.kotlin.v10.BuildType
import model.CIBuildModel
import model.OS
import model.TestCoverage
import model.TestType
class FunctionalTest(model: CIBuildModel, testCoverage : TestCoverage, subProject: String = "") : BuildType({
uuid = testCoverage.asConfigurati... | Call build types on subprojects instead of using specific tasks | Call build types on subprojects instead of using specific tasks
| Kotlin | apache-2.0 | robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,robinverduijn/gradle,r... |
53f4be23390d1c7f4acaebb736bedcca11b011fa | app/src/main/java/adrygraph/simplelauncher/MainActivity.kt | app/src/main/java/adrygraph/simplelauncher/MainActivity.kt | package adrygraph.simplelauncher
import adrygraph.simplelauncher.settings.ui.ColorPickerDialog
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.view.ViewGroup
class MainActivity : AppCompatActivity(), ColorPickerDialog.OnColorChangedListener {
private var mRootView : Vie... | package adrygraph.simplelauncher
import adrygraph.simplelauncher.settings.ui.ColorPickerDialog
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.view.ViewGroup
class MainActivity : AppCompatActivity(), ColorPickerDialog.OnColorChangedListener {
private var mRootView : Vie... | Apply background from prefs on app start | Apply background from prefs on app start
| Kotlin | apache-2.0 | adry84/simplelauncher |
1aefcec8299095407955bc90678e90913bbe858d | doc/comparison/minimal/gradle/build.gradle.kts | doc/comparison/minimal/gradle/build.gradle.kts | plugins {
`java-library`
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
version = "0"
tasks {
javadoc {
(options as StandardJavadocDocletOptions).addStringOption("-module", "de.sormuras.bach.doc.minimal")
(options as StandardJavad... | plugins {
`java-library`
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
withSourcesJar()
withJavadocJar()
}
version = "0"
tasks.javadoc {
(options as StandardJavadocDocletOptions).apply {
addStringOption("-module", "de.sormuras.bach.... | Make Gradle sample more minimal | Make Gradle sample more minimal
| Kotlin | mit | sormuras/bach,sormuras/bach |
2ed4f3281764476a7a4ddeb44059b563ba19655b | src/main/java/backend/controller/EventController.kt | src/main/java/backend/controller/EventController.kt | package backend.controller
import backend.model.event.EventService
import backend.model.misc.Coords
import backend.view.EventView
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.http.HttpStatus
import org.springframework.http.MediaType
import org.springframework.web.bind.annota... | package backend.controller
import backend.model.event.EventService
import backend.model.misc.Coords
import backend.view.EventView
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.http.HttpStatus
import org.springframework.http.MediaType
import org.springframework.web.bind.annota... | Validate Body of API Request for creating events | Validate Body of API Request for creating events
| Kotlin | agpl-3.0 | BreakOutEvent/breakout-backend,BreakOutEvent/breakout-backend,BreakOutEvent/breakout-backend |
c8eeccc934395408c762c4a52888176881964fca | src/main/java/org/purescript/psi/PSExportList.kt | src/main/java/org/purescript/psi/PSExportList.kt | package org.purescript.psi
import com.intellij.lang.ASTNode
class PSExportList(node: ASTNode) : PSPsiElement(node)
| package org.purescript.psi
import com.intellij.lang.ASTNode
class PSExportList(node: ASTNode) : PSPsiElement(node) {
val exportedItems = findChildrenByClass(PSExportedItem::class.java)
}
| Add exported items to export lists | Add exported items to export lists
| Kotlin | bsd-3-clause | intellij-purescript/intellij-purescript,intellij-purescript/intellij-purescript |
6c4cc0d62abf68129b6ae24c9313881ef78878cc | ktor-io/js/test/io/ktor/utils/io/tests/ISOTest.kt | ktor-io/js/test/io/ktor/utils/io/tests/ISOTest.kt | package io.ktor.utils.io.tests
import io.ktor.utils.io.charsets.*
import io.ktor.utils.io.core.*
import kotlin.test.*
private const val TEXT = "test\u00f0."
private val BYTES = byteArrayOf(0x74, 0x65, 0x73, 0x74, 0xf0.toByte(), 0x2e)
class ISOTest {
@Test
fun testEncode() {
val bytes = Charsets.ISO_8... | package io.ktor.utils.io.tests
import io.ktor.utils.io.charsets.*
import io.ktor.utils.io.core.*
import kotlin.test.*
private const val TEXT = "test\u00f0."
private val BYTES = byteArrayOf(0x74, 0x65, 0x73, 0x74, 0xf0.toByte(), 0x2e)
class ISOTest {
@Ignore
@Test
fun testEncode() {
val bytes = Ch... | Disable ISO-8859-1 tests in js | Disable ISO-8859-1 tests in js
| Kotlin | apache-2.0 | ktorio/ktor,ktorio/ktor,ktorio/ktor,ktorio/ktor |
5208d7a51a06accf7ea97e82088b6dceceafedd4 | fixtures/build.gradle.kts | fixtures/build.gradle.kts | import org.gradle.api.tasks.GradleBuild
fun isProjectDir(candidate: File) =
candidate.isDirectory && File(candidate, "settings.gradle").exists()
fun isCompatibleWithJDK(candidate: File) =
candidate.name.endsWith("kotlin-1.0") && JavaVersion.current() < JavaVersion.VERSION_1_9
val subProjectTasks = rootDir
... | import org.gradle.api.tasks.GradleBuild
fun isProjectDir(candidate: File) =
candidate.isDirectory && File(candidate, "settings.gradle").exists()
fun isCompatibleWithJDK(candidate: File) =
candidate.name.endsWith("kotlin-1.0") && JavaVersion.current() < JavaVersion.VERSION_1_9
val subProjectTasks = rootDir
... | Fix indentation in fixtures build file | Fix indentation in fixtures build file
| Kotlin | apache-2.0 | blindpirate/gradle,gradle/gradle,gradle/gradle-script-kotlin,gradle/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,gradle/gradle,blindpirate/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/gradle,robinverduijn/gradle... |
eb8743da1aa5fbcdf0ea4aab0bbd4130b80c18cb | ktor-hosts/ktor-netty/src/org/jetbrains/ktor/netty/CIO.kt | ktor-hosts/ktor-netty/src/org/jetbrains/ktor/netty/CIO.kt | package org.jetbrains.ktor.netty
import io.netty.channel.*
import kotlin.coroutines.experimental.*
suspend fun ChannelFuture.suspendAwait() {
if (isDone) return
suspendCoroutine<Unit> { continuation ->
addListener { f ->
try {
f.get()
continuation.resume(Un... | package org.jetbrains.ktor.netty
import io.netty.channel.*
import kotlin.coroutines.experimental.*
suspend fun ChannelFuture.suspendAwait() {
if (isDone) return
suspendCoroutine<Unit> { continuation ->
addListener { f ->
try {
f.get()
} catch (t: Throwable) {
... | Fix exception handling in awaiting for a channel future | Fix exception handling in awaiting for a channel future
| Kotlin | apache-2.0 | ktorio/ktor,ktorio/ktor,ktorio/ktor,ktorio/ktor |
b209ddcfc2d532f4dc5e508e00d89335fdb15caa | core/src/test/kotlin/format/FileGeneratorTestCase.kt | core/src/test/kotlin/format/FileGeneratorTestCase.kt | package org.jetbrains.dokka.tests
import org.jetbrains.dokka.DocumentationNode
import org.jetbrains.dokka.FileGenerator
import org.jetbrains.dokka.FormatService
import org.jetbrains.dokka.relativeToRoot
import org.junit.Before
import org.junit.Rule
import org.junit.rules.TemporaryFolder
abstract class FileGeneratorT... | package org.jetbrains.dokka.tests
import org.jetbrains.dokka.DocumentationNode
import org.jetbrains.dokka.FileGenerator
import org.jetbrains.dokka.FormatService
import org.jetbrains.dokka.relativeToRoot
import org.junit.Before
import org.junit.Rule
import org.junit.rules.TemporaryFolder
abstract class FileGeneratorT... | Append line before file path in testData | Append line before file path in testData
| Kotlin | apache-2.0 | Kotlin/dokka,Kotlin/dokka,google/dokka,Kotlin/dokka,Kotlin/dokka,Kotlin/dokka,Kotlin/dokka,google/dokka |
ce2a4531ce98b180a756e154b1b962c24c27a86c | app/src/main/java/com/satsumasoftware/timetable/framework/Assignment.kt | app/src/main/java/com/satsumasoftware/timetable/framework/Assignment.kt | package com.satsumasoftware.timetable.framework
import java.util.*
class Assignment(val id: Int, val title: String, val detail: String, val dueDate: Date)
| package com.satsumasoftware.timetable.framework
import org.threeten.bp.LocalDate
class Assignment(val id: Int, val title: String, val detail: String, val dueDate: LocalDate)
| Use org.threeten.bp.LocalDate instead of java.util.Date | Use org.threeten.bp.LocalDate instead of java.util.Date
| Kotlin | apache-2.0 | FarbodSalamat-Zadeh/TimetableApp,FarbodSalamat-Zadeh/TimetableApp |
2fc7fd03afb71d79ef63463e60eecfaf625cf3bd | intellij-toml/src/main/kotlin/org/toml/lang/TomlFileTypeDetector.kt | intellij-toml/src/main/kotlin/org/toml/lang/TomlFileTypeDetector.kt | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.toml.lang
import com.intellij.openapi.fileTypes.FileType
import com.intellij.openapi.fileTypes.FileTypeRegistry
import com.intellij.openapi.util.io.ByteSequence
import com.intellij.openapi.vfs.Virtua... | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.toml.lang
import com.intellij.openapi.fileTypes.FileType
import com.intellij.openapi.fileTypes.FileTypeRegistry
import com.intellij.openapi.util.io.ByteSequence
import com.intellij.openapi.vfs.Virtua... | Use performance optimizations provided by FileTypeDetector API not to slow down IDEs using TOML plugin | Use performance optimizations provided by FileTypeDetector API not to slow down IDEs using TOML plugin
| Kotlin | mit | intellij-rust/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,Undin/intellij-rust,Undin/intellij-rust,Undin/intellij-rust,intellij-rust/intellij-rust |
67603e5d5b74411e47cb5fe2b26fd6ed5d6cc776 | subprojects/snapshots/snapshots.gradle.kts | subprojects/snapshots/snapshots.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 dependency snapshots -> files | Remove dependency snapshots -> files
| Kotlin | apache-2.0 | blindpirate/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,blindpirate/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn... |
75aedb6d38b4e1c4b45ee50a1d60a322abdaacff | app/src/main/java/net/squanchy/notification/NotificationService.kt | app/src/main/java/net/squanchy/notification/NotificationService.kt | package net.squanchy.notification
import io.reactivex.Observable
import io.reactivex.schedulers.Schedulers
import net.squanchy.schedule.domain.view.Event
import net.squanchy.service.firebase.FirebaseAuthService
import net.squanchy.service.repository.EventRepository
import java.util.Collections
import java.util.Compara... | package net.squanchy.notification
import io.reactivex.Observable
import io.reactivex.schedulers.Schedulers
import net.squanchy.schedule.domain.view.Event
import net.squanchy.service.firebase.FirebaseAuthService
import net.squanchy.service.repository.EventRepository
internal class NotificationService(private val authS... | Use sortedBy instead of comparatorˆ | Use sortedBy instead of comparatorˆ
| Kotlin | apache-2.0 | squanchy-dev/squanchy-android,squanchy-dev/squanchy-android,squanchy-dev/squanchy-android |
29a98377ffe6afa7e62b8910f1d397efc44944cb | src/main/java/net/kenro/ji/jin/purescript/icons/PSIcons1.kt | src/main/java/net/kenro/ji/jin/purescript/icons/PSIcons1.kt | package net.kenro.ji.jin.purescript.icons
import com.intellij.openapi.util.IconLoader
interface PSIcons {
companion object {
val FILE = IconLoader.getIcon("/icons/pure.png")
}
} | package net.kenro.ji.jin.purescript.icons
import com.intellij.openapi.util.IconLoader
interface PSIcons {
companion object {
val FILE = IconLoader.getIcon("/icons/pure.png", PSIcons::class.java)
}
} | Remove deprecation warning by adding class as argument to getIcon | Remove deprecation warning by adding class as argument to getIcon
| Kotlin | bsd-3-clause | intellij-purescript/intellij-purescript,intellij-purescript/intellij-purescript |
cf6b38e0438a9aaf94f643c17333e213cc02548a | src/main/kotlin/net/moltendorf/bukkit/intellidoors/settings/SettingsUpgrade.kt | src/main/kotlin/net/moltendorf/bukkit/intellidoors/settings/SettingsUpgrade.kt | package net.moltendorf.bukkit.intellidoors.settings
import net.moltendorf.bukkit.intellidoors.log
private const val SETTINGS_VERSION = 5
fun upgradeSettings(settings: GlobalSettings) {
var versions = 0
for (i in settings.version..SETTINGS_VERSION) {
upgrade[i]?.invoke(settings) ?: continue
++versions
... | package net.moltendorf.bukkit.intellidoors.settings
import net.moltendorf.bukkit.intellidoors.log
private const val SETTINGS_VERSION = 5
fun upgradeSettings(settings: GlobalSettings) {
if (settings.version < SETTINGS_VERSION) {
var versions = 0
for (i in settings.version + 1..SETTINGS_VERSION) {
upg... | Fix warning about config version being wrong | Fix warning about config version being wrong
| Kotlin | mit | moltendorf/IntelliDoors |
179a8314b3ccd7798104b87aac28c5a79e626f3b | src/test/kotlin/org/amshove/kluent/tests/backtickassertions/ShouldThrowTests.kt | src/test/kotlin/org/amshove/kluent/tests/backtickassertions/ShouldThrowTests.kt | package org.amshove.kluent.tests.backtickassertions
import org.amshove.kluent.`should throw`
import org.jetbrains.spek.api.Spek
import kotlin.test.assertFails
class ShouldThrowTests : Spek({
given("the should throw method") {
on("expecting the thrown exception") {
it("should pass") {
... | package org.amshove.kluent.tests.backtickassertions
import org.amshove.kluent.`should throw`
import org.jetbrains.spek.api.Spek
import java.util.*
import kotlin.test.assertFails
class ShouldThrowTests : Spek({
given("the should throw method") {
on("expecting the thrown exception") {
... | Add BacktickAssertion Test for should throw | Add BacktickAssertion Test for should throw
| Kotlin | mit | MarkusAmshove/Kluent,MarkusAmshove/Kluent |
fadb8a16a2fd2aa8362d4605693b70e1b501d5f8 | samples/cp/src/main/kotlin/com/github/ajalt/clikt/samples/cp/main.kt | samples/cp/src/main/kotlin/com/github/ajalt/clikt/samples/cp/main.kt | package com.github.ajalt.clikt.samples.cp
import com.github.ajalt.clikt.core.CliktCommand
import com.github.ajalt.clikt.output.TermUi
import com.github.ajalt.clikt.parameters.arguments.argument
import com.github.ajalt.clikt.parameters.arguments.multiple
import com.github.ajalt.clikt.parameters.options.flag
import com.... | package com.github.ajalt.clikt.samples.cp
import com.github.ajalt.clikt.core.CliktCommand
import com.github.ajalt.clikt.output.TermUi
import com.github.ajalt.clikt.parameters.arguments.argument
import com.github.ajalt.clikt.parameters.arguments.multiple
import com.github.ajalt.clikt.parameters.options.flag
import com.... | Use file parameters in cp example | Use file parameters in cp example
| Kotlin | apache-2.0 | ajalt/clikt,ajalt/clikt |
aa7e53822a3815ccb655b1c12dabedc7b2302578 | provider/src/test/kotlin/org/gradle/kotlin/dsl/accessors/GenerateProjectSchemaTest.kt | provider/src/test/kotlin/org/gradle/kotlin/dsl/accessors/GenerateProjectSchemaTest.kt | package org.gradle.kotlin.dsl.accessors
import org.gradle.kotlin.dsl.fixtures.AbstractIntegrationTest
import org.hamcrest.CoreMatchers.equalTo
import org.hamcrest.MatcherAssert.assertThat
import org.junit.Test
class GenerateProjectSchemaTest : AbstractIntegrationTest() {
@Test
fun `writes multi-project sche... | package org.gradle.kotlin.dsl.accessors
import org.gradle.kotlin.dsl.fixtures.AbstractIntegrationTest
import org.hamcrest.CoreMatchers.equalTo
import org.hamcrest.MatcherAssert.assertThat
import org.junit.Test
class GenerateProjectSchemaTest : AbstractIntegrationTest() {
@Test
fun `writes multi-project sche... | Add newly added configurations to test case expectation | Add newly added configurations to test case expectation
| Kotlin | apache-2.0 | robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,gradle/gradle-script-kotlin,blindpirate/gradle,blindpirate/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle-script-kotlin,gradle/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/g... |
2ba603b8316486f1a562e9ce77aa0efb5d1cd96d | src/org/rust/lang/structure/RustStructDeclFieldTreeElement.kt | src/org/rust/lang/structure/RustStructDeclFieldTreeElement.kt | package org.rust.lang.structure
import com.intellij.ide.structureView.StructureViewTreeElement
import com.intellij.ide.structureView.impl.common.PsiTreeElementBase
import com.intellij.psi.NavigatablePsiElement
import org.rust.lang.core.psi.RustStructDeclField
class RustStructDeclFieldTreeElement(element: RustStructDe... | package org.rust.lang.structure
import com.intellij.ide.structureView.StructureViewTreeElement
import com.intellij.ide.structureView.impl.common.PsiTreeElementBase
import com.intellij.psi.NavigatablePsiElement
import org.rust.lang.core.psi.RustStructDeclField
class RustStructDeclFieldTreeElement(element: RustStructDe... | Structure View: Include type info for struct fields | Structure View: Include type info for struct fields
| Kotlin | mit | anton-okolelov/intellij-rust,alygin/intellij-rust,Undin/intellij-rust,intellij-rust/intellij-rust,himikof/intellij-rust,Undin/intellij-rust,intellij-rust/intellij-rust,Undin/intellij-rust,Turbo87/intellij-rust,intellij-rust/intellij-rust,d9n/intellij-rust,anton-okolelov/intellij-rust,alygin/intellij-rust,ujpv/intellij-... |
cb673c3c6074a319cac538cf688a016fbde79e1f | app/src/main/java/com/nicoladefiorenze/room/MainActivity.kt | app/src/main/java/com/nicoladefiorenze/room/MainActivity.kt | package com.nicoladefiorenze.room
import android.os.AsyncTask
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.widget.EditText
import com.nicoladefiorenze.room.business.datasource.UserDataSource
import com.nicoladefiorenze.room.database.DatabaseProvider
import com.nicoladefiorenz... | package com.nicoladefiorenze.room
import android.os.AsyncTask
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.widget.EditText
import com.nicoladefiorenze.room.business.datasource.UserDataSource
import com.nicoladefiorenze.room.database.DatabaseProvider
import com.nicoladefiorenz... | Add the flowable to the composite disposable | Add the flowable to the composite disposable
| Kotlin | apache-2.0 | defio/Room-experimets-in-kotlin,defio/Room-experimets-in-kotlin |
fcfd9586bf91547bb9aaea531ebc9d77bb3b7f9a | sample/src/main/kotlin/ms/ralph/quartz/sample/SubActivity.kt | sample/src/main/kotlin/ms/ralph/quartz/sample/SubActivity.kt | /*
* Copyright 2016 Ralph
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wri... | /*
* Copyright 2016 Ralph
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wri... | Add annotated field into sample | Add annotated field into sample
| Kotlin | apache-2.0 | r-ralph/Quartz,r-ralph/Quartz |
0992b2f0b1ef8a37bc9a3e72416c299c7b17455b | aztec/src/main/kotlin/org/wordpress/aztec/spans/AztecCommentSpan.kt | aztec/src/main/kotlin/org/wordpress/aztec/spans/AztecCommentSpan.kt | package org.wordpress.aztec.spans
import android.content.Context
import android.text.style.ImageSpan
import android.text.style.ParagraphStyle
import android.view.View
import android.widget.Toast
internal class AztecCommentSpan(html: StringBuilder, context: Context, drawable: Int) : ImageSpan(context, drawable), Parag... | package org.wordpress.aztec.spans
import android.content.Context
import android.text.style.ImageSpan
import android.view.View
import android.widget.Toast
internal class AztecCommentSpan(val mComment: AztecCommentSpan.Comment, context: Context, drawable: Int) : ImageSpan(context, drawable) {
companion object {
... | Add more and page types to custom comment span | Add more and page types to custom comment span
| Kotlin | mpl-2.0 | wordpress-mobile/AztecEditor-Android,wordpress-mobile/AztecEditor-Android,wordpress-mobile/AztecEditor-Android |
1831266af85bf6a719aa9d69f4adad05fbc9d014 | samples/android-app/src/androidMain/kotlin/com/example/splitties/extensions/coroutines/Flow.kt | samples/android-app/src/androidMain/kotlin/com/example/splitties/extensions/coroutines/Flow.kt | /*
* Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
*/
package com.example.splitties.extensions.coroutines
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.Job
import kotlinx.coroutines.... | /*
* Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
*/
package com.example.splitties.extensions.coroutines
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.Job
import kotlinx.coroutines.... | Add missing import after package move | Add missing import after package move
| Kotlin | apache-2.0 | LouisCAD/Splitties,LouisCAD/Splitties,LouisCAD/Splitties |
6a4802c8ce0664ac186084fe170c4a7c251cc075 | app/src/main/java/com/commit451/gitlab/api/MoshiProvider.kt | app/src/main/java/com/commit451/gitlab/api/MoshiProvider.kt | package com.commit451.gitlab.api
import com.commit451.gitlab.api.converter.DashDateAdapter
import com.squareup.moshi.Moshi
import com.squareup.moshi.Rfc3339DateJsonAdapter
import java.util.*
object MoshiProvider {
val moshi: Moshi by lazy {
Moshi.Builder()
.add(DashDateAdapter())
... | package com.commit451.gitlab.api
import com.commit451.gitlab.api.converter.DashDateAdapter
import com.squareup.moshi.Moshi
import com.squareup.moshi.Rfc3339DateJsonAdapter
import java.util.*
object MoshiProvider {
val moshi: Moshi by lazy {
Moshi.Builder()
.add(DashDateAdapter())
... | Handle null dates without crashing | Handle null dates without crashing
| Kotlin | apache-2.0 | Commit451/LabCoat,Commit451/GitLabAndroid |
b77edb2b5b1e2c2f21cfbbc97f8cadbf307e7cc8 | app/src/main/java/eu/kanade/tachiyomi/widget/preference/ThemesPreference.kt | app/src/main/java/eu/kanade/tachiyomi/widget/preference/ThemesPreference.kt | package eu.kanade.tachiyomi.widget.preference
import android.content.Context
import android.util.AttributeSet
import androidx.preference.ListPreference
import androidx.preference.PreferenceViewHolder
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import eu.kana... | package eu.kanade.tachiyomi.widget.preference
import android.content.Context
import android.util.AttributeSet
import androidx.preference.ListPreference
import androidx.preference.PreferenceViewHolder
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import eu.kana... | Fix crash when tapping title of "App theme" preference | Fix crash when tapping title of "App theme" preference
| Kotlin | apache-2.0 | inorichi/mangafeed,inorichi/tachiyomi,inorichi/mangafeed,CarlosEsco/tachiyomi,inorichi/tachiyomi |
09e9def8fb45681b506d86f896f36b046fb067e5 | src/main/kotlin/me/mrkirby153/KirBot/command/executors/admin/CommandSu.kt | src/main/kotlin/me/mrkirby153/KirBot/command/executors/admin/CommandSu.kt | package me.mrkirby153.KirBot.command.executors.admin
import me.mrkirby153.KirBot.Bot
import me.mrkirby153.KirBot.command.BaseCommand
import me.mrkirby153.KirBot.command.Command
import me.mrkirby153.KirBot.command.CommandCategory
import me.mrkirby153.KirBot.command.CommandExecutor
import me.mrkirby153.KirBot.command.ar... | package me.mrkirby153.KirBot.command.executors.admin
import me.mrkirby153.KirBot.Bot
import me.mrkirby153.KirBot.command.BaseCommand
import me.mrkirby153.KirBot.command.Command
import me.mrkirby153.KirBot.command.CommandCategory
import me.mrkirby153.KirBot.command.CommandExecutor
import me.mrkirby153.KirBot.command.ar... | Fix incorrect permissions on su command | Fix incorrect permissions on su command
| Kotlin | mit | mrkirby153/KirBot |
5b6f6915e3934c8f9bb90b0acd9c5b8cba90c418 | 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("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.command.... | package com.masahirosaito.spigot.homes.tests
enum class Permission(val permission: String) {
HOME("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.command.... | Add two permission for list command testing | Add two permission for list command testing
| Kotlin | apache-2.0 | Homes-MinecraftServerMod/Homes,Homes-MinecraftServerMod/Homes |
641bd133eb97b90bbcef8acac8bb75f8d6d79051 | mage/src/main/java/mil/nga/giat/mage/form/FormState.kt | mage/src/main/java/mil/nga/giat/mage/form/FormState.kt | package mil.nga.giat.mage.form
import androidx.compose.runtime.mutableStateOf
import mil.nga.giat.mage.form.field.FieldState
import mil.nga.giat.mage.form.field.FieldValue
class FormState(
val id: Long? = null,
val remoteId: String? = null,
val eventId: String,
val definition: Form,
val fields: List<FieldSt... | package mil.nga.giat.mage.form
import androidx.compose.runtime.mutableStateOf
import mil.nga.giat.mage.form.field.FieldState
import mil.nga.giat.mage.form.field.FieldValue
class FormState(
val id: Long? = null,
val remoteId: String? = null,
val eventId: String,
val definition: Form,
val fields: List<FieldSt... | Fix observation create mapview update | Fix observation create mapview update
| Kotlin | apache-2.0 | ngageoint/mage-android,ngageoint/mage-android |
1c4b8c7cc6efd50a6ad46b03d51b0f6aa06a5352 | ktor-core/src/org/jetbrains/ktor/http/RequestCookies.kt | ktor-core/src/org/jetbrains/ktor/http/RequestCookies.kt | package org.jetbrains.ktor.http
import org.jetbrains.ktor.application.*
import java.util.*
import java.util.concurrent.*
public open class RequestCookies(private val request: ApplicationRequest) {
private val map = ConcurrentHashMap<Pair<CookieEncoding, String>, String>()
// TODO: Remove in favor of default ... | package org.jetbrains.ktor.http
import org.jetbrains.ktor.application.*
import java.util.*
import java.util.concurrent.*
public open class RequestCookies(private val request: ApplicationRequest) {
private val map = ConcurrentHashMap<Pair<CookieEncoding, String>, String>()
public operator fun get(name: String... | Remove workaround for Kotlin bug KT-9140 | Remove workaround for Kotlin bug KT-9140
| Kotlin | apache-2.0 | ktorio/ktor,ktorio/ktor,ktorio/ktor,ktorio/ktor |
f4643292bb03f87e88cfd84799cb7b6e80b5ee03 | base-models/src/main/kotlin/com/lloydramey/cfn/model/Output.kt | base-models/src/main/kotlin/com/lloydramey/cfn/model/Output.kt | package com.lloydramey.cfn.model
import com.fasterxml.jackson.annotation.JsonIgnore
import com.lloydramey.cfn.model.functions.AwsTemplateValue
data class Export(val name: AwsTemplateValue)
class Output(@JsonIgnore val name: String, val value: AwsTemplateValue, val description: String? = null, val export: Export? = n... | package com.lloydramey.cfn.model
import com.fasterxml.jackson.annotation.JsonIgnore
import com.lloydramey.cfn.model.functions.AwsTemplateValue
import com.lloydramey.cfn.model.functions.Val
data class Export(val name: AwsTemplateValue) {
constructor(name: String) : this(Val(name))
}
class Output(@JsonIgnore val n... | Allow specifying a string name without val | Allow specifying a string name without val
| Kotlin | apache-2.0 | lnr0626/cfn-templates,lnr0626/cfn-templates |
e6d2236da2dcd135375b38da74d73c82e27787d6 | rider/src/main/kotlin/com/jetbrains/rider/plugins/unity/ideaInterop/fileTypes/asmdef/AsmDefActionCallPolicy.kt | rider/src/main/kotlin/com/jetbrains/rider/plugins/unity/ideaInterop/fileTypes/asmdef/AsmDefActionCallPolicy.kt | package com.jetbrains.rider.plugins.unity.ideaInterop.fileTypes.asmdef
import com.intellij.openapi.actionSystem.IdeActions
import com.intellij.psi.PsiElement
import com.jetbrains.rider.actions.RiderActionCallStrategy
import com.jetbrains.rider.actions.RiderActionSupportPolicy
import com.jetbrains.rider.actions.RiderAc... | package com.jetbrains.rider.plugins.unity.ideaInterop.fileTypes.asmdef
import com.intellij.openapi.actionSystem.IdeActions
import com.intellij.psi.PsiElement
import com.jetbrains.rider.actions.RiderActionCallStrategy
import com.jetbrains.rider.actions.RiderActionSupportPolicy
import com.jetbrains.rider.actions.RiderAc... | Use defined constant for CtrlClick | Use defined constant for CtrlClick
| Kotlin | apache-2.0 | JetBrains/resharper-unity,JetBrains/resharper-unity,JetBrains/resharper-unity |
2747443f7a70a307501ccb2d80b9ebfd81d3eeef | app/src/main/java/org/fedorahosted/freeotp/ui/TokenTouchCallback.kt | app/src/main/java/org/fedorahosted/freeotp/ui/TokenTouchCallback.kt | package org.fedorahosted.freeotp.ui
import android.os.Handler
import android.os.Looper
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.lifecycleScope
import androidx.recyclerview.widget.ItemTouchHelper
import androidx.recyclerview.widget.RecyclerView
import kotlinx.coroutines.launch
import org.fedor... | package org.fedorahosted.freeotp.ui
import android.os.Handler
import android.os.Looper
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.lifecycleScope
import androidx.recyclerview.widget.ItemTouchHelper
import androidx.recyclerview.widget.RecyclerView
import kotlinx.coroutines.launch
import org.fedor... | Allow token to be moved left and right in landscape mode | Allow token to be moved left and right in landscape mode
| Kotlin | apache-2.0 | helloworld1/FreeOTPPlus,helloworld1/FreeOTPPlus,helloworld1/FreeOTPPlus |
253e0aa2d99f06a4fff6f01f224353e2d036cc0c | app/src/main/java/org/stepic/droid/configuration/RemoteConfig.kt | app/src/main/java/org/stepic/droid/configuration/RemoteConfig.kt | package org.stepic.droid.configuration
object RemoteConfig {
const val PREFIX = "remote_config_"
const val MIN_DELAY_RATE_DIALOG_SEC = "min_delay_rate_dialog_sec"
const val SHOW_STREAK_DIALOG_AFTER_LOGIN = "show_streak_dialog_after_login"
const val SHOW_NOTIFICATIONS_BADGES = "show_notifications_badge... | package org.stepic.droid.configuration
object RemoteConfig {
const val PREFIX = "remote_config_"
const val MIN_DELAY_RATE_DIALOG_SEC = "min_delay_rate_dialog_sec"
const val SHOW_STREAK_DIALOG_AFTER_LOGIN = "show_streak_dialog_after_login"
const val SHOW_NOTIFICATIONS_BADGES = "show_notifications_badge... | Add feature flag to remote config | Add feature flag to remote config
| Kotlin | apache-2.0 | StepicOrg/stepik-android,StepicOrg/stepic-android,StepicOrg/stepik-android,StepicOrg/stepic-android,StepicOrg/stepic-android,StepicOrg/stepik-android |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.