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
a0ca093e84b167144f41801d10f87f2c5f1a146b
Fix unit tests for JRepeatable annotation (and JDK 7)
vbauer/jackdaw,vbauer/jackdaw
jackdaw-sample/src/test/kotlin/com/github/vbauer/jackdaw/JRepeatableTest.kt
jackdaw-sample/src/test/kotlin/com/github/vbauer/jackdaw/JRepeatableTest.kt
package com.github.vbauer.jackdaw import org.hamcrest.Matchers.hasSize import org.hamcrest.Matchers.notNullValue import org.junit.Assert.assertThat import org.junit.Test /** * @author Vladislav Bauer */ class JRepeatableTest { @Test fun testAbstractUserModel() { val annotation = AbstractUserModel:...
package com.github.vbauer.jackdaw import org.hamcrest.Matchers.hasSize import org.hamcrest.Matchers.notNullValue import org.junit.Assert.assertThat import org.junit.Test /** * @author Vladislav Bauer */ class JRepeatableTest { @Test fun testAbstractUserModel() { val annotation = AbstractUserModel:...
apache-2.0
Kotlin
66bbe15ca72396115fd03a2d550d7f24e9e2881c
Solve problem 2133
fredyw/leetcode,fredyw/leetcode,fredyw/leetcode,fredyw/leetcode
src/main/kotlin/leetcode/Problem2133.kt
src/main/kotlin/leetcode/Problem2133.kt
package leetcode /** * https://leetcode.com/problems/check-if-every-row-and-column-contains-all-numbers/ */ class Problem2133 { fun checkValid(matrix: Array<IntArray>): Boolean { val n = matrix.size for (row in matrix.indices) { val rowSet = mutableSetOf<Int>() val colSet ...
mit
Kotlin
aa5cedd5f9e43d083214372bbd5836848a889ca7
Update problem 2182
fredyw/leetcode,fredyw/leetcode,fredyw/leetcode,fredyw/leetcode
src/main/kotlin/leetcode/Problem2182.kt
src/main/kotlin/leetcode/Problem2182.kt
package leetcode import java.util.PriorityQueue /** * https://leetcode.com/problems/construct-string-with-repeat-limit/ */ class Problem2182 { fun repeatLimitedString(s: String, repeatLimit: Int): String { val map = mutableMapOf<Char, Int>() for (char in s) { map[char] = (map[char] ?...
package leetcode /** * https://leetcode.com/problems/construct-string-with-repeat-limit/ */ class Problem2182 { fun repeatLimitedString(s: String, repeatLimit: Int): String { TODO() } } fun main() { val prob = Problem2182() println(prob.repeatLimitedString("cczazcc", 3)) // "zzcccac" pri...
mit
Kotlin
e6b45d26a74ead710d3c0211a8d049b30f91c44d
Solve problem 2266
fredyw/leetcode,fredyw/leetcode,fredyw/leetcode,fredyw/leetcode
src/main/kotlin/leetcode/Problem2266.kt
src/main/kotlin/leetcode/Problem2266.kt
package leetcode /** * https://leetcode.com/problems/count-number-of-texts/ */ class Problem2266 { fun countTexts(pressedKeys: String): Int { if (pressedKeys.length == 1) { return 1 } var answer = 1L var i = 0 var length = 1 val memo3 = IntArray(pressed...
package leetcode /** * https://leetcode.com/problems/count-number-of-texts/ */ class Problem2266 { fun countTexts(pressedKeys: String): Int { TODO() } } fun main() { val prob = Problem2266() println(prob.countTexts("22233")) // 8 println(prob.countTexts("222")) // 4 println(prob.coun...
mit
Kotlin
e8c4c3f3b0b51b52f2eb4f39d0e896c0ee8b8c82
Remove unnecessary codes
shihochan/KotlinDIExample
useKodein/src/main/kotlin/com/shihochan/kotlindiexample/di/app/AppModule.kt
useKodein/src/main/kotlin/com/shihochan/kotlindiexample/di/app/AppModule.kt
package com.shihochan.kotlindiexample.di.app import android.app.Application import com.github.salomonbrys.kodein.Kodein import com.github.salomonbrys.kodein.bind import com.github.salomonbrys.kodein.instance /** * Created by Yuki Shiho on 2017/07/18. */ fun providesApp(app: Application) = Kodein.Module { bind<Ap...
package com.shihochan.kotlindiexample.di.app import android.app.Activity import android.app.Application import com.github.salomonbrys.kodein.Kodein import com.github.salomonbrys.kodein.bind import com.github.salomonbrys.kodein.instance /** * Created by Yuki Shiho on 2017/07/18. */ fun providesApp(app: Application)...
apache-2.0
Kotlin
72aa7c141cc0e029e965c1fdf82e39cf4e8e6e8e
Disable print error message when retry occurs (#691)
Flank/flank,Flank/flank,Flank/flank,Flank/flank,Flank/flank,Flank/flank,Flank/flank,Flank/flank,Flank/flank,Flank/flank
test_runner/src/main/kotlin/ftl/http/ExecuteWithRetry.kt
test_runner/src/main/kotlin/ftl/http/ExecuteWithRetry.kt
package ftl.http import com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest import java.io.IOException // Only use on calls that don't change state. // Fetching status is safe to retry on timeout. Creating a matrix is not. fun <T> AbstractGoogleJsonClientRequest<T>.executeWithRetry(): T { ...
package ftl.http import com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest import java.io.IOException // Only use on calls that don't change state. // Fetching status is safe to retry on timeout. Creating a matrix is not. fun <T> AbstractGoogleJsonClientRequest<T>.executeWithRetry(): T { ...
apache-2.0
Kotlin
51e4b3119c5ddd02810df47ac5255a3597a200d7
Add basic news loader test
djkovrik/YapTalker,djkovrik/YapTalker
app/src/test/java/com/sedsoftware/yaptalker/data/remote/YapNewsLoaderTest.kt
app/src/test/java/com/sedsoftware/yaptalker/data/remote/YapNewsLoaderTest.kt
package com.sedsoftware.yaptalker.data.remote import com.nhaarman.mockito_kotlin.mock import com.sedsoftware.yaptalker.data.NewsItem import com.sedsoftware.yaptalker.data.TopicItem import com.sedsoftware.yaptalker.data.UserProfileShort import io.reactivex.Observable import io.reactivex.observers.TestObserver import or...
apache-2.0
Kotlin
f3316e2c0065f5129f8b04186832b65a11fd7a40
remove unnecessary `?.`
anton-okolelov/intellij-rust,Turbo87/intellij-rust,ujpv/intellij-rust,intellij-rust/intellij-rust,d9n/intellij-rust,himikof/intellij-rust,intellij-rust/intellij-rust,himikof/intellij-rust,Undin/intellij-rust,Undin/intellij-rust,himikof/intellij-rust,alygin/intellij-rust,Turbo87/intellij-rust,d9n/intellij-rust,alygin/in...
src/main/kotlin/org/rust/lang/annotator/RustAnnotator.kt
src/main/kotlin/org/rust/lang/annotator/RustAnnotator.kt
package org.rust.lang.annotator import com.intellij.lang.annotation.AnnotationHolder import com.intellij.lang.annotation.Annotator import com.intellij.openapi.editor.colors.TextAttributesKey import com.intellij.psi.PsiElement import org.rust.lang.colorscheme.RustColors import org.rust.lang.core.psi.* import org.rust.l...
package org.rust.lang.annotator import com.intellij.lang.annotation.AnnotationHolder import com.intellij.lang.annotation.Annotator import com.intellij.openapi.editor.colors.TextAttributesKey import com.intellij.psi.PsiElement import org.rust.lang.colorscheme.RustColors import org.rust.lang.core.psi.* import org.rust.l...
mit
Kotlin
7ae85d9581096fbbbdc6af0d11aac697eec19400
Enable animation for image loading
daugeldauge/NeePlayer
app/src/main/java/com/neeplayer/ui/common/BindingUtils.kt
app/src/main/java/com/neeplayer/ui/common/BindingUtils.kt
package com.neeplayer.ui.common import android.databinding.BindingAdapter import android.graphics.drawable.Drawable import android.widget.ImageView import android.widget.TextView import com.bumptech.glide.Glide import java.util.concurrent.TimeUnit @BindingAdapter("imagePath") fun loadImageFile(view: ImageView, path: ...
package com.neeplayer.ui.common import android.databinding.BindingAdapter import android.graphics.drawable.Drawable import android.widget.ImageView import android.widget.TextView import com.bumptech.glide.Glide import java.util.concurrent.TimeUnit @BindingAdapter("imagePath") fun loadImageFile(view: ImageView, path: ...
mit
Kotlin
d2287def3617ed1200e0a701e422dc36a856a90d
use "Space" instead of "Circlet" in option files
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/space/src/main/kotlin/circlet/components/CircletSettingsComponent.kt
plugins/space/src/main/kotlin/circlet/components/CircletSettingsComponent.kt
package circlet.components import circlet.settings.* import circlet.utils.* import com.intellij.openapi.components.* import runtime.reactive.* val circletServerSettings get() = application.getComponent<CircletServerSettingsComponent>() @State( name = "SpaceServerConfigurable", storages = [Storage(value = "Sp...
package circlet.components import circlet.settings.* import circlet.utils.* import com.intellij.openapi.components.* import runtime.reactive.* val circletServerSettings get() = application.getComponent<CircletServerSettingsComponent>() @State( name = "CircletServerConfigurable", storages = [Storage(value = "...
apache-2.0
Kotlin
de48151c21d4816de1b70a009a0a1e8193126f7a
change initial playback sheet to collapsed
alashow/music-android
core-ui-playback/src/main/java/tm/alashow/datmusic/ui/playback/PlaybackHost.kt
core-ui-playback/src/main/java/tm/alashow/datmusic/ui/playback/PlaybackHost.kt
/* * Copyright (C) 2021, Alashov Berkeli * All rights reserved. */ package tm.alashow.datmusic.ui.playback import androidx.compose.material.BottomSheetState import androidx.compose.material.BottomSheetValue import androidx.compose.material.ExperimentalMaterialApi import androidx.compose.material.rememberBottomSheet...
/* * Copyright (C) 2021, Alashov Berkeli * All rights reserved. */ package tm.alashow.datmusic.ui.playback import androidx.compose.material.BottomSheetState import androidx.compose.material.BottomSheetValue import androidx.compose.material.ExperimentalMaterialApi import androidx.compose.material.rememberBottomSheet...
apache-2.0
Kotlin
7d24e374fed62263dd0c61d63b69eb8b9e31ff01
fix profile test
StepicOrg/stepik-android,StepicOrg/stepic-android,StepicOrg/stepic-android,StepicOrg/stepik-android,StepicOrg/stepik-android,StepicOrg/stepic-android
app/src/main/java/org/stepic/droid/model/UserViewModel.kt
app/src/main/java/org/stepic/droid/model/UserViewModel.kt
package org.stepic.droid.model data class UserViewModel( val fullName: String, val shortBio: String, val information: String, val imageLink: String?, val isMyProfile: Boolean, val isPrivate: Boolean, val id: Long )
package org.stepic.droid.model class UserViewModel( val fullName: String, val shortBio: String, val information: String, val imageLink: String?, val isMyProfile: Boolean, val isPrivate: Boolean, val id: Long )
apache-2.0
Kotlin
befe3ba8cbe9a215e57ae3d9eabe1400d7f4216c
refactor #559 Fix failing WebTabTest.
toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Yobidashi_kt
app/src/test/java/jp/toastkid/yobidashi/tab/WebTabTest.kt
app/src/test/java/jp/toastkid/yobidashi/tab/WebTabTest.kt
package jp.toastkid.yobidashi.tab import com.squareup.moshi.JsonAdapter import com.squareup.moshi.Moshi import jp.toastkid.yobidashi.tab.model.WebTab import org.junit.Assert.assertEquals import org.junit.Assert.assertTrue import org.junit.Test import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunne...
package jp.toastkid.yobidashi.tab import com.squareup.moshi.JsonAdapter import com.squareup.moshi.Moshi import jp.toastkid.yobidashi.tab.model.WebTab import org.junit.Assert.assertEquals import org.junit.Assert.assertTrue import org.junit.Test import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunne...
epl-1.0
Kotlin
42831cf1f1f3153a3b46baba515278bfb70998c0
refactor #818 Add @FlowPreview annotation.
toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt
loan/src/test/java/jp/toastkid/loan/usecase/DebouncedCalculatorUseCaseTest.kt
loan/src/test/java/jp/toastkid/loan/usecase/DebouncedCalculatorUseCaseTest.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
baad90eb66e183b023e41d400c76cfbf0816f5c7
Fix minor typo in SqlHealthIndicator (#4179)
spinnaker/orca,spinnaker/orca,spinnaker/orca
orca-sql/src/main/kotlin/com/netflix/spinnaker/orca/sql/SqlHealthIndicator.kt
orca-sql/src/main/kotlin/com/netflix/spinnaker/orca/sql/SqlHealthIndicator.kt
/* * Copyright 2018 Netflix, 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 Netflix, 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
92bf8fd7c58a3a3bfc628bd18ba3fdc0a75293fe
Set RAN meProp parameter
KotlinNLP/SimpleDNN
src/main/kotlin/com/kotlinnlp/simplednn/core/layers/LayerParametersFactory.kt
src/main/kotlin/com/kotlinnlp/simplednn/core/layers/LayerParametersFactory.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
8ad63adc2219a8ea21383776bf3db6f9803f8825
Increase build timeout to 15 minutes
adammurdoch/native-platform,adammurdoch/native-platform,adammurdoch/native-platform,adammurdoch/native-platform
.teamcity/NativePlatformBuild.kt
.teamcity/NativePlatformBuild.kt
/* * Copyright 2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
/* * Copyright 2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
apache-2.0
Kotlin
65ffad22eec868dff0e9c7507fc04c68675af4d4
Update TerminateInstance.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/services/ec2/src/main/kotlin/com/kotlin/ec2/TerminateInstance.kt
.kotlin_alpha/services/ec2/src/main/kotlin/com/kotlin/ec2/TerminateInstance.kt
//snippet-sourcedescription:[TerminateInstance.kt demonstrates how to terminate an Amazon Elastic Compute Cloud (Amazon EC2) instance.] //snippet-keyword:[AWS SDK for Kotlin] //snippet-keyword:[Code Sample] //snippet-service:[Amazon EC2] //snippet-sourcetype:[full-example] //snippet-sourcedate:[07/22/2021] //snip...
//snippet-sourcedescription:[TerminateInstance.kt demonstrates how to terminate an Amazon Elastic Compute Cloud (Amazon EC2) instance.] //snippet-keyword:[AWS SDK for Kotlin] //snippet-keyword:[Code Sample] //snippet-service:[Amazon EC2] //snippet-sourcetype:[full-example] //snippet-sourcedate:[07/22/2021] //snip...
apache-2.0
Kotlin
b1263607b9b03701fe5030b09401f78a7008e564
Fix compilation.
KotlinKit/Reactant
Core/src/main/kotlin/org/brightify/reactant/core/ReactantActivityContentView.kt
Core/src/main/kotlin/org/brightify/reactant/core/ReactantActivityContentView.kt
package org.brightify.reactant.core import android.content.Context import android.os.Build import android.view.View import android.widget.FrameLayout import io.reactivex.Observable import io.reactivex.Single import io.reactivex.subjects.PublishSubject /** * @author <a href="mailto:filip.dolnik.96@gmail.com">Filip Do...
package org.brightify.reactant.core import android.content.Context import android.os.Build import android.view.View import android.widget.FrameLayout import io.reactivex.Observable import io.reactivex.Single import io.reactivex.subjects.PublishSubject /** * @author <a href="mailto:filip.dolnik.96@gmail.com">Filip Do...
mit
Kotlin
55d9aba503d91466a109736544479a184b3ad95a
Implement inspection for unresolved module reference
intellij-purescript/intellij-purescript,intellij-purescript/intellij-purescript
src/main/java/org/purescript/ide/inspections/PSUnresolvedReferenceInspection.kt
src/main/java/org/purescript/ide/inspections/PSUnresolvedReferenceInspection.kt
package org.purescript.ide.inspections import com.intellij.codeInspection.LocalInspectionTool import com.intellij.codeInspection.ProblemsHolder import com.intellij.psi.PsiElement import com.intellij.psi.PsiElementVisitor import com.intellij.psi.PsiReference import org.purescript.psi.exports.PSExportedModule import org...
package org.purescript.ide.inspections import com.intellij.codeInspection.LocalInspectionTool import com.intellij.codeInspection.ProblemHighlightType import com.intellij.codeInspection.ProblemsHolder import com.intellij.psi.PsiElement import com.intellij.psi.PsiElementVisitor import org.purescript.psi.exports.PSExport...
bsd-3-clause
Kotlin
c197699c6f766f19fb8f93655f21bca14aae9d35
Add KDoc to SquareFrameLayout.kt
igorini/kotlin-android-app
app/src/main/java/com/igorini/kotlin/android/app/view/views/SquareFrameLayout.kt
app/src/main/java/com/igorini/kotlin/android/app/view/views/SquareFrameLayout.kt
package com.igorini.kotlin.android.app.view.views import android.util.AttributeSet import android.widget.FrameLayout import android.content.Context /** Represents a layout of a square shape */ class SquareFrameLayout @JvmOverloads constructor( context: Context, attrs: AttributeSet? = null, def...
package com.igorini.kotlin.android.app.view.views import android.util.AttributeSet import android.widget.FrameLayout import android.content.Context class SquareFrameLayout @JvmOverloads constructor( context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0 ) : FrameLayout(context, a...
apache-2.0
Kotlin
45393f452afe942fc80c78304795bc75cc8508ce
Fix build size() -> size
kotlinx/kotlinx.html,kotlinx/kotlinx.html,kotlinx/kotlinx.html
shared/src/main/kotlin/delegating-map.kt
shared/src/main/kotlin/delegating-map.kt
package kotlinx.html.impl import kotlinx.html.Tag import kotlinx.html.TagConsumer class DelegatingMap(initialValues : Map<String, String>, val tag : Tag, val consumer : () -> TagConsumer<*>) : MutableMap<String, String> { private val backing = linkedMapOf<String, String>().let { it.putAll(initialValues); it } ...
package kotlinx.html.impl import kotlinx.html.Tag import kotlinx.html.TagConsumer import java.util.HashMap class DelegatingMap(initialValues : Map<String, String>, val tag : Tag, val consumer : () -> TagConsumer<*>) : MutableMap<String, String> { private val backing = linkedMapOf<String, String>().let { it.putAll...
apache-2.0
Kotlin
bfd326d4572f17ae940858eb20176d3ff04dcb4e
Refactor double matchers to include an infix modifier (#429)
kotlintest/kotlintest,kotlintest/kotlintest,sksamuel/ktest,kotlintest/kotlintest
kotlintest-assertions/src/main/kotlin/io/kotlintest/matchers/doubles/matchers.kt
kotlintest-assertions/src/main/kotlin/io/kotlintest/matchers/doubles/matchers.kt
package io.kotlintest.matchers.doubles import io.kotlintest.Matcher import io.kotlintest.Result import io.kotlintest.matchers.between import io.kotlintest.matchers.exactly import io.kotlintest.shouldBe import io.kotlintest.shouldNotBe infix fun Double.shouldBeExactly(other: Double) = this shouldBe exactly(other) infi...
package io.kotlintest.matchers.doubles import io.kotlintest.Matcher import io.kotlintest.Result import io.kotlintest.matchers.between import io.kotlintest.matchers.exactly import io.kotlintest.shouldBe import io.kotlintest.shouldNotBe fun Double.shouldBeExactly(other: Double) = this shouldBe exactly(other) fun Double...
mit
Kotlin
9c7610ceba94a2314599a1a12ffda082927d0646
Simplify ObjectClickBox dev plugin
RuneSuite/client,RuneSuite/client
plugins-dev/src/main/java/org/runestar/client/plugins/dev/ObjectClickBoxDebug.kt
plugins-dev/src/main/java/org/runestar/client/plugins/dev/ObjectClickBoxDebug.kt
package org.runestar.client.plugins.dev import org.runestar.client.game.api.SceneObject import org.runestar.client.game.api.live.Game import org.runestar.client.game.api.live.LiveCanvas import org.runestar.client.game.api.live.LiveViewport import org.runestar.client.game.api.live.SceneObjects import org.runestar.clien...
package org.runestar.client.plugins.dev import org.runestar.client.game.api.SceneObject import org.runestar.client.game.api.live.Game import org.runestar.client.game.api.live.LiveCanvas import org.runestar.client.game.api.live.LiveViewport import org.runestar.client.game.api.live.SceneObjects import org.runestar.clien...
mit
Kotlin
9f86e52f15053e3595d1f900207ef262c60f6721
refactor #283 Remove useless printing.
toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Jitte
app/src/main/java/jp/toastkid/yobidashi/notification/widget/NotificationWidget.kt
app/src/main/java/jp/toastkid/yobidashi/notification/widget/NotificationWidget.kt
package jp.toastkid.yobidashi.notification.widget import android.annotation.TargetApi import android.app.Notification import android.app.NotificationChannel import android.app.NotificationManager import android.content.Context import android.os.Build import androidx.core.app.NotificationCompat import androidx.core.app...
package jp.toastkid.yobidashi.notification.widget import android.annotation.TargetApi import android.app.Notification import android.app.NotificationChannel import android.app.NotificationManager import android.content.Context import android.os.Build import androidx.core.app.NotificationCompat import androidx.core.app...
epl-1.0
Kotlin
365600fa14709dcdfee768cd131d5a32ce1512c7
Improve unit test
panpf/sketch,panpf/sketch
sketch/src/androidTest/java/com/github/panpf/sketch/test/android/ResourcesTest.kt
sketch/src/androidTest/java/com/github/panpf/sketch/test/android/ResourcesTest.kt
package com.github.panpf.sketch.test.android import android.graphics.drawable.BitmapDrawable import androidx.appcompat.content.res.AppCompatResources import androidx.test.ext.junit.runners.AndroidJUnit4 import com.github.panpf.sketch.test.utils.getTestContext import org.junit.Assert import org.junit.Test import org.ju...
package com.github.panpf.sketch.test.android import android.graphics.drawable.BitmapDrawable import androidx.test.ext.junit.runners.AndroidJUnit4 import com.github.panpf.sketch.test.utils.getTestContext import org.junit.Assert import org.junit.Test import org.junit.runner.RunWith @RunWith(AndroidJUnit4::class) class ...
apache-2.0
Kotlin
8f6201b91d46fa99c3be6c8f8528646b0344c14f
Disable stratego.build.spoofax2.integrationtest.
metaborg/spoofax-deploy,metaborg/spoofax-deploy,metaborg/spoofax-deploy
gradle/language/settings.gradle.kts
gradle/language/settings.gradle.kts
rootProject.name = "spoofax2.releng.language.root" pluginManagement { repositories { maven("https://artifacts.metaborg.org/content/groups/public/") } } if(org.gradle.util.VersionNumber.parse(gradle.gradleVersion).major < 6) { enableFeaturePreview("GRADLE_METADATA") } buildscript { repositories { mav...
rootProject.name = "spoofax2.releng.language.root" pluginManagement { repositories { maven("https://artifacts.metaborg.org/content/groups/public/") } } if(org.gradle.util.VersionNumber.parse(gradle.gradleVersion).major < 6) { enableFeaturePreview("GRADLE_METADATA") } buildscript { repositories { mav...
apache-2.0
Kotlin
b5613379fd80c47e45b0069a31c4eb68ee167cf8
refactor #485 Enable to inject Dispatcher for fixing unit test.
toastkidjp/Jitte,toastkidjp/Yobidashi_kt,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 jp.toastkid.yobidashi.libs.db.DatabaseFinder import kotlinx.coroutines.CoroutineDispatcher import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Job import kotlinx.coroutines.launch /*...
package jp.toastkid.yobidashi.search.history import android.content.Context import jp.toastkid.yobidashi.libs.db.DatabaseFinder import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Job import kotlinx.coroutines.launch /** * * @param context [Context] * @param cat...
epl-1.0
Kotlin
5aa549d18cb767de31a518ab977fcc630f404491
refactor #605 Add WebViewSettingApplier's unit test with null case.
toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Jitte,toastkidjp/Yobidashi_kt
app/src/test/java/jp/toastkid/yobidashi/browser/webview/WebSettingApplierTest.kt
app/src/test/java/jp/toastkid/yobidashi/browser/webview/WebSettingApplierTest.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
6d355905de1d56b6d76fbe600bcef0da82ab3e87
clean imports
bastienvalentin/myeurocollector,bastienvalentin/myeurocollector
app/src/main/java/fr/vbastien/mycoincollector/controller/country/CountryAdapter.kt
app/src/main/java/fr/vbastien/mycoincollector/controller/country/CountryAdapter.kt
package fr.vbastien.mycoincollector.controller.country import android.content.Context import android.support.v4.content.ContextCompat import android.support.v7.widget.RecyclerView import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.TextView import fr.vbastien...
package fr.vbastien.mycoincollector.controller.country import android.content.Context import android.support.v4.content.ContextCompat import android.support.v7.widget.RecyclerView import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.TextView import fr.vbastien...
apache-2.0
Kotlin
9b92929d6a1a1db63e36f8c1c0f917d4b405bb0f
Make Error returning simplified
kittinunf/Fuel,jilees/Fuel,kittinunf/Fuel,jilees/Fuel
fuel/src/main/kotlin/com/github/kittinunf/fuel/core/requests/AsyncTaskRequest.kt
fuel/src/main/kotlin/com/github/kittinunf/fuel/core/requests/AsyncTaskRequest.kt
package com.github.kittinunf.fuel.core.requests import com.github.kittinunf.fuel.core.FuelError import com.github.kittinunf.fuel.core.Response class AsyncTaskRequest(val task: TaskRequest) : TaskRequest(task.request) { var successCallback: ((Response) -> Unit)? = null var failureCallback: ((FuelError, Respon...
package com.github.kittinunf.fuel.core.requests import com.github.kittinunf.fuel.core.FuelError import com.github.kittinunf.fuel.core.Response class AsyncTaskRequest(val task: TaskRequest) : TaskRequest(task.request) { var successCallback: ((Response) -> Unit)? = null var failureCallback: ((FuelError, Respon...
mit
Kotlin
e9b6752e563ac252761a0db84effb45544e22cf6
Add VK_IMG_filter_cubic
LWJGL/lwjgl3,TheMrMilchmann/lwjgl3,LWJGL/lwjgl3,code-disaster/lwjgl3,LWJGL-CI/lwjgl3,bsmr-java/lwjgl3,LWJGL-CI/lwjgl3,bsmr-java/lwjgl3,code-disaster/lwjgl3,code-disaster/lwjgl3,LWJGL-CI/lwjgl3,bsmr-java/lwjgl3,LWJGL/lwjgl3,LWJGL/lwjgl3,TheMrMilchmann/lwjgl3,code-disaster/lwjgl3,bsmr-java/lwjgl3,LWJGL-CI/lwjgl3,TheMrMil...
modules/templates/src/main/kotlin/org/lwjgl/vulkan/templates/IMG_filter_cubic.kt
modules/templates/src/main/kotlin/org/lwjgl/vulkan/templates/IMG_filter_cubic.kt
/* * Copyright LWJGL. All rights reserved. * License terms: http://lwjgl.org/license.php */ package org.lwjgl.vulkan.templates import org.lwjgl.generator.* import org.lwjgl.vulkan.* val IMG_filter_cubic = "IMGFilterCubic".nativeClassVK("IMG_filter_cubic", postfix = IMG) { documentation = "The $templateName exte...
bsd-3-clause
Kotlin
ad824f0fead0d44ed6f4ba519aa8270fdad5c8d0
Fix listener not being released
marverenic/Paper
app/src/main/java/com/marverenic/reader/utils/ViewUtils.kt
app/src/main/java/com/marverenic/reader/utils/ViewUtils.kt
package com.marverenic.reader.utils import android.view.View import android.view.ViewTreeObserver inline fun <V : View> V.whenMeasured(crossinline action: V.() -> Unit) { if (isLaidOut) { action() } else { viewTreeObserver.addOnGlobalLayoutListener(object : ViewTreeObserver.OnGlobalLayoutListe...
package com.marverenic.reader.utils import android.view.View inline fun <V : View> V.whenMeasured(crossinline action: V.() -> Unit) { if (isLaidOut) { action() } else { viewTreeObserver.addOnGlobalLayoutListener { action() } } }
apache-2.0
Kotlin
b99790f79c62e40a3518143002fe6406932d1e41
Update Navigation to 1.0.0-alpha02 am: 68ce4d8cdb am: cdc969c7f1
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/LibraryVersions.kt
buildSrc/src/main/kotlin/androidx/build/LibraryVersions.kt
/* * Copyright 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 applica...
/* * Copyright 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 applica...
apache-2.0
Kotlin
5a0257f219774326e818e0cd45cd5dc89be5ef98
validate bst
dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas
kotlin/src/katas/kotlin/leetcode/validate_bst/ValidateBST.kt
kotlin/src/katas/kotlin/leetcode/validate_bst/ValidateBST.kt
package katas.kotlin.leetcode.validate_bst import katas.kotlin.leetcode.TreeNode import kotlincommon.test.shouldEqual import org.junit.Test class ValidateBSTTests { @Test fun `determine if binary search tree is valid`() { TreeNode(1).isValid() shouldEqual true TreeNode(1, TreeNode(0)).isValid() sh...
package katas.kotlin.leetcode.validate_bst import katas.kotlin.leetcode.TreeNode import kotlincommon.test.shouldEqual import org.junit.Test class ValidateBSTTests { @Test fun `determine if binary search tree is valid`() { TreeNode(1).isValid() shouldEqual true TreeNode(1, TreeNode(0)).isValid() sh...
unlicense
Kotlin
8bbb5b39ca6aa02956346c3eb967d0116d5da801
Use lazy instead of custom loading
zielu/GitToolBox,zielu/GitToolBox,zielu/GitToolBox
GitToolBox/src/main/kotlin/zielu/intellij/util/ZBundleHolder.kt
GitToolBox/src/main/kotlin/zielu/intellij/util/ZBundleHolder.kt
package zielu.intellij.util import java.util.ResourceBundle class ZBundleHolder(private val bundleName: String) { val bundle: ResourceBundle by lazy { ResourceBundle.getBundle(bundleName) } }
package zielu.intellij.util import java.util.ResourceBundle class ZBundleHolder(private val bundleName: String) { private var bundle: ResourceBundle? = null fun getBundle(): ResourceBundle { if (bundle == null) { bundle = ResourceBundle.getBundle(bundleName) } return checkNotNull(bundle) { "Fai...
apache-2.0
Kotlin
8125b76b8140e41e43e62230d114f715fdb50034
call kotlin form java
hanks-zyh/AnkoExample,hanks-zyh/AnkoExample
app/src/main/java/com/example/hanks/ankoexample/MainActivity.kt
app/src/main/java/com/example/hanks/ankoexample/MainActivity.kt
package com.example.hanks.ankoexample import android.os.Bundle import android.support.design.widget.FloatingActionButton import android.support.design.widget.Snackbar import android.support.v7.app.AppCompatActivity import android.support.v7.widget.Toolbar import android.view.Menu import android.view.MenuItem import or...
package com.example.hanks.ankoexample import android.os.Bundle import android.support.design.widget.FloatingActionButton import android.support.design.widget.Snackbar import android.support.v7.app.AppCompatActivity import android.support.v7.widget.Toolbar import android.view.Menu import android.view.MenuItem import or...
apache-2.0
Kotlin
d62a1eb0e35d48f0fae55cbe0a2e8a5bc99f06c0
refactor #450 Delete unused function from HeaderViewModel.
toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Yobidashi_kt
app/src/main/java/jp/toastkid/yobidashi/main/HeaderViewModel.kt
app/src/main/java/jp/toastkid/yobidashi/main/HeaderViewModel.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
d0efa9ac45e8dd7ac704a9d69101c9936768faa3
split test cases for StringExtensionsTest
StepicOrg/stepic-android,StepicOrg/stepik-android,StepicOrg/stepik-android,StepicOrg/stepic-android,StepicOrg/stepic-android,StepicOrg/stepik-android
app/src/test/java/org/stepic/droid/util/StringExtensionsTest.kt
app/src/test/java/org/stepic/droid/util/StringExtensionsTest.kt
package org.stepic.droid.util import org.junit.Test import org.junit.Assert.assertEquals class StringExtensionsTest { @Test fun countWhileTestDefaultFunctionality() { val testString = "a \n x \n b" assertEquals( testString.indexOf('x') - testString.indexOf('a') - 1, // ...
package org.stepic.droid.util import org.junit.Test import org.junit.Assert.assertEquals class StringExtensionsTest { @Test fun countWhileTest() { val testString = "a \n x \n b" assertEquals( testString.indexOf('x') - testString.indexOf('a') - 1, // whitespace symbols b...
apache-2.0
Kotlin
64c1799b399de7d2c84aba36e802d847948ef692
add test
http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k
http4k-core/src/test/kotlin/org/http4k/lens/ReflectTest.kt
http4k-core/src/test/kotlin/org/http4k/lens/ReflectTest.kt
package org.http4k.lens import com.natpryce.hamkrest.assertion.assertThat import com.natpryce.hamkrest.equalTo import org.http4k.core.Method.GET import org.http4k.core.Request import org.http4k.core.with import org.junit.jupiter.api.Test class ReflectTest { private val qReq by Query.long().named().required() ...
package org.http4k.lens import com.natpryce.hamkrest.assertion.assertThat import com.natpryce.hamkrest.equalTo import org.http4k.core.Method.GET import org.http4k.core.Request import org.http4k.core.with import org.junit.jupiter.api.Test class ReflectTest { private val qReq by Query.long().named().required() ...
apache-2.0
Kotlin
c97ff247c1f0838fee114ba17000bccc2e690920
refactor #523 Add factory function.
toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Jitte
lib/src/main/java/jp/toastkid/lib/color/IconColorFinder.kt
lib/src/main/java/jp/toastkid/lib/color/IconColorFinder.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
902a9eac6f8c6b8a3487889ed36a9ff68c7466ff
Update Kotlin (1.4.31).
coil-kt/coil,coil-kt/coil
buildSrc/extra.gradle.kts
buildSrc/extra.gradle.kts
rootProject.extra.apply { set("androidPlugin", "com.android.tools.build:gradle:4.1.2") set("kotlinPlugin", "org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.31") }
rootProject.extra.apply { set("androidPlugin", "com.android.tools.build:gradle:4.1.2") set("kotlinPlugin", "org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.30") }
apache-2.0
Kotlin
94113501eac7d3c7b28816cdd97327009e349d39
refactor #827 Safe delete 'items'.
toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt
rss/src/main/java/jp/toastkid/rss/setting/Adapter.kt
rss/src/main/java/jp/toastkid/rss/setting/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
5b6fe78b5b4b4ac0f6e9a1b064ffb63044271fad
Test update v2
mockk/mockk,mockk/mockk,mockk/mockk,mockk/mockk,mockk/mockk,mockk/mockk
mockk/jvm/src/test/kotlin/io/mockk/junit4/MockKRuleTest.kt
mockk/jvm/src/test/kotlin/io/mockk/junit4/MockKRuleTest.kt
@file:Suppress("UNUSED_PARAMETER") package io.mockk.junit4 import io.mockk.every import io.mockk.impl.annotations.MockK import io.mockk.impl.annotations.RelaxedMockK import io.mockk.impl.annotations.SpyK import io.mockk.verify import org.junit.Rule import org.junit.Test import org.junit.runner.RunWith import org.juni...
@file:Suppress("UNUSED_PARAMETER") package io.mockk.junit4 import io.mockk.every import io.mockk.impl.annotations.MockK import io.mockk.impl.annotations.RelaxedMockK import io.mockk.impl.annotations.SpyK import io.mockk.verify import org.junit.Rule import org.junit.jupiter.api.Test import kotlin.test.assertEquals imp...
apache-2.0
Kotlin
4d0768696002ba242fbf346cca5a384ab388225d
Rewrite PSFindUsageProvider#canFindUsagesFor to use boolean expression instead of when
intellij-purescript/intellij-purescript,intellij-purescript/intellij-purescript
src/main/java/org/purescript/features/PSFindUsageProvider.kt
src/main/java/org/purescript/features/PSFindUsageProvider.kt
package org.purescript.features import com.intellij.lang.findUsages.FindUsagesProvider import com.intellij.psi.PsiElement import com.intellij.psi.PsiNamedElement import org.purescript.psi.PSValueDeclaration import org.jetbrains.annotations.Nls import org.purescript.file.PSFile import org.purescript.psi.PSModule import...
package org.purescript.features import com.intellij.lang.findUsages.FindUsagesProvider import com.intellij.psi.PsiElement import com.intellij.psi.PsiNamedElement import org.purescript.psi.PSValueDeclaration import org.jetbrains.annotations.Nls import org.purescript.file.PSFile import org.purescript.psi.PSModule import...
bsd-3-clause
Kotlin
31805e60b21c70981cec14cc3be314f9134338cd
Fix compilation error when using kotlin 1.4 compiler
Undin/intellij-rust,Undin/intellij-rust,intellij-rust/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,Undin/intellij-rust
src/main/kotlin/org/rust/lang/core/psi/ext/RsNamedElement.kt
src/main/kotlin/org/rust/lang/core/psi/ext/RsNamedElement.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.psi.ext import com.intellij.lang.ASTNode import com.intellij.navigation.ItemPresentation import com.intellij.psi.NavigatablePsiElement import com.intellij.psi.PsiElement import com.int...
/* * Use of this source code is governed by the MIT license that can be * found in the LICENSE file. */ package org.rust.lang.core.psi.ext import com.intellij.lang.ASTNode import com.intellij.navigation.ItemPresentation import com.intellij.psi.NavigatablePsiElement import com.intellij.psi.PsiElement import com.int...
mit
Kotlin
fc46b450eed9a0253c21465c9cba5aa36cb204d1
fix RustFunctionType.equals
ujpv/intellij-rust,alygin/intellij-rust,intellij-rust/intellij-rust,himikof/intellij-rust,himikof/intellij-rust,anton-okolelov/intellij-rust,d9n/intellij-rust,anton-okolelov/intellij-rust,Undin/intellij-rust,d9n/intellij-rust,anton-okolelov/intellij-rust,anton-okolelov/intellij-rust,Undin/intellij-rust,intellij-rust/in...
src/main/kotlin/org/rust/lang/core/types/RustFunctionType.kt
src/main/kotlin/org/rust/lang/core/types/RustFunctionType.kt
package org.rust.lang.core.types import org.rust.lang.core.types.visitors.RustTypeVisitor class RustFunctionType(val paramTypes: List<RustType>, val retType: RustType) : RustType { override fun <T> accept(visitor: RustTypeVisitor<T>): T = visitor.visitFunctionType(this) override fun equals(other: Any?): Boo...
package org.rust.lang.core.types import org.rust.lang.core.types.visitors.RustTypeVisitor class RustFunctionType(val paramTypes: List<RustType>, val retType: RustType) : RustType { override fun <T> accept(visitor: RustTypeVisitor<T>): T = visitor.visitFunctionType(this) override fun equals(other: Any?): Boo...
mit
Kotlin
201075236b9e085363e7fb27283bf6ec91ad8091
Bump plugin-meta to release version
SpongePowered/SpongeGradle,SpongePowered/SpongeGradle
plugin-development/build.gradle.kts
plugin-development/build.gradle.kts
dependencies { implementation("org.spongepowered:plugin-meta:0.8.0") // implementation("org.spongepowered:vanillagradle:0.2-SNAPSHOT") // implementation("gradle.plugin.org.jetbrains.gradle.plugin.idea-ext:gradle-idea-ext:0.10") } val functionalTest by sourceSets.creating configurations.named(functionalTes...
dependencies { implementation("org.spongepowered:plugin-meta:0.8.0-SNAPSHOT") // implementation("org.spongepowered:vanillagradle:0.2-SNAPSHOT") // implementation("gradle.plugin.org.jetbrains.gradle.plugin.idea-ext:gradle-idea-ext:0.10") } val functionalTest by sourceSets.creating configurations.named(func...
mit
Kotlin
3b8692da51bf95bbcd2366d5b2de91a2ba63541c
use menu key instead of hardcoded esc
AlmasB/FXGL,AlmasB/FXGL,AlmasB/FXGL,AlmasB/FXGL
fxgl-base/src/main/kotlin/com/almasb/fxgl/input/virtual/VirtualPauseButtonOverlay.kt
fxgl-base/src/main/kotlin/com/almasb/fxgl/input/virtual/VirtualPauseButtonOverlay.kt
/* * FXGL - JavaFX Game Library. The MIT License (MIT). * Copyright (c) AlmasB (almaslvl@gmail.com). * See LICENSE for details. */ package com.almasb.fxgl.input.virtual import com.almasb.fxgl.app.FXGL import javafx.scene.Parent import javafx.scene.paint.Color import javafx.scene.shape.Circle import javafx.scene.s...
/* * FXGL - JavaFX Game Library. The MIT License (MIT). * Copyright (c) AlmasB (almaslvl@gmail.com). * See LICENSE for details. */ package com.almasb.fxgl.input.virtual import com.almasb.fxgl.app.FXGL import javafx.scene.Parent import javafx.scene.input.KeyCode import javafx.scene.paint.Color import javafx.scene....
mit
Kotlin
bcf477fef8d39e0034e8462add33170a49544936
make get and fetch to extenstion function
kotlin-everywhere/rpc-browser,kotlin-everywhere/rpc-browser,kotlin-everywhere/rpc-browser
src/main/kotlin/com/github/kotlin_everywhere/rpc/Remote.kt
src/main/kotlin/com/github/kotlin_everywhere/rpc/Remote.kt
package com.github.kotlin_everywhere.rpc import com.github.kotlin_everywhere.JavaScript.Promise import org.w3c.fetch.RequestInit import org.w3c.fetch.Response import kotlin.browser.window enum class Method { GET, POST } abstract class BaseEndpoint(protected val remote: Remote, url: String, protected val method: ...
package com.github.kotlin_everywhere.rpc import org.w3c.fetch.RequestInit import org.w3c.fetch.Response import kotlin.browser.window import com.github.kotlin_everywhere.JavaScript.Promise enum class Method { GET, POST } abstract class BaseEndpoint(protected val remote: Remote, url: String, protected val method: ...
mit
Kotlin
d467ba56fe6a4e258b8cb06001efcf7c099348ef
Add some missing json extensions
PlateStack/PlateAPI,PlateStack/PlateAPI
src/main/kotlin/org/platestack/api/json/json-extensions.kt
src/main/kotlin/org/platestack/api/json/json-extensions.kt
/* * Copyright (C) 2017 José Roberto de Araújo Júnior * * 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...
/* * Copyright (C) 2017 José Roberto de Araújo Júnior * * 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...
apache-2.0
Kotlin
6e1cf007b4d225a5aa9014f448b723c708d99469
refactor #511 Rename test case.
toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Jitte,toastkidjp/Yobidashi_kt
app/src/test/java/jp/toastkid/yobidashi/editor/EditorContextMenuInitializerTest.kt
app/src/test/java/jp/toastkid/yobidashi/editor/EditorContextMenuInitializerTest.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
1ffbf5ae68629fe454a01d71b4999d34858dbf0c
Add exam solution in Kotlin language
ViliusKraujutis/IT-VBE-2017,ViliusKraujutis/IT-VBE-2017
kotlin/it-vbe-2017-uzd2-solution.kt
kotlin/it-vbe-2017-uzd2-solution.kt
import java.io.File // Define new data types data class Color(val red: Int, val green: Int, val blue: Int) { override fun toString(): String { return "$red $green $blue" } } data class Rectangle(val x: Int, val y: Int, val dx: Int, val dy: Int, val color: Color) fun main(args: Array<String>) { ...
apache-2.0
Kotlin
77e3f8256ced5804d0df6d343058026e67639b44
fix https://github.com/JetBrains/resharper-unity/issues/1283 (#1284)
JetBrains/resharper-unity,JetBrains/resharper-unity,JetBrains/resharper-unity
rider/src/main/kotlin/com/jetbrains/rider/plugins/unity/run/attach/UnityRunUtil.kt
rider/src/main/kotlin/com/jetbrains/rider/plugins/unity/run/attach/UnityRunUtil.kt
package com.jetbrains.rider.plugins.unity.run.attach import com.intellij.execution.ProgramRunnerUtil import com.intellij.execution.executors.DefaultDebugExecutor import com.intellij.execution.process.ProcessInfo import com.intellij.execution.runners.ExecutionEnvironmentBuilder import com.intellij.openapi.project.Proje...
package com.jetbrains.rider.plugins.unity.run.attach import com.intellij.execution.ProgramRunnerUtil import com.intellij.execution.executors.DefaultDebugExecutor import com.intellij.execution.process.ProcessInfo import com.intellij.execution.runners.ExecutionEnvironmentBuilder import com.intellij.openapi.project.Proje...
apache-2.0
Kotlin
d65ddfbafa1ca244fd13f424b65d3d1ae32a921c
Update dotcover constants
JetBrains/teamcity-dnx-plugin
plugin-dotnet-common/src/main/kotlin/jetbrains/buildServer/dotnet/CoverageConstants.kt
plugin-dotnet-common/src/main/kotlin/jetbrains/buildServer/dotnet/CoverageConstants.kt
/* * Copyright 2000-2017 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"). * See LICENSE in the project root for license information. */ package jetbrains.buildServer.dotnet /** * Coverage constants. */ object CoverageConstants { const val PARAM_TYPE = "dotNetCoverage.too...
/* * Copyright 2000-2017 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"). * See LICENSE in the project root for license information. */ package jetbrains.buildServer.dotnet /** * Coverage constants. */ object CoverageConstants { const val PARAM_TYPE = "dotNetCoverage.typ...
apache-2.0
Kotlin
e4296f8048f96173a85edc1f62ababfd78ae93f1
fix playback tests failing on travis
clappr/clappr-android,clappr/clappr-android
player/src/test/kotlin/com/globo/clappr/com/globo/clappr/components/PlaybackTest.kt
player/src/test/kotlin/com/globo/clappr/com/globo/clappr/components/PlaybackTest.kt
package com.globo.clappr.com.globo.clappr.components import com.globo.clappr.BuildConfig import com.globo.clappr.base.BaseObject import com.globo.clappr.components.Playback import com.globo.clappr.components.PlaybackSupportInterface import com.globo.clappr.playback.NoOpPlayback import org.junit.Before import org.junit...
package com.globo.clappr.com.globo.clappr.components import com.globo.clappr.BuildConfig import com.globo.clappr.components.Playback import com.globo.clappr.components.PlaybackSupportInterface import com.globo.clappr.playback.NoOpPlayback import org.junit.Test import org.junit.runner.RunWith import org.robolectric.Rob...
bsd-3-clause
Kotlin
ef6fe410f358d259868d6ca2ff38e9d8f7232fb0
update sample
InsertKoinIO/koin,Ekito/koin,InsertKoinIO/koin,InsertKoinIO/koin,Ekito/koin
samples/sparkjava-sampleapp/src/test/kotlin/org/koin/sample/HelloControllerMockTest.kt
samples/sparkjava-sampleapp/src/test/kotlin/org/koin/sample/HelloControllerMockTest.kt
package org.koin.sample import org.junit.After import org.junit.Assert.assertEquals import org.junit.Before import org.junit.Test import org.koin.sample.util.SparkTestUtil import org.koin.sample.util.start import org.koin.standalone.StandAloneContext.closeKoin import org.koin.standalone.StandAloneContext.startKoin imp...
package org.koin.sample import org.junit.After import org.junit.Assert.assertEquals import org.junit.Before import org.junit.Test import org.koin.sample.util.SparkTestUtil import org.koin.sample.util.start import org.koin.standalone.StandAloneContext.closeKoin import org.koin.standalone.StandAloneContext.startKoin imp...
apache-2.0
Kotlin
f82e530a19a925d1205eab66ff6db1118e9e8c62
Create a mock Editor implementation.
rhdunn/xquery-intellij-plugin,rhdunn/xquery-intellij-plugin
src/intellij-mock/main/uk/co/reecedunn/intellij/plugin/core/tests/editor/MockEditor.kt
src/intellij-mock/main/uk/co/reecedunn/intellij/plugin/core/tests/editor/MockEditor.kt
/* * Copyright (C) 2019 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
dccef09c1cdcef282bb4fcc19e42a184d7dba680
Expand PaymentSheet when user focuses card widget (#2947)
stripe/stripe-android,stripe/stripe-android,stripe/stripe-android,stripe/stripe-android,stripe/stripe-android
stripe/src/main/java/com/stripe/android/paymentsheet/PaymentSheetAddCardFragment.kt
stripe/src/main/java/com/stripe/android/paymentsheet/PaymentSheetAddCardFragment.kt
package com.stripe.android.paymentsheet import android.os.Bundle import android.view.View import android.view.inputmethod.InputMethodManager import androidx.core.content.ContextCompat.getSystemService import androidx.fragment.app.Fragment import androidx.fragment.app.activityViewModels import com.stripe.android.R impo...
package com.stripe.android.paymentsheet import android.os.Bundle import android.view.View import android.view.inputmethod.InputMethodManager import androidx.core.content.ContextCompat.getSystemService import androidx.fragment.app.Fragment import androidx.fragment.app.activityViewModels import com.stripe.android.R impo...
mit
Kotlin
89e2e6007a8cf7efe98f020bda1f8c7908b8d6f5
Fix typos
LorittaBot/Loritta,LorittaBot/Loritta,LorittaBot/Loritta,LorittaBot/Loritta
src/main/java/com/mrpowergamerbr/loritta/commands/vanilla/administration/LockCommand.kt
src/main/java/com/mrpowergamerbr/loritta/commands/vanilla/administration/LockCommand.kt
package com.mrpowergamerbr.loritta.commands.vanilla.administration import com.mrpowergamerbr.loritta.commands.* import com.mrpowergamerbr.loritta.utils.* import net.dv8tion.jda.core.Permission import com.mrpowergamerbr.loritta.utils.locale.BaseLocale class LockCommand : AbstractCommand("lock", listOf("trancar", "fech...
package com.mrpowergamerbr.loritta.commands.vanilla.administration import com.mrpowergamerbr.loritta.commands.* import com.mrpowergamerbr.loritta.utils.* import net.dv8tion.jda.core.Permission import com.mrpowergamerbr.loritta.utils.locale.BaseLocale class LockCommand : AbstractCommand("lock", listOf("trancar", "fech...
agpl-3.0
Kotlin
9a6b93e674a7a80a81993948bed72797b5d644cd
Add video playback interfaces
BjoernPetersen/JMusicBot
src/main/java/com/github/bjoernpetersen/jmusicbot/playback/included/VideoPlayback.kt
src/main/java/com/github/bjoernpetersen/jmusicbot/playback/included/VideoPlayback.kt
package com.github.bjoernpetersen.jmusicbot.playback.included import com.github.bjoernpetersen.jmusicbot.playback.FilePlaybackFactory interface MkvPlaybackFactory : FilePlaybackFactory interface WmvPlaybackFactory : FilePlaybackFactory interface Mp4PlaybackFactory : FilePlaybackFactory interface AviPlaybackFactory : ...
mit
Kotlin
21f3fc533453978e026180618b89c734b458edb7
Bump jteVersion from 2.0.0 to 2.0.2
ktorio/ktor,ktorio/ktor,ktorio/ktor,ktorio/ktor
ktor-server/ktor-server-plugins/ktor-server-jte/build.gradle.kts
ktor-server/ktor-server-plugins/ktor-server-jte/build.gradle.kts
/* * Copyright 2014-2022 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license. */ kotlin.sourceSets { val jteVersion = "2.0.2" val jvmMain by getting { dependencies { api("gg.jte:jte:$jteVersion") } } val jvmTest by getting { ...
/* * Copyright 2014-2022 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license. */ kotlin.sourceSets { val jteVersion = "2.0.0" val jvmMain by getting { dependencies { api("gg.jte:jte:$jteVersion") } } val jvmTest by getting { ...
apache-2.0
Kotlin
f8a378ffceb3277924f350d1d7609128954f7e1e
Add standard invokeLater helper for Kotlin, remove its reimplementation in Kubernetes plugin
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/util-ex/src/com/intellij/openapi/application/actions.kt
platform/util-ex/src/com/intellij/openapi/application/actions.kt
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.openapi.application import com.intellij.openapi.command.CommandProcessor import com.intellij.openapi.util.Computable import java.lang.reflect.InvocationTarge...
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.openapi.application import com.intellij.openapi.command.CommandProcessor import com.intellij.openapi.util.Computable import java.lang.reflect.InvocationTarge...
apache-2.0
Kotlin
6f606c3137f808b6d325779becdb0f9c5636454b
update kotlin
AsynkronIT/protoactor-kotlin,AsynkronIT/protoactor-kotlin,AsynkronIT/protoactor-kotlin
proto-actor/src/main/kotlin/actor/proto/AlwaysRestartStrategy.kt
proto-actor/src/main/kotlin/actor/proto/AlwaysRestartStrategy.kt
package actor.proto
apache-2.0
Kotlin
9180f23b9d7a42686371d00b7a3b08f3ca9e37b8
bump org.jetbrains.intellij
JetBrains/intellij-sdk-docs,JetBrains/intellij-sdk-docs,JetBrains/intellij-sdk-docs
code_samples/conditional_operator_intention/build.gradle.kts
code_samples/conditional_operator_intention/build.gradle.kts
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. plugins { id("java") id("org.jetbrains.intellij") version "1.5.1" } group = "org.intellij.sdk" version = "2.0.0" repositories { mavenCentral() } dependencies { testImplementation("junit:j...
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. plugins { id("java") id("org.jetbrains.intellij") version "1.5.0" } group = "org.intellij.sdk" version = "2.0.0" repositories { mavenCentral() } dependencies { testImplementation("junit:j...
apache-2.0
Kotlin
db43aa4b4ceace79bbfc5b16805ae4aa50c19ea9
Remove unused type alias
grover-ws-1/http4k,grover-ws-1/http4k,http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k,grover-ws-1/http4k,grover-ws-1/http4k,http4k/http4k,http4k/http4k,grover-ws-1/http4k
reekwest/src/main/kotlin/org/reekwest/http/core/Reekwest.kt
reekwest/src/main/kotlin/org/reekwest/http/core/Reekwest.kt
package org.reekwest.http.core typealias HttpHandler = (Request) -> Response interface Filter : (HttpHandler) -> HttpHandler { companion object { operator fun invoke(fn: (HttpHandler) -> HttpHandler): Filter = object : Filter { operator override fun invoke(next: HttpHandler): HttpHandler = fn(...
package org.reekwest.http.core typealias HttpHandler = (Request) -> Response typealias HttpClient = HttpHandler interface Filter : (HttpHandler) -> HttpHandler { companion object { operator fun invoke(fn: (HttpHandler) -> HttpHandler): Filter = object : Filter { operator override fun invoke(n...
apache-2.0
Kotlin
fe2a5fd537189cd67b0ac1fddcb890c55fe12601
Update dependency org.apache.logging.log4j:log4j-slf4j-impl to v2.19.0
rahulsom/grooves,rahulsom/grooves,rahulsom/grooves
grooves-core/build.gradle.kts
grooves-core/build.gradle.kts
plugins { id("org.jetbrains.kotlin.jvm") id("org.jlleitschuh.gradle.ktlint") id("dev.jacomet.logging-capabilities") version "0.+" id("io.freefair.aspectj.post-compile-weaving") version "6.5.1" id("com.github.rahulsom.waena.published") `java-library` } loggingCapabilities { enforceLogback("t...
plugins { id("org.jetbrains.kotlin.jvm") id("org.jlleitschuh.gradle.ktlint") id("dev.jacomet.logging-capabilities") version "0.+" id("io.freefair.aspectj.post-compile-weaving") version "6.5.1" id("com.github.rahulsom.waena.published") `java-library` } loggingCapabilities { enforceLogback("t...
apache-2.0
Kotlin
fd10dadbf2277888e6d7cd816f93b4c254fa8288
remove sleep
jitsi/jitsi-videobridge,jitsi/jitsi-videobridge,jitsi/jitsi-videobridge,jitsi/jitsi-videobridge,jitsi/jitsi-videobridge,jitsi/jitsi-videobridge,jitsi/jitsi-videobridge
src/test/kotlin/org/jitsi/nlj/module_tests/RtpReceiverHarness.kt
src/test/kotlin/org/jitsi/nlj/module_tests/RtpReceiverHarness.kt
/* * Copyright @ 2018 Atlassian Pty Ltd * * 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 ag...
/* * Copyright @ 2018 Atlassian Pty Ltd * * 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 ag...
apache-2.0
Kotlin
22f21bca9448cb26b202af833f6163c640f8b899
make ResultSetBackedSource internal
jayrave/falkon
falkon-engine-jdbc/src/main/kotlin/com/jayrave/falkon/jdbc/h2/ResultSetBackedSource.kt
falkon-engine-jdbc/src/main/kotlin/com/jayrave/falkon/jdbc/h2/ResultSetBackedSource.kt
package com.jayrave.falkon.jdbc.h2 import com.jayrave.falkon.engine.Source import java.sql.ResultSet internal class ResultSetBackedSource(private val resultSet: ResultSet) : Source { override val position: Int get() = resultSet.row override fun move(offset: Int): Boolean = resultSet.relative(offset)...
package com.jayrave.falkon.jdbc.h2 import com.jayrave.falkon.engine.Source import java.sql.ResultSet class ResultSetBackedSource(private val resultSet: ResultSet) : Source { override val position: Int get() = resultSet.row override fun move(offset: Int): Boolean = resultSet.relative(offset) over...
apache-2.0
Kotlin
2d8613c2c64eb1be0d2579109094737640c67dd6
Convert to a concrete object
KotlinNLP/SimpleDNN
src/kotlin/com/kotlinnlp/simplednn/simplemath/ndarray/NDArrayFactory.kt
src/kotlin/com/kotlinnlp/simplednn/simplemath/ndarray/NDArrayFactory.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
bd6707a235e14bdcad5dc614f5a2ff015602c1a5
refactor #442 Add @StringRes annotation.
toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Jitte
app/src/main/java/jp/toastkid/yobidashi/settings/fragment/ColorFilterSettingFragment.kt
app/src/main/java/jp/toastkid/yobidashi/settings/fragment/ColorFilterSettingFragment.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
5ab42c53f8d809c7ac3c7e5320139c71b127ccc5
Disable kotlin compiler progressive mode
blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpira...
buildSrc/subprojects/uber-plugins/src/main/kotlin/gradlebuild.kotlin-library.gradle.kts
buildSrc/subprojects/uber-plugins/src/main/kotlin/gradlebuild.kotlin-library.gradle.kts
/* * Copyright 2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
/* * Copyright 2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
apache-2.0
Kotlin
3e85db2d5ca7d890484c0ff2aa9dba6b79ce3e94
Disable pull to refresh for all builds
liuche/focus-android,mozilla-mobile/focus-android,pocmo/focus-android,liuche/focus-android,ekager/focus-android,pocmo/focus-android,pocmo/focus-android,mozilla-mobile/focus-android,ekager/focus-android,jonalmeida/focus-android,pocmo/focus-android,mozilla-mobile/focus-android,liuche/focus-android,jonalmeida/focus-androi...
app/src/main/java/org/mozilla/focus/utils/Features.kt
app/src/main/java/org/mozilla/focus/utils/Features.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/. */ package org.mozilla.focus.utils import org.mozilla.focus.BuildConfig /** * Simple feature flags. */ class Featur...
/* 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/. */ package org.mozilla.focus.utils import org.mozilla.focus.BuildConfig /** * Simple feature flags. */ class Featur...
mpl-2.0
Kotlin
78223a4a37027051fe936e956cbeb1e533ebeca6
fix insets for old apis
atanana/si_counter
app/src/main/java/com/atanana/sicounter/utils/ScreenUtils.kt
app/src/main/java/com/atanana/sicounter/utils/ScreenUtils.kt
package com.atanana.sicounter.utils import android.app.Activity import android.content.res.Resources import android.os.Build import android.view.View import android.view.WindowInsets import androidx.core.graphics.Insets import androidx.core.view.ViewCompat import androidx.core.view.WindowInsetsCompat fun pxToDp(pixel...
package com.atanana.sicounter.utils import android.app.Activity import android.content.res.Resources import android.os.Build import android.view.WindowInsets import androidx.core.view.WindowInsetsCompat fun pxToDp(pixels: Int, resources: Resources): Float { return pixels / resources.displayMetrics.scaledDensity }...
mit
Kotlin
9939d3bddc204f5f0364194cba8c80ac917d5fe3
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, ListNode(2, ListNode(3, ListNode(4, ListNode(5))))).remov...
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, ListNode(2, ListNode(3, ListNode(4, ListNode(5))))).remov...
unlicense
Kotlin
fb309261d0955f153f3f055c2c921864f84d97b0
Bump version
SpineEventEngine/base,SpineEventEngine/base,SpineEventEngine/base
version.gradle.kts
version.gradle.kts
/* * Copyright 2020, 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 2020, 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
b9d5f786864f20b202feb7a1a462117a31aab549
remove Keep from ButtonPlugin
clappr/clappr-android,clappr/clappr-android
clappr/src/main/kotlin/io/clappr/player/plugin/ButtonPlugin.kt
clappr/src/main/kotlin/io/clappr/player/plugin/ButtonPlugin.kt
package io.clappr.player.plugin import android.view.LayoutInflater import android.widget.ImageButton import io.clappr.player.components.Core import io.clappr.player.plugin.Control.MediaControl abstract class ButtonPlugin(core: Core) : MediaControl.Plugin(core) { abstract val resourceDrawable: Int abstract va...
package io.clappr.player.plugin import android.support.annotation.Keep import android.view.LayoutInflater import android.widget.ImageButton import io.clappr.player.components.Core import io.clappr.player.plugin.Control.MediaControl @Keep abstract class ButtonPlugin(core: Core) : MediaControl.Plugin(core) { abstr...
bsd-3-clause
Kotlin
53c289b07172bf9307502a14330a412613ffba98
Fix Kotlin DSL by using separate token for the Gradle/Util builds
blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,grad...
.teamcity/Gradle_Util/Project.kt
.teamcity/Gradle_Util/Project.kt
package Gradle_Util import Gradle_Util.buildTypes.* import jetbrains.buildServer.configs.kotlin.v2018_2.* import jetbrains.buildServer.configs.kotlin.v2018_2.Project import jetbrains.buildServer.configs.kotlin.v2018_2.projectFeatures.VersionedSettings import jetbrains.buildServer.configs.kotlin.v2018_2.projectFeatures...
package Gradle_Util import Gradle_Util.buildTypes.* import jetbrains.buildServer.configs.kotlin.v2018_2.* import jetbrains.buildServer.configs.kotlin.v2018_2.Project import jetbrains.buildServer.configs.kotlin.v2018_2.projectFeatures.VersionedSettings import jetbrains.buildServer.configs.kotlin.v2018_2.projectFeatures...
apache-2.0
Kotlin
36e44cf7552a166be7eb6781f263456886b1d7cc
Upgrade to asciidoctorj-pdf 1.5.0-alpha.17
sbrannen/junit-lambda,junit-team/junit-lambda
buildSrc/src/main/kotlin/Versions.kt
buildSrc/src/main/kotlin/Versions.kt
import org.gradle.api.JavaVersion object Versions { // Languages val jvmTarget = JavaVersion.VERSION_1_8 val kotlin = "1.3.21" val groovy = "2.5.7" // Dependencies val apiGuardian = "1.0.0" val junit4 = "4.12" val ota4j = "1.2.0-SNAPSHOT" val picocli = "3.9.5" val univocity = ...
import org.gradle.api.JavaVersion object Versions { // Languages val jvmTarget = JavaVersion.VERSION_1_8 val kotlin = "1.3.21" val groovy = "2.5.7" // Dependencies val apiGuardian = "1.0.0" val junit4 = "4.12" val ota4j = "1.2.0-SNAPSHOT" val picocli = "3.9.5" val univocity = ...
epl-1.0
Kotlin
0de91394e28be14659639e31ddc5a9e130c35fb3
Upgrade TeamCity DSL version to 2022.04
gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpira...
.teamcity/settings.kts
.teamcity/settings.kts
import common.VersionedSettingsBranch import jetbrains.buildServer.configs.kotlin.v2019_2.project import jetbrains.buildServer.configs.kotlin.v2019_2.version import projects.GradleBuildToolRootProject version = "2022.04" /* Master (buildTypeId: Gradle_Master) |----- Check (buildTypeId: Gradle_Master_Check) | ...
import common.VersionedSettingsBranch import jetbrains.buildServer.configs.kotlin.v2019_2.project import jetbrains.buildServer.configs.kotlin.v2019_2.version import projects.GradleBuildToolRootProject version = "2021.2" /* Master (buildTypeId: Gradle_Master) |----- Check (buildTypeId: Gradle_Master_Check) | ...
apache-2.0
Kotlin
58041415a92d0a3000c418a64c745110f8d0e5fc
Add delete() function to locations DSL, fixes #288
ktorio/ktor,ktorio/ktor,ktorio/ktor,ktorio/ktor
ktor-features/ktor-locations/src/io/ktor/locations/Location.kt
ktor-features/ktor-locations/src/io/ktor/locations/Location.kt
package io.ktor.locations import io.ktor.application.* import io.ktor.http.* import io.ktor.pipeline.* import io.ktor.routing.* import kotlin.reflect.* annotation class Location(val path: String) @Deprecated("Use Location instead", replaceWith = ReplaceWith("Location")) typealias location = Location val PipelineCon...
package io.ktor.locations import io.ktor.application.* import io.ktor.http.* import io.ktor.pipeline.* import io.ktor.routing.* import kotlin.reflect.* annotation class Location(val path: String) @Deprecated("Use Location instead", replaceWith = ReplaceWith("Location")) typealias location = Location val PipelineCon...
apache-2.0
Kotlin
d0b94696deb09729895c1d7087379257a6cd097c
Make status nullable and optional
vimeo/vimeo-networking-java,vimeo/vimeo-networking-java,vimeo/vimeo-networking-java
models/src/main/java/com/vimeo/networking2/Billing.kt
models/src/main/java/com/vimeo/networking2/Billing.kt
package com.vimeo.networking2 import com.squareup.moshi.Json import com.squareup.moshi.JsonClass import com.vimeo.networking2.enums.BillingStatusType import com.vimeo.networking2.enums.asEnum /** * The Billing information for this membership. */ @JsonClass(generateAdapter = true) data class Billing( /** * ...
package com.vimeo.networking2 import com.squareup.moshi.Json import com.squareup.moshi.JsonClass import com.vimeo.networking2.enums.BillingStatusType import com.vimeo.networking2.enums.asEnum /** * The Billing information for this membership. */ @JsonClass(generateAdapter = true) data class Billing( /** * ...
mit
Kotlin
b829abe3add406c6f02e40bd54fe8a0fc7b6d5f1
bump apollo-runtime from 2.5.10 to 2.5.11 (#461)
PhilippHeuer/twitch4j
graphql/build.gradle.kts
graphql/build.gradle.kts
// Plugins plugins { id("com.apollographql.apollo") version "2.5.10" } // Dependencies dependencies { // GraphQL api(group = "com.apollographql.apollo", name = "apollo-runtime", version = "2.5.11") api(group = "org.jetbrains", name = "annotations") // Hystrix api(group = "com.netflix.hystrix", name = "hystrix-c...
// Plugins plugins { id("com.apollographql.apollo") version "2.5.10" } // Dependencies dependencies { // GraphQL api(group = "com.apollographql.apollo", name = "apollo-runtime", version = "2.5.10") api(group = "org.jetbrains", name = "annotations") // Hystrix api(group = "com.netflix.hystrix", name = "hystrix-c...
mit
Kotlin
9ecc037276fe7c1f724f6fa13772a13d71ba3763
Change members to public. otherwise serialized information is rather limited
bihe/mydms-java,bihe/mydms-java,bihe/mydms-java,bihe/mydms-java,bihe/mydms-java
Api/src/main/kotlin/net/binggl/mydms/shared/models/SimpleResult.kt
Api/src/main/kotlin/net/binggl/mydms/shared/models/SimpleResult.kt
package net.binggl.mydms.shared.models data class SimpleResult(val message: String, val result: ActionResult)
package net.binggl.mydms.shared.models data class SimpleResult(private val message: String, private val result: ActionResult)
apache-2.0
Kotlin
ad866b978e6dae207379b5fb0bd45433037d4d13
Implement ComputeMessage
emanuelpalm/palm-compute,emanuelpalm/palm-compute,emanuelpalm/palm-compute,emanuelpalm/palm-compute
core/src/main/java/se/ltu/emapal/compute/io/ComputeMessage.kt
core/src/main/java/se/ltu/emapal/compute/io/ComputeMessage.kt
package se.ltu.emapal.compute.io import se.ltu.emapal.compute.ComputeBatch import se.ltu.emapal.compute.ComputeError import se.ltu.emapal.compute.ComputeLambda import se.ltu.emapal.compute.ComputeLogEntry import se.ltu.emapal.compute.util.Result import se.ltu.emapal.compute.util.media.MediaDecoder import se.ltu.emapal...
package se.ltu.emapal.compute.io /** * Represents a message that may be sent or received using a [ComputeChannel]. * * @param version Message protocol version. * @param type Message type identifier. */ data class ComputeMessage( val version: Int, val type: Int )
mit
Kotlin
ee0b640ad5c4a8cc1b65403dc2c48e7723b8f53a
Fix resolution of package links
Kotlin/dokka,google/dokka,Kotlin/dokka,Kotlin/dokka,Kotlin/dokka,Kotlin/dokka,Kotlin/dokka,google/dokka
core/src/main/kotlin/Kotlin/KotlinElementSignatureProvider.kt
core/src/main/kotlin/Kotlin/KotlinElementSignatureProvider.kt
package org.jetbrains.dokka import com.intellij.psi.PsiElement import com.intellij.psi.PsiMember import com.intellij.psi.PsiNameIdentifierOwner import com.intellij.psi.PsiPackage import org.jetbrains.kotlin.asJava.elements.KtLightElement import org.jetbrains.kotlin.descriptors.DeclarationDescriptor import org.jetbrain...
package org.jetbrains.dokka import com.intellij.psi.PsiElement import com.intellij.psi.PsiMember import com.intellij.psi.PsiNameIdentifierOwner import org.jetbrains.kotlin.asJava.elements.KtLightElement import org.jetbrains.kotlin.descriptors.DeclarationDescriptor import org.jetbrains.kotlin.resolve.BindingContext imp...
apache-2.0
Kotlin
de713621eda509c68884d995720088bc1bdf1dd6
Increase timeout to 180 min for FlakyTestQuarantine builds
gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpira...
.teamcity/src/main/kotlin/configurations/FlakyTestQuarantine.kt
.teamcity/src/main/kotlin/configurations/FlakyTestQuarantine.kt
package configurations import common.BuildToolBuildJvm import common.Os import common.applyDefaultSettings import common.buildToolGradleParameters import common.checkCleanM2AndAndroidUserHome import common.functionalTestExtraParameters import common.functionalTestParameters import common.gradleWrapper import common.ki...
package configurations import common.BuildToolBuildJvm import common.Os import common.applyDefaultSettings import common.buildToolGradleParameters import common.checkCleanM2AndAndroidUserHome import common.functionalTestExtraParameters import common.functionalTestParameters import common.gradleWrapper import common.ki...
apache-2.0
Kotlin
d8266818bda464c82693b46722f6d61826dd6aa9
reformat ImageLoaderModule
squanchy-dev/squanchy-android,squanchy-dev/squanchy-android,squanchy-dev/squanchy-android
app/src/main/java/net/squanchy/imageloader/ImageLoaderModule.kt
app/src/main/java/net/squanchy/imageloader/ImageLoaderModule.kt
package net.squanchy.imageloader import android.app.Activity import com.bumptech.glide.RequestManager import com.google.firebase.storage.FirebaseStorage import dagger.Module import dagger.Provides import net.squanchy.injection.ActivityContextModule @Module(includes = [ActivityContextModule::class]) internal class Ima...
package net.squanchy.imageloader import android.app.Activity import com.bumptech.glide.RequestManager import com.google.firebase.storage.FirebaseStorage import dagger.Module import dagger.Provides import net.squanchy.injection.ActivityContextModule @Module(includes = [ActivityContextModule::class]) internal class Ima...
apache-2.0
Kotlin
c6ec25faf6d3de3f565aa2f93624cd8518f67e52
refactor #412 Clean up referencee.
toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt,toastkidjp/Jitte
search/src/test/java/jp/toastkid/search/SearchCategoryTest.kt
search/src/test/java/jp/toastkid/search/SearchCategoryTest.kt
package jp.toastkid.search import org.junit.Assert.assertEquals import org.junit.Assert.assertNull import org.junit.Assert.assertSame import org.junit.Test import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner /** * [SearchCategory]'s test. * * @author toastkidjp */ @RunWith(RobolectricTest...
package jp.toastkid.search import org.junit.Assert.assertEquals import org.junit.Assert.assertNull import org.junit.Assert.assertSame import org.junit.Test import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner /** * [SearchCategory]'s test. * * @author toastkidjp */ @RunWith(RobolectricTest...
epl-1.0
Kotlin
d59f6dacda02975b7deecdf74e24b265f4e0da65
Fix Kotlin sample
gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle
subprojects/docs/src/snippets/developingPlugins/publishingPlugins/kotlin/build.gradle.kts
subprojects/docs/src/snippets/developingPlugins/publishingPlugins/kotlin/build.gradle.kts
// tag::plugins_block[] plugins { id("com.gradle.plugin-publish") version "1.0.0-rc-3" } // end::plugins_block[] // tag::global_config[] group = "io.github.johndoe" // <1> version = "1.0" // <2> gradlePlugin { // <3> website.set("<substitute your project website>") // <4> vcsUrl.set("<uri to project sourc...
// tag::plugins_block[] plugins { id("com.gradle.plugin-publish") version "1.0.0-rc-3" } // end::plugins_block[] // tag::global_config[] group = "io.github.johndoe" // <1> version = "1.0" // <2> gradlePlugin { // <3> website = "<substitute your project website>" // <4> vcsUrl = "<uri to project source rep...
apache-2.0
Kotlin
4477969386fe010bc27a9d0f0595c1f2809ad517
refactor #605 Use property access syntax.
toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt,toastkidjp/Jitte
lib/src/test/java/jp/toastkid/lib/intent/ShareIntentFactoryTest.kt
lib/src/test/java/jp/toastkid/lib/intent/ShareIntentFactoryTest.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
fdf0b6867b3b2c513f71206026bc6b3a4f154931
drop dead code
cy6erGn0m/kotlin-frontend-plugin,cy6erGn0m/kotlin-frontend-plugin
kotlin-frontend/src/main/kotlin/org/jetbrains/kotlin/gradle/frontend/npm/NpmInstallTask.kt
kotlin-frontend/src/main/kotlin/org/jetbrains/kotlin/gradle/frontend/npm/NpmInstallTask.kt
package org.jetbrains.kotlin.gradle.frontend.npm import org.gradle.api.* import org.gradle.api.tasks.* import org.jetbrains.kotlin.gradle.frontend.util.* import java.io.* /** * @author Sergey Mashkov */ open class NpmInstallTask : DefaultTask() { @InputFile lateinit var packageJsonFile: File val npmDir...
package org.jetbrains.kotlin.gradle.frontend.npm import org.gradle.api.* import org.gradle.api.tasks.* import org.jetbrains.kotlin.gradle.frontend.util.* import java.io.* /** * @author Sergey Mashkov */ open class NpmInstallTask : DefaultTask() { @InputFile lateinit var packageJsonFile: File val npmDir...
apache-2.0
Kotlin
d3945bff3bfc32d20d93453a3225cf871545a76d
Add fail() function to TestUtils
wiltonlazary/kotlin-native,wiltonlazary/kotlin-native,wiltonlazary/kotlin-native,wiltonlazary/kotlin-native,jiaminglu/kotlin-native,JetBrains/kotlin-native,JuliusKunze/kotlin-native,jiaminglu/kotlin-native,jiaminglu/kotlin-native,JetBrains/kotlin-native,JuliusKunze/kotlin-native,JetBrains/kotlin-native,jiaminglu/kotlin...
backend.native/tests/testUtils.kt
backend.native/tests/testUtils.kt
package kotlin.test class TestFailedException(val msg:String):RuntimeException(msg) fun <T> assertEquals(a:T, b:T, msg:String = "") { if (a != b) throw TestFailedException(msg) } /** Asserts that the expression is `true` with an optional [message]. */ fun assertTrue(actual: Boolean, message: String? = null) { if...
package kotlin.test class TestFailedException(val msg:String):RuntimeException(msg) fun <T> assertEquals(a:T, b:T, msg:String = "") { if (a != b) throw TestFailedException(msg) } /** Asserts that the expression is `true` with an optional [message]. */ fun assertTrue(actual: Boolean, message: String? = null) { if...
apache-2.0
Kotlin
6cbe67a141df2229914ad90c37cb2c5bdf44b40c
Add track timer.
mikhalchenko-alexander/nirvana-player,mikhalchenko-alexander/nirvana-player,mikhalchenko-alexander/nirvana-player
src/main/kotlin/com/anahoret/nirvana_player/components/Controls.kt
src/main/kotlin/com/anahoret/nirvana_player/components/Controls.kt
package com.anahoret.nirvana_player.components import com.anahoret.nirvana_player.model.Track import kotlinx.html.* import kotlinx.html.dom.create import kotlinx.html.js.onClickFunction import org.w3c.dom.HTMLAudioElement import org.w3c.dom.HTMLElement import org.w3c.dom.events.Event import kotlin.browser.document imp...
package com.anahoret.nirvana_player.components import com.anahoret.nirvana_player.model.Track import kotlinx.html.* import kotlinx.html.dom.create import kotlinx.html.js.onClickFunction import org.w3c.dom.HTMLAudioElement import org.w3c.dom.HTMLElement import kotlin.browser.document import kotlin.dom.clear class Cont...
apache-2.0
Kotlin
5372cac23ab0572fc985ea01a2141ed0278c1d12
Add AdaptiveThrottler.Flags class
world-federation-of-advertisers/cross-media-measurement,world-federation-of-advertisers/cross-media-measurement,world-federation-of-advertisers/cross-media-measurement
src/main/kotlin/org/wfanet/measurement/common/AdaptiveThrottler.kt
src/main/kotlin/org/wfanet/measurement/common/AdaptiveThrottler.kt
package org.wfanet.measurement.common import java.time.Clock import java.time.Duration import java.time.Instant import java.util.ArrayDeque import kotlin.random.Random import kotlinx.coroutines.delay import picocli.CommandLine import kotlin.properties.Delegates /** * Provides an adaptive throttler. * * This thrott...
package org.wfanet.measurement.common import java.time.Clock import java.time.Duration import java.time.Instant import java.util.ArrayDeque import kotlin.random.Random import kotlinx.coroutines.delay /** * Provides an adaptive throttler. * * This throttler tracks the number of attempts and failures over the last [...
apache-2.0
Kotlin
7c0653ccc135ec2bd14d4aa23b642bb90d790724
Simplify NavigationHandler#onBackStackChanged()
dya-tel/TSU-Schedule
app/src/main/kotlin/ru/dyatel/tsuschedule/NavigationHandler.kt
app/src/main/kotlin/ru/dyatel/tsuschedule/NavigationHandler.kt
package ru.dyatel.tsuschedule import android.support.v4.app.FragmentManager import android.view.MenuItem import ru.dyatel.tsuschedule.layout.NavigationDrawerHandler import android.R as AR class NavigationHandler( private val fragmentManager: FragmentManager, private val drawerHandler: NavigationDrawer...
package ru.dyatel.tsuschedule import android.support.v4.app.FragmentManager import android.view.MenuItem import ru.dyatel.tsuschedule.layout.NavigationDrawerHandler import android.R as AR class NavigationHandler( private val fragmentManager: FragmentManager, private val drawerHandler: NavigationDrawer...
mit
Kotlin
7d4c12bc90a7496252d670966918b93e0c00a34a
Use plain redux compose when devtools not present
luxons/seven-wonders,luxons/seven-wonders,luxons/seven-wonders
sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/redux/Store.kt
sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/redux/Store.kt
package org.luxons.sevenwonders.ui.redux import org.luxons.sevenwonders.ui.redux.sagas.SagaManager import redux.RAction import redux.Store import redux.WrapperAction import redux.applyMiddleware import redux.compose import redux.createStore import redux.rEnhancer import kotlin.browser.window val INITIAL_STATE = SwSta...
package org.luxons.sevenwonders.ui.redux import org.luxons.sevenwonders.ui.redux.sagas.SagaManager import redux.RAction import redux.Store import redux.WrapperAction import redux.applyMiddleware import redux.createStore import redux.rEnhancer import kotlin.browser.window val INITIAL_STATE = SwState() private fun <A,...
mit
Kotlin
d2204fd9d7aa0c8939a975bcfe92ea096a5621b4
Update PythonLanguage.kt
Light-Team/ModPE-IDE-Source,Light-Team/ModPE-IDE-Source
languages/language-python/src/main/kotlin/com/brackeys/ui/language/python/PythonLanguage.kt
languages/language-python/src/main/kotlin/com/brackeys/ui/language/python/PythonLanguage.kt
/* * Copyright 2021 Brackeys IDE contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable la...
/* * Copyright 2021 Brackeys IDE contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable la...
apache-2.0
Kotlin
4e3c0dc687c7891d278892a3b7759f09f47dbdbd
fix test data
FHannes/intellij-community,xfournet/intellij-community,asedunov/intellij-community,FHannes/intellij-community,semonte/intellij-community,asedunov/intellij-community,ThiagoGarciaAlves/intellij-community,youdonghai/intellij-community,asedunov/intellij-community,asedunov/intellij-community,apixandru/intellij-community,da1...
platform/platform-tests/testSrc/com/intellij/openapi/editor/colors/EditorColorSchemeTest.kt
platform/platform-tests/testSrc/com/intellij/openapi/editor/colors/EditorColorSchemeTest.kt
/* * Copyright 2000-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...
/* * Copyright 2000-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
c1dd3790a1096931e0475b846f9e6a2a2997cb52
Use equals for mustBe with special case for ArrayList.
epabst/kotlin-showcase,epabst/kotlin-showcase,epabst/kotlin-showcase,epabst/kotlin-showcase
webclient/src/test/kotlin/client/spec.kt
webclient/src/test/kotlin/client/spec.kt
package client import QUnit.module import QUnit.test import java.util.* import kotlin.test.fail /** * Kotlin extensions to QUnit. * @author Eric Pabst (epabst@gmail.com) * Date: 6/16/16 * Time: 5:59 AM */ fun <T> T.mustBe(expected: T) { val equal = equalTo(expected) if (!equal) { fail("expected '...
package client import QUnit.module import QUnit.test /** * Kotlin extensions to QUnit. * @author Eric Pabst (epabst@gmail.com) * Date: 6/16/16 * Time: 5:59 AM */ fun <T> T.mustBe(expected: T) { QUnit.assert.equal(this.toString(), expected.toString()) } fun it(behavior: String, f: () -> Unit) { test(beha...
apache-2.0
Kotlin