commit stringlengths 40 40 | subject stringlengths 4 1.73k | repos stringlengths 5 127k | old_file stringlengths 2 751 | new_file stringlengths 2 751 | new_contents stringlengths 1 8.98k | old_contents stringlengths 0 6.59k | license stringclasses 13
values | lang stringclasses 23
values |
|---|---|---|---|---|---|---|---|---|
0f14936fad256c5ecdb4a0f1dd11e0d0222fc453 | Fix JAVA_HOME setting for Java9 test coverage | blindpirate/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,gradle/gradle,blindpirate/gradle,robinverduijn/gradle,gradle/gradle,blindpirate/gradle,gradle... | .teamcity/Gradle_Check_TestCoverageForkedJava9Linux/buildTypes/Gradle_Check_TestCoverageForkedJava9Linux_1.kt | .teamcity/Gradle_Check_TestCoverageForkedJava9Linux/buildTypes/Gradle_Check_TestCoverageForkedJava9Linux_1.kt | package Gradle_Check_TestCoverageForkedJava9Linux.buildTypes
import jetbrains.buildServer.configs.kotlin.v10.BuildType
class Gradle_Check_TestCoverageForkedJava9Linux_1(bucket: String) : BuildType({
template(Gradle_Check.buildTypes.Gradle_Check_TestCoverageForkedLinux)
uuid = "Gradle_Check_TestCoverageForkedJ... | package Gradle_Check_TestCoverageForkedJava9Linux.buildTypes
import jetbrains.buildServer.configs.kotlin.v10.BuildType
class Gradle_Check_TestCoverageForkedJava9Linux_1(bucket: String) : BuildType({
template(Gradle_Check.buildTypes.Gradle_Check_TestCoverageForkedLinux)
uuid = "Gradle_Check_TestCoverageForkedJ... | apache-2.0 | Kotlin |
65b4ed239be751834d87c0904c76e79238901001 | Update to version 3.7 | openHPI/android-app | buildSrc/src/main/kotlin/Dependencies.kt | buildSrc/src/main/kotlin/Dependencies.kt | import org.gradle.api.JavaVersion
object Versions {
// Project
const val KOTLIN = "1.4.20"
const val BUILD_TOOLS = "30.0.2"
const val MIN_SDK = 21
const val TARGET_SDK = 30
const val COMPILE_SDK = 30
const val VERSION_NAME = "3.7"
const val VERSION_CODE = 61
const val XIKOLO_API =... | import org.gradle.api.JavaVersion
object Versions {
// Project
const val KOTLIN = "1.4.20"
const val BUILD_TOOLS = "30.0.2"
const val MIN_SDK = 21
const val TARGET_SDK = 30
const val COMPILE_SDK = 30
const val VERSION_NAME = "3.6"
const val VERSION_CODE = 60
const val XIKOLO_API =... | bsd-3-clause | Kotlin |
a7ad9b3390c5c75199094c01946d91b807264620 | Make StreamPlaybackFactory extend PlaybackFactory | BjoernPetersen/JMusicBot | src/main/kotlin/net/bjoernpetersen/musicbot/spi/plugin/predefined/StreamPlaybackFactory.kt | src/main/kotlin/net/bjoernpetersen/musicbot/spi/plugin/predefined/StreamPlaybackFactory.kt | package net.bjoernpetersen.musicbot.spi.plugin.predefined
import net.bjoernpetersen.musicbot.spi.plugin.Playback
import net.bjoernpetersen.musicbot.spi.plugin.PlaybackFactory
import java.io.IOException
import java.net.URL
/**
* An extension of the [PlaybackFactory] interface which accepts URLs.
*/
interface StreamP... | package net.bjoernpetersen.musicbot.spi.plugin.predefined
import net.bjoernpetersen.musicbot.spi.plugin.Playback
import net.bjoernpetersen.musicbot.spi.plugin.PlaybackFactory
import java.io.IOException
import java.net.URL
/**
* An extension of the [PlaybackFactory] interface which accepts URLs.
*/
interface StreamP... | mit | Kotlin |
59d5d7e0e26634cad96653ca59912a56ae9e547d | refactor #412 Fix test annotation path. | toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt | app/src/test/java/jp/toastkid/yobidashi/main/usecase/WebSearchResultTabOpenerUseCaseTest.kt | app/src/test/java/jp/toastkid/yobidashi/main/usecase/WebSearchResultTabOpenerUseCaseTest.kt | /*
* Copyright (c) 2022 toastkidjp.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompany this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html.
*/
package jp... | /*
* Copyright (c) 2022 toastkidjp.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompany this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html.
*/
package jp... | epl-1.0 | Kotlin |
fd9d968ef5b3681d507e1a550bc4deea609d9bb3 | Update PostsResource.kt | chengpo/my-blog,chengpo/my-blog,chengpo/my-blog,chengpo/my-blog | src/main/java/com/monkeyapp/blog/resources/PostsResource.kt | src/main/java/com/monkeyapp/blog/resources/PostsResource.kt | /*
MIT License
Copyright (c) 2017 - 2022 Po Cheng
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish... | /*
MIT License
Copyright (c) 2017 - 2022 Po Cheng
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish... | mit | Kotlin |
2c220e9f7ac0160ba7a4d449ec1e2e5dd511960d | Fix for formatting in auth service | vimeo/vimeo-networking-java,vimeo/vimeo-networking-java,vimeo/vimeo-networking-java | auth/src/main/java/com/vimeo/networking2/requests/AuthService.kt | auth/src/main/java/com/vimeo/networking2/requests/AuthService.kt | package com.vimeo.networking2.requests
import com.vimeo.networking2.VimeoAccount
import retrofit2.Call
import retrofit2.http.Field
import retrofit2.http.FormUrlEncoded
import retrofit2.http.Header
import retrofit2.http.POST
/**
* All the authentication endpoints.
*/
interface AuthService {
/**
* Get an ac... | package com.vimeo.networking2.requests
import com.vimeo.networking2.VimeoAccount
import retrofit2.Call
import retrofit2.http.Field
import retrofit2.http.FormUrlEncoded
import retrofit2.http.Header
import retrofit2.http.POST
/**
* All the authentication endpoints.
*/
interface AuthService {
/**
* Get an ac... | mit | Kotlin |
ef17b5ccfcf52818b9a2621f203a91cda9f585a9 | add isErrorResponse() | sys1yagi/mastodon4j | mastodon4j/src/main/java/com/sys1yagi/mastodon4j/api/exception/Mastodon4jRequestException.kt | mastodon4j/src/main/java/com/sys1yagi/mastodon4j/api/exception/Mastodon4jRequestException.kt | package com.sys1yagi.mastodon4j.api.exception
import okhttp3.Response
class Mastodon4jRequestException : Exception {
val response: Response?
constructor(response: Response) : super(response.message()) {
this.response = response
}
constructor(e : Exception) : super(e) {
this.response ... | package com.sys1yagi.mastodon4j.api.exception
import okhttp3.Response
class Mastodon4jRequestException : Exception {
val response: Response?
constructor(response: Response) : super(response.message()) {
this.response = response
}
constructor(e : Exception) : super(e) {
this.response =... | mit | Kotlin |
92b356b599dd10453f7042d9996357a7ef534912 | Implement ItemsPool.IDItem | KotlinNLP/SimpleDNN | src/main/kotlin/com/kotlinnlp/simplednn/core/layers/feedforward/FeedforwardLayerStructure.kt | src/main/kotlin/com/kotlinnlp/simplednn/core/layers/feedforward/FeedforwardLayerStructure.kt | /* Copyright 2016-present The KotlinNLP Authors. All Rights Reserved.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, you can obtain one at http://mozilla.org/MPL/2.0/.
* ------------------------------------------... | /* Copyright 2016-present The KotlinNLP Authors. All Rights Reserved.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, you can obtain one at http://mozilla.org/MPL/2.0/.
* ------------------------------------------... | mpl-2.0 | Kotlin |
0778dfe9094434abf99a5dcc5f5ee3bd6fcf1758 | Use GE server and always publish scans if authenticated | junit-team/junit-lambda,sbrannen/junit-lambda | settings.gradle.kts | settings.gradle.kts | import com.gradle.scan.plugin.internal.api.BuildScanExtensionWithHiddenFeatures
pluginManagement {
plugins {
id("com.gradle.enterprise") version "3.1.1"
id("net.nemerosa.versioning") version "2.10.0"
id("com.github.ben-manes.versions") version "0.27.0"
id("com.diffplug.gradle.spotless") version "3.27.0"
id(... | pluginManagement {
plugins {
id("com.gradle.enterprise") version "3.1"
id("net.nemerosa.versioning") version "2.10.0"
id("com.github.ben-manes.versions") version "0.27.0"
id("com.diffplug.gradle.spotless") version "3.27.0"
id("org.ajoberstar.git-publish") version "2.1.3"
kotlin("jvm") version "1.3.61"
id... | epl-1.0 | Kotlin |
9ecc9597a284911c6220875cf512d5dd924ea6f2 | Bump com.gradle.enterprise from 3.10.2 to 3.10.3 (#387) | open-telemetry/opentelemetry-java-contrib,open-telemetry/opentelemetry-java-contrib,open-telemetry/opentelemetry-java-contrib | settings.gradle.kts | settings.gradle.kts | pluginManagement {
plugins {
id("com.github.ben-manes.versions") version "0.42.0"
id("com.github.johnrengelman.shadow") version "7.1.2"
id("com.gradle.enterprise") version "3.10.3"
id("io.github.gradle-nexus.publish-plugin") version "1.1.0"
}
}
plugins {
id("com.gradle.enterprise")
}
dependencyR... | pluginManagement {
plugins {
id("com.github.ben-manes.versions") version "0.42.0"
id("com.github.johnrengelman.shadow") version "7.1.2"
id("com.gradle.enterprise") version "3.10.2"
id("io.github.gradle-nexus.publish-plugin") version "1.1.0"
}
}
plugins {
id("com.gradle.enterprise")
}
dependencyR... | apache-2.0 | Kotlin |
5a9fb8c20d723fed8dcf77b0891f300ff883e672 | Improve error message | daugeldauge/NeePlayer | settings.gradle.kts | settings.gradle.kts | pluginManagement {
val kotlinVersion = "1.3.71"
repositories {
jcenter()
google()
maven(url = "https://dl.bintray.com/kotlin/kotlin-eap")
}
resolutionStrategy {
eachPlugin {
when (val pluginId = requested.id.id) {
"com.android.application", "... | pluginManagement {
val kotlinVersion = "1.3.71"
repositories {
jcenter()
google()
maven(url = "https://dl.bintray.com/kotlin/kotlin-eap")
}
resolutionStrategy {
eachPlugin {
when (requested.id.id) {
"com.android.application" -> "com.android.t... | mit | Kotlin |
ee56341de57bc6aa3e322391a55fd4325a481410 | bump com.diffplug.spotless from 6.7.2 to 6.9.1 (via #807) | allure-framework/allure-java,allure-framework/allure-java | settings.gradle.kts | settings.gradle.kts | rootProject.name = "allure-java"
include("allure-assertj")
include("allure-attachments")
include("allure-bom")
include("allure-citrus")
include("allure-cucumber-jvm")
include("allure-cucumber2-jvm")
include("allure-cucumber3-jvm")
include("allure-cucumber4-jvm")
include("allure-cucumber5-jvm")
include("allure-cucumber... | rootProject.name = "allure-java"
include("allure-assertj")
include("allure-attachments")
include("allure-bom")
include("allure-citrus")
include("allure-cucumber-jvm")
include("allure-cucumber2-jvm")
include("allure-cucumber3-jvm")
include("allure-cucumber4-jvm")
include("allure-cucumber5-jvm")
include("allure-cucumber... | apache-2.0 | Kotlin |
edc290bdf2c5d8bbaf20f205404d11dd5b4a2e22 | Fix problem with xml file | shiraji/permissions-dispatcher-plugin,shiraji/permissions-dispatcher-plugin,shiraji/permissions-dispatcher-plugin | src/main/kotlin/com/github/shiraji/permissionsdispatcherplugin/actions/GeneratePMCodeAction.kt | src/main/kotlin/com/github/shiraji/permissionsdispatcherplugin/actions/GeneratePMCodeAction.kt | package com.github.shiraji.permissionsdispatcherplugin.actions
import com.github.shiraji.permissionsdispatcherplugin.handlers.GeneratePMCodeHandler
import com.github.shiraji.permissionsdispatcherplugin.models.GeneratePMCodeModel
import com.github.shiraji.permissionsdispatcherplugin.views.GeneratePMCodeDialog
import co... | package com.github.shiraji.permissionsdispatcherplugin.actions
import com.github.shiraji.permissionsdispatcherplugin.handlers.GeneratePMCodeHandler
import com.github.shiraji.permissionsdispatcherplugin.models.GeneratePMCodeModel
import com.github.shiraji.permissionsdispatcherplugin.views.GeneratePMCodeDialog
import co... | apache-2.0 | Kotlin |
6e7643ed3e0dac63983a5f88c5c9c5e540799bf1 | refactor #283 Add comments in ElseCaseLongTapDialogFragment. | toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt,toastkidjp/Jitte | app/src/main/java/jp/toastkid/yobidashi/browser/webview/dialog/ElseCaseLongTapDialogFragment.kt | app/src/main/java/jp/toastkid/yobidashi/browser/webview/dialog/ElseCaseLongTapDialogFragment.kt | /*
* Copyright (c) 2018 toastkidjp.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompany this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html.
*/
package jp.... | /*
* Copyright (c) 2018 toastkidjp.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompany this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html.
*/
package jp.... | epl-1.0 | Kotlin |
d14268abe6bdecc8362a5445ef0ec990f6627836 | Extend MergeLayerParameters | KotlinNLP/SimpleDNN | src/main/kotlin/com/kotlinnlp/simplednn/deeplearning/mergelayers/affine/AffineLayerParameters.kt | src/main/kotlin/com/kotlinnlp/simplednn/deeplearning/mergelayers/affine/AffineLayerParameters.kt | /* Copyright 2016-present The KotlinNLP Authors. All Rights Reserved.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, you can obtain one at http://mozilla.org/MPL/2.0/.
* ------------------------------------------... | /* Copyright 2016-present The KotlinNLP Authors. All Rights Reserved.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, you can obtain one at http://mozilla.org/MPL/2.0/.
* ------------------------------------------... | mpl-2.0 | Kotlin |
06d8ac627434a650f566dabcc3dc7a534908c278 | Remove unintended change in ExperimentalMotionApi | androidx/constraintlayout,androidx/constraintlayout,AndroidX/constraintlayout,AndroidX/constraintlayout,AndroidX/constraintlayout,androidx/constraintlayout | constraintlayout/compose/src/main/java/androidx/constraintlayout/compose/ExperimentalMotionApi.kt | constraintlayout/compose/src/main/java/androidx/constraintlayout/compose/ExperimentalMotionApi.kt | /*
* Copyright (C) 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | /*
* Copyright (C) 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | apache-2.0 | Kotlin |
ebce685ee512918328f83b8ef75a806baa09b8e8 | Use the correct throwable when reporting errors to bugsnag (#1785) | square/sqldelight,cashapp/sqldelight,cashapp/sqldelight,cashapp/sqldelight,square/sqldelight,square/sqldelight,square/sqldelight,cashapp/sqldelight | sqldelight-idea-plugin/src/main/kotlin/com/squareup/sqldelight/intellij/SqlDelightErrorHandler.kt | sqldelight-idea-plugin/src/main/kotlin/com/squareup/sqldelight/intellij/SqlDelightErrorHandler.kt | /*
* Copyright (C) 2016 Square, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | /*
* Copyright (C) 2016 Square, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | apache-2.0 | Kotlin |
1e84b4d3034b07377357eb4fef2156d3c163d3c3 | Remove duplicated flags from UiMode | AndroidX/androidx,androidx/androidx,AndroidX/androidx,androidx/androidx,androidx/androidx,androidx/androidx,AndroidX/androidx,AndroidX/androidx,androidx/androidx,androidx/androidx,AndroidX/androidx,androidx/androidx,AndroidX/androidx,androidx/androidx,AndroidX/androidx,androidx/androidx,AndroidX/androidx,AndroidX/andro... | compose/ui/ui-tooling-preview/src/androidMain/kotlin/androidx/compose/ui/tooling/preview/UiMode.kt | compose/ui/ui-tooling-preview/src/androidMain/kotlin/androidx/compose/ui/tooling/preview/UiMode.kt | /*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | /*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | apache-2.0 | Kotlin |
971ad96c51b520575dd35d46da4a5df244cf2b50 | refactor #156 Modify annotation. | toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt | api/src/test/java/jp/toastkid/api/DownloadApiTest.kt | api/src/test/java/jp/toastkid/api/DownloadApiTest.kt | /*
* Copyright (c) 2022 toastkidjp.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompany this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html.
*/
package jp... | /*
* Copyright (c) 2022 toastkidjp.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompany this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html.
*/
package jp... | epl-1.0 | Kotlin |
5d0d74a843191937f106860a43d26ebaf8751701 | Add AttentionNetworkParamsOptimizer | KotlinNLP/SimpleDNN | src/kotlin/com/kotlinnlp/simplednn/deeplearning/attentionnetwork/AttentionNetworkParamsOptimizer.kt | src/kotlin/com/kotlinnlp/simplednn/deeplearning/attentionnetwork/AttentionNetworkParamsOptimizer.kt | /* Copyright 2016-present The KotlinNLP Authors. All Rights Reserved.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, you can obtain one at http://mozilla.org/MPL/2.0/.
* ------------------------------------------... | mpl-2.0 | Kotlin | |
1af16e60e9a00c5daea80608a6987ba2e40094f1 | Add a test for Koin `checkModules` | sksamuel/ktest | kotest-extensions/kotest-extensions-koin/src/jvmTest/kotlin/com/sksamuel/kt/koin/CheckModulesTest.kt | kotest-extensions/kotest-extensions-koin/src/jvmTest/kotlin/com/sksamuel/kt/koin/CheckModulesTest.kt | package com.sksamuel.kt.koin
import io.kotest.assertions.throwables.shouldThrowAny
import io.kotest.core.spec.style.ShouldSpec
import org.koin.dsl.module
import org.koin.test.check.checkModules
class CheckModulesTest : ShouldSpec({
should("Enable check modules") {
checkModules {
modules(koinModule)... | mit | Kotlin | |
8f7c8d0dbd308a4490b034144c5b93d79d984b7d | Add test to verify the issue is solved and remove a part of another test that is now not supported as true positive anymore | Ruben-Sten/TeXiFy-IDEA,Ruben-Sten/TeXiFy-IDEA,Ruben-Sten/TeXiFy-IDEA,Ruben-Sten/TeXiFy-IDEA | test/nl/hannahsten/texifyidea/inspections/latex/redundancy/LatexDuplicateDefinitionInspectionTest.kt | test/nl/hannahsten/texifyidea/inspections/latex/redundancy/LatexDuplicateDefinitionInspectionTest.kt | package nl.hannahsten.texifyidea.inspections.latex.redundancy
import nl.hannahsten.texifyidea.file.LatexFileType
import nl.hannahsten.texifyidea.inspections.TexifyInspectionTestBase
class LatexDuplicateDefinitionInspectionTest : TexifyInspectionTestBase(LatexDuplicateDefinitionInspection()) {
fun testWarning() {... | package nl.hannahsten.texifyidea.inspections.latex.redundancy
import nl.hannahsten.texifyidea.file.LatexFileType
import nl.hannahsten.texifyidea.inspections.TexifyInspectionTestBase
class LatexDuplicateDefinitionInspectionTest : TexifyInspectionTestBase(LatexDuplicateDefinitionInspection()) {
fun testWarning() {... | mit | Kotlin |
cac8d4d15a6523e8299f63740a1eaaa1c553beb6 | fix codestyle | Mauin/detekt,rock3r/detekt,Mauin/detekt,rock3r/detekt,arturbosch/detekt,arturbosch/detekt,rock3r/detekt,Mauin/detekt,MyDogTom/detekt,Mauin/detekt,arturbosch/detekt | detekt-rules/src/test/kotlin/io/gitlab/arturbosch/detekt/rules/style/DataClassContainsFunctionsSpec.kt | detekt-rules/src/test/kotlin/io/gitlab/arturbosch/detekt/rules/style/DataClassContainsFunctionsSpec.kt | package io.gitlab.arturbosch.detekt.rules.style
import io.gitlab.arturbosch.detekt.test.lint
import org.assertj.core.api.Assertions
import org.jetbrains.spek.api.dsl.it
import org.jetbrains.spek.subject.SubjectSpek
/**
* @author Ivan Balaksha
*/
class DataClassContainsFunctionsSpec : SubjectSpek<DataClassContainsF... | package io.gitlab.arturbosch.detekt.rules.style
import io.gitlab.arturbosch.detekt.test.lint
import org.assertj.core.api.Assertions
import org.jetbrains.spek.api.dsl.describe
import org.jetbrains.spek.api.dsl.it
import org.jetbrains.spek.subject.SubjectSpek
/**
* @author Ivan Balaksha
*/
class DataClassContainsFun... | apache-2.0 | Kotlin |
814432b1428f45a11e1e69536da684b9701812f9 | Fix text for BaseExecutorActionWrapper action | 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... | platform/execution-impl/src/com/intellij/execution/segmentedRunDebugWidget/BaseExecutorActionWrapper.kt | platform/execution-impl/src/com/intellij/execution/segmentedRunDebugWidget/BaseExecutorActionWrapper.kt | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.execution.segmentedRunDebugWidget
import com.intellij.execution.Executor
import com.intellij.openapi.actionSystem.AnAction
import com.intellij.openapi.action... | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.execution.segmentedRunDebugWidget
import com.intellij.execution.Executor
import com.intellij.idea.ActionsBundle
import com.intellij.openapi.actionSystem.Acti... | apache-2.0 | Kotlin |
cfde886691e4a3643eb5711c4a045e1824f18217 | Refactor UnsafeCallOnNullableType rule (#3221) | arturbosch/detekt,arturbosch/detekt,arturbosch/detekt | detekt-rules-errorprone/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/bugs/UnsafeCallOnNullableType.kt | detekt-rules-errorprone/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/bugs/UnsafeCallOnNullableType.kt | package io.gitlab.arturbosch.detekt.rules.bugs
import io.gitlab.arturbosch.detekt.api.CodeSmell
import io.gitlab.arturbosch.detekt.api.Config
import io.gitlab.arturbosch.detekt.api.Debt
import io.gitlab.arturbosch.detekt.api.Entity
import io.gitlab.arturbosch.detekt.api.Issue
import io.gitlab.arturbosch.detekt.api.Rul... | package io.gitlab.arturbosch.detekt.rules.bugs
import io.gitlab.arturbosch.detekt.api.CodeSmell
import io.gitlab.arturbosch.detekt.api.Config
import io.gitlab.arturbosch.detekt.api.Debt
import io.gitlab.arturbosch.detekt.api.Entity
import io.gitlab.arturbosch.detekt.api.Issue
import io.gitlab.arturbosch.detekt.api.Rul... | apache-2.0 | Kotlin |
f15a7be1c92e78cf69aab04f092cc808b57ab736 | Make sure notification is shown at most once | Undin/intellij-rust,intellij-rust/intellij-rust,intellij-rust/intellij-rust,Undin/intellij-rust,anton-okolelov/intellij-rust,intellij-rust/intellij-rust,anton-okolelov/intellij-rust,anton-okolelov/intellij-rust,intellij-rust/intellij-rust,anton-okolelov/intellij-rust,Undin/intellij-rust,anton-okolelov/intellij-rust,Und... | src/main/kotlin/org/rust/toml/Util.kt | src/main/kotlin/org/rust/toml/Util.kt | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.toml
import com.intellij.notification.NotificationType
import org.rust.ide.notifications.showBalloonWithoutProject
import org.toml.lang.psi.*
import kotlin.reflect.KProperty
fun tomlPluginIsAb... | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.toml
import com.intellij.notification.NotificationType
import org.rust.ide.notifications.showBalloonWithoutProject
import org.toml.lang.psi.*
import kotlin.reflect.KProperty
fun tomlPluginIsAb... | mit | Kotlin |
8f7b461b941f2d6ca64a53559feace320e2c0f80 | Implement the rest of the IntelliJ 2020.3 EndpointProvider API. | rhdunn/xquery-intellij-plugin,rhdunn/xquery-intellij-plugin | src/intellij-compat/src/microservices/203/uk/co/reecedunn/intellij/microservices/endpoints/EndpointsProvider.kt | src/intellij-compat/src/microservices/203/uk/co/reecedunn/intellij/microservices/endpoints/EndpointsProvider.kt | /*
* Copyright (C) 2020 Reece H. Dunn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | /*
* Copyright (C) 2020 Reece H. Dunn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | apache-2.0 | Kotlin |
042e9b2e1942b6e20594051ffa52b40abc2529a4 | add location test | samirma/MeteoriteLandings,samirma/MeteoriteLandings | app/src/test/java/com/antonio/samir/meteoritelandingsspots/features/detail/viewmodel/MeteoriteDetailViewModelTest.kt | app/src/test/java/com/antonio/samir/meteoritelandingsspots/features/detail/viewmodel/MeteoriteDetailViewModelTest.kt | package com.antonio.samir.meteoritelandingsspots.features.detail.viewmodel
import android.location.Location
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import androidx.lifecycle.MutableLiveData
import com.antonio.samir.meteoritelandingsspots.service.business.MeteoriteServiceInterface
import com.... | package com.antonio.samir.meteoritelandingsspots.features.detail.viewmodel
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import androidx.lifecycle.MutableLiveData
import com.antonio.samir.meteoritelandingsspots.service.business.MeteoriteServiceInterface
import com.antonio.samir.meteoritelandingssp... | mit | Kotlin |
2306a2d6eada4bb2470282a782fbd121567690eb | Fix client websocket nonce size | ktorio/ktor,ktorio/ktor,ktorio/ktor,ktorio/ktor | ktor-client/ktor-client-features/ktor-client-websocket/jvm/src/io/ktor/client/features/websocket/WebSocketContent.kt | ktor-client/ktor-client-features/ktor-client-websocket/jvm/src/io/ktor/client/features/websocket/WebSocketContent.kt | package io.ktor.client.features.websocket
import io.ktor.client.request.*
import io.ktor.http.*
import io.ktor.http.websocket.*
import io.ktor.util.*
import java.util.*
private const val WEBSOCKET_VERSION = "13"
private const val NONCE_SIZE = 16
class WebSocketContent: ClientUpgradeContent() {
private val nonce... | package io.ktor.client.features.websocket
import io.ktor.client.request.*
import io.ktor.http.*
import io.ktor.http.websocket.*
import io.ktor.util.*
import java.util.*
private const val WEBSOCKET_VERSION = "13"
private const val NONCE_SIZE = 24
class WebSocketContent: ClientUpgradeContent() {
private val nonce... | apache-2.0 | Kotlin |
80074177fc46d0df672b03c4a811e1cd60bab146 | Make ascii doc a bit clearer | JetBrains/ideavim,JetBrains/ideavim | src/com/maddyhome/idea/vim/key/Nodes.kt | src/com/maddyhome/idea/vim/key/Nodes.kt | /*
* IdeaVim - Vim emulator for IDEs based on the IntelliJ platform
* Copyright (C) 2003-2019 The IdeaVim authors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the ... | /*
* IdeaVim - Vim emulator for IDEs based on the IntelliJ platform
* Copyright (C) 2003-2019 The IdeaVim authors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the ... | mit | Kotlin |
890f53e46f5c2b4fb0c715e52bc9358f1a2db44a | refactor #506 Delete unused field. | toastkidjp/Jitte,toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt | app/src/main/java/jp/toastkid/yobidashi/media/image/ViewHolder.kt | app/src/main/java/jp/toastkid/yobidashi/media/image/ViewHolder.kt | /*
* Copyright (c) 2019 toastkidjp.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompany this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html.
*/
package jp.... | /*
* Copyright (c) 2019 toastkidjp.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompany this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html.
*/
package jp.... | epl-1.0 | Kotlin |
1145dd6dd91c680ae687faa34adeff9216b821ae | add filesystem metric | nonylene/MackerelAgentAndroid,nonylene/MackerelAgentAndroid,nonylene/MackerelAgentAndroid | app/src/main/java/net/nonylene/mackerelagent/metric/Filesystem.kt | app/src/main/java/net/nonylene/mackerelagent/metric/Filesystem.kt | package net.nonylene.mackerelagent.metric
import android.annotation.TargetApi
import android.os.Build
import io.reactivex.Observable
import io.reactivex.ObservableOnSubscribe
import io.reactivex.schedulers.Schedulers
fun getFileSystemStatsObservable(): Observable<List<FileSystemStat>> {
return Observable.create(O... | mit | Kotlin | |
6b02fd8eba62dd22ca969701292a5fe4095df399 | Add hasPassword field to User | Doist/TodoistPojos,Doist/TodoistModels | src/main/java/com/todoist/pojo/User.kt | src/main/java/com/todoist/pojo/User.kt | package com.todoist.pojo
open class User<T: TzInfo, F: Features>(
id: Long,
email: String,
fullName: String,
imageId: String?,
open var apiToken: String?,
open var tzInfo: T?,
open var isPremium: Boolean,
open var premiumUntil: Long?,
open var fre... | package com.todoist.pojo
open class User<T: TzInfo, F: Features>(
id: Long,
email: String,
fullName: String,
imageId: String?,
open var apiToken: String?,
open var tzInfo: T?,
open var isPremium: Boolean,
open var premiumUntil: Long?,
open var fre... | mit | Kotlin |
30f347d94ea700e18227b519fda990fddc2dbd14 | Add default parameter to MarkdownModule | nickbutcher/plaid,nickbutcher/plaid,nickbutcher/plaid,nickbutcher/plaid | core/src/main/java/io/plaidapp/core/dagger/MarkdownModule.kt | core/src/main/java/io/plaidapp/core/dagger/MarkdownModule.kt | /*
* Copyright 2018 Google, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | /*
* Copyright 2018 Google, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | apache-2.0 | Kotlin |
36eaad90e85f69d2ee26de8188fcba434c937205 | Add presentation for value declaration | intellij-purescript/intellij-purescript,intellij-purescript/intellij-purescript | src/main/java/org/purescript/psi/PSValueDeclaration.kt | src/main/java/org/purescript/psi/PSValueDeclaration.kt | package org.purescript.psi
import com.intellij.lang.ASTNode
import com.intellij.navigation.ItemPresentation
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiNameIdentifierOwner
import com.intellij.psi.util.collectDescendantsOfType
import javax.swing.Icon
class PSValueDeclaration(node: ASTNode) : PSPsiEle... | package org.purescript.psi
import com.intellij.lang.ASTNode
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiNameIdentifierOwner
import com.intellij.psi.util.collectDescendantsOfType
class PSValueDeclaration(node: ASTNode) : PSPsiElement(node),
PsiNameIdentifierOwner {
override fun getName(): Str... | bsd-3-clause | Kotlin |
f4fcaf88baa36d33167c85c5966b23a304a36e1f | validate bst | dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas | kotlin/src/katas/kotlin/leetcode/validate_bst/ValidateBST.kt | kotlin/src/katas/kotlin/leetcode/validate_bst/ValidateBST.kt | package katas.kotlin.leetcode.validate_bst
import katas.kotlin.leetcode.TreeNode
import kotlincommon.test.shouldEqual
import org.junit.Test
class ValidateBSTTests {
@Test fun `determine if binary search tree is valid`() {
TreeNode(1).isValid() shouldEqual true
TreeNode(1, TreeNode(0)).isValid() sh... | package katas.kotlin.leetcode.validate_bst
import katas.kotlin.leetcode.TreeNode
import kotlincommon.test.shouldEqual
import org.junit.Test
class ValidateBSTTests {
@Test fun `determine if binary search tree is valid`() {
TreeNode(1).isValid() shouldEqual true
TreeNode(1, TreeNode(0)).isValid() sh... | unlicense | Kotlin |
b7c5759ddef7351994fe9fc9edbb8065a8064883 | refactor #853 Rename function. | toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt | lib/src/main/java/jp/toastkid/lib/compat/ParcelableCompat.kt | lib/src/main/java/jp/toastkid/lib/compat/ParcelableCompat.kt | /*
* Copyright (c) 2022 toastkidjp.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompany this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html.
*/
package jp... | /*
* Copyright (c) 2022 toastkidjp.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompany this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html.
*/
package jp... | epl-1.0 | Kotlin |
0f08962a328f7b6605f73a2d1626f9637fc79bf6 | Upgrade dependencies | sbrannen/junit-lambda,junit-team/junit-lambda | buildSrc/src/main/kotlin/Versions.kt | buildSrc/src/main/kotlin/Versions.kt | import org.gradle.api.JavaVersion
object Versions {
// Languages
val jvmTarget = JavaVersion.VERSION_1_8
val kotlin = "1.3.21"
// Dependencies
val apiGuardian = "1.0.0"
val junit4 = "4.12"
val ota4j = "1.1.1"
val picocli = "3.9.5"
val univocity = "2.8.1"
// Test Dependencies
... | import org.gradle.api.JavaVersion
object Versions {
// Languages
val jvmTarget = JavaVersion.VERSION_1_8
val kotlin = "1.3.10"
// Dependencies
val apiGuardian = "1.0.0"
val junit4 = "4.12"
val ota4j = "1.1.1"
val picocli = "3.8.2"
val univocity = "2.7.6"
// Test Dependencies
... | epl-1.0 | Kotlin |
46acd670e17b24f5697478d89d2541b59c56ad14 | Fix for incorrect NodeInfo copying. | orbit/orbit,orbit/orbit | src/orbit-server/src/main/kotlin/orbit/server/routing/NodeInfo.kt | src/orbit-server/src/main/kotlin/orbit/server/routing/NodeInfo.kt | /*
Copyright (C) 2015 - 2019 Electronic Arts Inc. All rights reserved.
This file is part of the Orbit Project <https://www.orbit.cloud>.
See license in LICENSE.
*/
package orbit.server.routing
import orbit.server.addressable.AddressableType
import orbit.server.net.NodeId
import orbit.server.net.NodeLease
sealed... | /*
Copyright (C) 2015 - 2019 Electronic Arts Inc. All rights reserved.
This file is part of the Orbit Project <https://www.orbit.cloud>.
See license in LICENSE.
*/
package orbit.server.routing
import orbit.server.addressable.AddressableType
import orbit.server.net.NodeId
import orbit.server.net.NodeLease
sealed... | bsd-3-clause | Kotlin |
bf4cc670810ddb117363744f72102abc1b6874e2 | Add tests for saving a user with roles | BreakOutEvent/breakout-backend,BreakOutEvent/breakout-backend,BreakOutEvent/breakout-backend | src/test/java/backend/model/user/TestUserService.kt | src/test/java/backend/model/user/TestUserService.kt | package backend.model.user
import backend.Integration.IntegrationTest
import org.junit.Test
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder
import kotlin.collections.count
import kotlin.collections.first
import kotlin.test.*
class T... | package backend.model.user
import backend.Integration.IntegrationTest
import org.junit.Test
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder
import kotlin.collections.count
import kotlin.test.*
class TestUserService : IntegrationTest... | agpl-3.0 | Kotlin |
10447dded5583531075b14d20803bb32af02e630 | Enable redux dev tools | luxons/seven-wonders,luxons/seven-wonders,luxons/seven-wonders | sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/redux/Store.kt | sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/redux/Store.kt | package org.luxons.sevenwonders.ui.redux
import org.luxons.sevenwonders.ui.redux.sagas.SagaManager
import redux.RAction
import redux.Store
import redux.WrapperAction
import redux.applyMiddleware
import redux.createStore
import redux.rEnhancer
import kotlin.browser.window
val INITIAL_STATE = SwState()
private fun <A,... | package org.luxons.sevenwonders.ui.redux
import org.luxons.sevenwonders.ui.redux.sagas.SagaManager
import redux.RAction
import redux.Store
import redux.WrapperAction
import redux.applyMiddleware
import redux.compose
import redux.createStore
import redux.rEnhancer
val INITIAL_STATE = SwState()
fun configureStore(
... | mit | Kotlin |
0868ce45b0c735b85f661302c4d0ad4c46775b1f | Add KDoc for View.assignAndGetGeneratedId() | LouisCAD/Splitties,LouisCAD/Splitties,LouisCAD/Splitties | views/src/main/java/splitties/views/ViewIdsGenerator.kt | views/src/main/java/splitties/views/ViewIdsGenerator.kt | /*
* Copyright (c) 2018. Louis Cognault Ayeva Derman
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | /*
* Copyright (c) 2018. Louis Cognault Ayeva Derman
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | apache-2.0 | Kotlin |
b48050fcb24e87287dac7c17ff9e77f2054f3e8e | Fix snackbar layout. | mopsalarm/Pr0,mopsalarm/Pr0,mopsalarm/Pr0 | app/src/main/java/com/pr0gramm/app/ui/Snackbar.kt | app/src/main/java/com/pr0gramm/app/ui/Snackbar.kt | package com.pr0gramm.app.ui
import android.graphics.Color
import android.view.ViewGroup
import androidx.core.view.isEmpty
import com.google.android.material.snackbar.Snackbar
import com.pr0gramm.app.R
import com.pr0gramm.app.util.AndroidUtility
import com.pr0gramm.app.util.dp
fun Snackbar.configureNewStyle(): Snackba... | package com.pr0gramm.app.ui
import android.view.ViewGroup
import com.google.android.material.snackbar.Snackbar
import com.pr0gramm.app.R
import com.pr0gramm.app.util.AndroidUtility
import com.pr0gramm.app.util.dp
fun Snackbar.configureNewStyle(): Snackbar {
val params = view.layoutParams as? ViewGroup.MarginLayou... | mit | Kotlin |
7178c22ac5c191979d188a75cfde500e98cbad7d | Fix internal KDocs in ViewportHint | AndroidX/androidx,androidx/androidx,AndroidX/androidx,AndroidX/androidx,AndroidX/androidx,androidx/androidx,androidx/androidx,AndroidX/androidx,androidx/androidx,AndroidX/androidx,androidx/androidx,AndroidX/androidx,androidx/androidx,androidx/androidx,androidx/androidx,AndroidX/androidx,androidx/androidx,androidx/andro... | paging/common/src/main/kotlin/androidx/paging/ViewportHint.kt | paging/common/src/main/kotlin/androidx/paging/ViewportHint.kt | /*
* Copyright 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | /*
* Copyright 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | apache-2.0 | Kotlin |
141a9968975e8ba4c45dd7f820e89309cfbc2fb6 | Bump app-compat | Adventech/sabbath-school-android-2,Adventech/sabbath-school-android-2,Adventech/sabbath-school-android-2 | buildSrc/src/main/kotlin/dependencies/Versions.kt | buildSrc/src/main/kotlin/dependencies/Versions.kt | package dependencies
object Versions {
const val COROUTINES = "1.5.1"
const val COMPOSE = "1.0.0"
const val MATERIAL = "1.4.0"
const val DESUGAR = "1.1.1"
object AndroidX {
const val APPCOMPAT = "1.3.1"
const val RECYCLER_VIEW = "1.2.1"
const val LIFECYCLE = "2.3.1"
... | package dependencies
object Versions {
const val COROUTINES = "1.5.1"
const val COMPOSE = "1.0.0"
const val MATERIAL = "1.4.0"
const val DESUGAR = "1.1.1"
object AndroidX {
const val APPCOMPAT = "1.2.0"
const val RECYCLER_VIEW = "1.2.1"
const val LIFECYCLE = "2.3.1"
... | mit | Kotlin |
9e5293cdfc1ee7657ddd6627737f93f21b4d408d | Add equals, hashCode and toString to IntQueue back | mibac138/ArgParser,mibac138/ArgParser,mibac138/ArgParser | core/src/main/java/com/github/mibac138/argparser/reader/IntQueue.kt | core/src/main/java/com/github/mibac138/argparser/reader/IntQueue.kt | /*
* Copyright (c) 2017 Michał Bączkowski
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, p... | /*
* Copyright (c) 2017 Michał Bączkowski
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, p... | mit | Kotlin |
ed776029d48ecaf80444becb29e4b2277a8fb42e | implement socket.io client that talks to kapchat | guacamoledragon/twitch-chat,guacamoledragon/twitch-chat | src/main/kotlin/club/guacamoledragon/plugin/kapchat/Client.kt | src/main/kotlin/club/guacamoledragon/plugin/kapchat/Client.kt | package club.guacamoledragon.plugin.kapchat
import io.socket.client.IO
import io.socket.client.Socket
import org.json.JSONObject
const val SOCKET_URL: String = "https://tmi-relay.nightdev.com/"
// TODO: Implement proper logging
class Client(val channel: String) {
private lateinit var socket: Socket
var mess... | apache-2.0 | Kotlin | |
ad17cee3d87c6b1f1ad768bc82915407933aa11c | Use the embedded version of the `kotlin-dsl` plugin | gradle/gradle-script-kotlin,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle-script-kotlin,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,robinverduijn/gradle,blindpirate/g... | buildSrc/build.gradle.kts | buildSrc/build.gradle.kts | import org.gradle.kotlin.dsl.plugins.dsl.KotlinDslCompilerPlugins
import org.gradle.kotlin.dsl.plugins.precompiled.PrecompiledScriptPlugins
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
buildscript {
val kotlinVersion = file("../kotlin-version.txt").readText().trim()
val pluginsExperiments = "gradle... | import org.gradle.kotlin.dsl.plugins.dsl.KotlinDslCompilerPlugins
import org.gradle.kotlin.dsl.plugins.precompiled.PrecompiledScriptPlugins
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
buildscript {
val kotlinVersion = file("../kotlin-version.txt").readText().trim()
val pluginsExperiments = "gradle... | apache-2.0 | Kotlin |
4d7821444c36039d5714f6e9745855835c639a00 | Reduce dialog elevation | pyamsoft/pydroid | ui/src/main/java/com/pyamsoft/pydroid/ui/defaults/DialogDefaults.kt | ui/src/main/java/com/pyamsoft/pydroid/ui/defaults/DialogDefaults.kt | package com.pyamsoft.pydroid.ui.defaults
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
/** Default values for Dialogs */
public object DialogDefaults {
/** Elevation for a Dialog */
public val DialogElevation: Dp = 16.dp
}
| package com.pyamsoft.pydroid.ui.defaults
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
/** Default values for Dialogs */
public object DialogDefaults {
/** Elevation for a Dialog */
public val DialogElevation: Dp = 24.dp
}
| apache-2.0 | Kotlin |
484562f78518165ac0cbd367b703983e412e2912 | Remove redundant package ref. | SpineEventEngine/base,SpineEventEngine/base,SpineEventEngine/base | validate/src/test/kotlin/io/spine/validate/MessageExtensionsTest.kt | validate/src/test/kotlin/io/spine/validate/MessageExtensionsTest.kt | /*
* Copyright 2022, TeamDev. All rights reserved.
*
* 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
*
* Redistribution and use in source... | /*
* Copyright 2022, TeamDev. All rights reserved.
*
* 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
*
* Redistribution and use in source... | apache-2.0 | Kotlin |
952e1627633866d8740b5287c1d833ad75db95a1 | Remove unused param | hzsweers/CatchUp,hzsweers/CatchUp,hzsweers/CatchUp,hzsweers/CatchUp | app/src/debug/kotlin/io/sweers/catchup/ui/bugreport/BugReportView.kt | app/src/debug/kotlin/io/sweers/catchup/ui/bugreport/BugReportView.kt | /*
* Copyright (c) 2017 Zac Sweers
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | /*
* Copyright (c) 2017 Zac Sweers
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | apache-2.0 | Kotlin |
eea12ff06e34b23087ca0011a512f276058b876d | Add manual publishing as dependency to publish | EvidentSolutions/apina,EvidentSolutions/apina,EvidentSolutions/apina | build.gradle.kts | build.gradle.kts | import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import pl.allegro.tech.build.axion.release.domain.TagNameSerializationConfig
import pl.allegro.tech.build.axion.release.domain.VersionConfig
plugins {
id("pl.allegro.tech.build.axion-release") version "1.4.1"
kotlin("jvm") version "1.3.21" apply false
}
v... | import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import pl.allegro.tech.build.axion.release.domain.TagNameSerializationConfig
import pl.allegro.tech.build.axion.release.domain.VersionConfig
plugins {
id("pl.allegro.tech.build.axion-release") version "1.4.1"
kotlin("jvm") version "1.3.21" apply false
}
v... | mit | Kotlin |
b8dd6cb3dcfd78dbdb81404e4b93e70df88feeb2 | mark "links" directory as a sources root in IDEA. (#234) | KotlinBy/awesome-kotlin,KotlinBy/awesome-kotlin,KotlinBy/awesome-kotlin,KotlinBy/awesome-kotlin | build.gradle.kts | build.gradle.kts | import org.gradle.kotlin.dsl.apply
import org.gradle.kotlin.dsl.extra
import org.gradle.kotlin.dsl.kotlin
import org.gradle.kotlin.dsl.repositories
import org.jetbrains.kotlin.gradle.dsl.Coroutines
import org.jetbrains.kotlin.gradle.dsl.KotlinProjectExtension
val kotlinVersion = "1.1.51"
val commonMarkVersion = "0.9.0... | import org.gradle.kotlin.dsl.apply
import org.gradle.kotlin.dsl.extra
import org.gradle.kotlin.dsl.kotlin
import org.gradle.kotlin.dsl.repositories
import org.jetbrains.kotlin.gradle.dsl.Coroutines
import org.jetbrains.kotlin.gradle.dsl.KotlinProjectExtension
val kotlinVersion = "1.1.51"
val commonMarkVersion = "0.9.0... | apache-2.0 | Kotlin |
6815b284e94c277c6b8dde99e66e2311e1dcebbb | Bump com.github.ben-manes.versions from 0.41.0 to 0.42.0 | gesellix/gradle-docker-plugin,gesellix/gradle-docker-plugin | build.gradle.kts | build.gradle.kts | plugins {
id("maven-publish")
id("com.github.ben-manes.versions") version "0.42.0"
id("net.ossindex.audit") version "0.4.11"
id("com.gradle.plugin-publish") version "0.20.0" apply false
id("io.freefair.maven-central.validate-poms") version "6.3.0"
id("io.github.gradle-nexus.publish-plugin") version "1.1.0"
... | plugins {
id("maven-publish")
id("com.github.ben-manes.versions") version "0.41.0"
id("net.ossindex.audit") version "0.4.11"
id("com.gradle.plugin-publish") version "0.20.0" apply false
id("io.freefair.maven-central.validate-poms") version "6.3.0"
id("io.github.gradle-nexus.publish-plugin") version "1.1.0"
... | mit | Kotlin |
4d24bf573d36e226f54ec05b28e38743ab625de1 | Update gradle-git-release-plugin to the latest | kamatama41/embulk-test-helpers,kamatama41/embulk-test-helpers | build.gradle.kts | build.gradle.kts | import com.github.kamatama41.gradle.gitrelease.GitReleaseExtension
buildscript {
val kotlinVersion = "1.2.31"
extra["kotlinVersion"] = kotlinVersion
repositories {
jcenter()
maven { setUrl("http://kamatama41.github.com/maven-repository/repository") }
}
dependencies {
classpa... | import com.github.kamatama41.gradle.gitrelease.GitReleaseExtension
buildscript {
val kotlinVersion = "1.2.31"
extra["kotlinVersion"] = kotlinVersion
repositories {
jcenter()
maven { setUrl("http://kamatama41.github.com/maven-repository/repository") }
}
dependencies {
classpa... | mit | Kotlin |
ed33da02b69245e9f3d704aacf67a1e3a12e73f5 | update anko to 0.10.1 | dsjlzh/Mobsec,dsjlzh/Mobsec | build.gradle.kts | build.gradle.kts | import org.jetbrains.kotlin.gradle.dsl.Coroutines
buildscript {
dependencies {
classpath("com.android.tools.build:gradle:3.0.0-alpha2")
classpath(kotlinModule("gradle-plugin", "1.1.2-4"))
}
repositories {
maven { url = uri("https://maven.google.com") }
jcenter()
}
}
app... | import org.jetbrains.kotlin.gradle.dsl.Coroutines
buildscript {
dependencies {
classpath("com.android.tools.build:gradle:3.0.0-alpha2")
classpath(kotlinModule("gradle-plugin", "1.1.2-4"))
}
repositories {
maven { url = uri("https://maven.google.com") }
jcenter()
}
}
app... | apache-2.0 | Kotlin |
82ea4ea1b4d699e18205700e67c4f3debfec8ece | change plugin version | siosio/GradleDependenciesHelperPlugin | build.gradle.kts | build.gradle.kts | buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.30")
}
}
plugins {
id("org.jetbrains.intellij") version "0.4.8"
}
apply(plugin = "java")
apply(plugin = "kotlin")
version = "1.15"
dependencies {
implementati... | buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.30")
}
}
plugins {
id("org.jetbrains.intellij") version "0.4.8"
}
apply(plugin = "java")
apply(plugin = "kotlin")
version = "1.14"
dependencies {
implementati... | mit | Kotlin |
b2449a83d33d5b24b1d478170a964be660171f64 | Integrate the junit-reporter plugin for HTML reports | EPadronU/balin,EPadronU/balin | build.gradle.kts | build.gradle.kts | /* Imports *******************************************************************/
import org.gradle.api.plugins.ExtensionAware
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.junit.platform.gradle.plugin.EnginesExtension
import org.junit.platform.gradle.plugin.FiltersExtension
import org.junit.platform.... | /* Imports *******************************************************************/
import org.gradle.api.plugins.ExtensionAware
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.junit.platform.gradle.plugin.EnginesExtension
import org.junit.platform.gradle.plugin.FiltersExtension
import org.junit.platform.... | apache-2.0 | Kotlin |
e58e45bc838b5dbe5c4cb465a647c0affa0fb4cd | test structure of cargo toolwindow tree | intellij-rust/intellij-rust,intellij-rust/intellij-rust,Undin/intellij-rust,Undin/intellij-rust,Undin/intellij-rust,intellij-rust/intellij-rust,Undin/intellij-rust,Undin/intellij-rust,intellij-rust/intellij-rust,intellij-rust/intellij-rust,intellij-rust/intellij-rust,Undin/intellij-rust | src/test/kotlin/org/rustSlowTests/CargoProjectStructureTest.kt | src/test/kotlin/org/rustSlowTests/CargoProjectStructureTest.kt | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rustSlowTests
import com.intellij.testFramework.PlatformTestUtil
import org.rust.FileTreeBuilder
import org.rust.cargo.RustWithToolchainTestBase
import org.rust.cargo.project.model.cargoProjects
impo... | mit | Kotlin | |
ce0861ab248c1c4c6ebf34673e23d3140e77c60f | Bump Kotlin -> `1.6.21` | SpineEventEngine/base,SpineEventEngine/base,SpineEventEngine/base | buildSrc/src/main/kotlin/io/spine/internal/dependency/Kotlin.kt | buildSrc/src/main/kotlin/io/spine/internal/dependency/Kotlin.kt | /*
* Copyright 2022, TeamDev. All rights reserved.
*
* 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
*
* Redistribution and use in source... | /*
* Copyright 2022, TeamDev. All rights reserved.
*
* 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
*
* Redistribution and use in source... | apache-2.0 | Kotlin |
83ba8322983024f57875d76b28be52aa50d40aaf | add NameFormatter | jayrave/falkon | falkon-core/src/main/kotlin/com/jayrave/falkon/NameFormatter.kt | falkon-core/src/main/kotlin/com/jayrave/falkon/NameFormatter.kt | package com.jayrave.falkon
interface NameFormatter {
fun getColumnNameFor(propertyName: String): String
} | apache-2.0 | Kotlin | |
2af70ed644a475d69953858c7491de47d55ce666 | add two numbers | dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas | kotlin/src/katas/kotlin/leetcode/addtwonumbers/AddTwoNumbers.kt | kotlin/src/katas/kotlin/leetcode/addtwonumbers/AddTwoNumbers.kt | package katas.kotlin.leetcode.addtwonumbers
import kotlincommon.test.shouldEqual
import org.junit.Test
class AddTwoNumbers {
@Test fun `convert integer to linked list`() {
0.toLinkedList() shouldEqual ListNode(0)
1.toLinkedList() shouldEqual ListNode(1)
12.toLinkedList() shouldEqual ListNo... | package katas.kotlin.leetcode.addtwonumbers
import kotlincommon.test.shouldEqual
import org.junit.Test
class AddTwoNumbers {
@Test fun `convert integer to linked list`() {
0.toLinkedList() shouldEqual ListNode(0)
1.toLinkedList() shouldEqual ListNode(1)
12.toLinkedList() shouldEqual ListNo... | unlicense | Kotlin |
5a9d60de023ee28924dce36681f24d4058238ff9 | Bump Mockk | fcostaa/kotlin-microservice,fcostaa/kotlin-microservice,fcostaa/kotlin-microservice | app/build.gradle.kts | app/build.gradle.kts | import org.gradle.kotlin.dsl.kotlin
import org.unbrokendome.gradle.plugins.testsets.TestSetsPlugin
group = "com.felipecosta.microservice"
version = "0.2"
plugins {
id("org.unbroken-dome.test-sets").version("1.4.2")
id("com.avast.gradle.docker-compose").version("0.7.1")
}
val acceptanceTest = testSets.create(... | import org.gradle.kotlin.dsl.kotlin
import org.unbrokendome.gradle.plugins.testsets.TestSetsPlugin
group = "com.felipecosta.microservice"
version = "0.2"
plugins {
id("org.unbroken-dome.test-sets").version("1.4.2")
id("com.avast.gradle.docker-compose").version("0.7.1")
}
val acceptanceTest = testSets.create(... | mit | Kotlin |
38b2c65830c254ea85876df9b276d23f4e366670 | Remove kapt plugin | fcostaa/kotlin-microservice,fcostaa/kotlin-microservice,fcostaa/kotlin-microservice | app/build.gradle.kts | app/build.gradle.kts | import org.gradle.kotlin.dsl.kotlin
import org.unbrokendome.gradle.plugins.testsets.TestSetsPlugin
group = "com.felipecosta.microservice"
version = "0.2"
plugins {
id("org.unbroken-dome.test-sets").version("1.4.2")
}
val acceptanceTest = testSets.create("acceptanceTest")
val acceptanceTestCompile = acceptanceTe... | import org.gradle.kotlin.dsl.kotlin
import org.unbrokendome.gradle.plugins.testsets.TestSetsPlugin
group = "com.felipecosta.microservice"
version = "0.2"
plugins {
kotlin("kapt")
id("org.unbroken-dome.test-sets").version("1.4.2")
}
val acceptanceTest = testSets.create("acceptanceTest")
val acceptanceTestCom... | mit | Kotlin |
ff54bcb19f036a8d088050326c19662e5c33a88e | Use Prefs for ALWAYS_DARK to avoid crashing in Direct Boot mode | romannurik/muzei,romannurik/muzei,romannurik/muzei,ianhanniballake/muzei,ianhanniballake/muzei,romannurik/muzei,ianhanniballake/muzei,romannurik/muzei,ianhanniballake/muzei,ianhanniballake/muzei | main/src/main/java/com/google/android/apps/muzei/MuzeiApplication.kt | main/src/main/java/com/google/android/apps/muzei/MuzeiApplication.kt | /*
* Copyright 2019 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | /*
* Copyright 2019 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | apache-2.0 | Kotlin |
3b9d24909b6deb1470e7a63be6cc38ff47e64a75 | Add comment to continue to Variables.kt | mewebstudio/Kotlin101,dodyg/Kotlin101 | src/Strings.kt | src/Strings.kt | package Kotlin101.Strings
fun main(args : Array<String>) {
var plato1 = "Wise men speak because they have something to say; Fools because they have to say something."
//This is a single line string
println("I love ancient philosophy.")
//Use triple quote """ to go multi line. This also means that you... | package Kotlin101.Strings
fun main(args : Array<String>) {
var plato1 = "Wise men speak because they have something to say; Fools because they have to say something."
//This is a single line string
println("I love ancient philosophy.")
//Use triple quote """ to go multi line. This also means that you... | bsd-3-clause | Kotlin |
15345ad980b12edc73325693513eb20429b6de8c | Apply latest released plugin version on itself. | JLLeitschuh/ktlint-gradle,JLLeitschuh/ktlint-gradle | plugin/buildSrc/src/main/kotlin/PluginDependencies.kt | plugin/buildSrc/src/main/kotlin/PluginDependencies.kt | object PluginVersions {
val kotlin = "1.3.50"
val ktlintPlugin = "9.1.1"
val gradlePublishPlugin = "0.10.1"
val androidPlugin = "3.5.0"
val semver = "1.1.1"
val gradleWrapper = "5.6.2"
val junit5 = "5.4.0"
val assertJ = "3.11.1"
}
| object PluginVersions {
val kotlin = "1.3.50"
val ktlintPlugin = "9.0.0"
val gradlePublishPlugin = "0.10.1"
val androidPlugin = "3.5.0"
val semver = "1.1.1"
val gradleWrapper = "5.6.2"
val junit5 = "5.4.0"
val assertJ = "3.11.1"
}
| mit | Kotlin |
dfc064d6edafa81d40de5a47859de4c353621441 | remove comment - seems to work ok | Eluinhost/anonymous | src/main/kotlin/Disguiser.kt | src/main/kotlin/Disguiser.kt | package gg.uhc.anonymous
import com.comphenix.protocol.PacketType
import com.comphenix.protocol.events.PacketAdapter
import com.comphenix.protocol.events.PacketEvent
import com.comphenix.protocol.wrappers.PlayerInfoData
import com.comphenix.protocol.wrappers.WrappedChatComponent
import com.comphenix.protocol.wrappers.... | package gg.uhc.anonymous
import com.comphenix.protocol.PacketType
import com.comphenix.protocol.events.PacketAdapter
import com.comphenix.protocol.events.PacketEvent
import com.comphenix.protocol.wrappers.PlayerInfoData
import com.comphenix.protocol.wrappers.WrappedChatComponent
import com.comphenix.protocol.wrappers.... | mit | Kotlin |
58afc7bf0081af71089f08f60da2972283ed077c | print parse result | nryotaro/edgar-crawler,nryotaro/edgar-crawler,nryotaro/edgar-crawler,nryotaro/edgar-crawler | src/test/kotlin/org/nryotaro/edgar/repository/IndexRepositoryTest.kt | src/test/kotlin/org/nryotaro/edgar/repository/IndexRepositoryTest.kt | package org.nryotaro.edgar.repository
import org.junit.Test
import org.nryotaro.edgar.EdgarTest
import org.springframework.beans.factory.annotation.Autowired
import java.time.LocalDate
class IndexRepositoryTest : EdgarTest() {
@Autowired
lateinit var indexRepository: IndexRepository
@Test
fun retrie... | package org.nryotaro.edgar.repository
import org.junit.Test
import org.nryotaro.edgar.EdgarTest
import org.springframework.beans.factory.annotation.Autowired
import java.time.LocalDate
class IndexRepositoryTest : EdgarTest() {
@Autowired
lateinit var indexRepository: IndexRepository
@Test
fun retrie... | mit | Kotlin |
bd4e0483c948d40808de66ef6d150960542060ff | fix android test dependencies | mockk/mockk,mockk/mockk,mockk/mockk,mockk/mockk,mockk/mockk,mockk/mockk | modules/mockk-android/build.gradle.kts | modules/mockk-android/build.gradle.kts | import buildsrc.config.Deps
plugins {
buildsrc.convention.`android-library`
buildsrc.convention.`mockk-publishing`
}
description = "Mocking library for Kotlin (Android instrumented test)"
val mavenName: String by extra("MockK Android")
val mavenDescription: String by extra("${project.description}")
@Suppre... | import buildsrc.config.Deps
plugins {
buildsrc.convention.`android-library`
buildsrc.convention.`mockk-publishing`
}
description = "Mocking library for Kotlin (Android instrumented test)"
val mavenName: String by extra("MockK Android")
val mavenDescription: String by extra("${project.description}")
@Suppre... | apache-2.0 | Kotlin |
58ff631144f1c7d73a1e752e367d842453d34f0f | Fix to allow negative signs for hex/binary immediates | kvakil/venus,kvakil/venus,kvakil/venus | src/main/kotlin/venus/riscv/utils.kt | src/main/kotlin/venus/riscv/utils.kt | package venus.riscv
fun userStringToInt(s: String): Int {
if (isCharacterLiteral(s)) {
return characterLiteralToInt(s)
}
val radix = when {
s.startsWith("0x") -> 16
s.startsWith("0b") -> 2
s.drop(1).startsWith("0x") -> 16
s.drop(1).startsWith("0b") -> 2
else... | package venus.riscv
fun userStringToInt(s: String): Int {
if (isCharacterLiteral(s)) {
return characterLiteralToInt(s)
}
val radix = when (s.take(2)) {
"0x" -> 16
"0b" -> 2
else -> return s.toLong().toInt()
}
return s.drop(2).toLong(radix).toInt()
}
private fun isCh... | mit | Kotlin |
ab3cd7d3ac764b7ee416b21b608bc6f2463f7f88 | Add option to create a text with defStyle | facebook/litho,facebook/litho,facebook/litho,facebook/litho,facebook/litho,facebook/litho | litho-widget-kotlin/src/main/kotlin/com/facebook/litho/widget/Text.kt | litho-widget-kotlin/src/main/kotlin/com/facebook/litho/widget/Text.kt | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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 applic... | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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 applic... | apache-2.0 | Kotlin |
9500210b1fcca0911b0ce6929869fb253b481ba4 | Fix typo in match intention text | ujpv/intellij-rust,anton-okolelov/intellij-rust,alygin/intellij-rust,alygin/intellij-rust,Undin/intellij-rust,himikof/intellij-rust,himikof/intellij-rust,himikof/intellij-rust,ujpv/intellij-rust,Undin/intellij-rust,alygin/intellij-rust,ujpv/intellij-rust,ujpv/intellij-rust,intellij-rust/intellij-rust,intellij-rust/inte... | src/main/kotlin/org/rust/ide/intentions/MatchToIfLetIntention.kt | src/main/kotlin/org/rust/ide/intentions/MatchToIfLetIntention.kt | package org.rust.ide.intentions
import com.intellij.codeInsight.intention.PsiElementBaseIntentionAction
import com.intellij.openapi.editor.Editor
import com.intellij.openapi.project.Project
import com.intellij.psi.PsiElement
import org.rust.lang.core.psi.*
import org.rust.lang.core.psi.util.getNextNonCommentSibling
im... | package org.rust.ide.intentions
import com.intellij.codeInsight.intention.PsiElementBaseIntentionAction
import com.intellij.openapi.editor.Editor
import com.intellij.openapi.project.Project
import com.intellij.psi.PsiElement
import org.rust.lang.core.psi.*
import org.rust.lang.core.psi.util.getNextNonCommentSibling
im... | mit | Kotlin |
46caed66f417256dcb47f4bfcb1f46e69547d333 | Update problem 2185 | fredyw/leetcode,fredyw/leetcode,fredyw/leetcode,fredyw/leetcode | src/main/kotlin/leetcode/Problem2185.kt | src/main/kotlin/leetcode/Problem2185.kt | package leetcode
/**
* https://leetcode.com/problems/counting-words-with-a-given-prefix/
*/
class Problem2185 {
fun prefixCount(words: Array<String>, pref: String): Int {
return words.count { it.startsWith(pref) }
}
}
| package leetcode
/**
* https://leetcode.com/problems/counting-words-with-a-given-prefix/
*/
class Problem2185 {
fun prefixCount(words: Array<String>, pref: String): Int {
return words.count { it.startsWith(pref) }
}
}
fun main() {
val prob = Problem2185()
println(prob.prefixCount(arrayOf("pa... | mit | Kotlin |
99a7c29a44647da3b7f8089ec1d8df8477ef4d97 | Add todo | shiraji/find-pull-request | src/com/github/shiraji/findpullrequest/action/FindPullRequestAction.kt | src/com/github/shiraji/findpullrequest/action/FindPullRequestAction.kt | package com.github.shiraji.findpullrequest.action
import com.intellij.openapi.actionSystem.AnAction
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.actionSystem.CommonDataKeys
import git4idea.annotate.GitFileAnnotation
import git4idea.changes.GitChangeUtils
import git4idea.history.Gi... | package com.github.shiraji.findpullrequest.action
import com.intellij.openapi.actionSystem.AnAction
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.actionSystem.CommonDataKeys
import git4idea.annotate.GitFileAnnotation
import git4idea.changes.GitChangeUtils
import git4idea.history.Gi... | apache-2.0 | Kotlin |
29aa31ee66aec7803d045b342b28e8e33125fda0 | Use jodatime to parse dates. | bihe/mydms-java,bihe/mydms-java,bihe/mydms-java,bihe/mydms-java,bihe/mydms-java | Api/src/test/kotlin/net/binggl/mydms/features/upload/UploadModelTest.kt | Api/src/test/kotlin/net/binggl/mydms/features/upload/UploadModelTest.kt | package net.binggl.mydms.features.upload
import FixtureHelpers
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
import net.binggl.mydms.features.upload.models.UploadItem
import org.joda.time.format.DateTimeFormat
import org.junit.Assert
import org.junit.Test
import java.text.SimpleDateFormat
class Uploa... | package net.binggl.mydms.features.upload
import FixtureHelpers
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
import net.binggl.mydms.features.upload.models.UploadItem
import org.junit.Assert
import org.junit.Test
import java.text.SimpleDateFormat
class UploadModelTest {
@Test
fun serializeTo... | apache-2.0 | Kotlin |
804dd9408478e5f8de878ebab3271c62d7049e6e | Add `loadImage()` extension function to ImageView in ViewExt.kt | igorini/kotlin-android-app | app/src/main/java/com/igorini/kotlin/android/app/view/common/ViewExt.kt | app/src/main/java/com/igorini/kotlin/android/app/view/common/ViewExt.kt | package com.igorini.kotlin.android.app.view.common
import android.app.Activity
import android.support.v7.widget.RecyclerView
import android.view.View
import android.widget.ImageView
import com.bumptech.glide.Glide
fun <T : View> Activity.bindView(viewId: Int) = lazy { findViewById<T>(viewId) }
fun <T : View> Recycle... | package com.igorini.kotlin.android.app.view.common
import android.app.Activity
import android.support.v7.widget.RecyclerView
import android.view.View
fun <T : View> Activity.bindView(viewId: Int) = lazy { findViewById<T>(viewId) }
fun <T : View> RecyclerView.ViewHolder.bindView(viewId: Int) = lazy { itemView.findView... | apache-2.0 | Kotlin |
9403b1cf666263625715ecb6991a9944ed4d26d0 | Add mismatch description | qaware/majx,qaware/majx | src/main/kotlin/de/qaware/majx/hamcrest/IsMatchingJson.kt | src/main/kotlin/de/qaware/majx/hamcrest/IsMatchingJson.kt | package de.qaware.majx.hamcrest
import de.qaware.majx.assertJsonMatches
import org.hamcrest.Description
import org.hamcrest.Matcher
import org.hamcrest.TypeSafeMatcher
/**
* This is a simple wrapper around Majx, making it usable as a Hamcrest matcher.
*/
class IsMatchingJson constructor(private val pattern: String)... | package de.qaware.majx.hamcrest
import de.qaware.majx.assertJsonMatches
import org.hamcrest.Description
import org.hamcrest.Matcher
import org.hamcrest.TypeSafeMatcher
/**
* This is a simple wrapper around Majx, making it usable as a Hamcrest matcher.
*/
class IsMatchingJson constructor(private val pattern: String)... | mit | Kotlin |
6b9b127640bf837a2e07fc09b049bc6b687f6f53 | fix compilation | Undin/intellij-rust,himikof/intellij-rust,intellij-rust/intellij-rust,anton-okolelov/intellij-rust,ujpv/intellij-rust,Undin/intellij-rust,Undin/intellij-rust,intellij-rust/intellij-rust,intellij-rust/intellij-rust,ujpv/intellij-rust,d9n/intellij-rust,anton-okolelov/intellij-rust,intellij-rust/intellij-rust,intellij-rus... | src/main/kotlin/org/rust/lang/core/type/RustStructType.kt | src/main/kotlin/org/rust/lang/core/type/RustStructType.kt | package org.rust.lang.core.type
import org.rust.lang.core.psi.RustImplItem
import org.rust.lang.core.psi.RustMod
import org.rust.lang.core.psi.RustStructItem
import org.rust.lang.core.psi.util.parentOfType
data class RustStructType(val struct: RustStructItem) : RustResolvedType {
override val inheritedImpls: Coll... | package org.rust.lang.core.type
import org.rust.lang.core.psi.RustImplItem
import org.rust.lang.core.psi.RustMod
import org.rust.lang.core.psi.RustStructItem
import org.rust.lang.core.psi.util.parentOfType
data class RustStructType(val struct: RustStructItem) : RustResolvedType {
override val inheritedImpls: Coll... | mit | Kotlin |
26d9e05b6a81ff80edc633ac4461ad936f9851a5 | Add line and column to ParseException message (#702) | shyiko/ktlint,shyiko/ktlint,shyiko/ktlint,shyiko/ktlint | ktlint-core/src/main/kotlin/com/pinterest/ktlint/core/ParseException.kt | ktlint-core/src/main/kotlin/com/pinterest/ktlint/core/ParseException.kt | package com.pinterest.ktlint.core
/**
* @param line line number (one-based)
* @param col column number (one-based)
* @param message message
*/
class ParseException(val line: Int, val col: Int, message: String) : RuntimeException("$line:$col $message")
| package com.pinterest.ktlint.core
/**
* @param line line number (one-based)
* @param col column number (one-based)
* @param message message
*/
class ParseException(val line: Int, val col: Int, message: String) : RuntimeException(message)
| mit | Kotlin |
a62ebdee5ca8837f10623bce9f0e9b6c2f2c60b8 | Make enum converter non-nullable | google/ground-android,google/ground-android,google/ground-android | gnd/src/main/java/com/google/android/gnd/util/Enums.kt | gnd/src/main/java/com/google/android/gnd/util/Enums.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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | /*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | apache-2.0 | Kotlin |
501049625513be8283eecf720624db0b34e43900 | Change to postfix increment | kvakil/venus,kvakil/venus,kvakil/venus | src/main/kotlin/simulator/Simulator.kt | src/main/kotlin/simulator/Simulator.kt | package venus.simulator
import venus.riscv.Instruction
import venus.riscv.InstructionField
import venus.riscv.MemorySegments
import venus.riscv.Program
/** Right now, this is a loose wrapper around SimulatorState
Eventually, it will support debugging. */
class Simulator(prog: Program) {
val state = SimulatorS... | package venus.simulator
import venus.riscv.Instruction
import venus.riscv.InstructionField
import venus.riscv.MemorySegments
import venus.riscv.Program
/** Right now, this is a loose wrapper around SimulatorState
Eventually, it will support debugging. */
class Simulator(prog: Program) {
val state = SimulatorS... | mit | Kotlin |
547971a5fc1de27bee0a8a12a118002d851b6bd0 | Migrate method call to OkHttps extension function call | scana/ok-gradle,scana/ok-gradle | test/me/scana/okgradle/data/TestUtil.kt | test/me/scana/okgradle/data/TestUtil.kt | package me.scana.okgradle.data
import okhttp3.*
import okhttp3.MediaType.Companion.toMediaType
import okhttp3.ResponseBody.Companion.toResponseBody
class TestInterceptor : Interceptor {
var recentRequest: Request? = null
private var response: Response = buildResponse("".toResponseBody("text/plain".toMediaTyp... | package me.scana.okgradle.data
import okhttp3.*
import okhttp3.MediaType.Companion.toMediaType
import okhttp3.ResponseBody.Companion.toResponseBody
class TestInterceptor : Interceptor {
var recentRequest: Request? = null
private var response: Response = buildResponse("".toResponseBody("text/plain".toMediaTyp... | apache-2.0 | Kotlin |
a8f52e6b16cfe0b4f625e0f881e0d4c8c441c0ae | Add not compiling MainUi file | LouisCAD/Splitties,LouisCAD/Splitties,LouisCAD/Splitties | sample/src/main/java/xyz/louiscad/splittiessample/ui/activity/MainUi.kt | sample/src/main/java/xyz/louiscad/splittiessample/ui/activity/MainUi.kt | /*
* Copyright (c) 2018. Louis Cognault Ayeva Derman
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | apache-2.0 | Kotlin | |
0743e00e42ade1072536bf30a12e172352696357 | Add UseExperimental annotation | LouisCAD/Splitties,LouisCAD/Splitties,LouisCAD/Splitties | sample/src/main/kotlin/com/louiscad/splittiessample/demo/DemoAdapter.kt | sample/src/main/kotlin/com/louiscad/splittiessample/demo/DemoAdapter.kt | /*
* Copyright (c) 2018. Louis Cognault Ayeva Derman
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | /*
* Copyright (c) 2018. Louis Cognault Ayeva Derman
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | apache-2.0 | Kotlin |
18b3122290ab1ecb8a6a770aec1b8a2ad0528fde | Add Arrow to FOSS licences | squanchy-dev/squanchy-android,squanchy-dev/squanchy-android,squanchy-dev/squanchy-android | app/src/main/java/net/squanchy/about/licenses/Libraries.kt | app/src/main/java/net/squanchy/about/licenses/Libraries.kt | package net.squanchy.about.licenses
internal object Libraries {
val LIBRARIES = listOf(
Library("Squanchy", "the Squanchy Contributors", License.APACHE_2),
Library("Android", "Google Inc. and the Open Handset Alliance", License.APACHE_2),
Library("Android Support Library", "Goo... | package net.squanchy.about.licenses
internal object Libraries {
val LIBRARIES = listOf(
Library("Squanchy", "the Squanchy Contributors", License.APACHE_2),
Library("Android", "Google Inc. and the Open Handset Alliance", License.APACHE_2),
Library("Android Support Library", "Goo... | apache-2.0 | Kotlin |
3797ae78b4b78c5daaa72efd30d7d50e68b2b998 | Fix how sqaure view measures its height. | mg6maciej/fluffy-octo-rotary-phone,mg6maciej/fluffy-octo-rotary-phone,mg6maciej/fluffy-octo-rotary-phone | app/src/main/java/pl/mg6/likeornot/view/SquareViewPager.kt | app/src/main/java/pl/mg6/likeornot/view/SquareViewPager.kt | package pl.mg6.likeornot.view
import android.content.Context
import android.support.v4.view.ViewPager
import android.util.AttributeSet
class SquareViewPager : ViewPager {
constructor(context: Context?) : super(context)
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs)
override... | package pl.mg6.likeornot.view
import android.content.Context
import android.support.v4.view.ViewPager
import android.util.AttributeSet
class SquareViewPager : ViewPager {
constructor(context: Context?) : super(context)
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs)
override... | apache-2.0 | Kotlin |
c448557e428454b199ee882f7ff54d34e544ed3b | Use snackengage-playrate v.0.19. | EventFahrplan/EventFahrplan,EventFahrplan/EventFahrplan | buildSrc/src/main/kotlin/nerd/tuxmobil/fahrplan/congress/Dependencies.kt | buildSrc/src/main/kotlin/nerd/tuxmobil/fahrplan/congress/Dependencies.kt | @file:Suppress("MayBeConstant", "unused")
package nerd.tuxmobil.fahrplan.congress
object Versions {
val androidGradle = "3.3.2"
val assertjAndroid = "1.2.0"
val emailIntentBuilder = "1.0.0"
val espresso = "3.0.2"
val gradleVersions = "0.21.0"
val junit = "4.12"
val kotlin = "1.3.21"
va... | @file:Suppress("MayBeConstant", "unused")
package nerd.tuxmobil.fahrplan.congress
object Versions {
val androidGradle = "3.3.2"
val assertjAndroid = "1.2.0"
val emailIntentBuilder = "1.0.0"
val espresso = "3.0.2"
val gradleVersions = "0.21.0"
val junit = "4.12"
val kotlin = "1.3.21"
va... | apache-2.0 | Kotlin |
68b96913bfbbb372effa1c86297b1e155c3922df | Rewrite findRelativeFile to be a little more readable again | dmeybohm/chocolate-cakephp,dmeybohm/chocolate-cakephp,dmeybohm/chocolate-cakephp | src/com/daveme/intellij/chocolateCakePHP/util/findRelativeFile.kt | src/com/daveme/intellij/chocolateCakePHP/util/findRelativeFile.kt | package com.daveme.intellij.chocolateCakePHP.util
import com.intellij.openapi.vfs.VfsUtil.findRelativeFile as vfsUtilFindRelativeFile
import com.intellij.openapi.vfs.VirtualFile
import com.intellij.psi.PsiDirectory
fun findRelativeFile(dir: PsiDirectory?, childPath: String): VirtualFile? {
if (dir == null) {
... | package com.daveme.intellij.chocolateCakePHP.util
import com.intellij.openapi.vfs.VfsUtil.findRelativeFile as vfsUtilFindRelativeFile
import com.intellij.openapi.vfs.VirtualFile
import com.intellij.psi.PsiDirectory
fun findRelativeFile(dir: PsiDirectory?, childPath: String): VirtualFile? {
if (dir == null) {
... | mit | Kotlin |
836121880bc8c568ff43f1b72aa875e9325bcb15 | refactor of lens | http4k/http4k,http4k/http4k,grover-ws-1/http4k,http4k/http4k,http4k/http4k,grover-ws-1/http4k,grover-ws-1/http4k,grover-ws-1/http4k,http4k/http4k,http4k/http4k,http4k/http4k,grover-ws-1/http4k | src/main/kotlin/org/reekwest/http/contract/Lens.kt | src/main/kotlin/org/reekwest/http/contract/Lens.kt | package org.reekwest.http.contract
typealias Get<IN, OUT> = (IN) -> List<OUT>
typealias Set<IN, OUT> = (List<OUT>, IN) -> IN
data class BiDiLens<IN, OUT>(val getLens: Get<IN, OUT>, val setLens: Set<IN, OUT>)
class GetLens<in IN, MID, out OUT>(private val rootFn: (String, IN) -> List<MID>, private val fn: (MID) -> O... | package org.reekwest.http.contract
typealias Get<IN, OUT> = (IN) -> List<OUT>
typealias Set<IN, OUT> = (List<OUT>, IN) -> IN
data class BiDiLens<IN, OUT>(val getLens: Get<IN, OUT>, val setLens: Set<IN, OUT>)
class GetLens<in IN, MID, out OUT>(private val rootFn: (String, IN) -> List<MID>, private val fn: (MID) -> O... | apache-2.0 | Kotlin |
223dc1892efed027da0677fb992ec25e84d53646 | add one more use-case | jonnyzzz/spring_io_2017 | src/v9-proxy/src/main/java/plugin_1.kt | src/v9-proxy/src/main/java/plugin_1.kt | package plugin.extensions.plugin_1
import org.springframework.stereotype.Component
import plugin.extensions.CoreService
import plugin.extensions.ServiceFromThePlugin
@Component
class Plugin1Component {
init {
println("Plugin 1 Component")
}
}
@Component
class Plugin1Service(
core: CoreService,
... | package plugin.extensions.plugin_1
import org.springframework.stereotype.Component
import plugin.extensions.CoreService
import plugin.extensions.ServiceFromThePlugin
@Component
class Plugin1Component {
init {
println("Plugin 1 Component")
}
}
@Component
class Plugin1Service(
core: CoreService,
... | apache-2.0 | Kotlin |
6590755a8009691c66dc1cf3b1e2b4931b5a73a8 | add and search word | dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas | kotlin/src/katas/kotlin/leetcode/add_and_search_word/AddAndSearchWord.kt | kotlin/src/katas/kotlin/leetcode/add_and_search_word/AddAndSearchWord.kt | package katas.kotlin.leetcode.add_and_search_word
import kotlincommon.test.shouldEqual
import org.junit.Test
/**
* https://leetcode.com/problems/add-and-search-word-data-structure-design/
*/
class AddAndSearchWordTests {
@Test fun `add and search words`() {
val dictionary = WordDictionary()
dic... | package katas.kotlin.leetcode.add_and_search_word
import kotlincommon.test.shouldEqual
import org.junit.Test
/**
* https://leetcode.com/problems/add-and-search-word-data-structure-design/
*/
class AddAndSearchWordTests {
@Test fun `add and search words`() {
val dictionary = WordDictionary()
dict... | unlicense | Kotlin |
aba754c8750d935a3ba7db4a44636cbcb231791e | swap nodes | dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas | kotlin/src/katas/kotlin/leetcode/swap_nodes_in_pairs/SwapNodesInPairs.kt | kotlin/src/katas/kotlin/leetcode/swap_nodes_in_pairs/SwapNodesInPairs.kt | package katas.kotlin.leetcode.swap_nodes_in_pairs
import katas.kotlin.leetcode.ListNode
import katas.kotlin.leetcode.listNodes
import kotlincommon.test.shouldEqual
import org.junit.Test
/**
* https://leetcode.com/problems/swap-nodes-in-pairs
*/
class SwapNodesInPairsTests {
@Test fun `swap every two adjacent no... | package katas.kotlin.leetcode.swap_nodes_in_pairs
import katas.kotlin.leetcode.ListNode
import katas.kotlin.leetcode.listNodes
import kotlincommon.test.shouldEqual
import org.junit.Test
/**
* https://leetcode.com/problems/swap-nodes-in-pairs
*/
class SwapNodesInPairsTests {
@Test fun `swap every two adjacent no... | unlicense | Kotlin |
9ad005d32d87a5347f3e74e487ba3e1ae5e6f91e | Fix TagEnd's toString() | DemonWav/MinecraftDevIntelliJ,minecraft-dev/MinecraftDev,minecraft-dev/MinecraftDev,DemonWav/IntelliJBukkitSupport,DemonWav/MinecraftDev,DemonWav/MinecraftDevIntelliJ,DemonWav/MinecraftDev,DemonWav/MinecraftDev,minecraft-dev/MinecraftDev,DemonWav/MinecraftDevIntelliJ | src/main/kotlin/com/demonwav/mcdev/nbt/tags/TagEnd.kt | src/main/kotlin/com/demonwav/mcdev/nbt/tags/TagEnd.kt | /*
* Minecraft Dev for IntelliJ
*
* https://minecraftdev.org
*
* Copyright (c) 2017 minecraft-dev
*
* MIT License
*/
package com.demonwav.mcdev.nbt.tags
import java.io.DataOutputStream
object TagEnd : NbtTag {
override val payloadSize = 0
override val typeId = NbtTypeId.END
override fun write(st... | /*
* Minecraft Dev for IntelliJ
*
* https://minecraftdev.org
*
* Copyright (c) 2017 minecraft-dev
*
* MIT License
*/
package com.demonwav.mcdev.nbt.tags
import java.io.DataOutputStream
object TagEnd : NbtTag {
override val payloadSize = 0
override val typeId = NbtTypeId.END
override fun write(st... | mit | Kotlin |
d07f7e965b4ea47b8561f623714cb628605ce907 | Simplify imports | Turbo87/intellij-emberjs,Turbo87/intellij-emberjs,Turbo87/intellij-emberjs,Turbo87/intellij-emberjs | src/main/kotlin/com/emberjs/hbs/HbsModuleReference.kt | src/main/kotlin/com/emberjs/hbs/HbsModuleReference.kt | package com.emberjs.hbs
import com.dmarcotte.handlebars.psi.HbMustacheName
import com.emberjs.index.EmberNameIndex
import com.emberjs.lookup.EmberLookupElementBuilder
import com.emberjs.resolver.EmberName
import com.intellij.openapi.util.Condition
import com.intellij.openapi.util.TextRange
import com.intellij.psi.PsiE... | package com.emberjs.hbs
import com.dmarcotte.handlebars.psi.HbMustacheName
import com.emberjs.index.EmberNameIndex
import com.emberjs.lookup.EmberLookupElementBuilder
import com.emberjs.resolver.EmberName
import com.intellij.openapi.util.Condition
import com.intellij.openapi.util.TextRange
import com.intellij.psi.PsiE... | apache-2.0 | Kotlin |
eac8e149d3e6df5329f80ae511876ecf45656b49 | Fix star import | DemonWav/StatCraft,DemonWav/StatCraft,DemonWav/StatCraft | src/main/kotlin/com/demonwav/statcraft/ExtFunctions.kt | src/main/kotlin/com/demonwav/statcraft/ExtFunctions.kt | /*
* StatCraft Bukkit Plugin
*
* Copyright (c) 2016 Kyle Wood (DemonWav)
* https://www.demonwav.com
*
* MIT License
*/
package com.demonwav.statcraft
import java.nio.ByteBuffer
import java.util.UUID
inline fun <T : AutoCloseable, R> T.use(block: (T) -> R): R {
var closed = false
try {
return b... | /*
* StatCraft Bukkit Plugin
*
* Copyright (c) 2016 Kyle Wood (DemonWav)
* https://www.demonwav.com
*
* MIT License
*/
package com.demonwav.statcraft
import java.nio.ByteBuffer
import java.util.*
inline fun <T : AutoCloseable, R> T.use(block: (T) -> R): R {
var closed = false
try {
return bloc... | mit | Kotlin |
3f9ca0758eec851e3561aee58d618d34c21647fe | Add uiThread inline proxy to mainThread property | LouisCAD/Splitties,LouisCAD/Splitties,LouisCAD/Splitties | uithread/src/main/java/splitties/uithread/UiThread.kt | uithread/src/main/java/splitties/uithread/UiThread.kt | /*
* Copyright (c) 2017. Louis Cognault Ayeva Derman
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | /*
* Copyright (c) 2017. Louis Cognault Ayeva Derman
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | apache-2.0 | Kotlin |
38d9edccb85de8633deac23837080b81eff1e887 | Fix failing build | ryleykimmel/brandywine,ryleykimmel/brandywine | game/src/main/kotlin/plugin/Plugin.kt | game/src/main/kotlin/plugin/Plugin.kt | package plugin
import me.ryleykimmel.brandywine.game.model.*
import me.ryleykimmel.brandywine.game.model.player.Player
import me.ryleykimmel.brandywine.game.msg.ServerChatMessage
import me.ryleykimmel.brandywine.server.Server
import me.ryleykimmel.brandywine.service.Service
import java.util.concurrent.ThreadLocalRando... | package plugin
import me.ryleykimmel.brandywine.game.model.*
import me.ryleykimmel.brandywine.game.model.player.Player
import me.ryleykimmel.brandywine.game.msg.ServerChatMessage
import me.ryleykimmel.brandywine.game.task.Tasks
import me.ryleykimmel.brandywine.server.Server
import me.ryleykimmel.brandywine.service.Ser... | isc | Kotlin |
78e8d406492f713f66135ddfa2832cdf0731d4ac | Update AboutLibraries plugin | inorichi/tachiyomi,inorichi/mangafeed,inorichi/tachiyomi,inorichi/mangafeed,CarlosEsco/tachiyomi | buildSrc/src/main/kotlin/Dependencies.kt | buildSrc/src/main/kotlin/Dependencies.kt | object BuildPluginsVersion {
const val AGP = "4.1.2"
const val KOTLIN = "1.4.21"
const val KOTLINTER = "3.3.0"
const val VERSIONS_PLUGIN = "0.36.0"
const val ABOUTLIB_PLUGIN = "8.6.7"
}
| object BuildPluginsVersion {
const val AGP = "4.1.2"
const val KOTLIN = "1.4.21"
const val KOTLINTER = "3.3.0"
const val VERSIONS_PLUGIN = "0.36.0"
const val ABOUTLIB_PLUGIN = "8.6.3"
}
| apache-2.0 | Kotlin |
22b85cf384b39cefae9a605083f719ad69e48595 | Revert "Bump test dependencies" | fcostaa/kotlin-rxjava-android,fcostaa/kotlin-rxjava-android | buildSrc/src/main/kotlin/Versions.kt | buildSrc/src/main/kotlin/Versions.kt | internal object Kotlin {
const val version = "1.3.41"
}
object Versions {
const val androidGradlePlugin = "3.5.0"
const val dependencyGraphGeneratorPlugin = "0.2.0"
const val androidJunitJacocoPlugin = "0.13.0"
const val detektGradlePlugin = "1.0.0-RC12"
const val canidropjetifierPlugin = "0.4"... | internal object Kotlin {
const val version = "1.3.41"
}
object Versions {
const val androidGradlePlugin = "3.5.0"
const val dependencyGraphGeneratorPlugin = "0.2.0"
const val androidJunitJacocoPlugin = "0.13.0"
const val detektGradlePlugin = "1.0.0-RC12"
const val canidropjetifierPlugin = "0.4"... | mit | Kotlin |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.