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
d6023a6f6d34bb9d652292fbfa39d35d0b29acdf
Add MediaEncodableException
emanuelpalm/palm-compute,emanuelpalm/palm-compute,emanuelpalm/palm-compute,emanuelpalm/palm-compute
core/src/main/java/se/ltu/emapal/compute/util/media/MediaEncodableException.kt
core/src/main/java/se/ltu/emapal/compute/util/media/MediaEncodableException.kt
package se.ltu.emapal.compute.util.media /** * Some exception that may be encoded or decoded. */ abstract class MediaEncodableException( message: String? = null, cause: Throwable? = null ) : RuntimeException(message, cause), MediaEncodable { companion object { /** Wraps [throwable] in a ...
mit
Kotlin
2c91fbd391981e221c7bb5e922e58077b76aa1e0
Add Quartet
operando/Guild,operando/Guild
guild-kotlin/src/main/kotlin/com/os/operando/guild/Quartet.kt
guild-kotlin/src/main/kotlin/com/os/operando/guild/Quartet.kt
package com.os.operando.guild /** * A tuple of four elements. * * @param F first element type * @param S second element type * @param T third element type * @param FO fourth element type * @property first First value * @property second Second value * @property third Third value * @property fourth Fourth v...
apache-2.0
Kotlin
3616753d7fabcc70b595e552c680605825b8583e
Convert npc spawn commands to Kotlin
apollo-rsps/apollo,apollo-rsps/apollo,apollo-rsps/apollo
game/src/plugins/cmd/src/spawn-cmd.plugin.kts
game/src/plugins/cmd/src/spawn-cmd.plugin.kts
import com.google.common.primitives.Ints import org.apollo.game.model.Position import org.apollo.game.model.entity.Npc import org.apollo.game.model.entity.setting.PrivilegeLevel /** * An array of npcs that cannot be spawned. */ val blacklist: IntArray = intArrayOf() /** * Spawns a non-blacklisted npc in...
isc
Kotlin
485edd96f5420fdf1df75a7697dce8d3a95b9164
Add ios konan targets to the download list
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...
development/importMaven/src/main/kotlin/androidx/build/importMaven/KmpConfig.kt
development/importMaven/src/main/kotlin/androidx/build/importMaven/KmpConfig.kt
package androidx.build.importMaven import org.jetbrains.kotlin.konan.target.KonanTarget /** * Common configuration for KMP builds. */ internal object KmpConfig { /** * host machines where we support compiling KMP */ val SUPPORTED_HOSTS = listOf( KonanTarget.LINUX_X64, KonanTarget.M...
package androidx.build.importMaven import org.jetbrains.kotlin.konan.target.KonanTarget /** * Common configuration for KMP builds. */ internal object KmpConfig { /** * host machines where we support compiling KMP */ val SUPPORTED_HOSTS = listOf( KonanTarget.LINUX_X64, KonanTarget.M...
apache-2.0
Kotlin
b2a20532f726ffd32d42bccc77c97fa03a1bc7db
Disable the ComboBox during update to prevent additional action listener events.
rhdunn/xquery-intellij-plugin,rhdunn/xquery-intellij-plugin
src/kotlin-intellij/main/uk/co/reecedunn/intellij/plugin/core/ui/ComboBox.kt
src/kotlin-intellij/main/uk/co/reecedunn/intellij/plugin/core/ui/ComboBox.kt
/* * Copyright (C) 2021 Reece H. Dunn * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
/* * Copyright (C) 2021 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
c714af52fb3226cf7a3349938323e9e87158b5ea
Add missing Hook annotation to useTransition
facebook/litho,facebook/litho,facebook/litho,facebook/litho,facebook/litho,facebook/litho
litho-core-kotlin/src/main/kotlin/com/facebook/litho/transition/KTransitions.kt
litho-core-kotlin/src/main/kotlin/com/facebook/litho/transition/KTransitions.kt
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appl...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appl...
apache-2.0
Kotlin
e87d306ac463fd5993b352ec30f72a80481c3001
Replace complete label command to update indices
Ruben-Sten/TeXiFy-IDEA,Ruben-Sten/TeXiFy-IDEA,Ruben-Sten/TeXiFy-IDEA,Ruben-Sten/TeXiFy-IDEA
src/nl/hannahsten/texifyidea/psi/LatexNormalTextUtil.kt
src/nl/hannahsten/texifyidea/psi/LatexNormalTextUtil.kt
package nl.hannahsten.texifyidea.psi import com.intellij.psi.PsiElement import com.intellij.psi.PsiReference import nl.hannahsten.texifyidea.reference.LatexLabelParameterReference import nl.hannahsten.texifyidea.util.Magic import nl.hannahsten.texifyidea.util.firstParentOfType /** * If the normal text is the paramet...
package nl.hannahsten.texifyidea.psi import com.intellij.psi.PsiElement import com.intellij.psi.PsiReference import nl.hannahsten.texifyidea.reference.LatexLabelParameterReference import nl.hannahsten.texifyidea.util.Magic import nl.hannahsten.texifyidea.util.firstParentOfType /** * If the normal text is the paramet...
mit
Kotlin
cc0e36a751fb79411b2b5b74d32eaadef4523db8
fix monad zip
kotlinz/kotlinz
src/type/monad/MonadZip.kt
src/type/monad/MonadZip.kt
package type.monad import K1 interface MonadZip<µ>: Monad<µ> { fun <A, B> mzip(m1: K1<µ, A>, m2: K1<µ, B>): K1<µ, Pair<A, B>> fun <A, B, C> mzipWith(m1: K1<µ, A>, m2: K1<µ, B>, f: (A, B) -> C): K1<µ, C> fun <A, B> munzip(m : K1<µ, Pair<A, B>>): Pair<K1<µ, A>, K1<µ, B>> }
package type.monad import K1 interface MonadZip<µ>: Monad<µ> { fun <A, B> mzip(m: K1<µ, B>): K1<µ, Pair<A, B>> fun <A, B, C> mzipWith(m: K1<µ, B>, f: ((A) -> B) -> C): K1<µ, C> fun <A, B> munzip(f : K1<µ, Pair<A, B>>): Pair<K1<µ, A>, B> }
apache-2.0
Kotlin
930fc99baa6893b04d80ba51dbdbde6d587b2de6
refactor #412 Move lambda argument out of parentheses.
toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt
app/src/main/java/jp/toastkid/yobidashi/search/url_suggestion/QueryUseCase.kt
app/src/main/java/jp/toastkid/yobidashi/search/url_suggestion/QueryUseCase.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
7e56a89480ef9b49b057330e3d0fa9447b51695a
Remove default branch from vcs exclusion list
blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,grad...
.teamcity/src/main/kotlin/configurations/VcsTriggers.kt
.teamcity/src/main/kotlin/configurations/VcsTriggers.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
0acd2d06cca5b4c3009ecfb55ac434921b950a51
Bump agp
daugeldauge/NeePlayer
settings.gradle.kts
settings.gradle.kts
pluginManagement { val kotlinVersion = "1.4.0" repositories { jcenter() google() } resolutionStrategy { eachPlugin { when (requested.id.id) { "com.android.application", "com.android.library" -> "com.android.tools.build:gradle:4.2.0-alpha12" ...
pluginManagement { val kotlinVersion = "1.4.0" repositories { jcenter() google() } resolutionStrategy { eachPlugin { when (requested.id.id) { "com.android.application", "com.android.library" -> "com.android.tools.build:gradle:4.2.0-alpha11" ...
mit
Kotlin
c57ba62b77977c2f45fbd4fd77a2d3aa8c9a5bf0
Bump com.gradle.enterprise from 3.11.1 to 3.11.2
chrisbanes/tivi,chrisbanes/tivi
settings.gradle.kts
settings.gradle.kts
/* * Copyright 2017 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
/* * Copyright 2017 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
apache-2.0
Kotlin
af5d757cd104bf3c9149f81439c691bc67918a11
Clean up ProductionAdInitializer's code.
toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Yobidashi_kt
app/src/main/java/jp/toastkid/yobidashi/advertisement/ProductionAdInitializer.kt
app/src/main/java/jp/toastkid/yobidashi/advertisement/ProductionAdInitializer.kt
package jp.toastkid.yobidashi.advertisement import android.content.Context import com.google.android.gms.ads.* import jp.toastkid.yobidashi.BuildConfig import jp.toastkid.yobidashi.R /** * For production environment AD initializer. * * @param context need ApplicationContext * @author toastkidjp */ internal class...
package jp.toastkid.yobidashi.advertisement import android.content.Context import com.google.android.gms.ads.AdRequest import com.google.android.gms.ads.AdView import com.google.android.gms.ads.InterstitialAd import com.google.android.gms.ads.MobileAds import com.google.android.gms.ads.NativeExpressAdView import jp....
epl-1.0
Kotlin
8558ebf3bb6022dd65bc88a9543109de0d95e3d0
fix broken test
wuan/bo-android
app/src/test/java/org/blitzortung/android/app/components/VersionComponentTest.kt
app/src/test/java/org/blitzortung/android/app/components/VersionComponentTest.kt
package org.blitzortung.android.app.components import android.content.Context import org.assertj.core.api.Assertions.assertThat import org.junit.Before import org.junit.Test import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner import org.robolectric.RuntimeEnvironment import org.robolectric.ann...
package org.blitzortung.android.app.components import android.content.Context import org.assertj.core.api.Assertions.assertThat import org.junit.Before import org.junit.Test import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner import org.robolectric.RuntimeEnvironment import org.robolectric.ann...
apache-2.0
Kotlin
6cd20e38e78f185de50586e262c02edf601f13f5
refactor #523 Add HidingFloatingActionButtonBehavior's test case.
toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt
lib/src/test/java/jp/toastkid/lib/view/HidingFloatingActionButtonBehaviorTest.kt
lib/src/test/java/jp/toastkid/lib/view/HidingFloatingActionButtonBehaviorTest.kt
/* * Copyright (c) 2022 toastkidjp. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompany this distribution. * The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html. */ package jp...
epl-1.0
Kotlin
4fd410480a41334d3ffabbfe2220ff2ab481845c
Use buildFeatures DSL from AGP
LouisCAD/Splitties,LouisCAD/Splitties,LouisCAD/Splitties
buildSrc/src/main/kotlin/config/AndroidLibraryConfig.kt
buildSrc/src/main/kotlin/config/AndroidLibraryConfig.kt
/* * Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license. */ @file:Suppress("PackageDirectoryMismatch") import com.android.build.gradle.LibraryExtension as AndroidLibraryExtension fun AndroidLibraryExtension.setDefaults(generateBuildConfig: Boolean = false) { ...
/* * Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license. */ @file:Suppress("PackageDirectoryMismatch") import com.android.build.gradle.LibraryExtension as AndroidLibraryExtension fun AndroidLibraryExtension.setDefaults(generateBuildConfig: Boolean = false) { ...
apache-2.0
Kotlin
7be2d8458ae8a7f5355d7c71a7038b5ad45f7357
remove redundant util function
StepicOrg/stepik-android,StepicOrg/stepik-android,StepicOrg/stepik-android,StepicOrg/stepic-android,StepicOrg/stepic-android,StepicOrg/stepic-android
app/src/main/java/org/stepic/droid/util/ProgressUtil.kt
app/src/main/java/org/stepic/droid/util/ProgressUtil.kt
package org.stepic.droid.util import org.stepik.android.model.Progressable object ProgressUtil { fun getProgresses(objects: Iterable<Progressable>?): Array<String> { return objects ?.mapNotNull { it.progress } ?.toTypedArray() ?: emptyArray() } } @JvmNa...
package org.stepic.droid.util import org.stepik.android.model.Progress import org.stepik.android.model.Progressable object ProgressUtil { fun getProgresses(objects: Iterable<Progressable>?): Array<String> { return objects ?.mapNotNull { it.progress } ?.toTypedArray() ...
apache-2.0
Kotlin
666ede8ccf87b5eb9a69a28d4ec5aa99f1cb570b
Apply new FunctionsAndVariablesFragment in InspectorPager
spark/photon-tinker-android,spark/photon-tinker-android
app/src/main/java/io/particle/android/sdk/ui/InspectorPager.kt
app/src/main/java/io/particle/android/sdk/ui/InspectorPager.kt
package io.particle.android.sdk.ui import androidx.collection.SparseArrayCompat import androidx.fragment.app.Fragment import androidx.fragment.app.FragmentManager import androidx.fragment.app.FragmentStatePagerAdapter import io.particle.android.sdk.cloud.ParticleDevice import io.particle.android.sdk.tinker.TinkerFragm...
package io.particle.android.sdk.ui import androidx.fragment.app.Fragment import androidx.fragment.app.FragmentManager import androidx.fragment.app.FragmentStatePagerAdapter import io.particle.android.sdk.cloud.ParticleDevice import io.particle.android.sdk.tinker.TinkerFragment import io.particle.mesh.common.QATool ...
apache-2.0
Kotlin
8ec8dfeff05a4eeee7e5564fa9f0c255b45ce17a
Add screen
agoda-com/Kakao
sample/src/androidTest/kotlin/com/agoda/sample/screen/PickersActivityScreen.kt
sample/src/androidTest/kotlin/com/agoda/sample/screen/PickersActivityScreen.kt
package com.agoda.sample.screen import com.agoda.kakao.common.views.KView import com.agoda.kakao.picker.KDatePicker import com.agoda.kakao.picker.KTimePicker import com.agoda.kakao.screen.Screen import com.agoda.kakao.text.KTextView import com.agoda.sample.R open class PickersActivityScreen : Screen<PickersActivityS...
package com.agoda.sample.screen import com.agoda.kakao.common.views.KView import com.agoda.kakao.screen.Screen import com.agoda.kakao.text.KSnackbar import com.agoda.kakao.text.KTextView import com.agoda.sample.R open class PickersActivityScreen : Screen<PickersActivityScreen>() { val selectDateButton: KView = KV...
apache-2.0
Kotlin
630814dd0566156f4b31d6135c8b69196cc2b5a8
Convert Card to Kotlin
ianhanniballake/TripleSolitaire
mobile/src/main/java/com/github/triplesolitaire/Card.kt
mobile/src/main/java/com/github/triplesolitaire/Card.kt
package com.github.triplesolitaire import android.annotation.SuppressLint import android.content.Context import android.widget.ImageView /** * Image View specifically for Cards. Auto sets the width and height to the appropriate values */ @SuppressLint("ViewConstructor") class Card(context: Context, resId: Int) : Im...
package com.github.triplesolitaire; import android.annotation.SuppressLint; import android.content.Context; import android.widget.ImageView; /** * Image View specifically for Cards. Auto sets the width and height to the appropriate values */ @SuppressLint("ViewConstructor") public class Card extends ImageView { ...
bsd-3-clause
Kotlin
1a2939d9da7eaeb59ed5872f77b377947cd01323
Create LegacyCardAccountRangeRepository (#2741)
stripe/stripe-android,stripe/stripe-android,stripe/stripe-android,stripe/stripe-android,stripe/stripe-android
stripe/src/main/java/com/stripe/android/cards/LegacyCardAccountRangeRepository.kt
stripe/src/main/java/com/stripe/android/cards/LegacyCardAccountRangeRepository.kt
package com.stripe.android.cards import com.stripe.android.model.CardMetadata /** * A [CardAccountRangeRepository] that simulates existing card account range lookup logic by only * using a local, static source. */ internal class LegacyCardAccountRangeRepository( private val localCardAccountRangeSource: CardAcc...
mit
Kotlin
da1df7143ea214003451e08a405d71709752cfe6
add course payment model
StepicOrg/stepic-android,StepicOrg/stepic-android,StepicOrg/stepik-android,StepicOrg/stepic-android,StepicOrg/stepik-android,StepicOrg/stepik-android
app/src/main/java/org/stepik/android/domain/course_payments/model/CoursePayment.kt
app/src/main/java/org/stepik/android/domain/course_payments/model/CoursePayment.kt
package org.stepik.android.domain.course_payments.model import com.google.gson.annotations.SerializedName class CoursePayment( @SerializedName("id") val id: Long, @SerializedName("course") val course: Long, @SerializedName("is_paid") val isPaid: Boolean, @SerializedName("status") va...
package org.stepik.android.domain.course_payments.model class CoursePayment
apache-2.0
Kotlin
18cc22ff3e9261cc054472292e6205f04902c1a2
Fix app list request code issus
alilotfi/VirusTotalClient
app/src/main/kotlin/ir/alilo/virustotalclient/features/applist/AppListPresenter.kt
app/src/main/kotlin/ir/alilo/virustotalclient/features/applist/AppListPresenter.kt
package ir.alilo.virustotalclient.features.applist import ir.alilo.virustotalclient.datasources.db.App import ir.alilo.virustotalclient.mvp.Presenter import javax.inject.Inject class AppListPresenter @Inject constructor(view: AppListView?, interactor: AppListInteractor) : Presenter<AppListPresenter.AppListVie...
package ir.alilo.virustotalclient.features.applist import ir.alilo.virustotalclient.datasources.db.App import ir.alilo.virustotalclient.mvp.Presenter import javax.inject.Inject class AppListPresenter @Inject constructor(view: AppListView?, interactor: AppListInteractor) : Presenter<AppListPresenter.AppListVie...
apache-2.0
Kotlin
78deb942e999edd8ece6072b65749539515d3881
refactor #559 Use coVerify.
toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt,toastkidjp/Jitte
app/src/test/java/jp/toastkid/yobidashi/settings/color/RandomColorInsertionTest.kt
app/src/test/java/jp/toastkid/yobidashi/settings/color/RandomColorInsertionTest.kt
package jp.toastkid.yobidashi.settings.color import io.mockk.coVerify import io.mockk.every import io.mockk.mockk import io.mockk.verify import org.junit.Test /** * @author toastkidjp */ class RandomColorInsertionTest { @Test fun test() { val repository = mockk<SavedColorRepository>() every...
package jp.toastkid.yobidashi.settings.color import io.mockk.every import io.mockk.mockk import io.mockk.verify import org.junit.Test /** * @author toastkidjp */ class RandomColorInsertionTest { @Test fun test() { val repository = mockk<SavedColorRepository>() every { repository.add(any()) ...
epl-1.0
Kotlin
3cfa966b393323d85ff68d899f1346c06017f0e8
Create main service
GuiyeC/Aerlink-for-Android
wear/src/main/java/com/codegy/aerlink/MainService.kt
wear/src/main/java/com/codegy/aerlink/MainService.kt
package com.codegy.aerlink import android.app.Notification import android.app.NotificationManager import android.app.Service import android.bluetooth.BluetoothDevice import android.bluetooth.BluetoothGattCharacteristic import android.bluetooth.BluetoothManager import android.content.Intent import android.os.Binder imp...
mit
Kotlin
4e6e51aab05395b37b779e8c7eb911b4cf91b595
Remove unused import
gradle/gradle,robinverduijn/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,lsmaira/gradle,lsmaira/gradle,robinverduijn/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,lsmaira/gradle,lsmaira/gr...
buildSrc/subprojects/plugins/src/main/kotlin/gradlebuild/strict-compile.gradle.kts
buildSrc/subprojects/plugins/src/main/kotlin/gradlebuild/strict-compile.gradle.kts
/* * 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
4702a69f974bbc636787df2186398907491afa71
Add toString method
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/ui/src/com/intellij/util/ui/RegionIcon.kt
platform/util/ui/src/com/intellij/util/ui/RegionIcon.kt
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.util.ui import java.awt.Component import java.awt.Graphics import java.awt.Graphics2D import java.util.Objects import kotlin.math.ceil class RegionIcon( p...
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.util.ui import java.awt.Component import java.awt.Graphics import java.awt.Graphics2D import java.util.Objects import kotlin.math.ceil class RegionIcon( p...
apache-2.0
Kotlin
5365fddefb684ca4d4abd6b43c5ec7b10f2215d3
fix allure-cucumber6-jvm module name (via #477)
allure-framework/allure-java,allure-framework/allure-java
allure-cucumber6-jvm/build.gradle.kts
allure-cucumber6-jvm/build.gradle.kts
description = "Allure CucumberJVM 6.0" val agent: Configuration by configurations.creating val cucumberVersion = "6.1.1" val cucumberGherkinVersion = "5.1.0" dependencies { agent("org.aspectj:aspectjweaver") api(project(":allure-java-commons")) compileOnly("io.cucumber:cucumber-plugin:$cucumberVersion") ...
description = "Allure CucumberJVM 6.0" val agent: Configuration by configurations.creating val cucumberVersion = "6.1.1" val cucumberGherkinVersion = "5.1.0" dependencies { agent("org.aspectj:aspectjweaver") api(project(":allure-java-commons")) compileOnly("io.cucumber:cucumber-plugin:$cucumberVersion") ...
apache-2.0
Kotlin
eae0541bbb7513fac32713c88eec34f0beb1d560
Add callthrough test for FSFAClient.
mcomella/FirefoxAccounts-android,mcomella/FirefoxAccounts-android,mcomella/FirefoxAccounts-android,mcomella/FirefoxAccounts-android
accounts/src/test/java/org/mozilla/sync/sync/FirefoxSyncFirefoxAccountClientTest.kt
accounts/src/test/java/org/mozilla/sync/sync/FirefoxSyncFirefoxAccountClientTest.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.sync.sync; import org.junit.Assert.assertEquals import org.junit.Before import org.junit.Test...
mpl-2.0
Kotlin
034506f56b96b7f01c2d27021236e55f0542c559
Fix toolbar menu being broken on transition (fixes #5135)
inorichi/mangafeed,inorichi/tachiyomi,inorichi/tachiyomi,inorichi/mangafeed,CarlosEsco/tachiyomi
app/src/main/java/eu/kanade/tachiyomi/ui/base/controller/OneWayFadeChangeHandler.kt
app/src/main/java/eu/kanade/tachiyomi/ui/base/controller/OneWayFadeChangeHandler.kt
package eu.kanade.tachiyomi.ui.base.controller import android.animation.Animator import android.animation.AnimatorSet import android.animation.ObjectAnimator import android.view.View import android.view.ViewGroup import com.bluelinelabs.conductor.ControllerChangeHandler import com.bluelinelabs.conductor.changehandler....
package eu.kanade.tachiyomi.ui.base.controller import android.animation.Animator import android.animation.AnimatorSet import android.animation.ObjectAnimator import android.view.View import android.view.ViewGroup import com.bluelinelabs.conductor.ControllerChangeHandler import com.bluelinelabs.conductor.changehandler....
apache-2.0
Kotlin
4714471c85fc3d0c0e77ccae26fae22ce97d4354
refactor #412 Enable to inject testing disptachers.
toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Yobidashi_kt
app/src/main/java/jp/toastkid/yobidashi/search/history/usecase/ClearItemsUseCase.kt
app/src/main/java/jp/toastkid/yobidashi/search/history/usecase/ClearItemsUseCase.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
9250e65c2312e0f86f830aae6225f0984e1069a2
Add test party emitter
DanielMartinus/Konfetti
konfetti/core/src/test/java/nl/dionsegijn/konfetti/core/emitter/PartyEmitterTest.kt
konfetti/core/src/test/java/nl/dionsegijn/konfetti/core/emitter/PartyEmitterTest.kt
package nl.dionsegijn.konfetti.core.emitter import android.graphics.Rect import nl.dionsegijn.konfetti.core.Party import org.junit.Assert import org.junit.Test import org.mockito.ArgumentMatchers import org.mockito.Mockito class PartyEmitterTest { private val drawArea: Rect = Mockito.mock(Rect::class.java).apply...
isc
Kotlin
7e1812d66d26525431b9e60e8555de73beaedd80
Fix test.
cbeust/klaxon,cbeust/klaxon,cbeust/klaxon
klaxon/src/test/kotlin/com/beust/klaxon/NullValueTest.kt
klaxon/src/test/kotlin/com/beust/klaxon/NullValueTest.kt
package com.beust.klaxon import org.assertj.core.api.Assertions.assertThat import org.testng.annotations.Test @Test class NullValueTest { fun nullStrings() { assertThat(Klaxon().toJsonString(listOf(1, 2, null, null, 3))) .isEqualTo("[1, 2, null, null, 3]") } }
package com.beust.klaxon import org.assertj.core.api.Assertions.assertThat import org.testng.annotations.Test @Test class NullValueTest { fun nullStrings() { val v = Klaxon().toJsonString(listOf(1, 2, null, null, 3)) assertThat(v).isEqualTo("[1, 2, null, null, 3") } }
apache-2.0
Kotlin
bd2605d1cd5bde03f27ce1c672b5c15b7adebaa1
add reduce methods
norswap/violin,norswap/violin
src/norswap/violin/stream/Consumers.kt
src/norswap/violin/stream/Consumers.kt
package norswap.violin.stream /** * Applies [f] to each item in the stream. */ inline fun <T: Any> Stream<T>.each(f: (T) -> Unit) { var tmp = next() while (tmp != null) { f(tmp) ; tmp = next() } } /** * Pulls all the items of the stream into an array and returns it. */ inline fun <reified T: Any> Stream<T...
package norswap.violin.stream /** * Applies [f] to each item in the stream. */ inline fun <T: Any> Stream<T>.each(f: (T) -> Unit) { var tmp = next() while (tmp != null) { f(tmp) ; tmp = next() } } /** * Pulls all the items of the stream into an array and returns it. */ inline fun <reified T: Any> Stream<T...
bsd-3-clause
Kotlin
6e2e73b2ae9dfa68a347587c43aa5e05e3d91a2c
Add calculateRecurrentRelevance method
KotlinNLP/SimpleDNN
src/kotlin/com/kotlinnlp/simplednn/core/layers/recurrent/RecurrentLayerStructure.kt
src/kotlin/com/kotlinnlp/simplednn/core/layers/recurrent/RecurrentLayerStructure.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
3aca37926e8abe8bb25e9b5fc8fadb189f378a99
Update Homes
Homes-MinecraftServerMod/Homes,Homes-MinecraftServerMod/Homes
src/main/kotlin/com/masahirosaito/spigot/homes/Homes.kt
src/main/kotlin/com/masahirosaito/spigot/homes/Homes.kt
package com.masahirosaito.spigot.homes import com.masahirosaito.spigot.homes.commands.HomeCommand import com.masahirosaito.spigot.homes.homedata.HomeData import com.masahirosaito.spigot.homes.homedata.PlayerHome import com.masahirosaito.spigot.homes.listeners.PlayerRespawnListener import com.masahirosaito.spigot.homes...
package com.masahirosaito.spigot.homes import com.masahirosaito.spigot.homes.commands.HomeCommand import com.masahirosaito.spigot.homes.homedata.HomeData import com.masahirosaito.spigot.homes.homedata.PlayerHome import com.masahirosaito.spigot.homes.listeners.PlayerRespawnListener import com.masahirosaito.spigot.homes...
apache-2.0
Kotlin
e2907159504646fd0301ed9d63dc7e30d0e056e7
Increase stub version
Ruben-Sten/TeXiFy-IDEA,Ruben-Sten/TeXiFy-IDEA,Ruben-Sten/TeXiFy-IDEA,Ruben-Sten/TeXiFy-IDEA
src/nl/hannahsten/texifyidea/BibtexParserDefinition.kt
src/nl/hannahsten/texifyidea/BibtexParserDefinition.kt
package nl.hannahsten.texifyidea import com.intellij.lang.ASTNode import com.intellij.lang.Language import com.intellij.lang.ParserDefinition import com.intellij.lang.ParserDefinition.SpaceRequirements import com.intellij.openapi.project.Project import com.intellij.psi.FileViewProvider import com.intellij.psi.PsiEleme...
package nl.hannahsten.texifyidea import com.intellij.lang.ASTNode import com.intellij.lang.Language import com.intellij.lang.ParserDefinition import com.intellij.lang.ParserDefinition.SpaceRequirements import com.intellij.openapi.project.Project import com.intellij.psi.FileViewProvider import com.intellij.psi.PsiEleme...
mit
Kotlin
95a4ad213170d63441147b1468286e0c10391e0a
Update AndroidX.AppCompat to 1.1.0
saschpe/android-versioninfo,saschpe/android-versioninfo,saschpe/android-versioninfo
app/build.gradle.kts
app/build.gradle.kts
/* * Copyright 2016 Sascha Peilicke * * 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 2016 Sascha Peilicke * * 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
264cef7d8bd34b17b35ecdb810932c2f68072c00
Update latest version 2.3.2
shiraji/permissions-dispatcher-plugin,shiraji/permissions-dispatcher-plugin,shiraji/permissions-dispatcher-plugin
src/main/kotlin/com/github/shiraji/permissionsdispatcherplugin/data/PdVersion.kt
src/main/kotlin/com/github/shiraji/permissionsdispatcherplugin/data/PdVersion.kt
package com.github.shiraji.permissionsdispatcherplugin.data enum class PdVersion { NOTFOUND, VERSION_2_1_3, UNKNOWN; companion object { fun fromText(versionText: String): PdVersion { return when (versionText) { "2.1.3" -> VERSION_2_1_3 else -> UNKNOW...
package com.github.shiraji.permissionsdispatcherplugin.data enum class PdVersion { NOTFOUND, VERSION_2_1_3, UNKNOWN; companion object { fun fromText(versionText: String): PdVersion { return when (versionText) { "2.1.3" -> VERSION_2_1_3 else -> UNKNOW...
apache-2.0
Kotlin
d2d817d562ec31cd0d85724f177183f238856ba1
refactor #412 Add suppress annotation.
toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Jitte
app/src/test/java/jp/toastkid/yobidashi/search/usecase/ContentSwitcherUseCaseTest.kt
app/src/test/java/jp/toastkid/yobidashi/search/usecase/ContentSwitcherUseCaseTest.kt
/* * Copyright (c) 2021 toastkidjp. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompany this distribution. * The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html. */ package jp...
/* * 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
5c9480b15d01c19f1035a33c4703789a92ddd22d
add serialized name to user registration request
StepicOrg/stepic-android,StepicOrg/stepic-android,StepicOrg/stepik-android,StepicOrg/stepic-android,StepicOrg/stepik-android,StepicOrg/stepik-android
app/src/main/java/org/stepik/android/remote/auth/model/UserRegistrationRequest.kt
app/src/main/java/org/stepik/android/remote/auth/model/UserRegistrationRequest.kt
package org.stepik.android.remote.auth.model import com.google.gson.annotations.SerializedName import org.stepik.android.model.user.RegistrationCredentials class UserRegistrationRequest( @SerializedName("user") val user: RegistrationCredentials )
package org.stepik.android.remote.auth.model import org.stepik.android.model.user.RegistrationCredentials class UserRegistrationRequest(val user: RegistrationCredentials)
apache-2.0
Kotlin
5a056d8fffae34852ccffc3ec9dff0d2be60902c
test #254
Litote/kmongo,Litote/kmongo,Litote/kmongo
kmongo-core-tests/src/main/kotlin/org/litote/kmongo/issues/Issue254PathCaching.kt
kmongo-core-tests/src/main/kotlin/org/litote/kmongo/issues/Issue254PathCaching.kt
/* * Copyright (C) 2016/2020 Litote * * 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
8e73dd8f415b14efa66b0b55f386bfdd56eb6b5b
use java 8 as target and source versions
jgitver/gradle-jgitver-plugin,jgitver/gradle-jgitver-plugin,jgitver/gradle-jgitver-plugin
build.gradle.kts
build.gradle.kts
plugins { id("com.gradle.plugin-publish") version "0.12.0" id("fr.brouillard.oss.gradle.jgitver") version "0.9.1" id("java-gradle-plugin") id("maven") // for local tests id("se.bjurr.gitchangelog.git-changelog-gradle-plugin") version "1.64" } group = "fr.brouillard.oss.gradle" jgitver { ...
plugins { id("com.gradle.plugin-publish") version "0.12.0" id("fr.brouillard.oss.gradle.jgitver") version "0.9.1" id("java-gradle-plugin") id("maven") // for local tests id("se.bjurr.gitchangelog.git-changelog-gradle-plugin") version "1.64" } group = "fr.brouillard.oss.gradle" jgitver { ...
apache-2.0
Kotlin
3c77a004a600e11eeadf0db2a66d7ca02f94c9c3
Update `com.beust:klaxon:5.5` to `5.6`
chimbori/crux,chimbori/crux
build.gradle.kts
build.gradle.kts
import org.jetbrains.kotlin.gradle.dsl.ExplicitApiMode.Strict import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { kotlin("jvm") version "1.6.20" id("com.vanniktech.maven.publish") version "0.20.0" id("com.github.ben-manes.versions") version "0.42.0" } repositories { mavenCentral() } buildscript ...
import org.jetbrains.kotlin.gradle.dsl.ExplicitApiMode.Strict import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { kotlin("jvm") version "1.6.20" id("com.vanniktech.maven.publish") version "0.20.0" id("com.github.ben-manes.versions") version "0.42.0" } repositories { mavenCentral() } buildscript ...
apache-2.0
Kotlin
4d74d7f7d86a55674b81a97ce1b15cb09b82d04f
Update test data
noemus/kotlin-eclipse,noemus/kotlin-eclipse
kotlin-eclipse-ui-test/testData/diagnostics/j+k/kt2152.kt
kotlin-eclipse-ui-test/testData/diagnostics/j+k/kt2152.kt
//FILE: Bbb.kt open class Bbb //FILE: Ccc.java public class Ccc extends Bbb { } //FILE: Ddd.kt import Ccc
//FILE: Bbb.kt open class Bbb //FILE: Ccc.java public class Ccc extends Bbb { } //FILE: Ddd.kt import <!USELESS_SIMPLE_IMPORT!>Ccc<!>
apache-2.0
Kotlin
01606ded6d8483f0f86c7fc3668d297301441893
Update Application.kt
elifarley/kotlin-examples,elifarley/kotlin-misc-lib,elifarley/kotlin-misc-lib,elifarley/kotlin-examples
src/com/github/elifarley/kotlin/Application.kt
src/com/github/elifarley/kotlin/Application.kt
package com.orgecc.myproj import org.springframework.boot.SpringApplication import org.springframework.boot.autoconfigure.SpringBootApplication import org.springframework.context.annotation.Bean import java.nio.file.Path import java.util.concurrent.Executors @SpringBootApplication @EntityScan(basePackages = { "com.or...
package inotify import com.m4u.cielo.ws.pushnotification.unit import org.springframework.boot.SpringApplication import org.springframework.boot.autoconfigure.SpringBootApplication import org.springframework.context.annotation.Bean import java.nio.file.Path import java.util.concurrent.Executors @SpringBootApplication ...
mit
Kotlin
b0a1d936fa88fae11e5d470f42839416f0f6d946
Fix typo in task 40's documentation
AlexKrupa/kotlin-koans,wickedwukong/kotlin-koans,sleberknight/kotlin-koans,Kotlin/kotlin-koans,jensim/kotlin-koans,johnnywey/kotlin-koans,ncruz8991/kotlin-koans,verhoevenv/kotlin-koans,jasonmfehr/kotlin-koans,mvaldez/kotlin-examples,rpandey1234/kotlin-koans,Kotlin/kotlin-koans,thatadamedwards/kotlin-koans,mvaldez/kotli...
src/v_builders/_40_BuildersHowItWorks.kt
src/v_builders/_40_BuildersHowItWorks.kt
package v_builders.builders import util.questions.Answer import util.questions.Answer.* fun todoTask40(): Nothing = TODO( """ Task 40. Look at the questions below and give your answers: change 'insertAnswerHere()' in task40's map to your choice (a, b or c). All the constants are i...
package v_builders.builders import util.questions.Answer import util.questions.Answer.* fun todoTask40(): Nothing = TODO( """ Task 40. Look at the questions below and give your answers: change 'insertAnswerHere()' in task26's map to your choice (a, b or c). All the constants are i...
mit
Kotlin
888574b3a10bc6456d8c6cec40dd95ca5ce84c3e
remove sendPermissionMsg from SubCommand
Homes-MinecraftServerMod/Homes,Homes-MinecraftServerMod/Homes
src/main/kotlin/com/masahirosaito/spigot/homes/commands/subcommands/SubCommand.kt
src/main/kotlin/com/masahirosaito/spigot/homes/commands/subcommands/SubCommand.kt
package com.masahirosaito.spigot.homes.commands.subcommands import com.masahirosaito.spigot.homes.Homes import org.bukkit.entity.Player interface SubCommand { val plugin: Homes val name: String val permission: String val usage: String fun execute(player: Player, args: List<String>): Boolean ...
package com.masahirosaito.spigot.homes.commands.subcommands import com.masahirosaito.spigot.homes.Homes import org.bukkit.ChatColor import org.bukkit.entity.Player interface SubCommand { val plugin: Homes val name: String val permission: String val usage: String fun execute(player: Player, args: ...
apache-2.0
Kotlin
8cde2c7cda81c41305247f1dfecb89784b8cd77d
Fix build error in ForwardingStorageClient introduced in 5016707a438a2f9657989473c66a38d9efeb5c48.
world-federation-of-advertisers/common-jvm,world-federation-of-advertisers/common-jvm
src/main/kotlin/org/wfanet/measurement/storage/testing/ForwardingStorageClient.kt
src/main/kotlin/org/wfanet/measurement/storage/testing/ForwardingStorageClient.kt
package org.wfanet.measurement.storage.testing import com.google.protobuf.ByteString import io.grpc.Status import io.grpc.StatusException import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.map import kotlinx.coroutines.runBlocking import org.wfanet.measurement.internal.testing.CreateBlobRequest import ...
package org.wfanet.measurement.storage.testing import com.google.protobuf.ByteString import io.grpc.Status import io.grpc.StatusException import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.map import kotlinx.coroutines.runBlocking import org.wfanet.measurement.internal.testing.CreateBlobRequest import ...
apache-2.0
Kotlin
ff9518c9dda27e80d284ba7a4ae25478db5e7618
refactor #511 Add test case.
toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Yobidashi_kt
lib/src/test/java/jp/toastkid/lib/io/TextFileFilterTest.kt
lib/src/test/java/jp/toastkid/lib/io/TextFileFilterTest.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
11ef2e4e5c80cdf618874274d645454300078b92
Fix documentation typo
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/BuildOnServer.kt
buildSrc/src/main/kotlin/androidx/build/BuildOnServer.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
ba9d1290e9ba88d0509a4d0553c6ce8975af0b38
Introduce a class registry capable of class lazy resolving
MichaelRocks/lightsaber,MichaelRocks/lightsaber
processor/src/main/kotlin/io/michaelrocks/lightsaber/processor/files/ClassRegistry.kt
processor/src/main/kotlin/io/michaelrocks/lightsaber/processor/files/ClassRegistry.kt
/* * Copyright 2015 Michael Rozumyanskiy * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
apache-2.0
Kotlin
5aa482d92d61868b58695cf3eab26d086ffe9061
Make the CycleSearcher a generic class
MichaelRocks/lightsaber,MichaelRocks/lightsaber
processor/src/main/kotlin/io/michaelrocks/lightsaber/processor/graph/CycleSearcher.kt
processor/src/main/kotlin/io/michaelrocks/lightsaber/processor/graph/CycleSearcher.kt
/* * Copyright 2016 Michael Rozumyanskiy * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
/* * Copyright 2016 Michael Rozumyanskiy * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
apache-2.0
Kotlin
71c8c9e5eabe9b297b1057a4f347b3130c2ae36e
remove old code
jitsi/jitsi-videobridge,jitsi/jitsi-videobridge,jitsi/jitsi-videobridge,jitsi/jitsi-videobridge,jitsi/jitsi-videobridge,jitsi/jitsi-videobridge,jitsi/jitsi-videobridge
src/main/kotlin/org/jitsi/nlj/PacketHandler.kt
src/main/kotlin/org/jitsi/nlj/PacketHandler.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
d1ce726ad025403d68d194719dd01ef2a731c01a
update name & description
mockk/mockk,mockk/mockk,mockk/mockk,mockk/mockk,mockk/mockk,mockk/mockk
modules/mockk-platform-tools/build.gradle.kts
modules/mockk-platform-tools/build.gradle.kts
import buildsrc.config.Deps plugins { buildsrc.convention.`kotlin-multiplatform` buildsrc.convention.`mockk-publishing` } description = "MockK tools that are used by other MockK modules" val mavenName: String by extra("MockK Platform Tools") val mavenDescription: String by extra("${project.description}") k...
import buildsrc.config.Deps plugins { buildsrc.convention.`kotlin-multiplatform` buildsrc.convention.`mockk-publishing` } description = "MockK Platform Tools" val mavenName: String by extra("MockK Core") val mavenDescription: String by extra("${project.description}") kotlin { jvm() sourceSets { ...
apache-2.0
Kotlin
96d7dc7448348e7a9aa4efcc90a592f1bbe5a672
Advance deprecation cycle of awaitCancellation()
LouisCAD/Splitties,LouisCAD/Splitties,LouisCAD/Splitties
modules/coroutines/src/commonMain/kotlin/splitties/coroutines/AwaitCancellation.kt
modules/coroutines/src/commonMain/kotlin/splitties/coroutines/AwaitCancellation.kt
/* * Copyright 2020-2021 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license. */ package splitties.coroutines import kotlinx.coroutines.CancellationException import kotlinx.coroutines.awaitCancellation as kotlinxCoroutinesAwaitCancellation /** * **THIS FUNCTION WILL BE REMOV...
/* * Copyright 2020-2021 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license. */ package splitties.coroutines import kotlinx.coroutines.CancellationException import kotlinx.coroutines.awaitCancellation as kotlinxCoroutinesAwaitCancellation /** * **THIS FUNCTION WILL BE REMOV...
apache-2.0
Kotlin
84f57c7cf6a8e6f77be2e4c0abd5f7bcf8041cb9
Add build failure check to formatting gradle task - closes #159
rock3r/detekt,arturbosch/detekt,arturbosch/detekt,Mauin/detekt,rock3r/detekt,arturbosch/detekt,Mauin/detekt,Mauin/detekt,Mauin/detekt,rock3r/detekt,MyDogTom/detekt
detekt-formatting/src/main/kotlin/io/gitlab/arturbosch/detekt/formatting/Formatting.kt
detekt-formatting/src/main/kotlin/io/gitlab/arturbosch/detekt/formatting/Formatting.kt
package io.gitlab.arturbosch.detekt.formatting import io.gitlab.arturbosch.detekt.cli.OutputFacade import io.gitlab.arturbosch.detekt.cli.createPathFilters import io.gitlab.arturbosch.detekt.cli.loadConfiguration import io.gitlab.arturbosch.detekt.cli.parseArguments import io.gitlab.arturbosch.detekt.core.Detektor imp...
package io.gitlab.arturbosch.detekt.formatting import io.gitlab.arturbosch.detekt.cli.OutputFacade import io.gitlab.arturbosch.detekt.cli.createPathFilters import io.gitlab.arturbosch.detekt.cli.loadConfiguration import io.gitlab.arturbosch.detekt.cli.parseArguments import io.gitlab.arturbosch.detekt.core.Detektor imp...
apache-2.0
Kotlin
a5937a48864f52deae6b44aa9299c314f716fd04
Add missing resetForTests() to prod.
android/architecture-samples,googlecodelabs/android-testing
app/src/prod/java/com/example/android/architecture/blueprints/todoapp/ServiceLocator.kt
app/src/prod/java/com/example/android/architecture/blueprints/todoapp/ServiceLocator.kt
/* * Copyright (C) 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
/* * Copyright (C) 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
apache-2.0
Kotlin
1728e0fd21ffcdce7537249e35555a09576a7d1b
Fix kotlin style
vase4kin/TeamCityApp,vase4kin/TeamCityApp,vase4kin/TeamCityApp
app/src/main/java/com/github/vase4kin/teamcityapp/overview/data/OpenBrowserEvent.kt
app/src/main/java/com/github/vase4kin/teamcityapp/overview/data/OpenBrowserEvent.kt
/* * Copyright 2019 Andrey Tolpeev * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
/* * Copyright 2019 Andrey Tolpeev * * 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
804cebaa352164c7e220c10f470de81ed3b1dd1d
refactor play mode tests
JetBrains/resharper-unity,JetBrains/resharper-unity,JetBrains/resharper-unity
rider/src/test/kotlin/integrationTests/PlayModeTest.kt
rider/src/test/kotlin/integrationTests/PlayModeTest.kt
package integrationTests import base.integrationTests.* import com.jetbrains.rider.test.annotations.TestEnvironment import com.jetbrains.rider.test.enums.PlatformType import org.testng.annotations.Test @TestEnvironment(platform = [PlatformType.WINDOWS, PlatformType.MAC_OS]) class PlayModeTest : IntegrationTestWithEdi...
package integrationTests import base.integrationTests.* import com.jetbrains.rd.util.reactive.adviseNotNull import com.jetbrains.rdclient.util.idea.pumpMessages import com.jetbrains.rdclient.util.idea.waitAndPump import com.jetbrains.rider.model.EditorLogEntry import com.jetbrains.rider.test.asserts.shouldBe import co...
apache-2.0
Kotlin
d9d526d2f0f20cb16dffa33367ca0455ab528e45
rename PageableCollection to PaginatedCollection
lindar-open/acolyte,lindar-open/acolyte
src/main/kotlin/lindar/acolyte/vo/pagination.kt
src/main/kotlin/lindar/acolyte/vo/pagination.kt
package lindar.acolyte.vo data class PaginatedCollection<T> (val contents: List<T>, val pagination: PaginationVO, val sort: SortVO) data class PaginationVO (val page: Int, val size: Int, val totalPages: Int, val totalElements: Long) { companion object Builder { private var page = 0 private var siz...
package lindar.acolyte.vo data class PageableCollection<T> (val contents: List<T>, val pagination: PaginationVO, val sort: SortVO) data class PaginationVO (val page: Int, val size: Int, val totalPages: Int, val totalElements: Long) { companion object Builder { private var page = 0 private var size...
apache-2.0
Kotlin
a7c0c1a9afdda2b81366f21ace02b59cb8bd7e42
Support for top-level await operator in expression evaluation
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/script-debugger/backend/src/debugger/EvaluateContext.kt
platform/script-debugger/backend/src/debugger/EvaluateContext.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
e75cc31c1d2a459202bab97f948f9565dc8f700d
remove some unnecessary logic
CruGlobal/android-gto-support,CruGlobal/android-gto-support,GlobalTechnology/android-gto-support
gto-support-design/src/main/java/com/google/android/material/tabs/TabLayoutUtils.kt
gto-support-design/src/main/java/com/google/android/material/tabs/TabLayoutUtils.kt
@file:JvmName("TabLayoutUtils") package com.google.android.material.tabs import android.graphics.drawable.Drawable import androidx.annotation.ColorInt import androidx.core.graphics.drawable.DrawableCompat import org.ccci.gto.android.common.util.getDeclaredFieldOrNull private val baseBackgroundDrawableField by lazy {...
@file:JvmName("TabLayoutUtils") package com.google.android.material.tabs import android.graphics.drawable.Drawable import androidx.annotation.ColorInt import androidx.core.graphics.drawable.DrawableCompat import org.ccci.gto.android.common.util.getDeclaredFieldOrNull private val baseBackgroundDrawableField by lazy {...
mit
Kotlin
ace1a0a1a4bbf623ec2050d8db70ed85b34e21e8
Check current week number
kpi-ua/ecampus-client-android
app/src/main/java/com/goldenpiedevs/schedule/app/ui/timetable/TimeTableImplementation.kt
app/src/main/java/com/goldenpiedevs/schedule/app/ui/timetable/TimeTableImplementation.kt
package com.goldenpiedevs.schedule.app.ui.timetable import com.goldenpiedevs.schedule.app.core.dao.timetable.DaoWeekModel import com.goldenpiedevs.schedule.app.core.dao.timetable.DayModel import com.goldenpiedevs.schedule.app.ui.base.BasePresenterImpl import io.realm.Realm import io.realm.RealmList import org.threeten...
package com.goldenpiedevs.schedule.app.ui.timetable import com.goldenpiedevs.schedule.app.core.dao.timetable.DaoWeekModel import com.goldenpiedevs.schedule.app.core.dao.timetable.DayModel import com.goldenpiedevs.schedule.app.ui.base.BasePresenterImpl import io.realm.Realm import io.realm.RealmList import org.threeten...
apache-2.0
Kotlin
bf3532e9639a45c915d163a388af6f5e6f5c4a1d
Add Iterable#segment - a way to break up an iterable object into sublists
UnderMybrella/Visi
src/org/abimon/visi/collections/VCollections.kt
src/org/abimon/visi/collections/VCollections.kt
package org.abimon.visi.collections import java.util.* fun <T, E: MutableCollection<T>> E.addAllReturning(collection: Collection<T>): E { addAll(collection) return this } fun <T, E: MutableCollection<T>> E.addAll(num: Int, adding: (Int) -> T): Boolean { var added = false for(i in 0 until num) ...
package org.abimon.visi.collections import java.util.* fun <T, E: MutableCollection<T>> E.addAllReturning(collection: Collection<T>): E { addAll(collection) return this } fun <T, E: MutableCollection<T>> E.addAll(num: Int, adding: (Int) -> T): Boolean { var added = false for(i in 0 until num) ...
mit
Kotlin
c05f0f8eb2d3b7a0c9c13fd5a74135e53b1688b6
disable ExternalInputPlugin in chromeless mode
clappr/clappr-android,clappr/clappr-android
clappr/src/main/kotlin/io/clappr/player/plugin/core/externalinput/ExternalInputPlugin.kt
clappr/src/main/kotlin/io/clappr/player/plugin/core/externalinput/ExternalInputPlugin.kt
package io.clappr.player.plugin.core.externalinput import android.os.Bundle import android.view.KeyEvent import io.clappr.player.base.Event import io.clappr.player.base.EventData import io.clappr.player.base.NamedType import io.clappr.player.base.keys.Action import io.clappr.player.base.keys.Key import io.clappr.playe...
package io.clappr.player.plugin.core.externalinput import android.os.Bundle import android.view.KeyEvent import io.clappr.player.base.Event import io.clappr.player.base.EventData import io.clappr.player.base.NamedType import io.clappr.player.base.keys.Action import io.clappr.player.base.keys.Key import io.clappr.playe...
bsd-3-clause
Kotlin
0b40ef163aa2004ff0323a67839985143b2793be
Fix request cache log message
tipsy/javalin,tipsy/javalin,tipsy/javalin,tipsy/javalin
src/main/java/io/javalin/http/CachedRequestWrapper.kt
src/main/java/io/javalin/http/CachedRequestWrapper.kt
/* * Javalin - https://javalin.io * Copyright 2017 David Åse * Licensed under Apache 2.0: https://github.com/tipsy/javalin/blob/master/LICENSE */ package io.javalin.http import io.javalin.Javalin import java.io.ByteArrayInputStream import javax.servlet.ReadListener import javax.servlet.ServletInputStream import j...
/* * Javalin - https://javalin.io * Copyright 2017 David Åse * Licensed under Apache 2.0: https://github.com/tipsy/javalin/blob/master/LICENSE */ package io.javalin.http import io.javalin.Javalin import java.io.ByteArrayInputStream import javax.servlet.ReadListener import javax.servlet.ServletInputStream import j...
apache-2.0
Kotlin
553dfdec9cd898cf498c11aa741ad4e799abec09
Fix typo (#10)
ziggy42/kolor
src/main/kotlin/com/andreapivetta/kolor/Extensions.kt
src/main/kotlin/com/andreapivetta/kolor/Extensions.kt
package com.andreapivetta.kolor /** * Extension functions to get colored strings * @author Andrea Pivetta */ fun String.black() = Kolor.foreground(this, Color.BLACK) fun String.red() = Kolor.foreground(this, Color.RED) fun String.green() = Kolor.foreground(this, Color.GREEN) fun String.yellow() = Kolor.foregrou...
package com.andreapivetta.kolor /** * Extension functions to get colored strings * @author Andrea Pivetta */ fun String.black() = Kolor.foreground(this, Color.BLACK) fun String.red() = Kolor.foreground(this, Color.RED) fun String.green() = Kolor.foreground(this, Color.GREEN) fun String.yellow() = Kolor.foregrou...
apache-2.0
Kotlin
7c7456b7ae06ce9d1bdcecde8237fc9b032f2b71
Remove special rendering of Object.getClass(), and handle it as an ordinary JRE method call.
google/xplat,google/xplat,google/xplat,google/xplat
j2kt/jre/java/common/javaemul/lang/Object.kt
j2kt/jre/java/common/javaemul/lang/Object.kt
/* * Copyright 2022 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
apache-2.0
Kotlin
920a0814f7ff5b35729fc828099cea93dad76a73
Make couroutineDispatcher type in configuration generic
pgutkowski/KGraphQL
src/main/kotlin/com/github/pgutkowski/kgraphql/schema/dsl/SchemaConfigurationDSL.kt
src/main/kotlin/com/github/pgutkowski/kgraphql/schema/dsl/SchemaConfigurationDSL.kt
package com.github.pgutkowski.kgraphql.schema.dsl import com.fasterxml.jackson.databind.DeserializationFeature import com.fasterxml.jackson.databind.ObjectMapper import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper import com.github.pgutkowski.kgraphql.configuration.SchemaConfiguration import kotlinx.corouti...
package com.github.pgutkowski.kgraphql.schema.dsl import com.fasterxml.jackson.databind.DeserializationFeature import com.fasterxml.jackson.databind.ObjectMapper import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper import com.github.pgutkowski.kgraphql.configuration.SchemaConfiguration import kotlinx.corouti...
mit
Kotlin
10b292395c7d7e611006c1ca9caf0c20c3e15773
increase timeout for http-calls to 30 seconds
NiciDieNase/chaosflix,NiciDieNase/chaosflix,NiciDieNase/chaosflix,NiciDieNase/chaosflix
common/src/main/java/de/nicidienase/chaosflix/common/mediadata/network/ApiFactory.kt
common/src/main/java/de/nicidienase/chaosflix/common/mediadata/network/ApiFactory.kt
package de.nicidienase.chaosflix.common.mediadata.network import android.content.res.Resources import android.os.Build import com.google.gson.Gson import de.nicidienase.chaosflix.BuildConfig import de.nicidienase.chaosflix.R import de.nicidienase.chaosflix.common.SingletonHolder import okhttp3.Interceptor import okhtt...
package de.nicidienase.chaosflix.common.mediadata.network import android.content.res.Resources import android.os.Build import com.google.gson.Gson import de.nicidienase.chaosflix.BuildConfig import de.nicidienase.chaosflix.R import de.nicidienase.chaosflix.common.SingletonHolder import okhttp3.Interceptor import okhtt...
mit
Kotlin
2ce0169f3c5747a18b65c2ecb80c35cc9f04106f
replace Jsoup with regex
StepicOrg/stepik-android,StepicOrg/stepic-android,StepicOrg/stepic-android,StepicOrg/stepik-android,StepicOrg/stepik-android,StepicOrg/stepic-android
app/src/main/java/org/stepik/android/domain/latex/model/rule/ReplaceModelViewWithImage.kt
app/src/main/java/org/stepik/android/domain/latex/model/rule/ReplaceModelViewWithImage.kt
package org.stepik.android.domain.latex.model.rule import org.stepic.droid.util.toPx class ReplaceModelViewWithImage : ContentRule { companion object { private const val BORDER_RADIUS_DP = 8f private val modelViewerRegex = Regex("<model-viewer\\s*.*>\\s*.*</model-viewer>") private val thu...
package org.stepik.android.domain.latex.model.rule import org.jsoup.Jsoup import org.jsoup.nodes.Element import org.stepic.droid.util.toPx class ReplaceModelViewWithImage : ContentRule { companion object { private const val BORDER_RADIUS_DP = 8f } override fun process(content: String): String { ...
apache-2.0
Kotlin
f664b12b440d7aad2a809b31421cd3906965a6c1
Make SettingsAdapter as lenient. See https://github.com/square/moshi/commit/ed1ea5a755aaa739f2bc91991e32dd6e32a08267
RocketChat/Rocket.Chat.Android.Lily,RocketChat/Rocket.Chat.Android,RocketChat/Rocket.Chat.Android,RocketChat/Rocket.Chat.Android.Lily
app/src/main/java/chat/rocket/android/server/infraestructure/SharedPreferencesSettingsRepository.kt
app/src/main/java/chat/rocket/android/server/infraestructure/SharedPreferencesSettingsRepository.kt
package chat.rocket.android.server.infraestructure import chat.rocket.android.infrastructure.LocalRepository import chat.rocket.android.infrastructure.LocalRepository.Companion.SETTINGS_KEY import chat.rocket.android.server.domain.SettingsRepository import chat.rocket.core.internal.SettingsAdapter import chat.rocket.c...
package chat.rocket.android.server.infraestructure import chat.rocket.android.infrastructure.LocalRepository import chat.rocket.android.infrastructure.LocalRepository.Companion.SETTINGS_KEY import chat.rocket.android.server.domain.SettingsRepository import chat.rocket.core.internal.SettingsAdapter import chat.rocket.c...
mit
Kotlin
6fc908075890b06797eb8141ade126de1fa4b22c
Update to make stack pointer 16-byte aligned
kvakil/venus,kvakil/venus,kvakil/venus
src/main/kotlin/venus/riscv/MemorySegments.kt
src/main/kotlin/venus/riscv/MemorySegments.kt
package venus.riscv /** A singleton containing constants which say where various segments start */ object MemorySegments { /** Memory address where the stack segment starts (growing downwards) */ const val STACK_BEGIN = 0x7fff_fff0 /** Memory address where the heap segment starts */ const val HEAP_BEGI...
package venus.riscv /** A singleton containing constants which say where various segments start */ object MemorySegments { /** Memory address where the stack segment starts (growing downwards) */ const val STACK_BEGIN = 0x7fff_fffc /** Memory address where the heap segment starts */ const val HEAP_BEGI...
mit
Kotlin
9c4061efb52132e770a521ef320f1507c8885d86
Create AHCClientAdapter.kt
elifarley/kotlin-examples,elifarley/kotlin-misc-lib,elifarley/kotlin-examples,elifarley/kotlin-misc-lib
src/com/github/elifarley/kotlin/http/AHCClientAdapter.kt
src/com/github/elifarley/kotlin/http/AHCClientAdapter.kt
package com.orgecc.lib.http import com.jsoniter.JsonIterator import org.asynchttpclient.* import java.util.Map class AHCClientAdapter : HttpClientAdapter<AsyncHttpClient, BoundRequestBuilder>() { override val toSimpleHeaders: BoundRequestBuilder.() -> Headers = { val field = RequestBuilderBase::class.ja...
mit
Kotlin
c7b92ae04509c5e026a7acfc0bba7aac7e41b045
Bump optional jackson-kt dep
tipsy/javalin,tipsy/javalin,tipsy/javalin,tipsy/javalin
src/main/java/io/javalin/core/util/OptionalDependency.kt
src/main/java/io/javalin/core/util/OptionalDependency.kt
/* * Javalin - https://javalin.io * Copyright 2017 David Åse * Licensed under Apache 2.0: https://github.com/tipsy/javalin/blob/master/LICENSE */ package io.javalin.core.util enum class OptionalDependency(val displayName: String, val testClass: String, val groupId: String, val artifactId: String, val version: Str...
/* * Javalin - https://javalin.io * Copyright 2017 David Åse * Licensed under Apache 2.0: https://github.com/tipsy/javalin/blob/master/LICENSE */ package io.javalin.core.util enum class OptionalDependency(val displayName: String, val testClass: String, val groupId: String, val artifactId: String, val version: Str...
apache-2.0
Kotlin
c3f5d2d79d8277e44abaa58936d7b0359d5e606c
Update dependencies
secdec/zap-extensions,secdec/zap-extensions,kingthorin/zap-extensions,kingthorin/zap-extensions,zaproxy/zap-extensions,zaproxy/zap-extensions,kingthorin/zap-extensions,zapbot/zap-extensions,secdec/zap-extensions,psiinon/zap-extensions,denniskniep/zap-extensions,thc202/zap-extensions,zaproxy/zap-extensions,psiinon/zap-e...
addOns/pscanrulesBeta/pscanrulesBeta.gradle.kts
addOns/pscanrulesBeta/pscanrulesBeta.gradle.kts
import org.zaproxy.gradle.addon.AddOnStatus version = "22" description = "The beta quality Passive Scanner rules" zapAddOn { addOnName.set("Passive scanner rules (beta)") addOnStatus.set(AddOnStatus.BETA) zapVersion.set("2.9.0") manifest { author.set("ZAP Dev Team") url.set("https://w...
import org.zaproxy.gradle.addon.AddOnStatus version = "22" description = "The beta quality Passive Scanner rules" zapAddOn { addOnName.set("Passive scanner rules (beta)") addOnStatus.set(AddOnStatus.BETA) zapVersion.set("2.9.0") manifest { author.set("ZAP Dev Team") url.set("https://w...
apache-2.0
Kotlin
844d7e9af0f893be4f7eb7ff0fad0ae29dafb689
Update velocity optional dependency
tipsy/javalin,tipsy/javalin,tipsy/javalin,tipsy/javalin
src/main/java/io/javalin/core/util/OptionalDependency.kt
src/main/java/io/javalin/core/util/OptionalDependency.kt
/* * Javalin - https://javalin.io * Copyright 2017 David Åse * Licensed under Apache 2.0: https://github.com/tipsy/javalin/blob/master/LICENSE */ package io.javalin.core.util enum class OptionalDependency(val displayName: String, val testClass: String, val groupId: String, val artifactId: String, val version: Str...
/* * Javalin - https://javalin.io * Copyright 2017 David Åse * Licensed under Apache 2.0: https://github.com/tipsy/javalin/blob/master/LICENSE */ package io.javalin.core.util enum class OptionalDependency(val displayName: String, val testClass: String, val groupId: String, val artifactId: String, val version: Str...
apache-2.0
Kotlin
c39ea57f1935dac62525e9ecd28edc28a9761fef
Fix ReturnCount issue
Mauin/detekt,arturbosch/detekt,rock3r/detekt,arturbosch/detekt,rock3r/detekt,Mauin/detekt,Mauin/detekt,rock3r/detekt,arturbosch/detekt,Mauin/detekt
detekt-intellij-plugin/src/main/kotlin/io/gitlab/arturbosch/detekt/DetektAnnotator.kt
detekt-intellij-plugin/src/main/kotlin/io/gitlab/arturbosch/detekt/DetektAnnotator.kt
package io.gitlab.arturbosch.detekt import com.intellij.ide.projectView.impl.ProjectRootsUtil import com.intellij.lang.annotation.AnnotationHolder import com.intellij.lang.annotation.ExternalAnnotator import com.intellij.openapi.util.TextRange import com.intellij.openapi.vfs.VirtualFile import com.intellij.psi.PsiFile...
package io.gitlab.arturbosch.detekt import com.intellij.ide.projectView.impl.ProjectRootsUtil import com.intellij.lang.annotation.AnnotationHolder import com.intellij.lang.annotation.ExternalAnnotator import com.intellij.openapi.util.TextRange import com.intellij.openapi.vfs.VirtualFile import com.intellij.psi.PsiFile...
apache-2.0
Kotlin
e8ba9d73fe85bd54bc89e8c0b953611c59bfc039
refactor #289 Convert to expression body.
toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Jitte
app/src/main/java/jp/toastkid/yobidashi/settings/initial/InitialIndexSettingUseCase.kt
app/src/main/java/jp/toastkid/yobidashi/settings/initial/InitialIndexSettingUseCase.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
6fce721e4f03192cdef06fe986a7e12b5238612c
Exclude enterprise subproject for now
gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpira...
.teamcity/Gradle_Check/model/GradleSubprojectProvider.kt
.teamcity/Gradle_Check/model/GradleSubprojectProvider.kt
/* * Copyright 2019 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 2019 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
54af56b1dfb8b026a61abb10efc18e4ed0a9233c
修改 demo
neverwoodsS/MagicPen,neverwoodsS/MagicPen
app/src/main/java/com/lab/zhangll/magicpen/MainActivity.kt
app/src/main/java/com/lab/zhangll/magicpen/MainActivity.kt
package com.lab.zhangll.magicpen import android.graphics.Color import android.graphics.Paint import android.graphics.PointF import android.support.v7.app.AppCompatActivity import android.os.Bundle import com.lab.zhangll.magicpen.lib.* class MainActivity : AppCompatActivity() { override fun onCreate(savedInstance...
package com.lab.zhangll.magicpen import android.graphics.Color import android.graphics.Paint import android.graphics.PointF import android.support.v7.app.AppCompatActivity import android.os.Bundle import android.widget.Toast import com.lab.zhangll.magicpen.lib.* class MainActivity : AppCompatActivity() { overrid...
mit
Kotlin
95972a9bad8eddc87ab4a0a363533ccc6a035413
refactor #385 Rename test function.
toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Yobidashi_kt
app/src/test/java/jp/toastkid/yobidashi/libs/InputsTest.kt
app/src/test/java/jp/toastkid/yobidashi/libs/InputsTest.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
d1579acb4b18148ff7a1bd5fde2046c36c5bf6b6
Bump the version.
SpineEventEngine/base,SpineEventEngine/base,SpineEventEngine/base
version.gradle.kts
version.gradle.kts
/* * Copyright 2020, TeamDev. All rights reserved. * * Redistribution and use in source and/or binary forms, with or without * modification, must retain the above copyright notice and the following * disclaimer. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR...
/* * Copyright 2020, TeamDev. All rights reserved. * * Redistribution and use in source and/or binary forms, with or without * modification, must retain the above copyright notice and the following * disclaimer. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR...
apache-2.0
Kotlin
552a8f7b27fb8f83912fadc67d261e6fc0f811e5
Bump the version.
SpineEventEngine/base,SpineEventEngine/base,SpineEventEngine/base
version.gradle.kts
version.gradle.kts
/* * Copyright 2020, TeamDev. All rights reserved. * * Redistribution and use in source and/or binary forms, with or without * modification, must retain the above copyright notice and the following * disclaimer. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR...
/* * Copyright 2020, TeamDev. All rights reserved. * * Redistribution and use in source and/or binary forms, with or without * modification, must retain the above copyright notice and the following * disclaimer. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR...
apache-2.0
Kotlin
dad325e9f434e585e706fbcd5d45a322d60b9e8f
add copyright
chengpo/number-speller,chengpo/number-speller
app/src/test/java/com/monkeyapp/numbers/AssertUtils.kt
app/src/test/java/com/monkeyapp/numbers/AssertUtils.kt
/* MIT License Copyright (c) 2017 - 2018 Po Cheng Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish...
package com.monkeyapp.numbers import org.junit.Assert infix fun <T> T.shouldEqual(expect: T) { Assert.assertEquals(expect, this) } infix fun <T> Comparable<T>.shouldLessThan(expect: T) { Assert.assertTrue("should less than $expect", this < expect) }
mit
Kotlin
2eb1ff497659a1f74e39217848c96a41ecfa3a4e
Align Kotlin versions
jponge/vertx-gradle-plugin,jponge/vertx-gradle-plugin,jponge/vertx-gradle-plugin,jponge/vertx-gradle-plugin
build.gradle.kts
build.gradle.kts
import org.gradle.api.tasks.wrapper.Wrapper.DistributionType.ALL import org.jetbrains.kotlin.gradle.tasks.KotlinCompile /* * Copyright 2017-2019 Red Hat, 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 c...
import org.gradle.api.tasks.wrapper.Wrapper.DistributionType.ALL import org.jetbrains.kotlin.gradle.tasks.KotlinCompile /* * Copyright 2017-2019 Red Hat, 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 c...
apache-2.0
Kotlin
c81debe6604e11edf005482c0c44c5b1896f4401
Bump assertj-core from 3.18.1 to 3.19.0 (#3403)
arturbosch/detekt,arturbosch/detekt,arturbosch/detekt
detekt-bom/build.gradle.kts
detekt-bom/build.gradle.kts
plugins { `java-platform` } dependencies { val version = object { val spek = "2.0.15" val ktlint = "0.40.0" } constraints { api("org.assertj:assertj-core:3.19.0") api("org.spekframework.spek2:spek-dsl-jvm:${version.spek}") api("org.spekframework.spek2:spek-runne...
plugins { `java-platform` } dependencies { val version = object { val spek = "2.0.15" val ktlint = "0.40.0" } constraints { api("org.assertj:assertj-core:3.18.1") api("org.spekframework.spek2:spek-dsl-jvm:${version.spek}") api("org.spekframework.spek2:spek-runne...
apache-2.0
Kotlin
a801edd1bc5243a0bbbdbc3e7c4e33ad8e5e2015
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/athena/build.gradle.kts
kotlin/services/athena/build.gradle.kts
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { kotlin("jvm") version "1.5.31" id("io.gitlab.arturbosch.detekt").version("1.16.0-RC1") application } group = "me.scmacdon" version = "1.0-SNAPSHOT" buildscript { repositories { jcenter() } } repositories { mavenCentral(...
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { kotlin("jvm") version "1.5.31" id("io.gitlab.arturbosch.detekt").version("1.16.0-RC1") application } group = "me.scmacdon" version = "1.0-SNAPSHOT" buildscript { repositories { jcenter() } } repositories { mavenCentral(...
apache-2.0
Kotlin
382affc198c59122f549ef1e9b1e4d4206323481
Convert filter query from String to dedicated object (FilterQuery). A filter query can be negated or not
ktoolz/file-finder
core/src/main/kotlin/com/github/ktoolz/model/namespace.kt
core/src/main/kotlin/com/github/ktoolz/model/namespace.kt
package com.github.ktoolz.model import javaslang.collection.List import java.io.File /** * Store a search result */ data class SearchResult(val score: Int, val file: File) { val filename: String by lazy { file.name } } data class FilterQuery(val name: String, val negated: Boolean = false) data class SearchQue...
package com.github.ktoolz.model import javaslang.collection.List import java.io.File /** * Store a search result */ data class SearchResult(val score: Int, val file: File) { val filename: String by lazy { file.name } } data class SearchQuery(val term: String, val contexts: List<String>, val directories: List<S...
mit
Kotlin
dd8e9b858bfd5bb1b17e697ce4b7d76ac128163d
Clean code
jaychang0917/SimpleApiClient,jaychang0917/SimpleApiClient
library/src/main/java/com/jaychang/sac/ApiClientConfig.kt
library/src/main/java/com/jaychang/sac/ApiClientConfig.kt
package com.jaychang.sac import okhttp3.logging.HttpLoggingInterceptor import java.util.concurrent.TimeUnit typealias LogLevel = HttpLoggingInterceptor.Level data class ApiClientConfig( var baseUrl: String = "", var connectTimeout: Long = TimeUnit.MINUTES.toMillis(1), var readTimeout: Long = TimeUnit.MINUTES.t...
package com.jaychang.sac import okhttp3.logging.HttpLoggingInterceptor import java.util.concurrent.TimeUnit import kotlin.reflect.KClass typealias LogLevel = HttpLoggingInterceptor.Level data class ApiClientConfig( var baseUrl: String = "", var connectTimeout: Long = TimeUnit.MINUTES.toMillis(1), var readTimeo...
apache-2.0
Kotlin
b55c4ef14fd155513bbce56c84c1d36210065e17
Fix comments
agoda-com/Kakao
kakao/src/main/kotlin/com/agoda/kakao/screen/Screen.kt
kakao/src/main/kotlin/com/agoda/kakao/screen/Screen.kt
@file:Suppress("unused") package com.agoda.kakao.screen import android.view.View import androidx.test.espresso.Espresso import androidx.test.espresso.UiController import androidx.test.espresso.ViewAction import androidx.test.espresso.ViewInteraction import androidx.test.espresso.matcher.ViewMatchers import com.agoda....
@file:Suppress("unused") package com.agoda.kakao.screen import android.view.View import androidx.test.espresso.Espresso import androidx.test.espresso.UiController import androidx.test.espresso.ViewAction import androidx.test.espresso.ViewInteraction import androidx.test.espresso.matcher.ViewMatchers import com.agoda....
apache-2.0
Kotlin
d9b5ced2d5324490771f5b7f3b11b101d0b96493
handle Tasks.await exceptions to avoid crash.
UweTrottmann/SeriesGuide,UweTrottmann/SeriesGuide
app/src/main/java/com/battlelancer/seriesguide/backend/FirebaseHttpRequestInitializer.kt
app/src/main/java/com/battlelancer/seriesguide/backend/FirebaseHttpRequestInitializer.kt
package com.battlelancer.seriesguide.backend import com.google.android.gms.tasks.Tasks import com.google.api.client.http.HttpExecuteInterceptor import com.google.api.client.http.HttpRequest import com.google.api.client.http.HttpRequestInitializer import com.google.firebase.auth.FirebaseUser import java.io.IOException ...
package com.battlelancer.seriesguide.backend import com.google.android.gms.tasks.Tasks import com.google.api.client.http.HttpExecuteInterceptor import com.google.api.client.http.HttpRequest import com.google.api.client.http.HttpRequestInitializer import com.google.firebase.auth.FirebaseAuthException import com.google....
apache-2.0
Kotlin
1bf21253276c1715682e4c34be6284ec66a28158
Support destructuring declarations
michaelbull/kotlin-result
src/main/kotlin/com/github/michaelbull/result/Result.kt
src/main/kotlin/com/github/michaelbull/result/Result.kt
package com.github.michaelbull.result /** * [Result] is a type that represents either success ([Ok]) or failure ([Err]). * * - Elm: [Result](http://package.elm-lang.org/packages/elm-lang/core/5.1.1/Result) * - Haskell: [Data.Either](https://hackage.haskell.org/package/base-4.10.0.0/docs/Data-Either.html) * - Rust...
package com.github.michaelbull.result /** * [Result] is a type that represents either success ([Ok]) or failure ([Err]). * * - Elm: [Result](http://package.elm-lang.org/packages/elm-lang/core/5.1.1/Result) * - Haskell: [Data.Either](https://hackage.haskell.org/package/base-4.10.0.0/docs/Data-Either.html) * - Rust...
isc
Kotlin
bb4790462cd1f488d2a4b1ec96a31d8667b812e2
Remove unused import
ids1024/lsdict-android
src/main/kotlin/com/ids1024/lsdict/LSDict.kt
src/main/kotlin/com/ids1024/lsdict/LSDict.kt
package com.ids1024.lsdict import android.app.ListActivity import android.os.Bundle import android.database.sqlite.SQLiteDatabase import android.view.Menu import android.content.Context import android.app.SearchManager import android.widget.SearchView import android.content.Intent public class LSDict : ListActivity()...
package com.ids1024.lsdict import android.app.ListActivity import android.os.Bundle import android.database.sqlite.SQLiteDatabase import android.widget.SimpleCursorAdapter import android.view.Menu import android.content.Context import android.app.SearchManager import android.widget.SearchView import android.content.In...
mit
Kotlin
f60b6ed707fef5e70306b014ac6228446c991ff3
Create NotHavePermissionException
Homes-MinecraftServerMod/Homes,Homes-MinecraftServerMod/Homes
src/test/java/com/masahirosaito/spigot/homes/tests/exceptions/NotHavePermissionException.kt
src/test/java/com/masahirosaito/spigot/homes/tests/exceptions/NotHavePermissionException.kt
package com.masahirosaito.spigot.homes.tests.exceptions import com.masahirosaito.spigot.homes.tests.commands.Permission class NotHavePermissionException(permission: Permission) : Exception("You don't have permission <${permission.permission}>")
apache-2.0
Kotlin
eb0fdfa792931467ac9be69c896269ec5d0690e2
Revise RxProperty documentation to reflect the readme
snarks/RxProperty
src/main/kotlin/io/github/snarks/rxproperty/RxProperty.kt
src/main/kotlin/io/github/snarks/rxproperty/RxProperty.kt
/* * Copyright 2017 James Cruz * * 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...
/* * Copyright 2017 James Cruz * * 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...
apache-2.0
Kotlin
7a30e9bab18995c5412b686ed1ead6323e3c95e9
Add UType support
kvakil/venus,kvakil/venus,kvakil/venus
src/main/kotlin/venus/riscv/insts/dsl/UTypeInstruction.kt
src/main/kotlin/venus/riscv/insts/dsl/UTypeInstruction.kt
package venus.riscv.insts.dsl import venus.riscv.InstructionField import venus.riscv.MachineCode import venus.riscv.Program import venus.simulator.Simulator private const val MIN_U_VALUE = 0 private const val MAX_U_VALUE = 1048575 class UTypeInstruction( name: String, length: Int, opcode: Int...
mit
Kotlin
d96aaaa72c31ff6fa31fd3b8b398a1ae96750d18
remove generator requirement
255BITS/hypr,255BITS/hypr
app/src/main/java/hypr/a255bits/com/hypr/GeneratorLoader.kt
app/src/main/java/hypr/a255bits/com/hypr/GeneratorLoader.kt
package hypr.a255bits.com.hypr import android.content.res.AssetManager import org.tensorflow.contrib.android.TensorFlowInferenceInterface class GeneratorLoader(assetPath:String, assetManager:AssetManager) { var inference:TensorFlowInferenceInterface = TensorFlowInferenceInterface(assetManager, assetPath) fu...
package hypr.a255bits.com.hypr import android.content.res.AssetManager import org.tensorflow.contrib.android.TensorFlowInferenceInterface class Generator {} class GeneratorLoader { fun load(assetPath:String, assetManager:AssetManager):Generator { print("Loading" + assetPath) val model:String = "mo...
mit
Kotlin
b46a1a8e21436af022dc5094859a24f6c8998496
Add a bit of horizontal padding to PageActionTab items. (#3373)
wikimedia/apps-android-wikipedia,wikimedia/apps-android-wikipedia,wikimedia/apps-android-wikipedia,wikimedia/apps-android-wikipedia
app/src/main/java/org/wikipedia/page/PageActionTabLayout.kt
app/src/main/java/org/wikipedia/page/PageActionTabLayout.kt
package org.wikipedia.page import android.content.Context import android.text.TextUtils import android.util.AttributeSet import android.util.TypedValue import android.view.Gravity import androidx.core.widget.TextViewCompat import com.google.android.material.textview.MaterialTextView import org.wikipedia.R import org.w...
package org.wikipedia.page import android.content.Context import android.text.TextUtils import android.util.AttributeSet import android.util.TypedValue import android.view.Gravity import androidx.core.widget.TextViewCompat import com.google.android.material.textview.MaterialTextView import org.wikipedia.R import org.w...
apache-2.0
Kotlin