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 |
|---|---|---|---|---|---|---|---|---|
cdde6c5fc35d8279444bcadfdb68c9d0b608c1e6 | Use maximum of configured and current memory size for automatic -Xmx adjustment (IDEA-226779) | 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/platform-impl/src/com/intellij/diagnostic/MemorySizeConfigurator.kt | platform/platform-impl/src/com/intellij/diagnostic/MemorySizeConfigurator.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.diagnostic
import com.intellij.ide.util.PropertiesComponent
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.components... | // 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.diagnostic
import com.intellij.ide.util.PropertiesComponent
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.components... | apache-2.0 | Kotlin |
e49f524ec2997c6c313538897ddf9b5c1c99fd82 | Add custom TestRule to be used by testing classes that are Rx-based. | ramonrabello/Kiphy | app/src/test/kotlin/com/github/ramonrabello/kiphy/common/rx/rule/RxImmediateSchedulerRule.kt | app/src/test/kotlin/com/github/ramonrabello/kiphy/common/rx/rule/RxImmediateSchedulerRule.kt | package com.github.ramonrabello.kiphy.common.rx.rule
import io.reactivex.Scheduler
import io.reactivex.android.plugins.RxAndroidPlugins
import io.reactivex.internal.schedulers.ExecutorScheduler
import io.reactivex.plugins.RxJavaPlugins
import org.junit.rules.TestRule
import org.junit.runner.Description
import org.juni... | apache-2.0 | Kotlin | |
7c1e000ce42d202cbf1be8dc2f3b304adacba9b3 | Handle missing project service (#263) | zielu/GitToolBox,zielu/GitToolBox,zielu/GitToolBox | GitToolBox/src/main/kotlin/zielu/gittoolbox/fetch/AutoFetchAllowedBuildExt.kt | GitToolBox/src/main/kotlin/zielu/gittoolbox/fetch/AutoFetchAllowedBuildExt.kt | package zielu.gittoolbox.fetch
import com.intellij.openapi.project.Project
import zielu.gittoolbox.extension.autofetch.AutoFetchAllowed
internal class AutoFetchAllowedBuildExt : AutoFetchAllowed {
override fun isAllowed(project: Project): Boolean {
return AutoFetchAllowedBuild.getInstance(project)
.map {... | package zielu.gittoolbox.fetch
import com.intellij.openapi.project.Project
import zielu.gittoolbox.extension.autofetch.AutoFetchAllowed
internal class AutoFetchAllowedBuildExt : AutoFetchAllowed {
override fun isAllowed(project: Project): Boolean {
return AutoFetchAllowedBuild.getInstance(project)
.map {... | apache-2.0 | Kotlin |
9f3378754095852f648002f1d3704d23b07ac671 | Update to Android-Components 104.0.20220722143220. (#7408) | mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android | buildSrc/src/main/java/AndroidComponents.kt | buildSrc/src/main/java/AndroidComponents.kt | /* 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/. */
object AndroidComponents {
const val VERSION = "104.0.20220722143220"
}
| /* 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/. */
object AndroidComponents {
const val VERSION = "104.0.20220721182501"
}
| mpl-2.0 | Kotlin |
86efb7e1b8c29c943063f77bb91831051b9d74a3 | Update to Android-Components 105.0.20220729190123. | mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android | buildSrc/src/main/java/AndroidComponents.kt | buildSrc/src/main/java/AndroidComponents.kt | /* 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/. */
object AndroidComponents {
const val VERSION = "105.0.20220729190123"
}
| /* 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/. */
object AndroidComponents {
const val VERSION = "105.0.20220729143111"
}
| mpl-2.0 | Kotlin |
555497ce1c7a43df8ab1e28af3bdf5b7d976b883 | Add flow observer | Adventech/sabbath-school-android-2,Adventech/sabbath-school-android-2,Adventech/sabbath-school-android-2 | common/core/src/main/java/com/cryart/sabbathschool/core/extensions/coroutines/FlowObserver.kt | common/core/src/main/java/com/cryart/sabbathschool/core/extensions/coroutines/FlowObserver.kt | /*
* Copyright (c) 2021. Adventech <info@adventech.io>
*
* 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, mod... | mit | Kotlin | |
4429410701a16beb2737280a0e8150f9b4ac684e | fix RIDER-79712 Unity meta files from PackageCache folder are indexed this was occasionally broken in https://github.com/JetBrains/resharper-unity/pull/2145 | JetBrains/resharper-unity,JetBrains/resharper-unity,JetBrains/resharper-unity | rider/src/main/kotlin/com/jetbrains/rider/plugins/unity/workspace/UnityWorkspaceExtensions.kt | rider/src/main/kotlin/com/jetbrains/rider/plugins/unity/workspace/UnityWorkspaceExtensions.kt | @file:Suppress("UnstableApiUsage")
package com.jetbrains.rider.plugins.unity.workspace
import com.intellij.openapi.vfs.VirtualFile
import com.intellij.workspaceModel.ide.WorkspaceModel
val UNITY_EXCLUDED_PATTERNS = listOf("*.meta", "*.tmp")
val UNITY_PACKAGE_ID_MAPPING = "rider.unity.package.id"
fun WorkspaceModel... | @file:Suppress("UnstableApiUsage")
package com.jetbrains.rider.plugins.unity.workspace
import com.intellij.openapi.vfs.VirtualFile
import com.intellij.workspaceModel.ide.WorkspaceModel
import java.nio.file.Path
val UNITY_EXCLUDED_PATTERNS = listOf("*.tmp")
val UNITY_PACKAGE_ID_MAPPING = "rider.unity.package.id"
fu... | apache-2.0 | Kotlin |
12c9ee9cde3ed6d71e94cffa2a290d9d23fc2d33 | Use arrayOf | stokito/IdeaSingletonInspection,stokito/IdeaSingletonInspection,stokito/IdeaSingletonInspection | src/main/java/com/github/stokito/IdeaSingletonInspection/SingletonPatternInspectionVisitor.kt | src/main/java/com/github/stokito/IdeaSingletonInspection/SingletonPatternInspectionVisitor.kt | package com.github.stokito.IdeaSingletonInspection
import com.github.stokito.IdeaSingletonInspection.smells.*
import com.intellij.codeInspection.ProblemsHolder
import com.intellij.psi.JavaElementVisitor
import com.intellij.psi.PsiClass
internal class SingletonPatternInspectionVisitor(holder: ProblemsHolder, private v... | package com.github.stokito.IdeaSingletonInspection
import com.github.stokito.IdeaSingletonInspection.smells.*
import com.intellij.codeInspection.ProblemsHolder
import com.intellij.psi.JavaElementVisitor
import com.intellij.psi.PsiClass
import java.util.ArrayList
internal class SingletonPatternInspectionVisitor(holde... | apache-2.0 | Kotlin |
43715f2d19b2f645f4939b28aaabdda2c143ad75 | Use git to diff and fix alignment | apollographql/apollo-android,apollostack/apollo-android,apollostack/apollo-android,apollostack/apollo-android,apollographql/apollo-android,apollographql/apollo-android | apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/CustomEnumTypeSpecBuilder.kt | apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/CustomEnumTypeSpecBuilder.kt | package com.apollographql.apollo.compiler
import com.apollographql.apollo.api.ScalarType
import com.apollographql.apollo.compiler.ir.CodeGenerationContext
import com.squareup.javapoet.ClassName
import com.squareup.javapoet.MethodSpec
import com.squareup.javapoet.TypeSpec
import java.util.*
import javax.lang.model.elem... | package com.apollographql.apollo.compiler
import com.apollographql.apollo.api.ScalarType
import com.apollographql.apollo.compiler.ir.CodeGenerationContext
import com.squareup.javapoet.ClassName
import com.squareup.javapoet.MethodSpec
import com.squareup.javapoet.TypeSpec
import java.util.*
import javax.lang.model.elem... | mit | Kotlin |
299246d7d19e6fcddda4bcffb4d7aecfb13918d2 | Update to Android-Components 102.0.20220517190146. | mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android | buildSrc/src/main/java/AndroidComponents.kt | buildSrc/src/main/java/AndroidComponents.kt | /* 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/. */
object AndroidComponents {
const val VERSION = "102.0.20220517190146"
}
| /* 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/. */
object AndroidComponents {
const val VERSION = "102.0.20220517171212"
}
| mpl-2.0 | Kotlin |
04d02bb1d7afc0b9fc9c2fb60c8af5bd355bd40e | Update to Android-Components 96.0.20211104143116. | mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android | buildSrc/src/main/java/AndroidComponents.kt | buildSrc/src/main/java/AndroidComponents.kt | /* 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/. */
object AndroidComponents {
const val VERSION = "96.0.20211104143116"
}
| /* 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/. */
object AndroidComponents {
const val VERSION = "96.0.20211103143130"
}
| mpl-2.0 | Kotlin |
2c573332de079d9b48a2d987fb284ac48b56bdff | Update to Android-Components 97.0.20220107193451. | mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android | buildSrc/src/main/java/AndroidComponents.kt | buildSrc/src/main/java/AndroidComponents.kt | /* 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/. */
object AndroidComponents {
const val VERSION = "97.0.20220107193451"
}
| /* 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/. */
object AndroidComponents {
const val VERSION = "97.0.20220107143147"
}
| mpl-2.0 | Kotlin |
224bdb7219b4ece6cb3a395a4be50f1426ce32a7 | Update to Android-Components 106.0.20220910143058. | mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android | buildSrc/src/main/java/AndroidComponents.kt | buildSrc/src/main/java/AndroidComponents.kt | /* 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/. */
object AndroidComponents {
const val VERSION = "106.0.20220910143058"
}
| /* 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/. */
object AndroidComponents {
const val VERSION = "106.0.20220909143109"
}
| mpl-2.0 | Kotlin |
1f85f863a4daf8211b176112a794947ea32bb14e | Update to Android-Components 108.0.20221107190113. | mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android | buildSrc/src/main/java/AndroidComponents.kt | buildSrc/src/main/java/AndroidComponents.kt | /* 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/. */
object AndroidComponents {
const val VERSION = "108.0.20221107190113"
}
| /* 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/. */
object AndroidComponents {
const val VERSION = "108.0.20221107143052"
}
| mpl-2.0 | Kotlin |
4577229f1b857f6ae1c94ff417f8328dfd1045f1 | Update to Android-Components 103.0.20220610190352. | mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android | buildSrc/src/main/java/AndroidComponents.kt | buildSrc/src/main/java/AndroidComponents.kt | /* 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/. */
object AndroidComponents {
const val VERSION = "103.0.20220610190352"
}
| /* 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/. */
object AndroidComponents {
const val VERSION = "103.0.20220610143138"
}
| mpl-2.0 | Kotlin |
aa7dae2a6dbcac076ed2fc5416c65e2ac7f04f4b | Use PersistentStateComponent in proper way | 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... | plugins/changeReminder/src/com/jetbrains/changeReminder/plugin/UserSettings.kt | plugins/changeReminder/src/com/jetbrains/changeReminder/plugin/UserSettings.kt | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.jetbrains.changeReminder.plugin
import com.intellij.openapi.Disposable
import com.intellij.openapi.components.BaseState
import com.intellij.openapi.components.SimpleP... | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.jetbrains.changeReminder.plugin
import com.intellij.openapi.Disposable
import com.intellij.openapi.components.PersistentStateComponent
import com.intellij.openapi.com... | apache-2.0 | Kotlin |
84fbc79e72030963ecc106a478b793fe523b1a67 | Make aliases sample work with run task. | ajalt/clikt,ajalt/clikt | samples/aliases/src/main/kotlin/com/github/ajalt/clikt/samples/aliases/main.kt | samples/aliases/src/main/kotlin/com/github/ajalt/clikt/samples/aliases/main.kt | package com.github.ajalt.clikt.samples.aliases
import com.github.ajalt.clikt.core.CliktCommand
import com.github.ajalt.clikt.core.subcommands
import com.github.ajalt.clikt.parameters.options.multiple
import com.github.ajalt.clikt.parameters.options.option
import java.io.File
/**
* @param configFile A config file co... | package com.github.ajalt.clikt.samples.aliases
import com.github.ajalt.clikt.core.CliktCommand
import com.github.ajalt.clikt.core.subcommands
import com.github.ajalt.clikt.parameters.options.multiple
import com.github.ajalt.clikt.parameters.options.option
import java.io.File
/**
* @param configFile A config file co... | apache-2.0 | Kotlin |
16ca75fd1335e1c0917f5bd8841a42bcd0b45557 | Create a schedule handler which integrates with espresso through IdlingResource | fcostaa/kotlin-rxjava-android,fcostaa/kotlin-rxjava-android | app/src/androidTest/kotlin/com/felipecosta/kotlinrxjavasample/utils/RxEspressoScheduleHandler.kt | app/src/androidTest/kotlin/com/felipecosta/kotlinrxjavasample/utils/RxEspressoScheduleHandler.kt | package com.felipecosta.kotlinrxjavasample.utils
import android.support.test.espresso.IdlingResource
import android.support.test.espresso.idling.CountingIdlingResource
import io.reactivex.annotations.NonNull
import io.reactivex.functions.Function
class RxEspressoScheduleHandler : Function<Runnable, Runnable> {
... | mit | Kotlin | |
d3f3411d410b85df510bde2b6c181ddbd2ea235d | use outline provider for API 21+ | StepicOrg/stepic-android,StepicOrg/stepik-android,StepicOrg/stepic-android,StepicOrg/stepik-android,StepicOrg/stepik-android,StepicOrg/stepic-android | app/src/main/java/org/stepic/droid/ui/custom/RoundedBorderMaskView.kt | app/src/main/java/org/stepic/droid/ui/custom/RoundedBorderMaskView.kt | package org.stepic.droid.ui.custom
import android.content.Context
import android.graphics.Bitmap
import android.graphics.Canvas
import android.graphics.Paint
import android.graphics.PorterDuff
import android.graphics.PorterDuffXfermode
import android.graphics.RectF
import android.graphics.drawable.GradientDrawable
imp... | package org.stepic.droid.ui.custom
import android.content.Context
import android.graphics.Bitmap
import android.graphics.Canvas
import android.graphics.Paint
import android.graphics.PorterDuff
import android.graphics.PorterDuffXfermode
import android.graphics.RectF
import android.util.AttributeSet
import android.widge... | apache-2.0 | Kotlin |
b218efee9402db08e803a37a25ee6c6654fdaf80 | Update FunctionMaxLength.kt | rock3r/detekt,Mauin/detekt,MyDogTom/detekt,Mauin/detekt,rock3r/detekt,arturbosch/detekt,arturbosch/detekt,Mauin/detekt,arturbosch/detekt,Mauin/detekt,rock3r/detekt | detekt-rules/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/style/naming/FunctionMaxLength.kt | detekt-rules/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/style/naming/FunctionMaxLength.kt | package io.gitlab.arturbosch.detekt.rules.style.naming
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... | package io.gitlab.arturbosch.detekt.rules.style.naming
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... | apache-2.0 | Kotlin |
0f21fc07e2a80be717d9a412b34c08c9fd71397f | Replace overload with default value | willowtreeapps/assertk,willowtreeapps/assertk | src/main/kotlin/assertk/assert.kt | src/main/kotlin/assertk/assert.kt | package assertk
import assertk.assertions.support.show
class Assert<out T> internal constructor(val name: String? = null, val actual: T)
sealed class AssertBlock<out T> {
abstract fun throwsError(f: (Assert<Throwable>) -> Unit)
abstract fun returnsValue(f: (Assert<T>) -> Unit)
class Value<out T> interna... | package assertk
import assertk.assertions.support.show
class Assert<out T> internal constructor(val name: String? = null, val actual: T)
sealed class AssertBlock<out T> {
abstract fun throwsError(f: (Assert<Throwable>) -> Unit)
abstract fun returnsValue(f: (Assert<T>) -> Unit)
class Value<out T> interna... | mit | Kotlin |
01c2a1e040227ba6575f997060324a1c102ad334 | refactor #827 Modify annotation. | toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt | lib/src/test/java/jp/toastkid/lib/view/list/CommonItemCallbackTest.kt | lib/src/test/java/jp/toastkid/lib/view/list/CommonItemCallbackTest.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 |
69a8197d028dd913153585ac3a0b1dc1513ce583 | Rename property | 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 |
760f60bf5eee736dc4492900103e49e10d2d42dd | Update grammarkit | intellij-purescript/intellij-purescript,intellij-purescript/intellij-purescript | lexer/build.gradle.kts | lexer/build.gradle.kts | plugins {
java
kotlin("jvm")
id("org.jetbrains.intellij")
id("org.jetbrains.grammarkit") version "2021.1.3"
}
repositories {
mavenCentral()
maven { setUrl("https://jitpack.io") }
maven { setUrl("https://cache-redirector.jetbrains.com/intellij-dependencies") }
}
version = "1.15-SNAPSHOT"
... | plugins {
java
kotlin("jvm")
id("org.jetbrains.intellij")
id("org.jetbrains.grammarkit") version "2020.3.2"
}
repositories {
mavenCentral()
maven { setUrl("https://jitpack.io") }
maven { setUrl("https://cache-redirector.jetbrains.com/intellij-dependencies")}
}
version = "1.15-SNAPSHOT"
r... | bsd-3-clause | Kotlin |
56233336d110d9c8f557cca1034d970dd3b94614 | Fix logic error in checker, add a bit more logging | madisp/agp-tweeter | src/main/java/pink/madis/agptweeter/checker.kt | src/main/java/pink/madis/agptweeter/checker.kt | package pink.madis.agptweeter
import java.nio.charset.StandardCharsets.UTF_8
import java.io.IOException
fun isNewRemoteVersion(remoteVersion: Version, local: Fetcher): Boolean {
val localVersion = local.latestVersion(remoteVersion.coords) ?: return true // no local, so definitely later
return remoteVersion > loc... | package pink.madis.agptweeter
import java.nio.charset.StandardCharsets.UTF_8
import java.io.IOException
fun isNewRemoteVersion(remoteVersion: Version, local: Fetcher): Boolean {
val localVersion = local.latestVersion(remoteVersion.coords) ?: return true // no local, so definitely later
return remoteVersion > loc... | mit | Kotlin |
875f85b77563228b23e3ed56d94964fbc42c86b2 | Add wxArrays | KotlinNLP/SimpleDNN | src/main/kotlin/com/kotlinnlp/simplednn/deeplearning/mergelayers/biaffine/BiaffineLayerStructure.kt | src/main/kotlin/com/kotlinnlp/simplednn/deeplearning/mergelayers/biaffine/BiaffineLayerStructure.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 |
245d80aa9ae1750cde5267aebbd2f86be8fae59e | Use .let instead of hold a variable. | tekinarslan/RxJavaKotlinSample | app/src/main/java/com/tekinarslan/kotlinrxjavasample/adapter/RecyclerAdapter.kt | app/src/main/java/com/tekinarslan/kotlinrxjavasample/adapter/RecyclerAdapter.kt | package com.tekinarslan.kotlinrxjavasample.adapter
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.bumptech.glide.Glide
import com.tekinarslan.kotlinrxjavasample.R
import com.tekinarslan.kotlinrxjavasample.model.PhotosDa... | package com.tekinarslan.kotlinrxjavasample.adapter
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.bumptech.glide.Glide
import com.tekinarslan.kotlinrxjavasample.R
import com.tekinarslan.kotlinrxjavasample.model.PhotosDa... | apache-2.0 | Kotlin |
1240b8fcba31eef26bcb38892a1bc6d4df190a64 | Create WidgetTypeTest.kt | google/android-fhir,google/android-fhir | datacapture/src/test/java/com/google/android/fhir/datacapture/WidgetTypeTest.kt | datacapture/src/test/java/com/google/android/fhir/datacapture/WidgetTypeTest.kt | package com.google.android.fhir.datacapture
import android.os.Build
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
/** Unit tests for {@link FhirIndexerImpl}. */
@RunWith(Robole... | apache-2.0 | Kotlin | |
7f8879347df74c3b56a0d18185ec582ec8b7d697 | Update to Android-Components 96.0.20211117143034. | mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android | buildSrc/src/main/java/AndroidComponents.kt | buildSrc/src/main/java/AndroidComponents.kt | /* 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/. */
object AndroidComponents {
const val VERSION = "96.0.20211117143034"
}
| /* 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/. */
object AndroidComponents {
const val VERSION = "96.0.20211116190344"
}
| mpl-2.0 | Kotlin |
54569d3c0f08d103d50a8914a0521923a5eb73b6 | Fix #24 implement isProcessRunning | WindSekirun/RichUtilsKt,WindSekirun/RichUtilsKt | RichUtils/src/main/java/pyxis/uzuki/live/richutilskt/utils/RProcess.kt | RichUtils/src/main/java/pyxis/uzuki/live/richutilskt/utils/RProcess.kt | package pyxis.uzuki.live.richutilskt.utils
/**
* RichUtilsKt
* Class: RProcess
* Created by Pyxis on 2017-11-03.
*
* Description:
*/
| apache-2.0 | Kotlin | |
e15c69192e505a92bf9fa76c907a57583cdf3459 | Refactor DotRadiusMapper | Doctoror/ParticleConstellationsLiveWallpaper,Doctoror/ParticleConstellationsLiveWallpaper | app/src/main/java/com/doctoror/particleswallpaper/data/mapper/DotRadiusMapper.kt | app/src/main/java/com/doctoror/particleswallpaper/data/mapper/DotRadiusMapper.kt | /*
* Copyright (C) 2017 Yaroslav Mytkalyk
*
* 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... | /*
* Copyright (C) 2017 Yaroslav Mytkalyk
*
* 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... | apache-2.0 | Kotlin |
af9b46adb0bd1dccbba1f8997797df913a82fa7b | Fix config for shops not saving, closes #169 | seventhroot/elysium,seventhroot/elysium,RP-Kit/RPKit,RP-Kit/RPKit | bukkit/rpk-shops-bukkit/src/main/kotlin/com/rpkit/shops/bukkit/RPKShopsBukkit.kt | bukkit/rpk-shops-bukkit/src/main/kotlin/com/rpkit/shops/bukkit/RPKShopsBukkit.kt | /*
* Copyright 2016 Ross Binden
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | /*
* Copyright 2016 Ross Binden
*
* 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 |
de4ad1293efcdc6d93908baa096cd5741476f138 | Disable timestamp feature since it's obsoleted by incremental tasks. | ethauvin/kobalt,cbeust/kobalt,evanchooly/kobalt,ethauvin/kobalt,cbeust/kobalt,evanchooly/kobalt,evanchooly/kobalt,ethauvin/kobalt,evanchooly/kobalt,ethauvin/kobalt,cbeust/kobalt | modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/Features.kt | modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/Features.kt | package com.beust.kobalt
class Features {
companion object {
/** If true, uses timestamps to speed up the tasks */
const val USE_TIMESTAMPS = false
}
}
| package com.beust.kobalt
class Features {
companion object {
/** If true, uses timestamps to speed up the tasks */
const val USE_TIMESTAMPS = true
}
}
| apache-2.0 | Kotlin |
c295ad2011125e1d2f868b1d62edebb1498147cd | Use filterNotNull instead of explicit filter. | fare1990/telegram-bot-bumblebee,fare1990/telegram-bot-bumblebee,denzelby/telegram-bot-bumblebee,fare1990/telegram-bot-bumblebee | telegram-bot-bumblebee-core/src/main/java/com/github/bumblebee/command/notification/NotifyChatCommand.kt | telegram-bot-bumblebee-core/src/main/java/com/github/bumblebee/command/notification/NotifyChatCommand.kt | package com.github.bumblebee.command.notification
import com.github.bumblebee.bot.consumer.UpdateHandler
import com.github.bumblebee.service.RandomPhraseService
import com.github.telegram.api.BotApi
import com.github.telegram.domain.ChatType
import com.github.telegram.domain.Update
import org.springframework.stereotyp... | package com.github.bumblebee.command.notification
import com.github.bumblebee.bot.consumer.UpdateHandler
import com.github.bumblebee.service.RandomPhraseService
import com.github.telegram.api.BotApi
import com.github.telegram.domain.ChatType
import com.github.telegram.domain.Update
import org.springframework.stereotyp... | mit | Kotlin |
a820d093c686f6422055e3deb9c9f58bb0cc3a5c | Solve problem 2068 | fredyw/leetcode,fredyw/leetcode,fredyw/leetcode,fredyw/leetcode | src/main/kotlin/leetcode/Problem2068.kt | src/main/kotlin/leetcode/Problem2068.kt | package leetcode
import kotlin.math.abs
/**
* https://leetcode.com/problems/check-whether-two-strings-are-almost-equivalent/
*/
class Problem2068 {
fun checkAlmostEquivalent(word1: String, word2: String): Boolean {
val charToCount1 = IntArray(26)
val charToCount2 = IntArray(26)
for (i in... | mit | Kotlin | |
23ec76578c1728980617e73216290fa707ceb792 | Optimize calc | KotlinNLP/SimpleDNN | src/main/kotlin/com/kotlinnlp/simplednn/core/layers/models/feedforward/normalization/NormForwardHelper.kt | src/main/kotlin/com/kotlinnlp/simplednn/core/layers/models/feedforward/normalization/NormForwardHelper.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 |
99dc80d5122342d5f293033bccefc0999261d1bf | fix gradle build | satahippy/mailru-cloud-client | build.gradle.kts | build.gradle.kts | import org.gradle.api.tasks.bundling.Jar
group = "com.github.satahippy"
version = "0.1.2.RELEASE"
buildscript {
extra["kotlinVersion"] = "1.1.4"
extra["junitVersion"] = "4.12"
extra["retrofitVersion"] = "2.3.0"
repositories {
mavenCentral()
}
dependencies {
classpath("org.jetb... | import org.gradle.api.tasks.bundling.Jar
group = "com.github.satahippy"
version = "0.1.1.RELEASE"
buildscript {
extra["kotlinVersion"] = "1.1.4"
extra["junitVersion"] = "4.12"
extra["retrofitVersion"] = "2.3.0"
repositories {
mavenCentral()
}
dependencies {
classpath("org.jetb... | bsd-2-clause | Kotlin |
e88e3e09ae660687fb437ffabb9a850cbd87a7b4 | Bump com.gradle.plugin-publish from 0.17.0 to 0.18.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.39.0"
id("net.ossindex.audit") version "0.4.11"
id("com.gradle.plugin-publish") version "0.18.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.39.0"
id("net.ossindex.audit") version "0.4.11"
id("com.gradle.plugin-publish") version "0.17.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 |
90601f3470e5fe66e67d1fc91441ed2190221c64 | Scale down letter in contact picture fallback image | k9mail/k-9,cketti/k-9,k9mail/k-9,cketti/k-9,cketti/k-9,k9mail/k-9,cketti/k-9 | app/ui/src/main/java/com/fsck/k9/contacts/ContactLetterBitmapCreator.kt | app/ui/src/main/java/com/fsck/k9/contacts/ContactLetterBitmapCreator.kt | package com.fsck.k9.contacts
import android.graphics.Bitmap
import android.graphics.Canvas
import android.graphics.Paint
import android.graphics.Rect
import com.fsck.k9.mail.Address
/**
* Draw a `Bitmap` containing the "contact letter" obtained by [ContactLetterExtractor].
*/
class ContactLetterBitmapCreator(
... | package com.fsck.k9.contacts
import android.graphics.Bitmap
import android.graphics.Canvas
import android.graphics.Paint
import android.graphics.Rect
import com.fsck.k9.mail.Address
/**
* Draw a `Bitmap` containing the "contact letter" obtained by [ContactLetterExtractor].
*/
class ContactLetterBitmapCreator(
... | apache-2.0 | Kotlin |
f51ec18b0a2c025166425cbaae6d23b5a2881593 | disable root activity tests for now | daemontus/android-glucose,daemontus/android-glucose,daemontus/glucose | core/src/androidTest/java/com/glucose/app/RootActivityTest.kt | core/src/androidTest/java/com/glucose/app/RootActivityTest.kt | package com.glucose.app
import android.content.pm.ActivityInfo
import android.support.test.rule.ActivityTestRule
import android.support.test.runner.AndroidJUnit4
import org.junit.Rule
import org.junit.Test
import org.junit.runner.RunWith
import rx.Observable
import rx.android.schedulers.AndroidSchedulers
@RunWith(And... | package com.glucose.app
import android.content.pm.ActivityInfo
import android.support.test.rule.ActivityTestRule
import android.support.test.runner.AndroidJUnit4
import org.junit.Rule
import org.junit.Test
import org.junit.runner.RunWith
import rx.Observable
import rx.android.schedulers.AndroidSchedulers
@RunWith(And... | mit | Kotlin |
f78118a2fbbb28bfb52aa497c4736f5fce0eb0b3 | Allow to use primitive type names in renaming | d9n/intellij-rust,d9n/intellij-rust,anton-okolelov/intellij-rust,alygin/intellij-rust,intellij-rust/intellij-rust,intellij-rust/intellij-rust,intellij-rust/intellij-rust,d9n/intellij-rust,Undin/intellij-rust,himikof/intellij-rust,alygin/intellij-rust,intellij-rust/intellij-rust,himikof/intellij-rust,intellij-rust/intel... | src/main/kotlin/org/rust/lang/refactoring/RsNamesValidator.kt | src/main/kotlin/org/rust/lang/refactoring/RsNamesValidator.kt | package org.rust.lang.refactoring
import com.intellij.lang.refactoring.NamesValidator
import com.intellij.openapi.project.Project
import com.intellij.psi.tree.IElementType
import org.rust.lang.core.lexer.RsLexer
import org.rust.lang.core.psi.RS_KEYWORDS
import org.rust.lang.core.psi.RsElementTypes.IDENTIFIER
import or... | package org.rust.lang.refactoring
import com.intellij.lang.refactoring.NamesValidator
import com.intellij.openapi.project.Project
import com.intellij.psi.tree.IElementType
import org.rust.lang.core.lexer.RsLexer
import org.rust.lang.core.psi.RS_KEYWORDS
import org.rust.lang.core.psi.RsElementTypes.IDENTIFIER
import or... | mit | Kotlin |
3fa9170725f63e3b96f9a0c2368b5b2e52a98e80 | Remove unused import | gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,gradle/gradle,blindpirate/gradle,robinverduij... | subprojects/kotlin-dsl/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/KotlinInitScriptModelIntegrationTest.kt | subprojects/kotlin-dsl/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/KotlinInitScriptModelIntegrationTest.kt | package org.gradle.kotlin.dsl.integration
import org.hamcrest.CoreMatchers.not
import org.hamcrest.MatcherAssert.assertThat
import org.junit.Test
class KotlinInitScriptModelIntegrationTest : ScriptModelIntegrationTest() {
@Test
fun `initscript classpath does not include buildSrc`() {
withBuildSrc(... | package org.gradle.kotlin.dsl.integration
import org.hamcrest.CoreMatchers.not
import org.hamcrest.MatcherAssert.assertThat
import org.junit.Test
import java.io.File
class KotlinInitScriptModelIntegrationTest : ScriptModelIntegrationTest() {
@Test
fun `initscript classpath does not include buildSrc`() {
... | apache-2.0 | Kotlin |
4b7620198e88cfb56a06575078a6265da1e2c84b | Revert "Temporarily disable build-scan sample test until upstream breakage is fixed" | robinverduijn/gradle,gradle/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/gradle,robinverduijn/gradle,robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradl... | src/samplesTest/kotlin/org/gradle/script/lang/kotlin/samples/SamplesSmokeTest.kt | src/samplesTest/kotlin/org/gradle/script/lang/kotlin/samples/SamplesSmokeTest.kt | package org.gradle.script.lang.kotlin.samples
import org.gradle.script.lang.kotlin.fixtures.AbstractIntegrationTest
import org.hamcrest.CoreMatchers.containsString
import org.hamcrest.CoreMatchers.not
import org.junit.Assume.assumeThat
import org.junit.Before
import org.junit.Test
import org.junit.runner.RunWith
imp... | package org.gradle.script.lang.kotlin.samples
import org.gradle.script.lang.kotlin.fixtures.AbstractIntegrationTest
import org.hamcrest.CoreMatchers.containsString
import org.hamcrest.CoreMatchers.not
import org.junit.Assume.assumeThat
import org.junit.Before
import org.junit.Test
import org.junit.runner.RunWith
imp... | apache-2.0 | Kotlin |
af141a8d1ff99f9735a9e9a15dbda0b626db42d1 | Add new test DatabaseFromMigrationsIntegrationShould, get schema from database | dhis2/dhis2-android-sdk,dhis2/dhis2-android-sdk,dhis2/dhis2-android-sdk | core/src/androidTest/java/org/hisp/dhis/android/core/arch/db/access/internal/DatabaseFromMigrationsIntegrationShould.kt | core/src/androidTest/java/org/hisp/dhis/android/core/arch/db/access/internal/DatabaseFromMigrationsIntegrationShould.kt | /*
* Copyright (c) 2004-2019, University of Oslo
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
* list of cond... | bsd-3-clause | Kotlin | |
ca576adadfb52b117cd7a5196fb4dfdc305a0dba | Add button screenshot tests. | 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... | ui/ui-material/src/androidTest/java/androidx/ui/material/ButtonScreenshotTest.kt | ui/ui-material/src/androidTest/java/androidx/ui/material/ButtonScreenshotTest.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... | apache-2.0 | Kotlin | |
5eecbbf9ebc8624b2980364b549f14c50537a90f | change TaskDescription according to theme | nadraliev/DsrWeatherApp,nadraliev/DsrWeatherApp | app/src/main/java/soutvoid/com/DsrWeatherApp/ui/base/activity/BaseActivityView.kt | app/src/main/java/soutvoid/com/DsrWeatherApp/ui/base/activity/BaseActivityView.kt | package soutvoid.com.DsrWeatherApp.ui.base.activity
import android.annotation.TargetApi
import android.app.ActivityManager
import android.content.Context
import android.graphics.BitmapFactory
import android.os.Bundle
import android.support.v4.content.ContextCompat
import android.util.TypedValue
import android.view.Win... | package soutvoid.com.DsrWeatherApp.ui.base.activity
import android.content.Context
import android.os.Bundle
import android.view.WindowManager
import butterknife.ButterKnife
import com.agna.ferro.mvp.component.ScreenComponent
import com.agna.ferro.mvp.view.activity.MvpActivityView
import com.mikepenz.iconics.context.Ic... | apache-2.0 | Kotlin |
4a87dd12d9d0057419c241f29da256e2f10d8cb0 | Allow capturing partially displayed or hidden views. | android/android-test,android/android-test,android/android-test,android/android-test,android/android-test | espresso/core/java/androidx/test/espresso/screenshot/ViewInteractionCaptureExt.kt | espresso/core/java/androidx/test/espresso/screenshot/ViewInteractionCaptureExt.kt | /*
* Copyright (C) 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | /*
* Copyright (C) 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | apache-2.0 | Kotlin |
b317dcbf3eea6b6024e57ec7680179a473f214fb | Fix server URL in react frontend | luxons/seven-wonders,luxons/seven-wonders,luxons/seven-wonders | sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/redux/sagas/Sagas.kt | sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/redux/sagas/Sagas.kt | package org.luxons.sevenwonders.ui.redux.sagas
import kotlinx.coroutines.coroutineScope
import kotlinx.coroutines.launch
import org.luxons.sevenwonders.client.SevenWondersClient
import org.luxons.sevenwonders.ui.redux.RequestChooseName
import org.luxons.sevenwonders.ui.redux.SetCurrentPlayerAction
import org.luxons.se... | package org.luxons.sevenwonders.ui.redux.sagas
import kotlinx.coroutines.coroutineScope
import kotlinx.coroutines.launch
import org.luxons.sevenwonders.client.SevenWondersClient
import org.luxons.sevenwonders.ui.redux.RequestChooseName
import org.luxons.sevenwonders.ui.redux.SetCurrentPlayerAction
import org.luxons.se... | mit | Kotlin |
fd0c59b1db4a34bf67bab9391ab0d092bef95410 | make it a little more flexible | meh/watch_doge,meh/watch_doge,meh/watch_doge | src/main/java/meh/watchdoge/ui/Component.kt | src/main/java/meh/watchdoge/ui/Component.kt | package meh.watchdoge.ui;
import android.content.Context;
import android.content.ContextWrapper;
import android.view.LayoutInflater;
import android.view.ViewGroup;
import android.view.View;
open class Component: ContextWrapper {
protected val _view: View;
constructor(context: Context, view: View) : super(context) ... | package meh.watchdoge.ui;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.ViewGroup;
import android.view.View;
open class Component(context: Context, layout: Int) {
protected val view: View;
init {
view = LayoutInflater.from(context).inflate(layout, null);
prepare();
}
... | agpl-3.0 | Kotlin |
0ef926df941628e9bb2b24c27670ede86c78c890 | Fix bug crash on null Japanese name | duyphuong5126/Android,duyphuong5126/Android | Manga/app/src/main/java/nhdphuong/com/manga/data/entity/book/BookTitle.kt | Manga/app/src/main/java/nhdphuong/com/manga/data/entity/book/BookTitle.kt | package nhdphuong.com.manga.data.entity.book
import com.google.gson.annotations.SerializedName
import nhdphuong.com.manga.Constants
import java.io.Serializable
/*
* Created by nhdphuong on 3/24/18.
*/
class BookTitle(@field:SerializedName(Constants.TITLE_ENG) private val mEnglishName: String?,
@fiel... | package nhdphuong.com.manga.data.entity.book
import com.google.gson.annotations.SerializedName
import nhdphuong.com.manga.Constants
import java.io.Serializable
/*
* Created by nhdphuong on 3/24/18.
*/
class BookTitle(@field:SerializedName(Constants.TITLE_ENG) val englishName: String,
@field:Serializ... | mit | Kotlin |
0c13d77e7815894a7f444df59a6ee487c8711f06 | Speed up full build (#1386) | firebase/FirebaseUI-Android,firebase/FirebaseUI-Android,SUPERCILEX/FirebaseUI-Android,SUPERCILEX/FirebaseUI-Android,firebase/FirebaseUI-Android,SUPERCILEX/FirebaseUI-Android,firebase/FirebaseUI-Android,SUPERCILEX/FirebaseUI-Android | proguard-tests/build.gradle.kts | proguard-tests/build.gradle.kts | android {
defaultConfig {
multiDexEnabled = true
}
buildTypes {
getByName("release") {
// For the purposes of the sample, allow testing of a proguarded release build
// using the debug key
signingConfig = signingConfigs["debug"]
postprocessin... | android {
defaultConfig {
multiDexEnabled = true
}
buildTypes {
getByName("release") {
// For the purposes of the sample, allow testing of a proguarded release build
// using the debug key
signingConfig = signingConfigs["debug"]
postprocessin... | apache-2.0 | Kotlin |
b73a90b60c8bfca395b56d8ed3eac4ee3f22f357 | create a widthIn modifier that takes arbitrary functions for setting the min and max width | CruGlobal/android-gto-support,CruGlobal/android-gto-support | gto-support-androidx-compose/src/main/kotlin/org/ccci/gto/android/common/androidx/compose/foundation/layout/WidthInModifier.kt | gto-support-androidx-compose/src/main/kotlin/org/ccci/gto/android/common/androidx/compose/foundation/layout/WidthInModifier.kt | package org.ccci.gto.android.common.androidx.compose.foundation.layout
import androidx.compose.ui.Modifier
import androidx.compose.ui.layout.LayoutModifier
import androidx.compose.ui.layout.Measurable
import androidx.compose.ui.layout.MeasureResult
import androidx.compose.ui.layout.MeasureScope
import androidx.compose... | mit | Kotlin | |
d228e77c0ced8b295236ed3a15027902b427c713 | Add AbstractSet from main Kotlin repo | JetBrains/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,wiltonlazary/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,wiltonlazary/kotlin-native,wiltonlazary/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,wiltonlazary/kotlin-nat... | runtime/src/main/kotlin/kotlin/collections/AbstractSet.kt | runtime/src/main/kotlin/kotlin/collections/AbstractSet.kt | /*
* Copyright 2010-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | apache-2.0 | Kotlin | |
5153409bcc2c251ad82b5667299f224bc8477d51 | Use `RsElementBaseIntentionAction` to comply with non-latest Toml plugin | Undin/intellij-rust,intellij-rust/intellij-rust,intellij-rust/intellij-rust,intellij-rust/intellij-rust,intellij-rust/intellij-rust,Undin/intellij-rust,Undin/intellij-rust,Undin/intellij-rust,intellij-rust/intellij-rust,intellij-rust/intellij-rust,Undin/intellij-rust,Undin/intellij-rust | toml/src/main/kotlin/org/rust/toml/intentions/RsTomlElementBaseIntentionAction.kt | toml/src/main/kotlin/org/rust/toml/intentions/RsTomlElementBaseIntentionAction.kt | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.toml.intentions
import com.intellij.openapi.editor.Editor
import com.intellij.openapi.project.Project
import com.intellij.psi.PsiElement
import org.rust.ide.intentions.RsElementBaseIntentionActi... | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.toml.intentions
import com.intellij.openapi.editor.Editor
import com.intellij.openapi.project.Project
import com.intellij.psi.PsiElement
import org.rust.toml.tomlPluginIsAbiCompatible
import org... | mit | Kotlin |
c1157ec8d9b378d313308a87dfb0ae23b10d75d4 | Fix test names | npryce/krouton,npryce/krouton | test/com/natpryce/krouton/SuffixedRoutes.kt | test/com/natpryce/krouton/SuffixedRoutes.kt | package com.natpryce.krouton
import com.natpryce.hamkrest.absent
import com.natpryce.hamkrest.assertion.assertThat
import com.natpryce.hamkrest.equalTo
import com.natpryce.hamkrest.present
import org.junit.Test
class SuffixedRoutes {
@Test
fun route_suffixed_single_element() {
assertThat((string / "fo... | package com.natpryce.krouton
import com.natpryce.hamkrest.absent
import com.natpryce.hamkrest.assertion.assertThat
import com.natpryce.hamkrest.equalTo
import com.natpryce.hamkrest.present
import org.junit.Test
class SuffixedRoutes {
@Test
fun route_prefixed_single_element() {
assertThat((string / "fo... | apache-2.0 | Kotlin |
ebd8f24880fb88af5d57a3e8d9ac6a8149eb1012 | Use Elvis-Operator instead of if-else | wuan/bo-android | app/src/main/java/org/blitzortung/android/data/provider/result/ResultEvent.kt | app/src/main/java/org/blitzortung/android/data/provider/result/ResultEvent.kt | /*
Copyright 2015 Andreas Würl
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in w... | /*
Copyright 2015 Andreas Würl
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in w... | apache-2.0 | Kotlin |
34ad3f629238788dda09e7d1d7b4e47fef5b03d7 | Update CoverageTestProcessConstants.kt | camunda/camunda-process-test-coverage,camunda/camunda-process-test-coverage | extension/spring-test/src/test/kotlin/org/camunda/bpm/extension/process_test_coverage/spring_test/CoverageTestProcessConstants.kt | extension/spring-test/src/test/kotlin/org/camunda/bpm/extension/process_test_coverage/spring_test/CoverageTestProcessConstants.kt | package org.camunda.bpm.extension.process_test_coverage.spring_test
object CoverageTestProcessConstants {
const val PROCESS_DEFINITION_KEY = "process-test-coverage"
}
| package org.camunda.bpm.extension.process_test_coverage.spring_test
object CoverageTestProcessConstants {
const val PROCESS_DEFINITION_KEY = "process-test-coverage"
} | apache-2.0 | Kotlin |
a9c8e239352b046c9ea55ba9842c91080af65bc2 | Update build.gradle.kts | awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,a... | kotlin/services/ec2/build.gradle.kts | kotlin/services/ec2/build.gradle.kts | import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.5.31"
application
}
group = "me.scmacdon"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
implementation("aws.sdk.kotlin:ec2:0.9.4-beta")
testImplementation("org.junit.jupiter:junit-... | import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.5.31"
application
}
group = "me.scmacdon"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
implementation("aws.sdk.kotlin:ec2:0.9.0-alpha")
testImplementation("org.junit.jupiter:junit... | apache-2.0 | Kotlin |
615d0de585735651c18cf573fea0b7d758ed0ca8 | Update build.gradle.kts | awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,a... | kotlin/services/ecs/build.gradle.kts | kotlin/services/ecs/build.gradle.kts | import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.5.31"
application
}
group = "me.scmacdon"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
implementation("aws.sdk.kotlin:ecs:0.14.3-beta")
testImplementation("org.junit.jupiter:juni... | import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.5.31"
application
}
group = "me.scmacdon"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
implementation("aws.sdk.kotlin:ecs:0.9.4-beta")
testImplementation("org.junit.jupiter:junit... | apache-2.0 | Kotlin |
3abb1bf721bee1c1153e7f0b8a053aca815d05b7 | Clean up Account | Zerocreative0815/energy-model,RalfBr/energy-model,RF-Buerky/energy-model,nicolaiparlog/energy-model | src/main/kotlin/org/codefx/demo/bingen/energy_model/Account.kt | src/main/kotlin/org/codefx/demo/bingen/energy_model/Account.kt | package org.codefx.demo.bingen.energy_model
class Account(var balance: Int, var limit: Int) {
fun deposit(amount: Int): Int {
// only positive amounts are allowed
if (amount < 0) {
return 0
}
// deposit amount
balance += amount
return amount
}
f... | package org.codefx.demo.bingen.energy_model
class Account(var balance: Int, var limit: Int) {
fun deposit(amount: Int): Int {
if (amount >= 0) {
// Condition the balance is not negative
balance += amount
return amount
}
else {
// insufficien... | cc0-1.0 | Kotlin |
e591f20bc5058fca2795cbea556c6a5ec4e72ec6 | Update build.gradle.kts | awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,a... | kotlin/services/redshift/build.gradle.kts | kotlin/services/redshift/build.gradle.kts | import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.5.31"
application
}
group = "me.scmacdon"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
implementation("aws.sdk.kotlin:redshift:0.14.3-beta")
testImplementation("org.junit.jupiter:... | import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.5.31"
application
}
group = "me.scmacdon"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
implementation("aws.sdk.kotlin:redshift:0.9.4-beta")
testImplementation("org.junit.jupiter:j... | apache-2.0 | Kotlin |
dbcc3acfeea43b1b2131528cea6c80a1c0f5d439 | replace testCompile with testImplementation (#36) | drmaas/ratpack-kotlin | ratpack-kotlin-gradle/src/main/kotlin/ratpack/kotlin/gradle/RatpackKotlinPlugin.kt | ratpack-kotlin-gradle/src/main/kotlin/ratpack/kotlin/gradle/RatpackKotlinPlugin.kt | package ratpack.kotlin.gradle
import org.gradle.api.GradleException
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.plugins.ApplicationPluginConvention
import org.gradle.util.GradleVersion
import org.jetbrains.kotlin.gradle.plugin.KotlinPlatformJvmPlugin
import ratpack.gradle.RatpackPl... | package ratpack.kotlin.gradle
import org.gradle.api.GradleException
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.plugins.ApplicationPluginConvention
import org.gradle.util.GradleVersion
import org.jetbrains.kotlin.gradle.plugin.KotlinPlatformJvmPlugin
import ratpack.gradle.RatpackPl... | apache-2.0 | Kotlin |
82386fda8b7978a574eb7602d2455aab6836b006 | Add BluetoothX core's AdvertiseSettings | 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... | bluetooth/bluetooth-core/src/main/java/androidx/bluetooth/core/AdvertiseSettings.kt | bluetooth/bluetooth-core/src/main/java/androidx/bluetooth/core/AdvertiseSettings.kt | /*
* Copyright 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 applica... | apache-2.0 | Kotlin | |
1246a6236e7d87819755df1cd5d07615c61ea9d6 | Disable signature verification for ProjectSubsetsTest | 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... | buildSrc-tests/project-subsets/src/test/kotlin/androidx/build/ProjectSubsetsTest.kt | buildSrc-tests/project-subsets/src/test/kotlin/androidx/build/ProjectSubsetsTest.kt | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | apache-2.0 | Kotlin |
4d528b33cb81e105be0d9fd30e4fba81fc19aa1d | reduce the amount of supported video files | canou/Simple-Commons | commons/src/main/kotlin/com/simplemobiletools/commons/extensions/String.kt | commons/src/main/kotlin/com/simplemobiletools/commons/extensions/String.kt | package com.simplemobiletools.commons.extensions
import android.content.Context
fun String.getFilenameFromPath() = substring(lastIndexOf("/") + 1)
fun String.getFilenameExtension() = substring(lastIndexOf(".") + 1)
fun String.getBasePath(context: Context): String {
return if (startsWith(context.getInternalStora... | package com.simplemobiletools.commons.extensions
import android.content.Context
fun String.getFilenameFromPath() = substring(lastIndexOf("/") + 1)
fun String.getFilenameExtension() = substring(lastIndexOf(".") + 1)
fun String.getBasePath(context: Context): String {
return if (startsWith(context.getInternalStora... | apache-2.0 | Kotlin |
0d7c8d316c5669373e5db865f17c78a581a2cceb | Add integration test for java script sample | robinverduijn/gradle,gradle/gradle,gradle/gradle,gradle/gradle-script-kotlin,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,gradle/gradle-script... | samples-tests/src/test/kotlin/org/gradle/kotlin/dsl/samples/JavaScriptSampleTest.kt | samples-tests/src/test/kotlin/org/gradle/kotlin/dsl/samples/JavaScriptSampleTest.kt | package org.gradle.kotlin.dsl.samples
import org.junit.Test
import java.io.File
import java.io.FileReader
import javax.script.ScriptEngineManager
import java.io.StringWriter
import org.junit.Assert.assertThat
import org.hamcrest.CoreMatchers.equalTo
class JavaScriptSampleTest : AbstractSampleTest("hello-js") {
... | apache-2.0 | Kotlin | |
19f6d08791ac541bc257506eabe7dd82d89bbd14 | Use photos endpoint for unsplash with higher page count | hzsweers/CatchUp,hzsweers/CatchUp,hzsweers/CatchUp,hzsweers/CatchUp | services/unsplash/src/main/kotlin/io/sweers/catchup/service/unsplash/UnsplashApi.kt | services/unsplash/src/main/kotlin/io/sweers/catchup/service/unsplash/UnsplashApi.kt | /*
* Copyright (C) 2019. 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... | /*
* Copyright (C) 2019. 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... | apache-2.0 | Kotlin |
c30868ec0276d54b85437ddc5177a6a0e385bfab | Add command to dump settings | mrkirby153/KirBot | src/main/kotlin/me/mrkirby153/KirBot/command/executors/admin/CommandDumpSettings.kt | src/main/kotlin/me/mrkirby153/KirBot/command/executors/admin/CommandDumpSettings.kt | package me.mrkirby153.KirBot.command.executors.admin
import me.mrkirby153.KirBot.command.BaseCommand
import me.mrkirby153.KirBot.command.Command
import me.mrkirby153.KirBot.command.args.CommandContext
import me.mrkirby153.KirBot.user.Clearance
import me.mrkirby153.KirBot.utils.Context
@Command(name = "dumpSettings", ... | mit | Kotlin | |
e65ef3ab654ecae1f0595526f546c9d2b15c96d8 | load MathLibrary into DefaultKnowledgeBase by default | tmarsteel/kotlin-prolog,tmarsteel/kotlin-prolog | core/src/main/kotlin/com/github/tmarsteel/ktprolog/knowledge/DefaultKnowledgeBase.kt | core/src/main/kotlin/com/github/tmarsteel/ktprolog/knowledge/DefaultKnowledgeBase.kt | package com.github.tmarsteel.ktprolog.knowledge
import com.github.tmarsteel.ktprolog.PrologRuntimeException
import com.github.tmarsteel.ktprolog.RandomVariableScope
import com.github.tmarsteel.ktprolog.VariableMapping
import com.github.tmarsteel.ktprolog.builtin.*
import com.github.tmarsteel.ktprolog.knowledge.library... | package com.github.tmarsteel.ktprolog.knowledge
import com.github.tmarsteel.ktprolog.PrologRuntimeException
import com.github.tmarsteel.ktprolog.RandomVariableScope
import com.github.tmarsteel.ktprolog.VariableMapping
import com.github.tmarsteel.ktprolog.builtin.*
import com.github.tmarsteel.ktprolog.knowledge.library... | mit | Kotlin |
6ba71a26456ae4ce0de2076e9cff21e2bcf5c529 | Remove TODO | google/ground-android,google/ground-android,google/ground-android | ground/src/main/java/com/google/android/ground/persistence/remote/RemoteDataEvent.kt | ground/src/main/java/com/google/android/ground/persistence/remote/RemoteDataEvent.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 |
8c6700d50b3229afe2d23efe907016d93303d708 | Add ConfigStorageAdapterPlugin | BjoernPetersen/JMusicBot | src/main/kotlin/net/bjoernpetersen/musicbot/spi/config/ConfigStorageAdapterPlugin.kt | src/main/kotlin/net/bjoernpetersen/musicbot/spi/config/ConfigStorageAdapterPlugin.kt | package net.bjoernpetersen.musicbot.spi.config
import com.google.common.annotations.Beta
import net.bjoernpetersen.musicbot.api.plugin.ActiveBase
import net.bjoernpetersen.musicbot.api.plugin.IdBase
import net.bjoernpetersen.musicbot.spi.plugin.GenericPlugin
/**
* A kind of [GenericPlugin] providing a ConfigStorageA... | mit | Kotlin | |
742fc0fa651d9efe9cd7fde61272b4ce37d22423 | correct stale comment | norswap/violin,norswap/violin | src/norswap/violin/stream/Compat.kt | src/norswap/violin/stream/Compat.kt | package norswap.violin.stream
import java.util.stream.Stream as JStream
/// Conversion to Stream ---------------------------------------------------------------------------
/**
* Converts an iterator into a stream.
*
* Be cautious: this assumes the iterator is finite and so returns a [Stream].
* If not so, assign... | package norswap.violin.stream
import java.util.stream.Stream as JStream
/// Conversion to Stream ---------------------------------------------------------------------------
/**
* Converts an iterator into a stream.
*
* Be cautious: this assumes the iterator is finite and so returns a [Stream].
* If not so, assign... | bsd-3-clause | Kotlin |
1f7af730ebec88db09dc69b55c4f63d89bf72893 | remove useless function conversions: Kotlin performs these conversions implicitly | norswap/violin,norswap/violin | src/norswap/violin/Functions.kt | src/norswap/violin/Functions.kt | @file:Suppress("NOTHING_TO_INLINE")
package norswap.violin
/**
* This file contains inline methods to convert between functions (of max two parameters)
* and methods as well as functions over pairs.
*/
/**
* Lifts a function of two parameter to a function over a pair.
*/
inline fun <P, Q, R> lift(crossinline f: (... | @file:Suppress("NOTHING_TO_INLINE")
package norswap.violin
/**
* This file contains inline methods to convert between functions (of max two parameters)
* and methods as well as functions over pairs.
*/
/**
* Converts from type `(T) -> R` to `T.() -> R`.
*/
inline fun <T, R> ((T) -> R).methodic(): T.() -> R =
... | bsd-3-clause | Kotlin |
d035de095c063b6f22a7f82af2ebe4e0aa8ae0f6 | Use a SupervisorJob within CoroutineLauncher. (#291) | world-federation-of-advertisers/panel-exchange-client,world-federation-of-advertisers/panel-exchange-client,world-federation-of-advertisers/panel-exchange-client | src/main/kotlin/org/wfanet/panelmatch/client/launcher/CoroutineLauncher.kt | src/main/kotlin/org/wfanet/panelmatch/client/launcher/CoroutineLauncher.kt | // Copyright 2021 The Cross-Media Measurement 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 applic... | // Copyright 2021 The Cross-Media Measurement 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 applic... | apache-2.0 | Kotlin |
a93554b1746b354e01f30c2da4288bf1cf46c7ff | Simplify by using a property extension. | EventFahrplan/EventFahrplan,EventFahrplan/EventFahrplan | app/src/main/java/nerd/tuxmobil/fahrplan/congress/utils/EventUrlComposer.kt | app/src/main/java/nerd/tuxmobil/fahrplan/congress/utils/EventUrlComposer.kt | package nerd.tuxmobil.fahrplan.congress.utils
import nerd.tuxmobil.fahrplan.congress.BuildConfig
import nerd.tuxmobil.fahrplan.congress.utils.ServerBackendType.*
import nerd.tuxmobil.fahrplan.congress.models.Lecture as Event
class EventUrlComposer @JvmOverloads constructor(
private val event: Event,
... | package nerd.tuxmobil.fahrplan.congress.utils
import nerd.tuxmobil.fahrplan.congress.BuildConfig
import nerd.tuxmobil.fahrplan.congress.utils.ServerBackendType.*
import nerd.tuxmobil.fahrplan.congress.models.Lecture as Event
class EventUrlComposer @JvmOverloads constructor(
private val event: Event,
... | apache-2.0 | Kotlin |
72e160e0a154b3a994bbb13efff4eb3ddc979d12 | refactor #485 Fix unit test with injecting unconfined Dispatcher. | toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Yobidashi_kt | article/src/test/java/jp/toastkid/article_viewer/article/list/ListLoaderUseCaseTest.kt | article/src/test/java/jp/toastkid/article_viewer/article/list/ListLoaderUseCaseTest.kt | package jp.toastkid.article_viewer.article.list
import io.mockk.MockKAnnotations
import io.mockk.impl.annotations.MockK
import io.mockk.unmockkAll
import kotlinx.coroutines.Dispatchers
import org.junit.After
import org.junit.Before
import org.junit.Test
/**
* @author toastkidjp
*/
class ListLoaderUseCaseTest {
... | package jp.toastkid.article_viewer.article.list
import io.mockk.MockKAnnotations
import io.mockk.impl.annotations.MockK
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.test.resetMain
import kotlinx.coroutines.test.setMain
import org.junit.After
import org.junit.Before
import org.junit.Test
/**
* @aut... | epl-1.0 | Kotlin |
e83f758689a16e0d66e114b2fe7872593a5e6eff | refactor Util.kt | alibaba/java-dns-cache-manipulator,alibaba/java-dns-cache-manipulator,alibaba/java-dns-cache-manipulator,alibaba/java-dns-cache-manipulator | library/src/test/java/com/alibaba/dcm/Util.kt | library/src/test/java/com/alibaba/dcm/Util.kt | package com.alibaba.dcm
import com.alibaba.dcm.internal.JavaVersionUtil.isJavaVersionAtMost8
import com.alibaba.dcm.internal.TestTimeUtil.NEVER_EXPIRATION_NANO_TIME_TO_TIME_MILLIS
import io.kotest.assertions.fail
import io.kotest.assertions.throwables.shouldThrow
import io.kotest.matchers.longs.shouldBeBetween
import ... | package com.alibaba.dcm
import com.alibaba.dcm.internal.JavaVersionUtil.isJavaVersionAtMost8
import com.alibaba.dcm.internal.TestTimeUtil.NEVER_EXPIRATION_NANO_TIME_TO_TIME_MILLIS
import io.kotest.assertions.fail
import io.kotest.assertions.throwables.shouldThrow
import io.kotest.matchers.longs.shouldBeBetween
import ... | apache-2.0 | Kotlin |
3220c3dd752bccf2eb310344396e2ef74e05e217 | Add missing overrides | facebook/fresco,facebook/fresco,facebook/fresco,facebook/fresco,facebook/fresco,facebook/fresco | ui-common/src/main/java/com/facebook/fresco/ui/common/ForwardingControllerListener2.kt | ui-common/src/main/java/com/facebook/fresco/ui/common/ForwardingControllerListener2.kt | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package com.facebook.fresco.ui.common
import android.util.Log
import com.facebook.fresco.ui.common.ControllerListener2.Extras
im... | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package com.facebook.fresco.ui.common
import android.util.Log
import com.facebook.fresco.ui.common.ControllerListener2.Extras
im... | mit | Kotlin |
b10e6c79d0affc5558a73affb8577061fd4e906f | Update version for previous changes. | just6979/ScoreIt_P10,just6979/ScoreIt_P10,just6979/ScoreModel,just6979/ScoreModel | ScoreModel/src/main/kotlin/net/justinwhite/scoremodel/Version.kt | ScoreModel/src/main/kotlin/net/justinwhite/scoremodel/Version.kt | /*
* Copyright (c) 2015 Justin White <jw@justinwhite.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
... | /*
* Copyright (c) 2015 Justin White <jw@justinwhite.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
... | bsd-3-clause | Kotlin |
24a1c86e757c6683659c9fa82dd565b268939f04 | Fix ModApplier not actually applying modifications. | TachiWeb/TachiWeb-Server,TachiWeb/TachiWeb-Server,TachiWeb/TachiWeb-Server,TachiWeb/TachiWeb-Server,TachiWeb/TachiWeb-Server | AndroidCompat/src/main/java/xyz/nulldev/androidcompat/bytecode/ModApplier.kt | AndroidCompat/src/main/java/xyz/nulldev/androidcompat/bytecode/ModApplier.kt | package xyz.nulldev.androidcompat.bytecode
import javassist.CtClass
import org.slf4j.LoggerFactory
/**
* Applies Javassist modifications
*/
class ModApplier {
val forceOverrideMod by lazy { ForceOverrideMod() }
val logger = LoggerFactory.getLogger(ModApplier::class.java)
fun apply() {
logger... | package xyz.nulldev.androidcompat.bytecode
import javassist.CtClass
import org.slf4j.LoggerFactory
/**
* Applies Javassist modifications
*/
class ModApplier {
val forceOverrideMod by lazy { ForceOverrideMod() }
val logger = LoggerFactory.getLogger(ModApplier::class.java)
fun apply() {
logger... | apache-2.0 | Kotlin |
63e02b1a8c0fb6c1d075e265fd05cfb05e9508ff | Create import tag template | shiraji/databinding-support,shiraji/databinding-support,shiraji/databinding-support | src/main/kotlin/com/github/shiraji/databindinglayout/intentions/AddImportTagIntention.kt | src/main/kotlin/com/github/shiraji/databindinglayout/intentions/AddImportTagIntention.kt | package com.github.shiraji.databindinglayout.intentions
import com.github.shiraji.databindinglayout.getRootTag
import com.github.shiraji.databindinglayout.isDatabindingRootTag
import com.intellij.codeInsight.intention.IntentionAction
import com.intellij.lang.xml.XMLLanguage
import com.intellij.openapi.editor.Editor
im... | package com.github.shiraji.databindinglayout.intentions
import com.github.shiraji.databindinglayout.getRootTag
import com.github.shiraji.databindinglayout.isDatabindingRootTag
import com.intellij.codeInsight.intention.IntentionAction
import com.intellij.lang.xml.XMLLanguage
import com.intellij.openapi.editor.Editor
im... | apache-2.0 | Kotlin |
c60e6bf8f00474c2cbcd97780f6062d307a847ea | Convert 'jenetics.xml' module. | jenetics/jenetics,jenetics/jenetics,jenetics/jenetics,jenetics/jenetics,jenetics/jenetics,jenetics/jenetics,jenetics/jenetics | jenetics.xml/build.gradle.kts | jenetics.xml/build.gradle.kts | /*
* Java Genetic Algorithm Library (@__identifier__@).
* Copyright (c) @__year__@ Franz Wilhelmstötter
*
* 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/... | /*
* Java Genetic Algorithm Library (@__identifier__@).
* Copyright (c) @__year__@ Franz Wilhelmstötter
*
* 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/... | apache-2.0 | Kotlin |
a7dba396d5105d55eef5301f173317eac5dd2437 | Allow to get View children as a sequence (#72) | colriot/anko,Ribesg/anko,Ribesg/anko,Ribesg/anko,is00hcw/anko,mr-max/anko,colriot/anko,Kotlin/anko,colriot/anko,is00hcw/anko,deva666/anko,fboldog/anko,mr-max/anko,deva666/anko,mr-max/anko,JetBrains/anko,JetBrains/anko,deva666/anko,Kotlin/anko,is00hcw/anko,fboldog/anko,Kotlin/anko,fboldog/anko,JetBrains/anko | dsl/static/src/common/viewChildrenSequences.kt | dsl/static/src/common/viewChildrenSequences.kt | package org.jetbrains.anko
import android.view.*
import java.util.*
public fun View.childrenSequence(): Sequence<View> = ViewChildrenSequence(this)
public fun View.childrenRecursiveSequence(): Sequence<View> = ViewChildrenRecursiveSequence(this)
private class ViewChildrenSequence(private val view: View) : Sequence<... | apache-2.0 | Kotlin | |
38138f58faa60f87e931f6678e2b41ec3fe3b710 | Update core-datastore/build.gradle.kts | android/nowinandroid,android/nowinandroid | core-datastore/build.gradle.kts | core-datastore/build.gradle.kts | /*
* Copyright 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | /*
* Copyright 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | apache-2.0 | Kotlin |
5e776719c76157b49de13cfa34d2342d028eaa19 | Advance version | SpineEventEngine/base,SpineEventEngine/base,SpineEventEngine/base | version.gradle.kts | version.gradle.kts | /*
* Copyright 2020, TeamDev. All rights reserved.
*
* Redistribution and use in source and/or binary forms, with or without
* modification, must retain the above copyright notice and the following
* disclaimer.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR... | /*
* Copyright 2020, TeamDev. All rights reserved.
*
* Redistribution and use in source and/or binary forms, with or without
* modification, must retain the above copyright notice and the following
* disclaimer.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR... | apache-2.0 | Kotlin |
3abd59cda7e9d18704bf5208fa278cf5a2747096 | Fix closed stream when trying to read command help | mrkirby153/KirBot | src/main/kotlin/me/mrkirby153/KirBot/command/help/HelpManager.kt | src/main/kotlin/me/mrkirby153/KirBot/command/help/HelpManager.kt | package me.mrkirby153.KirBot.command.help
import me.mrkirby153.KirBot.Bot
import org.json.JSONArray
import org.json.JSONObject
import org.json.JSONTokener
class HelpManager {
val commands = mutableListOf<CommandHelp>()
fun load() {
val INPUT_STREAM = this.javaClass.getResourceAsStream("/commands.jso... | package me.mrkirby153.KirBot.command.help
import me.mrkirby153.KirBot.Bot
import org.json.JSONArray
import org.json.JSONObject
import org.json.JSONTokener
class HelpManager {
val commands = mutableListOf<CommandHelp>()
private val INPUT_STREAM = this.javaClass.getResourceAsStream("/commands.json")!!
fu... | mit | Kotlin |
5bb1133f0f3a114d5ac06565abcdb965f8d1c28d | Use non nullable parameters in the MangaCover invoke function (#7624) | CarlosEsco/tachiyomi | app/src/main/java/eu/kanade/presentation/components/MangaCover.kt | app/src/main/java/eu/kanade/presentation/components/MangaCover.kt | package eu.kanade.presentation.components
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.aspectRatio
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
im... | package eu.kanade.presentation.components
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.aspectRatio
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
im... | apache-2.0 | Kotlin |
9aa3ffc866d2af705f84cc7766fd88f1b445c64d | bump com.google.protobuf from 0.8.18 to 0.8.19 (via #804) | 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 |
633ededa2a5abb408ffb0638f65ead2e16e4eb10 | update plugin com.gradle.enterprise to v3.10.3 | DanySK/gson-extras,DanySK/gson-extras,DanySK/gson-extras | settings.gradle.kts | settings.gradle.kts | rootProject.name = "gson-extras"
enableFeaturePreview("VERSION_CATALOGS")
plugins {
id("com.gradle.enterprise") version "3.10.3"
}
gradleEnterprise {
buildScan {
termsOfServiceUrl = "https://gradle.com/terms-of-service"
termsOfServiceAgree = "yes"
publishOnFailure()
}
}
| rootProject.name = "gson-extras"
enableFeaturePreview("VERSION_CATALOGS")
plugins {
id("com.gradle.enterprise") version "3.10.2"
}
gradleEnterprise {
buildScan {
termsOfServiceUrl = "https://gradle.com/terms-of-service"
termsOfServiceAgree = "yes"
publishOnFailure()
}
}
| apache-2.0 | Kotlin |
776919bdbac119f78e8e78ef6394468f41143f4c | Update to Android-Components 109.0.20221117001233. | mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android | buildSrc/src/main/java/AndroidComponents.kt | buildSrc/src/main/java/AndroidComponents.kt | /* 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/. */
object AndroidComponents {
const val VERSION = "109.0.20221117001233"
}
| /* 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/. */
object AndroidComponents {
const val VERSION = "109.0.20221116192746"
}
| mpl-2.0 | Kotlin |
56e3ef99edf41034a76fa9dbf9bd5ccc8e0614c2 | Update to Android-Components 97.0.20211220143250. | mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android | buildSrc/src/main/java/AndroidComponents.kt | buildSrc/src/main/java/AndroidComponents.kt | /* 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/. */
object AndroidComponents {
const val VERSION = "97.0.20211220143250"
}
| /* 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/. */
object AndroidComponents {
const val VERSION = "97.0.20211219190304"
}
| mpl-2.0 | Kotlin |
f26e19b0fadc75ee99eba8e7a97eaf8433629ae4 | Add missing group in google repo content | LouisCAD/Splitties,LouisCAD/Splitties,LouisCAD/Splitties | buildSrc/src/main/kotlin/dependencies/DependenciesRepositories.kt | buildSrc/src/main/kotlin/dependencies/DependenciesRepositories.kt | /*
* Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
*/
@file:Suppress("PackageDirectoryMismatch", "SpellCheckingInspection")
import org.gradle.api.artifacts.dsl.RepositoryHandler
import org.gradle.kotlin.dsl.maven
fun RepositoryHandler.setupForProject() {... | /*
* Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
*/
@file:Suppress("PackageDirectoryMismatch", "SpellCheckingInspection")
import org.gradle.api.artifacts.dsl.RepositoryHandler
import org.gradle.kotlin.dsl.maven
fun RepositoryHandler.setupForProject() {... | apache-2.0 | Kotlin |
d5700920f5624106a7b7f841fa902d8bf4028ca0 | Build tools 30.0.1. | ReactiveCircus/FlowBinding,ReactiveCircus/FlowBinding | buildSrc/src/main/kotlin/reactivecircus/flowbinding/AndroidSdk.kt | buildSrc/src/main/kotlin/reactivecircus/flowbinding/AndroidSdk.kt | @file:Suppress("ClassName")
package reactivecircus.flowbinding
object androidSdk {
const val minSdk = 14
const val testMinSdk = 21
const val targetSdk = 30
const val compileSdk = 30
const val buildTools = "30.0.1"
}
| @file:Suppress("ClassName")
package reactivecircus.flowbinding
object androidSdk {
const val minSdk = 14
const val testMinSdk = 21
const val targetSdk = 30
const val compileSdk = 30
const val buildTools = "30.0.0"
}
| apache-2.0 | Kotlin |
e339e4ccaf360e1a15ce272ae7a245656b40642e | Implement arguments for menuitem, change to all lowercase | nimakro/tornadofx,nimakro/tornadofx,genobis/tornadofx,genobis/tornadofx,edvin/tornadofx,edvin/tornadofx | src/main/java/tornadofx/Menu.kt | src/main/java/tornadofx/Menu.kt | package tornadofx
import javafx.event.ActionEvent
import javafx.scene.Node
import javafx.scene.control.*
import javafx.scene.input.KeyCombination
operator fun <T: MenuItem> Menu.plusAssign(menuItem: T): Unit {
this.items += menuItem
}
operator fun MenuBar.plusAssign(menu: Menu): Unit {
this.menus += menu
}
f... | package tornadofx
import javafx.event.ActionEvent
import javafx.scene.Node
import javafx.scene.control.*
operator fun <T: MenuItem> Menu.plusAssign(menuItem: T): Unit {
this.items += menuItem
}
operator fun MenuBar.plusAssign(menu: Menu): Unit {
this.menus += menu
}
fun MenuBar.menu(name: String? = null, op:... | apache-2.0 | Kotlin |
bdcf2ec7b1d7d2a8db594c0c4dab3b6adfd89269 | Fix check for existence of today's backup | aleksey-zhidkov/jeb-k | src/main/kotlin/jeb/Backuper.kt | src/main/kotlin/jeb/Backuper.kt | package jeb
import java.io.File
import java.time.LocalDate
import java.time.ZoneId
import java.util.*
class Backuper(private val io: Io) {
public fun doBackup(state: State): State {
if (io.fileExists(File(state.backupsDir), ::dirModifiedToday)) {
return state
}
val (newState,... | package jeb
import java.io.File
import java.time.LocalDate
import java.time.ZoneId
import java.util.*
class Backuper(private val io: Io) {
public fun doBackup(state: State): State {
if (io.fileExists(File(state.backupsDir), ::modifiedToday)) {
return state
}
val (newState, ne... | apache-2.0 | Kotlin |
0f494e4244adb76d464e9ea3238fd05a2bcace71 | Add array manipulation soluction | denisrmp/hacker-rank | data-structures/arrays/array_manipulation.kt | data-structures/arrays/array_manipulation.kt | // https://www.hackerrank.com/challenges/crush/problem
fun main(args: Array<String>) {
val (_, qtyManipulations) = readLine().orEmpty()
.trim()
.split(' ')
.map { i -> i.toInt() }
val array = sortedMapOf<Int, Long>()
for (i in 0 until qtyManipulations) {
val (from, to, i... | mit | Kotlin | |
4e8d07ac5e050f139b4760dd82412c680800c76c | remove nth node | 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/remove_nth_node/RemoveNthNode.kt | kotlin/src/katas/kotlin/leetcode/remove_nth_node/RemoveNthNode.kt | package katas.kotlin.leetcode.remove_nth_node
import kotlincommon.test.shouldEqual
import org.junit.Test
private data class ListNode(val value: Int, var next: ListNode? = null)
class RemoveNthNodeTests {
@Test fun `it mostly works`() {
ListNode(1).removeNthFromEnd(1) shouldEqual null
ListNode(1,... | package katas.kotlin.leetcode.remove_nth_node
import kotlincommon.test.shouldEqual
import org.junit.Test
private data class ListNode(val value: Int, var next: ListNode? = null)
class RemoveNthNodeTests {
@Test fun `it mostly works`() {
ListNode(1).removeNthFromEnd(1) shouldEqual null
ListNode(1,... | unlicense | Kotlin |
45b81721b38db06289a32db7896f932d07691dc9 | Add ChatTypeMessageReceiver methods to MessageReceiver | pie-flavor/Kludge | src/main/kotlin/flavor/pie/kludge/players.kt | src/main/kotlin/flavor/pie/kludge/players.kt | package flavor.pie.kludge
import org.spongepowered.api.entity.living.player.Player
import org.spongepowered.api.item.inventory.Inventory
import org.spongepowered.api.item.inventory.type.GridInventory
import org.spongepowered.api.item.inventory.entity.Hotbar
import org.spongepowered.api.text.Text
import org.spongepower... | package flavor.pie.kludge
import org.spongepowered.api.entity.living.player.Player
import org.spongepowered.api.item.inventory.Inventory
import org.spongepowered.api.item.inventory.type.GridInventory
import org.spongepowered.api.item.inventory.entity.Hotbar
val Player.storageInventory
get() = inventory.query<Inve... | mit | Kotlin |
ba201a2bb99c74ed7ba4241ae569215678e8e711 | load all pages for profile courses | StepicOrg/stepic-android,StepicOrg/stepik-android,StepicOrg/stepic-android,StepicOrg/stepik-android,StepicOrg/stepic-android,StepicOrg/stepik-android | app/src/main/java/org/stepik/android/domain/course_list/interactor/CourseListInteractor.kt | app/src/main/java/org/stepik/android/domain/course_list/interactor/CourseListInteractor.kt | package org.stepik.android.domain.course_list.interactor
import io.reactivex.Observable
import io.reactivex.Single
import org.stepic.droid.util.PagedList
import org.stepic.droid.util.plus
import org.stepik.android.domain.course_list.model.CourseListQuery
import org.stepik.android.domain.course_list.repository.CourseLi... | package org.stepik.android.domain.course_list.interactor
import io.reactivex.Single
import org.stepic.droid.util.PagedList
import org.stepik.android.domain.course_list.model.CourseListQuery
import org.stepik.android.domain.course_list.repository.CourseListRepository
import org.stepik.android.model.Course
import javax.... | apache-2.0 | Kotlin |
89b520b2490c86d7bbfc2ccb027ba15c83869c6e | Replace custom map with stdlib let | andrewoma/kommon | src/main/kotlin/com/github/andrewoma/kommon/script/Environment.kt | src/main/kotlin/com/github/andrewoma/kommon/script/Environment.kt | /*
* Copyright (c) 2014 Andrew O'Malley
*
* 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, pub... | /*
* Copyright (c) 2014 Andrew O'Malley
*
* 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, pub... | mit | Kotlin |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.