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
3814be7a9839ba60a123e820bb6ca6c113677da9
buildSrc/subprojects/cleanup/src/main/kotlin/gradlebuild/cleanup.gradle.kts
buildSrc/subprojects/cleanup/src/main/kotlin/gradlebuild/cleanup.gradle.kts
/* * Copyright 2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
/* * Copyright 2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
Apply cleanup plugin in java-library and avoid using subprojects to configure tasks
Apply cleanup plugin in java-library and avoid using subprojects to configure tasks
Kotlin
apache-2.0
blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpira...
2db070dfeb68216aacf417c058815b9bfaef7f45
droidbox/src/main/java/com/github/jackparisi/droidbox/architecture/model/DroidViewModel.kt
droidbox/src/main/java/com/github/jackparisi/droidbox/architecture/model/DroidViewModel.kt
package com.github.jackparisi.droidbox.architecture.model import android.arch.lifecycle.ViewModel import android.databinding.ObservableBoolean import android.databinding.ObservableField /** * Created by Giacomo Parisi on 30/06/2017. * https://github.com/JackParisi */ abstract class DroidViewModel : ViewModel() { ...
package com.github.jackparisi.droidbox.architecture.model import android.arch.lifecycle.ViewModel import android.databinding.ObservableBoolean import android.databinding.ObservableField import android.databinding.ObservableInt /** * Created by Giacomo Parisi on 30/06/2017. * https://github.com/JackParisi */ abstr...
Update view model for page title
Update view model for page title
Kotlin
apache-2.0
JackParisi/DroidBox
5e1799b1b1cf35d8e7a0e975fdfd9a03de95adb6
dsl/src/org/jetbrains/android/anko/render/SupportUtils.kt
dsl/src/org/jetbrains/android/anko/render/SupportUtils.kt
/* * Copyright 2015 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
/* * Copyright 2015 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
Support suffix must be added to all support views from android.support
Support suffix must be added to all support views from android.support
Kotlin
apache-2.0
snice/anko,colriot/anko,Kotlin/anko,leasual/anko,JetBrains/anko,snice/anko,Ribesg/anko,Kotlin/anko,is00hcw/anko,DanielGrech/anko,colriot/anko,fboldog/anko,colriot/anko,DanielGrech/anko,deva666/anko,is00hcw/anko,mr-max/anko,fboldog/anko,mr-max/anko,DanielGrech/anko,Kotlin/anko,Ribesg/anko,is00hcw/anko,leasual/anko,fbold...
fdce51ff6b19b3e8e6210bd8dabd7fe430cc91f2
javalin-openapi/src/main/java/io/javalin/plugin/openapi/utils/VersionIssuesUtil.kt
javalin-openapi/src/main/java/io/javalin/plugin/openapi/utils/VersionIssuesUtil.kt
package io.javalin.plugin.openapi.utils object VersionIssuesUtil { val javaVersion = System.getProperty("java.version").split(".")[0].toInt() val kotlinVersion = KotlinVersion.CURRENT.minor // let's face it, to JetBrains minor means major val hasIssue = javaVersion >= 15 || kotlinVersion >= 5 val warni...
package io.javalin.plugin.openapi.utils object VersionIssuesUtil { val javaVersion = System.getProperty("java.version").split(".")[0].replace(Regex("[^0-9]+"), "").toInt() val kotlinVersion = KotlinVersion.CURRENT.minor // let's face it, to JetBrains minor means major val hasIssue = javaVersion >= 15 || ko...
Fix version issue in VersionIssueUtil
[openapi] Fix version issue in VersionIssueUtil
Kotlin
apache-2.0
tipsy/javalin,tipsy/javalin,tipsy/javalin,tipsy/javalin
06cb71ea3f6b95ceb1379000cd40d6d069c322f9
k4kotlin/src/main/java/com/livinglifetechway/k4kotlin/Number.kt
k4kotlin/src/main/java/com/livinglifetechway/k4kotlin/Number.kt
@file:Suppress("NOTHING_TO_INLINE") package com.livinglifetechway.k4kotlin /** * Returns Zero (0) if it is null */ fun Number?.orZero(): Number = if (this != null) this else 0 fun Int?.orZero(): Int = if (this != null) this else 0 fun Long?.orZero(): Long = if (this != null) this else 0 fun Float?.orZero(): Floa...
@file:Suppress("NOTHING_TO_INLINE") package com.livinglifetechway.k4kotlin /** * Returns Zero (0) if it is null */ fun Number?.orZero(): Number = this ?: 0 fun Int?.orZero(): Int = this ?: 0 fun Long?.orZero(): Long = this ?: 0 fun Float?.orZero(): Float = this ?: 0.0f fun Double?.orZero(): Double = this ?: 0.0...
Replace null checks with elvis expression
Replace null checks with elvis expression
Kotlin
apache-2.0
kirtan403/K4Kotlin,kirtan403/K4Kotlin
cd9e42e42b438524fce7ef8ccebb1821ceadd25d
processor/src/main/kotlin/io/michaelrocks/lightsaber/processor/commons/MapExtensions.kt
processor/src/main/kotlin/io/michaelrocks/lightsaber/processor/commons/MapExtensions.kt
/* * Copyright 2016 Michael Rozumyanskiy * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
/* * Copyright 2016 Michael Rozumyanskiy * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
Add a mergeTo() extension function for the Map interface
Add a mergeTo() extension function for the Map interface
Kotlin
apache-2.0
MichaelRocks/lightsaber,MichaelRocks/lightsaber
966e7546bc16431f451ac32edb8e43ff3875c8f0
subprojects/execution/execution.gradle.kts
subprojects/execution/execution.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 unnecessary dependency on files
Remove unnecessary dependency on files
Kotlin
apache-2.0
gradle/gradle,gradle/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/gradle,robinverduijn/gradle,blindpirate...
185ebbf9f568f462384b0fdcff4aca121ad5fd3e
app/src/main/java/com/satsumasoftware/timetable/ThemeUtils.kt
app/src/main/java/com/satsumasoftware/timetable/ThemeUtils.kt
package com.satsumasoftware.timetable import android.app.Activity import android.os.Build import android.support.v4.content.ContextCompat import android.support.v7.widget.Toolbar import android.view.View import com.satsumasoftware.timetable.framework.Color fun setBarColors(color: Color, activity: Activity, vararg vie...
package com.satsumasoftware.timetable import android.app.Activity import android.content.Context import android.graphics.drawable.Drawable import android.os.Build import android.support.annotation.ColorRes import android.support.annotation.DrawableRes import android.support.annotation.IdRes import android.support.anno...
Create functions for drawable tinting
Create functions for drawable tinting
Kotlin
apache-2.0
FarbodSalamat-Zadeh/TimetableApp,FarbodSalamat-Zadeh/TimetableApp
abb65116ad61b5add574bc5a2dc456c3cc305391
src/main/kotlin/com/elpassion/mainframerplugin/common/console/RemoteToLocalInputConverter.kt
src/main/kotlin/com/elpassion/mainframerplugin/common/console/RemoteToLocalInputConverter.kt
package com.elpassion.mainframerplugin.common.console class RemoteToLocalInputConverter(projectName: String, val projectBasePath: String) { private val DOT_WORD = "(?:\\.[^\\s/]+)" private val OPTIONAL_PACKAGE_NAME = "$DOT_WORD*" val PATH_SEGMENT = "(?:/[^\\s/]+\\-?$OPTIONAL_PACKAGE_NAME)" val PATH = "...
package com.elpassion.mainframerplugin.common.console class RemoteToLocalInputConverter(projectName: String, val projectBasePath: String) { private val DOT_WORD = "(?:\\.[^\\s/]+)" private val OPTIONAL_PACKAGE_NAME = "$DOT_WORD*" val PATH_SEGMENT = "(?:/[^\\s/]+\\-?$OPTIONAL_PACKAGE_NAME)" val PATH = "...
Revert "Prevent stuck of IDEA on long multiline input"
Revert "Prevent stuck of IDEA on long multiline input" This reverts commit 72a6109
Kotlin
apache-2.0
elpassion/mainframer-intellij-plugin,elpassion/mainframer-intellij-plugin,elpassion/mainframer-intellij-plugin
5ed0882ec55734818a74c1feda84d38b97e0fbf5
src/main/kotlin/com/github/shiraji/databindinglayout/intentions/DatabindingXmlIntentionUtils.kt
src/main/kotlin/com/github/shiraji/databindinglayout/intentions/DatabindingXmlIntentionUtils.kt
package com.github.shiraji.databindinglayout.intentions import com.intellij.openapi.editor.Editor import com.intellij.psi.PsiFile import com.intellij.psi.util.PsiTreeUtil import com.intellij.psi.xml.XmlAttribute import com.intellij.psi.xml.XmlFile import com.intellij.psi.xml.XmlTag fun getPointingXmlAttribute(editor:...
package com.github.shiraji.databindinglayout.intentions import com.intellij.openapi.editor.Editor import com.intellij.psi.PsiFile import com.intellij.psi.util.PsiTreeUtil import com.intellij.psi.xml.XmlAttribute import com.intellij.psi.xml.XmlFile import com.intellij.psi.xml.XmlTag fun getPointingXmlAttribute(editor:...
Add checking if the tag has 2-way databinding syntax
Add checking if the tag has 2-way databinding syntax
Kotlin
apache-2.0
shiraji/databinding-support,shiraji/databinding-support,shiraji/databinding-support
60edb0066beb7d0ec804f214b19599b5cbcad35c
src/orbit-application/src/main/kotlin/orbit/application/App.kt
src/orbit-application/src/main/kotlin/orbit/application/App.kt
/* Copyright (C) 2015 - 2019 Electronic Arts Inc. All rights reserved. This file is part of the Orbit Project <https://www.orbit.cloud>. See license in LICENSE. */ package orbit.application import kotlinx.coroutines.runBlocking import orbit.server.OrbitServer import orbit.server.OrbitServerConfig import orbit.se...
/* Copyright (C) 2015 - 2019 Electronic Arts Inc. All rights reserved. This file is part of the Orbit Project <https://www.orbit.cloud>. See license in LICENSE. */ package orbit.application import kotlinx.coroutines.runBlocking import kotlinx.coroutines.time.delay import orbit.server.OrbitServer import orbit.ser...
Introduce temporary startup delay to account for dependency startup timing. Better options coming down the road.
Introduce temporary startup delay to account for dependency startup timing. Better options coming down the road.
Kotlin
bsd-3-clause
orbit/orbit,orbit/orbit
d38f25a688692ed603dea1dc9fd5d89e14000e9e
subprojects/docs/src/snippets/dependencyManagement/managingTransitiveDependencies-dependencyAlignmentWithPlatform/kotlin/buildSrc/src/main/kotlin/myproject.java-library-conventions.gradle.kts
subprojects/docs/src/snippets/dependencyManagement/managingTransitiveDependencies-dependencyAlignmentWithPlatform/kotlin/buildSrc/src/main/kotlin/myproject.java-library-conventions.gradle.kts
plugins { id("java-library") id("myproject.publishing-conventions") } publishing { publications { create("maven", MavenPublication::class.java) { from(components["java"]) } } }
plugins { id("java-library") id("myproject.publishing-conventions") } publishing { publications { create<MavenPublication>("maven") { from(components["java"]) } } }
Use idiomatic Kotlin DSL in dependency alignment snippet
Use idiomatic Kotlin DSL in dependency alignment snippet
Kotlin
apache-2.0
gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,grad...
6d3d4032986a709b0ff8ee4c58b1108d7141e0bb
lastfm4k/src/main/kotlin/org/gravidence/lastfm4k/api/track/Track.kt
lastfm4k/src/main/kotlin/org/gravidence/lastfm4k/api/track/Track.kt
package org.gravidence.lastfm4k.api.track data class Track( val artist: String, val track: String, val album: String? = null, val albumArtist: String? = null, val trackNumber: String? = null, /** * The MusicBrainz Track ID. */ val mbId: String? = null, /** * The length of...
package org.gravidence.lastfm4k.api.track data class Track( val artist: String, val track: String, val album: String? = null, val albumArtist: String? = null, val trackNumber: String? = null, /** * The MusicBrainz Track ID. */ val mbId: String? = null, /** * The length of...
Extend VA with one more case
Extend VA with one more case
Kotlin
mit
gravidence/gravifon
7bb8da851d07f1628593eb9fdac905b28dff973b
appctx/src/main/java/splitties/init/DirectBootCtx.kt
appctx/src/main/java/splitties/init/DirectBootCtx.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 ...
Replace 24 with N, because Nougat tastes better than digits
Replace 24 with N, because Nougat tastes better than digits
Kotlin
apache-2.0
LouisCAD/Splitties,LouisCAD/Splitties,LouisCAD/Splitties
3b9ae710816438e7cf20304c93e1b6e289bc4301
src/main/kotlin/com/github/bjoernpetersen/musicbot/spi/plugin/Plugin.kt
src/main/kotlin/com/github/bjoernpetersen/musicbot/spi/plugin/Plugin.kt
package com.github.bjoernpetersen.musicbot.spi.plugin import com.github.bjoernpetersen.musicbot.api.config.Config import com.github.bjoernpetersen.musicbot.spi.plugin.management.InitStateWriter import java.io.IOException interface Plugin { /** * An arbitrary plugin name. Keep it short, but descriptive. ...
package com.github.bjoernpetersen.musicbot.spi.plugin import com.github.bjoernpetersen.musicbot.api.config.Config import com.github.bjoernpetersen.musicbot.spi.plugin.management.InitStateWriter import java.io.IOException interface Plugin { /** * An arbitrary plugin name. Keep it short, but descriptive. ...
Improve plugin config method arg naming
Improve plugin config method arg naming
Kotlin
mit
BjoernPetersen/JMusicBot
337123015a7bea6b9cad258edb7a620b6ac52c6b
settings.gradle.kts
settings.gradle.kts
rootProject.name = "bean-validators" plugins { id("com.gradle.enterprise") version "3.6.3" } gradleEnterprise { buildScan { val isCi = !System.getenv("GITHUB_WORKFLOW").isNullOrEmpty() if(isCi || file("gradle/.build-scans-tos-agree").exists()) { termsOfServiceUrl = "https://gradle....
rootProject.name = "bean-validators" plugins { id("com.gradle.enterprise") version "3.6.3" id("com.gradle.common-custom-user-data-gradle-plugin") version "1.4.2" } gradleEnterprise { buildScan { val isCi = !System.getenv("GITHUB_WORKFLOW").isNullOrEmpty() if(isCi || file("gradle/.build-sca...
Use Common Custom User Data Gradle plugin
Use Common Custom User Data Gradle plugin
Kotlin
apache-2.0
britter/bean-validators,britter/bean-validators
0e125fce5c09b1a0a8413d2e6be443e29d4ebebe
core/src/test/kotlin/testRunner/DokkaTestGenerator.kt
core/src/test/kotlin/testRunner/DokkaTestGenerator.kt
package testRunner import org.jetbrains.dokka.DokkaConfiguration import org.jetbrains.dokka.DokkaGenerator import org.jetbrains.dokka.EnvironmentAndFacade import org.jetbrains.dokka.pages.PlatformData import org.jetbrains.dokka.utilities.DokkaLogger internal class DokkaTestGenerator( private val configuration: Do...
package testRunner import org.jetbrains.dokka.DokkaConfiguration import org.jetbrains.dokka.DokkaGenerator import org.jetbrains.dokka.EnvironmentAndFacade import org.jetbrains.dokka.pages.PlatformData import org.jetbrains.dokka.utilities.DokkaLogger internal class DokkaTestGenerator( private val configuration: Do...
Fix TestRunner after the refactoring of DokkaGenerator pipeline
Fix TestRunner after the refactoring of DokkaGenerator pipeline
Kotlin
apache-2.0
Kotlin/dokka,Kotlin/dokka,Kotlin/dokka,Kotlin/dokka,Kotlin/dokka,Kotlin/dokka
c1de133c444a14fd16a1a01ef16c42d40ce436be
buildSrc/subprojects/configuration/src/main/kotlin/org/gradle/gradlebuild/BuildEnvironment.kt
buildSrc/subprojects/configuration/src/main/kotlin/org/gradle/gradlebuild/BuildEnvironment.kt
package org.gradle.gradlebuild import org.gradle.api.JavaVersion import org.gradle.internal.os.OperatingSystem object BuildEnvironment { val isCiServer = "CI" in System.getenv() val isTravis = "TRAVIS" in System.getenv() val isJenkins = "JENKINS_HOME" in System.getenv() val gradleKotlinDslVersion = "...
package org.gradle.gradlebuild import org.gradle.api.JavaVersion import org.gradle.internal.os.OperatingSystem object BuildEnvironment { val isCiServer = "CI" in System.getenv() val isTravis = "TRAVIS" in System.getenv() val isJenkins = "JENKINS_HOME" in System.getenv() val jvm = org.gradle.internal....
Remove now unused Kotlin and Kotlin DSL versions declaration in build
Remove now unused Kotlin and Kotlin DSL versions declaration in build Signed-off-by: Paul Merlin <a027184a55211cd23e3f3094f1fdc728df5e0500@gradle.com>
Kotlin
apache-2.0
robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,robinverduijn/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,blindpirate/g...
19b2a8eef50ef2e4c786ed6b3c29e757b48ea5ba
src/main/java/uk/co/reecedunn/intellij/plugin/marklogic/settings/MarkLogicServerTableModel.kt
src/main/java/uk/co/reecedunn/intellij/plugin/marklogic/settings/MarkLogicServerTableModel.kt
package uk.co.reecedunn.intellij.plugin.marklogic.settings import uk.co.reecedunn.intellij.plugin.marklogic.resources.MarkLogicBundle import javax.swing.table.AbstractTableModel private val COLUMN_NAMES = arrayOf( MarkLogicBundle.message("marklogic.settings.server.name"), MarkLogicBundle.message("marklogic.se...
/* * 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...
Implement access to the MarkLogicServer data from the table model.
Implement access to the MarkLogicServer data from the table model.
Kotlin
apache-2.0
rhdunn/marklogic-intellij-plugin
b0320754e799a73a2c650253d2940ff76402fcd9
ktor-client/ktor-client-core/src/io/ktor/client/features/DefaultTransform.kt
ktor-client/ktor-client-core/src/io/ktor/client/features/DefaultTransform.kt
package io.ktor.client.features import io.ktor.cio.* import io.ktor.client.* import io.ktor.client.request.* import io.ktor.client.response.* import io.ktor.content.* import kotlinx.coroutines.experimental.io.* import kotlinx.coroutines.experimental.io.jvm.javaio.* import java.io.* fun HttpClient.defaultTransformers(...
package io.ktor.client.features import io.ktor.cio.* import io.ktor.client.* import io.ktor.client.request.* import io.ktor.client.response.* import io.ktor.content.* import io.ktor.http.* import kotlinx.coroutines.experimental.io.* import kotlinx.coroutines.experimental.io.jvm.javaio.* import java.io.* fun HttpClien...
Add explicit `Accept` header in client request
Add explicit `Accept` header in client request
Kotlin
apache-2.0
ktorio/ktor,ktorio/ktor,ktorio/ktor,ktorio/ktor
577f2525776af3fc769a54f7a0139820b1e26301
subprojects/code-quality/build.gradle.kts
subprojects/code-quality/build.gradle.kts
plugins { id("gradlebuild.distribution.api-java") } dependencies { implementation(project(":base-services")) implementation(project(":logging")) implementation(project(":native")) implementation(project(":process-services")) implementation(project(":core-api")) implementation(project(":mode...
plugins { id("gradlebuild.distribution.api-java") } dependencies { implementation(project(":base-services")) implementation(project(":logging")) implementation(project(":native")) implementation(project(":process-services")) implementation(project(":core-api")) implementation(project(":mode...
Use module dependencies for Groovy 3 in 'code quality'
Use module dependencies for Groovy 3 in 'code quality'
Kotlin
apache-2.0
blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpira...
a9158ccc9aceac55d715f76e5641eb22b459f3a4
build.gradle.kts
build.gradle.kts
/** * Builds and runs the site locally. */ task<Exec>("runSite") { commandLine("./_script/jekyll-serve") } task<Exec>("buildSite") { commandLine("./_script/jekyll-build") }
/** * Builds and runs the site locally. */ task<Exec>("runSite") { commandLine("./_script/jekyll-serve") } /** * Builds the site without starting the server. */ task<Exec>("buildSite") { commandLine("./_script/jekyll-build") }
Document the site build task
Document the site build task
Kotlin
apache-2.0
SpineEventEngine/SpineEventEngine.github.io,SpineEventEngine/SpineEventEngine.github.io,SpineEventEngine/SpineEventEngine.github.io,SpineEventEngine/SpineEventEngine.github.io,SpineEventEngine/SpineEventEngine.github.io,SpineEventEngine/SpineEventEngine.github.io
07fc6ccf4eb2bd5ec688c837a7963bfab5d880bf
build.gradle.kts
build.gradle.kts
/* * Copyright 2019 PolyForest * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
/* * Copyright 2019 PolyForest * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
Enable assertions for tests themselves to not trigger Gradle assertions
Enable assertions for tests themselves to not trigger Gradle assertions
Kotlin
apache-2.0
AcornUI/Acorn,AcornUI/Acorn,AcornUI/Acorn
f3070bdf8d4fd834fa3b3af3be2b681305760779
subprojects/plugin-use/build.gradle.kts
subprojects/plugin-use/build.gradle.kts
plugins { id("gradlebuild.distribution.api-java") } dependencies { implementation(project(":base-services")) implementation(project(":logging")) implementation(project(":messaging")) implementation(project(":file-collections")) implementation(project(":core-api")) implementation(project(":c...
plugins { id("gradlebuild.distribution.api-java") } dependencies { implementation(project(":base-services")) implementation(project(":logging")) implementation(project(":messaging")) implementation(project(":file-collections")) implementation(project(":core-api")) implementation(project(":c...
Upgrade 'plugin-use' to Groovy 3
Upgrade 'plugin-use' to Groovy 3
Kotlin
apache-2.0
gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpira...
3e3d4d5f59244e15ee6ee1df8a158a3fffa407d5
core/src/main/java/com/pyamsoft/pydroid/core/Enforcer.kt
core/src/main/java/com/pyamsoft/pydroid/core/Enforcer.kt
/* * Copyright 2019 Peter Kenji Yamanaka * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
/* * Copyright 2019 Peter Kenji Yamanaka * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
Check for off and on main thread
Check for off and on main thread
Kotlin
apache-2.0
pyamsoft/pydroid
713bdb85bbea24af7f1204ea2683e859f182031c
test-doma-criteria/build.gradle.kts
test-doma-criteria/build.gradle.kts
plugins { kotlin("jvm") apply true kotlin("kapt") apply true } kapt { arguments { arg("doma.entity.field.prefix", "none") } } dependencies { kapt(project(":doma-processor")) implementation(project(":doma-core")) implementation(project(":doma-criteria")) implementation(kotlin("s...
plugins { kotlin("jvm") apply true kotlin("kapt") apply true } dependencies { kapt(project(":doma-processor")) implementation(project(":doma-core")) implementation(project(":doma-criteria")) implementation(kotlin("stdlib-jdk8")) testRuntimeOnly("com.h2database:h2:1.4.199") } tasks { co...
Remove the "doma.entity.field.prefix" option because the prefix is none by default.
Remove the "doma.entity.field.prefix" option because the prefix is none by default.
Kotlin
apache-2.0
domaframework/doma,domaframework/doma
ed57bb82fd81b89f1fdd6a1ec6590f4e88f6dba3
firebase-analytics/src/main/java/FirebaseExt.kt
firebase-analytics/src/main/java/FirebaseExt.kt
/* * Copyright 2016-2018 Julien Guerinet * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
/* * Copyright 2016-2018 Julien Guerinet * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
Add extension method to set multiple user properties
Add extension method to set multiple user properties
Kotlin
apache-2.0
jguerinet/android-utils,jguerinet/Suitcase,jguerinet/android-utils,jguerinet/Suitcase
04faf2504b54280fa0a11dcbe8a8e17abe1f2e70
subprojects/platform-jvm/platform-jvm.gradle.kts
subprojects/platform-jvm/platform-jvm.gradle.kts
import gradlebuild.integrationtests.integrationTestUsesSampleDir plugins { id("gradlebuild.distribution.api-java") id("gradlebuild.jmh") } dependencies { implementation(project(":baseServices")) implementation(project(":logging")) implementation(project(":fileCollections")) implementation(proj...
import gradlebuild.integrationtests.integrationTestUsesSampleDir plugins { id("gradlebuild.distribution.api-java") id("gradlebuild.jmh") } dependencies { implementation(project(":baseServices")) implementation(project(":logging")) implementation(project(":fileCollections")) implementation(proj...
Add required dependencies for toolchain provisioning
Add required dependencies for toolchain provisioning
Kotlin
apache-2.0
gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpira...
b8be320e53d7b375812ba9647674cb99d765f3f8
android_mobile/src/main/java/com/alexstyl/specialdates/upcoming/widget/list/ContactEventBinder.kt
android_mobile/src/main/java/com/alexstyl/specialdates/upcoming/widget/list/ContactEventBinder.kt
package com.alexstyl.specialdates.upcoming.widget.list import android.content.res.Resources import android.support.annotation.Px import android.widget.RemoteViews import com.alexstyl.specialdates.R import com.alexstyl.specialdates.upcoming.UpcomingContactEventViewModel internal class ContactEventBinder(private val r...
package com.alexstyl.specialdates.upcoming.widget.list import android.content.res.Resources import android.graphics.Bitmap import android.support.annotation.Px import android.widget.RemoteViews import com.alexstyl.specialdates.R import com.alexstyl.specialdates.contact.Contact import com.alexstyl.specialdates.upcoming...
Create a circle avatar if a contact has none
Create a circle avatar if a contact has none
Kotlin
mit
pchrysa/Memento-Calendar,pchrysa/Memento-Calendar,pchrysa/Memento-Calendar
4a0c69397201b4899b73e3ee302550377de49d55
rider/src/main/kotlin/com/jetbrains/rider/plugins/unity/javascript/UnityPackageJsonNotifierConfiguration.kt
rider/src/main/kotlin/com/jetbrains/rider/plugins/unity/javascript/UnityPackageJsonNotifierConfiguration.kt
package com.jetbrains.rider.plugins.unity.javascript import com.intellij.javascript.nodejs.packageJson.PackageJsonNotifierConfiguration import com.intellij.openapi.fileTypes.FileTypeManager import com.intellij.openapi.project.Project import com.intellij.openapi.vfs.VirtualFile import com.jetbrains.rider.isUnityGenerat...
package com.jetbrains.rider.plugins.unity.javascript import com.intellij.javascript.nodejs.packageJson.PackageJsonNotifierConfiguration import com.intellij.openapi.fileTypes.FileTypeManager import com.intellij.openapi.project.Project import com.intellij.openapi.vfs.VirtualFile import com.jetbrains.rider.isUnityProject...
Use correct method to check for Unity project
Use correct method to check for Unity project
Kotlin
apache-2.0
JetBrains/resharper-unity,JetBrains/resharper-unity,JetBrains/resharper-unity
2ba38811a04b881f5dbcfdac605e6db7b6ec2ff9
app/src/main/java/net/squanchy/favorites/view/FavoritesItem.kt
app/src/main/java/net/squanchy/favorites/view/FavoritesItem.kt
package net.squanchy.favorites.view import net.squanchy.schedule.domain.view.Event import org.threeten.bp.LocalDate import org.threeten.bp.LocalTime import org.threeten.bp.ZoneId sealed class FavoritesItem { abstract val id: Long abstract val type: Type data class Header(val date: LocalDate) : Favorite...
package net.squanchy.favorites.view import net.squanchy.schedule.domain.view.Event import org.threeten.bp.LocalDate import org.threeten.bp.LocalTime import org.threeten.bp.ZoneId sealed class FavoritesItem { abstract val id: Long abstract val type: Type data class Header(val date: LocalDate) : Favorite...
Use milliseconds instead of seconds
Use milliseconds instead of seconds
Kotlin
apache-2.0
squanchy-dev/squanchy-android,squanchy-dev/squanchy-android,squanchy-dev/squanchy-android
66206e671027fa062fd58a48c1a5cd789d024f5c
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.graphics.Paint import android.graphics.Rect import android.graphics.drawable.Drawable import android.text.style.ImageSpan class AztecCommentSpan(val context: Context, drawable: Drawable) : ImageSpan(drawable) { companion object { ...
package org.wordpress.aztec.spans import android.content.Context import android.graphics.Paint import android.graphics.Rect import android.graphics.drawable.Drawable import android.text.style.ImageSpan class AztecCommentSpan(val context: Context, drawable: Drawable) : ImageSpan(drawable) { companion object { ...
Move rectangle to class variable for reuse
Move rectangle to class variable for reuse
Kotlin
mpl-2.0
wordpress-mobile/AztecEditor-Android,wordpress-mobile/AztecEditor-Android,wordpress-mobile/AztecEditor-Android
aee0f57efd6d7f42ef1216e11575314ec2d3144c
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.take(2)) { "0x" -> 16 "0b" -> 2 else -> return s.toLong().toInt() } return s.drop(2).toLong(radix).toInt() } private fun isCh...
Add support for " and ' character literals
Add support for " and ' character literals
Kotlin
mit
kvakil/venus,kvakil/venus,kvakil/venus
e99256c94b2ececaed45f5bf49301c8a42dc8e57
src/main/kotlin/pub/edholm/domain/Swish.kt
src/main/kotlin/pub/edholm/domain/Swish.kt
package pub.edholm.domain import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper import pub.edholm.db.Swosh import java.net.URI import java.net.URLEncoder import java.nio.charset.StandardCharsets data class StringValue( val value: String ) data class IntValue( val value: Int ) data class Sw...
package pub.edholm.domain import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper import pub.edholm.db.Swosh import java.net.URI import java.net.URLEncoder import java.nio.charset.StandardCharsets data class StringValue( val value: String, val editable: Boolean = false ) data class IntValue( ...
Make message editable by default
Make message editable by default
Kotlin
mit
Edholm/swosh,Edholm/swosh,Edholm/swosh,Edholm/swosh
b4fbe5d15c914953c91e44d0cdd8ce8d9e1382f0
app/src/main/java/com/sedsoftware/yaptalker/data/remote/yap/YapLoader.kt
app/src/main/java/com/sedsoftware/yaptalker/data/remote/yap/YapLoader.kt
@file:Suppress("KDocUnresolvedReference") package com.sedsoftware.yaptalker.data.remote.yap import com.sedsoftware.yaptalker.data.model.Forums import com.sedsoftware.yaptalker.data.model.News import io.reactivex.Single import retrofit2.http.GET import retrofit2.http.Path interface YapLoader { /** * Load news f...
@file:Suppress("KDocUnresolvedReference") package com.sedsoftware.yaptalker.data.remote.yap import com.sedsoftware.yaptalker.data.model.ForumPage import com.sedsoftware.yaptalker.data.model.Forums import com.sedsoftware.yaptalker.data.model.News import io.reactivex.Single import retrofit2.http.GET import retrofit2.ht...
Add request for forum load
Add request for forum load
Kotlin
apache-2.0
djkovrik/YapTalker,djkovrik/YapTalker
2453914fd75b13504ca31a3bc23a1de2d4d15fa7
app/src/main/java/pl/mg6/likeornot/RetrofitProvider.kt
app/src/main/java/pl/mg6/likeornot/RetrofitProvider.kt
package pl.mg6.likeornot import com.jakewharton.retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory import io.reactivex.schedulers.Schedulers import retrofit2.Retrofit import retrofit2.converter.gson.GsonConverterFactory object RetrofitProvider { private val retrofit: Retrofit by lazy(this::createRetrofit) v...
package pl.mg6.likeornot import com.jakewharton.retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory import io.reactivex.schedulers.Schedulers import retrofit2.Retrofit import retrofit2.converter.gson.GsonConverterFactory object RetrofitProvider { private val retrofit by lazy(this::createRetrofit) var overrid...
Make createRetrofit return type explicit.
Make createRetrofit return type explicit.
Kotlin
apache-2.0
mg6maciej/fluffy-octo-rotary-phone,mg6maciej/fluffy-octo-rotary-phone,mg6maciej/fluffy-octo-rotary-phone
75944fd6f98b7b98d6a4b0c81459980ff0ca3f42
services/unsplash/src/main/kotlin/io/sweers/catchup/service/unsplash/UnsplashApi.kt
services/unsplash/src/main/kotlin/io/sweers/catchup/service/unsplash/UnsplashApi.kt
/* * Copyright (c) 2018 Zac Sweers * * 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 (c) 2018 Zac Sweers * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
Fix up unsplash API to actually give new images
Fix up unsplash API to actually give new images
Kotlin
apache-2.0
hzsweers/CatchUp,hzsweers/CatchUp,hzsweers/CatchUp,hzsweers/CatchUp
aba1625acce292913239e8ed39a4b331798a0600
buildSrc/build.gradle.kts
buildSrc/build.gradle.kts
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile buildscript { val pluginsExperiments = "gradle.plugin.org.gradle.kotlin:gradle-kotlin-dsl-plugins-experiments:0.1.14" dependencies { classpath(pluginsExperiments) } project.dependencies { "compile"(pluginsExperiments) } ...
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile buildscript { val pluginsExperiments = "gradle.plugin.org.gradle.kotlin:gradle-kotlin-dsl-plugins-experiments:0.1.14" dependencies { classpath(pluginsExperiments) } project.dependencies { "compile"(pluginsExperiments) } ...
Enable precompiled script plugins on `buildSrc`
Enable precompiled script plugins on `buildSrc` After the change to the `kotlin-dsl` plugin that no longer does it by default.
Kotlin
apache-2.0
robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,gradle/gradle-script-kotlin,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,robinverduijn/gradle,gradle/gradle,blindpirate/gradle,blindp...
7b39dd85d9424dc20ee3fc905b0157f843e0cb46
subprojects/docs/src/snippets/buildlifecycle/projectEvaluateEvents/kotlin/build.gradle.kts
subprojects/docs/src/snippets/buildlifecycle/projectEvaluateEvents/kotlin/build.gradle.kts
// tag::after-evaluate[] allprojects { afterEvaluate { if (extra["hasTests"] as Boolean) { println("Adding test task to $project") tasks.register("test") { doLast { println("Running tests for $project") } } } ...
// tag::after-evaluate[] allprojects { // Set a default value extra["hasTests"] = false afterEvaluate { if (extra["hasTests"] as Boolean) { println("Adding test task to $project") tasks.register("test") { doLast { println("Running tests fo...
Move default assignment in sample
Move default assignment in sample
Kotlin
apache-2.0
blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,grad...
41c54a3402da12615fd37e523efaf92f30544f24
cliffhanger/app/src/main/java/com/github/charbgr/cliffhanger/shared/extensions/ViewExtensions.kt
cliffhanger/app/src/main/java/com/github/charbgr/cliffhanger/shared/extensions/ViewExtensions.kt
package com.github.charbgr.cliffhanger.shared.extensions import android.view.LayoutInflater import android.view.View import android.view.ViewGroup fun ViewGroup.render(layoutId: Int, attachToRoot: Boolean = false): View { return LayoutInflater.from(context).inflate(layoutId, this, attachToRoot) }
package com.github.charbgr.cliffhanger.shared.extensions import android.view.LayoutInflater import android.view.View import android.view.ViewGroup fun ViewGroup.render(layoutId: Int, attachToRoot: Boolean = false): View { return LayoutInflater.from(context).inflate(layoutId, this, attachToRoot) } fun View.visibleO...
Add visible and gone view extensions
Add visible and gone view extensions
Kotlin
mit
charbgr/CliffHanger
b2413ef564d5b9e8abd5fa75930778830b128b06
api/src/main/kotlin/net/serverpeon/discord/model/Region.kt
api/src/main/kotlin/net/serverpeon/discord/model/Region.kt
package net.serverpeon.discord.model /** * Represents one of the regions in which a [Guild] may be hosted. */ interface Region { /** * Alphanumeric (with dashes) id representing this region. */ val id: String /** * Approximate continent on which this region exists. */ val contine...
package net.serverpeon.discord.model /** * Represents one of the regions in which a [Guild] may be hosted. */ interface Region { /** * Alphanumeric (with dashes) id representing this region. */ val id: String /** * Approximate continent on which this region exists. */ val contine...
Add current regions as a static resource
Add current regions as a static resource
Kotlin
mit
Kiskae/DiscordKt,Kiskae/DiscordKt
f17c0cb5b9bfc082dc7a36005ce352accbb0548d
kotlin-eclipse-ui-test/src/org/jetbrains/kotlin/ui/tests/scripts/templates/TestKtScriptTemplateProvider.kt
kotlin-eclipse-ui-test/src/org/jetbrains/kotlin/ui/tests/scripts/templates/TestKtScriptTemplateProvider.kt
package org.jetbrains.kotlin.ui.tests.scripts.templates import org.jetbrains.kotlin.script.ScriptTemplateProvider class TestKtScriptTemplateProvider : ScriptTemplateProvider { override val dependenciesClasspath: Iterable<String> get() = listOf("bin/") override val environment: Map<String, Any?>? ...
package org.jetbrains.kotlin.ui.tests.scripts.templates import org.jetbrains.kotlin.script.ScriptTemplateProvider class TestKtScriptTemplateProvider : ScriptTemplateProvider { override val dependenciesClasspath: Iterable<String> get() = listOf("bin/", "target/classes/") override val environment: ...
Fix test on teamcity: use maven output folder, not local
Fix test on teamcity: use maven output folder, not local
Kotlin
apache-2.0
noemus/kotlin-eclipse,noemus/kotlin-eclipse
57c016e16c1c675a7a70e1c18e96f9eede517306
src/main/kotlin/net/moltendorf/Bukkit/IntelliDoors/controller/Door.kt
src/main/kotlin/net/moltendorf/Bukkit/IntelliDoors/controller/Door.kt
package net.moltendorf.Bukkit.IntelliDoors.controller import org.bukkit.Location import org.bukkit.Material import org.bukkit.Sound import org.bukkit.block.BlockFace /** * Created by moltendorf on 16/5/10. */ abstract class Door { abstract val facing: BlockFace abstract val location: Location abstract val typ...
package net.moltendorf.Bukkit.IntelliDoors.controller import org.bukkit.Location import org.bukkit.Material import org.bukkit.Sound import org.bukkit.block.BlockFace /** * Created by moltendorf on 16/5/10. */ abstract class Door { abstract val facing: BlockFace abstract val location: Location abstract val typ...
Fix single wooden doors not shutting
Fix single wooden doors not shutting
Kotlin
mit
moltendorf/IntelliDoors
84c5f26486bb10dcf9a1908434b5c44b5ee64368
shared/src/main/kotlin/trace-consumer.kt
shared/src/main/kotlin/trace-consumer.kt
package html4k.consumers import html4k.Tag import html4k.TagConsumer import java.util.ArrayList import java.util.Date class TraceConsumer<R>(val downstream : TagConsumer<R>, val out : Appendable) : TagConsumer<R> by downstream { private val id = "ID-${Date().getTime() mod 16384}" private val path = ArrayList<...
package html4k.consumers import html4k.Tag import html4k.TagConsumer import java.util.ArrayList import java.util.Date class TraceConsumer<R>(val downstream : TagConsumer<R>) : TagConsumer<R> by downstream { private val id = "ID-${Date().getTime() mod 16384}" private val path = ArrayList<String>(1024) ove...
Remove trace to Appendable as it is not working properly
Remove trace to Appendable as it is not working properly
Kotlin
apache-2.0
kotlinx/kotlinx.html,kotlinx/kotlinx.html,kotlinx/kotlinx.html
748f11a18ea907a540343e44ce1452fb7d39c98f
util/src/main/kotlin/io/sweers/catchup/util/SdkVersionsExt.kt
util/src/main/kotlin/io/sweers/catchup/util/SdkVersionsExt.kt
/* * Copyright (c) 2017 Zac Sweers * * 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 Zac Sweers * * 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...
Add comment linking issue tracker
Add comment linking issue tracker
Kotlin
apache-2.0
hzsweers/CatchUp,hzsweers/CatchUp,hzsweers/CatchUp,hzsweers/CatchUp
ff48f91e0eda1a005f03936b83d71c587f88de40
kotlin/hello.kt
kotlin/hello.kt
// How to execute this example (for commandline user) // $ kotlinc-jvm <source.kt> -include-runtime -d <outfile.jar> // $ kotlin <outfile.jar> fun main(args:Array<String>){ println("Hello, Kotlin") }
// How to execute this example (for commandline user) // Option 1: // $ kotlinc-jvm <source.kt> -include-runtime -d <outfile.jar> // $ kotlin <outfile.jar> // Option 2: // $ kotlinc <source.kt> <-- outfile will be "SourceKt.class" // S kotlin <outfile> <-- without [.class] fun main(args:Array<String>){ ...
Add alternatives for kotlin example
Add alternatives for kotlin example
Kotlin
mit
kuroyakov/minimum-examples,kuroyakov/minimum-examples,kuroyakov/minimum-examples,kuroyakov/minimum-examples,kuroyakov/minimum-examples,kuroyakov/minimum-examples
6c8a0be7a98bd3b50a636c3c42d51995f6fbc7c9
app/src/main/java/com/aerodeko/pfm/model/EventManager.kt
app/src/main/java/com/aerodeko/pfm/model/EventManager.kt
package com.aerodeko.pfm.model import android.content.ContentValues import android.content.Context import android.database.sqlite.SQLiteDatabase /** * Created by rm on 10/12/2016. */ class EventManager(context: Context) { val database: SQLiteDatabase init { val databaseHelper = EventDatabaseHelper...
package com.aerodeko.pfm.model import android.content.ContentValues import android.content.Context import android.database.sqlite.SQLiteDatabase import com.aerodeko.pfm.extensions.dateAsSeconds import java.util.* /** * Created by rm on 10/12/2016. */ class EventManager(context: Context) { val database: SQLiteD...
Return the Event instance if the event was added successfully.
Return the Event instance if the event was added successfully.
Kotlin
mit
superjohan/pfm,superjohan/pfm,superjohan/pfm
8e8e76c20e28c54131c2b2c81d9cbca92cb7c236
src/m/MFunction.kt
src/m/MFunction.kt
package m /** * Created by Aedan Smith. */ inline fun <reified I, reified O> mFunction( noinline mFunction: (I) -> O ) = MFunctionWrapper0( mFunction, I::class.qualifiedName!!, O::class.qualifiedName!! ) inline fun <reified I1, reified I2, reified O> mFunction( noinline mFun...
package m /** * Created by Aedan Smith. */ inline fun <reified I, reified O> mFunction(noinline mFunction: (I) -> O) = object : (I) -> O { override fun invoke(p1: I) = mFunction(p1) override fun toString() = "(${I::class.qualifiedName}) -> ${O::class.qualifiedName}" } inline fun <reified I1, reified I2, re...
Convert mFunctions to anonymous objects
Convert mFunctions to anonymous objects
Kotlin
mit
aedans/M,aedans/M,aedans/M,aedans/M
dcaa940db179cf346f9a0e8f98988d17a3cb2719
core/src/main/kotlin/Kotlin/KotlinAsJavaDescriptorSignatureProvider.kt
core/src/main/kotlin/Kotlin/KotlinAsJavaDescriptorSignatureProvider.kt
package org.jetbrains.dokka.Kotlin import org.jetbrains.dokka.Model.DescriptorSignatureProvider import org.jetbrains.dokka.getSignature import org.jetbrains.dokka.sourcePsi import org.jetbrains.kotlin.asJava.toLightElements import org.jetbrains.kotlin.descriptors.DeclarationDescriptor import org.jetbrains.kotlin.psi.K...
package org.jetbrains.dokka.Kotlin import org.jetbrains.dokka.Model.DescriptorSignatureProvider import org.jetbrains.dokka.getSignature import org.jetbrains.dokka.sourcePsi import org.jetbrains.kotlin.asJava.toLightElements import org.jetbrains.kotlin.descriptors.DeclarationDescriptor import org.jetbrains.kotlin.psi.K...
Fix crash in as Java mode, just show ugly warning
Fix crash in as Java mode, just show ugly warning
Kotlin
apache-2.0
Kotlin/dokka,google/dokka,Kotlin/dokka,Kotlin/dokka,Kotlin/dokka,Kotlin/dokka,google/dokka,Kotlin/dokka
bc9bc442d98994e81a69995778f6d3b1d9d2abe0
checkedlazy/src/main/java/splitties/checkedlazy/CommonAccessCheckers.kt
checkedlazy/src/main/java/splitties/checkedlazy/CommonAccessCheckers.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 noAccessOn helper and doc to accessOn
Add noAccessOn helper and doc to accessOn
Kotlin
apache-2.0
LouisCAD/Splitties,LouisCAD/Splitties,LouisCAD/Splitties
4fa89ede02abfd77df20d939e35007628a17623b
ktor-client/ktor-client-core/src/io/ktor/client/features/HttpPlainText.kt
ktor-client/ktor-client-core/src/io/ktor/client/features/HttpPlainText.kt
package io.ktor.client.features import io.ktor.client.* import io.ktor.client.request.* import io.ktor.client.response.* import io.ktor.content.* import io.ktor.http.* import io.ktor.util.* import java.nio.charset.* class HttpPlainText(private val defaultCharset: Charset) { suspend fun read(response: IncomingCon...
package io.ktor.client.features import io.ktor.client.* import io.ktor.client.request.* import io.ktor.client.response.* import io.ktor.content.* import io.ktor.http.* import io.ktor.util.* import java.nio.charset.* class HttpPlainText(private val defaultCharset: Charset) { suspend fun read(response: IncomingCon...
Use response charset by default
Use response charset by default
Kotlin
apache-2.0
ktorio/ktor,ktorio/ktor,ktorio/ktor,ktorio/ktor
20c69b4c3ba24c3b0a49783fe6cbde780eb52722
src/main/kotlin/com/lapismc/minecraft/versioning/OSRule.kt
src/main/kotlin/com/lapismc/minecraft/versioning/OSRule.kt
package com.lapismc.minecraft.versioning /** * Library inclusion rule for operating system checks. * @param os Operating system this rule applies to. * @param allowed Flag indicating whether the library should be included. */ class OSRule(val os: OSType, allowed: Boolean) : Rule(allowed) { /** * Checks wh...
package com.lapismc.minecraft.versioning /** * Library inclusion rule for operating system checks. * @param os Operating system this rule applies to. * @param allowed Flag indicating whether the library should be included. */ class OSRule(val os: OSType, allowed: Boolean) : Rule(allowed) { companion object { ...
Add logic to detect OS
Add logic to detect OS
Kotlin
mit
lapis-mc/minecraft-versioning
cf53b883a56c4bb8e29b2f147c785e65d89c6f1c
.teamcity/Gradle_Util/buildTypes/WarmupEc2Agent.kt
.teamcity/Gradle_Util/buildTypes/WarmupEc2Agent.kt
package Gradle_Util.buildTypes import common.gradleWrapper import jetbrains.buildServer.configs.kotlin.v2019_2.AbsoluteId import jetbrains.buildServer.configs.kotlin.v2019_2.BuildType import jetbrains.buildServer.configs.kotlin.v2019_2.CheckoutMode import jetbrains.buildServer.configs.kotlin.v2019_2.Requirement import...
package Gradle_Util.buildTypes import common.gradleWrapper import configurations.buildJavaHome import jetbrains.buildServer.configs.kotlin.v2019_2.AbsoluteId import jetbrains.buildServer.configs.kotlin.v2019_2.BuildType import jetbrains.buildServer.configs.kotlin.v2019_2.CheckoutMode import jetbrains.buildServer.confi...
Use build Java home for executing EC2 warmup build
Use build Java home for executing EC2 warmup build
Kotlin
apache-2.0
blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,grad...
41acff0ac22f836c08313cd0c2aeb1618ecc75e0
common/core/src/main/java/com/cryart/sabbathschool/core/misc/DateHelper.kt
common/core/src/main/java/com/cryart/sabbathschool/core/misc/DateHelper.kt
package com.cryart.sabbathschool.core.misc import org.joda.time.DateTime import org.joda.time.format.DateTimeFormat import timber.log.Timber object DateHelper { fun parseDate(date: String): DateTime? { return try { DateTimeFormat.forPattern(SSConstants.SS_DATE_FORMAT) .parseLo...
package com.cryart.sabbathschool.core.misc import org.joda.time.DateTime import org.joda.time.LocalDate import org.joda.time.format.DateTimeFormat import timber.log.Timber object DateHelper { fun parseDate(date: String): DateTime? = try { DateTimeFormat.forPattern(SSConstants.SS_DATE_FORMAT) ...
Add method to return today's date formatted
Add method to return today's date formatted
Kotlin
mit
Adventech/sabbath-school-android-2,Adventech/sabbath-school-android-2,Adventech/sabbath-school-android-2
3b81a962b1c80b5a1e76383a5f649913163e6e95
conductor/src/main/java/com/bluelinelabs/conductor/Conductor.kt
conductor/src/main/java/com/bluelinelabs/conductor/Conductor.kt
@file:JvmName("Conductor") package com.bluelinelabs.conductor import android.app.Activity import android.os.Bundle import android.view.ViewGroup import androidx.annotation.UiThread import com.bluelinelabs.conductor.internal.LifecycleHandler import com.bluelinelabs.conductor.internal.ensureMainThread /** * Conducto...
package com.bluelinelabs.conductor import android.app.Activity import android.os.Bundle import android.view.ViewGroup import androidx.annotation.UiThread import com.bluelinelabs.conductor.internal.LifecycleHandler import com.bluelinelabs.conductor.internal.ensureMainThread /** * Conductor will create a [Router] that...
Revert attachRouter as an extension
Revert attachRouter as an extension
Kotlin
apache-2.0
bluelinelabs/Conductor,bluelinelabs/Conductor
8dad899d78f4b1c9473dad81998533d9c304f6e0
sample-kotlin/src/main/kotlin/com/hannesdorfmann/mosby/sample/kotlin/HeroesPresenter.kt
sample-kotlin/src/main/kotlin/com/hannesdorfmann/mosby/sample/kotlin/HeroesPresenter.kt
package com.hannesdorfmann.mosby.sample.kotlin import android.util.Log import com.hannesdorfmann.mosby.mvp.MvpBasePresenter import com.hannesdorfmann.mosby.sample.kotlin.model.AsyncHeroesTask /** * Presenter that loads list of heroes * * @author Hannes Dorfmann */ public class HeroesPresenter : MvpBasePresenter<H...
package com.hannesdorfmann.mosby.sample.kotlin import android.util.Log import com.hannesdorfmann.mosby.mvp.MvpBasePresenter import com.hannesdorfmann.mosby.sample.kotlin.model.AsyncHeroesTask /** * Presenter that loads list of heroes * * @author Hannes Dorfmann */ public class HeroesPresenter : MvpBasePresenter<H...
Use kotlin properties instead of getter method
Use kotlin properties instead of getter method
Kotlin
apache-2.0
vjames19/mosby,vjames19/mosby,lenguyenthanh/mosby,vjames19/mosby,sockeqwe/mosby,hanshou361248909/mosby,lenguyenthanh/mosby,sockeqwe/mosby,hanshou361248909/mosby
66762d40b73336408b19ee0f91e1702787ff2748
src/org/rust/lang/icons/RustIconProvider.kt
src/org/rust/lang/icons/RustIconProvider.kt
package org.rust.lang.icons import com.intellij.ide.IconProvider import com.intellij.psi.PsiElement import org.rust.lang.core.psi.RustStructDeclField import org.rust.lang.core.psi.impl.* import javax.swing.Icon class RustIconProvider: IconProvider() { override fun getIcon(element: PsiElement, flags: Int): Icon? {...
package org.rust.lang.icons import com.intellij.ide.IconProvider import com.intellij.openapi.util.Iconable import com.intellij.psi.PsiElement import com.intellij.psi.util.PsiUtil import com.intellij.ui.RowIcon import com.intellij.util.PlatformIcons import com.intellij.util.VisibilityIcons import com.intellij.util.ui.E...
Structure View: Add visibility icons to struct fields
Structure View: Add visibility icons to struct fields
Kotlin
mit
ThoseGrapefruits/intellij-rust,d9n/intellij-rust,Undin/intellij-rust,intellij-rust/intellij-rust,Turbo87/intellij-rust,Undin/intellij-rust,ThoseGrapefruits/intellij-rust,d9n/intellij-rust,Undin/intellij-rust,d9n/intellij-rust,intellij-rust/intellij-rust,himikof/intellij-rust,himikof/intellij-rust,himikof/intellij-rust,...
2dfc6bd89bb2d9b0e69343b4f5374b2ef8a06d10
src/main/java/org/purescript/psi/PSIdentifierImpl.kt
src/main/java/org/purescript/psi/PSIdentifierImpl.kt
package org.purescript.psi import com.intellij.lang.ASTNode import com.intellij.psi.PsiElement import com.intellij.psi.PsiNamedElement // PsiNamedElement is only here so that the editor can find the the // Identifier when it is in a parameter class PSIdentifierImpl(node: ASTNode) : PSPsiElement(node), ContainsIdentif...
package org.purescript.psi import com.intellij.lang.ASTNode import com.intellij.psi.PsiElement import com.intellij.psi.PsiNamedElement // PsiNamedElement is only here so that the editor can find the the // Identifier when it is in a parameter class PSIdentifierImpl(node: ASTNode) : PSPsiElement(node), ContainsIdentif...
Convert short methods to expression syntax
Convert short methods to expression syntax
Kotlin
bsd-3-clause
intellij-purescript/intellij-purescript,intellij-purescript/intellij-purescript
0cf052b1db678275eb4e7cbfdbde5f263a05a69b
src/main/kotlin/flavor/pie/kludge/optionals.kt
src/main/kotlin/flavor/pie/kludge/optionals.kt
package flavor.pie.kludge import java.util.Optional operator fun <T> Optional<T>?.not(): T? = this.unwrap() val <T: Any> T?.optional: Optional<T> get() = Optional.ofNullable(this) fun <T> Optional<T>?.unwrap(): T? = this?.orElse(null)
package flavor.pie.kludge import java.util.Optional operator fun <T> Optional<T>?.not(): T? = this.unwrap() fun <T: Any> T?.optional(): Optional<T> = Optional.ofNullable(this) fun <T> Optional<T>?.unwrap(): T? = this?.orElse(null)
Convert `optional` into a function
Convert `optional` into a function
Kotlin
mit
pie-flavor/Kludge
939ccaee44a3b6e724991c9d800a0d846a4df304
espresso/src/androidTest/java/com/elpassion/android/commons/espresso/TextInputEditTextHasHintAssertionTest.kt
espresso/src/androidTest/java/com/elpassion/android/commons/espresso/TextInputEditTextHasHintAssertionTest.kt
package com.elpassion.android.commons.espresso import android.os.Bundle import android.support.design.widget.TextInputEditText import android.support.design.widget.TextInputLayout import android.support.test.rule.ActivityTestRule import android.widget.FrameLayout import org.junit.Rule import org.junit.Test class Text...
package com.elpassion.android.commons.espresso import android.os.Bundle import android.support.design.widget.TextInputEditText import android.support.design.widget.TextInputLayout import android.support.test.rule.ActivityTestRule import android.widget.FrameLayout import junit.framework.AssertionFailedError import org....
Add test checking if assertion fails to match.
Add test checking if assertion fails to match.
Kotlin
apache-2.0
elpassion/android-commons,elpassion/android-commons,elpassion/android-commons
c671f3f04668b6b1fea4bc2836f966975be20289
aztec/src/main/kotlin/org/wordpress/aztec/spans/IAztecAttributedSpan.kt
aztec/src/main/kotlin/org/wordpress/aztec/spans/IAztecAttributedSpan.kt
package org.wordpress.aztec.spans import android.text.Editable import org.wordpress.aztec.AztecAttributes import org.wordpress.aztec.source.InlineCssStyleFormatter interface IAztecAttributedSpan { var attributes: AztecAttributes /** * Parses and applies the HTML 'style' attribute. * @param output A...
package org.wordpress.aztec.spans import android.text.Editable import org.wordpress.aztec.AztecAttributes import org.wordpress.aztec.source.InlineCssStyleFormatter interface IAztecAttributedSpan { var attributes: AztecAttributes /** * Parses and applies the HTML 'style' attribute. * @param output A...
Use a declared constant instead of "style" literal
Use a declared constant instead of "style" literal
Kotlin
mpl-2.0
wordpress-mobile/AztecEditor-Android,wordpress-mobile/AztecEditor-Android,wordpress-mobile/AztecEditor-Android
0c989d58e64e12a9d8caa3df22426ac284eac676
python/tools/src/com/jetbrains/python/tools/PackPythonSdkLibsForStubs.kt
python/tools/src/com/jetbrains/python/tools/PackPythonSdkLibsForStubs.kt
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.jetbrains.python.tools import com.intellij.execution.configurations.GeneralCommandLine import com.intellij.execution.process.CapturingProcessHandler import com.jetbra...
// 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.python.tools import com.intellij.execution.configurations.GeneralCommandLine import com.intellij.execution.process.CapturingProcessHandler import com.jetbra...
Introduce separate env variable for packed python sdk libs
Introduce separate env variable for packed python sdk libs GitOrigin-RevId: c9acf7d070ee6040f8ad6797ecef16cb715f6b2c
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...
2549b05b980d32bd02236ee1f23b0d3b4c2c1108
vito/ktx/src/main/java/com/facebook/fresco/vito/ktx/ViewExtensions.kt
vito/ktx/src/main/java/com/facebook/fresco/vito/ktx/ViewExtensions.kt
/* * 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. */ package com.facebook.fresco.vito.ktx import android.net.Uri import android.view.View import com.facebook.fresco.vito.options.Image...
/* * 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. */ package com.facebook.fresco.vito.ktx import android.net.Uri import android.view.View import com.facebook.fresco.vito.listener.Imag...
Add Extension Function That Supports ImageListener
Add Extension Function That Supports ImageListener Reviewed By: oprisnik Differential Revision: D30534784 fbshipit-source-id: 90c539c5ab8a81811bb36259bd873468b8188a48
Kotlin
mit
facebook/fresco,facebook/fresco,facebook/fresco,facebook/fresco,facebook/fresco,facebook/fresco
6cc392ce042716960399c5be4f60f6196dc802e5
app/src/main/kotlin/com/kamer/orny/data/room/entity/AppSettingsEntity.kt
app/src/main/kotlin/com/kamer/orny/data/room/entity/AppSettingsEntity.kt
package com.kamer.orny.data.room.entity import android.arch.persistence.room.ColumnInfo import android.arch.persistence.room.Entity import android.arch.persistence.room.PrimaryKey @Entity(tableName = "app_settings") data class AppSettingsEntity( @PrimaryKey val id: Int = 0, @ColumnInfo(name = "defaul...
package com.kamer.orny.data.room.entity import android.arch.persistence.room.ColumnInfo import android.arch.persistence.room.Entity import android.arch.persistence.room.ForeignKey import android.arch.persistence.room.PrimaryKey @Entity( tableName = "app_settings", foreignKeys = arrayOf( ...
Add app settings foreign key
Add app settings foreign key
Kotlin
apache-2.0
kamerok/Orny,kamerok/Orny
060c3ff422ab9700d9c53847427ae30a5175cf67
app/src/main/java/com/hotpodata/twistris/utils/GridOfColorsBlockDrawer.kt
app/src/main/java/com/hotpodata/twistris/utils/GridOfColorsBlockDrawer.kt
package com.hotpodata.twistris.utils import android.graphics.Canvas import com.hotpodata.blocklib.view.GridBinderView /** * Created by jdrotos on 1/2/16. */ object GridOfColorsBlockDrawer : GridBinderView.RedBlockDrawer() { override fun drawBlock(canvas: Canvas, data: Any) { if (data is Int) { ...
package com.hotpodata.twistris.utils import android.graphics.Canvas import android.graphics.RectF import com.hotpodata.blocklib.view.GridBinderView /** * Created by jdrotos on 1/2/16. */ object GridOfColorsBlockDrawer : GridBinderView.RedBlockDrawer() { override fun drawBlock(canvas: Canvas, blockCoords: RectF,...
Apply blocklib updates to prevent hardware layer badness
Apply blocklib updates to prevent hardware layer badness
Kotlin
apache-2.0
hotpodata/Twistris,hotpodata/Twistris
9df721d1586b06ce59321a15dadb7a4f0a65bce1
app/src/main/java/eu/kanade/tachiyomi/data/preference/PreferenceValues.kt
app/src/main/java/eu/kanade/tachiyomi/data/preference/PreferenceValues.kt
package eu.kanade.tachiyomi.data.preference import eu.kanade.tachiyomi.R const val UNMETERED_NETWORK = "wifi" const val CHARGING = "ac" /** * This class stores the values for the preferences in the application. */ object PreferenceValues { /* ktlint-disable experimental:enum-entry-name-case */ // Keys ar...
package eu.kanade.tachiyomi.data.preference import eu.kanade.tachiyomi.R const val UNMETERED_NETWORK = "wifi" const val CHARGING = "ac" /** * This class stores the values for the preferences in the application. */ object PreferenceValues { /* ktlint-disable experimental:enum-entry-name-case */ // Keys ar...
Add DARK_BLUE enum value back to avoid crash
Add DARK_BLUE enum value back to avoid crash
Kotlin
apache-2.0
inorichi/tachiyomi,inorichi/mangafeed,inorichi/tachiyomi,inorichi/mangafeed,CarlosEsco/tachiyomi
b3be7b3c51c7bc63697aea9100ff65823b425a5c
src/main/kotlin/com/elpassion/intelijidea/task/edit/MFBeforeRunTaskDialog.kt
src/main/kotlin/com/elpassion/intelijidea/task/edit/MFBeforeRunTaskDialog.kt
package com.elpassion.intelijidea.task.edit import com.elpassion.intelijidea.task.MFTaskData import com.intellij.openapi.project.Project import com.intellij.openapi.ui.DialogWrapper import com.intellij.openapi.ui.TextFieldWithBrowseButton import com.intellij.openapi.ui.ValidationInfo import javax.swing.JComponent impo...
package com.elpassion.intelijidea.task.edit import com.elpassion.intelijidea.task.MFTaskData import com.intellij.openapi.project.Project import com.intellij.openapi.ui.DialogWrapper import com.intellij.openapi.ui.TextFieldWithBrowseButton import com.intellij.openapi.ui.ValidationInfo import javax.swing.JComponent impo...
Convert methods bodies to expression
[Refactoring] Convert methods bodies to expression
Kotlin
apache-2.0
elpassion/mainframer-intellij-plugin,elpassion/mainframer-intellij-plugin,elpassion/mainframer-intellij-plugin
6e810d0540c713003cbc44bb0d57b0b5e2ecb05b
applications/billing/src/main/kotlin/com/example/billing/Configuration.kt
applications/billing/src/main/kotlin/com/example/billing/Configuration.kt
package com.example.billing import com.example.billing.reocurringPayments.Service import com.example.payments.Gateway import com.example.payments.RecurlyGateway import org.springframework.context.annotation.Bean import org.springframework.context.annotation.Configuration @Configuration // This class must not be final...
package com.example.billing import com.example.billing.reocurringPayments.Service import com.example.payments.RecurlyGateway import org.springframework.context.annotation.Bean import org.springframework.context.annotation.Configuration @Configuration // This class must not be final (final is the default in Kotlin) //...
Leverage the type inference in Kotlin to eliminate some typing
Leverage the type inference in Kotlin to eliminate some typing
Kotlin
mit
mikegehard/user-management-evolution-kotlin,mikegehard/user-management-evolution-kotlin,mikegehard/user-management-evolution-kotlin
5069d8dee6bfda42f9841112048b276d761ebec6
app/src/main/java/eu/kanade/tachiyomi/data/preference/EmptyPreferenceDataStore.kt
app/src/main/java/eu/kanade/tachiyomi/data/preference/EmptyPreferenceDataStore.kt
package eu.kanade.tachiyomi.data.preference import androidx.preference.PreferenceDataStore class EmptyPreferenceDataStore : PreferenceDataStore() { override fun getBoolean(key: String?, defValue: Boolean): Boolean { return false } override fun putBoolean(key: String?, value: Boolean) { } ...
package eu.kanade.tachiyomi.data.preference import androidx.preference.PreferenceDataStore class EmptyPreferenceDataStore : PreferenceDataStore() { override fun getBoolean(key: String?, defValue: Boolean): Boolean { return false } override fun putBoolean(key: String?, value: Boolean) { } ...
Fix MultiSelectListPreference crash in extensions
Fix MultiSelectListPreference crash in extensions
Kotlin
apache-2.0
CarlosEsco/tachiyomi,inorichi/mangafeed,inorichi/tachiyomi,inorichi/tachiyomi,inorichi/mangafeed
eb2cc64f5620d51bb571a93e2ba5bb5252215cc7
src/main/kotlin/com/ridi/books/helper/text/TimeHelper.kt
src/main/kotlin/com/ridi/books/helper/text/TimeHelper.kt
package com.ridi.books.helper.text import java.util.Calendar fun Long.elapsedTimeString(): String { var elapsed = System.currentTimeMillis() - this val second = 1000 val minute = second * 60 val hour = minute * 60 val day = (hour * 24).toLong() val week = day * 7 val suffix: String if...
package com.ridi.books.helper.text fun Long.elapsedTimeString(tooMuchElapsed: String): String { var elapsed = System.currentTimeMillis() - this val second = 1000 val minute = second * 60 val hour = minute * 60 val day = (hour * 24).toLong() val week = day * 7 val suffix: String if (ela...
Update elapsedTimeString - add ‘tooMuchElasped’ parameter that returned if more than 3 weeks have elapsed
Update elapsedTimeString - add ‘tooMuchElasped’ parameter that returned if more than 3 weeks have elapsed
Kotlin
mit
ridibooks/rbhelper-android,ridibooks/rbhelper-android
d4b13ba8b0c21e1a39cc558ed7bdb12473f6b09d
plugins-dev/src/main/java/org/runestar/client/plugins/dev/BoundingBoxTest.kt
plugins-dev/src/main/java/org/runestar/client/plugins/dev/BoundingBoxTest.kt
package org.runestar.client.plugins.dev import com.google.common.collect.Iterables import org.runestar.client.game.api.live.LiveCanvas import org.runestar.client.game.api.live.Npcs import org.runestar.client.game.api.live.Players import org.runestar.client.game.api.live.Projectiles import org.runestar.client.plugins.s...
package org.runestar.client.plugins.dev import com.google.common.collect.Iterables import org.runestar.client.game.api.live.* import org.runestar.client.plugins.spi.PluginSettings import org.runestar.client.utils.DisposablePlugin import java.awt.Color class BoundingBoxTest : DisposablePlugin<PluginSettings>() { ...
Update bounding boxes dev plugin for all models
Update bounding boxes dev plugin for all models
Kotlin
mit
RuneSuite/client,RuneSuite/client
b61cf5051062e0772c0e84b23e4bcb82212a695c
plugin-dotnet-agent/src/main/kotlin/jetbrains/buildServer/agent/EnvironmentImpl.kt
plugin-dotnet-agent/src/main/kotlin/jetbrains/buildServer/agent/EnvironmentImpl.kt
package jetbrains.buildServer.agent import jetbrains.buildServer.agent.impl.OSTypeDetector import jetbrains.buildServer.util.OSType import jetbrains.buildServer.util.StringUtil import java.io.File class EnvironmentImpl(private val _fileSystemService: FileSystemService) : Environment { override fun tryGetVariable(...
package jetbrains.buildServer.agent import jetbrains.buildServer.agent.impl.OSTypeDetector import jetbrains.buildServer.util.OSType import jetbrains.buildServer.util.StringUtil import java.io.File class EnvironmentImpl(private val _fileSystemService: FileSystemService) : Environment { override fun tryGetVariable(...
Make .NET CLI more robust in finding dotnet core installation
Make .NET CLI more robust in finding dotnet core installation Issue: TW-59135
Kotlin
apache-2.0
JetBrains/teamcity-dnx-plugin
8c71b48ad297ba307a29f203e0167b366ff68f56
processor/src/main/kotlin/io/michaelrocks/lightsaber/processor/graph/CycleSearcher.kt
processor/src/main/kotlin/io/michaelrocks/lightsaber/processor/graph/CycleSearcher.kt
/* * Copyright 2016 Michael Rozumyanskiy * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
/* * Copyright 2016 Michael Rozumyanskiy * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
Revert to a working cycle search algorithm
Revert to a working cycle search algorithm
Kotlin
apache-2.0
MichaelRocks/lightsaber,MichaelRocks/lightsaber
9ec4906b5fb75cf162d0ab1624f364070c4c63ae
src/main/kotlin/com/visiolink/app/Extensions.kt
src/main/kotlin/com/visiolink/app/Extensions.kt
package com.visiolink.app import groovy.lang.Closure import java.io.File import java.text.SimpleDateFormat import java.util.* import java.util.concurrent.TimeUnit fun String.execute(dir: File? = null): String { val cmdArgs = split(" ") val process = ProcessBuilder(cmdArgs) .directory(dir) ...
package com.visiolink.app import groovy.lang.Closure import java.io.File import java.text.SimpleDateFormat import java.util.* import java.util.concurrent.TimeUnit internal fun String.execute(dir: File? = null): String { val cmdArgs = split(" ") val process = ProcessBuilder(cmdArgs) .directory(dir...
Make String extension functions internal
Make String extension functions internal
Kotlin
apache-2.0
visiolink-android-dev/visiolink-app-plugin
547358e198e0a9e820aa5d5ee0c6792d796c04f5
shopping-cart/src/main/java/com/handstandsam/shoppingapp/cart/InMemoryShoppingCartDao.kt
shopping-cart/src/main/java/com/handstandsam/shoppingapp/cart/InMemoryShoppingCartDao.kt
package com.handstandsam.shoppingapp.cart import com.handstandsam.shoppingapp.models.ItemWithQuantity import kotlinx.coroutines.channels.ConflatedBroadcastChannel import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.asFlow /** * In memory implementation of our [ShoppingCartDao] */ class InMemoryShoppi...
package com.handstandsam.shoppingapp.cart import com.handstandsam.shoppingapp.models.ItemWithQuantity import kotlinx.coroutines.channels.ConflatedBroadcastChannel import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.asFlow /** * In memory implementation of our [ShoppingCartDao] */ class InMemoryShoppi...
Make it more clear how we are sending updates to the channel.
Make it more clear how we are sending updates to the channel.
Kotlin
apache-2.0
handstandsam/ShoppingApp,handstandsam/ShoppingApp,handstandsam/ShoppingApp
b32f2f735f767dbf6751c017aed460b7fa07939d
src/test/kotlin/org/rust/ide/annotator/RsTraitMethodImplLineMarkerProviderTest.kt
src/test/kotlin/org/rust/ide/annotator/RsTraitMethodImplLineMarkerProviderTest.kt
/* * Use of this source code is governed by the MIT license that can be * found in the LICENSE file. */ package org.rust.ide.annotator import org.rust.ide.lineMarkers.RsLineMarkerProviderTestBase /** * Tests for Trait Method Implementation Line Marker */ class RsTraitMethodImplLineMarkerProviderTest : RsLineMar...
/* * Use of this source code is governed by the MIT license that can be * found in the LICENSE file. */ package org.rust.ide.annotator import org.rust.ide.lineMarkers.RsLineMarkerProviderTestBase /** * Tests for Trait Method Implementation Line Marker */ class RsTraitMethodImplLineMarkerProviderTest : RsLineMar...
Extend line marker related tests for "const" and "type"
T: Extend line marker related tests for "const" and "type"
Kotlin
mit
anton-okolelov/intellij-rust,intellij-rust/intellij-rust,Undin/intellij-rust,anton-okolelov/intellij-rust,intellij-rust/intellij-rust,anton-okolelov/intellij-rust,intellij-rust/intellij-rust,intellij-rust/intellij-rust,anton-okolelov/intellij-rust,Undin/intellij-rust,anton-okolelov/intellij-rust,Undin/intellij-rust,Und...
53514a567932042adfb916e3f86bedc45f23cf7c
app/src/main/java/jp/toastkid/yobidashi/planning_poker/Adapter.kt
app/src/main/java/jp/toastkid/yobidashi/planning_poker/Adapter.kt
package jp.toastkid.yobidashi.planning_poker import android.databinding.DataBindingUtil import android.support.v7.widget.RecyclerView import android.view.LayoutInflater import android.view.ViewGroup import jp.toastkid.yobidashi.R import jp.toastkid.yobidashi.databinding.CardItemBinding /** * RecyclerView's adapter....
package jp.toastkid.yobidashi.planning_poker import android.databinding.DataBindingUtil import android.support.v7.widget.RecyclerView import android.view.LayoutInflater import android.view.ViewGroup import jp.toastkid.yobidashi.R import jp.toastkid.yobidashi.databinding.CardItemBinding /** * RecyclerView's adapter....
Clean up Planning Poker's adapter.
Clean up Planning Poker's adapter.
Kotlin
epl-1.0
toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Jitte,toastkidjp/Yobidashi_kt
12a079f3ed576b22766ed09da0516eaea2e6e67e
migration/src/main/java/br/com/bloder/migration/Migration.kt
migration/src/main/java/br/com/bloder/migration/Migration.kt
package br.com.bloder.migration import br.com.bloder.migration.internal.InternalMigration /** * Class to abstract realm migration */ class Migration : InternalMigration { /** * Represents what will change in a migration version */ override fun up() {} /** * Represents what will be disca...
package br.com.bloder.migration import br.com.bloder.migration.internal.InternalMigration import io.realm.DynamicRealm /** * Class to abstract realm migration */ open class Migration : InternalMigration { /** * Represents what will change in a migration version */ override fun up(realm: DynamicRe...
Set dynamic realm object as param in migration
Set dynamic realm object as param in migration
Kotlin
mit
ingresso-rapido-mobile/better-migrations,ingresso-rapido-mobile/better-migrations
3e086f6b499fa8f0e319e88344f1f906d80c6632
gradle/init-scripts/build-scan.init.gradle.kts
gradle/init-scripts/build-scan.init.gradle.kts
/* * This is an init script for internal usage at Gradle Inc. */ if (!gradle.startParameter.systemPropertiesArgs.containsKey("disableScanPlugin")) { rootProject { pluginManager.withPlugin("com.gradle.build-scan") { extensions["buildScan"].withGroovyBuilder { if (gradle.startPar...
/* * This is an init script for internal usage at Gradle Inc. */ val tasksWithBuildScansOnFailure = listOf("verifyTestFilesCleanup", "killExistingProcessesStartedByGradle", "tagBuild").map { listOf(it)} if (!gradle.startParameter.systemPropertiesArgs.containsKey("disableScanPlugin")) { rootProject { plug...
Create build scan only when tagging fails
Create build scan only when tagging fails
Kotlin
apache-2.0
robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,robinverduijn/gradle,gradle/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/...
d49c234e029b5b1b48d5b141f4c95909169e0c69
app/src/main/java/com/veyndan/paper/reddit/api/reddit/network/interceptor/UserAgentInterceptor.kt
app/src/main/java/com/veyndan/paper/reddit/api/reddit/network/interceptor/UserAgentInterceptor.kt
package com.veyndan.paper.reddit.api.reddit.network.interceptor import okhttp3.Interceptor import okhttp3.Request import okhttp3.Response class UserAgentInterceptor(userAgentHeaderValue: String) : Interceptor { companion object { private const val USER_AGENT_HEADER_NAME = "User-Agent" } private...
package com.veyndan.paper.reddit.api.reddit.network.interceptor import okhttp3.Interceptor import okhttp3.Request import okhttp3.Response class UserAgentInterceptor(private val userAgentHeaderValue: String) : Interceptor { companion object { private const val USER_AGENT_HEADER_NAME = "User-Agent" } ...
Use Kotlin nullability type system
Use Kotlin nullability type system
Kotlin
mit
veyndan/reddit-client,veyndan/paper-for-reddit,veyndan/paper-for-reddit
fcfbec9a9765be84b756b7cc42ba1bdb09323439
build.gradle.kts
build.gradle.kts
plugins { id("com.neva.fork") id("com.cognifide.aem.common") } description = "Example" defaultTasks("develop") aem { tasks { sequence("develop", { description = "Builds and deploys AEM application, cleans environment then runs integration and functional tests" }) { ...
plugins { id("com.neva.fork") id("com.cognifide.aem.common") } description = "Example" defaultTasks("develop") aem { tasks { sequence("develop", { description = "Builds and deploys AEM application, cleans environment then runs integration, functional and performance tests" }) {...
Update develop task description to mention performance testing
Update develop task description to mention performance testing
Kotlin
apache-2.0
Cognifide/gradle-aem-example,Cognifide/gradle-aem-example,Cognifide/gradle-aem-example,Cognifide/gradle-aem-example,Cognifide/gradle-aem-example
89522b8983cc12f7e033eb7f3a4f7bbc10b9d92b
src/main/java/org/purescript/psi/declaration/PSFixityDeclaration.kt
src/main/java/org/purescript/psi/declaration/PSFixityDeclaration.kt
package org.purescript.psi.declaration import com.intellij.lang.ASTNode import com.intellij.psi.PsiElement import com.intellij.psi.PsiNameIdentifierOwner import org.purescript.psi.PSPsiElement import org.purescript.psi.name.PSOperatorName class PSFixityDeclaration(node: ASTNode) : PSPsiElement(node), PsiNameIdentifie...
package org.purescript.psi.declaration import com.intellij.lang.ASTNode import com.intellij.psi.PsiElement import com.intellij.psi.PsiNameIdentifierOwner import org.purescript.psi.PSPsiElement import org.purescript.psi.name.PSOperatorName class PSFixityDeclaration(node: ASTNode) : PSPsiElement(node), PsiNameIdentifie...
Fix navigation location for fixity declaration
Fix navigation location for fixity declaration
Kotlin
bsd-3-clause
intellij-purescript/intellij-purescript,intellij-purescript/intellij-purescript
ad022f8bb1b8d43da53cc828be3e7ed153a3437a
wordpress-comments/src/main/java/org/wordpress/aztec/plugins/wpcomments/spans/GutenbergCommentSpan.kt
wordpress-comments/src/main/java/org/wordpress/aztec/plugins/wpcomments/spans/GutenbergCommentSpan.kt
package org.wordpress.aztec.plugins.wpcomments.spans import android.text.TextPaint import android.text.style.CharacterStyle class GutenbergCommentSpan(var content: String) : CharacterStyle() { override fun updateDrawState(tp: TextPaint) { } }
package org.wordpress.aztec.plugins.wpcomments.spans import android.text.Layout import org.wordpress.aztec.AztecAttributes import org.wordpress.aztec.spans.IAztecBlockSpan class GutenbergCommentSpan( override val startTag: String, override var nestingLevel: Int, override var attributes: AztecA...
Make Gutenberg comment span a block span to properly handle newlines
Make Gutenberg comment span a block span to properly handle newlines
Kotlin
mpl-2.0
wordpress-mobile/AztecEditor-Android,wordpress-mobile/AztecEditor-Android,wordpress-mobile/AztecEditor-Android
80e3398a7aea29d604c4ed6f53423e7a82629d50
espresso/src/main/java/com/elpassion/android/commons/espresso/matchers/TextInputEditTextHintMatcher.kt
espresso/src/main/java/com/elpassion/android/commons/espresso/matchers/TextInputEditTextHintMatcher.kt
package com.elpassion.android.commons.espresso.matchers import android.support.design.widget.TextInputEditText import android.support.design.widget.TextInputLayout import android.support.test.espresso.matcher.BoundedMatcher import android.view.View import org.hamcrest.Description class TextInputEditTextHintMatcher(pr...
package com.elpassion.android.commons.espresso.matchers import android.support.annotation.StringRes import android.support.design.widget.TextInputEditText import android.support.design.widget.TextInputLayout import android.support.test.espresso.matcher.BoundedMatcher import android.view.View import org.hamcrest.Descri...
Apply CR: apply consistent naming
Apply CR: apply consistent naming
Kotlin
apache-2.0
elpassion/android-commons,elpassion/android-commons,elpassion/android-commons
6eca43ca2666bc35c9b38cd036df25fcd724464a
rxjava-test/src/test/java/com/elpassion/android/commons/rxjavatest/TestSubscriberExtensionTest.kt
rxjava-test/src/test/java/com/elpassion/android/commons/rxjavatest/TestSubscriberExtensionTest.kt
package com.elpassion.android.commons.rxjavatest import org.junit.Test import rx.Observable class TestSubscriberExtensionTest { @Test fun shouldMultipleValuesAssertionSuccessful() { Observable.just(2, 3, 4).test().assertValuesThat { it > 0 } } @Test(expected = AssertionError::class) fun...
package com.elpassion.android.commons.rxjavatest import org.junit.Test import rx.Observable class TestSubscriberExtensionTest { @Test fun shouldMultipleValuesAssertionSuccessful() { Observable.just(2, 3, 4).test().assertValuesThat { it > 0 } } @Test(expected = AssertionError::class) fun...
Add failing case for assertValueThat
Add failing case for assertValueThat
Kotlin
apache-2.0
elpassion/android-commons,elpassion/android-commons,elpassion/android-commons
0a8190aa2845190ec67806abbf24be59efff8529
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 com.vimeo.networking2.adapters.VimeoCall import retrofit2.http.Field import retrofit2.http.FormUrlEncoded import retrofit2.http.Header import retrofit2.http.POST /** * All the authentication endpoints. */ interface AuthService {...
package com.vimeo.networking2.requests import com.vimeo.networking2.VimeoAccount import com.vimeo.networking2.adapters.VimeoCall import retrofit2.Call import retrofit2.http.Field import retrofit2.http.FormUrlEncoded import retrofit2.http.Header import retrofit2.http.POST /** * All the authentication endpoints. */ i...
Add google login method to service
Add google login method to service
Kotlin
mit
vimeo/vimeo-networking-java,vimeo/vimeo-networking-java,vimeo/vimeo-networking-java
d67ef8a2b848b0a119ab466e85177f22b8d5773e
src/main/kotlin/edu/csh/chase/sprint/json/JsonBase.kt
src/main/kotlin/edu/csh/chase/sprint/json/JsonBase.kt
package edu.csh.chase.sprint.json abstract class JsonBase : JsonSerializable { abstract val size: Int }
package edu.csh.chase.sprint.json abstract class JsonBase : JsonSerializable { abstract val size: Int fun traverse(compoundKey: String, delim: String = ":"): Any? { val key = compoundKey.splitBy(delim).iterator() } fun traverse(compoundKey: String, default: Any, delim: String = ":"): Any { ...
Move work on the traversal of JsonStructs
Move work on the traversal of JsonStructs
Kotlin
apache-2.0
chaseberry/Sprint
159239da12101124ee261e8edd47ba7e4e5a8419
TachiServer/DesktopUI/src/main/java/xyz/nulldev/ts/dui/DUIView.kt
TachiServer/DesktopUI/src/main/java/xyz/nulldev/ts/dui/DUIView.kt
package xyz.nulldev.ts.dui import com.github.salomonbrys.kodein.conf.KodeinGlobalAware import com.github.salomonbrys.kodein.instance import com.sun.javafx.webkit.WebConsoleListener import tornadofx.View import tornadofx.stackpane import tornadofx.webview import xyz.nulldev.ts.config.ConfigManager import xyz.nulldev.ts...
package xyz.nulldev.ts.dui import com.github.salomonbrys.kodein.conf.KodeinGlobalAware import com.github.salomonbrys.kodein.instance import tornadofx.View import tornadofx.stackpane import tornadofx.webview import xyz.nulldev.ts.config.ConfigManager import xyz.nulldev.ts.config.ServerConfig class DUIView : View(), Ko...
Remove invalid module access in webview test Fix line endings in gradlew.bat
Remove invalid module access in webview test Fix line endings in gradlew.bat
Kotlin
apache-2.0
TachiWeb/TachiWeb-Server,TachiWeb/TachiWeb-Server,TachiWeb/TachiWeb-Server,TachiWeb/TachiWeb-Server,TachiWeb/TachiWeb-Server
45362894f0b6e23505546ecc482cf2a326ae61ac
localprops/src/main/kotlin/pink/madis/gradle/localprops/plugin.kt
localprops/src/main/kotlin/pink/madis/gradle/localprops/plugin.kt
package pink.madis.gradle.localprops import org.gradle.api.Plugin import org.gradle.api.Project import java.nio.charset.StandardCharsets import java.util.Properties class LocalPropertiesPlugin : Plugin<Project> { override fun apply(project: Project) { val propsFile = project.file("local.properties") val ma...
package pink.madis.gradle.localprops import org.gradle.api.Plugin import org.gradle.api.Project import java.io.File import java.nio.charset.StandardCharsets import java.util.Properties class LocalPropertiesPlugin : Plugin<Project> { override fun apply(project: Project) { val propsFile = project.file("local.prop...
Fix file() helper usage to return null if key was not defined
Fix file() helper usage to return null if key was not defined
Kotlin
mit
madisp/localprops,madisp/localprops
c0bb6d0543c819aaee995f59e9d2f3448b67d0bd
migration/src/main/java/br/com/bloder/migration/schema/BetterSchema.kt
migration/src/main/java/br/com/bloder/migration/schema/BetterSchema.kt
package br.com.bloder.migration.schema import io.realm.DynamicRealm import io.realm.RealmObjectSchema import io.realm.RealmSchema /** * Created by bloder on 28/09/16. */ class BetterSchema { private var schema: RealmSchema? = null private val add: String = "add" fun getSchema(dynamicRealm: DynamicRe...
package br.com.bloder.migration.schema import br.com.bloder.migration.schema.SCHEMA_ACTIONS.* import io.realm.DynamicRealm import io.realm.RealmObjectSchema import io.realm.RealmSchema /** * Created by bloder on 28/09/16. */ class BetterSchema { private var schema: RealmSchema? = null fun getSchema(dyna...
Add remove function in better schema
Add remove function in better schema
Kotlin
mit
ingresso-rapido-mobile/better-migrations,ingresso-rapido-mobile/better-migrations
1eb5a08216783e4f1bda53c29bf5c83fb4590e67
detekt-cli/src/main/kotlin/io/gitlab/arturbosch/detekt/cli/DetektProgressListener.kt
detekt-cli/src/main/kotlin/io/gitlab/arturbosch/detekt/cli/DetektProgressListener.kt
package io.gitlab.arturbosch.detekt.cli import io.gitlab.arturbosch.detekt.api.Detektion import io.gitlab.arturbosch.detekt.api.FileProcessListener import org.jetbrains.kotlin.psi.KtFile /** * @author Artur Bosch */ class DetektProgressListener : FileProcessListener { override fun onStart(files: List<KtFile>) { ...
package io.gitlab.arturbosch.detekt.cli import io.gitlab.arturbosch.detekt.api.Detektion import io.gitlab.arturbosch.detekt.api.FileProcessListener import org.jetbrains.kotlin.psi.KtFile /** * @author Artur Bosch */ class DetektProgressListener : FileProcessListener { override fun onProcess(file: KtFile) { kotl...
Print the number of analyzed files at the end
Print the number of analyzed files at the end
Kotlin
apache-2.0
arturbosch/detekt,Mauin/detekt,Mauin/detekt,Mauin/detekt,Mauin/detekt,arturbosch/detekt,rock3r/detekt,arturbosch/detekt,rock3r/detekt,rock3r/detekt
8de6a906636ddeb96aa1c1aff015a165535ba325
app/src/main/kotlin/com/gdgnantes/devfest/android/util/DateExtensions.kt
app/src/main/kotlin/com/gdgnantes/devfest/android/util/DateExtensions.kt
package com.gdgnantes.devfest.android.util import java.util.* inline val Date.timeAsSeconds: Long get() = time / 1000
package com.gdgnantes.devfest.android.util import java.util.* import java.util.concurrent.TimeUnit inline val Date.timeAsSeconds: Long get() = TimeUnit.MILLISECONDS.toSeconds(time)
Use TimeUnit to convert from milliseconds to seconds
Use TimeUnit to convert from milliseconds to seconds
Kotlin
apache-2.0
GDG-Nantes/devfest-android,GDG-Nantes/devfest-android,GDG-Nantes/devfest-android,GDG-Nantes/devfest-android
ebc81c55c26df4702219cd05ba663b355a8cfc4a
.teamcity/_Self/vcsRoots/HttpsGithubComJetBrainsIdeavimPullRequests.kt
.teamcity/_Self/vcsRoots/HttpsGithubComJetBrainsIdeavimPullRequests.kt
package _Self.vcsRoots import jetbrains.buildServer.configs.kotlin.v2019_2.* import jetbrains.buildServer.configs.kotlin.v2019_2.vcs.GitVcsRoot object HttpsGithubComJetBrainsIdeavimPullRequests : GitVcsRoot({ name = "https://github.com/JetBrains/ideavim (Pull Requests)" url = "https://github.com/JetBrains/ide...
package _Self.vcsRoots import jetbrains.buildServer.configs.kotlin.v2019_2.* import jetbrains.buildServer.configs.kotlin.v2019_2.vcs.GitVcsRoot object HttpsGithubComJetBrainsIdeavimPullRequests : GitVcsRoot({ name = "IdeaVim Pull Requests" url = "git@github.com:JetBrains/ideavim.git" branchSpec = "+:refs/...
Update GitHub Pull Requests build
Update GitHub Pull Requests build
Kotlin
mit
JetBrains/ideavim,JetBrains/ideavim
37720dec9435287a134db4960206d2ee73da27db
ktor-netty/src/org/jetbrains/ktor/netty/NettyApplicationRequestContext.kt
ktor-netty/src/org/jetbrains/ktor/netty/NettyApplicationRequestContext.kt
package org.jetbrains.ktor.netty import io.netty.channel.* import io.netty.handler.codec.http.* import org.jetbrains.ktor.application.* import org.jetbrains.ktor.http.HttpHeaders import org.jetbrains.ktor.interception.* class NettyApplicationRequestContext(override val application: Application, ...
package org.jetbrains.ktor.netty import io.netty.channel.* import io.netty.handler.codec.http.* import org.jetbrains.ktor.application.* import org.jetbrains.ktor.http.HttpHeaders import org.jetbrains.ktor.interception.* class NettyApplicationRequestContext(override val application: Application, ...
Send Transfer-Encoding: chunked only if there is something to send
Send Transfer-Encoding: chunked only if there is something to send
Kotlin
apache-2.0
ktorio/ktor,ktorio/ktor,ktorio/ktor,ktorio/ktor
7b65e61cadd8da36993bb00ce767e06638ad5804
leakcanary-android-utils/src/main/java/leakcanary/internal/Handlers.kt
leakcanary-android-utils/src/main/java/leakcanary/internal/Handlers.kt
package leakcanary.internal import android.os.Handler import android.os.Looper internal val mainHandler by lazy { Handler(Looper.getMainLooper()) } internal fun checkMainThread() { check(Looper.getMainLooper().thread === Thread.currentThread()) { "Should be called from the main thread, not ${Thread.currentThre...
package leakcanary.internal import android.os.Handler import android.os.Looper internal val mainHandler by lazy { Handler(Looper.getMainLooper()) } internal val isMainThread: Boolean get() = Looper.getMainLooper().thread === Thread.currentThread() internal fun checkMainThread() { check(isMainThread) { "Should...
Add `isMainThread` extension to check thread
Add `isMainThread` extension to check thread
Kotlin
apache-2.0
square/leakcanary,square/leakcanary,square/leakcanary
60480f43b41225506edc6a0ab0b4d7dadc3a313e
src/main/kotlin/org/logout/notifications/telegram/data/events/Event.kt
src/main/kotlin/org/logout/notifications/telegram/data/events/Event.kt
package org.logout.notifications.telegram.data.events import java.util.* data class Event(val startDate: Date, val eventName: String, val performerName: String, val trackName: String) { constructor() : this(Date(), "", "", "") }
package org.logout.notifications.telegram.data.events import java.util.* data class Event(val startDate: Date, val eventName: String, val performerName: String, val trackName: String, val eventDescription: String? = null) { constructor() : this(D...
Extend the model to accomodate for descriptions
Extend the model to accomodate for descriptions
Kotlin
apache-2.0
Sulion/marco-paolo
4db91faff2e82ce4bda5b5524ffa477631470247
app/src/main/java/net/squanchy/schedule/filterschedule/TracksFilter.kt
app/src/main/java/net/squanchy/schedule/filterschedule/TracksFilter.kt
package net.squanchy.schedule.filterschedule import io.reactivex.Observable import io.reactivex.subjects.BehaviorSubject import net.squanchy.schedule.domain.view.Track import net.squanchy.service.repository.TracksRepository interface TracksFilter { fun updateSelectedTracks(newSelectedTracks: Set<Track>) val...
package net.squanchy.schedule.filterschedule import io.reactivex.Observable import io.reactivex.subjects.BehaviorSubject import net.squanchy.schedule.domain.view.Track import net.squanchy.service.repository.TracksRepository interface TracksFilter { fun updateSelectedTracks(newSelectedTracks: Set<Track>) val...
Move the subject back into the filter class
Move the subject back into the filter class It fucks up the tests to have it as a global singleton that way
Kotlin
apache-2.0
squanchy-dev/squanchy-android,squanchy-dev/squanchy-android,squanchy-dev/squanchy-android
371ba0c58cfb981c4afab9f94d54cd0289c18443
src/main/kotlin/venus/assembler/PseudoDispatcher.kt
src/main/kotlin/venus/assembler/PseudoDispatcher.kt
package venus.assembler import venus.assembler.pseudos.* // ktlint-disable no-wildcard-imports /** Describes each instruction for writing */ enum class PseudoDispatcher(val pw: PseudoWriter) { j(J), jal(JAL), jalr(JALR), jr(JR), la(LA), lb(Load), lbu(Load), lh(Load), lhu(Load), ...
package venus.assembler import venus.assembler.pseudos.* // ktlint-disable no-wildcard-imports /** Describes each instruction for writing */ enum class PseudoDispatcher(val pw: PseudoWriter) { beqz(BEQZ), bgez(BGEZ), bgt(BGT), bgtu(BGTU), bgtz(BGTZ), ble(BLE), bleu(BLEU), blez(BLEZ), ...
Add all pseudoinstructions to dispatcher
Add all pseudoinstructions to dispatcher
Kotlin
mit
kvakil/venus,kvakil/venus,kvakil/venus
0a249892a80422e2d919ae1049e2cccfb8adccbb
modules/preferences/src/appleMain/kotlin/splitties/preferences/Changes.kt
modules/preferences/src/appleMain/kotlin/splitties/preferences/Changes.kt
/* * Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license. */ package splitties.preferences import kotlinx.coroutines.ExperimentalCoroutinesApi import kotlinx.coroutines.channels.awaitClose import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.channe...
/* * Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license. */ package splitties.preferences import kotlinx.coroutines.ExperimentalCoroutinesApi import kotlinx.coroutines.channels.awaitClose import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.channe...
Use NSOperationQueue.mainQueue if on main thread
Use NSOperationQueue.mainQueue if on main thread
Kotlin
apache-2.0
LouisCAD/Splitties,LouisCAD/Splitties,LouisCAD/Splitties
9df7d58129f2f88f45c1d5c7549e4aa39c8041e3
src/main/kotlin/com/elpassion/intelijidea/util/jackson.kt
src/main/kotlin/com/elpassion/intelijidea/util/jackson.kt
package com.elpassion.intelijidea.util import com.fasterxml.jackson.databind.ObjectMapper import java.io.Serializable val objectMapper by lazy { ObjectMapper() } fun Any.toJson(): String = objectMapper.writeValueAsString(this) inline fun <reified T : Serializable> String.fromJson(): T = objectMapper.readValue(this,...
package com.elpassion.intelijidea.util import com.fasterxml.jackson.databind.ObjectMapper import java.io.Serializable val objectMapper by lazy { ObjectMapper() } fun Any.toJson(): String = objectMapper.writeValueAsString(this) inline fun <reified T : Serializable> String?.fromJson(): T? = this?.let { objectMapper.r...
Fix problem with Jackson NPE
Fix problem with Jackson NPE
Kotlin
apache-2.0
elpassion/mainframer-intellij-plugin,elpassion/mainframer-intellij-plugin,elpassion/mainframer-intellij-plugin