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 |
|---|---|---|---|---|---|---|---|---|
34fe33207e0adfded7d5138bb4d302ccb5ed4928 | Simplify example spec. | dam5s/kspec | libraries/kspec/src/test/kotlin/kspec/PersonSpec.kt | libraries/kspec/src/test/kotlin/kspec/PersonSpec.kt | package kspec
import io.damo.kspec.Spec
import org.hamcrest.Matchers.equalTo
import org.junit.Assert.assertThat
class PersonSpec : Spec({
describe("#fullName") {
context {
val person = buildPerson(
firstName = "Jane",
lastName = "Doe"
)
... | package kspec
import io.damo.kspec.Spec
import org.hamcrest.Matchers.equalTo
import org.junit.Assert.assertThat
class PersonSpec : Spec({
var person = buildPerson()
before {
person = buildPerson(firstName = "Jane", lastName = "Doe")
}
describe("#fullName") {
context {
ass... | mit | Kotlin |
4f324d82969e5e10fce6e0576ef43422226c2296 | Remove flaky test | chrisbanes/tivi,chrisbanes/tivi | app/src/androidTest/java/app/tivi/HomeActivityNavigationTests.kt | app/src/androidTest/java/app/tivi/HomeActivityNavigationTests.kt | /*
* Copyright 2017 Google, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | /*
* Copyright 2017 Google, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | apache-2.0 | Kotlin |
4f8b7d12664df2240c988fe831e0deb110e42d81 | Fix cache testing on cross targets | JetBrains/kotlin-native,wiltonlazary/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,wiltonlazary/kotlin-native,wiltonlazary/kotlin-native,wiltonlazary/kotlin-native,JetBrains/kotlin-nat... | build-tools/src/main/kotlin/org/jetbrains/kotlin/CacheTesting.kt | build-tools/src/main/kotlin/org/jetbrains/kotlin/CacheTesting.kt | package org.jetbrains.kotlin
import org.gradle.api.Project
import org.gradle.api.Task
import org.gradle.api.tasks.Exec
import org.jetbrains.kotlin.konan.target.CompilerOutputKind
import org.jetbrains.kotlin.konan.util.visibleName
class CacheTesting(val buildCacheTask: Task, val compilerArgs: List<String>, val isDynam... | package org.jetbrains.kotlin
import org.gradle.api.Project
import org.gradle.api.Task
import org.gradle.api.tasks.Exec
import org.jetbrains.kotlin.konan.target.CompilerOutputKind
import org.jetbrains.kotlin.konan.util.visibleName
class CacheTesting(val buildCacheTask: Task, val compilerArgs: List<String>, val isDynam... | apache-2.0 | Kotlin |
f4c6aae13552d7c66c2b871a0aee2c499908ccdf | fix vertical progress bar | StepicOrg/stepic-android,StepicOrg/stepik-android,StepicOrg/stepic-android,StepicOrg/stepik-android,StepicOrg/stepic-android,StepicOrg/stepik-android | app/src/main/java/org/stepic/droid/ui/custom/vertical_progress_bar/VerticalProgressBar.kt | app/src/main/java/org/stepic/droid/ui/custom/vertical_progress_bar/VerticalProgressBar.kt | package org.stepic.droid.ui.custom.vertical_progress_bar
import android.content.Context
import android.graphics.Canvas
import android.graphics.Paint
import android.graphics.Rect
import android.support.annotation.ColorInt
import android.util.AttributeSet
import android.view.View
import org.stepic.droid.R
class Vertica... | package org.stepic.droid.ui.custom.vertical_progress_bar
import android.content.Context
import android.graphics.Canvas
import android.graphics.Paint
import android.graphics.Rect
import android.support.annotation.ColorInt
import android.util.AttributeSet
import android.view.View
import org.stepic.droid.R
class Vertica... | apache-2.0 | Kotlin |
9303a1dde54ae4491d77202bc03071f478b5d888 | refactor #511 Rename test function. | toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Yobidashi_kt | app/src/test/java/jp/toastkid/yobidashi/editor/usecase/CurrentLineSelectionUseCaseTest.kt | app/src/test/java/jp/toastkid/yobidashi/editor/usecase/CurrentLineSelectionUseCaseTest.kt | /*
* Copyright (c) 2021 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) 2021 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 |
ef925f6e090cb15fe9bcb645b3c85f7bc0b3e14a | decrease log file size to 30 Kb | 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/stats-collector/src/com/intellij/stats/completion/logger/LogFileManager.kt | plugins/stats-collector/src/com/intellij/stats/completion/logger/LogFileManager.kt | /*
* Copyright 2000-2020 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... | /*
* Copyright 2000-2020 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 |
86eb880853e93dee471a4849c5854f7060f4fba4 | Remove redundant group suffix from chat | andimage/PCBridge | src/main/kotlin/com/projectcitybuild/spigot/modules/chat/listeners/ChatListener.kt | src/main/kotlin/com/projectcitybuild/spigot/modules/chat/listeners/ChatListener.kt | package com.projectcitybuild.spigot.modules.chat.listeners
import com.projectcitybuild.core.contracts.EnvironmentProvider
import com.projectcitybuild.core.contracts.Listenable
import org.bukkit.ChatColor
import org.bukkit.event.EventHandler
import org.bukkit.event.EventPriority
import org.bukkit.event.player.AsyncPlay... | package com.projectcitybuild.spigot.modules.chat.listeners
import com.projectcitybuild.core.contracts.EnvironmentProvider
import com.projectcitybuild.core.contracts.Listenable
import org.bukkit.event.EventHandler
import org.bukkit.event.EventPriority
import org.bukkit.event.player.AsyncPlayerChatEvent
class ChatListe... | mit | Kotlin |
2b612556339a343a7b5b5853117e4aa1cdeb710b | Update constructor to use both local and remote data source. | ramonrabello/Kiphy | app/src/main/kotlin/com/github/ramonrabello/kiphy/trends/data/TrendingRepository.kt | app/src/main/kotlin/com/github/ramonrabello/kiphy/trends/data/TrendingRepository.kt | package com.github.ramonrabello.kiphy.trends.data
import com.github.ramonrabello.kiphy.trends.data.source.TrendingDataSource
import io.reactivex.Single
class TrendingRepository(
private val localDataSource: TrendingDataSource,
private val remoteDataSource: TrendingDataSource) {
fun loadTrending()... | package com.github.ramonrabello.kiphy.trends.data
import io.reactivex.Single
class TrendingRepository(
private val localDataSource: TrendingDataSource,
private val remoteDataSource: TrendingDataSource) {
fun loadTrending() = Single.merge(
remoteDataSource.loadTrending(),
l... | apache-2.0 | Kotlin |
d6d559a340ccb0a93a358eb6c227b08ab7be3a22 | Bump micrometer-core from 1.6.2 to 1.7.0 (#2483) | ktorio/ktor,ktorio/ktor,ktorio/ktor,ktorio/ktor | ktor-features/ktor-metrics-micrometer/build.gradle.kts | ktor-features/ktor-metrics-micrometer/build.gradle.kts | tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().all {
kotlinOptions {
// micrometer uses jdk 1.8 features, so we need to use that version here
jvmTarget = "1.8"
}
}
kotlin {
sourceSets {
val jvmMain by getting {
dependencies {
// 1.1.3 i... | tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().all {
kotlinOptions {
// micrometer uses jdk 1.8 features, so we need to use that version here
jvmTarget = "1.8"
}
}
kotlin {
sourceSets {
val jvmMain by getting {
dependencies {
// 1.1.3 i... | apache-2.0 | Kotlin |
e1f4b989ce6cc0bc0037a09c70f834000be076fd | Make partial operations resolver correct | bibaev/stream-debugger-plugin,bibaev/stream-debugger-plugin | src/main/java/com/intellij/debugger/streams/resolve/PartialReductionResolverBase.kt | src/main/java/com/intellij/debugger/streams/resolve/PartialReductionResolverBase.kt | /*
* Copyright 2000-2017 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... | /*
* Copyright 2000-2017 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 |
c0c8c86a1787d436fc5443e0f1c12f81dcdd30b9 | add async command thing | noud02/Akatsuki | src/main/kotlin/me/noud02/akatsuki/bot/entities/AsyncCommand.kt | src/main/kotlin/me/noud02/akatsuki/bot/entities/AsyncCommand.kt | package me.noud02.akatsuki.bot.entities
import kotlinx.coroutines.experimental.async
open class AsyncCommand {
val subcommands = mutableMapOf<String, Command>()
open val name = "awoo"
open val desc = "awoo~"
open val ownerOnly = false
open val noHelp = false
open val guildOnly = false
ope... | package me.noud02.akatsuki.bot.entities
class AsyncCommand {
} | mit | Kotlin |
09cb42285c2f92f069498a655ac4bb8e35d1e68e | Add HbsTranslationReferenceTest class | Turbo87/intellij-emberjs,Turbo87/intellij-emberjs,Turbo87/intellij-emberjs,Turbo87/intellij-emberjs | src/test/kotlin/com/emberjs/intl/HbsTranslationReferenceTest.kt | src/test/kotlin/com/emberjs/intl/HbsTranslationReferenceTest.kt | package com.emberjs.intl
import com.dmarcotte.handlebars.file.HbFileType
import com.intellij.testFramework.fixtures.LightPlatformCodeInsightFixtureTestCase
import com.intellij.util.indexing.FileBasedIndex
import org.assertj.core.api.Assertions.assertThat
import java.nio.file.Paths
class HbsTranslationReferenceTest : ... | apache-2.0 | Kotlin | |
5bb9357dbedc87433ac6ce794dcf88578b216667 | Disable part of a test that gives us DB check inconsistencies | github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql | java/ql/test/kotlin/library-tests/controlflow/dominance/Test2.kt | java/ql/test/kotlin/library-tests/controlflow/dominance/Test2.kt | import java.math.*
class MyExn: Throwable() {}
public class Test2 {
@Throws(Throwable::class)
fun f() {}
@Throws(Throwable::class)
fun g(b: Boolean) {
while (b) {
if (b) {
} else {
try {
f()
} catch (e: MyExn) {}
;
}
}
}
fun t(x: Int) {
if (x < 0) {
return
}
... | import java.math.*
class MyExn: Throwable() {}
public class Test2 {
@Throws(Throwable::class)
fun f() {}
@Throws(Throwable::class)
fun g(b: Boolean) {
while (b) {
if (b) {
} else {
try {
f()
} catch (e: MyExn) {}
;
}
}
}
fun t(x: Int) {
if (x < 0) {
return
}
... | mit | Kotlin |
1a627f1fce89ed4c2853ea0617b259ef2098a125 | refactor #412 Implement unit test. | toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Jitte,toastkidjp/Yobidashi_kt | app/src/test/java/jp/toastkid/yobidashi/search/usecase/ContentSwitcherUseCaseTest.kt | app/src/test/java/jp/toastkid/yobidashi/search/usecase/ContentSwitcherUseCaseTest.kt | /*
* Copyright (c) 2021 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 | |
ea4ec102f22254e6bba63c17648bcac17658612e | change test name | elpassion/cloud-timer-android,elpassion/cloud-timer-android,elpassion/cloud-timer-android | app/src/androidTest/java/pl/elpassion/cloudtimer/TimerGUITest.kt | app/src/androidTest/java/pl/elpassion/cloudtimer/TimerGUITest.kt | package pl.elpassion.cloudtimer
import android.support.test.espresso.Espresso.closeSoftKeyboard
import org.junit.Rule
import org.junit.Test
import pl.elpassion.cloudtimer.ComponentsTestsUtils.isComponentDisplayed
class TimerGUITest {
@Rule @JvmField
val rule = rule<TimerActivity> { }
@Test
fun isTime... | package pl.elpassion.cloudtimer
import android.support.test.espresso.Espresso.closeSoftKeyboard
import org.junit.Rule
import org.junit.Test
import pl.elpassion.cloudtimer.ComponentsTestsUtils.isComponentDisplayed
class TimerGUITest {
@Rule @JvmField
val rule = rule<TimerActivity> { }
@Test
fun fiftee... | apache-2.0 | Kotlin |
a926f0c3faa3e2cf68bdf8e69a0c1d2f0b6b40b3 | Add remote config keys | StepicOrg/stepik-android,StepicOrg/stepik-android,StepicOrg/stepik-android | app/src/main/java/org/stepic/droid/configuration/RemoteConfig.kt | app/src/main/java/org/stepic/droid/configuration/RemoteConfig.kt | package org.stepic.droid.configuration
object RemoteConfig {
const val PREFIX = "remote_config_"
const val MIN_DELAY_RATE_DIALOG_SEC = "min_delay_rate_dialog_sec"
const val SHOW_STREAK_DIALOG_AFTER_LOGIN = "show_streak_dialog_after_login"
const val ADAPTIVE_COURSES = "adaptive_courses_android"
con... | package org.stepic.droid.configuration
object RemoteConfig {
const val PREFIX = "remote_config_"
const val MIN_DELAY_RATE_DIALOG_SEC = "min_delay_rate_dialog_sec"
const val SHOW_STREAK_DIALOG_AFTER_LOGIN = "show_streak_dialog_after_login"
const val ADAPTIVE_COURSES = "adaptive_courses_android"
con... | apache-2.0 | Kotlin |
a6eb937e695af74146012ac5257b8d87c0cce06e | add documentation for LessonBottomSheetBehavior | material-components/material-components-android-examples | Owl/app/src/main/java/com/materialstudies/owl/ui/lessons/LessonBottomSheetBehavior.kt | Owl/app/src/main/java/com/materialstudies/owl/ui/lessons/LessonBottomSheetBehavior.kt | package com.materialstudies.owl.ui.lessons
import android.content.Context
import android.util.AttributeSet
import android.view.MotionEvent
import android.view.View
import androidx.coordinatorlayout.widget.CoordinatorLayout
import com.google.android.material.bottomsheet.BottomSheetBehavior
/**
* A [BottomSheetBehavi... | package com.materialstudies.owl.ui.lessons
import android.content.Context
import android.util.AttributeSet
import android.view.MotionEvent
import android.view.View
import androidx.coordinatorlayout.widget.CoordinatorLayout
import com.google.android.material.bottomsheet.BottomSheetBehavior
class LessonBottomSheetBehav... | apache-2.0 | Kotlin |
15c77b2e8b8c415543a80937729049ab8c5e4abf | Remove unneeded constraints. | kmizu/kollection | src/main/kotlin/com/github/kmizu/kollection/KOption.kt | src/main/kotlin/com/github/kmizu/kollection/KOption.kt | package com.github.kmizu.kollection
sealed class KOption<out T>(): Iterable<T>, KFoldable<T>, KImmutableLinearSequence<T> {
class Some<T>(val value: T) : KOption<T>() {
override fun equals(other: Any?): Boolean = when(other){
is Some<*> -> value == other.value
else -> false
... | package com.github.kmizu.kollection
sealed class KOption<out T>(): Iterable<T>, KFoldable<T>, KImmutableLinearSequence<T> {
class Some<T>(val value: T) : KOption<T>() {
override fun equals(other: Any?): Boolean = when(other){
is Some<*> -> value == other.value
else -> false
... | mit | Kotlin |
d403e78bf3a9655461fa4b57beaf2003272e662d | Resolve premature | Cognifide/gradle-aem-plugin,Cognifide/gradle-aem-plugin | src/main/kotlin/com/cognifide/gradle/aem/instance/ResolveTask.kt | src/main/kotlin/com/cognifide/gradle/aem/instance/ResolveTask.kt | package com.cognifide.gradle.aem.instance
import com.cognifide.gradle.aem.api.AemDefaultTask
import org.gradle.api.tasks.Internal
import org.gradle.api.tasks.TaskAction
open class ResolveTask : AemDefaultTask() {
companion object {
const val NAME = "aemResolve"
}
init {
description = "Re... | package com.cognifide.gradle.aem.instance
import com.cognifide.gradle.aem.api.AemDefaultTask
import org.gradle.api.tasks.Internal
import org.gradle.api.tasks.TaskAction
open class ResolveTask : AemDefaultTask() {
companion object {
const val NAME = "aemResolve"
}
init {
description = "Re... | apache-2.0 | Kotlin |
d3db1b83f98ee8aaadcbffff7660a6ac8a7cba6f | Add worker action to load KtLint rulesets and serialize them into file. | JLLeitschuh/ktlint-gradle,JLLeitschuh/ktlint-gradle | plugin/src/main/kotlin/org/jlleitschuh/gradle/ktlint/worker/RuleSetLoaderWorkAction.kt | plugin/src/main/kotlin/org/jlleitschuh/gradle/ktlint/worker/RuleSetLoaderWorkAction.kt | package org.jlleitschuh.gradle.ktlint.worker
import com.pinterest.ktlint.core.RuleSet
import com.pinterest.ktlint.core.RuleSetProvider
import org.gradle.api.file.RegularFileProperty
import org.gradle.api.provider.Property
import org.gradle.api.provider.SetProperty
import org.gradle.workers.WorkAction
import org.gradle... | mit | Kotlin | |
8fe62e70e63ff05a09ee6184696fbe679752ce94 | Fix calc | KotlinNLP/SimpleDNN | src/main/kotlin/com/kotlinnlp/simplednn/core/mergelayers/product/ProductBackwardHelper.kt | src/main/kotlin/com/kotlinnlp/simplednn/core/mergelayers/product/ProductBackwardHelper.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 |
d7c4b390a1dd8e06713ff721d5a44c3a0636715c | Fix case exception | ykrank/S1-Next,ykrank/S1-Next,ykrank/S1-Next | app/src/main/java/me/ykrank/s1next/view/dialog/ThreadFavouritesAddRequestDialogFragment.kt | app/src/main/java/me/ykrank/s1next/view/dialog/ThreadFavouritesAddRequestDialogFragment.kt | package me.ykrank.s1next.view.dialog
import android.os.Bundle
import io.reactivex.Single
import me.ykrank.s1next.App
import me.ykrank.s1next.R
import me.ykrank.s1next.data.api.model.wrapper.AccountResultWrapper
import me.ykrank.s1next.widget.track.event.AddFavoriteTrackEvent
/**
* A dialog requests to add thread to ... | package me.ykrank.s1next.view.dialog
import android.os.Bundle
import io.reactivex.Single
import me.ykrank.s1next.App
import me.ykrank.s1next.R
import me.ykrank.s1next.data.api.model.wrapper.AccountResultWrapper
import me.ykrank.s1next.widget.track.event.AddFavoriteTrackEvent
/**
* A dialog requests to add thread to ... | apache-2.0 | Kotlin |
8fa4a5f784ae55d89383aafe1acafdf8a1166e92 | Create a FontArbiter for managing fonts and making them accessible | hzsweers/CatchUp,hzsweers/CatchUp,hzsweers/CatchUp,hzsweers/CatchUp | app/src/main/kotlin/io/sweers/catchup/ui/FontArbiter.kt | app/src/main/kotlin/io/sweers/catchup/ui/FontArbiter.kt | package io.sweers.catchup.ui
import android.content.Context
import android.graphics.Typeface
import android.os.Handler
import android.os.HandlerThread
import android.support.v4.provider.FontRequest
import android.support.v4.provider.FontsContractCompat
import android.support.v4.provider.FontsContractCompat.FontRequest... | apache-2.0 | Kotlin | |
13c40667fac76d7c72095b1041d0aa17f62744df | refactor #523 Implement ForegroundColorFilterUseCase's unit test. | toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Jitte | lib/src/test/java/jp/toastkid/lib/view/filter/color/ForegroundColorFilterUseCaseTest.kt | lib/src/test/java/jp/toastkid/lib/view/filter/color/ForegroundColorFilterUseCaseTest.kt | /*
* Copyright (c) 2021 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 | |
922e9fbfe9c185e5b6cfbff4d42cb0635c35fcab | Add an extension function for DirectedGraph that build a reverse graph | MichaelRocks/lightsaber,MichaelRocks/lightsaber | processor/src/main/kotlin/io/michaelrocks/lightsaber/processor/graph/GraphExtensions.kt | processor/src/main/kotlin/io/michaelrocks/lightsaber/processor/graph/GraphExtensions.kt | /*
* Copyright 2016 Michael Rozumyanskiy
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | apache-2.0 | Kotlin | |
6236cfc7c73f7b219daebb1a1c6c1aba2f977610 | Update to Android-Components 106.0.20220826143117. | 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.20220826143117"
}
| /* 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.20220825190307"
}
| mpl-2.0 | Kotlin |
5916a23454556ccca861d27f36b71cf5474e7371 | Update to Android-Components 109.0.20221123190051. | 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.20221123190051"
}
| /* 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.20221123143300"
}
| mpl-2.0 | Kotlin |
d988388ba61efe9c6db96141d63279bd781811c4 | Update to Android-Components 109.0.20221122143037. | 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.20221122143037"
}
| /* 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.20221121201219"
}
| mpl-2.0 | Kotlin |
60096ea0586cfe2de48a3a735a1f4817a5986e4a | Make jar fully executable. | sebastiansokolowski/AuctionHunter---Allegro | server/build.gradle.kts | server/build.gradle.kts | import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.springframework.boot.gradle.tasks.bundling.BootJar
plugins {
id("org.springframework.boot") version "2.3.4.RELEASE"
id("io.spring.dependency-management") version "1.0.10.RELEASE"
kotlin("jvm") version "1.3.72"
kotlin("plugin.spring") version "1.3.72... | import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("org.springframework.boot") version "2.3.4.RELEASE"
id("io.spring.dependency-management") version "1.0.10.RELEASE"
kotlin("jvm") version "1.3.72"
kotlin("plugin.spring") version "1.3.72"
}
group = "com.sebastiansokolowski"
version = "0.0.1-SNAPSH... | apache-2.0 | Kotlin |
5373e10aa82de9b0b2cda3f200cf24e84c56204c | Update action parameter of `ErrorInfo.continueAction` | YiiGuxing/TranslationPlugin,YiiGuxing/TranslationPlugin | src/main/kotlin/cn/yiiguxing/plugin/translate/trans/ErrorInfo.kt | src/main/kotlin/cn/yiiguxing/plugin/translate/trans/ErrorInfo.kt | package cn.yiiguxing.plugin.translate.trans
import com.intellij.icons.AllIcons
import com.intellij.ide.BrowserUtil
import com.intellij.openapi.actionSystem.AnAction
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.project.DumbAwareAction
import javax.swing.Icon
/**
* Translation err... | package cn.yiiguxing.plugin.translate.trans
import com.intellij.icons.AllIcons
import com.intellij.ide.BrowserUtil
import com.intellij.openapi.actionSystem.AnAction
import com.intellij.openapi.actionSystem.AnActionEvent
import javax.swing.Icon
/**
* Translation error information.
*
* @property message The error me... | mit | Kotlin |
cc465c321b2e2db0011c5517cef7493f66eaa5e2 | Create Handler.kt | 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_alpha/usecases/creating_workflows_stepfunctions/src/main/kotlin/example2/Handler.kt | .kotlin_alpha/usecases/creating_workflows_stepfunctions/src/main/kotlin/example2/Handler.kt | package example2
import com.amazonaws.services.lambda.runtime.Context
import com.amazonaws.services.lambda.runtime.LambdaLogger
import com.amazonaws.services.lambda.runtime.RequestHandler
import com.google.gson.Gson
import com.google.gson.GsonBuilder
import kotlinx.coroutines.runBlocking
// Handler value: example.Ha... | apache-2.0 | Kotlin | |
bcddfc806058008c8c9d9bc1222eb3d939bfe31a | add negative sequence start test. | InsideZhou/Instep | core/src/test/kotlin/instep/util/LongIdGeneratorTest.kt | core/src/test/kotlin/instep/util/LongIdGeneratorTest.kt | package instep.util
import org.testng.annotations.Test
import java.util.*
class LongIdGeneratorTest {
@Test
fun maxWorkerId() {
val idGenerator = LongIdGenerator(0)
assert(idGenerator.maxWorkerId == 4095)
}
@Test
fun negativeSequenceStart() {
val idGenerator = LongIdGene... | package instep.util
import org.testng.annotations.Test
class LongIdGeneratorTest {
@Test
fun g() {
val idGenerator = LongIdGenerator(0)
var counter = 0
val ts = System.currentTimeMillis()
while (System.currentTimeMillis() - ts < 1000) {
counter += 1
pr... | bsd-2-clause | Kotlin |
d67cf4e806a2a99d3354b1648a23a8c6934a7344 | refactor #511 Implement test case. | toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Jitte | app/src/test/java/jp/toastkid/yobidashi/editor/usecase/CurrentLineDeletionUseCaseTest.kt | app/src/test/java/jp/toastkid/yobidashi/editor/usecase/CurrentLineDeletionUseCaseTest.kt | /*
* Copyright (c) 2021 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 | |
898637cef87f2971d88a39b7859ecdc8dd3aaa35 | Fix KDoc. | EventFahrplan/EventFahrplan,EventFahrplan/EventFahrplan | network/src/main/java/info/metadude/android/eventfahrplan/network/temporal/DateParser.kt | network/src/main/java/info/metadude/android/eventfahrplan/network/temporal/DateParser.kt | package info.metadude.android.eventfahrplan.network.temporal
import info.metadude.android.eventfahrplan.commons.temporal.DateParser
import info.metadude.android.eventfahrplan.commons.temporal.Moment
import info.metadude.android.eventfahrplan.commons.temporal.Moment.Companion.MILLISECONDS_OF_ONE_SECOND
import org.three... | package info.metadude.android.eventfahrplan.network.temporal
import info.metadude.android.eventfahrplan.commons.temporal.DateParser
import info.metadude.android.eventfahrplan.commons.temporal.Moment
import info.metadude.android.eventfahrplan.commons.temporal.Moment.Companion.MILLISECONDS_OF_ONE_SECOND
import org.three... | apache-2.0 | Kotlin |
2822d5c9f2fdc14db9ff5c45fbadd2695ab95db1 | remove ensureCheckboxValue | 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/testGuiFramework/src/com/intellij/testGuiFramework/fixtures/CheckboxTreeFixture.kt | platform/testGuiFramework/src/com/intellij/testGuiFramework/fixtures/CheckboxTreeFixture.kt | // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.testGuiFramework.fixtures
import com.intellij.testGuiFramework.driver.CheckboxTreeDriver
import com.intellij.testGuiFramework.fixtures.extended.ExtendedJTree... | // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.testGuiFramework.fixtures
import com.intellij.testGuiFramework.driver.CheckboxTreeDriver
import com.intellij.testGuiFramework.fixtures.extended.ExtendedJTree... | apache-2.0 | Kotlin |
df99cb7541eeb2a66a53a4d2c2a4b926583883fe | update Platform.kt | fengzhizi715/SAF-Kotlin-Utils,fengzhizi715/SAF-Kotlin-Utils | saf-kotlin-utils/src/main/java/com/safframework/utils/Platform.kt | saf-kotlin-utils/src/main/java/com/safframework/utils/Platform.kt | package com.safframework.utils
import android.os.Build
/**
* Created by Tony Shen on 2017/6/28.
*/
fun isFroyoOrHigher(): Boolean = versionOrHigher(8)
fun isGingerbreadOrHigher(): Boolean = versionOrHigher(9)
fun isHoneycombOrHigher(): Boolean = versionOrHigher(11)
fun isICSOrHigher(): Boolean = versionOrHigher... | package com.safframework.utils
import android.os.Build
/**
* Created by Tony Shen on 2017/6/28.
*/
fun isFroyoOrHigher(): Boolean = versionOrHigher(8)
fun isGingerbreadOrHigher(): Boolean = versionOrHigher(9)
fun isHoneycombOrHigher(): Boolean = versionOrHigher(11)
fun isICSOrHigher(): Boolean = versionOrHigher... | apache-2.0 | Kotlin |
cf13b89ca9fa53e8c59a344e316b7e1896fda375 | Use only zero for refreshing config (#560) | jraska/github-client | app/src/main/java/com/jraska/github/client/FirebaseConfigProxy.kt | app/src/main/java/com/jraska/github/client/FirebaseConfigProxy.kt | package com.jraska.github.client
import com.google.android.gms.tasks.OnCompleteListener
import com.google.firebase.crashlytics.FirebaseCrashlytics
import com.google.firebase.remoteconfig.FirebaseRemoteConfig
import timber.log.Timber
import java.util.Date
internal class FirebaseConfigProxy(private val config: Firebase... | package com.jraska.github.client
import com.google.android.gms.tasks.OnCompleteListener
import com.google.firebase.crashlytics.FirebaseCrashlytics
import com.google.firebase.remoteconfig.FirebaseRemoteConfig
import timber.log.Timber
import java.util.Date
internal class FirebaseConfigProxy(private val config: Firebase... | apache-2.0 | Kotlin |
69c884d0584238297a4e49c8e808f8fbac477d76 | disable "Revert commit" action for log without commits (IDEA-241379) | 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/git4idea/src/git4idea/revert/GitRevertAction.kt | plugins/git4idea/src/git4idea/revert/GitRevertAction.kt | /*
* Copyright 2000-2017 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... | /*
* Copyright 2000-2017 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 |
860ab10b6c6bc0fa8489d345fd48db56d51a3d5c | Revert "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.0"
}
| @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"
}
| apache-2.0 | Kotlin |
de9a03ebaa7f02983d865033a7634f8886476276 | refactor #412 Rename test case. | toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt | app/src/test/java/jp/toastkid/yobidashi/search/url_suggestion/RtsSuggestionUseCaseTest.kt | app/src/test/java/jp/toastkid/yobidashi/search/url_suggestion/RtsSuggestionUseCaseTest.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 |
d7ae12e428aadf2968499720dea040e3f33b2d6b | Add Injectee.boxed() extension function | MichaelRocks/lightsaber,MichaelRocks/lightsaber | processor/src/main/kotlin/io/michaelrocks/lightsaber/processor/commons/InjecteeExtensions.kt | processor/src/main/kotlin/io/michaelrocks/lightsaber/processor/commons/InjecteeExtensions.kt | /*
* Copyright 2018 Michael Rozumyanskiy
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | apache-2.0 | Kotlin | |
0483f2ef30dd5b81ab8f368e9b2e37c482c6fc4a | return discoverLaunchViaUnity feature | JetBrains/resharper-unity,JetBrains/resharper-unity,JetBrains/resharper-unity | rider/src/main/kotlin/com/jetbrains/rider/plugins/unity/ui/UnitTest/UnitTestLauncherState.kt | rider/src/main/kotlin/com/jetbrains/rider/plugins/unity/ui/UnitTest/UnitTestLauncherState.kt | package com.jetbrains.rider.plugins.unity.ui.UnitTest
import com.intellij.ide.util.PropertiesComponent
import com.intellij.openapi.components.PersistentStateComponent
import com.intellij.openapi.components.State
import com.intellij.openapi.components.Storage
import com.intellij.openapi.components.StoragePathMacros
imp... | package com.jetbrains.rider.plugins.unity.ui.UnitTest
import com.intellij.ide.util.PropertiesComponent
import com.intellij.openapi.components.PersistentStateComponent
import com.intellij.openapi.components.State
import com.intellij.openapi.components.Storage
import com.intellij.openapi.components.StoragePathMacros
imp... | apache-2.0 | Kotlin |
5d0fd7331b51937d8b3783f4159f73f56c0f8699 | optimize one task run with gradle | davinkevin/Podcast-Server,davinkevin/Podcast-Server,davinkevin/Podcast-Server,davinkevin/Podcast-Server,davinkevin/Podcast-Server | frontend-angularjs/build.gradle.kts | frontend-angularjs/build.gradle.kts | import com.github.gradle.node.npm.task.NpmTask
import java.util.Base64
plugins {
base
id("com.github.node-gradle.node") version "3.1.1"
}
group = "com.github.davinkevin.podcastserver"
version = "2019.1.0"
description = "frontend-angularjs"
node {
download.set(true)
version.set("6.2.0")
npmVersion.set("2.15... | import com.github.gradle.node.npm.task.NpmTask
import java.util.Base64
plugins {
base
id("com.github.node-gradle.node") version "3.1.1"
}
group = "com.github.davinkevin.podcastserver"
version = "2019.1.0"
description = "frontend-angularjs"
node {
download.set(true)
version.set("6.2.0")
npmVersion.set("2.15... | apache-2.0 | Kotlin |
adb468dcf3ddaf452a55fdd440ab12e195b45d4c | Add implementation for code block functions | bibaev/stream-debugger-plugin,bibaev/stream-debugger-plugin | src/main/java/com/intellij/debugger/streams/trace/dsl/impl/CodeBlockBase.kt | src/main/java/com/intellij/debugger/streams/trace/dsl/impl/CodeBlockBase.kt | /*
* Copyright 2000-2017 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... | /*
* Copyright 2000-2017 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 |
341518a8dc34183717c5e6b262a224e0cb48e732 | Add docs to DroidUiActions | JackParisi/DroidBox | droidbox/src/main/java/com/github/jackparisi/droidbox/architecture/model/ui/DroidUiActions.kt | droidbox/src/main/java/com/github/jackparisi/droidbox/architecture/model/ui/DroidUiActions.kt | package com.github.jackparisi.droidbox.architecture.model.ui
import android.arch.lifecycle.LifecycleOwner
import android.arch.lifecycle.MutableLiveData
import android.arch.lifecycle.Observer
import android.support.annotation.MainThread
import android.support.v4.app.FragmentActivity
import java.util.ArrayList
/**
* C... | package com.github.jackparisi.droidbox.architecture.model.ui
import android.arch.lifecycle.LifecycleOwner
import android.arch.lifecycle.MutableLiveData
import android.arch.lifecycle.Observer
import android.support.annotation.MainThread
import android.support.v4.app.FragmentActivity
import java.util.ArrayList
/**
* C... | apache-2.0 | Kotlin |
000524f3c1306d4acfac61bb5a637829edc0ec07 | Remove unused FetchScheduleResult#createError. | EventFahrplan/EventFahrplan,EventFahrplan/EventFahrplan | app/src/main/java/nerd/tuxmobil/fahrplan/congress/net/FetchScheduleResult.kt | app/src/main/java/nerd/tuxmobil/fahrplan/congress/net/FetchScheduleResult.kt | package nerd.tuxmobil.fahrplan.congress.net
data class FetchScheduleResult(
val httpStatus: HttpStatus,
val eTag: String = "",
val hostName: String,
val exceptionMessage: String = ""
) {
val isSuccessful
get() = HttpStatus.HTTP_OK == httpStatus
}
| package nerd.tuxmobil.fahrplan.congress.net
data class FetchScheduleResult(
val httpStatus: HttpStatus,
val eTag: String = "",
val hostName: String,
val exceptionMessage: String = ""
) {
val isSuccessful
get() = HttpStatus.HTTP_OK == httpStatus
companion object {
... | apache-2.0 | Kotlin |
e01d7569a9f81cdab2f864d14c5aa56f8b693fd2 | add colorpicker functionality | canou/Simple-Commons | library/src/main/kotlin/com/simplemobiletools/commons/activities/CustomizationActivity.kt | library/src/main/kotlin/com/simplemobiletools/commons/activities/CustomizationActivity.kt | package com.simplemobiletools.commons.activities
import android.os.Bundle
import com.simplemobiletools.commons.R
import kotlinx.android.synthetic.main.activity_customization.*
import yuku.ambilwarna.AmbilWarnaDialog
class CustomizationActivity : BaseSimpleActivity() {
override fun onCreate(savedInstanceState: Bu... | package com.simplemobiletools.commons.activities
import android.os.Bundle
import com.simplemobiletools.commons.R
import kotlinx.android.synthetic.main.activity_customization.*
class CustomizationActivity : BaseSimpleActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedIns... | apache-2.0 | Kotlin |
e9369e1b043851babad3e92aaa80f2a0fb878b0b | Convert `NegativeSmtpReplyException` to Kotlin | k9mail/k-9,cketti/k-9,cketti/k-9,cketti/k-9,k9mail/k-9,cketti/k-9,k9mail/k-9 | mail/protocols/smtp/src/main/java/com/fsck/k9/mail/transport/smtp/NegativeSmtpReplyException.kt | mail/protocols/smtp/src/main/java/com/fsck/k9/mail/transport/smtp/NegativeSmtpReplyException.kt | package com.fsck.k9.mail.transport.smtp
import com.fsck.k9.mail.MessagingException
/**
* Exception that is thrown when the server sends a negative reply (reply codes 4xx or 5xx).
*/
open class NegativeSmtpReplyException(
val replyCode: Int,
val replyText: String
) : MessagingException(
buildErrorMessage... | package com.fsck.k9.mail.transport.smtp;
import android.text.TextUtils;
import com.fsck.k9.mail.MessagingException;
/**
* Exception that is thrown when the server sends a negative reply (reply codes 4xx or 5xx).
*/
class NegativeSmtpReplyException extends MessagingException {
private static final long serial... | apache-2.0 | Kotlin |
e06f160a0f68acb63cb9fb2768b5e892009e279c | Add ResetToDefaultsUseCaseTest | Doctoror/ParticleConstellationsLiveWallpaper,Doctoror/ParticleConstellationsLiveWallpaper | app/src/test/java/com/doctoror/particleswallpaper/domain/interactor/ResetToDefaultsUseCaseTest.kt | app/src/test/java/com/doctoror/particleswallpaper/domain/interactor/ResetToDefaultsUseCaseTest.kt | /*
* Copyright (C) 2018 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 | |
b08df87469912b737d3c2002d9dfec55fa8c95f8 | Replace durability setting with ItemMeta, closes #398 | RP-Kit/RPKit,seventhroot/elysium,seventhroot/elysium,RP-Kit/RPKit | bukkit/rpk-essentials-bukkit/src/main/kotlin/com/rpkit/essentials/bukkit/command/RepairCommand.kt | bukkit/rpk-essentials-bukkit/src/main/kotlin/com/rpkit/essentials/bukkit/command/RepairCommand.kt | /*
* Copyright 2020 Ren 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 i... | /*
* Copyright 2020 Ren 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 i... | apache-2.0 | Kotlin |
42070ab391530d6ce432a587ade711bef8a8c2d8 | Add JupyterIntegration class with DSL for library integration | ligee/kotlin-jupyter | jupyter-lib/api/src/main/kotlin/org/jetbrains/kotlinx/jupyter/api/libraries/JupyterIntegration.kt | jupyter-lib/api/src/main/kotlin/org/jetbrains/kotlinx/jupyter/api/libraries/JupyterIntegration.kt | package org.jetbrains.kotlinx.jupyter.api.libraries
import org.jetbrains.kotlinx.jupyter.api.*
import kotlin.reflect.KClass
/*
Base class for library integration with Jupyter Kernel via DSL
Derive from this class and pass registration callback into constructor
*/
abstract class JupyterIntegration(private val... | apache-2.0 | Kotlin | |
452a51c8f5bf8221533fb163d5794ccd942f80ec | Include the actual stacktrace in reported errors (#1252) | square/sqldelight,square/sqldelight,cashapp/sqldelight,cashapp/sqldelight,cashapp/sqldelight,cashapp/sqldelight,square/sqldelight,square/sqldelight | sqldelight-idea-plugin/src/main/kotlin/com/squareup/sqldelight/intellij/SqlDelightErrorHandler.kt | sqldelight-idea-plugin/src/main/kotlin/com/squareup/sqldelight/intellij/SqlDelightErrorHandler.kt | /*
* Copyright (C) 2016 Square, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | /*
* Copyright (C) 2016 Square, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | apache-2.0 | Kotlin |
795a3281b877b6925c57a9607a5dc3ca6a8aaf55 | Fix IntelliJ 2019.1 compatibility. | rhdunn/xquery-intellij-plugin,rhdunn/xquery-intellij-plugin | src/intellij-compat/src/202/compat/com/intellij/compat/roots/SourceFolder.kt | src/intellij-compat/src/202/compat/com/intellij/compat/roots/SourceFolder.kt | /*
* Copyright (C) 2020 Reece H. Dunn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | /*
* Copyright (C) 2020 Reece H. Dunn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | apache-2.0 | Kotlin |
e8d1d52185e56cd460ba3abed419f0214be612ee | test coroutine context | hypercube1024/firefly,hypercube1024/firefly,hypercube1024/firefly,hypercube1024/firefly,hypercube1024/firefly | firefly-example/src/test/kotlin/com/firefly/example/kotlin/test/coroutine/StructuredConcurrency.kt | firefly-example/src/test/kotlin/com/firefly/example/kotlin/test/coroutine/StructuredConcurrency.kt | package com.firefly.example.kotlin.test.coroutine
import kotlinx.coroutines.*
/**
* @author Pengtao Qiu
*/
fun main(args: Array<String>) = runBlocking(CoroutineName("main")) {
coroutineScope {
launch(CoroutineName("nested launch")) {
// launch new coroutine in the scope of runBlocking
... | package com.firefly.example.kotlin.test.coroutine
import kotlinx.coroutines.coroutineScope
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
import kotlinx.coroutines.runBlocking
/**
* @author Pengtao Qiu
*/
fun main(args: Array<String>) = runBlocking {
coroutineScope {
launch {
... | apache-2.0 | Kotlin |
0b834160f271c02b745f4301478f4e46a655fd48 | refactor #496 Extract layout ID to constant. | toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Jitte,toastkidjp/Yobidashi_kt | app/src/main/java/jp/toastkid/yobidashi/media/Adapter.kt | app/src/main/java/jp/toastkid/yobidashi/media/Adapter.kt | /*
* Copyright (c) 2019 toastkidjp.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompany this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html.
*/
package jp.... | /*
* Copyright (c) 2019 toastkidjp.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompany this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html.
*/
package jp.... | epl-1.0 | Kotlin |
ca6fbfbd84fa870a032a2ebc841c9a7fdc24d5d8 | Fix attention size | KotlinNLP/SimpleDNN | src/main/kotlin/com/kotlinnlp/simplednn/deeplearning/pointernetwork/PointerNetworkModel.kt | src/main/kotlin/com/kotlinnlp/simplednn/deeplearning/pointernetwork/PointerNetworkModel.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 |
bdfbfa96f73ed4baed8a4590b5793c0c102601a6 | Move to using build tools 28.0.3. | 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/src/main/kotlin/androidx/build/SupportConfig.kt | buildSrc/src/main/kotlin/androidx/build/SupportConfig.kt | /*
* Copyright 2017 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 2017 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 |
516b0ed5652b920f6e4235a8a9747e0c04644e36 | clean up codes | hypercube1024/firefly,hypercube1024/firefly,hypercube1024/firefly,hypercube1024/firefly,hypercube1024/firefly | firefly-example/src/main/kotlin/com/firefly/example/kotlin/websocket/WebSocketServerDemo.kt | firefly-example/src/main/kotlin/com/firefly/example/kotlin/websocket/WebSocketServerDemo.kt | package com.firefly.example.kotlin.websocket
import com.firefly.codec.http2.model.HttpMethod
import com.firefly.kotlin.ext.http.HttpServer
import com.firefly.server.http2.router.handler.file.StaticFileHandler
import com.firefly.utils.concurrent.Schedulers
import java.nio.file.Paths
import java.util.*
import java.util.... | package com.firefly.example.kotlin.websocket
import com.firefly.codec.http2.model.HttpMethod
import com.firefly.kotlin.ext.http.HttpServer
import com.firefly.server.http2.router.handler.file.StaticFileHandler
import com.firefly.utils.concurrent.Schedulers
import java.nio.file.Paths
import java.util.*
import java.util.... | apache-2.0 | Kotlin |
9fd40bef9f994891dfede13c824c6a8c112b7e8f | make SourceBackedDataProducer useful by making it a little less stricter | jayrave/falkon | falkon-dao/src/main/kotlin/com/jayrave/falkon/dao/SourceBackedDataProducer.kt | falkon-dao/src/main/kotlin/com/jayrave/falkon/dao/SourceBackedDataProducer.kt | package com.jayrave.falkon.dao
import com.jayrave.falkon.DataProducer
import com.jayrave.falkon.engine.Source
import com.jayrave.falkon.exceptions.DataProducerException
/**
* A [DataProducer] that gets the required value from the underlying [Source]. Update the
* column index of [Source] to talk with as & when requ... | package com.jayrave.falkon.dao
import com.jayrave.falkon.DataProducer
import com.jayrave.falkon.engine.Source
import com.jayrave.falkon.exceptions.DataProducerException
/**
* A [DataProducer] that gets the required value from the underlying [Source]. Failing to call
* [setColumnIndex] before every #get/is*() call w... | apache-2.0 | Kotlin |
ce97cac89336ad1a6bd516b907e959c87c38f776 | Remove redundant assertion | nickbutcher/plaid,nickbutcher/plaid,nickbutcher/plaid,nickbutcher/plaid | core/src/test/java/io/plaidapp/core/designernews/data/api/DesignerNewsSearchConverterTest.kt | core/src/test/java/io/plaidapp/core/designernews/data/api/DesignerNewsSearchConverterTest.kt | /*
* Copyright 2018 Google, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | /*
* Copyright 2018 Google, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | apache-2.0 | Kotlin |
8c7d67844e6146001d7ec118d22626ab24bcaa60 | Fix kotlin-reflect problem for idea plugin (#3107) | arturbosch/detekt,arturbosch/detekt,arturbosch/detekt | detekt-api/src/main/kotlin/io/gitlab/arturbosch/detekt/api/internal/CommaSeparatedPattern.kt | detekt-api/src/main/kotlin/io/gitlab/arturbosch/detekt/api/internal/CommaSeparatedPattern.kt | package io.gitlab.arturbosch.detekt.api.internal
import io.gitlab.arturbosch.detekt.api.SplitPattern
class CommaSeparatedPattern(
text: String,
delimiters: String = ","
) : SplitPattern(text, delimiters, false) {
fun mapToRegex(): Set<Regex> = mapAll { it.toRegex() }.toSet()
}
| package io.gitlab.arturbosch.detekt.api.internal
import io.gitlab.arturbosch.detekt.api.SplitPattern
class CommaSeparatedPattern(
text: String,
delimiters: String = ","
) : SplitPattern(text, delimiters, false) {
fun mapToRegex(): Set<Regex> = mapAll(::Regex).toSet()
}
| apache-2.0 | Kotlin |
a8be1ff7ae0f595fd63ac9147032ce85f92a6bf5 | Fix nullable dispatcher (#7287) | wix/react-native-navigation,wix/react-native-navigation,wix/react-native-navigation,wix/react-native-navigation,wix/react-native-navigation,wix/react-native-navigation | lib/android/app/src/main/java/com/reactnativenavigation/react/modal/ModalLayoutController.kt | lib/android/app/src/main/java/com/reactnativenavigation/react/modal/ModalLayoutController.kt | package com.reactnativenavigation.react.modal
import android.app.Activity
import com.facebook.react.bridge.ReactContext
import com.facebook.react.uimanager.UIManagerModule
import com.reactnativenavigation.options.Options
import com.reactnativenavigation.react.Constants
import com.reactnativenavigation.viewcontrollers.... | package com.reactnativenavigation.react.modal
import android.app.Activity
import com.facebook.react.bridge.ReactContext
import com.facebook.react.uimanager.UIManagerModule
import com.reactnativenavigation.options.Options
import com.reactnativenavigation.react.Constants
import com.reactnativenavigation.viewcontrollers.... | mit | Kotlin |
0218653f9bda2217ae9dfbc6593e3a4c1fb4a31b | Use reflection for obtaining the AGP version since the Version class was moved between 3.5 and 3.6 | google/dagger,google/dagger,google/dagger,dushmis/dagger,ze-pequeno/dagger,ze-pequeno/dagger,ze-pequeno/dagger,ze-pequeno/dagger,dushmis/dagger,google/dagger | java/dagger/hilt/android/plugin/src/main/kotlin/dagger/hilt/android/plugin/util/SimpleAGPVersion.kt | java/dagger/hilt/android/plugin/src/main/kotlin/dagger/hilt/android/plugin/util/SimpleAGPVersion.kt | package dagger.hilt.android.plugin.util
/**
* Simple Android Gradle Plugin version class since there is no public API one. b/175816217
*/
internal data class SimpleAGPVersion(
val major: Int,
val minor: Int,
) : Comparable<SimpleAGPVersion> {
override fun compareTo(other: SimpleAGPVersion): Int {
return c... | package dagger.hilt.android.plugin.util
import com.android.Version
/**
* Simple Android Gradle Plugin version class since there is no public API one. b/175816217
*/
internal data class SimpleAGPVersion(
val major: Int,
val minor: Int,
) : Comparable<SimpleAGPVersion> {
override fun compareTo(other: SimpleAGP... | apache-2.0 | Kotlin |
ca75e73d4062483858957dbfabfb8d538e24c894 | Implement caching | marverenic/Paper | app/src/main/java/com/marverenic/reader/data/FeedlyRssStore.kt | app/src/main/java/com/marverenic/reader/data/FeedlyRssStore.kt | package com.marverenic.reader.data
import com.marverenic.reader.data.service.FeedlyService
import com.marverenic.reader.model.Article
import io.reactivex.Single
import io.reactivex.subjects.BehaviorSubject
import retrofit2.Response
import java.io.IOException
class FeedlyRssStore(private val authManager: Authenticatio... | package com.marverenic.reader.data
import com.marverenic.reader.data.service.FeedlyService
import com.marverenic.reader.model.Article
import com.marverenic.reader.model.Category
import io.reactivex.Single
import java.io.IOException
class FeedlyRssStore(private val authManager: AuthenticationManager,
... | apache-2.0 | Kotlin |
bcee143a1c9793b0992b6c8f01879f2040c46161 | Add Kotlin stdlib dependency to `:tooling-models` | robinverduijn/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle-script-kotlin,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,robinv... | subprojects/tooling-models/tooling-models.gradle.kts | subprojects/tooling-models/tooling-models.gradle.kts | import build.futureKotlin
plugins {
id("public-kotlin-dsl-module")
}
base {
archivesBaseName = "gradle-kotlin-dsl-tooling-models"
}
dependencies {
implementation(futureKotlin("stdlib-jdk8"))
}
| plugins {
id("public-kotlin-dsl-module")
}
base {
archivesBaseName = "gradle-kotlin-dsl-tooling-models"
}
| apache-2.0 | Kotlin |
d8d71bcc633644733282001c08887b0f11c668f7 | Add a StreamEx jar to the classpath | bibaev/stream-debugger-plugin,bibaev/stream-debugger-plugin | src/test/java/com/intellij/debugger/streams/exec/streamex/StreamExTestCase.kt | src/test/java/com/intellij/debugger/streams/exec/streamex/StreamExTestCase.kt | /*
* Copyright 2000-2017 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... | /*
* Copyright 2000-2017 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 |
b40274d3461c269d68fb1c293b1e05671e1ed451 | Add initial nostore anycast test | EnMasseProject/enmasse,jenmalloy/enmasse,jenmalloy/enmasse,EnMasseProject/enmasse,EnMasseProject/enmasse,EnMasseProject/enmasse,EnMasseProject/enmasse,EnMasseProject/enmasse,jenmalloy/enmasse,jenmalloy/enmasse,jenmalloy/enmasse,jenmalloy/enmasse,EnMasseProject/enmasse,jenmalloy/enmasse | src/test/kotlin/NoStoreAnycastTest.kt | src/test/kotlin/NoStoreAnycastTest.kt | import enmasse.perf.Environment
import enmasse.perf.TestReceiver
import enmasse.perf.TestSender
import enmasse.perf.createQueueContext
import io.kotlintest.specs.StringSpec
import java.util.concurrent.TimeUnit
/**
* @author Ulf Lilleengen
*/
class NoStoreAnycastTest: StringSpec() {
init {
val ctx = creat... | apache-2.0 | Kotlin | |
57fca94da597590293dbb2d7fab52c087db62181 | make ty parameter bounds eager | alygin/intellij-rust,intellij-rust/intellij-rust,himikof/intellij-rust,intellij-rust/intellij-rust,alygin/intellij-rust,Undin/intellij-rust,Undin/intellij-rust,anton-okolelov/intellij-rust,anton-okolelov/intellij-rust,intellij-rust/intellij-rust,himikof/intellij-rust,anton-okolelov/intellij-rust,alygin/intellij-rust,Un... | src/main/kotlin/org/rust/lang/core/types/ty/TyTypeParameter.kt | src/main/kotlin/org/rust/lang/core/types/ty/TyTypeParameter.kt | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.lang.core.types.ty
import com.intellij.openapi.project.Project
import org.rust.lang.core.psi.RsBaseType
import org.rust.lang.core.psi.RsTraitItem
import org.rust.lang.core.psi.RsTypeParameter
im... | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.lang.core.types.ty
import com.intellij.openapi.project.Project
import org.rust.lang.core.psi.RsBaseType
import org.rust.lang.core.psi.RsTraitItem
import org.rust.lang.core.psi.RsTypeParameter
im... | mit | Kotlin |
fbd6579fae3cf65afcac23dcbb5880bf0bf17c98 | refactor #433 Modify SuggestionFetcher's comments. | toastkidjp/Jitte,toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt | app/src/main/java/jp/toastkid/yobidashi/search/suggestion/SuggestionFetcher.kt | app/src/main/java/jp/toastkid/yobidashi/search/suggestion/SuggestionFetcher.kt | package jp.toastkid.yobidashi.search.suggestion
import android.net.Uri
import jp.toastkid.yobidashi.libs.Strings
import okhttp3.*
import timber.log.Timber
import java.io.IOException
import java.util.*
import java.util.concurrent.TimeUnit
/**
* Suggest Web API response fetcher.
*
* @author toastkidjp
*/
class Sugg... | package jp.toastkid.yobidashi.search.suggestion
import android.net.Uri
import jp.toastkid.yobidashi.libs.Strings
import okhttp3.*
import timber.log.Timber
import java.io.IOException
import java.util.*
import java.util.concurrent.TimeUnit
/**
* Suggest Web API response fetcher.
* @author toastkidjp
*/
class Sugges... | epl-1.0 | Kotlin |
b70cd2ffa8c266d454fa2c3b3bfcad07693b942b | Create kotlin number class | bloder/Blorm | blormlib/src/main/java/br/com/bloder/blormlib/validation/validations/Number.kt | blormlib/src/main/java/br/com/bloder/blormlib/validation/validations/Number.kt | package br.com.bloder.blormlib.validation.validations
import android.text.TextUtils
import android.widget.EditText
import br.com.bloder.blormlib.validation.Validate
import br.com.bloder.blormlib.validation.Validation
/**
* Created by bloder on 03/09/16.
*/
class Number : Validation(), Validate {
var editText: ... | mit | Kotlin | |
193347742affbae5cb5b853797c670417c5fa0d4 | Update RemoteConfig URL. (#3324) | wikimedia/apps-android-wikipedia,wikimedia/apps-android-wikipedia,wikimedia/apps-android-wikipedia,wikimedia/apps-android-wikipedia | app/src/main/java/org/wikipedia/settings/RemoteConfigRefreshTask.kt | app/src/main/java/org/wikipedia/settings/RemoteConfigRefreshTask.kt | package org.wikipedia.settings
import okhttp3.Request
import okhttp3.Response
import okhttp3.internal.closeQuietly
import org.json.JSONObject
import org.wikipedia.WikipediaApp
import org.wikipedia.dataclient.okhttp.OkHttpConnectionFactory.client
import org.wikipedia.recurring.RecurringTask
import org.wikipedia.util.lo... | package org.wikipedia.settings
import okhttp3.Request
import okhttp3.Response
import okhttp3.internal.closeQuietly
import org.json.JSONObject
import org.wikipedia.WikipediaApp
import org.wikipedia.dataclient.okhttp.OkHttpConnectionFactory.client
import org.wikipedia.recurring.RecurringTask
import org.wikipedia.util.lo... | apache-2.0 | Kotlin |
fffe9af262d85dc5f76a22694da35e7eee5fbcf0 | Update copyright year | google/ground-android,google/ground-android,google/ground-android | ground/src/test/java/com/google/android/ground/ui/datacollection/DataCollectionFragmentTest.kt | ground/src/test/java/com/google/android/ground/ui/datacollection/DataCollectionFragmentTest.kt | /*
* Copyright 2022 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 2021 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 |
7b0b6742a34681e19d1992e7618c4e23533e5567 | Remove unused import | AndroidX/androidx,androidx/androidx,AndroidX/androidx,AndroidX/androidx,androidx/androidx,aosp-mirror/platform_frameworks_support,aosp-mirror/platform_frameworks_support,aosp-mirror/platform_frameworks_support,AndroidX/androidx,AndroidX/androidx,AndroidX/androidx,AndroidX/androidx,androidx/androidx,androidx/androidx,An... | core/ktx/src/androidTest/java/androidx/graphics/drawable/BitmapDrawableTest.kt | core/ktx/src/androidTest/java/androidx/graphics/drawable/BitmapDrawableTest.kt | /*
* Copyright (C) 2018 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 ap... | /*
* Copyright (C) 2018 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 ap... | apache-2.0 | Kotlin |
8d68ae1732a62315d9e8c7d81d9711521c516efb | Use coroutine and suspend function. | michaeimm/PlurkConnection | library/src/main/java/tw/shounenwind/plurkconnection/callbacks/RetryChecker.kt | library/src/main/java/tw/shounenwind/plurkconnection/callbacks/RetryChecker.kt | package tw.shounenwind.plurkconnection.callbacks
interface RetryChecker {
fun onCheck(e: Throwable): Boolean
}
| apache-2.0 | Kotlin | |
da10598339205110730ff1b8796b335d6811a0b1 | Use ===/!== when comparing QueryProcessState values. | rhdunn/xquery-intellij-plugin,rhdunn/xquery-intellij-plugin | src/plugin-saxon/main/uk/co/reecedunn/intellij/plugin/saxon/query/s9api/runner/SaxonTraceListener.kt | src/plugin-saxon/main/uk/co/reecedunn/intellij/plugin/saxon/query/s9api/runner/SaxonTraceListener.kt | /*
* Copyright (C) 2020 Reece H. Dunn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | /*
* Copyright (C) 2020 Reece H. Dunn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | apache-2.0 | Kotlin |
f8f91b20f9097f1bc3e8249255c4450ea475979c | 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/sns/build.gradle.kts | kotlin/services/sns/build.gradle.kts | import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.5.31"
id("io.gitlab.arturbosch.detekt").version("1.16.0-RC1")
application
}
group = "me.scmacdon"
version = "1.0-SNAPSHOT"
buildscript {
repositories {
jcenter()
}
}
repositories {
mavenCentral()... | import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.5.31"
id("io.gitlab.arturbosch.detekt").version("1.16.0-RC1")
application
}
group = "me.scmacdon"
version = "1.0-SNAPSHOT"
buildscript {
repositories {
jcenter()
}
}
repositories {
mavenCentral()... | apache-2.0 | Kotlin |
cfef421cc4eab4bc6348a861138c2f2fe15f62a8 | add an elevationCompat extension val for Chips | CruGlobal/android-gto-support,CruGlobal/android-gto-support,GlobalTechnology/android-gto-support | gto-support-material-components/src/main/java/org/ccci/gto/android/common/material/chip/Chip.kt | gto-support-material-components/src/main/java/org/ccci/gto/android/common/material/chip/Chip.kt | package org.ccci.gto.android.common.material.chip
import android.os.Build
import com.google.android.material.chip.Chip
import com.google.android.material.chip.ChipDrawable
@get:JvmName("getElevation")
@set:JvmName("setElevation")
var Chip.elevationCompat
get() = when {
Build.VERSION.SDK_INT >= Build.VERSI... | mit | Kotlin | |
3467ad48a0cfd0be26a7d8b19aec0ce78eb1261a | Add test | http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k | http4k-serverless-lambda/test-function/src/test/kotlin/org/http4k/testing/lambda/TestAppTest.kt | http4k-serverless-lambda/test-function/src/test/kotlin/org/http4k/testing/lambda/TestAppTest.kt | package org.http4k.testing.lambda
import com.natpryce.hamkrest.assertion.assertThat
import org.http4k.core.Method
import org.http4k.core.Request
import org.http4k.core.Status
import org.http4k.hamkrest.hasStatus
import org.junit.jupiter.api.Test
class TestAppTest {
@Test
fun `can invoke handler`() {
v... | apache-2.0 | Kotlin | |
4f7fd18ae5e1a55eab33b50cbf3360c77f0bbc4c | Make var private, smaller scope | rpandey1234/kotlin-koans,rpandey1234/kotlin-koans | src/iii_conventions/_31_Invoke_.kt | src/iii_conventions/_31_Invoke_.kt | package iii_conventions
import util.TODO
class Invokable(private var nInvocations: Int = 0) {
operator fun invoke(): Invokable {
nInvocations++
return this
}
fun getNumberOfInvocations() = nInvocations
}
fun todoTask31(): Nothing = TODO(
"""
Task 31.
Change class In... | package iii_conventions
import util.TODO
class Invokable(var numberInvocations: Int = 0) {
operator fun invoke(): Invokable {
numberInvocations++
return this
}
fun getNumberOfInvocations() = numberInvocations
}
fun todoTask31(): Nothing = TODO(
"""
Task 31.
Change c... | mit | Kotlin |
b6f47e0108e0cf525007aac23fce5932abd49e07 | Handle non-number args | binkley/fibs | src/main/kotlin/hm/binkley/Main.kt | src/main/kotlin/hm/binkley/Main.kt | package hm.binkley
import java.lang.System.err
import java.lang.System.exit
import java.lang.System.out
import java.util.*
private val fib0: IntArray = intArrayOf(0, 1, 1, 1)
private fun row(a: IntArray, i: Int): IntArray {
val offset = 2 * i
return intArrayOf(a[0 + offset], a[1 + offset])
}
private fun col... | package hm.binkley
import java.lang.System.err
import java.lang.System.exit
import java.lang.System.out
import java.util.*
private val fib0: IntArray = intArrayOf(0, 1, 1, 1)
private fun row(a: IntArray, i: Int): IntArray {
val offset = 2 * i
return intArrayOf(a[0 + offset], a[1 + offset])
}
private fun col... | unlicense | Kotlin |
c9450f48472cbbf0f989af523eaa95d92b6f4fea | Bump 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 |
bffcea1a8e7285fcac335c182befa6fa0754f1a9 | refactor #511 Divide content restoring to use case. | toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Yobidashi_kt | app/src/main/java/jp/toastkid/yobidashi/editor/usecase/RestoreContentUseCase.kt | app/src/main/java/jp/toastkid/yobidashi/editor/usecase/RestoreContentUseCase.kt | /*
* Copyright (c) 2021 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 | |
e47caf013e412c788c335ce887ffbd097b6ca0d1 | Refactor LineLengthPreferencePresenter | Doctoror/ParticleConstellationsLiveWallpaper,Doctoror/ParticleConstellationsLiveWallpaper | app/src/main/java/com/doctoror/particleswallpaper/userprefs/linelength/LineLengthPreferencePresenter.kt | app/src/main/java/com/doctoror/particleswallpaper/userprefs/linelength/LineLengthPreferencePresenter.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 |
d220fcc9d1492668f707e5cc676ce90e0f557cb1 | Bump version | SpineEventEngine/base,SpineEventEngine/base,SpineEventEngine/base | version.gradle.kts | version.gradle.kts | /*
* Copyright 2021, TeamDev. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Redistribution and use in source... | /*
* Copyright 2021, TeamDev. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Redistribution and use in source... | apache-2.0 | Kotlin |
f24014ca2d3e7ff18e7ec672a0adf03b5e8d8076 | Fix kotlin sample build | facebook/litho,facebook/litho,facebook/litho,facebook/litho,facebook/litho,facebook/litho | sample-kotlin/src/main/java/com/fblitho/lithoktsample/animations/animatedbadge/AnimatedBadgeActivity.kt | sample-kotlin/src/main/java/com/fblitho/lithoktsample/animations/animatedbadge/AnimatedBadgeActivity.kt | /*
* This file provided by Facebook is for non-commercial testing and evaluation
* purposes only. Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS... | /*
* This file provided by Facebook is for non-commercial testing and evaluation
* purposes only. Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS... | apache-2.0 | Kotlin |
0acb63d6918d9f50bac0ecde03413c8b3cc249bc | fix naming | StepicOrg/stepic-android,StepicOrg/stepic-android,StepicOrg/stepik-android,StepicOrg/stepik-android,StepicOrg/stepic-android,StepicOrg/stepik-android | app/src/main/java/org/stepik/android/domain/step/interactor/StepDeferrableViewReportInteractor.kt | app/src/main/java/org/stepik/android/domain/step/interactor/StepDeferrableViewReportInteractor.kt | package org.stepik.android.domain.step.interactor
import io.reactivex.Completable
import io.reactivex.Observable
import io.reactivex.rxkotlin.toObservable
import org.stepik.android.domain.base.DataSourceType
import org.stepik.android.domain.network.repository.NetworkTypeRepository
import org.stepik.android.domain.prog... | package org.stepik.android.domain.step.interactor
import io.reactivex.Completable
import io.reactivex.Observable
import io.reactivex.rxkotlin.toObservable
import org.stepik.android.domain.base.DataSourceType
import org.stepik.android.domain.network.repository.NetworkTypeRepository
import org.stepik.android.domain.prog... | apache-2.0 | Kotlin |
751ae41f0b8d66ca399502296e4fe6e3cfa897bb | Write TermUtils to handle db read/write values for terms | FarbodSalamat-Zadeh/TimetableApp,FarbodSalamat-Zadeh/TimetableApp | app/src/main/java/com/satsumasoftware/timetable/db/util/TermUtils.kt | app/src/main/java/com/satsumasoftware/timetable/db/util/TermUtils.kt | package com.satsumasoftware.timetable.db.util
import android.app.Activity
import android.app.Application
import android.content.ContentValues
import android.content.Context
import android.util.Log
import com.satsumasoftware.timetable.TimetableApplication
import com.satsumasoftware.timetable.db.TermsSchema
import com.s... | apache-2.0 | Kotlin | |
06e45b9a3edf8fd8625f5e5baa0f664b6330a329 | Allow scripts from 'self' | Edholm/swosh,Edholm/swosh,Edholm/swosh,Edholm/swosh | src/main/kotlin/pub/edholm/SecurityConfig.kt | src/main/kotlin/pub/edholm/SecurityConfig.kt | package pub.edholm
import org.springframework.context.annotation.Bean
import org.springframework.security.authorization.AuthorizationDecision
import org.springframework.security.config.annotation.method.configuration.EnableReactiveMethodSecurity
import org.springframework.security.config.annotation.web.reactive.Enable... | package pub.edholm
import org.springframework.context.annotation.Bean
import org.springframework.security.authorization.AuthorizationDecision
import org.springframework.security.config.annotation.method.configuration.EnableReactiveMethodSecurity
import org.springframework.security.config.annotation.web.reactive.Enable... | mit | Kotlin |
e57797c08841b86150ab05579be6f45aa3333baf | remove useless companion object in CodeToolbarAdapter | StepicOrg/stepik-android,StepicOrg/stepic-android,StepicOrg/stepik-android,StepicOrg/stepic-android,StepicOrg/stepic-android,StepicOrg/stepik-android | app/src/main/java/org/stepic/droid/ui/adapters/CodeToolbarAdapter.kt | app/src/main/java/org/stepic/droid/ui/adapters/CodeToolbarAdapter.kt | package org.stepic.droid.ui.adapters
import android.content.Context
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import kotlinx.android.synthetic.main.view_code_toolbar_item.view.*
import org.stepic.droid.R
import org.stepic.dro... | package org.stepic.droid.ui.adapters
import android.content.Context
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import kotlinx.android.synthetic.main.view_code_toolbar_item.view.*
import org.stepic.droid.R
import org.stepic.dro... | apache-2.0 | Kotlin |
1ad92839bd6beefbc454ebae086d383e50c18f16 | Add CompetitiveLearningValidationHelper | KotlinNLP/SimpleDNN | src/main/kotlin/com/kotlinnlp/simplednn/helpers/validation/CompetitiveLearningValidationHelper.kt | src/main/kotlin/com/kotlinnlp/simplednn/helpers/validation/CompetitiveLearningValidationHelper.kt | /* Copyright 2016-present The KotlinNLP Authors. All Rights Reserved.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, you can obtain one at http://mozilla.org/MPL/2.0/.
* ------------------------------------------... | mpl-2.0 | Kotlin | |
c57c30c4096e01a5fe9ab585e77baa56e2921dee | Test working with workspace in custom resolver | noemus/kotlin-eclipse,noemus/kotlin-eclipse | kotlin-eclipse-ui-test/src/org/jetbrains/kotlin/ui/tests/scripts/templates/testCustomEPResolver.kt | kotlin-eclipse-ui-test/src/org/jetbrains/kotlin/ui/tests/scripts/templates/testCustomEPResolver.kt | package org.jetbrains.kotlin.ui.tests.scripts.templates
import org.eclipse.core.resources.IFile
import org.eclipse.core.resources.ResourcesPlugin
import org.jetbrains.kotlin.core.model.ScriptTemplateProviderEx
import org.jetbrains.kotlin.script.KotlinScriptExternalDependencies
import org.jetbrains.kotlin.script.Script... | package org.jetbrains.kotlin.ui.tests.scripts.templates
import org.eclipse.core.resources.IFile
import org.jetbrains.kotlin.core.model.ScriptTemplateProviderEx
import org.jetbrains.kotlin.script.KotlinScriptExternalDependencies
import org.jetbrains.kotlin.script.ScriptContents
import org.jetbrains.kotlin.script.Script... | apache-2.0 | Kotlin |
98bb12b0bb2c2c5293302d797dfdf3d731725f48 | Fix double call to sanitize (#383) | google/horologist,google/horologist | media-sample/src/main/java/com/google/android/horologist/mediasample/data/mapper/PlaylistMapper.kt | media-sample/src/main/java/com/google/android/horologist/mediasample/data/mapper/PlaylistMapper.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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | /*
* 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 applic... | apache-2.0 | Kotlin |
892e3dc9b6df83eddfa4e1ab2576791eeabb8df1 | refactor #506 Add test case. | toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Jitte | media/src/test/java/jp/toastkid/media/image/preview/attach/AttachToThisAppBackgroundUseCaseTest.kt | media/src/test/java/jp/toastkid/media/image/preview/attach/AttachToThisAppBackgroundUseCaseTest.kt | /*
* Copyright (c) 2021 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 | |
0713faa79a02351e0c35c7b7833626029c3b62d6 | refactor #440 Add parameter to class comment. | toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Jitte,toastkidjp/Yobidashi_kt | app/src/main/java/jp/toastkid/yobidashi/search/history/SearchHistoryInsertion.kt | app/src/main/java/jp/toastkid/yobidashi/search/history/SearchHistoryInsertion.kt | package jp.toastkid.yobidashi.search.history
import android.content.Context
import io.reactivex.Completable
import io.reactivex.disposables.Disposable
import io.reactivex.disposables.Disposables
import io.reactivex.schedulers.Schedulers
import jp.toastkid.yobidashi.libs.db.DatabaseFinder
import timber.log.Timber
/**
... | package jp.toastkid.yobidashi.search.history
import android.content.Context
import io.reactivex.Completable
import io.reactivex.disposables.Disposable
import io.reactivex.disposables.Disposables
import io.reactivex.schedulers.Schedulers
import jp.toastkid.yobidashi.libs.db.DatabaseFinder
import timber.log.Timber
/**
... | epl-1.0 | Kotlin |
bc16fe4894064c04f59a7784efc9546e739b0b53 | optimize KindsResolverProcessor | 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/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/lang/resolve/processors/KindsResolverProcessor.kt | plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/lang/resolve/processors/KindsResolverProcessor.kt | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.plugins.groovy.lang.resolve.processors
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiNamedElement
import com.intellij.psi.ResolveState
impor... | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.plugins.groovy.lang.resolve.processors
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiNamedElement
import com.intellij.psi.ResolveState
impor... | apache-2.0 | Kotlin |
eaad2a151766d53a8adb71d396f3a635452ed587 | Add test for AddFeatureDialogFragment and setup kapt | google/ground-android,google/ground-android,google/ground-android | gnd/src/test/java/com/google/android/gnd/ui/home/AddFeatureDialogFragmentTest.kt | gnd/src/test/java/com/google/android/gnd/ui/home/AddFeatureDialogFragmentTest.kt | /*
* Copyright 2022 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 | |
7fd5a268c12194ddf203f84944768af74b6e83d0 | add BaseCompiledStatement | jayrave/falkon | falkon-engine-android-sqlite/src/main/kotlin/com/jayrave/falkon/engine/android/sqlite/BaseCompiledStatement.kt | falkon-engine-android-sqlite/src/main/kotlin/com/jayrave/falkon/engine/android/sqlite/BaseCompiledStatement.kt | package com.jayrave.falkon.engine.android.sqlite
import android.database.sqlite.SQLiteDatabase
import com.jayrave.falkon.engine.CompiledStatement
import com.jayrave.falkon.engine.Type
internal abstract class BaseCompiledStatement<T>(
override val sql: String, database: SQLiteDatabase) :
CompiledStatem... | apache-2.0 | Kotlin | |
04ebbdf14c73fb2aca19edd48e5300a19327f0ff | Fix path separator bug | square/sqldelight,cashapp/sqldelight,cashapp/sqldelight,cashapp/sqldelight,square/sqldelight,square/sqldelight,cashapp/sqldelight,square/sqldelight | sqldelight-idea-plugin/src/main/kotlin/com/squareup/sqldelight/intellij/gradle/FetchProjectModelsBuildAction.kt | sqldelight-idea-plugin/src/main/kotlin/com/squareup/sqldelight/intellij/gradle/FetchProjectModelsBuildAction.kt | package com.squareup.sqldelight.intellij.gradle
import com.squareup.sqldelight.core.SqlDelightPropertiesFile
import org.gradle.tooling.BuildAction
import org.gradle.tooling.BuildController
import org.gradle.tooling.UnknownModelException
object FetchProjectModelsBuildAction : BuildAction<Map<String, SqlDelightProperti... | package com.squareup.sqldelight.intellij.gradle
import com.squareup.sqldelight.core.SqlDelightPropertiesFile
import org.gradle.tooling.BuildAction
import org.gradle.tooling.BuildController
import org.gradle.tooling.UnknownModelException
object FetchProjectModelsBuildAction : BuildAction<Map<String, SqlDelightProperti... | apache-2.0 | Kotlin |
dc2e1c20b22454725b9d109ea8356e35f46c0c7f | Remove context from FavoriteRepository | fcostaa/kotlin-rxjava-android,fcostaa/kotlin-rxjava-android | app/src/main/kotlin/com/felipecosta/kotlinrxjavasample/data/FavoriteRepository.kt | app/src/main/kotlin/com/felipecosta/kotlinrxjavasample/data/FavoriteRepository.kt | package com.felipecosta.kotlinrxjavasample.data
import io.reactivex.Observable
import io.reactivex.Observable.*
import io.reactivex.functions.BiFunction
import java.util.*
class FavoriteRepository(private val localStorage: LocalStorage) {
fun fetchFavorites(): Observable<List<Int>> {
return fromCallable ... | package com.felipecosta.kotlinrxjavasample.data
import android.content.Context
import io.reactivex.Observable
import io.reactivex.Observable.*
import io.reactivex.functions.BiFunction
import java.util.*
class FavoriteRepository(private val localStorage: LocalStorage) {
fun fetchFavorites(): Observable<List<Int>>... | mit | Kotlin |
cc59ec932a46c92df19cf4532c289811ad7603b5 | refactor #485 Rename test function. | toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Yobidashi_kt | app/src/test/java/jp/toastkid/yobidashi/browser/bookmark/BookmarkInsertionTest.kt | app/src/test/java/jp/toastkid/yobidashi/browser/bookmark/BookmarkInsertionTest.kt | /*
* Copyright (c) 2021 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) 2021 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.