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
bcbd5ae1d7e87b936a2781b1680a933887339a32
src/main/java/org/purescript/parser/Parsec.kt
src/main/java/org/purescript/parser/Parsec.kt
package org.purescript.parser import com.intellij.psi.tree.IElementType abstract class Parsec { var name: String? = null get() { if (field == null) { field = calcName() } return field } private set var expectedName: HashSet<String?>? ...
package org.purescript.parser import com.intellij.psi.tree.IElementType abstract class Parsec { var name: String? = null get() { if (field == null) { field = calcName() } return field } private set var expectedName: HashSet<String?>? ...
Add sepBy method in parsers
Add sepBy method in parsers
Kotlin
bsd-3-clause
intellij-purescript/intellij-purescript,intellij-purescript/intellij-purescript
5580036cab13b477c3ac33e97bbd569bd9a2e061
exercises/phone-number/src/example/kotlin/PhoneNumber.kt
exercises/phone-number/src/example/kotlin/PhoneNumber.kt
data class PhoneNumber(private val rawNumber: String) { companion object { private val validationRegex = Regex("^1?(\\d{10})$") } private val cleanedNumber = rawNumber.replace(Regex("[^\\d]"), "") val number = validationRegex.matchEntire(cleanedNumber)?.groupValues?.last() ?: throw IllegalArgum...
data class PhoneNumber(private val rawNumber: String) { companion object { private val validationRegex = Regex("^1?([2-9]\\d{2}[2-9]\\d{6})$") } private val cleanedNumber = rawNumber.replace(Regex("[^\\d]"), "") val number = validationRegex.matchEntire(cleanedNumber)?.groupValues?.last() ?: thr...
Update phone number example for compatibility
Update phone number example for compatibility
Kotlin
mit
exercism/xkotlin,exercism/xkotlin
5d7e0a0e397339b7a587f3963eb9440c27d26715
src/main/kotlin/org/purescript/ide/formatting/PSBlock.kt
src/main/kotlin/org/purescript/ide/formatting/PSBlock.kt
package org.purescript.ide.formatting import com.intellij.formatting.* import com.intellij.formatting.Spacing.getReadOnlySpacing import com.intellij.lang.ASTNode import com.intellij.psi.TokenType.WHITE_SPACE import com.intellij.psi.formatter.common.AbstractBlock class PSBlock( node: ASTNode, wrap: Wrap?, ...
package org.purescript.ide.formatting import com.intellij.formatting.* import com.intellij.formatting.Spacing.getReadOnlySpacing import com.intellij.lang.ASTNode import com.intellij.psi.TokenType.WHITE_SPACE import com.intellij.psi.formatter.common.AbstractBlock class PSBlock( node: ASTNode, wrap: Wrap?, ...
Use spacing builder and don't have any indentation
Use spacing builder and don't have any indentation
Kotlin
bsd-3-clause
intellij-purescript/intellij-purescript,intellij-purescript/intellij-purescript
fae15bc929dc60d57c168a1904c9088f66b4549d
subprojects/dependency-management/dependency-management.gradle.kts
subprojects/dependency-management/dependency-management.gradle.kts
import org.gradle.build.ClasspathManifest import org.gradle.gradlebuild.testing.integrationtests.cleanup.EmptyDirectoryCheck import org.gradle.gradlebuild.unittestandcompile.ModuleType plugins { `java-library` } dependencies { api(project(":core")) api(project(":versionControl")) implementation(proje...
import org.gradle.build.ClasspathManifest import org.gradle.gradlebuild.testing.integrationtests.cleanup.EmptyDirectoryCheck import org.gradle.gradlebuild.unittestandcompile.ModuleType plugins { `java-library` } dependencies { api(project(":core")) api(project(":versionControl")) implementation(proje...
Change module type of dependency-management project to CORE
Change module type of dependency-management project to CORE
Kotlin
apache-2.0
blindpirate/gradle,blindpirate/gradle,lsmaira/gradle,lsmaira/gradle,blindpirate/gradle,blindpirate/gradle,lsmaira/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,lsmaira/gradle,blindpirate/gradle,gradle/gradle,lsmaira/gradle,gradle/gradle,lsmaira/gradle,gradle/gradle,robinverduijn/gradle...
10913b8b46c669b185d9ee15ec5a644a966a64b2
app/src/main/java/pl/mg6/likeornot/commons/Collections.kt
app/src/main/java/pl/mg6/likeornot/commons/Collections.kt
package pl.mg6.likeornot.commons fun <T> List<T>.batch(chunkSize: Int): List<List<T>> { if (chunkSize <= 0) { throw IllegalArgumentException("chunkSize must be greater than 0") } return mapIndexed { index, item -> IndexedItem(index, item) } .groupBy { it.index / chunkSize } ...
package pl.mg6.likeornot.commons fun <T> List<T>.batch(chunkSize: Int): List<List<T>> { if (chunkSize <= 0) { throw IllegalArgumentException("chunkSize must be greater than 0") } val list = mutableListOf<MutableList<T>>() for (i in 0 until size) { if (i % chunkSize == 0) { l...
Make batching code more performant.
Make batching code more performant.
Kotlin
apache-2.0
mg6maciej/fluffy-octo-rotary-phone,mg6maciej/fluffy-octo-rotary-phone,mg6maciej/fluffy-octo-rotary-phone
7d8ba8530b1b9be26079a2fb031f05d470d85e91
modern/src/test/kotlin/rs/emulate/modern/codec/store/JagexFileStoreTest.kt
modern/src/test/kotlin/rs/emulate/modern/codec/store/JagexFileStoreTest.kt
package rs.emulate.modern.codec.store import com.google.common.io.MoreFiles import com.google.common.jimfs.Configuration import com.google.common.jimfs.Jimfs import org.junit.jupiter.api.Assertions.assertThrows import org.junit.jupiter.api.Test import rs.emulate.modern.ModernCache import java.nio.file.Paths class Jag...
package rs.emulate.modern.codec.store import com.google.common.io.MoreFiles import com.google.common.jimfs.Configuration import com.google.common.jimfs.Jimfs import org.junit.jupiter.api.Assertions.assertThrows import org.junit.jupiter.api.Test import rs.emulate.modern.ModernCache import java.nio.file.Paths class Jag...
Remove integration test for modern cache
Remove integration test for modern cache
Kotlin
isc
Major-/Vicis
51877d252072cde33f37d0579bceba77c7625288
plugins/src/test/kotlin/org/gradle/kotlin/dsl/plugins/AbstractPluginTest.kt
plugins/src/test/kotlin/org/gradle/kotlin/dsl/plugins/AbstractPluginTest.kt
package org.gradle.kotlin.dsl.plugins import org.gradle.kotlin.dsl.fixtures.AbstractIntegrationTest import org.gradle.kotlin.dsl.fixtures.gradleRunnerFor open class AbstractPluginTest : AbstractIntegrationTest() { protected fun buildWithPlugin(vararg arguments: String) = gradleRunnerFor(projectRoot)...
package org.gradle.kotlin.dsl.plugins import org.gradle.kotlin.dsl.fixtures.AbstractIntegrationTest import org.gradle.kotlin.dsl.fixtures.gradleRunnerFor open class AbstractPluginTest : AbstractIntegrationTest() { protected fun buildWithPlugin(vararg arguments: String) = gradleRunnerFor(projectRoot)...
Remove `withPluginClasspath` from plugins test
Remove `withPluginClasspath` from plugins test As it doesn't seem to have the same behaviour on Windows and non-Windows platforms. To be improved in a subsequent commit.
Kotlin
apache-2.0
gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,robinverduijn/gradle,robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradl...
0e34c2cf9bdcb3edcedceaf9ce96d319f20b3e10
src/main/java/com/google/idea/perf/cachedvaluetracer/CachedValueStats.kt
src/main/java/com/google/idea/perf/cachedvaluetracer/CachedValueStats.kt
/* * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
/* * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
Add cached value stat documentation
Add cached value stat documentation
Kotlin
apache-2.0
google/ide-perf,google/ide-perf
9b76f146dc76e4de803ffff52218ef7870c6ac10
app/src/main/kotlin/com/github/ramonrabello/kiphy/presentation/trends/SpacingItemDecoration.kt
app/src/main/kotlin/com/github/ramonrabello/kiphy/presentation/trends/SpacingItemDecoration.kt
package com.github.ramonrabello.kiphy.presentation.trends import android.graphics.Rect import android.support.v7.widget.RecyclerView import android.view.View /** * Spacing item decoration for recycler view. */ class SpacingItemDecoration(val itemOffset:Int) : RecyclerView.ItemDecoration() { override fun getIte...
package com.github.ramonrabello.kiphy.presentation.trends import android.graphics.Rect import android.view.View import androidx.recyclerview.widget.RecyclerView /** * Spacing item decoration for recycler view. */ class SpacingItemDecoration(private val itemOffset:Int) : RecyclerView.ItemDecoration() { override...
Refactor to use AndroidX packages
Refactor to use AndroidX packages
Kotlin
apache-2.0
ramonrabello/Kiphy
358feeecbf06d156c1ba27bb737c210d5bb533a0
app/src/main/kotlin/com/github/ramonrabello/kiphy/trends/data/TrendingDataSource.kt
app/src/main/kotlin/com/github/ramonrabello/kiphy/trends/data/TrendingDataSource.kt
package com.github.ramonrabello.kiphy.trends.data import com.github.ramonrabello.kiphy.trends.TrendingApi import com.github.ramonrabello.kiphy.trends.model.TrendingResponse import io.reactivex.Single interface TrendingDataSource { fun loadTrending(): Single<TrendingResponse> class Remote(private val api: Tr...
package com.github.ramonrabello.kiphy.trends.data import com.github.ramonrabello.kiphy.trends.TrendingApi import com.github.ramonrabello.kiphy.trends.model.TrendingResponse import io.reactivex.Single interface TrendingDataSource { fun loadTrending(): Single<TrendingResponse> class Remote(private val api: Tr...
Add Local inner class as stub just to be used by repository.
Add Local inner class as stub just to be used by repository.
Kotlin
apache-2.0
ramonrabello/Kiphy
d597da7682648b02a02e1f33cd65defdc932253a
src/main/kotlin/com/ids1024/whitakerswords/SearchAdapter.kt
src/main/kotlin/com/ids1024/whitakerswords/SearchAdapter.kt
package com.ids1024.whitakerswords import java.util.ArrayList import android.widget.TextView import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.support.v7.widget.RecyclerView import android.text.SpannableStringBuilder class SearchAdapter(results: ArrayList<Spannab...
package com.ids1024.whitakerswords import java.util.ArrayList import android.widget.TextView import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.support.v7.widget.RecyclerView import android.text.SpannableStringBuilder class SearchAdapter(results: ArrayList<Spannab...
Make LayoutInflator.inflate() call match docs
Make LayoutInflator.inflate() call match docs Don't know if this changes anything...
Kotlin
mit
ids1024/whitakers-words-android,ids1024/whitakers-words-android
62ddda99ef7ce1482aba4f967b0c496d43b15fff
src/main/kotlin/com/demonwav/mcdev/platform/mixin/inspection/injector/ParameterGroup.kt
src/main/kotlin/com/demonwav/mcdev/platform/mixin/inspection/injector/ParameterGroup.kt
/* * Minecraft Dev for IntelliJ * * https://minecraftdev.org * * Copyright (c) 2017 minecraft-dev * * MIT License */ package com.demonwav.mcdev.platform.mixin.inspection.injector import com.demonwav.mcdev.util.Parameter import com.demonwav.mcdev.util.isErasureEquivalentTo import com.intellij.psi.PsiParameter ...
/* * Minecraft Dev for IntelliJ * * https://minecraftdev.org * * Copyright (c) 2017 minecraft-dev * * MIT License */ package com.demonwav.mcdev.platform.mixin.inspection.injector import com.demonwav.mcdev.util.Parameter import com.demonwav.mcdev.util.isErasureEquivalentTo import com.intellij.psi.PsiArrayType ...
Allow using array types instead of varargs for injectors
mixin: Allow using array types instead of varargs for injectors
Kotlin
mit
minecraft-dev/MinecraftDev,minecraft-dev/MinecraftDev,DemonWav/MinecraftDevIntelliJ,DemonWav/MinecraftDevIntelliJ,DemonWav/MinecraftDev,DemonWav/MinecraftDev,DemonWav/MinecraftDevIntelliJ,minecraft-dev/MinecraftDev,DemonWav/MinecraftDev,DemonWav/IntelliJBukkitSupport
22c7809614326cc8408048c39cf769fe4f3ae7d6
native/kotlinx-coroutines-core-native/src/CoroutineExceptionHandlerImpl.kt
native/kotlinx-coroutines-core-native/src/CoroutineExceptionHandlerImpl.kt
/* * Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. */ package kotlinx.coroutines import kotlin.coroutines.* internal actual fun handleCoroutineExceptionImpl(context: CoroutineContext, exception: Throwable) { // log exception println(exception) }
/* * Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. */ package kotlinx.coroutines import kotlin.coroutines.* internal actual fun handleCoroutineExceptionImpl(context: CoroutineContext, exception: Throwable) { // log exception exception.printStackTrace() ...
Print stack trace in default exception handler in K/N
Print stack trace in default exception handler in K/N
Kotlin
apache-2.0
Kotlin/kotlinx.coroutines,Kotlin/kotlinx.coroutines,Kotlin/kotlinx.coroutines,Kotlin/kotlinx.coroutines,Kotlin/kotlinx.coroutines
89bb97870875329f6ddbbd6547ac6a6ddf9af0ca
buildSrc/src/main/java/dependencies/Versions.kt
buildSrc/src/main/java/dependencies/Versions.kt
package dependencies object Versions { const val versionName = "2.6.0" const val targetSdk = 28 const val minSdk = 9 const val minSdkWithSupportLibrary = 14 internal const val kotlin = "1.2.71" internal const val junit = "4.12" internal const val robolectric = "3.8" internal const va...
package dependencies object Versions { const val versionName = "2.6.0" const val targetSdk = 28 const val minSdk = 9 const val minSdkWithSupportLibrary = 14 internal const val kotlin = "1.3.10" internal const val junit = "4.12" internal const val robolectric = "3.8" internal const va...
Update kotlin and gradle plugin
Update kotlin and gradle plugin
Kotlin
apache-2.0
chibatching/Kotpref
3159631a494f61dc56e5ea4869ef0290b11e3587
addOns/paramdigger/paramdigger.gradle.kts
addOns/paramdigger/paramdigger.gradle.kts
description = "Identify hidden, unlinked parameters. Useful for finding web cache poisoning vulnerabilities." zapAddOn { addOnName.set("Parameter Digger") zapVersion.set("2.11.1") manifest { author.set("ZAP Dev Team and Arkaprabha Chakraborty") dependencies { addOns { ...
description = "Identify hidden, unlinked parameters. Useful for finding web cache poisoning vulnerabilities." zapAddOn { addOnName.set("Parameter Digger") zapVersion.set("2.11.1") manifest { author.set("ZAP Dev Team and Arkaprabha Chakraborty") url.set("https://www.zaproxy.org/docs/desktop...
Add help docs URL in manifest
Add help docs URL in manifest Signed-off-by: ArkaprabhaChakraborty <65fde2f29008f84f69f9fe1743d393aab7e5bcbc@gmail.com>
Kotlin
apache-2.0
zaproxy/zap-extensions,denniskniep/zap-extensions,thc202/zap-extensions,psiinon/zap-extensions,zaproxy/zap-extensions,thc202/zap-extensions,zaproxy/zap-extensions,psiinon/zap-extensions,zaproxy/zap-extensions,kingthorin/zap-extensions,thc202/zap-extensions,denniskniep/zap-extensions,kingthorin/zap-extensions,psiinon/za...
f2bd513c97988a72ea875f4c9585203c32509651
app/src/main/kotlin/com/github/ramonrabello/kiphy/trends/TrendingContract.kt
app/src/main/kotlin/com/github/ramonrabello/kiphy/trends/TrendingContract.kt
package com.github.ramonrabello.kiphy.trends import com.github.ramonrabello.kiphy.data.model.Trending /** * MVP contract for Giphy Trending API. */ interface TrendingContract { /** * View for Trending contract. */ interface View { fun showProgress() fun hideProgress() fun ...
package com.github.ramonrabello.kiphy.trends import com.github.ramonrabello.kiphy.trends.model.TrendingResponse /** * MVP contract for Giphy Trending API. */ interface TrendingContract { /** * View for Trending contract. */ interface View { fun showProgress() fun hideProgress() ...
Refactor of method names for better readability.
Refactor of method names for better readability.
Kotlin
apache-2.0
ramonrabello/Kiphy
0e3240b472be0d2d99f58fc4bd1f1b0c5d790e3a
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. */ val tasksWithBuildScansOnFailure = listOf("verifyTestFilesCleanup", "killExistingProcessesStartedByGradle", "tagBuild").map { listOf(it)} if (!gradle.startParameter.systemPropertiesArgs.containsKey("disableScanPlugin")) { rootProject { plug...
/* * 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...
Use Hetzner internal build cache node
Use Hetzner internal build cache node
Kotlin
apache-2.0
gradle/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,...
5cfc7caf2183b0446ea3c9e4bbe9042c69d653ff
ktor-samples/ktor-samples-gson/src/io/ktor/samples/gson/GsonApplication.kt
ktor-samples/ktor-samples-gson/src/io/ktor/samples/gson/GsonApplication.kt
package io.ktor.samples.gson import io.ktor.application.* import io.ktor.features.* import io.ktor.gson.* import io.ktor.http.* import io.ktor.response.* import io.ktor.routing.* data class Model(val name: String, val items: List<Item>) data class Item(val key: String, val value: String) /* > curl -v --comp...
package io.ktor.samples.gson import io.ktor.application.* import io.ktor.features.* import io.ktor.gson.* import io.ktor.http.* import io.ktor.response.* import io.ktor.routing.* import java.text.* data class Model(val name: String, val items: List<Item>) data class Item(val key: String, val value: String) /* ...
Add DSL config to the gson-sample
Add DSL config to the gson-sample
Kotlin
apache-2.0
ktorio/ktor,ktorio/ktor,ktorio/ktor,ktorio/ktor
7d362774677113acce7c7b18da88dad207cc4738
test/iii_properties/_18_Properties.kt
test/iii_properties/_18_Properties.kt
package iii_properties import junit.framework.Assert import org.junit.Test as test class _18_Properties { test fun testPropertyWithCounter() { val q = PropertyExample() q.propertyWithCounter = 14 q.propertyWithCounter = 21 q.propertyWithCounter = 32 Assert.assertEquals("The...
package iii_properties import junit.framework.Assert import org.junit.Test as test class _18_Properties { test fun testPropertyWithCounter() { val q = PropertyExample() q.propertyWithCounter = 14 q.propertyWithCounter = 21 q.propertyWithCounter = 32 Assert.assertEquals("The...
Build fix: workaround for false smart cast impossible
Build fix: workaround for false smart cast impossible
Kotlin
mit
xcerx/kotlin-koans,timbotetsu/kotlin-koans,RomanBelkov/workshop-jb,sarvex/workshop-jb,goodwinnk/workshop-jb,chickenbane/workshop-jb,jghoman/workshop-jb,sarvex/kotlin-koans,griffio/workshop-jb,usommerl/kotlin-koans,ian-pi/kotlin-koans,aksiksi/workshop-jb,ian-pi/kotlin-koans,mvaldez/kotlin-examples,sarvex/kotlin-koans,en...
f120332bfce78e80386dde999c38cb49352f6796
plugins/changeReminder/src/com/jetbrains/changeReminder/changes/ChangeReminderCheckAction.kt
plugins/changeReminder/src/com/jetbrains/changeReminder/changes/ChangeReminderCheckAction.kt
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.jetbrains.changeReminder.changes import com.intellij.openapi.actionSystem.AnActionEvent import com.intellij.openapi.actionSystem.ToggleAction import com.intellij.open...
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.jetbrains.changeReminder.changes import com.intellij.openapi.actionSystem.AnActionEvent import com.intellij.openapi.actionSystem.ToggleAction import com.intellij.open...
Fix NPE: event may not contain project
Fix NPE: event may not contain project GitOrigin-RevId: 1792c464471c22581cf02aea41d69ccbc9357a16
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...
24a7c276642d8c0f9329097e43abdcd7edcf669b
nuget-agent/src/jetbrains/buildServer/nuget/agent/util/impl/SystemInformationImpl.kt
nuget-agent/src/jetbrains/buildServer/nuget/agent/util/impl/SystemInformationImpl.kt
package jetbrains.buildServer.nuget.agent.util.impl import com.intellij.openapi.util.SystemInfo import jetbrains.buildServer.nuget.agent.util.SystemInformation class SystemInformationImpl : SystemInformation { override val isWindows: Boolean get() = SystemInfo.isWindows override val userName: String ...
package jetbrains.buildServer.nuget.agent.util.impl import com.intellij.openapi.util.SystemInfo import jetbrains.buildServer.nuget.agent.util.SystemInformation class SystemInformationImpl : SystemInformation { override val isWindows: Boolean get() = SystemInfo.isWindows override val userName: String ...
Fix compilation under linux due to NTSystem usage
Fix compilation under linux due to NTSystem usage
Kotlin
apache-2.0
JetBrains/teamcity-nuget-support,JetBrains/teamcity-nuget-support,JetBrains/teamcity-nuget-support,JetBrains/teamcity-nuget-support
0ac0df5d89ef77a81450b198be1d4b540b732089
subprojects/docs/src/samples/userguide/antMigration/fileDeps/kotlin/build.gradle.kts
subprojects/docs/src/samples/userguide/antMigration/fileDeps/kotlin/build.gradle.kts
plugins { java } // tag::file-deps[] repositories { flatDir { name = "libs dir" dir(file("libs")) // <1> } } dependencies { implementation(files("libs/our-custom.jar")) // <2> implementation(":log4j:1.2.8") // <3> implementation(":commons-io:2.1") // <3> } // end::file-d...
plugins { java } // tag::file-deps[] repositories { flatDir { name = "libs dir" dir(file("libs")) // <1> } } dependencies { implementation(files("libs/our-custom.jar")) // <2> implementation(":log4j:1.2.8") // <3> implementation(":commons-io:2.1") // <3> } // end::file-d...
Fix ant import Kotlin DSL samples
Fix ant import Kotlin DSL samples
Kotlin
apache-2.0
robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blind...
df4727150560a1ed72f13f8f8f1064b0be2dd7a2
content-service/src/main/kotlin/com/sandjelkovic/dispatchd/content/daemon/Scheduler.kt
content-service/src/main/kotlin/com/sandjelkovic/dispatchd/content/daemon/Scheduler.kt
package com.sandjelkovic.dispatchd.content.daemon import com.sandjelkovic.dispatchd.content.contentRefreshTaskExecutorBeanName import com.sandjelkovic.dispatchd.content.service.ContentRefreshService import mu.KLogging import org.springframework.scheduling.annotation.Async import org.springframework.scheduling.annotati...
package com.sandjelkovic.dispatchd.content.daemon import com.sandjelkovic.dispatchd.content.contentRefreshTaskExecutorBeanName import com.sandjelkovic.dispatchd.content.service.ContentRefreshService import mu.KLogging import org.springframework.scheduling.annotation.Async import org.springframework.scheduling.annotati...
Fix import return value handling
Fix import return value handling
Kotlin
apache-2.0
sandjelkovic/dispatchd,sandjelkovic/dispatchd
e6548672936a90c7a208c0ec8a82976ba43bc3bb
modules/bitflags/build.gradle.kts
modules/bitflags/build.gradle.kts
/* * Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license. */ plugins { kotlin("multiplatform") `maven-publish` } kotlin { jvm() js { useCommonJs() } macos() ios(supportArm32 = true) configure(targets) { configureMavenPublication() } ...
/* * Copyright 2019-2020 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license. */ plugins { kotlin("multiplatform") `maven-publish` } kotlin { jvm() js { useCommonJs() } macos() ios(supportArm32 = true) linux(x64 = true) mingw(x64 = true) con...
Add Linux & MingW x64 support to bitflags
Add Linux & MingW x64 support to bitflags
Kotlin
apache-2.0
LouisCAD/Splitties,LouisCAD/Splitties,LouisCAD/Splitties
864d112530df7d42c7248370c9156553cccdd18f
RoaringBitmap/build.gradle.kts
RoaringBitmap/build.gradle.kts
val deps: Map<String, String> by extra dependencies { implementation(project(":shims")) testImplementation("org.junit.jupiter:junit-jupiter-api:${deps["jupiter"]}") testImplementation("org.junit.jupiter:junit-jupiter-params:${deps["jupiter"]}") testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:$...
val deps: Map<String, String> by extra dependencies { implementation(project(":shims")) testImplementation("org.junit.jupiter:junit-jupiter-api:${deps["jupiter"]}") testImplementation("org.junit.jupiter:junit-jupiter-params:${deps["jupiter"]}") testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:$...
Add details in logs about failed tests
Add details in logs about failed tests
Kotlin
apache-2.0
RoaringBitmap/RoaringBitmap,RoaringBitmap/RoaringBitmap,RoaringBitmap/RoaringBitmap,RoaringBitmap/RoaringBitmap
c88bab708293395d89fe7aa18db557575e2927f8
samples/hello-coroutines/build.gradle.kts
samples/hello-coroutines/build.gradle.kts
import org.jetbrains.kotlin.gradle.dsl.Coroutines plugins { application id("nebula.kotlin") version "1.1.0" } application { mainClassName = "samples.HelloCoroutinesKt" } kotlin { // configure<org.jetbrains.kotlin.gradle.dsl.KotlinProjectExtension> experimental.coroutines = Coroutines.ENABLE } reposi...
import org.jetbrains.kotlin.gradle.dsl.Coroutines plugins { application id("nebula.kotlin") version embeddedKotlinVersion } application { mainClassName = "samples.HelloCoroutinesKt" } kotlin { // configure<org.jetbrains.kotlin.gradle.dsl.KotlinProjectExtension> experimental.coroutines = Coroutines.EN...
Revert "Decorrelate the embedded kotlin and nebula.kotlin versions in samples"
Revert "Decorrelate the embedded kotlin and nebula.kotlin versions in samples" This reverts commit 149ee7fecb88d6fe455a73039f1b83d7d3b7ce3b.
Kotlin
apache-2.0
gradle/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle-script-kotlin,gradle/gradle,gradle/gradle,blindpirate/gradle,robinverduijn/gradle,gradle/gradle,blindpirate/gradle,robinverduijn/gradle,robinverdu...
134634ca792cea95a06b30286ed812fa58635418
sqldelight-idea-plugin/src/main/kotlin/com/squareup/sqldelight/intellij/SqlDelightFileIconProvider.kt
sqldelight-idea-plugin/src/main/kotlin/com/squareup/sqldelight/intellij/SqlDelightFileIconProvider.kt
package com.squareup.sqldelight.intellij import com.alecstrong.sql.psi.core.DialectPreset import com.intellij.icons.AllIcons import com.intellij.ide.FileIconProvider import com.intellij.lang.LanguageUtil import com.intellij.openapi.project.Project import com.intellij.openapi.vfs.VirtualFile import com.squareup.sqldeli...
package com.squareup.sqldelight.intellij import com.alecstrong.sql.psi.core.DialectPreset import com.intellij.icons.AllIcons import com.intellij.ide.FileIconProvider import com.intellij.lang.LanguageUtil import com.intellij.openapi.project.Project import com.intellij.openapi.vfs.VirtualFile import com.squareup.sqldeli...
Add support for dialect icons for migration files
Add support for dialect icons for migration files
Kotlin
apache-2.0
square/sqldelight,cashapp/sqldelight,square/sqldelight,square/sqldelight,cashapp/sqldelight,cashapp/sqldelight,square/sqldelight,cashapp/sqldelight
c012858396f47ca72bd0bf2c9f31cfcc68a1782e
samples/source-control/sample/build.gradle.kts
samples/source-control/sample/build.gradle.kts
plugins { application } application { mainClassName = "samples.HelloWorld" } java { sourceCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_1_8 } dependencies { implementation("org.gradle.kotlin.dsl.samples.source-control:compute:latest.integration") }
plugins { application } application { mainClassName = "samples.HelloWorld" } dependencies { implementation("org.gradle.kotlin.dsl.samples.source-control:compute:latest.integration") }
Fix source-control sample for Java 12
Fix source-control sample for Java 12 we don't want any Java requirement in the sample as we run ci checks on multiple Java versions Signed-off-by: Paul Merlin <a027184a55211cd23e3f3094f1fdc728df5e0500@gradle.com>
Kotlin
apache-2.0
gradle/gradle-script-kotlin,gradle/gradle-script-kotlin
a77eadb930cb39d3e07a0d009e6a04ba2667246d
integration-tests/gradle/src/main/resources/multi-module-kotlin-project/web/build.gradle.kts
integration-tests/gradle/src/main/resources/multi-module-kotlin-project/web/build.gradle.kts
plugins { id("io.quarkus") kotlin("jvm") } dependencies { implementation(project(":port")) implementation(project(":domain")) implementation(kotlin("stdlib-jdk8")) implementation("io.quarkus:quarkus-resteasy") }
plugins { id("io.quarkus") kotlin("jvm") } // This is a fix as kotlin 1.5.30 does not support Java 17 yet if (JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_17)) { tasks.quarkusDev { compilerArgs = listOf("-jvm-target", "16") } } dependencies { implementation(project(":port")) ...
Set default jvm-target in kotlin sample project
Set default jvm-target in kotlin sample project
Kotlin
apache-2.0
quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus
6216431462d726a96e1c9ab9ac9d591beb695d0d
src/com/github/elifarley/kotlin/DateTimeKit.kt
src/com/github/elifarley/kotlin/DateTimeKit.kt
import java.time.Instant import java.time.LocalDate import java.time.LocalDateTime import java.time.ZoneOffset import java.time.ZonedDateTime import java.time.format.DateTimeFormatter import java.time.temporal.TemporalAccessor import java.util.* /** * Created by elifarley on 31/08/16. */ object DateTimeKit { @...
import java.time.Instant import java.time.LocalDate import java.time.LocalDateTime import java.time.ZoneOffset import java.time.ZonedDateTime import java.time.format.DateTimeFormatter import java.time.temporal.TemporalAccessor import java.util.* /** * Created by elifarley on 31/08/16. */ object DateTimeKit { @...
Use ZoneId; Check for java.sql.Date instance
Use ZoneId; Check for java.sql.Date instance
Kotlin
mit
elifarley/kotlin-misc-lib,elifarley/kotlin-examples,elifarley/kotlin-examples,elifarley/kotlin-misc-lib
69be55010489ea4a8307f148550edb087ba07647
AndroidCompat/src/main/java/xyz/nulldev/androidcompat/AndroidCompat.kt
AndroidCompat/src/main/java/xyz/nulldev/androidcompat/AndroidCompat.kt
package xyz.nulldev.androidcompat import android.app.Application import xyz.nulldev.androidcompat.androidimpl.CustomContext class AndroidCompat { val context by lazy { CustomContext() } fun startApp(application: Application) { application.attach(context) application.onCreate() ...
package xyz.nulldev.androidcompat import android.app.Application import com.github.salomonbrys.kodein.Kodein import com.github.salomonbrys.kodein.conf.global import com.github.salomonbrys.kodein.instance import com.github.salomonbrys.kodein.lazy import xyz.nulldev.androidcompat.androidimpl.CustomContext class Android...
Fix Context being initialized twice.
Fix Context being initialized twice.
Kotlin
apache-2.0
TachiWeb/TachiWeb-Server,TachiWeb/TachiWeb-Server,TachiWeb/TachiWeb-Server,TachiWeb/TachiWeb-Server,TachiWeb/TachiWeb-Server
c5e0c0d586faaec12b655cede050d0e4fab9ba2e
detekt-core/src/main/kotlin/io/gitlab/arturbosch/detekt/core/KtFiles.kt
detekt-core/src/main/kotlin/io/gitlab/arturbosch/detekt/core/KtFiles.kt
package io.gitlab.arturbosch.detekt.core import org.jetbrains.kotlin.fileClasses.javaFileFacadeFqName import org.jetbrains.kotlin.psi.KtFile /** * @author Artur Bosch */ fun KtFile.unnormalizedContent(): String { val lineSeparator = this.getUserData(KtCompiler.LINE_SEPARATOR) require(lineSeparator != null) { "No...
package io.gitlab.arturbosch.detekt.core import org.jetbrains.kotlin.com.intellij.openapi.util.text.StringUtilRt import org.jetbrains.kotlin.fileClasses.javaFileFacadeFqName import org.jetbrains.kotlin.psi.KtFile /** * @author Artur Bosch */ fun KtFile.unnormalizedContent(): String { val lineSeparator = this.getU...
Convert Kotlin source code strings to Unix line endings
Convert Kotlin source code strings to Unix line endings On Windows, Git is often configured with core.autocrlf = true, resulting in test resource files like ConditionalReturns.kt to have DOS line endings. Passing the content of such files to createFileFromText() fails because it can only handle Unix line endings. So c...
Kotlin
apache-2.0
Mauin/detekt,arturbosch/detekt,Mauin/detekt,MyDogTom/detekt,arturbosch/detekt,Mauin/detekt,arturbosch/detekt,rock3r/detekt,rock3r/detekt,Mauin/detekt,rock3r/detekt
ae7b870d69fd5a4b4382d0433496bc370550c32d
preference-screen-dsl/src/main/kotlin/com/chibatching/kotpref/preference/dsl/ExperimentalPreferenceScreenDsl.kt
preference-screen-dsl/src/main/kotlin/com/chibatching/kotpref/preference/dsl/ExperimentalPreferenceScreenDsl.kt
package com.chibatching.kotpref.preference.dsl @Experimental(level = Experimental.Level.WARNING) @Retention(AnnotationRetention.BINARY) @Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION) annotation class ExperimentalPreferenceScreenDsl
package com.chibatching.kotpref.preference.dsl @RequiresOptIn(level = RequiresOptIn.Level.WARNING) @Retention(AnnotationRetention.BINARY) @Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION) annotation class ExperimentalPreferenceScreenDsl
Replace Experimental annotation with RequiresOptIn annotation
Replace Experimental annotation with RequiresOptIn annotation
Kotlin
apache-2.0
chibatching/Kotpref
a2ad79c0e6ddda51a2d06489ff89f634a19793be
src/main/kotlin/org/rust/ide/refactoring/RsRefactoringSupportProvider.kt
src/main/kotlin/org/rust/ide/refactoring/RsRefactoringSupportProvider.kt
/* * Use of this source code is governed by the MIT license that can be * found in the LICENSE file. */ package org.rust.ide.refactoring import com.intellij.lang.refactoring.RefactoringSupportProvider import com.intellij.psi.PsiElement import com.intellij.refactoring.RefactoringActionHandler import org.rust.ide.re...
/* * Use of this source code is governed by the MIT license that can be * found in the LICENSE file. */ package org.rust.ide.refactoring import com.intellij.lang.refactoring.RefactoringSupportProvider import com.intellij.psi.PsiElement import com.intellij.refactoring.RefactoringActionHandler import org.rust.ide.re...
Make member inplace rename available for identifier owners
REF: Make member inplace rename available for identifier owners
Kotlin
mit
Undin/intellij-rust,Undin/intellij-rust,Undin/intellij-rust,Undin/intellij-rust,intellij-rust/intellij-rust,intellij-rust/intellij-rust,Undin/intellij-rust,Undin/intellij-rust,intellij-rust/intellij-rust,intellij-rust/intellij-rust,intellij-rust/intellij-rust,intellij-rust/intellij-rust
50b6831714155fd2edab14419e541ccaa63f21f5
detekt-core/src/test/kotlin/io/gitlab/arturbosch/detekt/core/KtCompilerTest.kt
detekt-core/src/test/kotlin/io/gitlab/arturbosch/detekt/core/KtCompilerTest.kt
package io.gitlab.arturbosch.detekt.core import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test /** * @author Artur Bosch */ internal class KtCompilerTest { @Test fun ktFileHasExtraUserData() { val ktCompiler = KtCompiler(path) val ktFile = ktCompiler.compile(path.resolve("Defau...
package io.gitlab.arturbosch.detekt.core import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test /** * @author Artur Bosch */ internal class KtCompilerTest { @Test fun ktFileHasExtraUserData() { val ktCompiler = KtCompiler(path) val ktFile = ktCompiler.compile(path.resolve("Defau...
Correct test case having project name in path
Correct test case having project name in path
Kotlin
apache-2.0
rock3r/detekt,Mauin/detekt,Mauin/detekt,Mauin/detekt,rock3r/detekt,arturbosch/detekt,rock3r/detekt,Mauin/detekt,arturbosch/detekt,arturbosch/detekt
8107e3cce7d070104c22b81dcc4dec3e1cd5d0cd
build.gradle.kts
build.gradle.kts
plugins { application kotlin("jvm") version "1.4.32" } description = "An action sequencer to do the boring tasks on the game http://www.riseoflords.com." application { mainClass.set("org.hildan.bots.riseoflords.RolAutomizerKt") } repositories { mavenCentral() } tasks.withType<org.jetbrains.kotlin.gr...
plugins { application kotlin("jvm") version "1.4.32" } description = "An action sequencer to do the boring tasks on the game http://www.riseoflords.com." application { mainClass.set("org.hildan.bots.riseoflords.RolAutomizerKt") } repositories { mavenCentral() } tasks.withType<org.jetbrains.kotlin.gr...
Fix main class manifest entry
Fix main class manifest entry
Kotlin
mit
joffrey-bion/rol-automizer,joffrey-bion/rol-automizer
673dda057b52d2c9ec6650f5ee4038d0f6509e87
addendum/src/main/java/com/commit451/addendum/Activity.kt
addendum/src/main/java/com/commit451/addendum/Activity.kt
package com.commit451.addendum import android.annotation.TargetApi import android.app.Activity import android.graphics.Point import android.view.View import android.view.WindowManager @TargetApi(16) fun Activity.flagFullscreen() { window.decorView.systemUiVisibility = View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN or Vie...
package com.commit451.addendum import android.annotation.TargetApi import android.app.Activity import android.graphics.Point import android.support.annotation.IdRes import android.view.View import android.view.WindowManager @TargetApi(16) fun Activity.flagFullscreen() { window.decorView.systemUiVisibility = View...
Change signature of brightness call, add bindView similar to KotterKnife
Change signature of brightness call, add bindView similar to KotterKnife
Kotlin
apache-2.0
Commit451/Addendum
cd47cca5f12152777fc03431d291a27015c60e17
app/src/main/java/com/satsumasoftware/timetable/framework/Assignment.kt
app/src/main/java/com/satsumasoftware/timetable/framework/Assignment.kt
package com.satsumasoftware.timetable.framework import org.threeten.bp.LocalDate class Assignment(val id: Int, val classId: Int, val title: String, val detail: String, val dueDate: LocalDate)
package com.satsumasoftware.timetable.framework import org.threeten.bp.LocalDate class Assignment(val id: Int, val classId: Int, val title: String, val detail: String, val dueDate: LocalDate, val completionProgress: Int)
Add a property for recording completion progress of assignments
Add a property for recording completion progress of assignments
Kotlin
apache-2.0
FarbodSalamat-Zadeh/TimetableApp,FarbodSalamat-Zadeh/TimetableApp
a248a2479fe8c4ad31d9b4535319cb39cf801d7f
src/main/kotlin/com/jgreubel/TreelineApplication.kt
src/main/kotlin/com/jgreubel/TreelineApplication.kt
package com.jgreubel import org.springframework.boot.SpringApplication import org.springframework.boot.autoconfigure.SpringBootApplication @SpringBootApplication open class TreelineApplication fun main(args: Array<String>) { SpringApplication.run(TreelineApplication::class.java, *args) }
package com.jgreubel import org.springframework.boot.SpringApplication import org.springframework.boot.autoconfigure.SpringBootApplication @SpringBootApplication open class TreelineApplication fun main(args: Array<String>) { val app = SpringApplication.run(TreelineApplication::class.java, *args) println("loc...
Print server port on app launch
Print server port on app launch [#29]
Kotlin
mit
Jgreub/treeline,Jgreub/treeline,Jgreub/treeline,Jgreub/treeline
260c1927d8ea3feadb5141070848cab9d2464e8c
subprojects/docs/src/samples/providers/propertyAndProvider/kotlin/build.gradle.kts
subprojects/docs/src/samples/providers/propertyAndProvider/kotlin/build.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...
Align Kotlin example of `propertyAndProvider` sample with Groovy
Align Kotlin example of `propertyAndProvider` sample with Groovy Signed-off-by: Mike Kobit <6b5be85140a72f835339fc5384eb248e653d0103@gmail.com>
Kotlin
apache-2.0
robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,lsmaira/gradle,gradle/gradle,lsmaira/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,robinverduijn/gradle,lsmaira/gradle,lsmaira/gradle,lsmaira/gradle,lsmaira/gradle,blindpirate/...
843854569faa7c9387a24e2d71ac58e8d77726ae
buildSrc/build.gradle.kts
buildSrc/build.gradle.kts
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile buildscript { repositories { mavenCentral() google() jcenter() } } repositories { mavenCentral() google() jcenter() } plugins { kotlin("jvm") version "1.3.70" `kotlin-dsl` `java-gradle-plugin` } kotlinDslPluginOptions { experimenta...
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile buildscript { repositories { mavenCentral() google() maven { setUrl("https://dl.bintray.com/kotlin/kotlin-eap") } jcenter() } } repositories { mavenCentral() google() maven { setUrl("https://dl.bintray.com/kotlin/kotlin-eap...
Update deps in buildSrc too
Update deps in buildSrc too
Kotlin
apache-2.0
hzsweers/CatchUp,hzsweers/CatchUp,hzsweers/CatchUp,hzsweers/CatchUp
52f772e954ae26a70fe914ea00e4280660938c6a
telemetry/src/main/kotlin/org/strykeforce/thirdcoast/telemetry/grapher/ClientHandler.kt
telemetry/src/main/kotlin/org/strykeforce/thirdcoast/telemetry/grapher/ClientHandler.kt
package org.strykeforce.thirdcoast.telemetry.grapher import mu.KotlinLogging import okio.Buffer import java.net.DatagramPacket import java.net.DatagramSocket import java.net.InetSocketAddress import java.util.concurrent.Executors import java.util.concurrent.ScheduledExecutorService import java.util.concurrent.TimeUnit...
package org.strykeforce.thirdcoast.telemetry.grapher import mu.KotlinLogging import okio.Buffer import java.net.DatagramPacket import java.net.DatagramSocket import java.net.InetSocketAddress import java.util.concurrent.Executors import java.util.concurrent.ScheduledExecutorService import java.util.concurrent.TimeUnit...
Move period value to constant
Move period value to constant
Kotlin
mit
strykeforce/thirdcoast,strykeforce/thirdcoast,strykeforce/thirdcoast
c78d9042dd3dc8131568770db961479e9c507fc2
build.gradle.kts
build.gradle.kts
buildscript { repositories { google() jcenter() } } plugins { id("com.github.ben-manes.versions") version "0.22.0" } tasks.wrapper { distributionType = Wrapper.DistributionType.ALL } tasks.register<Delete>("clean") { delete("build") } tasks.register("ciBuild") { val isMaster ...
buildscript { repositories { google() jcenter() } } plugins { id("com.github.ben-manes.versions") version "0.22.0" } tasks.wrapper { distributionType = Wrapper.DistributionType.ALL } tasks.register<Delete>("clean") { delete("build") } tasks.register("ciBuild") { val isMaster ...
Fix bug causing non-snapshot builds to fail
Fix bug causing non-snapshot builds to fail Signed-off-by: Alex Saveau <723124b8530f56d61c698ee8e046fd23dfade9b3@gmail.com>
Kotlin
mit
MaTriXy/gradle-play-publisher-1,MaTriXy/gradle-play-publisher-1,MaTriXy/gradle-play-publisher-1,Triple-T/gradle-play-publisher,Triple-T/gradle-play-publisher,Triple-T/gradle-play-publisher
0ae8d238fce9eb62eaa97c1400cef7cb24050091
telegram-bot-bumblebee-core/src/main/java/com/github/bumblebee/command/brent/bitfinex/BitfinexTickerLabel.kt
telegram-bot-bumblebee-core/src/main/java/com/github/bumblebee/command/brent/bitfinex/BitfinexTickerLabel.kt
package com.github.bumblebee.command.brent.bitfinex enum class BitfinexTickerLabel(val title: String, val code: String) { BTC("Bitcoin", "tBTCUSD"), BTCASH("Bitcoin Cash", "tBCHUSD"), LTC("Litecoin", "tLTCUSD"), RIPPLE("Ripple", "tXRPUSD"), ETH("Ethereum", "tETHUSD"); override fun toString()...
package com.github.bumblebee.command.brent.bitfinex enum class BitfinexTickerLabel(val title: String, val code: String) { BTC("Bitcoin", "tBTCUSD"), BTCASH("Bitcoin Cash", "tBCHUSD"), LTC("Litecoin", "tLTCUSD"), RIPPLE("Ripple", "tXRPUSD"), MONERO("Monero", "tXMRUSD"), DASH("Dash", "tDSHUSD")...
Add Dash and Monero to CurrenciesCommand.
Add Dash and Monero to CurrenciesCommand.
Kotlin
mit
fare1990/telegram-bot-bumblebee,denzelby/telegram-bot-bumblebee,fare1990/telegram-bot-bumblebee,fare1990/telegram-bot-bumblebee
3e1b363b48bfc34f6e11b848c22d3d80c29ff8ea
src/frontend/android/unity_wallet/app/src/main/java/com/gulden/unity_wallet/ui/TransactionAdapter.kt
src/frontend/android/unity_wallet/app/src/main/java/com/gulden/unity_wallet/ui/TransactionAdapter.kt
package com.gulden.unity_wallet.ui import android.content.Context import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.BaseAdapter import com.gulden.jniunifiedbackend.TransactionRecord import com.gulden.jniunifiedbackend.TransactionType import com.gulden.unity...
package com.gulden.unity_wallet.ui import android.content.Context import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.BaseAdapter import com.gulden.jniunifiedbackend.TransactionRecord import com.gulden.jniunifiedbackend.TransactionType import com.gulden.unity...
Fix currency formatting in transaction view
android: Fix currency formatting in transaction view
Kotlin
mit
nlgcoin/guldencoin-official,nlgcoin/guldencoin-official,nlgcoin/guldencoin-official,nlgcoin/guldencoin-official,nlgcoin/guldencoin-official,nlgcoin/guldencoin-official
163df7c963a1afddfdfd93a26bb886e82af75a5d
plugins/github/src/org/jetbrains/plugins/github/authentication/accounts/GithubAccountsStatisticsCollector.kt
plugins/github/src/org/jetbrains/plugins/github/authentication/accounts/GithubAccountsStatisticsCollector.kt
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package org.jetbrains.plugins.github.authentication.accounts import com.intellij.internal.statistic.beans.UsageDescriptor import com.intellij.internal.statistic.service.fus.colle...
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package org.jetbrains.plugins.github.authentication.accounts import com.intellij.internal.statistic.beans.MetricEvent import com.intellij.internal.statistic.beans.newMetric impor...
Update account statistics collector to the new format
[github] Update account statistics collector to the new format Issue: FUS-409 GitOrigin-RevId: fa026b3be002208f38f9a6d53ff5f254c560bddf
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...
b73ab222d0840d445d2712fd848a75fb88018689
subprojects/samples/build.gradle.kts
subprojects/samples/build.gradle.kts
plugins { id("gradlebuild.internal.java") } dependencies { integTestImplementation(project(":base-services")) integTestImplementation(project(":core-api")) integTestImplementation(project(":process-services")) integTestImplementation(project(":persistent-cache")) integTestImplementation(libs.gr...
plugins { id("gradlebuild.internal.java") } dependencies { integTestImplementation(project(":base-services")) integTestImplementation(project(":core-api")) integTestImplementation(project(":process-services")) integTestImplementation(project(":persistent-cache")) integTestImplementation(libs.gr...
Remove javadoc snippets test configuration from samples subproject
Remove javadoc snippets test configuration from samples subproject It does not test any javadoc code snippets and relies on samples from the docs subproject that are wired up differently.
Kotlin
apache-2.0
blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpira...
1d6fdd249bea9c5b9878d09c95c26713b753bdde
config/src/main/kotlin/org/springframework/security/config/web/servlet/AbstractRequestMatcherDsl.kt
config/src/main/kotlin/org/springframework/security/config/web/servlet/AbstractRequestMatcherDsl.kt
/* * Copyright 2002-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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
/* * Copyright 2002-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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
Add missing Javadoc to Kotlin class
Add missing Javadoc to Kotlin class
Kotlin
apache-2.0
fhanik/spring-security,jgrandja/spring-security,djechelon/spring-security,jgrandja/spring-security,fhanik/spring-security,djechelon/spring-security,rwinch/spring-security,djechelon/spring-security,djechelon/spring-security,djechelon/spring-security,rwinch/spring-security,spring-projects/spring-security,rwinch/spring-se...
ba5d5a08d3cb7a2e34487761b7e4d2a06441903d
src/main/kotlin/org/embulk/test/Recorder.kt
src/main/kotlin/org/embulk/test/Recorder.kt
package org.embulk.test import org.embulk.spi.Column import org.embulk.spi.PageReader import org.embulk.spi.Schema import org.embulk.spi.util.Pages import org.hamcrest.Matchers.`is` import org.junit.Assert.assertThat /** * Repository of [Record] */ internal class Recorder { private val records = mutableListOf<...
package org.embulk.test import org.embulk.spi.Column import org.embulk.spi.PageReader import org.embulk.spi.Schema import org.embulk.spi.util.Pages import org.hamcrest.MatcherAssert.assertThat import org.hamcrest.Matchers.`is` /** * Repository of [Record] */ internal class Recorder { private val records = mutab...
Use hamcrest's assertThat instead of Junit 4's one
Use hamcrest's assertThat instead of Junit 4's one
Kotlin
mit
kamatama41/embulk-test-helpers,kamatama41/embulk-test-helpers
6e2690a552be4e4bdf8653eb240f23bbefa857e2
app/ui/src/main/java/com/fsck/k9/ui/account/AccountsLiveData.kt
app/ui/src/main/java/com/fsck/k9/ui/account/AccountsLiveData.kt
package com.fsck.k9.ui.account import android.arch.lifecycle.LiveData import com.fsck.k9.Account import com.fsck.k9.AccountsChangeListener import com.fsck.k9.Preferences import kotlinx.coroutines.experimental.android.UI import kotlinx.coroutines.experimental.launch import org.jetbrains.anko.coroutines.experimental.bg ...
package com.fsck.k9.ui.account import android.arch.lifecycle.LiveData import com.fsck.k9.Account import com.fsck.k9.AccountsChangeListener import com.fsck.k9.Preferences import kotlinx.coroutines.experimental.android.UI import kotlinx.coroutines.experimental.launch import org.jetbrains.anko.coroutines.experimental.bg ...
Fix crash of SettingsActivity on resume
Fix crash of SettingsActivity on resume `SettingsActivity#populateSettingsList` listens for changes in accounts using `observeNotNull` that throws when a `null` value is assigned. This change leaves the old value when `onInactive` is called. See: https://github.com/k9mail/k-9/pull/3819#issuecomment-447523394
Kotlin
apache-2.0
k9mail/k-9,cketti/k-9,k9mail/k-9,cketti/k-9,cketti/k-9,k9mail/k-9,cketti/k-9
cd5cc5cd2068dee22b86bc863b062259592b6b74
src/main/kotlin/com/natpryce/nullables.kt
src/main/kotlin/com/natpryce/nullables.kt
package com.natpryce /* * Translate between the Result and Nullable/Optional/Maybe monads */ /** * Convert a nullable value to a Result, using the result of the _failureSupplier_ as the failure reason if the value is null. */ inline fun <T, E> T?.asResultOr(failureSupplier: () -> E) = if (this != null) Succes...
package com.natpryce /* * Translate between the Result and Nullable/Optional/Maybe monads */ /** * Convert a nullable value to a Result, using the result of [failureDescription] as the failure reason * if the value is null. */ inline fun <T, E> T?.asResultOr(failureDescription: () -> E) = if (this != null) S...
Add a filterNotNull method to translate Success<T> to Success<T> or Failure
Add a filterNotNull method to translate Success<T> to Success<T> or Failure
Kotlin
apache-2.0
npryce/result4k,npryce/result4k
5248e021ad26c7e2b90e5c5bb687c8438b36ee72
subprojects/build-cache-base/build-cache-base.gradle.kts
subprojects/build-cache-base/build-cache-base.gradle.kts
/* * Copyright 2017 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 2017 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...
Add :base-annotqtions dependency to :build-cache-base
Add :base-annotqtions dependency to :build-cache-base
Kotlin
apache-2.0
blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,blindpira...
ee8d7debe2d4caf2d410a5995c2ba2f5d678bb1e
base/src/main/java/app/tivi/extensions/CoroutineExtensions.kt
base/src/main/java/app/tivi/extensions/CoroutineExtensions.kt
/* * Copyright 2018 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
/* * Copyright 2018 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
Use coroutines-team approve method of implement parallel fan-out operations
Use coroutines-team approve method of implement parallel fan-out operations
Kotlin
apache-2.0
chrisbanes/tivi,chrisbanes/tivi
a57e0888e34ed54138a7e8d75f13e6dcb4e09d72
src/main/kotlin/mixit/DatabaseInitializer.kt
src/main/kotlin/mixit/DatabaseInitializer.kt
package mixit import mixit.repository.* import org.springframework.stereotype.Component import javax.annotation.PostConstruct @Component class DatabaseInitializer(private val userRepository: UserRepository, private val eventRepository: EventRepository, private val t...
package mixit import mixit.repository.* import org.springframework.stereotype.Component import javax.annotation.PostConstruct @Component class DatabaseInitializer(private val userRepository: UserRepository, private val eventRepository: EventRepository, private val t...
Revert on delete data on startup
Revert on delete data on startup
Kotlin
apache-2.0
mixitconf/mixit,mix-it/mixit,mix-it/mixit,mix-it/mixit,mix-it/mixit,mixitconf/mixit,mix-it/mixit,mixitconf/mixit,mixitconf/mixit
c9195f615ca4f08c4ac7aa3911bf2d87a725f555
app/src/main/kotlin/ru/dyatel/tsuschedule/parsing/LessonUtil.kt
app/src/main/kotlin/ru/dyatel/tsuschedule/parsing/LessonUtil.kt
package ru.dyatel.tsuschedule.parsing import android.content.ContentValues import ru.dyatel.tsuschedule.data.LessonTable fun Lesson.toContentValues(): ContentValues { val values = ContentValues() values.put(LessonTable.PARITY, parity.toString()) values.put(LessonTable.WEEKDAY, weekday) values.put(Less...
package ru.dyatel.tsuschedule.parsing import android.content.ContentValues import android.database.Cursor import ru.dyatel.tsuschedule.data.LessonTable fun Lesson.toContentValues(): ContentValues { val values = ContentValues() values.put(LessonTable.PARITY, parity.toString()) values.put(LessonTable.WEEKDA...
Add utility to get a Lesson instance from the DB
Add utility to get a Lesson instance from the DB
Kotlin
mit
dya-tel/TSU-Schedule
8810572e287ace8dcc59b12ad4d30f9f16e04f5c
shared/src/main/kotlin/org/javacs/kt/util/TemporaryDirectory.kt
shared/src/main/kotlin/org/javacs/kt/util/TemporaryDirectory.kt
package org.javacs.kt.util import java.io.Closeable import java.nio.file.Path import java.nio.file.Files /** * A directory in which temporary files may be created. * The advantage of using this class over a standard * function such as Files.createTempFile is that all * temp files in the directory can easily be di...
package org.javacs.kt.util import java.io.Closeable import java.nio.file.Path import java.nio.file.Files /** * A directory in which temporary files may be created. * The advantage of using this class over a standard * function such as Files.createTempFile is that all * temp files in the directory can easily be di...
Delete the temporary directory recursively
Delete the temporary directory recursively
Kotlin
mit
fwcd/kotlin-language-server,fwcd/kotlin-language-server,fwcd/kotlin-language-server
79b747befa9324203383d292bfd559a4305cb13b
app/src/main/java/com/monkeyapp/numbers/App.kt
app/src/main/java/com/monkeyapp/numbers/App.kt
package com.monkeyapp.numbers import androidx.appcompat.app.AppCompatDelegate import androidx.multidex.MultiDexApplication import com.google.android.gms.ads.MobileAds @Suppress("unused") class App : MultiDexApplication() { override fun onCreate() { super.onCreate() // enable night mode when batte...
package com.monkeyapp.numbers import android.os.Build import androidx.appcompat.app.AppCompatDelegate import androidx.multidex.MultiDexApplication import com.google.android.gms.ads.MobileAds @Suppress("unused") class App : MultiDexApplication() { override fun onCreate() { super.onCreate() if (and...
Enable dark mode by following system setting on Android Q and above.
Enable dark mode by following system setting on Android Q and above.
Kotlin
mit
chengpo/number-speller,chengpo/number-speller
ed4b4043aaa72515a845f34297f35383783e9682
advent2018/src/main/kotlin/com/github/rnelson/adventofcode/Day.kt
advent2018/src/main/kotlin/com/github/rnelson/adventofcode/Day.kt
package com.github.rnelson.adventofcode import java.nio.file.Files import java.nio.file.Paths abstract class Day { protected val input: ArrayList<String> = ArrayList() fun setup(dayNumber: String) { val stream = Files.newInputStream(Paths.get("input/day${dayNumber}.txt")) stream.buffered().re...
package com.github.rnelson.adventofcode import java.io.File abstract class Day { protected val input: ArrayList<String> = ArrayList() fun setup(dayNumber: String) { File("input/day$dayNumber.txt").forEachLine { input.add(it) } } abstract fun solveA(): String abstract fun solveB(): String...
Fix file -> ArrayList logic
Fix file -> ArrayList logic
Kotlin
mit
rnelson/adventofcode,rnelson/adventofcode,rnelson/adventofcode,rnelson/adventofcode
791d021497e1e4169383b28e6e1c8ab806645616
plugins/stats-collector/src/com/intellij/stats/experiment/EmulatedExperiment.kt
plugins/stats-collector/src/com/intellij/stats/experiment/EmulatedExperiment.kt
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.stats.experiment import com.intellij.internal.statistic.DeviceIdManager import com.intellij.openapi.application.ApplicationManager import com.intellij.openap...
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.stats.experiment import com.intellij.internal.statistic.DeviceIdManager import com.intellij.openapi.application.ApplicationManager import com.intellij.openap...
Increase the number of AB experiment participants (x4)
[stats-collector] Increase the number of AB experiment participants (x4) GitOrigin-RevId: e56710dffe69f4bafa7be3805c3f0d60e90c0529
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...
63f6128a1d1d6a3f5b2b1ceb22066a1847748ee0
.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.BuildType import jetbrains.buildServer.configs.kotlin.v2019_2.Requirement import jetbrains.buildServer.configs.kotlin.v2019_2.RequirementType object WarmupEc2Agent : BuildType({ uuid = "980bce31-2a3e-456...
package Gradle_Util.buildTypes import common.applyDefaultSettings import common.gradleWrapper import jetbrains.buildServer.configs.kotlin.v2019_2.BuildType import jetbrains.buildServer.configs.kotlin.v2019_2.Requirement import jetbrains.buildServer.configs.kotlin.v2019_2.RequirementType object WarmupEc2Agent : BuildT...
Apply default settings to warmup EC2 agent TeamCity job
Apply default settings to warmup EC2 agent TeamCity job
Kotlin
apache-2.0
gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/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,gradle/gradle,grad...
3686c4298d38ca314e5363aa26974d7a1d8171f1
src/main/kotlin/controllers/AlbumController.kt
src/main/kotlin/controllers/AlbumController.kt
package controllers import models.Album import spark.ModelAndView import spark.Request import spark.Response import templates.AlbumTemplate /** * Created by allen on 4/11/17. */ object AlbumController{ fun index(request: Request, response: Response): String { return AlbumTemplate.index(SqliteControlle...
package controllers import models.Album import spark.ModelAndView import spark.Request import spark.Response import templates.AlbumTemplate /** * Created by allen on 4/11/17. */ object AlbumController{ fun index(request: Request, response: Response): String { return AlbumTemplate.index(SqliteControlle...
Remove dead code since handlebars is no longer being used
Remove dead code since handlebars is no longer being used
Kotlin
mit
allen-garvey/photog-spark,allen-garvey/photog-spark,allen-garvey/photog-spark
ac4426825b2c9e388163a26d651861b11e4c6cce
src/main/kotlin/me/mrkirby153/KirBot/music/AudioPlayerSendHandler.kt
src/main/kotlin/me/mrkirby153/KirBot/music/AudioPlayerSendHandler.kt
package me.mrkirby153.KirBot.music import com.sedmelluq.discord.lavaplayer.player.AudioPlayer import com.sedmelluq.discord.lavaplayer.track.playback.AudioFrame import net.dv8tion.jda.core.audio.AudioSendHandler class AudioPlayerSendHandler(val audioPlayer: AudioPlayer): AudioSendHandler { private var lastFrame: ...
package me.mrkirby153.KirBot.music import com.sedmelluq.discord.lavaplayer.player.AudioPlayer import com.sedmelluq.discord.lavaplayer.track.playback.AudioFrame import net.dv8tion.jda.core.audio.AudioSendHandler class AudioPlayerSendHandler(val audioPlayer: AudioPlayer) : AudioSendHandler { private var lastFrame:...
Fix race condition that would cause streams to fail sometimes
Fix race condition that would cause streams to fail sometimes
Kotlin
mit
mrkirby153/KirBot
a8f4f39ad8c65a1f5cfb0f0e80dcdda2d61dd103
ktor-http/test/io/ktor/tests/http/URLBuilderTest.kt
ktor-http/test/io/ktor/tests/http/URLBuilderTest.kt
package io.ktor.tests.http import io.ktor.http.* import java.net.* import kotlin.test.* class URLBuilderTest { val urlString = "http://localhost:8080/path" @Test fun takeFromURITest() { val url = URLBuilder().apply { takeFrom(URI.create(urlString)) } with(url.build()...
package io.ktor.tests.http import io.ktor.http.* import java.net.* import kotlin.test.* class URLBuilderTest { val urlString = "http://localhost:8080/path" @Test fun takeFromURITest() { val url = URLBuilder().apply { takeFrom(URI.create(urlString)) } with(url.build()...
Add URLBuilder default port test
Add URLBuilder default port test
Kotlin
apache-2.0
ktorio/ktor,ktorio/ktor,ktorio/ktor,ktorio/ktor
345399637c93c6c4a5f6aa48cf147e951a2ecd66
src/main/kotlin/com/projectcitybuild/core/extensions/Array+Extensions.kt
src/main/kotlin/com/projectcitybuild/core/extensions/Array+Extensions.kt
package com.projectcitybuild.core.extensions fun Array<String>.joinWithWhitespaces(range: IntRange): String? { if (this.size > 1) { return null } return this.sliceArray(range).joinToString(separator = " ") }
package com.projectcitybuild.core.extensions fun Array<String>.joinWithWhitespaces(range: IntRange): String? { if (this.size < range.first) { return null } return this.sliceArray(range).joinToString(separator = " ") }
Fix ban reason always being null
Fix ban reason always being null
Kotlin
mit
andimage/PCBridge
7eb3712a51ac537ab998bf2a5f60ac33a16b49e7
platform/projectModel-impl/src/com/intellij/openapi/components/service.kt
platform/projectModel-impl/src/com/intellij/openapi/components/service.kt
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.openapi.components import com.intellij.openapi.application.ApplicationManager import com.intellij.openapi.components.impl.stores.IComponentStore import com.i...
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.openapi.components import com.intellij.openapi.application.ApplicationManager import com.intellij.openapi.components.impl.stores.IComponentStore import com.i...
Revert "CPP-15416 Implement unified workspace lifecycle"
Revert "CPP-15416 Implement unified workspace lifecycle" This reverts commit 9cd5d1f4 GitOrigin-RevId: 908bbdae40a775576ff1abae4424cc430b4147bf
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...
b878f4b9483b6feb01298ee8f7d5da37b930527f
src/main/kotlin/com/fortify/fod/parser/BsiToken.kt
src/main/kotlin/com/fortify/fod/parser/BsiToken.kt
package com.fortify.fod.parser class BsiToken { var tenantId: Int = 0 var tenantCode: String = "" var projectVersionId: Int = 0 var assessmentTypeId: Int = 0 var payloadType: String = "ANALYSIS_PAYLOAD" var scanPreferenceId: Int = 1 var scanPreference: String = "Standard" var auditP...
package com.fortify.fod.parser /** * A Build Server (Continuous) Integration Token for integrating with Fortify on Demand */ class BsiToken { var tenantId: Int = 0 var tenantCode: String = "" var projectVersionId: Int = 0 var assessmentTypeId: Int = 0 var payloadType: String = "ANALYSIS_PAYLOAD...
Format and add some documentation for legacy types
Format and add some documentation for legacy types
Kotlin
apache-2.0
fod-dev/bsi-token-parser
c4a8225f7f0ec02ad5648d7b565ef2ba74cdafe3
app/src/test/java/com/google/android/stardroid/units/LatLongRoboTest.kt
app/src/test/java/com/google/android/stardroid/units/LatLongRoboTest.kt
package com.google.android.stardroid.units import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner import com.google.android.stardroid.units.LatLong import com.google.common.truth.Truth import com.google.android.stardroid.units.LatLongRoboTest import org.junit.Test import org.robolectric.annotatio...
package com.google.android.stardroid.units import com.google.common.truth.Truth.assertThat import org.junit.Test import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner import org.robolectric.annotation.Config /** * Tests that require roboelectric for API calls. */ @RunWith(RobolectricTestRunne...
Fix the imports in the new Kotlin test.
Fix the imports in the new Kotlin test.
Kotlin
apache-2.0
sky-map-team/stardroid,sky-map-team/stardroid,sky-map-team/stardroid,sky-map-team/stardroid,sky-map-team/stardroid
e38a3b616df2f5f54ec0161ed8d06737e8ed60b3
sleepybaby-api/src/main/kotlin/org/jordens/sleepybaby/auth/TokenAuthenticationService.kt
sleepybaby-api/src/main/kotlin/org/jordens/sleepybaby/auth/TokenAuthenticationService.kt
package org.jordens.sleepybaby.auth import org.springframework.security.authentication.UsernamePasswordAuthenticationToken import io.jsonwebtoken.Jwts import io.jsonwebtoken.SignatureAlgorithm import org.springframework.security.core.Authentication import java.util.* import javax.servlet.http.HttpServletRequest import...
package org.jordens.sleepybaby.auth import org.springframework.security.authentication.UsernamePasswordAuthenticationToken import io.jsonwebtoken.Jwts import io.jsonwebtoken.SignatureAlgorithm import org.springframework.security.core.Authentication import java.util.* import javax.servlet.http.HttpServletRequest import...
Verify JWT token is not expired
Verify JWT token is not expired
Kotlin
apache-2.0
ajordens/lalas,ajordens/sleepybaby,ajordens/lalas,ajordens/sleepybaby,ajordens/sleepybaby,ajordens/lalas,ajordens/lalas,ajordens/lalas,ajordens/sleepybaby,ajordens/sleepybaby,ajordens/sleepybaby
71e2550c9bbc7044e44fc975de5346cfdca19e50
subprojects/build-plugins/build-plugins.gradle.kts
subprojects/build-plugins/build-plugins.gradle.kts
import build.futureKotlin plugins { id("public-kotlin-dsl-module") } base { archivesBaseName = "gradle-kotlin-dsl-build-plugins" } val processResources: ProcessResources by tasks val writeKotlinDslProviderVersion by tasks.creating(WriteProperties::class) { outputFile = processResources.destinationDir.re...
import build.* plugins { id("public-kotlin-dsl-module") } base { archivesBaseName = "gradle-kotlin-dsl-build-plugins" } val processResources: ProcessResources by tasks val writeKotlinDslProviderVersion by tasks.creating(WriteProperties::class) { outputFile = processResources.destinationDir.resolve("${ba...
Allow :build-plugins tests to run in parallel
Allow :build-plugins tests to run in parallel Signed-off-by: Paul Merlin <a027184a55211cd23e3f3094f1fdc728df5e0500@gradle.com>
Kotlin
apache-2.0
robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,robinverduijn/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,robinverduijn/gradle,gradle/gradle-script-kotlin,robinverduijn/gradle,robinverduijn/gradle,robinver...
db33d7b84ceb798c44b46b1ddf0e38a9dabb1e99
src/main/kotlin/org/rust/ide/utils/RsModTabTitleProvider.kt
src/main/kotlin/org/rust/ide/utils/RsModTabTitleProvider.kt
package org.rust.ide.utils import com.intellij.openapi.fileEditor.impl.UniqueNameEditorTabTitleProvider import com.intellij.openapi.project.Project import com.intellij.openapi.vfs.VirtualFile import org.rust.lang.core.psi.isRustFile class RsModTabTitleProvider : UniqueNameEditorTabTitleProvider() { val MOD_FILE_N...
package org.rust.ide.utils import com.intellij.openapi.fileEditor.impl.UniqueNameEditorTabTitleProvider import com.intellij.openapi.project.Project import com.intellij.openapi.vfs.VirtualFile import org.rust.lang.core.psi.isRustFile import java.io.File class RsModTabTitleProvider : UniqueNameEditorTabTitleProvider() ...
Fix mod.rs tab names on Windows
Fix mod.rs tab names on Windows close #1043
Kotlin
mit
alygin/intellij-rust,intellij-rust/intellij-rust,alygin/intellij-rust,alygin/intellij-rust,anton-okolelov/intellij-rust,intellij-rust/intellij-rust,intellij-rust/intellij-rust,anton-okolelov/intellij-rust,d9n/intellij-rust,himikof/intellij-rust,d9n/intellij-rust,alygin/intellij-rust,Undin/intellij-rust,himikof/intellij...
e01b49cff638b1b2bd121f960db75b07ceb39586
modules/coroutines/build.gradle.kts
modules/coroutines/build.gradle.kts
/* * Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license. */ plugins { kotlin("multiplatform") `maven-publish` } kotlin { jvm() js { useCommonJs() } macos() ios(supportArm32 = true) configure(targets) { configureMavenPublication() } ...
/* * Copyright 2019-2020 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license. */ plugins { kotlin("multiplatform") `maven-publish` } kotlin { jvm() js { useCommonJs() } macos() ios(supportArm32 = true) linux(x64 = true) mingw(x64 = true) con...
Add Linux & MingW x64 support to coroutines
Add Linux & MingW x64 support to coroutines
Kotlin
apache-2.0
LouisCAD/Splitties,LouisCAD/Splitties,LouisCAD/Splitties
6bd2c1ec5ea16a17163002fafff29b664ba1078a
app/src/main/java/nl/dionsegijn/steppertouchdemo/MainActivity.kt
app/src/main/java/nl/dionsegijn/steppertouchdemo/MainActivity.kt
package nl.dionsegijn.steppertouchdemo import android.os.Bundle import androidx.appcompat.app.AppCompatActivity import android.widget.Toast import nl.dionsegijn.steppertouch.OnStepCallback import nl.dionsegijn.steppertouch.StepperTouch class MainActivity : AppCompatActivity() { override fun onCreate(savedInstan...
package nl.dionsegijn.steppertouchdemo import android.os.Bundle import androidx.appcompat.app.AppCompatActivity import android.widget.Toast import kotlinx.android.synthetic.main.activity_main.* import nl.dionsegijn.steppertouch.OnStepCallback import nl.dionsegijn.steppertouch.StepperTouch class MainActivity : AppCom...
Use kotlin extensions to retrieve the view
Use kotlin extensions to retrieve the view
Kotlin
apache-2.0
DanielMartinus/Stepper-Touch
09d1206469286d05edd5cdd4c515a052d357d882
.teamcity/Gradle_Util/Project.kt
.teamcity/Gradle_Util/Project.kt
package Gradle_Util import Gradle_Util.buildTypes.* import jetbrains.buildServer.configs.kotlin.v2018_2.* import jetbrains.buildServer.configs.kotlin.v2018_2.Project import jetbrains.buildServer.configs.kotlin.v2018_2.projectFeatures.VersionedSettings import jetbrains.buildServer.configs.kotlin.v2018_2.projectFeatures...
package Gradle_Util import Gradle_Util.buildTypes.* import jetbrains.buildServer.configs.kotlin.v2018_2.* import jetbrains.buildServer.configs.kotlin.v2018_2.Project import jetbrains.buildServer.configs.kotlin.v2018_2.projectFeatures.VersionedSettings import jetbrains.buildServer.configs.kotlin.v2018_2.projectFeatures...
Add bot token to Util project
Add bot token to Util project
Kotlin
apache-2.0
blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,grad...
a567e532c62879b8bc4812773184ca7f2264e7fd
ktor-server/ktor-server-cio/src/io/ktor/server/cio/CommandLine.kt
ktor-server/ktor-server-cio/src/io/ktor/server/cio/CommandLine.kt
@file:JvmName("DevelopmentEngine") package io.ktor.server.cio import io.ktor.server.engine.* fun main(args: Array<String>) { val applicationEnvironment = commandLineEnvironment(args) CIOApplicationEngine(applicationEnvironment, {}).start(true) }
@file:JvmName("DevelopmentEngine") package io.ktor.server.cio import io.ktor.server.engine.* import java.util.concurrent.* fun main(args: Array<String>) { val applicationEnvironment = commandLineEnvironment(args) val engine = CIOApplicationEngine(applicationEnvironment, {}) Runtime.getRuntime().addShutdo...
Add shutdown hook in development launcher to handle Ctrl-C (SIGINT)
Add shutdown hook in development launcher to handle Ctrl-C (SIGINT)
Kotlin
apache-2.0
ktorio/ktor,ktorio/ktor,ktorio/ktor,ktorio/ktor
51b78ee626d766de5f95dca2f512e6cb3d0b15d3
clappr/src/main/kotlin/io/clappr/player/base/Options.kt
clappr/src/main/kotlin/io/clappr/player/base/Options.kt
package io.clappr.player.base import java.util.* class Options( var source: String? = null, var mimeType: String? = null, val options: HashMap<String, Any> = hashMapOf<String, Any>()) : MutableMap<String, Any> by options enum class ClapprOption(val value: String) { /** * Media start ...
package io.clappr.player.base import java.util.* class Options( var source: String? = null, var mimeType: String? = null, val options: HashMap<String, Any> = hashMapOf<String, Any>()) : MutableMap<String, Any> by options enum class ClapprOption(val value: String) { /** * Media start ...
Update ClapprOption to better describe the START_AT option
fix(update_start_at_description): Update ClapprOption to better describe the START_AT option
Kotlin
bsd-3-clause
clappr/clappr-android,clappr/clappr-android
b68d01042c1abfd407815d5bda9f208722f8e963
src/main/kotlin/com/nkming/utils/app/AppCompatActivityEx.kt
src/main/kotlin/com/nkming/utils/app/AppCompatActivityEx.kt
package com.nkming.utils.app import android.support.v7.app.AppCompatActivity open class AppCompatActivityEx : AppCompatActivity() { override fun onBackPressed() { for (f in supportFragmentManager.fragments) { if (f != null && f.isAdded && f is FragmentEx) { if (f.onBackPressed()) { return ...
package com.nkming.utils.app import android.support.v7.app.AppCompatActivity open class AppCompatActivityEx : AppCompatActivity() { override fun onBackPressed() { for (f in supportFragmentManager.fragments ?: listOf()) { if (f != null && f.isAdded && f is FragmentEx) { if (f.onBackPressed()) { ...
Fix getFragments could return null
Fix getFragments could return null
Kotlin
mit
nkming2/libutils-android,nkming2/libutils-android
a70c35802d37fff0efdf24235963269731ca93d9
src/main/kotlin/venus/simulator/impls/ECALLImpl.kt
src/main/kotlin/venus/simulator/impls/ECALLImpl.kt
package venus.simulator.impls import venus.riscv.Instruction import venus.simulator.Simulator import venus.simulator.InstructionImplementation import venus.glue.Renderer object ECALLImpl : InstructionImplementation { override operator fun invoke(inst: Instruction, sim: Simulator) { val which = sim.getReg(...
package venus.simulator.impls import venus.riscv.Instruction import venus.simulator.Simulator import venus.simulator.InstructionImplementation import venus.glue.Renderer object ECALLImpl : structionImplementation { override operator fun invoke(inst: Instruction, sim: Simulator) { val which = sim.getReg(10...
Add terminate with exit code
Add terminate with exit code
Kotlin
mit
kvakil/venus,kvakil/venus,kvakil/venus
19eb893a532af204f5dc7199b44826edc480b3ff
georocket-server/src/main/kotlin/io/georocket/storage/StoreFactory.kt
georocket-server/src/main/kotlin/io/georocket/storage/StoreFactory.kt
package io.georocket.storage import io.georocket.constants.ConfigConstants import io.georocket.storage.file.FileStore import io.vertx.core.Vertx /** * A factory for stores * @author Michel Kraemer */ object StoreFactory { /** * Create a new store */ fun createStore(vertx: Vertx): Store { val config =...
package io.georocket.storage import io.georocket.constants.ConfigConstants import io.georocket.storage.file.FileStore import io.vertx.core.Vertx import kotlin.reflect.full.starProjectedType /** * A factory for stores * @author Michel Kraemer */ object StoreFactory { /** * Create a new store */ fun create...
Fix construction of store classes with optional constructor parameters
Fix construction of store classes with optional constructor parameters
Kotlin
apache-2.0
georocket/georocket,georocket/georocket
88e1a926a2da832f58b4d1d9e14b9ad062c9ef69
core/build.gradle.kts
core/build.gradle.kts
import org.jetbrains.configureBintrayPublication plugins { `maven-publish` id("com.jfrog.bintray") } dependencies { api(project(":coreDependencies", configuration = "shadow")) val kotlin_version: String by project api("org.jetbrains.kotlin:kotlin-compiler:$kotlin_version") implementation("org...
import org.jetbrains.configureBintrayPublication plugins { `maven-publish` id("com.jfrog.bintray") } dependencies { api(project(":coreDependencies", configuration = "shadow")) val kotlin_version: String by project api("org.jetbrains.kotlin:kotlin-compiler:$kotlin_version") implementation("org...
Fix building, we still need jsoup in the core for HtmlParser
Fix building, we still need jsoup in the core for HtmlParser
Kotlin
apache-2.0
Kotlin/dokka,Kotlin/dokka,Kotlin/dokka,Kotlin/dokka,Kotlin/dokka,Kotlin/dokka
a337000090202a246a85dea0a88c876b784b83c3
src/main/kotlin/com/elpassion/intelijidea/task/MFBeforeRunTask.kt
src/main/kotlin/com/elpassion/intelijidea/task/MFBeforeRunTask.kt
package com.elpassion.intelijidea.task import com.elpassion.intelijidea.util.mfFilename import com.intellij.execution.BeforeRunTask import java.io.File import java.io.Serializable class MFBeforeRunTask(var data: MFTaskData?) : BeforeRunTask<MFBeforeRunTask>(MFBeforeRunTaskProvider.ID) { fun isValid() = data != n...
package com.elpassion.intelijidea.task import com.elpassion.intelijidea.util.mfFilename import com.intellij.execution.BeforeRunTask import java.io.File import java.io.Serializable class MFBeforeRunTask(var data: MFTaskData?) : BeforeRunTask<MFBeforeRunTask>(MFBeforeRunTaskProvider.ID) { fun isValid() = data?.isV...
Apply CR: Move mf file existence check to data class
Apply CR: Move mf file existence check to data class
Kotlin
apache-2.0
elpassion/mainframer-intellij-plugin,elpassion/mainframer-intellij-plugin,elpassion/mainframer-intellij-plugin
674db71cab812aeb44cc250e4505efa5f04b49e4
junit-jupiter-engine/junit-jupiter-engine.gradle.kts
junit-jupiter-engine/junit-jupiter-engine.gradle.kts
plugins { groovy } apply(from = "$rootDir/gradle/testing.gradle.kts") description = "JUnit Jupiter Engine" tasks.jar { manifest { attributes( "Automatic-Module-Name" to "org.junit.jupiter.engine" ) } } val testArtifacts by configurations.creating { extendsFrom(configurations["testRuntime"]) } val testJa...
plugins { groovy } apply(from = "$rootDir/gradle/testing.gradle.kts") description = "JUnit Jupiter Engine" tasks.jar { manifest { attributes( "Automatic-Module-Name" to "org.junit.jupiter.engine" ) } } val testJavaVersion by extra(JavaVersion.VERSION_11) tasks.compileTestGroovy { sourceCompatibility = t...
Set source/target compatibility for Groovy compilation
Set source/target compatibility for Groovy compilation
Kotlin
epl-1.0
sbrannen/junit-lambda,junit-team/junit-lambda
9d34528b0964afec1b298b28fa19d022a46d4d55
src/test/java/com/masahirosaito/spigot/homes/tests/Permission.kt
src/test/java/com/masahirosaito/spigot/homes/tests/Permission.kt
package com.masahirosaito.spigot.homes.tests enum class Permission(val permission: String) { HOME_DEFAULT("homes.command"), HOME_NAME("homes.command.name"), HOME_PLAYER("homes.command.player"), HOME_PLAYER_NAME("homes.command.player.name"), HOME_SET("homes.command.set"), HOME_SET_NAME("homes....
package com.masahirosaito.spigot.homes.tests enum class Permission(val permission: String) { HOME_DEFAULT("homes.command"), HOME_NAME("homes.command.name"), HOME_PLAYER("homes.command.player"), HOME_PLAYER_NAME("homes.command.player.name"), HOME_SET("homes.command.set"), HOME_SET_NAME("homes....
Add two permissions for delete command testing
Add two permissions for delete command testing
Kotlin
apache-2.0
Homes-MinecraftServerMod/Homes,Homes-MinecraftServerMod/Homes
e4b71a41e922b903cb68239556d90e74421515ac
src/iii_conventions/MyDateUtil.kt
src/iii_conventions/MyDateUtil.kt
package iii_conventions import iii_conventions.TimeInterval.* import java.util.* fun MyDate.nextDay() = addTimeIntervals(DAY, 1) fun MyDate.addTimeIntervals(timeInterval: TimeInterval, number: Int): MyDate { val c = Calendar.getInstance() c.set(year, month, dayOfMonth) when (timeInterval) { TimeI...
package iii_conventions import iii_conventions.TimeInterval.* import java.util.* fun MyDate.nextDay() = addTimeIntervals(DAY, 1) fun MyDate.addTimeIntervals(timeInterval: TimeInterval, number: Int) = Calendar.getInstance().run { set(year, month, dayOfMonth) add(when (timeInterval) { TimeInterval.DAY ...
Use Kotlin way in addTimeIntervals
Use Kotlin way in addTimeIntervals
Kotlin
mit
Kotlin/kotlin-koans,JetBrains/workshop-jb,Kotlin/kotlin-koans,Carighan/kotlin-koans,Carighan/kotlin-koans,JetBrains/workshop-jb
5886d1ba7e199ee47c80476114d442a46ca36a9c
src/main/kotlin/org/moe/gradle/utils/PropertiesUtil.kt
src/main/kotlin/org/moe/gradle/utils/PropertiesUtil.kt
@file:JvmName("PropertiesUtil") package org.moe.gradle.utils import groovy.lang.MissingPropertyException import org.gradle.api.GradleException import org.gradle.api.Project import org.gradle.api.internal.project.DefaultProject import java.util.Properties private const val LOCAL_PROPERTIES: String = "local.propertie...
@file:JvmName("PropertiesUtil") package org.moe.gradle.utils import groovy.lang.MissingPropertyException import org.gradle.api.GradleException import org.gradle.api.Project import org.gradle.api.internal.project.DefaultProject import java.util.Properties private const val LOCAL_PROPERTIES: String = "local.propertie...
Support local property on multi-module project
Support local property on multi-module project (cherry picked from commit a3b6dabb0305860cfd36a3c76e1fcf80e3361bf0)
Kotlin
apache-2.0
multi-os-engine/moe-plugin-gradle,multi-os-engine/moe-plugin-gradle
8872642375298cb97b75b445131555f88341f834
editor/src/main/kotlin/rs/emulate/editor/workspace/EditorWorkspaceView.kt
editor/src/main/kotlin/rs/emulate/editor/workspace/EditorWorkspaceView.kt
package rs.emulate.editor.workspace import javafx.geometry.Side import rs.emulate.editor.workspace.components.EditorPropertySheet import rs.emulate.editor.workspace.components.EditorStatusBar import rs.emulate.editor.workspace.components.menu.EditorMenu import rs.emulate.editor.workspace.components.widgets.tree.Resour...
package rs.emulate.editor.workspace import javafx.geometry.Side import rs.emulate.editor.workspace.components.EditorPropertySheet import rs.emulate.editor.workspace.components.EditorStatusBar import rs.emulate.editor.workspace.components.menu.EditorMenu import rs.emulate.editor.workspace.components.widgets.tree.Resour...
Fix adding property sheet to workspace drawer
Fix adding property sheet to workspace drawer
Kotlin
isc
Major-/Vicis
e69a4df879a60584eb3dfaabbb852698594e9362
models/src/main/java/com/vimeo/networking2/enums/BillingStatusType.kt
models/src/main/java/com/vimeo/networking2/enums/BillingStatusType.kt
package com.vimeo.networking2.enums /** * The status of this user's billing information. */ enum class BillingStatusType(override val value: String?) : StringValue { /** * The user's billing information is active. */ ACTIVE("active"), /** * The user's billing information has been cancele...
package com.vimeo.networking2.enums /** * The status of this user's billing information. */ enum class BillingStatusType(override val value: String?) : StringValue { /** * The user's billing information is active and will auto-renew. */ ACTIVE("active"), /** * The user's billing informat...
Change expired to pending and updated comments
Change expired to pending and updated comments
Kotlin
mit
vimeo/vimeo-networking-java,vimeo/vimeo-networking-java,vimeo/vimeo-networking-java
7d31f279dd0b31411332690ea35c0a86f0b64d46
padlock-model/src/main/java/com/pyamsoft/padlock/model/PadLockEntry.kt
padlock-model/src/main/java/com/pyamsoft/padlock/model/PadLockEntry.kt
/* * Copyright (C) 2018 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 la...
/* * Copyright (C) 2018 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 la...
Clean up padlock entry model
Clean up padlock entry model
Kotlin
apache-2.0
pyamsoft/padlock,pyamsoft/padlock
84bd20a1581d8db2236385175421d55c36d003cd
app/src/main/java/me/echeung/moemoekyun/client/cache/ApolloCache.kt
app/src/main/java/me/echeung/moemoekyun/client/cache/ApolloCache.kt
package me.echeung.moemoekyun.client.cache import android.content.Context import com.apollographql.apollo.cache.http.ApolloHttpCache import com.apollographql.apollo.cache.http.DiskLruHttpCacheStore import java.io.File class ApolloCache( context: Context ) { val cache: ApolloHttpCache init { ...
package me.echeung.moemoekyun.client.cache import android.content.Context import com.apollographql.apollo.cache.http.ApolloHttpCache import com.apollographql.apollo.cache.http.DiskLruHttpCacheStore import java.io.File class ApolloCache( context: Context ) { val cache: ApolloHttpCache init { ...
Put Apollo cache in external cache dir
Put Apollo cache in external cache dir
Kotlin
mit
LISTEN-moe/android-app,arkon/LISTEN.moe-Unofficial-Android-App
ab103853b741938d063b6b5663a24098239c97a5
ktor-core/src/org/jetbrains/ktor/pipeline/PipelineControl.kt
ktor-core/src/org/jetbrains/ktor/pipeline/PipelineControl.kt
package org.jetbrains.ktor.pipeline sealed class PipelineControl : Throwable() { object Completed : PipelineControl() object Paused : PipelineControl() object Continue : PipelineControl() @Suppress("unused", "VIRTUAL_MEMBER_HIDDEN") // implicit override fun fillInStackTrace(): Throwable? { ...
package org.jetbrains.ktor.pipeline sealed class PipelineControl : Throwable() { object Completed : PipelineControl() object Paused : PipelineControl() object Continue : PipelineControl() @Suppress("unused", "VIRTUAL_MEMBER_HIDDEN") // implicit override fun fillInStackTrace(): Throwable? = this }
Update fillInStackTrace to return `this` according to specification.
Update fillInStackTrace to return `this` according to specification.
Kotlin
apache-2.0
ktorio/ktor,ktorio/ktor,ktorio/ktor,ktorio/ktor
e706d5ffa5c338edc95a93f3039e8fe239a82e51
app/src/main/java/com/sedsoftware/yaptalker/presentation/base/BaseView.kt
app/src/main/java/com/sedsoftware/yaptalker/presentation/base/BaseView.kt
package com.sedsoftware.yaptalker.presentation.base import com.arellomobile.mvp.MvpView import com.arellomobile.mvp.viewstate.strategy.AddToEndSingleStrategy import com.arellomobile.mvp.viewstate.strategy.SkipStrategy import com.arellomobile.mvp.viewstate.strategy.StateStrategyType @StateStrategyType(AddToEndSingleSt...
package com.sedsoftware.yaptalker.presentation.base import com.arellomobile.mvp.MvpView import com.arellomobile.mvp.viewstate.strategy.AddToEndSingleStrategy import com.arellomobile.mvp.viewstate.strategy.SkipStrategy import com.arellomobile.mvp.viewstate.strategy.StateStrategyType @StateStrategyType(SkipStrategy::cl...
Test loading indicator strategy tweak
Test loading indicator strategy tweak
Kotlin
apache-2.0
djkovrik/YapTalker,djkovrik/YapTalker
8a0dc8cc62d47a295b784e2c36b8f1407c07db0a
app/src/main/java/pl/mg6/likeornot/commons/Collections.kt
app/src/main/java/pl/mg6/likeornot/commons/Collections.kt
package pl.mg6.likeornot.commons fun <T> List<T>.chunk(chunkSize: Int): List<List<T>> { require(chunkSize > 0) { "chunkSize must be greater than 0" } val chunksCount = (size + chunkSize - 1) / chunkSize val chunkedList = ArrayList<List<T>>(chunksCount) for (i in 0 until size step chunkSize) { c...
package pl.mg6.likeornot.commons fun <T> List<T>.chunk(chunkSize: Int): List<List<T>> { require(chunkSize > 0) { "chunkSize must be greater than 0" } val chunksCount = (size + chunkSize - 1) / chunkSize val chunkedList = ArrayList<List<T>>(chunksCount) for (fromIndex in 0 until size step chunkSize) { ...
Rename to fromIndex, extract toIndex.
[refactoring] Rename to fromIndex, extract toIndex.
Kotlin
apache-2.0
mg6maciej/fluffy-octo-rotary-phone,mg6maciej/fluffy-octo-rotary-phone,mg6maciej/fluffy-octo-rotary-phone
be691f14a280358fc60b2b65008f074abce88ba2
t-tasks/src/main/java/com/teo/ttasks/util/FirebaseUtil.kt
t-tasks/src/main/java/com/teo/ttasks/util/FirebaseUtil.kt
package com.teo.ttasks.util import com.google.firebase.database.DatabaseReference import com.google.firebase.database.FirebaseDatabase import timber.log.Timber object FirebaseUtil { private const val DB_TASKS = "tasks" /** The reference to the Firebase Database containing additional information about all th...
package com.teo.ttasks.util import com.google.firebase.auth.FirebaseAuth import com.google.firebase.database.DatabaseReference import com.google.firebase.database.FirebaseDatabase import timber.log.Timber object FirebaseUtil { private const val DB_TASKS = "tasks" private val firebaseAuth = FirebaseAuth.getI...
Store task reminders in Firebase per user
Store task reminders in Firebase per user
Kotlin
apache-2.0
teobaranga/T-Tasks
e4ef635ca95de8f06fdea95127b66ec5b0933365
src/main/java/org/bubenheimer/android/rx/DisposableWrapper.kt
src/main/java/org/bubenheimer/android/rx/DisposableWrapper.kt
/* * Copyright (c) 2015-2019 Uli Bubenheimer * * 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...
/* * Copyright (c) 2015-2019 Uli Bubenheimer * * 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...
Refactor remaining general Check.kt functions
Refactor remaining general Check.kt functions
Kotlin
apache-2.0
bubenheimer/androidrxutil,bubenheimer/androidrxutil
ad0c2bf44cf040c7c256114122f8757dfedca5df
src/main/kotlin/cn/yiiguxing/plugin/translate/documentation/TranslateDocumentationTask.kt
src/main/kotlin/cn/yiiguxing/plugin/translate/documentation/TranslateDocumentationTask.kt
package cn.yiiguxing.plugin.translate.documentation import cn.yiiguxing.plugin.translate.trans.Translator import cn.yiiguxing.plugin.translate.util.TranslateService import cn.yiiguxing.plugin.translate.util.invokeLater import com.intellij.lang.Language import com.intellij.openapi.progress.ProgressManager import org.je...
package cn.yiiguxing.plugin.translate.documentation import cn.yiiguxing.plugin.translate.trans.Translator import cn.yiiguxing.plugin.translate.util.TranslateService import cn.yiiguxing.plugin.translate.util.invokeLater import com.intellij.lang.Language import com.intellij.openapi.application.ModalityState import com.i...
Fix problem of translation exception being penetrated
Fix problem of translation exception being penetrated
Kotlin
mit
YiiGuxing/TranslationPlugin,YiiGuxing/TranslationPlugin
320d9b7d54a720d4685b27d6d5b646f130265c5a
modules/views-dsl/build.gradle.kts
modules/views-dsl/build.gradle.kts
/* * Copyright 2019-2021 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license. */ plugins { id("com.android.library") kotlin("multiplatform") publish } android { setDefaults(generateBuildConfig = true) } kotlin { android() configure(targets) { configure...
/* * Copyright 2019-2021 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license. */ plugins { id("com.android.library") kotlin("multiplatform") publish } android { setDefaults(generateBuildConfig = true) } kotlin { android() configure(targets) { configure...
Remove no longer needed workaround that used old Kotlin backend
Remove no longer needed workaround that used old Kotlin backend
Kotlin
apache-2.0
LouisCAD/Splitties,LouisCAD/Splitties,LouisCAD/Splitties
27058fe0c0b42931214988b2e897a07d6ecf9041
src/main/kotlin/com/lapismc/minecraft/yggdrasil/Credentials.kt
src/main/kotlin/com/lapismc/minecraft/yggdrasil/Credentials.kt
package com.lapismc.minecraft.yggdrasil import java.security.MessageDigest import javax.xml.bind.DatatypeConverter.printHexBinary /** * User information for authentication. * @param username Minecraft username or Mojang account. * @param password Password associated with the username. */ data class Credentials(va...
package com.lapismc.minecraft.yggdrasil import java.security.MessageDigest import javax.xml.bind.DatatypeConverter.printHexBinary /** * User information for authentication. * @param username Minecraft username or Mojang account. * @param password Password associated with the username. */ data class Credentials(va...
Trim and lowercase password hash
Trim and lowercase password hash
Kotlin
mit
lapis-mc/yggdrasil
80edef487835406b6496dfdce2c6ffb55fd72a60
app/src/main/java/nl/dionsegijn/konfettidemo/configurations/settings/ConfigurationManager.kt
app/src/main/java/nl/dionsegijn/konfettidemo/configurations/settings/ConfigurationManager.kt
package nl.dionsegijn.konfettidemo.configurations.settings import nl.dionsegijn.konfettidemo.R /** * Created by dionsegijn on 5/24/17. */ class ConfigurationManager { var active: Configuration var configurations: List<Configuration> = listOf( Configuration(Configuration.TYPE_STREAM_FROM_TOP, "T...
package nl.dionsegijn.konfettidemo.configurations.settings import nl.dionsegijn.konfettidemo.R /** * Created by dionsegijn on 5/24/17. */ class ConfigurationManager { var active: Configuration var configurations: List<Configuration> = listOf( Configuration(Configuration.TYPE_STREAM_FROM_TOP, "T...
Change init configuration for burst mode
Change init configuration for burst mode
Kotlin
isc
DanielMartinus/Konfetti
4aab6b4e094d233360d414fca53d71c0197e514c
device/src/main/java/com/sedsoftware/yaptalker/device/storage/state/TopicState.kt
device/src/main/java/com/sedsoftware/yaptalker/device/storage/state/TopicState.kt
package com.sedsoftware.yaptalker.device.storage.state import android.os.Parcelable class TopicState(val scrollState: Parcelable, val currentPage: Int, val totalPages: Int, val label: String)
package com.sedsoftware.yaptalker.device.storage.state import android.os.Parcelable class TopicState( val forumId: Int, val topicId: Int, val currentPage: Int, val scrollState: Parcelable)
Tweak saved topic state values
Tweak saved topic state values
Kotlin
apache-2.0
djkovrik/YapTalker,djkovrik/YapTalker
e8420eec9003595d834a05ba4eeecd922abd090d
src/main/kotlin/com/github/epadronu/balin/core/WaitingSupport.kt
src/main/kotlin/com/github/epadronu/balin/core/WaitingSupport.kt
/****************************************************************************** * Copyright 2016 Edinson E. Padrón Urdaneta * * 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...
/****************************************************************************** * Copyright 2016 Edinson E. Padrón Urdaneta * * 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...
Fix magic numbers reported by detekt
Fix magic numbers reported by detekt
Kotlin
apache-2.0
EPadronU/balin,EPadronU/balin
06b09af12d40193ce76b4912c1bea3a7a69e6a5a
uspek/src/main/java/mareklangiewicz/pl/uspek/USpekJUnitRunner.kt
uspek/src/main/java/mareklangiewicz/pl/uspek/USpekJUnitRunner.kt
package mareklangiewicz.pl.uspek import org.junit.runner.Description import org.junit.runner.Runner import org.junit.runner.notification.RunNotifier import java.util.* class USpekJUnitRunner(testClass: Class<Any>) : Runner() { private val rootDescription = Description.createSuiteDescription(testClass.simpleName,...
package mareklangiewicz.pl.uspek import org.junit.runner.Description import org.junit.runner.Runner import org.junit.runner.notification.RunNotifier import java.util.* class USpekJUnitRunner(testClass: Class<Any>) : Runner() { private val rootDescription = Description.createSuiteDescription(testClass.simpleName,...
Convert function body to expression
[refactoring] Convert function body to expression
Kotlin
apache-2.0
langara/USpek,langara/USpek,langara/USpek