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
e9ad11b5e22438b1d4fbd3ddcab2dc5bc2c26f89
Change exception.cause shouldBe beInstanceOf #185
kotlintest/kotlintest,kotlintest/kotlintest,kotlintest/kotlintest,sksamuel/ktest
src/main/kotlin/io/kotlintest/matchers/TypeMatchers.kt
src/main/kotlin/io/kotlintest/matchers/TypeMatchers.kt
package io.kotlintest.matchers import kotlin.reflect.KClass // alias for beInstanceOf fun instanceOf(expected: KClass<*>): Matcher<Any> = beInstanceOf(expected) fun beInstanceOf(expected: KClass<*>): Matcher<Any> = object : Matcher<Any> { override fun test(value: Any): Result = Result( expected.jav...
package io.kotlintest.matchers import kotlin.reflect.KClass fun beInstanceOf(expected: KClass<*>): Matcher<Any> = object : Matcher<Any> { override fun test(value: Any): Result = Result( expected.java.isAssignableFrom(value.javaClass), "$value is not of type $expected, but was ${value.javaC...
mit
Kotlin
1533c48922c5eaab4724326a379904b449dd2aef
simplify Column's API
jayrave/falkon
falkon-core/src/main/kotlin/com/jayrave/falkon/Column.kt
falkon-core/src/main/kotlin/com/jayrave/falkon/Column.kt
package com.jayrave.falkon /** * Column defines how a property of a type corresponds to the column of a SQL table * [T] => Table type * [C] => Column type */ interface Column<T : Any, C> { /** * Name of the SQL column */ val name: String /** * A function to extract the proper...
package com.jayrave.falkon /** * Column defines how a property of a type corresponds to the column of a SQL table * [T] => Table type * [C] => Column type */ interface Column<T : Any, C> { /** * Name of the SQL column */ val name: String /** * True if this column is primary k...
apache-2.0
Kotlin
b4f2da12ea58b2f386f4d49356074c0a38351083
Bring back overscroll in SwipeRefresh for A12+
CarlosEsco/tachiyomi
app/src/main/java/eu/kanade/presentation/components/SwipeRefresh.kt
app/src/main/java/eu/kanade/presentation/components/SwipeRefresh.kt
package eu.kanade.presentation.components import androidx.compose.foundation.layout.PaddingValues import androidx.compose.material3.MaterialTheme import androidx.compose.runtime.Composable import androidx.compose.ui.unit.Dp import androidx.compose.ui.unit.dp import com.google.accompanist.swiperefresh.SwipeRefreshState...
package eu.kanade.presentation.components import android.os.Build import androidx.compose.foundation.LocalOverscrollConfiguration import androidx.compose.foundation.layout.PaddingValues import androidx.compose.material3.MaterialTheme import androidx.compose.runtime.Composable import androidx.compose.runtime.Compositio...
apache-2.0
Kotlin
ebd94e2fba774518018ecd765ad8bcc4f279d1de
Update ClassificationKtTest.kt
GoogleCloudPlatform/kotlin-samples
vision/test/ClassificationKtTest.kt
vision/test/ClassificationKtTest.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...
// 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...
apache-2.0
Kotlin
7335b6021e12df06a5a4f4c8fcdb1f7197b67b6b
make ViewLifecycleLazy implementation private and make it implement LifecycleEventObserver to save an object allocation
cbeyls/fosdem-companion-android
app/src/main/java/be/digitalia/fosdem/utils/FragmentExt.kt
app/src/main/java/be/digitalia/fosdem/utils/FragmentExt.kt
package be.digitalia.fosdem.utils import androidx.fragment.app.Fragment import androidx.lifecycle.Lifecycle import androidx.lifecycle.LifecycleEventObserver import androidx.lifecycle.LifecycleOwner /** * A Lazy implementation which can only be called when a fragment has a view * and will automatically clear the val...
package be.digitalia.fosdem.utils import androidx.fragment.app.Fragment import androidx.lifecycle.Lifecycle import androidx.lifecycle.LifecycleEventObserver /** * A Lazy implementation which can only be called when a fragment has a view * and will automatically clear the value when the view hierarchy gets destroyed...
apache-2.0
Kotlin
9dbfb316c5f0a93ea318782eddb015d5d5013e65
add "CLI smoke tests" config
kadirahq/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/react-storybook,kadirahq/react-storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook
.teamcity/OpenSourceProjects_Storybook/buildTypes/OpenSourceProjects_Storybook_CliSmokeTest.kt
.teamcity/OpenSourceProjects_Storybook/buildTypes/OpenSourceProjects_Storybook_CliSmokeTest.kt
package OpenSourceProjects_Storybook.buildTypes import jetbrains.buildServer.configs.kotlin.v2017_2.* import jetbrains.buildServer.configs.kotlin.v2017_2.buildFeatures.commitStatusPublisher import jetbrains.buildServer.configs.kotlin.v2017_2.buildSteps.script import jetbrains.buildServer.configs.kotlin.v2017_2.trigger...
mit
Kotlin
e34e5e940d2548f0c2a02bda43585b4af363d07a
Fix main version command test
Flank/flank,Flank/flank,Flank/flank,Flank/flank,Flank/flank,Flank/flank,Flank/flank,Flank/flank,Flank/flank,Flank/flank
test_runner/src/test/kotlin/ftl/MainTest.kt
test_runner/src/test/kotlin/ftl/MainTest.kt
package ftl import com.google.common.truth.Truth.assertThat import ftl.test.util.FlankTestRunner import org.junit.Rule import org.junit.Test import org.junit.contrib.java.lang.system.SystemErrRule import org.junit.contrib.java.lang.system.SystemOutRule import org.junit.runner.RunWith import picocli.CommandLine @RunWi...
package ftl import com.google.common.truth.Truth.assertThat import ftl.test.util.FlankTestRunner import org.junit.Rule import org.junit.Test import org.junit.contrib.java.lang.system.SystemErrRule import org.junit.contrib.java.lang.system.SystemOutRule import org.junit.runner.RunWith import picocli.CommandLine @RunWi...
apache-2.0
Kotlin
154b6630376716273c4f7bd14924060ae1ed28e2
implement generics chapter
chrisdoc/kotlin-koans,chrisdoc/kotlin-koans
src/vi_generics/_41_GenericFunctions.kt
src/vi_generics/_41_GenericFunctions.kt
package vi_generics import util.TODO import java.util.* import kotlin.collections.ArrayList fun task41(): Nothing = TODO( """ Task41. Add a 'partitionTo' function that splits a collection into two collections according to a predicate. Uncomment the commented invocations of 'partitionTo' be...
package vi_generics import util.TODO import java.util.* fun task41(): Nothing = TODO( """ Task41. Add a 'partitionTo' function that splits a collection into two collections according to a predicate. Uncomment the commented invocations of 'partitionTo' below and make them compile. ...
mit
Kotlin
accf52db6e160dadcf2fe169e19bcc01488bb6e5
Fix cinterop numerical benchmark
JetBrains/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native
performance/numerical/src/main/kotlin-native/launcher.kt
performance/numerical/src/main/kotlin-native/launcher.kt
/* * Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the licenses/LICENSE.txt file. */ import org.jetbrains.benchmarksLauncher.* actual class NumericalLauncher : Launcher() { override val ben...
/* * Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the licenses/LICENSE.txt file. */ import org.jetbrains.benchmarksLauncher.* actual class NumericalLauncher : Launcher() { override val ben...
apache-2.0
Kotlin
0191414463d028edb51672c76a0320e6284622d8
set java version
ysden123/poc,ysden123/poc,ysden123/poc,ysden123/poc,ysden123/poc,ysden123/poc
websocket-ex1/app/build.gradle.kts
websocket-ex1/app/build.gradle.kts
plugins { // Apply the application plugin to add support for building a CLI application in Java. application } repositories { // mavenCentral() // Use JCenter for resolving dependencies. jcenter() } val vertxVersion = "4.0.2" val log4j2Version = "2.14.0" val slf4jVersion = "1.7.30" dependencies { ...
plugins { // Apply the application plugin to add support for building a CLI application in Java. application } repositories { // mavenCentral() // Use JCenter for resolving dependencies. jcenter() } val vertxVersion = "4.0.2" val log4j2Version = "2.14.0" val slf4jVersion = "1.7.30" dependencies { ...
mit
Kotlin
88e17bccd55a8acf8570f68cd6d6647ecc49ba97
Update KDocs for MatchingDeclarationName
arturbosch/detekt,rock3r/detekt,Mauin/detekt,rock3r/detekt,Mauin/detekt,Mauin/detekt,Mauin/detekt,arturbosch/detekt,rock3r/detekt,arturbosch/detekt
detekt-rules/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/style/MatchingDeclarationName.kt
detekt-rules/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/style/MatchingDeclarationName.kt
package io.gitlab.arturbosch.detekt.rules.style import io.gitlab.arturbosch.detekt.api.CodeSmell import io.gitlab.arturbosch.detekt.api.Config import io.gitlab.arturbosch.detekt.api.Debt import io.gitlab.arturbosch.detekt.api.Entity import io.gitlab.arturbosch.detekt.api.Issue import io.gitlab.arturbosch.detekt.api.Ru...
package io.gitlab.arturbosch.detekt.rules.style import io.gitlab.arturbosch.detekt.api.CodeSmell import io.gitlab.arturbosch.detekt.api.Config import io.gitlab.arturbosch.detekt.api.Debt import io.gitlab.arturbosch.detekt.api.Entity import io.gitlab.arturbosch.detekt.api.Issue import io.gitlab.arturbosch.detekt.api.Ru...
apache-2.0
Kotlin
68b7078b911b4d9b639e131a256d8e23b6a713b0
Add tests for PY-9061
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...
python/testSrc/com/jetbrains/python/PyExternalDocTest.kt
python/testSrc/com/jetbrains/python/PyExternalDocTest.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.jetbrains.python import com.intellij.codeInsight.documentation.DocumentationManager import com.intellij.lang.documentation.CompositeDocumentationProvider import com.i...
apache-2.0
Kotlin
a8c719115312ac5658f33345e7770f762670752f
Hide component1() destructuring from Java consumers (#30)
gojuno/koptional,gojuno/koptional,gojuno/koptional
koptional/src/main/kotlin/com/gojuno/koptional/Optional.kt
koptional/src/main/kotlin/com/gojuno/koptional/Optional.kt
package com.gojuno.koptional sealed class Optional<out T : Any> { /** * Converts [Optional] to either its non-null value if it's [Some] or `null` if it's [None]. */ abstract fun toNullable(): T? /** * Unwraps this optional into the value it holds or null if there is no value held. */ ...
package com.gojuno.koptional sealed class Optional<out T : Any> { /** * Converts [Optional] to either its non-null value if it's [Some] or `null` if it's [None]. */ abstract fun toNullable(): T? /** * Unwraps this optional into the value it holds or null if there is no value held. */ ...
apache-2.0
Kotlin
6480e82b82e4f30fba5fce80f8d4c0e0e4179123
Update build.gradle.kts
awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,a...
kotlin/services/redshift/build.gradle.kts
kotlin/services/redshift/build.gradle.kts
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { kotlin("jvm") version "1.5.31" application } group = "me.scmacdon" version = "1.0-SNAPSHOT" repositories { mavenCentral() } dependencies { implementation("aws.sdk.kotlin:redshift:0.9.4-beta") testImplementation("org.junit.jupiter:j...
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { kotlin("jvm") version "1.5.31" application } group = "me.scmacdon" version = "1.0-SNAPSHOT" repositories { mavenCentral() } dependencies { implementation("aws.sdk.kotlin:redshift:0.9.0-alpha") testImplementation("org.junit.jupiter:...
apache-2.0
Kotlin
378ff04ce7b3e63cf515bd61d1435c1512eea9a7
change to type name
AleksanderBrzozowski/ticket-booking,AleksanderBrzozowski/ticket-booking,AleksanderBrzozowski/ticket-booking
src/main/kotlin/com/maly/domain/building/BuildingService.kt
src/main/kotlin/com/maly/domain/building/BuildingService.kt
package com.maly.domain.building import com.maly.presentation.error.BusinessException import org.springframework.stereotype.Service /** * @author Aleksander Brzozowski */ @Service class BuildingService(private val buildingRepository: BuildingRepository, private val buildingTypeRepository: Bui...
package com.maly.domain.building import com.maly.presentation.error.BusinessException import org.springframework.stereotype.Service /** * @author Aleksander Brzozowski */ @Service class BuildingService(private val buildingRepository: BuildingRepository, private val buildingTypeRepository: Bui...
mit
Kotlin
d913fe0ccd6fb1452bd52135eacc5e48d692c59c
Fix falling out of scope on preference listener
pyamsoft/pydroid
util/src/main/java/com/pyamsoft/pydroid/util/Preferences.kt
util/src/main/java/com/pyamsoft/pydroid/util/Preferences.kt
/* * Copyright 2020 Peter Kenji Yamanaka * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
/* * Copyright 2020 Peter Kenji Yamanaka * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
apache-2.0
Kotlin
e4a6d2b7c6a225adefc30c168dd4a8600be4000a
Add comment handler plugin implementation
wordpress-mobile/AztecEditor-Android,wordpress-mobile/AztecEditor-Android,wordpress-mobile/AztecEditor-Android
wordpress-comments/src/main/java/WordPressCommentsPlugin.kt
wordpress-comments/src/main/java/WordPressCommentsPlugin.kt
import android.content.Context import android.text.Editable import android.text.Spannable import org.wordpress.aztec.Constants import org.wordpress.aztec.R import org.wordpress.aztec.plugins.IAztecPlugin import org.wordpress.aztec.plugins.html2visual.IAztecCommentHandler import org.wordpress.aztec.plugins.wpcomments.sp...
mpl-2.0
Kotlin
8ac739ab98e85be13ff3ef7a7fc94d23835a86e3
Bump modb-anisearch from 1.0.6 to 1.0.7
manami-project/manami,manami-project/manami
manami-app/build.gradle.kts
manami-app/build.gradle.kts
dependencies { api("io.github.manamiproject:modb-core:7.0.2") api("io.github.manamiproject:modb-db-parser:3.1.2") api("org.slf4j:slf4j-api:1.7.32") implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2-native-mt") implementation("io.github.manamiproject:modb-anidb:3.0.7") implemen...
dependencies { api("io.github.manamiproject:modb-core:7.0.2") api("io.github.manamiproject:modb-db-parser:3.1.2") api("org.slf4j:slf4j-api:1.7.32") implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2-native-mt") implementation("io.github.manamiproject:modb-anidb:3.0.7") implemen...
agpl-3.0
Kotlin
a17ed6f3c5eafe8662a826dc30f79cc89ac9372a
reformat ScheduleComponent
squanchy-dev/squanchy-android,squanchy-dev/squanchy-android,squanchy-dev/squanchy-android
app/src/main/java/net/squanchy/schedule/ScheduleComponent.kt
app/src/main/java/net/squanchy/schedule/ScheduleComponent.kt
package net.squanchy.schedule import android.support.v7.app.AppCompatActivity import dagger.Component import net.squanchy.analytics.Analytics import net.squanchy.injection.ActivityContextModule import net.squanchy.injection.ActivityLifecycle import net.squanchy.injection.ApplicationComponent import net.squanchy.inject...
package net.squanchy.schedule import android.support.v7.app.AppCompatActivity import dagger.Component import net.squanchy.analytics.Analytics import net.squanchy.injection.ActivityContextModule import net.squanchy.injection.ActivityLifecycle import net.squanchy.injection.ApplicationComponent import net.squanchy.inject...
apache-2.0
Kotlin
2c3606086c32ec252cc236e43dab49ca8c5674f0
update to v1.1.0 of canonical data
exercism/xkotlin,exercism/xkotlin
exercises/pangram/src/test/kotlin/PangramTest.kt
exercises/pangram/src/test/kotlin/PangramTest.kt
import org.junit.Test import org.junit.Ignore import kotlin.test.assertFalse import kotlin.test.assertTrue /* * version: 1.1.0 */ class PangramTest { @Test fun emptySentence() { assertFalse(Pangrams.isPangram("")) } @Ignore @Test fun lowercasePangram() { assertTrue(Pangrams....
import org.junit.Test import org.junit.Ignore import kotlin.test.assertFalse import kotlin.test.assertTrue class PangramTest { @Test fun emptySentence() { assertFalse(Pangrams.isPangram("")) } @Ignore @Test fun lowercasePangram() { assertTrue(Pangrams.isPangram("the quick bro...
mit
Kotlin
ddf2ea4ad28dc08a50cc0eab976b04d84b9c872a
Make the IdPlugin get the subtitle files
clappr/clappr-android,clappr/clappr-android
clappr/src/main/kotlin/io/clappr/player/base/Options.kt
clappr/src/main/kotlin/io/clappr/player/base/Options.kt
package io.clappr.player.base import java.util.* class Options( var source: String? = null, var mimeType: String? = null, @Deprecated(message = "Autoplay functionality will be removed from Player on June/15/2017", level = DeprecationLevel.WARNING) var autoPlay: Boolean ...
package io.clappr.player.base import java.util.* class Options( var source: String? = null, var mimeType: String? = null, @Deprecated(message = "Autoplay functionality will be removed from Player on June/15/2017", level = DeprecationLevel.WARNING) var autoPlay: Boolean ...
bsd-3-clause
Kotlin
8e8fbdc186e962db09dfc6f4231e00f48bda35ed
bump grpcVersion from 1.47.0 to 1.48.1 (via #803)
allure-framework/allure-java,allure-framework/allure-java
allure-grpc/build.gradle.kts
allure-grpc/build.gradle.kts
import com.google.protobuf.gradle.* plugins { id("com.google.protobuf") } description = "Allure gRPC Integration" val agent: Configuration by configurations.creating val grpcVersion = "1.48.1" val protobufVersion = "3.21.2" dependencies { agent("org.aspectj:aspectjweaver") api(project(":allure-attachme...
import com.google.protobuf.gradle.* plugins { id("com.google.protobuf") } description = "Allure gRPC Integration" val agent: Configuration by configurations.creating val grpcVersion = "1.47.0" val protobufVersion = "3.21.2" dependencies { agent("org.aspectj:aspectjweaver") api(project(":allure-attachme...
apache-2.0
Kotlin
3dd97a486d9eac09acb9a93651c6b266dde84566
Fix too many arguments for `public open fun activate(): Unit` defined in `com.intellij.ui.IconManager`
YiiGuxing/TranslationPlugin,YiiGuxing/TranslationPlugin
src/test/kotlin/cn/yiiguxing/plugin/translate/ui/UiTest.kt
src/test/kotlin/cn/yiiguxing/plugin/translate/ui/UiTest.kt
package cn.yiiguxing.plugin.translate.ui import com.intellij.ide.ui.laf.IntelliJLaf import com.intellij.ide.ui.laf.darcula.DarculaLaf import com.intellij.openapi.util.IconLoader import com.intellij.ui.IconManager import com.intellij.util.ui.JBDimension import java.awt.Container import javax.swing.JFrame import javax.s...
package cn.yiiguxing.plugin.translate.ui import com.intellij.ide.ui.laf.IntelliJLaf import com.intellij.ide.ui.laf.darcula.DarculaLaf import com.intellij.openapi.util.IconLoader import com.intellij.ui.IconManager import com.intellij.util.ui.JBDimension import java.awt.Container import javax.swing.JFrame import javax.s...
mit
Kotlin
80f4f27a2962f1b8e6277a416eef24e48fba5219
add license to sample class
AlmasB/FXGL,AlmasB/FXGL,AlmasB/FXGL,AlmasB/FXGL
fxgl-samples/src/main/kotlin/sandbox/view/PropertyMapTest.kt
fxgl-samples/src/main/kotlin/sandbox/view/PropertyMapTest.kt
/* * FXGL - JavaFX Game Library. The MIT License (MIT). * Copyright (c) AlmasB (almaslvl@gmail.com). * See LICENSE for details. */ package sandbox.view import com.almasb.fxgl.app.GameApplication import com.almasb.fxgl.app.GameSettings import com.almasb.fxgl.dsl.FXGL import com.almasb.fxgl.dsl.getGameScene import ...
package sandbox.view import com.almasb.fxgl.app.GameApplication import com.almasb.fxgl.app.GameSettings import com.almasb.fxgl.dsl.FXGL import com.almasb.fxgl.dsl.getGameScene import javafx.scene.paint.Color class PropertyMapTest : GameApplication() { override fun initSettings(settings: GameSettings) { s...
mit
Kotlin
4ee123a59dfd693e70615676c2843abef07d3fac
Add private messaging plugin
apollo-rsps/apollo,apollo-rsps/apollo,apollo-rsps/apollo
game/src/plugins/chat/private-messaging/messaging.plugin.kts
game/src/plugins/chat/private-messaging/messaging.plugin.kts
import org.apollo.game.message.impl.ForwardPrivateChatMessage import org.apollo.game.message.impl.PrivateChatMessage import org.apollo.game.model.entity.Player import org.apollo.game.model.entity.setting.PrivacyState.OFF import org.apollo.game.model.entity.setting.PrivacyState.ON on { PrivateChatMessage::class } ...
isc
Kotlin
dcacbce28ed5d24e2b241d35b7a2284ea7a64c87
Add tests for the XDM item types.
rhdunn/xquery-intellij-plugin,rhdunn/xquery-intellij-plugin
src/test/java/uk/co/reecedunn/intellij/plugin/xdm/tests/ItemTypes.kt
src/test/java/uk/co/reecedunn/intellij/plugin/xdm/tests/ItemTypes.kt
/* * Copyright (C) 2018 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
ad443790748e0e29b82c35ca6bc3718f541ef5d6
Make val to var
shiraji/permissions-dispatcher-plugin,shiraji/permissions-dispatcher-plugin,shiraji/permissions-dispatcher-plugin
src/main/kotlin/com/github/shiraji/permissionsdispatcherplugin/models/GeneratePMCodeModel.kt
src/main/kotlin/com/github/shiraji/permissionsdispatcherplugin/models/GeneratePMCodeModel.kt
package com.github.shiraji.permissionsdispatcherplugin.models import com.intellij.openapi.project.Project import com.intellij.psi.JavaPsiFacade import com.intellij.psi.PsiClass import com.intellij.psi.search.GlobalSearchScope class GeneratePMCodeModel(project: Project) { private val activityPsiClass: PsiClass? =...
package com.github.shiraji.permissionsdispatcherplugin.models import com.intellij.openapi.project.Project import com.intellij.psi.JavaPsiFacade import com.intellij.psi.PsiClass import com.intellij.psi.search.GlobalSearchScope class GeneratePMCodeModel(project: Project) { private val activityPsiClass: PsiClass? =...
apache-2.0
Kotlin
bccd958c050cf562f07a00070492156473574811
refactor #335 Remove redundant SAM-constructor.
toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt
app/src/main/java/jp/toastkid/yobidashi/menu/MenuAdapter.kt
app/src/main/java/jp/toastkid/yobidashi/menu/MenuAdapter.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
d3596858cfc101c68c94d6affc179977bfe68580
Update recorder version: 4
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/log-events/src/main/kotlin/com/intellij/stats/completion/events/LogEvent.kt
plugins/stats-collector/log-events/src/main/kotlin/com/intellij/stats/completion/events/LogEvent.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
58311e8d35c01f8776d752aefd6f1185e2a96d52
Test LongRanges
MarkusAmshove/Kluent,MarkusAmshove/Kluent
src/test/kotlin/org/amshove/kluent/tests/backtickassertions/numerical/ShouldBeInRangeTests.kt
src/test/kotlin/org/amshove/kluent/tests/backtickassertions/numerical/ShouldBeInRangeTests.kt
package org.amshove.kluent.tests.backtickassertions.numerical import org.amshove.kluent.`should be in range` import org.jetbrains.spek.api.Spek import kotlin.test.assertFails class ShouldBeInRangeTests : Spek({ given("the should be in range method") { on("checking a value within the range") { ...
package org.amshove.kluent.tests.backtickassertions.numerical import org.amshove.kluent.`should be in range` import org.jetbrains.spek.api.Spek import kotlin.test.assertFails class ShouldBeInRangeTests : Spek({ given("the should be in range method") { on("checking a value within the range") { ...
mit
Kotlin
db35a0760ee880cd2b9a41fb6a5b25dd93f6b0e8
Upgrade Kotlin DSL to 1.0-rc-12
blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,lsmaira/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,lsmaira/gradle,robinverduijn/gradle,lsmaira/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,robinverd...
buildSrc/subprojects/configuration/src/main/kotlin/org/gradle/gradlebuild/build-environment.kt
buildSrc/subprojects/configuration/src/main/kotlin/org/gradle/gradlebuild/build-environment.kt
package org.gradle.gradlebuild import org.gradle.api.JavaVersion import org.gradle.internal.os.OperatingSystem object BuildEnvironment { val isCiServer = "CI" in System.getenv() val gradleKotlinDslVersion = "1.0-rc-12" val jvm = org.gradle.internal.jvm.Jvm.current() val javaVersion = JavaVersion.curr...
package org.gradle.gradlebuild import org.gradle.api.JavaVersion import org.gradle.internal.os.OperatingSystem object BuildEnvironment { val isCiServer = "CI" in System.getenv() val gradleKotlinDslVersion = "1.0-rc-11" val jvm = org.gradle.internal.jvm.Jvm.current() val javaVersion = JavaVersion.curr...
apache-2.0
Kotlin
78295de7c1e800b2f721f1dcab7bfd1c69c52f98
add InvocationLambdaFunction test
http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k
http4k-serverless/lambda/src/test/kotlin/org/http4k/serverless/InvocationLambdaFunctionTest.kt
http4k-serverless/lambda/src/test/kotlin/org/http4k/serverless/InvocationLambdaFunctionTest.kt
package org.http4k.serverless import com.natpryce.hamkrest.assertion.assertThat import com.natpryce.hamkrest.equalTo import org.http4k.core.Method.POST import org.http4k.core.Request import org.http4k.core.Response import org.http4k.core.Status.Companion.OK import org.junit.jupiter.api.Test class InvocationLambdaFunc...
apache-2.0
Kotlin
8343d101bf37aeedadff6112d3c7ca4f5dbcd793
refactor Add comments to Quotation.
toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Jitte,toastkidjp/Yobidashi_kt
app/src/main/java/jp/toastkid/yobidashi/editor/Quotation.kt
app/src/main/java/jp/toastkid/yobidashi/editor/Quotation.kt
package jp.toastkid.yobidashi.editor import android.text.TextUtils /** * Converter of quotation style(Markdown). * * @author toastkidjp */ object Quotation { /** * Line separator. */ private val lineSeparator = System.getProperty("line.separator") /** * Invoke quotation function. ...
package jp.toastkid.yobidashi.editor import android.text.TextUtils /** * Converter of quotation style(Markdown). * * @author toastkidjp */ object Quotation { private val lineSeparator = System.getProperty("line.separator") operator fun invoke(str: CharSequence?): CharSequence? { if (TextUtils.is...
epl-1.0
Kotlin
8beae85f53cedef7536ad7ba4f5c062892a5954e
refactor #335 Move lambda argument out of parentheses.
toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt
app/src/main/java/jp/toastkid/yobidashi/menu/MenuAdapter.kt
app/src/main/java/jp/toastkid/yobidashi/menu/MenuAdapter.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
638cc6f33a5ed3cf50b5c50ae3c7501b7cb19ef2
refactor #605 Add test case.
toastkidjp/Jitte,toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt
app/src/test/java/jp/toastkid/yobidashi/libs/ToasterTest.kt
app/src/test/java/jp/toastkid/yobidashi/libs/ToasterTest.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
d858f8a0e566f25a60421c618ae9d75bbb215fab
Simplify by extending PsiTreeElementBase
Undin/intellij-rust,intellij-rust/intellij-rust,anton-okolelov/intellij-rust,anton-okolelov/intellij-rust,Turbo87/intellij-rust,d9n/intellij-rust,alygin/intellij-rust,d9n/intellij-rust,Undin/intellij-rust,ujpv/intellij-rust,intellij-rust/intellij-rust,ThoseGrapefruits/intellij-rust,ThoseGrapefruits/intellij-rust,himiko...
src/org/rust/lang/structure/RustStructureViewElement.kt
src/org/rust/lang/structure/RustStructureViewElement.kt
package org.rust.lang.structure import com.intellij.ide.structureView.StructureViewTreeElement import com.intellij.ide.structureView.impl.common.PsiTreeElementBase import com.intellij.psi.NavigatablePsiElement class RustStructureViewElement(element: NavigatablePsiElement) : PsiTreeElementBase<NavigatablePsiElement>(e...
package org.rust.lang.structure import com.intellij.ide.structureView.StructureViewTreeElement import com.intellij.ide.util.treeView.smartTree.TreeElement import com.intellij.navigation.ItemPresentation import com.intellij.psi.NavigatablePsiElement import org.rust.lang.core.psi.impl.RustNamedElementImpl import javax.s...
mit
Kotlin
ca19588870c1a837aa501cd1857da3e71194f1ef
Add initial tests for Builders.
nimakro/tornadofx,edvin/tornadofx,genobis/tornadofx,nimakro/tornadofx,edvin/tornadofx,genobis/tornadofx
src/test/kotlin/tornadofx/BuildersTest.kt
src/test/kotlin/tornadofx/BuildersTest.kt
package tornadofx import javafx.scene.layout.StackPane import javafx.scene.text.Text import javafx.stage.Stage import org.hamcrest.Matchers import org.junit.Before import org.junit.Test import org.testfx.api.FxToolkit import org.testfx.api.FxAssert.verifyThat import org.testfx.matcher.base.NodeMatchers class Builders...
apache-2.0
Kotlin
e83322c5a16db34f1d7bcb8eb6fd1a69f39ccede
Add update method that enable only Activity or Fragment
shiraji/permissions-dispatcher-plugin,shiraji/permissions-dispatcher-plugin,shiraji/permissions-dispatcher-plugin
src/main/kotlin/com/github/shiraji/permissionsdispatcherplugin/actions/GeneratePMCodeAction.kt
src/main/kotlin/com/github/shiraji/permissionsdispatcherplugin/actions/GeneratePMCodeAction.kt
package com.github.shiraji.permissionsdispatcherplugin.actions import com.github.shiraji.permissionsdispatcherplugin.models.GeneratePMCodeModel import com.intellij.codeInsight.CodeInsightActionHandler import com.intellij.codeInsight.actions.CodeInsightAction import com.intellij.openapi.actionSystem.AnActionEvent impor...
package com.github.shiraji.permissionsdispatcherplugin.actions import com.github.shiraji.permissionsdispatcherplugin.models.GeneratePMCodeModel import com.intellij.codeInsight.CodeInsightActionHandler import com.intellij.codeInsight.actions.CodeInsightAction import com.intellij.openapi.editor.Editor import com.intelli...
apache-2.0
Kotlin
0ce267df698b5f677a85977191b3ce633dd45278
update database deletion
dhis2/dhis2-android-sdk,dhis2/dhis2-android-sdk,dhis2/dhis2-android-sdk
core/src/main/java/org/hisp/dhis/android/core/arch/db/access/internal/DatabaseDeletionHelper.kt
core/src/main/java/org/hisp/dhis/android/core/arch/db/access/internal/DatabaseDeletionHelper.kt
/* * Copyright (c) 2004-2021, University of Oslo * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this * list o...
/* * Copyright (c) 2004-2021, University of Oslo * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this * list o...
bsd-3-clause
Kotlin
34575b051e13529230be64f87ad8cee225b0bd64
Improve generateViewId() KDoc
LouisCAD/Splitties,LouisCAD/Splitties,LouisCAD/Splitties
views/src/main/java/splitties/views/ViewIdsGenerator.kt
views/src/main/java/splitties/views/ViewIdsGenerator.kt
/* * Copyright (c) 2018. Louis Cognault Ayeva Derman * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
/* * Copyright (c) 2018. Louis Cognault Ayeva Derman * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
apache-2.0
Kotlin
54d57e0c1fff22fe1d72c762f2bdbf01995395ca
Check for undefined `window.addEventListener` when choosing default coroutine dispatcher.
Kotlin/kotlinx.coroutines,Kotlin/kotlinx.coroutines,Kotlin/kotlinx.coroutines,Kotlin/kotlinx.coroutines,Kotlin/kotlinx.coroutines
js/kotlinx-coroutines-core-js/src/main/kotlin/kotlinx/coroutines/experimental/CoroutineContext.kt
js/kotlinx-coroutines-core-js/src/main/kotlin/kotlinx/coroutines/experimental/CoroutineContext.kt
/* * Copyright 2016-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 2016-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
a2f481ed26cc49ab901778fccfd55db30aebaecc
Fix assigning single element to named vararg parameter. (#310)
JetBrains/spek
spek-extensions/data-driven/jvm/src/test/kotlin/org/spekframework/spek2/data_driven/DataDrivenSpec.kt
spek-extensions/data-driven/jvm/src/test/kotlin/org/spekframework/spek2/data_driven/DataDrivenSpec.kt
package org.spekframework.spek2.data_driven import org.spekframework.spek2.Spek import kotlin.test.assertEquals class DataDrivenSpec : Spek({ given("a calculator") { val calculator = Calculator() val data = arrayOf( data(4, 2, expected = 6), data(1, 3, expected = 4), ...
package org.spekframework.spek2.data_driven import org.spekframework.spek2.Spek import kotlin.test.assertEquals class DataDrivenSpec : Spek({ given("a calculator") { val calculator = Calculator() val data = arrayOf( data(4, 2, expected = 6), data(1, 3, expected = 4), ...
bsd-3-clause
Kotlin
b19a220077fe9e8dee6f634087d99597ff28270e
Change default user display name to username #69
carmenlau/chat-SDK-Android,carmenlau/chat-SDK-Android,carmenlau/chat-SDK-Android,carmenlau/chat-SDK-Android
chat/src/main/java/io/skygear/plugins/chat/ui/model/User.kt
chat/src/main/java/io/skygear/plugins/chat/ui/model/User.kt
package io.skygear.plugins.chat.ui.model import com.stfalcon.chatkit.commons.models.IUser import org.json.JSONException import io.skygear.plugins.chat.ChatUser import io.skygear.plugins.chat.ui.utils.AvatarBuilder import io.skygear.skygear.Record class User : IUser { companion object { /** * Th...
package io.skygear.plugins.chat.ui.model import com.stfalcon.chatkit.commons.models.IUser import org.json.JSONException import io.skygear.plugins.chat.ChatUser import io.skygear.plugins.chat.ui.utils.AvatarBuilder import io.skygear.skygear.Record class User : IUser { companion object { /** * Th...
apache-2.0
Kotlin
23e85c648c2abf54665c4ae0456569ad1052638b
Remove e.grdev.net usage
blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpira...
.teamcity/src/main/kotlin/configurations/FunctionalTest.kt
.teamcity/src/main/kotlin/configurations/FunctionalTest.kt
package configurations import common.functionalTestExtraParameters import jetbrains.buildServer.configs.kotlin.v2019_2.BuildSteps import model.CIBuildModel import model.Stage import model.TestCoverage import model.TestType class FunctionalTest( model: CIBuildModel, id: String, name: String, descriptio...
package configurations import common.functionalTestExtraParameters import jetbrains.buildServer.configs.kotlin.v2019_2.BuildSteps import model.CIBuildModel import model.Stage import model.TestCoverage import model.TestType class FunctionalTest( model: CIBuildModel, id: String, name: String, descriptio...
apache-2.0
Kotlin
1df0db0a0beeedbffd1a1d54ad718d1aee7bde2c
remove unnecessary observable usage in PlantAndGardenPlantingsViewModel
android/sunflower
app/src/main/java/com/google/samples/apps/sunflower/viewmodels/PlantAndGardenPlantingsViewModel.kt
app/src/main/java/com/google/samples/apps/sunflower/viewmodels/PlantAndGardenPlantingsViewModel.kt
/* * Copyright 2018 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
/* * Copyright 2018 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
apache-2.0
Kotlin
64c257c36f22724123ec096f2f5faed38d97c473
Remove email from BasicUserView as there seems to be a reason it's not in there (tests fail)
BreakOutEvent/breakout-backend,BreakOutEvent/breakout-backend,BreakOutEvent/breakout-backend
src/main/java/backend/view/user/BasicUserView.kt
src/main/java/backend/view/user/BasicUserView.kt
package backend.view.user import backend.model.user.Participant import backend.model.user.User import backend.view.MediaView import com.fasterxml.jackson.annotation.JsonIgnore import org.hibernate.validator.constraints.SafeHtml import org.hibernate.validator.constraints.SafeHtml.WhiteListType.NONE import javax.validat...
package backend.view.user import backend.model.user.Participant import backend.model.user.User import backend.view.MediaView import com.fasterxml.jackson.annotation.JsonIgnore import org.hibernate.validator.constraints.SafeHtml import org.hibernate.validator.constraints.SafeHtml.WhiteListType.NONE import javax.validat...
agpl-3.0
Kotlin
7af4601607e6fb458a0102194e0ad75eb88fdb36
Add missing constructor documentation
FWDekker/intellij-randomness,FWDekker/intellij-randomness
src/main/kotlin/com/fwdekker/randomness/ui/JSpinnerRange.kt
src/main/kotlin/com/fwdekker/randomness/ui/JSpinnerRange.kt
package com.fwdekker.randomness.ui import com.intellij.openapi.ui.ValidationInfo import javax.swing.JSpinner /** * A container for two [JSpinner]s that indicate a range of values. * * @param min the `JSpinner` that represents the minimum value * @param max the `JSpinner` that represents the maximum value * @par...
package com.fwdekker.randomness.ui import com.intellij.openapi.ui.ValidationInfo import javax.swing.JSpinner /** * A container for two [JSpinner]s that indicate a range of values. * * @param min the `JSpinner` that represents the minimum value * @param max the `JSpinner` that represents the maximum value * @par...
mit
Kotlin
d16db040b4482ba402b6d13ee494a210fc48624d
Create a constructor for Assignment taking Cursor as an argument
FarbodSalamat-Zadeh/TimetableApp,FarbodSalamat-Zadeh/TimetableApp
app/src/main/java/com/satsumasoftware/timetable/framework/Assignment.kt
app/src/main/java/com/satsumasoftware/timetable/framework/Assignment.kt
package com.satsumasoftware.timetable.framework import android.database.Cursor import com.satsumasoftware.timetable.db.AssignmentsSchema import org.threeten.bp.LocalDate class Assignment(val id: Int, val classId: Int, val title: String, val detail: String, val dueDate: LocalDate, val completionProgre...
package com.satsumasoftware.timetable.framework import org.threeten.bp.LocalDate class Assignment(val id: Int, val classId: Int, val title: String, val detail: String, val dueDate: LocalDate, val completionProgress: Int)
apache-2.0
Kotlin
5676934208804a772844372bded689ecbb843dbc
Add basic graph example
aquatir/remember_java_api,aquatir/remember_java_api,aquatir/remember_java_api,aquatir/remember_java_api
code-sample-kotlin/code-sample-kotlin-basics/src/main/kotlin/codesample/kotlin/sandbox/algorithms/graphs/Graph.kt
code-sample-kotlin/code-sample-kotlin-basics/src/main/kotlin/codesample/kotlin/sandbox/algorithms/graphs/Graph.kt
package codesample.kotlin.sandbox.algorithms.graphs class Graph(private val size: Int) { private val adj: List<MutableList<Int>> = List(size) { mutableListOf<Int>() } fun addEdge(one: Int, two: Int): Unit { adj[one].add(two) adj[two].add(one) } fun adj(verIndex: Int): MutableList<Int>...
mit
Kotlin
24971c15eb0b8902d47b406cf8207025dbae8f05
Update datacapture/src/main/java/com/google/android/fhir/datacapture/validation/QuestionnaireItemValidator.kt
google/android-fhir,google/android-fhir
datacapture/src/main/java/com/google/android/fhir/datacapture/validation/QuestionnaireItemValidator.kt
datacapture/src/main/java/com/google/android/fhir/datacapture/validation/QuestionnaireItemValidator.kt
package com.google.android.fhir.datacapture.validation import com.google.fhir.r4.core.Questionnaire import com.google.fhir.r4.core.QuestionnaireResponse interface QuestionnaireItemValidator { /** * Validates [questionnaireResponseItemBuilder] contains valid answer(s) to [questionnaireItem]. */ fun ...
package com.google.android.fhir.datacapture.validation import com.google.fhir.r4.core.Questionnaire import com.google.fhir.r4.core.QuestionnaireResponse interface QuestionnaireItemValidator { /** * Validates the input data as per the ViewHolder and returns the result and its resultant error messages (if any...
apache-2.0
Kotlin
363eacd89678bd7041151b4a86e18d95c5e48ecd
Update KDoc comments
tmurakami/mockito4k,tmurakami/mockito4k
src/main/kotlin/com/github/tmurakami/mockito4k/mockito.kt
src/main/kotlin/com/github/tmurakami/mockito4k/mockito.kt
package com.github.tmurakami.mockito4k import org.mockito.MockSettings import org.mockito.Mockito import kotlin.reflect.KClass /** * The delegation to [Mockito#mock(Class)](https://javadoc.io/page/org.mockito/mockito-core/latest/org/mockito/Mockito.html#mock&#40;java.lang.Class&#41;). * * @param T the type of mock...
package com.github.tmurakami.mockito4k import org.mockito.MockSettings import org.mockito.Mockito import kotlin.reflect.KClass /** * Creates a mock object without additional mock settings. * * @param T the type of mock * @return the mock object */ inline fun <reified T : Any> mock(): T = Mockito.mock(T::class.ja...
mit
Kotlin
0dede2bc7a66b98c8b1e8d42cb1b9e0df197c2d5
Remove redundant imports
nielsutrecht/adventofcode,nielsutrecht/adventofcode,nielsutrecht/adventofcode
src/main/kotlin/com/nibado/projects/advent/y2020/Day03.kt
src/main/kotlin/com/nibado/projects/advent/y2020/Day03.kt
package com.nibado.projects.advent.y2020 import com.nibado.projects.advent.* object Day03 : Day { private val values = resourceLines(2020, 3) override fun part1(): Long = count(Point(3, 1)) override fun part2() = listOf(Point(1, 1), Point(3, 1), Point(5, 1), Point(7, 1), Point(1, 2)).map(::co...
package com.nibado.projects.advent.y2020 import com.nibado.projects.advent.* import com.nibado.projects.advent.collect.CharMap object Day03 : Day { private val values = resourceLines(2020, 3) override fun part1(): Long = count(Point(3, 1)) override fun part2() = listOf(Point(1, 1), Point(3, 1), Point(5, ...
mit
Kotlin
a37b364f48b75a70731cfeb696429a7a1700aa64
Fix warning
ids1024/lsdict-android
src/main/kotlin/com/ids1024/lsdict/LSDatabase.kt
src/main/kotlin/com/ids1024/lsdict/LSDatabase.kt
package com.ids1024.lsdict import android.content.Context import android.database.Cursor import android.database.sqlite.SQLiteQueryBuilder import com.readystatesoftware.sqliteasset.SQLiteAssetHelper private val DB_VERSION = 4 public class LSDatabase(context: Context) : SQLiteAssetHelper(context, "lewis.db", null, DB...
package com.ids1024.lsdict import android.content.Context import android.database.Cursor import android.database.sqlite.SQLiteQueryBuilder import com.readystatesoftware.sqliteasset.SQLiteAssetHelper private val DB_VERSION = 4 public class LSDatabase(context: Context) : SQLiteAssetHelper(context, "lewis.db", null, DB...
mit
Kotlin
947e8abe984cfd218db61e2760218f62d6f252c3
enable shaderc performance optimization
fabmax/kool,fabmax/kool,fabmax/kool
kool-core/src/jvmMain/kotlin/de/fabmax/kool/platform/vk/util/Shaderc.kt
kool-core/src/jvmMain/kotlin/de/fabmax/kool/platform/vk/util/Shaderc.kt
package de.fabmax.kool.platform.vk.util import de.fabmax.kool.util.logE import org.lwjgl.util.shaderc.Shaderc import java.nio.ByteBuffer object Shaderc { private val compiler = Shaderc.shaderc_compiler_initialize() fun compileVertexShader(src: String, name: String = "shader.vert", entryPoint: String = "main"...
package de.fabmax.kool.platform.vk.util import de.fabmax.kool.util.PerfTimer import de.fabmax.kool.util.logE import org.lwjgl.util.shaderc.Shaderc import java.io.FileReader import java.nio.ByteBuffer fun main() { val compiler = Shaderc.shaderc_compiler_initialize() val srcTxt = FileReader("shaders/shader.ver...
apache-2.0
Kotlin
e4f8f684083d69ad6346328e6d020da139a07218
Change more default component fonts
RuneSuite/client,RuneSuite/client
api/src/main/java/org/runestar/client/api/LafInstallation.kt
api/src/main/java/org/runestar/client/api/LafInstallation.kt
package org.runestar.client.api import com.alee.laf.WebLookAndFeel import com.alee.skin.dark.DarkSkin import org.runestar.general.fonts.RUNESCAPE_CHAT_FONT import javax.swing.JPopupMenu import javax.swing.UIManager import javax.swing.plaf.FontUIResource internal object LafInstallation : Runnable { ove...
package org.runestar.client.api import com.alee.laf.WebLookAndFeel import com.alee.skin.dark.DarkSkin import org.runestar.general.fonts.RUNESCAPE_CHAT_BOLD_FONT import org.runestar.general.fonts.RUNESCAPE_CHAT_FONT import javax.swing.JPopupMenu import javax.swing.UIManager import javax.swing.plaf.FontUIResourc...
mit
Kotlin
011870085580abb70eab35970ba4c9c248369144
use same observable object
nonylene/MackerelAgentAndroid,nonylene/MackerelAgentAndroid,nonylene/MackerelAgentAndroid
app/src/main/java/net/nonylene/mackerelagent/MainActivity.kt
app/src/main/java/net/nonylene/mackerelagent/MainActivity.kt
package net.nonylene.mackerelagent import android.os.Bundle import android.support.v7.app.AppCompatActivity import android.widget.TextView import io.reactivex.Observable import io.reactivex.android.schedulers.AndroidSchedulers import io.reactivex.functions.BiFunction import io.reactivex.schedulers.Schedulers import io...
package net.nonylene.mackerelagent import android.os.Bundle import android.support.v7.app.AppCompatActivity import android.widget.TextView import io.reactivex.Observable import io.reactivex.android.schedulers.AndroidSchedulers import io.reactivex.functions.BiFunction import io.reactivex.schedulers.Schedulers import io...
mit
Kotlin
988d15b2d241d8212d6939cca7b1e29a3964fb5a
Fix uv coordinates for full screen frame buffer
AcornUI/Acorn,AcornUI/Acorn,AcornUI/Acorn
AcornUiCore/src/com/acornui/gl/core/FullScreenFramebuffer.kt
AcornUiCore/src/com/acornui/gl/core/FullScreenFramebuffer.kt
/* * Copyright 2018 Nicholas Bilyk * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
/* * Copyright 2018 Nicholas Bilyk * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
apache-2.0
Kotlin
de446fdd472378d34b2f529e80d536015479842f
remove v3.0.0 deprecated SwipeRefreshLayoutPageChangeListener
CruGlobal/android-gto-support,GlobalTechnology/android-gto-support,CruGlobal/android-gto-support
gto-support-viewpager/src/main/java/org/ccci/gto/android/common/viewpager/widget/SwipeRefreshLayoutViewPagerHelper.kt
gto-support-viewpager/src/main/java/org/ccci/gto/android/common/viewpager/widget/SwipeRefreshLayoutViewPagerHelper.kt
package org.ccci.gto.android.common.viewpager.widget import androidx.swiperefreshlayout.widget.SwipeRefreshLayout import androidx.viewpager.widget.ViewPager import com.karumi.weak.weak class SwipeRefreshLayoutViewPagerHelper(layout: SwipeRefreshLayout? = null) : ViewPager.SimpleOnPageChangeListener() { var swipeR...
package org.ccci.gto.android.common.viewpager.widget import androidx.swiperefreshlayout.widget.SwipeRefreshLayout import androidx.viewpager.widget.ViewPager import com.karumi.weak.weak class SwipeRefreshLayoutViewPagerHelper(layout: SwipeRefreshLayout? = null) : ViewPager.SimpleOnPageChangeListener() { var swipeR...
mit
Kotlin
6d4ec7981a0504fb0467cae8fdebba438933d2b4
fix memory leak in tests (do not use Files.list)
suncycheng/intellij-community,youdonghai/intellij-community,suncycheng/intellij-community,suncycheng/intellij-community,ThiagoGarciaAlves/intellij-community,FHannes/intellij-community,youdonghai/intellij-community,youdonghai/intellij-community,da1z/intellij-community,FHannes/intellij-community,youdonghai/intellij-commu...
plugins/settings-repository/testSrc/RespositoryHelper.kt
plugins/settings-repository/testSrc/RespositoryHelper.kt
/* * Copyright 2000-2015 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-2015 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
9c3b93b1e5d95806c7eb6d10ca681a36422a2320
Add UnitTest
charbgr/CliffHanger
cliffhanger/app/src/test/java/com/github/charbgr/cliffhanger/UnitTest.kt
cliffhanger/app/src/test/java/com/github/charbgr/cliffhanger/UnitTest.kt
package com.github.charbgr.cliffhanger import com.github.charbgr.cliffhanger.shared.arch.SchedulerProvider import io.reactivex.Scheduler import io.reactivex.schedulers.Schedulers open class UnitTest { protected val fakeSchedulerProvider = object : SchedulerProvider { override fun ui(): Scheduler = Schedulers.tr...
mit
Kotlin
60336ae3a0764922c919636f90646a2506638003
Update plugin com.diffplug.spotless to v6.0.1
domaframework/doma,domaframework/doma
settings.gradle.kts
settings.gradle.kts
pluginManagement { repositories { gradlePluginPortal() } plugins { id("com.diffplug.eclipse.apt") version "3.33.3" id("com.diffplug.spotless") version "6.0.1" id("io.github.gradle-nexus.publish-plugin") version "1.1.0" id("net.researchgate.release") version "2.8.1" ...
pluginManagement { repositories { gradlePluginPortal() } plugins { id("com.diffplug.eclipse.apt") version "3.33.3" id("com.diffplug.spotless") version "6.0.0" id("io.github.gradle-nexus.publish-plugin") version "1.1.0" id("net.researchgate.release") version "2.8.1" ...
apache-2.0
Kotlin
17e629524e298815ff913ff6b1615cfc7a74cef7
refactor #827 Use ListAdapter.
toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt
pdf/src/main/java/jp/toastkid/pdf/Adapter.kt
pdf/src/main/java/jp/toastkid/pdf/Adapter.kt
package jp.toastkid.pdf import android.annotation.TargetApi import android.content.ContentResolver import android.graphics.Bitmap import android.graphics.pdf.PdfRenderer import android.net.Uri import android.os.Build import android.os.ParcelFileDescriptor import android.view.LayoutInflater import android.view.ViewGrou...
package jp.toastkid.pdf import android.annotation.TargetApi import android.content.ContentResolver import android.graphics.Bitmap import android.graphics.pdf.PdfRenderer import android.net.Uri import android.os.Build import android.os.ParcelFileDescriptor import android.view.LayoutInflater import android.view.ViewGrou...
epl-1.0
Kotlin
27302f489c43ad3c6008ef100e1681625a652aa2
Add configuration cache listeners only if it is enabled
gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,grad...
subprojects/configuration-cache/src/main/kotlin/org/gradle/configurationcache/ConfigurationCacheBuildScopeListenerManagerAction.kt
subprojects/configuration-cache/src/main/kotlin/org/gradle/configurationcache/ConfigurationCacheBuildScopeListenerManagerAction.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
e6f27a7459270b6792896800e845bbb182bcee02
Disable ComposeMultiPlatformTests (2)
androidx/androidx,AndroidX/androidx,AndroidX/androidx,androidx/androidx,AndroidX/androidx,androidx/androidx,AndroidX/androidx,AndroidX/androidx,androidx/androidx,AndroidX/androidx,AndroidX/androidx,androidx/androidx,AndroidX/androidx,androidx/androidx,androidx/androidx,androidx/androidx,AndroidX/androidx,androidx/andro...
compose/compiler/compiler-hosted/integration-tests/src/test/java/androidx/compose/compiler/plugins/kotlin/ComposeMultiPlatformTests.kt
compose/compiler/compiler-hosted/integration-tests/src/test/java/androidx/compose/compiler/plugins/kotlin/ComposeMultiPlatformTests.kt
/* * Copyright 2020 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
/* * Copyright 2020 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
apache-2.0
Kotlin
c25b24cffd66cbe6a88023c5483e2502b94eab0b
refactor #620 Extract layout ID to constant.
toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Jitte
todo/src/main/java/jp/toastkid/todo/view/list/Adapter.kt
todo/src/main/java/jp/toastkid/todo/view/list/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
c18c12b10134646f7188177b13b879dcf27b0dcb
Add Duration-based API to RenewedFlow.
world-federation-of-advertisers/common-jvm,world-federation-of-advertisers/common-jvm
src/main/kotlin/org/wfanet/measurement/common/RenewedFlow.kt
src/main/kotlin/org/wfanet/measurement/common/RenewedFlow.kt
package org.wfanet.measurement.common import java.time.Duration import kotlinx.coroutines.delay import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.emitAll import kotlinx.coroutines.flow.flow import kotlinx.coroutines.withTimeoutOrNull /** * Enables periodically restarting Flow generators. * * One c...
package org.wfanet.measurement.common import kotlinx.coroutines.delay import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.emitAll import kotlinx.coroutines.flow.flow import kotlinx.coroutines.withTimeoutOrNull /** * Enables periodically restarting Flow generators. * * One canonical use case is to di...
apache-2.0
Kotlin
1d2e6b919cd9f0b0d709c375832ad60624073aa9
Remove `@ToBeFixedForConfigurationCache` from `PrecompiledScriptPluginAccessorDeprecationWarningsTest`
gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpira...
subprojects/kotlin-dsl-plugins/src/integTest/kotlin/org/gradle/kotlin/dsl/plugins/precompiled/PrecompiledScriptPluginAccessorDeprecationWarningsTest.kt
subprojects/kotlin-dsl-plugins/src/integTest/kotlin/org/gradle/kotlin/dsl/plugins/precompiled/PrecompiledScriptPluginAccessorDeprecationWarningsTest.kt
/* * Copyright 2021 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 2021 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
828cd0d979014f3deccfeb129a186527d7319645
Set larger drawArea for tests for consistent test results
DanielMartinus/Konfetti
konfetti/core/src/test/java/nl/dionsegijn/konfetti/core/PartySystemTest.kt
konfetti/core/src/test/java/nl/dionsegijn/konfetti/core/PartySystemTest.kt
package nl.dionsegijn.konfetti.core import android.graphics.Rect import nl.dionsegijn.konfetti.core.emitter.Emitter import org.junit.Assert import org.junit.Test import org.mockito.ArgumentMatchers.anyInt import org.mockito.Mockito class PartySystemTest { private val rect: Rect = Mockito.mock(Rect::class.java).a...
package nl.dionsegijn.konfetti.core import android.graphics.Rect import nl.dionsegijn.konfetti.core.emitter.Emitter import org.junit.Assert import org.junit.Test import org.mockito.ArgumentMatchers.anyInt import org.mockito.Mockito class PartySystemTest { private val rect: Rect = Mockito.mock(Rect::class.java).a...
isc
Kotlin
f188799a9a768d8a7ab9a2755fa00f2f80b1f551
Add user object to vimeo account
vimeo/vimeo-networking-java,vimeo/vimeo-networking-java,vimeo/vimeo-networking-java
models/src/main/java/com/vimeo/networking2/VimeoAccount.kt
models/src/main/java/com/vimeo/networking2/VimeoAccount.kt
package com.vimeo.networking2 import com.squareup.moshi.Json import com.squareup.moshi.JsonClass import java.util.* /** * This class represents an authenticated account with Vimeo. It can be through client credentials * or a truly authenticated [User]. */ @JsonClass(generateAdapter = true) data class VimeoAccount...
package com.vimeo.networking2 import com.squareup.moshi.Json import com.squareup.moshi.JsonClass import java.util.* /** * This class represents an authenticated account with Vimeo. It can be through client credentials * or a truly authenticated [User]. */ @JsonClass(generateAdapter = true) data class VimeoAccount...
mit
Kotlin
23c4751ba2ab69ed0aaa1100f6aa2784b61701e9
Remove unnecessary inflation.
wikimedia/apps-android-wikipedia,dbrant/apps-android-wikipedia,dbrant/apps-android-wikipedia,dbrant/apps-android-wikipedia,dbrant/apps-android-wikipedia,wikimedia/apps-android-wikipedia,wikimedia/apps-android-wikipedia,dbrant/apps-android-wikipedia,wikimedia/apps-android-wikipedia
app/src/main/java/org/wikipedia/feed/view/CardFooterView.kt
app/src/main/java/org/wikipedia/feed/view/CardFooterView.kt
package org.wikipedia.feed.view import android.content.Context import android.text.SpannableStringBuilder import android.text.Spanned import android.text.style.ImageSpan import android.util.AttributeSet import android.view.LayoutInflater import androidx.constraintlayout.widget.ConstraintLayout import org.wikipedia.R i...
package org.wikipedia.feed.view import android.content.Context import android.text.SpannableStringBuilder import android.text.Spanned import android.text.style.ImageSpan import android.util.AttributeSet import android.view.LayoutInflater import android.view.View import androidx.constraintlayout.widget.ConstraintLayout...
apache-2.0
Kotlin
784f76ca30c930ead2429b4f2882dd2202d4ac26
use the original date for history, not the resolved date
Heiner1/AndroidAPS,Heiner1/AndroidAPS,Heiner1/AndroidAPS,Heiner1/AndroidAPS
omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/history/data/HistoryRecord.kt
omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/history/data/HistoryRecord.kt
package info.nightscout.androidaps.plugins.pump.omnipod.dash.history.data import com.github.guepardoapps.kulid.ULID import info.nightscout.androidaps.plugins.pump.omnipod.common.definition.OmnipodCommandType import java.nio.ByteBuffer data class HistoryRecord( val id: String, // ULID val createdAt: Long, // c...
package info.nightscout.androidaps.plugins.pump.omnipod.dash.history.data import com.github.guepardoapps.kulid.ULID import info.nightscout.androidaps.plugins.pump.omnipod.common.definition.OmnipodCommandType import java.nio.ByteBuffer data class HistoryRecord( val id: String, // ULID val createdAt: Long, // c...
agpl-3.0
Kotlin
71064f3dc5900fb3cf32619e6995f6f9a6755fcc
remove unused
JetBrains/resharper-unity,JetBrains/resharper-unity,JetBrains/resharper-unity
rider/src/main/kotlin/com/jetbrains/rider/plugins/unity/util/UnityIcons.kt
rider/src/main/kotlin/com/jetbrains/rider/plugins/unity/util/UnityIcons.kt
package com.jetbrains.rider.plugins.unity.util import com.intellij.openapi.util.IconLoader class UnityIcons { companion object { val ShaderLabFile = IconLoader.getIcon("/Icons/Shader/Shader.png") // TODO: Proper icons! val AttachEditorDebugConfiguration = IconLoader.getIcon("/Icons/Logo/U...
package com.jetbrains.rider.plugins.unity.util import com.intellij.openapi.util.IconLoader class UnityIcons { companion object { val ShaderLabFile = IconLoader.getIcon("/Icons/Shader/Shader.png") // TODO: Proper icons! val AttachEditorDebugConfiguration = IconLoader.getIcon("/Icons/Logo/U...
apache-2.0
Kotlin
fbf512fb8b3a2c0d18e3f6f64c3c07e2df5279a3
add MigrationFrom61To62
StepicOrg/stepic-android,StepicOrg/stepik-android,StepicOrg/stepic-android,StepicOrg/stepik-android,StepicOrg/stepik-android,StepicOrg/stepic-android
app/src/main/java/org/stepic/droid/storage/migration/MigrationFrom61To62.kt
app/src/main/java/org/stepic/droid/storage/migration/MigrationFrom61To62.kt
package org.stepic.droid.storage.migration import androidx.room.migration.Migration import androidx.sqlite.db.SupportSQLiteDatabase import org.stepik.android.cache.course_collection.structure.DbStructureCourseCollection object MigrationFrom61To62 : Migration(61, 62) { override fun migrate(db: SupportSQLiteDatabas...
apache-2.0
Kotlin
f59b9262453a9e7e2dd8b1f4d9ed94e2da28895a
Add BoundaryTargetType sealed class
dhis2/dhis2-android-sdk,dhis2/dhis2-android-sdk,dhis2/dhis2-android-sdk
core/src/main/java/org/hisp/dhis/android/core/program/BoundaryTargetType.kt
core/src/main/java/org/hisp/dhis/android/core/program/BoundaryTargetType.kt
/* * Copyright (c) 2004-2021, University of Oslo * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this * list o...
bsd-3-clause
Kotlin
89cf1b721a401b942f94de3fa77f2bcbe3cbd3b5
Make MapApplicationConfig open for user's customization (#822)
ktorio/ktor,ktorio/ktor,ktorio/ktor,ktorio/ktor
ktor-server/ktor-server-core/jvm/src/io/ktor/config/MapApplicationConfig.kt
ktor-server/ktor-server-core/jvm/src/io/ktor/config/MapApplicationConfig.kt
package io.ktor.config import io.ktor.util.* /** * Mutable application config backed by a hash map */ @KtorExperimentalAPI open class MapApplicationConfig : ApplicationConfig { /** * A backing map for this config */ protected val map: MutableMap<String, String> /** * Config path prefix f...
package io.ktor.config import io.ktor.util.* /** * Mutable application config backed by a hash map */ @KtorExperimentalAPI class MapApplicationConfig : ApplicationConfig { private val map: MutableMap<String, String> private val path: String private constructor(map: MutableMap<String, String>, path: Str...
apache-2.0
Kotlin
471cf5f13ad313e573128a87ec89f6c5b41ac288
Use new API for go to class/symbol contributors
Undin/intellij-rust,intellij-rust/intellij-rust,Undin/intellij-rust,Undin/intellij-rust,Undin/intellij-rust,intellij-rust/intellij-rust,intellij-rust/intellij-rust,intellij-rust/intellij-rust,intellij-rust/intellij-rust,Undin/intellij-rust,Undin/intellij-rust,intellij-rust/intellij-rust
src/main/kotlin/org/rust/ide/navigation/goto/RsNavigationContributorBase.kt
src/main/kotlin/org/rust/ide/navigation/goto/RsNavigationContributorBase.kt
/* * Use of this source code is governed by the MIT license that can be * found in the LICENSE file. */ package org.rust.ide.navigation.goto import com.intellij.navigation.ChooseByNameContributorEx import com.intellij.navigation.GotoClassContributor import com.intellij.navigation.NavigationItem import com.intellij...
/* * Use of this source code is governed by the MIT license that can be * found in the LICENSE file. */ package org.rust.ide.navigation.goto import com.intellij.navigation.ChooseByNameContributor import com.intellij.navigation.GotoClassContributor import com.intellij.navigation.NavigationItem import com.intellij.o...
mit
Kotlin
ace7be89220dcf417b1726140b75e4960521707f
convert to Kotlin.
UweTrottmann/SeriesGuide,UweTrottmann/SeriesGuide
app/src/main/java/com/battlelancer/seriesguide/backend/CloudEndpointUtils.kt
app/src/main/java/com/battlelancer/seriesguide/backend/CloudEndpointUtils.kt
package com.battlelancer.seriesguide.backend import android.content.Context import com.battlelancer.seriesguide.BuildConfig import com.battlelancer.seriesguide.util.Utils import com.google.api.client.googleapis.services.AbstractGoogleClient import com.google.api.client.googleapis.services.AbstractGoogleClientRequest i...
package com.battlelancer.seriesguide.backend; import android.content.Context; import com.battlelancer.seriesguide.BuildConfig; import com.battlelancer.seriesguide.util.Utils; import com.google.api.client.googleapis.services.AbstractGoogleClient; /** * Common utilities for working with Cloud Endpoints. * * If you'd...
apache-2.0
Kotlin
f2872cfdb3dc12803b2b62942069f605ea70155f
Handle some nulls in music
laurencegw/jenjin,laurencegw/jenjin
jenjin-core/src/main/kotlin/com/binarymonks/jj/core/audio/MusicController.kt
jenjin-core/src/main/kotlin/com/binarymonks/jj/core/audio/MusicController.kt
package com.binarymonks.jj.core.audio import com.badlogic.gdx.Gdx import com.badlogic.gdx.audio.Music class MusicController : Music.OnCompletionListener { var volume = 0.2f set(volume) { field = volume if (music != null) { music!!.volume = calculateVolume() ...
package com.binarymonks.jj.core.audio import com.badlogic.gdx.Gdx import com.badlogic.gdx.audio.Music class MusicController : Music.OnCompletionListener { var volume = 0.2f set(volume) { field = volume if (music != null) { music!!.volume = calculateVolume() ...
apache-2.0
Kotlin
546c011c529fe1b2da59287b08ae2b124f4fe9db
update license header in MythicRepairingSettings
Nunnery/MythicDrops
mythicdrops/src/main/kotlin/com/tealcube/minecraft/bukkit/mythicdrops/settings/replacement/MythicRepairingSettings.kt
mythicdrops/src/main/kotlin/com/tealcube/minecraft/bukkit/mythicdrops/settings/replacement/MythicRepairingSettings.kt
/* * This file is part of MythicDrops, licensed under the MIT License. * * Copyright (C) 2019 Richard Harrah * * Permission is hereby granted, free of charge, * to any person obtaining a copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, incl...
package com.tealcube.minecraft.bukkit.mythicdrops.settings.replacement import com.tealcube.minecraft.bukkit.mythicdrops.api.settings.replacement.RepairingSettings import com.tealcube.minecraft.bukkit.mythicdrops.getNonNullString import org.bukkit.configuration.ConfigurationSection data class MythicRepairingSettings( ...
mit
Kotlin
a615c44623ba82c53c038600cc0aad864edf27fc
Add missing license header.
charleskorn/batect,charleskorn/batect,charleskorn/batect,charleskorn/batect,charleskorn/batect
app/src/journeyTest/kotlin/batect/journeytests/DockerUtils.kt
app/src/journeyTest/kotlin/batect/journeytests/DockerUtils.kt
/* Copyright 2017 Charles Korn. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in w...
package batect.journeytests import java.io.InputStreamReader object DockerUtils { fun getAllCreatedContainers(): Set<String> { val commandLine = listOf("docker", "network", "ls", "--format", "{{.Name}} ({{.ID}})") val process = ProcessBuilder(commandLine) .redirectErrorStream(true) ...
apache-2.0
Kotlin
d86cf4588afa066f81a34f066b8a95bb912e3ec2
Add imageAttachmentUri parameter
RocketChat/Rocket.Chat.Android,RocketChat/Rocket.Chat.Android,RocketChat/Rocket.Chat.Android.Lily,RocketChat/Rocket.Chat.Android.Lily
app/src/main/java/chat/rocket/android/app/chatroom/Message.kt
app/src/main/java/chat/rocket/android/app/chatroom/Message.kt
package chat.rocket.android.app.chatroom import chat.rocket.android.app.User import org.threeten.bp.LocalDateTime data class Message(val user: User, val textContent: String?, val imageAttachmentUri: String?, val localDatetime: LocalDateTime)
package chat.rocket.android.app.chatroom import chat.rocket.android.app.User import org.threeten.bp.LocalDateTime data class Message(val user: User, val content: String, val localDatetime: LocalDateTime)
mit
Kotlin
ef7a65e98eff2af2e28a546e51bc739a72939f2e
Move Embedding out of the EmbeddingsContainer
KotlinNLP/SimpleDNN
src/main/kotlin/com/kotlinnlp/simplednn/deeplearning/embeddings/Embedding.kt
src/main/kotlin/com/kotlinnlp/simplednn/deeplearning/embeddings/Embedding.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
4353f49641b789283b84c876732be6657b82599e
Allow getting a source set by name
SpineEventEngine/base,SpineEventEngine/base,SpineEventEngine/base
tools/plugin-base/src/main/kotlin/io/spine/tools/gradle/ProjectExtensions.kt
tools/plugin-base/src/main/kotlin/io/spine/tools/gradle/ProjectExtensions.kt
/* * 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
5ff6cbbcdf5ae2cb20b969314f0d12c19b510669
Simplify expression
robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle-script-kotlin,blindpirate/gradle,gradle/gradle,gradle/gradle-script-kotlin,robinverduijn/gradle,robinverduijn/g...
provider/src/main/kotlin/org/gradle/kotlin/dsl/provider/KotlinScriptTarget.kt
provider/src/main/kotlin/org/gradle/kotlin/dsl/provider/KotlinScriptTarget.kt
/* * Copyright 2017 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
/* * Copyright 2017 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
apache-2.0
Kotlin
133cc21485f766ae29cc6d24d13669a67c6558fe
Fix bug where videos over Int.MAX bytes could not be uploaded
vimeo/vimeo-networking-java,vimeo/vimeo-networking-java,vimeo/vimeo-networking-java
models/src/main/java/com/vimeo/networking2/Gcs.kt
models/src/main/java/com/vimeo/networking2/Gcs.kt
package com.vimeo.networking2 import com.squareup.moshi.Json import com.squareup.moshi.JsonClass import com.vimeo.networking2.annotations.Internal /** * GCS data. */ @Internal @JsonClass(generateAdapter = true) data class Gcs( /** * Expected ending byte range for the current upload_link. */ @Inte...
package com.vimeo.networking2 import com.squareup.moshi.Json import com.squareup.moshi.JsonClass import com.vimeo.networking2.annotations.Internal /** * GCS data. */ @Internal @JsonClass(generateAdapter = true) data class Gcs( /** * Expected ending byte range for the current upload_link. */ @Inte...
mit
Kotlin
c992c1b422cd3a864d2d026fd185a373e0bdc240
Apply plugin by type
lnr0626/cfn-templates,lnr0626/cfn-templates
plugin/build.gradle.kts
plugin/build.gradle.kts
import org.gradle.plugin.devel.GradlePluginDevelopmentExtension import org.jetbrains.kotlin.allopen.gradle.AllOpenGradleSubplugin import org.jetbrains.kotlin.allopen.gradle.AllOpenExtension buildscript { repositories { maven { setUrl("https://plugins.gradle.org/m2/") } gradleScr...
import org.gradle.plugin.devel.GradlePluginDevelopmentExtension import org.jetbrains.kotlin.allopen.gradle.AllOpenGradleSubplugin import org.jetbrains.kotlin.allopen.gradle.AllOpenExtension buildscript { repositories { maven { setUrl("https://plugins.gradle.org/m2/") } gradleScr...
apache-2.0
Kotlin
932132d8c6ae2a42a731de23b5f7e017cdfbfd89
refactor #605 Extract to field.
toastkidjp/Jitte,toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt
lib/src/main/java/jp/toastkid/lib/view/RecyclerViewScroller.kt
lib/src/main/java/jp/toastkid/lib/view/RecyclerViewScroller.kt
package jp.toastkid.lib.view import androidx.recyclerview.widget.RecyclerView /** * @author toastkidjp */ object RecyclerViewScroller { private const val THRESHOLD = 30 private val TOP_POSITION = 0 fun toTop(recyclerView: RecyclerView, itemCount: Int) { if (itemCount > THRESHOLD) { ...
package jp.toastkid.lib.view import androidx.recyclerview.widget.RecyclerView /** * @author toastkidjp */ object RecyclerViewScroller { private const val THRESHOLD = 30 fun toTop(recyclerView: RecyclerView, itemCount: Int) { if (itemCount > THRESHOLD) { recyclerView.scrollToPosition(0)...
epl-1.0
Kotlin
eab18c83f32b178fcf72eec31d5c3426f9e820f0
Improve code coverage by opening empty screen.
mg6maciej/fluffy-octo-rotary-phone,mg6maciej/fluffy-octo-rotary-phone,mg6maciej/fluffy-octo-rotary-phone
app/src/androidTest/java/pl/mg6/likeornot/GridLoadTest.kt
app/src/androidTest/java/pl/mg6/likeornot/GridLoadTest.kt
package pl.mg6.likeornot import android.support.test.rule.ActivityTestRule import org.junit.Rule import org.junit.Test class GridLoadTest { @Rule @JvmField val rule = ActivityTestRule<GridActivity>(GridActivity::class.java) @Test fun nothing() { } }
apache-2.0
Kotlin
8566dc527d8c0450410b9fd2541287f1cabd4bc6
Make LoaderManagerTest LargeTest
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...
loader/loader-ktx/src/androidTest/java/androidx/loader/app/LoaderManagerTest.kt
loader/loader-ktx/src/androidTest/java/androidx/loader/app/LoaderManagerTest.kt
/* * Copyright 2019 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
/* * Copyright 2019 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
apache-2.0
Kotlin
56af6f25a9b3791231ca38d08a1d25a955ce8333
Add EmberIntlTest class
Turbo87/intellij-emberjs,Turbo87/intellij-emberjs,Turbo87/intellij-emberjs,Turbo87/intellij-emberjs
src/test/kotlin/com/emberjs/intl/EmberIntlTest.kt
src/test/kotlin/com/emberjs/intl/EmberIntlTest.kt
package com.emberjs.intl 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 EmberIntlTest : LightPlatformCodeInsightFixtureTestCase() { override fun ...
apache-2.0
Kotlin
4626f22dcb6bf0a49bef4ff9bb81181890b9f57a
add JoinInfo
jayrave/falkon
falkon-sql-builder/src/main/kotlin/com/jayrave/falkon/sqlBuilders/lib/JoinInfo.kt
falkon-sql-builder/src/main/kotlin/com/jayrave/falkon/sqlBuilders/lib/JoinInfo.kt
package com.jayrave.falkon.sqlBuilders.lib interface JoinInfo { /** * The type of join this represents */ val type: Type /** * The qualified column name from the first table */ val qualifiedLocalColumnName: String /** * The name of the table that serves as the second tab...
apache-2.0
Kotlin
459934ec002cf288377055ba7fb5daf2b856369b
Add float pow() function
romainguy/kotlin-math
src/main/kotlin/com/curiouscreature/kotlin/math/Scalar.kt
src/main/kotlin/com/curiouscreature/kotlin/math/Scalar.kt
/* * Copyright (C) 2017 Romain Guy * * 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 agree...
/* * Copyright (C) 2017 Romain Guy * * 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 agree...
apache-2.0
Kotlin
71a601d87eea29e30079c3878b2f6ff6f41c9024
Make NativeRandom an object instead of a class with companion
JetBrains/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,wiltonlazary/kotlin-native,JetBrains/kotlin-native,wiltonlazary/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,wiltonlazary/kotlin-native,wiltonlazary/kotlin-nat...
runtime/src/main/kotlin/kotlin/random/Random.kt
runtime/src/main/kotlin/kotlin/random/Random.kt
/* * Copyright 2010-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 kotlin.random import kotlin.native.concurrent.AtomicLong import kotlin.system.getTimeNanos /** * The default implementation of pseudo-random generator using t...
/* * Copyright 2010-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 kotlin.random import kotlin.native.concurrent.AtomicLong import kotlin.system.getTimeNanos internal class NativeRandom { /** * A default pseudo-random...
apache-2.0
Kotlin
2b2ec0d154c5cd8b06d225bbdb325b3f7a0cc122
update the expand color function
burntcookie90/KotMeh,burntcookie90/KotMeh
app/src/main/kotlin/io/dwak/meh/model/Theme.kt
app/src/main/kotlin/io/dwak/meh/model/Theme.kt
package io.dwak.meh.model import android.graphics.Color import android.graphics.PorterDuff import android.graphics.PorterDuffColorFilter import android.graphics.drawable.ColorDrawable import rx.Observable class Theme( val accentColor : String, val foreground : String, val backgroundColor : Str...
package io.dwak.meh.model import android.graphics.Color import android.graphics.PorterDuff import android.graphics.PorterDuffColorFilter import android.graphics.drawable.ColorDrawable import kotlin.test.assertEquals class Theme( val accentColor : String, val foreground : String, val background...
apache-2.0
Kotlin
478ebafcb49016992a7efd2d84bd9690a70af0b4
Add Ennead
operando/Guild,operando/Guild
guild-kotlin/src/main/kotlin/com/os/operando/guild/Ennead.kt
guild-kotlin/src/main/kotlin/com/os/operando/guild/Ennead.kt
package com.os.operando.guild /** * A tuple of eight elements. * * @param F first element type * @param S second element type * @param T third element type * @param FO fourth element type * @param FI five element type * @param SI six element type * @param SE seven element type * @param E eight element typ...
apache-2.0
Kotlin
858f570e129030b085120e691ae45a121a9b2a66
Update MemberDelegate.kt
duncte123/SkyBot,duncte123/SkyBot,duncte123/SkyBot,duncte123/SkyBot
src/main/kotlin/ml/duncte123/skybot/entities/MemberDelegate.kt
src/main/kotlin/ml/duncte123/skybot/entities/MemberDelegate.kt
package ml.duncte123.skybot.entities import net.dv8tion.jda.core.entitirs.impl.MemberImpl import net.dv8tion.jda.core.entities.* class MemberDelegate(val xH4z9a_Qe: Member) : MemberImpl { public fun getRoles(): List<Role> = xH4z9a_Qe.roles public fun getNickname(): String? = xH4z9a_Qe.nickname p...
package ml.duncte123.skybot.entities import net.dv8tion.jda.core.entitirs.impl.MemberImpl import net.dv8tion.jda.core.entities.* class MemberDelegate(val xH4z9a_Qe: Member) : MemberImpl { public fun getRoles(): List<Role> = xH4z9a_Qe.roles public fun getNickname(): String? = xH4z9a_Qe.nickname p...
agpl-3.0
Kotlin
1f408a11f246c9eba18d3f9d2a97c8344cbefcf3
add DaoForUpdatesIntegrationTests
jayrave/falkon
falkon-dao/src/test/kotlin/com/jayrave/falkon/dao/DaoForUpdatesIntegrationTests.kt
falkon-dao/src/test/kotlin/com/jayrave/falkon/dao/DaoForUpdatesIntegrationTests.kt
package com.jayrave.falkon.dao import com.jayrave.falkon.dao.testLib.ModelForTest import org.assertj.core.api.Assertions.assertThat import org.junit.Test class DaoForUpdatesIntegrationTests : BaseClassForIntegrationTests() { @Test fun testUpdateOfSingleModel() { val modelToBeUpdated = buildModelForTe...
apache-2.0
Kotlin
4dd9ac12554611328b68f7d8c4581d960d669412
fix test
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...
java/java-tests/testSrc/com/intellij/java/codeInsight/folding/JavaFolding14Test.kt
java/java-tests/testSrc/com/intellij/java/codeInsight/folding/JavaFolding14Test.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.java.codeInsight.folding import com.intellij.testFramework.LightProjectDescriptor import com.intellij.testFramework.fixtures.LightJavaCodeInsightFixtureTestC...
// 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.java.codeInsight.folding import com.intellij.testFramework.LightProjectDescriptor import com.intellij.testFramework.fixtures.LightJavaCodeInsightFixtureTestC...
apache-2.0
Kotlin
fbf022020d7f7efb2170dc1960c9dad75204378b
fix for getting proper attach host
cmcpasserby/MayaCharm,cmcpasserby/MayaCharm
src/main/kotlin/debugattach/MayaAttachDebuggerProvider.kt
src/main/kotlin/debugattach/MayaAttachDebuggerProvider.kt
package debugattach import settings.ApplicationSettings import utils.pathForPid import com.intellij.execution.process.ProcessInfo import com.intellij.openapi.project.Project import com.intellij.openapi.projectRoots.Sdk import com.intellij.openapi.util.IconLoader import com.intellij.openapi.util.UserDataHolder import c...
package debugattach import settings.ApplicationSettings import utils.pathForPid import com.intellij.execution.process.ProcessInfo import com.intellij.openapi.project.Project import com.intellij.openapi.projectRoots.Sdk import com.intellij.openapi.util.IconLoader import com.intellij.openapi.util.UserDataHolder import c...
mit
Kotlin
03eec7510c82387c34f7d4bf0646727b0931b7b5
Add timer to evaluate performance
kuroyakov/minimum-examples,kuroyakov/minimum-examples,kuroyakov/minimum-examples,kuroyakov/minimum-examples,kuroyakov/minimum-examples,kuroyakov/minimum-examples
kotlin/mapFilterReduce.kt
kotlin/mapFilterReduce.kt
// Map, Filter, Reduce // To increse VM heap size, set environment variable JAVA_OPTS // (For example: 'export JAVA_OPTS="$JAVA_OPTS -Xmx1024M"') fun main(args:Array<String>){ var start = System.currentTimeMillis() var result = // 1. Generating sequence Array(10000000, {i->i}) // 2. M...
// Map, Filter, Reduce fun main(args:Array<String>){ var result = // 1. Generating sequence Array(1000000, {i->i}) // 2. Mapping the sequence into another .map { n -> n * 2} // 3. Filtering the sequence .filter { n -> n%3 == 0} // 4. Reducing the sequence ...
mit
Kotlin