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
19f8d62b81041449724139da59a63c2e7dc6b80d
refactor #511 Add unit test.
toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Jitte
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...
epl-1.0
Kotlin
da81965d01b6939fa85ef9e6d89131e7881fd08c
Add ACCESS_BACKGROUND_LOCATION to permissions enum, resolves #14
afollestad/assent
library/src/main/java/com/afollestad/assent/Permissions.kt
library/src/main/java/com/afollestad/assent/Permissions.kt
/** * Designed and developed by Aidan Follestad (@afollestad) * * 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 b...
/** * Designed and developed by Aidan Follestad (@afollestad) * * 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 b...
apache-2.0
Kotlin
6235e876888adcd22e4122416e67ca1817d7c708
Add video link parser
djkovrik/YapTalker,djkovrik/YapTalker
app/src/main/java/com/sedsoftware/yaptalker/commons/VideoLinkParser.kt
app/src/main/java/com/sedsoftware/yaptalker/commons/VideoLinkParser.kt
package com.sedsoftware.yaptalker.commons import com.sedsoftware.yaptalker.commons.Selectors.COUB_SELECTOR import com.sedsoftware.yaptalker.commons.Selectors.RUTUBE_SELECTOR import com.sedsoftware.yaptalker.commons.Selectors.YAPFILES_SELECTOR import com.sedsoftware.yaptalker.commons.Selectors.YOUTUBE_SELECTOR import c...
apache-2.0
Kotlin
60e5fcb2371f2009f8d4b81470047669c8cb13a4
Use final version of AsciidoctorJ
bmuschko/gradle-docker-plugin,bmuschko/gradle-docker-plugin,bmuschko/gradle-docker-plugin
buildSrc/src/main/kotlin/com/bmuschko/gradle/docker/UserGuidePlugin.kt
buildSrc/src/main/kotlin/com/bmuschko/gradle/docker/UserGuidePlugin.kt
package com.bmuschko.gradle.docker import org.asciidoctor.gradle.AsciidoctorExtension import org.asciidoctor.gradle.AsciidoctorPlugin import org.asciidoctor.gradle.AsciidoctorTask import org.gradle.api.Action import org.gradle.api.Plugin import org.gradle.api.Project import org.gradle.api.tasks.bundling.Jar import org...
package com.bmuschko.gradle.docker import org.asciidoctor.gradle.AsciidoctorExtension import org.asciidoctor.gradle.AsciidoctorPlugin import org.asciidoctor.gradle.AsciidoctorTask import org.gradle.api.Action import org.gradle.api.Plugin import org.gradle.api.Project import org.gradle.api.tasks.bundling.Jar import org...
apache-2.0
Kotlin
5f9b68312cf83a1e36522df1f28cb6f8d3673342
remove dagger from activity for now
burntcookie90/Sleep-Cycle-Alarm,burntcookie90/Sleep-Cycle-Alarm
mobile/src/main/kotlin/io/dwak/sleepcyclealarm/base/mvp/MvpActivity.kt
mobile/src/main/kotlin/io/dwak/sleepcyclealarm/base/mvp/MvpActivity.kt
package io.dwak.sleepcyclealarm.base.mvp import android.os.Bundle import android.support.v7.app.AppCompatActivity import io.dwak.sleepcyclealarm.base.mvp.AbstractPresenter import javax.inject.Inject public abstract class MvpActivity<T : Presenter> : AppCompatActivity() { protected lateinit var presenter : T ...
package io.dwak.sleepcyclealarm.base.mvp import android.os.Bundle import android.support.v7.app.AppCompatActivity import io.dwak.sleepcyclealarm.base.mvp.AbstractPresenter import javax.inject.Inject public abstract class MvpActivity<T : Presenter> : AppCompatActivity(), DaggerPresenterView { protected lateinit va...
apache-2.0
Kotlin
30320607e6cabf0b75b9c56b113023e781544c48
refactor #412 Remove useless field.
toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt
app/src/main/java/jp/toastkid/yobidashi/search/viewmodel/SearchUiViewModel.kt
app/src/main/java/jp/toastkid/yobidashi/search/viewmodel/SearchUiViewModel.kt
/* * Copyright (c) 2022 toastkidjp. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompany this distribution. * The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html. */ package jp...
/* * Copyright (c) 2022 toastkidjp. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompany this distribution. * The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html. */ package jp...
epl-1.0
Kotlin
b21fb5baf822915ca2edac538b7a31b757575a3c
refactor #605 Implement HttpClientFactory's test.
toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt,toastkidjp/Jitte
app/src/test/java/jp/toastkid/yobidashi/libs/network/HttpClientFactoryTest.kt
app/src/test/java/jp/toastkid/yobidashi/libs/network/HttpClientFactoryTest.kt
package jp.toastkid.yobidashi.libs.network import org.junit.Assert.assertEquals import org.junit.Test /** * @author toastkidjp */ class HttpClientFactoryTest { @Test fun test() { val client = HttpClientFactory.withTimeout(1) assertEquals(1000, client.connectTimeoutMillis) assertEqua...
epl-1.0
Kotlin
7b03ce1b93c36a5fb7c49f781c80398d27e57b3c
add TestHelpers
jayrave/falkon
falkon-engine-common/src/test/kotlin/com/jayrave/falkon/engine/TestHelpers.kt
falkon-engine-common/src/test/kotlin/com/jayrave/falkon/engine/TestHelpers.kt
package com.jayrave.falkon.engine /** * A class to mock a compiled statement and binding args */ class CompiledStatementForTest(val sql: String) { private val mutableBoundArgs = arrayOfNulls<Any?>(sql.count { it == '?' }).toMutableList() val boundArgs: List<Any?> = mutableBoundArgs fun bindArg(index: I...
apache-2.0
Kotlin
e5d1b89bf87217b8f5e5db097e6afc31fae9cf71
Fix rebase conflicts
nickbutcher/plaid,nickbutcher/plaid,nickbutcher/plaid,nickbutcher/plaid
search/src/main/java/io/plaidapp/search/dagger/Injector.kt
search/src/main/java/io/plaidapp/search/dagger/Injector.kt
/* * Copyright 2018 Google, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
/* * Copyright 2018 Google, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
apache-2.0
Kotlin
3ddac568f49e20c9f3e5173b7db6756311b05267
Change `Json` to an `abstract sealed class`
qoncept/kaja
project/app/src/lib/kotlin/jp/co/qoncept/kaja/Json.kt
project/app/src/lib/kotlin/jp/co/qoncept/kaja/Json.kt
package jp.co.qoncept.kaja import org.json.JSONArray import org.json.JSONObject import java.io.File import java.io.InputStream abstract sealed class Json { class Boolean(val value: kotlin.Boolean) : Json() { // TODO } class Number(val value: kotlin.Number) : Json() { // TODO } cl...
package jp.co.qoncept.kaja import java.io.File import java.io.InputStream class Json { constructor(value: Boolean) { // TODO } constructor(value: Int) { // TODO } constructor(value: Long) { // TODO } constructor(value: Double) { // TODO } constru...
mit
Kotlin
f3a1729437fa5b2ed35b2570e8828d2164ea846a
Fix EventBus EventBus was ignoring which events were requested by the listener
dya-tel/TSU-Schedule
app/src/main/kotlin/ru/dyatel/tsuschedule/events/EventBus.kt
app/src/main/kotlin/ru/dyatel/tsuschedule/events/EventBus.kt
package ru.dyatel.tsuschedule.events import java.util.ArrayList import java.util.EnumMap class EventBus { private val listeners = EnumMap<Event, MutableList<EventListener>>(Event::class.java) fun subscribe(listener: EventListener, vararg types: Event) = types.forEach { getOrInitList(listeners, i...
package ru.dyatel.tsuschedule.events import java.util.ArrayList import java.util.EnumMap class EventBus { private val listeners = EnumMap<Event, MutableList<EventListener>>(Event::class.java) fun subscribe(listener: EventListener, vararg types: Event) = types.forEach { getOrInitList(listeners, i...
mit
Kotlin
c8737905d52a7b8b0054894c76281772e932b9ac
Add IMG_texture_filter_cubic
code-disaster/lwjgl3,code-disaster/lwjgl3,LWJGL/lwjgl3,TheMrMilchmann/lwjgl3,bsmr-java/lwjgl3,TheMrMilchmann/lwjgl3,LWJGL-CI/lwjgl3,LWJGL/lwjgl3,TheMrMilchmann/lwjgl3,TheMrMilchmann/lwjgl3,LWJGL-CI/lwjgl3,LWJGL/lwjgl3,bsmr-java/lwjgl3,code-disaster/lwjgl3,bsmr-java/lwjgl3,LWJGL/lwjgl3,code-disaster/lwjgl3,LWJGL-CI/lwjg...
modules/templates/src/main/kotlin/org/lwjgl/opengles/templates/IMG_texture_filter_cubic.kt
modules/templates/src/main/kotlin/org/lwjgl/opengles/templates/IMG_texture_filter_cubic.kt
/* * Copyright LWJGL. All rights reserved. * License terms: http://lwjgl.org/license.php */ package org.lwjgl.opengles.templates import org.lwjgl.generator.IntConstant import org.lwjgl.opengles.nativeClassGLES import org.lwjgl.opengles.registryLink val IMG_texture_filter_cubic = "IMGTextureFilterCubic".nativeClass...
bsd-3-clause
Kotlin
2d0115c275fa199e631c635616e89b81215ebfde
update to new GAP version
Cognifide/gradle-aem-plugin,Cognifide/gradle-aem-plugin
docs/blog/2020-09-aem-dispacher-with-ease/build.gradle.kts
docs/blog/2020-09-aem-dispacher-with-ease/build.gradle.kts
plugins { id("com.cognifide.aem.instance.local") version "14.4.1" id("com.cognifide.environment") version "1.0.8" } aem { instance { provisioner { enableCrxDe() deployPackage("com.adobe.cq:core.wcm.components.all:2.8.0@zip") deployPackage("com.neva.felix:search-w...
plugins { id("com.cognifide.aem.instance.local") version "14.2.9" id("com.cognifide.environment") version "1.0.2" } aem { instance { provisioner { enableCrxDe() deployPackage("com.adobe.cq:core.wcm.components.all:2.8.0@zip") deployPackage("com.neva.felix:search-w...
apache-2.0
Kotlin
233041aa61a3924815784aa173e37954f6ae0ae9
remove unused test class
rock3r/detekt,arturbosch/detekt,Mauin/detekt,rock3r/detekt,Mauin/detekt,Mauin/detekt,rock3r/detekt,arturbosch/detekt,arturbosch/detekt,Mauin/detekt
detekt-rules/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/style/UnusedPrivateMember.kt
detekt-rules/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/style/UnusedPrivateMember.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.DetektVisitor import io.gitlab.arturbosch.detekt.api.Entity import io.gitlab.arturbosch.detekt.api.Issue import io.gitlab.arturbosch.dete...
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.DetektVisitor import io.gitlab.arturbosch.detekt.api.Entity import io.gitlab.arturbosch.detekt.api.Issue import io.gitlab.arturbosch.dete...
apache-2.0
Kotlin
4755e2c79a7c471c3f949eec47afe8bdc5a4932f
add @JvmStatic on the Kibble companion object functions
evanchooly/kibble
src/main/kotlin/com/antwerkz/kibble/Kibble.kt
src/main/kotlin/com/antwerkz/kibble/Kibble.kt
package com.antwerkz.kibble import com.antwerkz.kibble.model.KibbleFile import org.jetbrains.kotlin.cli.common.CLIConfigurationKeys import org.jetbrains.kotlin.cli.common.messages.MessageRenderer.PLAIN_FULL_PATHS import org.jetbrains.kotlin.cli.common.messages.PrintingMessageCollector import org.jetbrains.kotlin.cli.j...
package com.antwerkz.kibble import com.antwerkz.kibble.model.KibbleFile import org.jetbrains.kotlin.cli.common.CLIConfigurationKeys import org.jetbrains.kotlin.cli.common.messages.MessageRenderer.PLAIN_FULL_PATHS import org.jetbrains.kotlin.cli.common.messages.PrintingMessageCollector import org.jetbrains.kotlin.cli.j...
apache-2.0
Kotlin
a9fea58d51f1a8f6b354a2c28f73a6e79aecd225
Use KTX call for Work Manager
android/sunflower
app/src/main/java/com/google/samples/apps/sunflower/data/AppDatabase.kt
app/src/main/java/com/google/samples/apps/sunflower/data/AppDatabase.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
2966988b6aeaf8f0c270a00e4a48963c65a68b84
Fix NPE
sdoward/AwarenessApiPlayGround,sdoward/AwarenessApiPlayGround
app/src/main/java/com/sdoward/awareness/android/AwarenesRxExtensions.kt
app/src/main/java/com/sdoward/awareness/android/AwarenesRxExtensions.kt
package com.sdoward.awareness.android import com.google.android.gms.awareness.SnapshotApi import com.google.android.gms.common.api.GoogleApiClient import com.google.android.gms.location.places.PlaceLikelihood import io.reactivex.Single fun SnapshotApi.getActivityObservable(client: GoogleApiClient): Single<List<Activi...
package com.sdoward.awareness.android import com.google.android.gms.awareness.SnapshotApi import com.google.android.gms.common.api.GoogleApiClient import com.google.android.gms.location.DetectedActivity import com.google.android.gms.location.places.PlaceLikelihood import io.reactivex.Single fun SnapshotApi.getActivit...
apache-2.0
Kotlin
cb673c3c6074a319cac538cf688a016fbde79e1f
Add the flowable to the composite disposable
defio/Room-experimets-in-kotlin,defio/Room-experimets-in-kotlin
app/src/main/java/com/nicoladefiorenze/room/MainActivity.kt
app/src/main/java/com/nicoladefiorenze/room/MainActivity.kt
package com.nicoladefiorenze.room import android.os.AsyncTask import android.os.Bundle import android.support.v7.app.AppCompatActivity import android.widget.EditText import com.nicoladefiorenze.room.business.datasource.UserDataSource import com.nicoladefiorenze.room.database.DatabaseProvider import com.nicoladefiorenz...
package com.nicoladefiorenze.room import android.os.AsyncTask import android.os.Bundle import android.support.v7.app.AppCompatActivity import android.widget.EditText import com.nicoladefiorenze.room.business.datasource.UserDataSource import com.nicoladefiorenze.room.database.DatabaseProvider import com.nicoladefiorenz...
apache-2.0
Kotlin
9d51c05129b7dcbea2911983a1764c1c67e1e333
Use ignore conflict resolution for entries
chrisbanes/tivi,chrisbanes/tivi
app/src/main/java/me/banes/chris/tivi/data/daos/EntryDao.kt
app/src/main/java/me/banes/chris/tivi/data/daos/EntryDao.kt
/* * Copyright 2017 Google, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
/* * Copyright 2017 Google, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
apache-2.0
Kotlin
1478acfa865e7a9e3570557e9fee51e7ba573112
Make it happens
shiraji/databinding-support,shiraji/databinding-support,shiraji/databinding-support
src/main/kotlin/com/github/shiraji/databindinglayout/ConvertToDatabindingLayoutIntention.kt
src/main/kotlin/com/github/shiraji/databindinglayout/ConvertToDatabindingLayoutIntention.kt
package com.github.shiraji.databindinglayout import com.intellij.codeInsight.intention.IntentionAction import com.intellij.lang.xml.XMLLanguage import com.intellij.openapi.editor.Editor import com.intellij.openapi.project.Project import com.intellij.psi.PsiFile import com.intellij.psi.XmlElementFactory import com.inte...
package com.github.shiraji.databindinglayout import com.intellij.codeInsight.intention.IntentionAction import com.intellij.openapi.editor.Editor import com.intellij.openapi.project.Project import com.intellij.psi.PsiFile import com.intellij.psi.xml.XmlFile class ConvertToDatabindingLayoutIntention : IntentionAction {...
apache-2.0
Kotlin
1a87360836d530b295336bf28b3d93065174159e
use Java/Groovy convention for naming app run line markers
intellij-rust/intellij-rust,d9n/intellij-rust,d9n/intellij-rust,Undin/intellij-rust,anton-okolelov/intellij-rust,alygin/intellij-rust,intellij-rust/intellij-rust,intellij-rust/intellij-rust,Undin/intellij-rust,intellij-rust/intellij-rust,anton-okolelov/intellij-rust,Undin/intellij-rust,intellij-rust/intellij-rust,himik...
src/main/kotlin/org/rust/cargo/runconfig/command/CargoExecutableRunLineMarkerContributor.kt
src/main/kotlin/org/rust/cargo/runconfig/command/CargoExecutableRunLineMarkerContributor.kt
package org.rust.cargo.runconfig.command import com.intellij.execution.lineMarker.ExecutorAction import com.intellij.execution.lineMarker.RunLineMarkerContributor import com.intellij.icons.AllIcons import com.intellij.psi.PsiElement import com.intellij.util.Function import org.rust.lang.core.psi.RsElementTypes.IDENTIF...
package org.rust.cargo.runconfig.command import com.intellij.execution.lineMarker.ExecutorAction import com.intellij.execution.lineMarker.RunLineMarkerContributor import com.intellij.icons.AllIcons import com.intellij.psi.PsiElement import com.intellij.util.Function import org.rust.lang.core.psi.RsElementTypes.IDENTIF...
mit
Kotlin
d6881c818f1d7e94246a807a24566246f41d7759
Change Stream to Burst
DanielMartinus/Konfetti
app/src/main/java/nl/dionsegijn/konfettidemo/configurations/settings/ConfigurationManager.kt
app/src/main/java/nl/dionsegijn/konfettidemo/configurations/settings/ConfigurationManager.kt
package nl.dionsegijn.konfettidemo.configurations.settings /** * Created by dionsegijn on 5/24/17. */ class ConfigurationManager { var active: Configuration var configurations: List<Configuration> = listOf( Configuration("Top"), Configuration("Drag 'n Shoot"), Configurati...
package nl.dionsegijn.konfettidemo.configurations.settings /** * Created by dionsegijn on 5/24/17. */ class ConfigurationManager { var active: Configuration var configurations: List<Configuration> = listOf( Configuration("Top"), Configuration("Drag 'n Shoot"), Configurati...
isc
Kotlin
82c3f7bda1654ff1b47ba2ef4037228acaa7da4d
Bump versions
SpineEventEngine/core-java,SpineEventEngine/core-java,SpineEventEngine/core-java
version.gradle.kts
version.gradle.kts
/* * Copyright 2021, TeamDev. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Redistribution and use in source...
/* * Copyright 2021, TeamDev. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Redistribution and use in source...
apache-2.0
Kotlin
2ae29efc6533ab8898b6099cd29e2334a0715c24
Bump versions.
SpineEventEngine/gae-java,SpineEventEngine/gae-java
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
fcfd9586bf91547bb9aaea531ebc9d77bb3b7f9a
Add annotated field into sample
r-ralph/Quartz,r-ralph/Quartz
sample/src/main/kotlin/ms/ralph/quartz/sample/SubActivity.kt
sample/src/main/kotlin/ms/ralph/quartz/sample/SubActivity.kt
/* * Copyright 2016 Ralph * * 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 wri...
/* * Copyright 2016 Ralph * * 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 wri...
apache-2.0
Kotlin
f186af708e7bdd08be257783cca337bb37a3750e
Use elvis operator instead of an 'if' statement.
rhdunn/xquery-intellij-plugin,rhdunn/xquery-intellij-plugin
src/main/java/uk/co/reecedunn/intellij/plugin/xquery/ast/xquery/XQueryModule.kt
src/main/java/uk/co/reecedunn/intellij/plugin/xquery/ast/xquery/XQueryModule.kt
/* * Copyright (C) 2016-2017 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 agr...
/* * Copyright (C) 2016-2017 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 agr...
apache-2.0
Kotlin
19f9c216d4a8ca279e599171decc347c98282813
Document `Program`
gradle/gradle,robinverduijn/gradle,gradle/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,robinverduijn/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle-script-kotlin,blindpirate/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,gradle/gradle...
subprojects/provider/src/main/kotlin/org/gradle/kotlin/dsl/execution/Program.kt
subprojects/provider/src/main/kotlin/org/gradle/kotlin/dsl/execution/Program.kt
/* * Copyright 2018 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 2018 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
6e8408a1690d009b23f6424fccbfd965b0235f79
use method reference
StepicOrg/stepic-android,StepicOrg/stepik-android,StepicOrg/stepic-android,StepicOrg/stepic-android,StepicOrg/stepik-android,StepicOrg/stepik-android
app/src/main/java/org/stepic/droid/ui/fragments/AboutAppFragment.kt
app/src/main/java/org/stepic/droid/ui/fragments/AboutAppFragment.kt
package org.stepic.droid.ui.fragments import android.os.Bundle import android.support.v7.widget.GridLayoutManager import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import kotlinx.android.synthetic.main.fragment_about_app.* import org.stepic.droid.R import org.stepic.droid.analyt...
package org.stepic.droid.ui.fragments import android.os.Bundle import android.support.v7.widget.GridLayoutManager import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import kotlinx.android.synthetic.main.fragment_about_app.* import org.stepic.droid.R import org.stepic.droid.analyt...
apache-2.0
Kotlin
0992b2f0b1ef8a37bc9a3e72416c299c7b17455b
Add more and page types to custom comment span
wordpress-mobile/AztecEditor-Android,wordpress-mobile/AztecEditor-Android,wordpress-mobile/AztecEditor-Android
aztec/src/main/kotlin/org/wordpress/aztec/spans/AztecCommentSpan.kt
aztec/src/main/kotlin/org/wordpress/aztec/spans/AztecCommentSpan.kt
package org.wordpress.aztec.spans import android.content.Context import android.text.style.ImageSpan import android.view.View import android.widget.Toast internal class AztecCommentSpan(val mComment: AztecCommentSpan.Comment, context: Context, drawable: Int) : ImageSpan(context, drawable) { companion object { ...
package org.wordpress.aztec.spans import android.content.Context import android.text.style.ImageSpan import android.text.style.ParagraphStyle import android.view.View import android.widget.Toast internal class AztecCommentSpan(html: StringBuilder, context: Context, drawable: Int) : ImageSpan(context, drawable), Parag...
mpl-2.0
Kotlin
7e97b1598f8fb2e0f5643b54998027642a9eda7a
Add demo for broken line fixes
nimakro/tornadofx,edvin/tornadofx,edvin/tornadofx,nimakro/tornadofx
src/test/kotlin/tornadofx/testapps/BrokenLineTest.kt
src/test/kotlin/tornadofx/testapps/BrokenLineTest.kt
package tornadofx.testapps import javafx.scene.layout.BorderStrokeStyle import javafx.scene.shape.StrokeLineCap import javafx.scene.shape.StrokeLineJoin import javafx.scene.shape.StrokeType import tornadofx.* class BrokenLineApp : App(BrokenLineView::class, BrokenStyles::class) class BrokenLineView : View("Broken Lin...
apache-2.0
Kotlin
80593b5bce96c441c90226af405c4a19c6795ed5
Migrate SDK 1.x installation identifier as needed. (#284)
RoverPlatform/rover-android,RoverPlatform/rover-android,RoverPlatform/rover-android
core/src/main/kotlin/io/rover/core/platform/DeviceIdentification.kt
core/src/main/kotlin/io/rover/core/platform/DeviceIdentification.kt
package io.rover.core.platform import android.annotation.SuppressLint import android.content.Context import android.os.Build import android.provider.Settings import io.rover.core.logging.log import java.io.File import java.io.FileNotFoundException import java.util.UUID interface DeviceIdentificationInterface { /*...
package io.rover.core.platform import android.content.Context import android.provider.Settings import io.rover.core.logging.log import java.util.UUID interface DeviceIdentificationInterface { /** * A installation-specific, Rover generated UUID. */ val installationIdentifier: String /** * U...
apache-2.0
Kotlin
8f2abb8a0c8bbf267c80bcefa3cbb76f2c2ef3ef
Create KotlinSolution.kt
thomasnield/optimized-scheduling-demo,thomasnield/optimized-scheduling-demo
KotlinSolution.kt
KotlinSolution.kt
// Still a work-in-progress import com.swa.np.common.util.asMinutes import org.ojalgo.optimisation.ExpressionsBasedModel import org.ojalgo.optimisation.Variable import java.time.LocalTime val operatingDaysOfWeek = 1..6 val operatingTimes = listOf( LocalTime.of(8,0)..LocalTime.of(11,0), LocalTime.of(1...
apache-2.0
Kotlin
1831266af85bf6a719aa9d69f4adad05fbc9d014
Add missing import after package move
LouisCAD/Splitties,LouisCAD/Splitties,LouisCAD/Splitties
samples/android-app/src/androidMain/kotlin/com/example/splitties/extensions/coroutines/Flow.kt
samples/android-app/src/androidMain/kotlin/com/example/splitties/extensions/coroutines/Flow.kt
/* * Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license. */ package com.example.splitties.extensions.coroutines import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.ExperimentalCoroutinesApi import kotlinx.coroutines.Job import kotlinx.coroutines....
/* * Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license. */ package com.example.splitties.extensions.coroutines import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.ExperimentalCoroutinesApi import kotlinx.coroutines.Job import kotlinx.coroutines....
apache-2.0
Kotlin
97d3d8d1a05d8adffddd1a001d8ce12fcb3f6f2c
Create InValidCommandSenderException
Homes-MinecraftServerMod/Homes,Homes-MinecraftServerMod/Homes
src/test/java/com/masahirosaito/spigot/homes/tests/exceptions/InValidCommandSenderException.kt
src/test/java/com/masahirosaito/spigot/homes/tests/exceptions/InValidCommandSenderException.kt
package com.masahirosaito.spigot.homes.tests.exceptions class InValidCommandSenderException : Exception("CommandSender is invalid")
apache-2.0
Kotlin
c05bc4d7c59c7eb54a3c9c553d9d04551b9f6f7d
Change build-in types and modules to be sets instead of lists
intellij-purescript/intellij-purescript,intellij-purescript/intellij-purescript
src/main/java/org/purescript/PSLanguage.kt
src/main/java/org/purescript/PSLanguage.kt
package org.purescript import com.intellij.lang.Language class PSLanguage : Language("Purescript", "text/purescript", "text/x-purescript", "application/x-purescript") { companion object { val INSTANCE = PSLanguage() /** * These modules are built into the purescript compiler, * a...
package org.purescript import com.intellij.lang.Language class PSLanguage : Language("Purescript", "text/purescript", "text/x-purescript", "application/x-purescript") { companion object { val INSTANCE = PSLanguage() /** * These modules are built into the purescript compiler, * a...
bsd-3-clause
Kotlin
d3defa05aeb4e7f706ee77d9b826626624c517e2
refactor #433 Modify constructor for writeable test.
toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Jitte
app/src/main/java/jp/toastkid/yobidashi/wikipedia/random/WikipediaApi.kt
app/src/main/java/jp/toastkid/yobidashi/wikipedia/random/WikipediaApi.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
01a2ad0916b6fa1477265aa7c6bb35ef1c381b7b
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/kms/build.gradle.kts
kotlin/services/kms/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:kms:0.14.3-beta") testImplementation("org.junit.jupiter:junit...
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { kotlin("jvm") version "1.5.31" application } group = "me.scmacdon" version = "1.0-SNAPSHOT" repositories { mavenCentral() } dependencies { implementation("aws.sdk.kotlin:kms:0.9.4-beta") testImplementation("org.junit.jupiter:junit-...
apache-2.0
Kotlin
c5d45b0f6c0a2040448f7036d3f8c2c657cbd5a7
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/rds/build.gradle.kts
kotlin/services/rds/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
05efb1c91e928e4036d7eba83fbb2cbe7c9cb7e0
Use okhttp v.3.12.0.
EventFahrplan/EventFahrplan,EventFahrplan/EventFahrplan
buildSrc/src/main/kotlin/nerd/tuxmobil/fahrplan/congress/Dependencies.kt
buildSrc/src/main/kotlin/nerd/tuxmobil/fahrplan/congress/Dependencies.kt
@file:Suppress("MayBeConstant", "unused") package nerd.tuxmobil.fahrplan.congress object Versions { val androidGradle = "3.1.1" val assertjAndroid = "1.2.0" val emailIntentBuilder = "1.0.0" val espresso = "3.0.2" val gradleVersions = "0.20.0" val junit = "4.12" val kotlin = "1.2.51" va...
@file:Suppress("MayBeConstant", "unused") package nerd.tuxmobil.fahrplan.congress object Versions { val androidGradle = "3.1.1" val assertjAndroid = "1.2.0" val emailIntentBuilder = "1.0.0" val espresso = "3.0.2" val gradleVersions = "0.20.0" val junit = "4.12" val kotlin = "1.2.51" va...
apache-2.0
Kotlin
b5c8eab65e79e797bbb5d830cc55f6bfe35b67e0
Remove commented code
aedans/Quartz,aedans/Quartz
compiler/src/main/kotlin/io/quartz/tree/ir/DeclI.kt
compiler/src/main/kotlin/io/quartz/tree/ir/DeclI.kt
package io.quartz.tree.ir import io.quartz.tree.Locatable import io.quartz.tree.Location import io.quartz.tree.Name import io.quartz.tree.ast.Package /** Sealed class representing all IR declarations */ sealed class DeclI : Locatable { data class Trait( override val location: Location, val...
package io.quartz.tree.ir import io.quartz.tree.Locatable import io.quartz.tree.Location import io.quartz.tree.Name import io.quartz.tree.ast.Package /** Sealed class representing all IR declarations */ sealed class DeclI : Locatable { data class Trait( override val location: Location, val...
mit
Kotlin
f9f9764063313c88ec4c4aca890b296d13677bf4
Refactor Redis service
TerrenceMiao/IPAQ
src/main/kotlin/org/paradise/ipaq/services/redis/RedisService.kt
src/main/kotlin/org/paradise/ipaq/services/redis/RedisService.kt
package org.paradise.ipaq.services.redis import com.fasterxml.jackson.core.JsonParseException import com.fasterxml.jackson.core.JsonProcessingException import com.fasterxml.jackson.databind.JsonMappingException import com.fasterxml.jackson.databind.ObjectMapper import org.apache.commons.lang3.StringUtils import org.sl...
package org.paradise.ipaq.services.redis import com.fasterxml.jackson.core.JsonParseException import com.fasterxml.jackson.core.JsonProcessingException import com.fasterxml.jackson.databind.JsonMappingException import com.fasterxml.jackson.databind.ObjectMapper import org.apache.commons.lang3.StringUtils import org.sl...
apache-2.0
Kotlin
04f414f600c0184150cfa6b66e22ee5f8a573c32
Add ComplexGenericsInheritanceTest
square/moshi,square/moshi,square/moshi
kotlin/tests/src/test/kotlin/com/squareup/moshi/kotlin/codegen/ComplexGenericsInheritanceTest.kt
kotlin/tests/src/test/kotlin/com/squareup/moshi/kotlin/codegen/ComplexGenericsInheritanceTest.kt
@file:Suppress("UNUSED", "UNUSED_PARAMETER") package com.squareup.moshi.kotlin.codegen import com.squareup.moshi.JsonClass import com.squareup.moshi.Moshi import com.squareup.moshi.kotlin.reflect.adapter import org.assertj.core.api.Assertions.assertThat import org.intellij.lang.annotations.Language import org.junit.T...
apache-2.0
Kotlin
66c7d9e0e5cac80838ec2b1f19ca2a3cfe49ce3b
Refactor Import controller
sandjelkovic/dispatchd,sandjelkovic/dispatchd
content-service/src/main/kotlin/com/sandjelkovic/dispatchd/contentservice/web/ImportController.kt
content-service/src/main/kotlin/com/sandjelkovic/dispatchd/contentservice/web/ImportController.kt
package com.sandjelkovic.dispatchd.contentservice.web import arrow.core.getOrElse import com.sandjelkovic.dispatchd.contentservice.data.entity.ImportStatus import com.sandjelkovic.dispatchd.contentservice.service.ImportService import com.sandjelkovic.dispatchd.contentservice.web.dto.ImportRequestDto import org.springf...
package com.sandjelkovic.dispatchd.contentservice.web import arrow.core.getOrElse import com.sandjelkovic.dispatchd.contentservice.data.entity.ImportStatus import com.sandjelkovic.dispatchd.contentservice.service.ImportService import com.sandjelkovic.dispatchd.contentservice.web.dto.ImportRequestDto import org.springf...
apache-2.0
Kotlin
6a4802c8ce0664ac186084fe170c4a7c251cc075
Handle null dates without crashing
Commit451/LabCoat,Commit451/GitLabAndroid
app/src/main/java/com/commit451/gitlab/api/MoshiProvider.kt
app/src/main/java/com/commit451/gitlab/api/MoshiProvider.kt
package com.commit451.gitlab.api import com.commit451.gitlab.api.converter.DashDateAdapter import com.squareup.moshi.Moshi import com.squareup.moshi.Rfc3339DateJsonAdapter import java.util.* object MoshiProvider { val moshi: Moshi by lazy { Moshi.Builder() .add(DashDateAdapter()) ...
package com.commit451.gitlab.api import com.commit451.gitlab.api.converter.DashDateAdapter import com.squareup.moshi.Moshi import com.squareup.moshi.Rfc3339DateJsonAdapter import java.util.* object MoshiProvider { val moshi: Moshi by lazy { Moshi.Builder() .add(DashDateAdapter()) ...
apache-2.0
Kotlin
991a5fabf487e72a54d2f4eb194b87662f1b0b4a
Use relocated GeneratedGradleJarCache
blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle-script-kotlin,blindpirate/gradle,robinverduijn/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,robin...
provider/src/main/kotlin/org/gradle/kotlin/dsl/provider/BuildServices.kt
provider/src/main/kotlin/org/gradle/kotlin/dsl/provider/BuildServices.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
ae32310b1953aedd8395024093b7b2998329d59b
fix importing problem
walkingice/MomoDict,walkingice/MomoDict,walkingice/MomoDict
app/src/main/java/org/zeroxlab/momodict/db/room/RoomEntry.kt
app/src/main/java/org/zeroxlab/momodict/db/room/RoomEntry.kt
package org.zeroxlab.momodict.db.room import androidx.room.Entity import androidx.annotation.NonNull import androidx.room.PrimaryKey @Entity(tableName = "entries") class RoomEntry { @PrimaryKey(autoGenerate = true) var entryId: Int = 0 @NonNull var source: String? = null @NonNull var wordSt...
package org.zeroxlab.momodict.db.room import androidx.room.Entity import androidx.annotation.NonNull @Entity(tableName = "entries", primaryKeys = arrayOf("source", "wordStr")) class RoomEntry { @NonNull var source: String? = null @NonNull var wordStr: String? = null var data: String? = null }
mit
Kotlin
56b081068d26679c0eaaf9bbc09ac0358b5626cf
Fix items are not final so can't be mocked
BaristaVentures/debug-artist,BaristaVentures/debug-artist,BaristaVentures/debug-artist
lib/src/main/java/com/barista_v/debug_artist/item/MenuItem.kt
lib/src/main/java/com/barista_v/debug_artist/item/MenuItem.kt
package com.barista_v.debug_artist.item import com.barista_v.debug_artist.item.input.InputItemListener import com.barista_v.debug_artist.item.phoenix.RestartListener import com.barista_v.debug_artist.item.spinner.SpinnerItemListener import com.jakewharton.scalpel.ScalpelFrameLayout open class MenuItem open class Divi...
package com.barista_v.debug_artist.item import com.barista_v.debug_artist.item.input.InputItemListener import com.barista_v.debug_artist.item.phoenix.RestartListener import com.barista_v.debug_artist.item.spinner.SpinnerItemListener import com.jakewharton.scalpel.ScalpelFrameLayout interface MenuItem open class Divid...
apache-2.0
Kotlin
b77edb2b5b1e2c2f21cfbbc97f8cadbf307e7cc8
Fix crash when tapping title of "App theme" preference
inorichi/mangafeed,inorichi/tachiyomi,inorichi/mangafeed,CarlosEsco/tachiyomi,inorichi/tachiyomi
app/src/main/java/eu/kanade/tachiyomi/widget/preference/ThemesPreference.kt
app/src/main/java/eu/kanade/tachiyomi/widget/preference/ThemesPreference.kt
package eu.kanade.tachiyomi.widget.preference import android.content.Context import android.util.AttributeSet import androidx.preference.ListPreference import androidx.preference.PreferenceViewHolder import androidx.recyclerview.widget.LinearLayoutManager import androidx.recyclerview.widget.RecyclerView import eu.kana...
package eu.kanade.tachiyomi.widget.preference import android.content.Context import android.util.AttributeSet import androidx.preference.ListPreference import androidx.preference.PreferenceViewHolder import androidx.recyclerview.widget.LinearLayoutManager import androidx.recyclerview.widget.RecyclerView import eu.kana...
apache-2.0
Kotlin
99f82fdef309613c3bf47fd0450d1a935cf37c06
refactor #718 Safe delete 'DATE_FORMAT'.
toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Yobidashi_kt
article/src/main/java/jp/toastkid/article_viewer/article/list/ViewHolder.kt
article/src/main/java/jp/toastkid/article_viewer/article/list/ViewHolder.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
c8f83d8b1fe59a51ab60124c1604b7f9b83bac78
Improve implementation note on WorkRunId
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...
work/work-runtime/src/main/java/androidx/work/impl/WorkRunId.kt
work/work-runtime/src/main/java/androidx/work/impl/WorkRunId.kt
/* * Copyright 2022 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
/* * Copyright 2022 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
apache-2.0
Kotlin
74699b7b588032c3ff2439cadaa7708db51b926f
Make a var internal
LouisCAD/Splitties,LouisCAD/Splitties,LouisCAD/Splitties
plugin/src/main/kotlin/com/louiscad/splitties/PluginConfig.kt
plugin/src/main/kotlin/com/louiscad/splitties/PluginConfig.kt
package com.louiscad.splitties object PluginConfig { const val GROUP = "com.louiscad.splitties" const val GRADLE_PROPERTY = "version.$GROUP" const val SPLITTIES_VERSION = "3.0.0-alpha06" internal var ALREADY_RUN: Boolean = false }
package com.louiscad.splitties object PluginConfig { const val GROUP = "com.louiscad.splitties" const val GRADLE_PROPERTY = "version.$GROUP" const val SPLITTIES_VERSION = "3.0.0-alpha06" var ALREADY_RUN: Boolean = false }
apache-2.0
Kotlin
1a4aa43243e129845feb6638d7c8b996ae5dfc99
Replace afterEvaluate with withPlugin
square/kotlinpoet,square/kotlinpoet
build.gradle.kts
build.gradle.kts
/* * Copyright (C) 2019 Square, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
/* * Copyright (C) 2019 Square, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
apache-2.0
Kotlin
103821f6701e2a740caeb02dd55e88aae60de140
Upgrade Gradle shadow plugin to 6.1.0
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
d8039055da758cdd9c6105c092d9a4eb35c1825b
Use explicit syntax
bmuschko/gradle-docker-plugin,bmuschko/gradle-docker-plugin,bmuschko/gradle-docker-plugin
build.gradle.kts
build.gradle.kts
plugins { groovy `java-gradle-plugin` id("com.bmuschko.gradle.docker.test-setup") id("com.bmuschko.gradle.docker.integration-test") id("com.bmuschko.gradle.docker.functional-test") id("com.bmuschko.gradle.docker.additional-artifacts") id("com.bmuschko.gradle.docker.static-code-analysis") ...
plugins { groovy `java-gradle-plugin` id("com.bmuschko.gradle.docker.test-setup") id("com.bmuschko.gradle.docker.integration-test") id("com.bmuschko.gradle.docker.functional-test") id("com.bmuschko.gradle.docker.additional-artifacts") id("com.bmuschko.gradle.docker.static-code-analysis") ...
apache-2.0
Kotlin
e7515778f52a68315e9be2bf8a39a948ca75966c
refactor #614 Replace to isEmpty() instead of TextUtils.
toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt,toastkidjp/Jitte
app/src/main/java/jp/toastkid/yobidashi/search/apps/AppModule.kt
app/src/main/java/jp/toastkid/yobidashi/search/apps/AppModule.kt
/* * Copyright (c) 2018 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) 2018 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
8150a68e7e98ea9c25f5a9f4d0eeb160c714c5ae
Use Firebase Pixel 2, API 27 device instead of deprecated API 28 (#571)
jraska/github-client
plugins/src/main/java/com/jraska/github/client/firebase/Device.kt
plugins/src/main/java/com/jraska/github/client/firebase/Device.kt
package com.jraska.github.client.firebase class Device( private val model: String, private val apiLevel: Int, private val locale: String, private val orientation: String ) { fun firebaseCommandString(): String { return "model=$model,version=$apiLevel,locale=$locale,orientation=$orientation" } fun cl...
package com.jraska.github.client.firebase class Device( private val model: String, private val apiLevel: Int, private val locale: String, private val orientation: String ) { fun firebaseCommandString(): String { return "model=$model,version=$apiLevel,locale=$locale,orientation=$orientation" } fun cl...
apache-2.0
Kotlin
570b6fefb5758578e8846263ed4324c34b69726f
add Assertions
jayrave/falkon
falkon-engine-common/src/test/kotlin/com/jayrave/falkon/engine/Assertions.kt
falkon-engine-common/src/test/kotlin/com/jayrave/falkon/engine/Assertions.kt
package com.jayrave.falkon.engine import org.assertj.core.api.Assertions.assertThat import java.util.* /** * Expects the following * - [partialSql] to start with WHERE clause if there is any * - [mutableBoundArgs] to start with args for WHERE clause if any * * @param whereClause WHERE clause to check a...
apache-2.0
Kotlin
7384fdd22bef1e010fa13ee977a0a3da3cf59a5c
Create PersistenceKit.kt
elifarley/kotlin-examples,elifarley/kotlin-misc-lib,elifarley/kotlin-misc-lib,elifarley/kotlin-examples
src/com/github/elifarley/kotlin/persistence/PersistenceKit.kt
src/com/github/elifarley/kotlin/persistence/PersistenceKit.kt
package com.m4u.cielo.utils import java.sql.Date import java.sql.Timestamp import java.time.LocalDate import java.time.LocalDateTime fun toConvertedArrayParams(params: Collection<Any?>) = params.toTypedArray().apply { this.forEachIndexed { i, element -> when (element) { is LocalDate -> this[i]...
mit
Kotlin
09e9def8fb45681b506d86f896f36b046fb067e5
Fix incorrect permissions on su command
mrkirby153/KirBot
src/main/kotlin/me/mrkirby153/KirBot/command/executors/admin/CommandSu.kt
src/main/kotlin/me/mrkirby153/KirBot/command/executors/admin/CommandSu.kt
package me.mrkirby153.KirBot.command.executors.admin import me.mrkirby153.KirBot.Bot import me.mrkirby153.KirBot.command.BaseCommand import me.mrkirby153.KirBot.command.Command import me.mrkirby153.KirBot.command.CommandCategory import me.mrkirby153.KirBot.command.CommandExecutor import me.mrkirby153.KirBot.command.ar...
package me.mrkirby153.KirBot.command.executors.admin import me.mrkirby153.KirBot.Bot import me.mrkirby153.KirBot.command.BaseCommand import me.mrkirby153.KirBot.command.Command import me.mrkirby153.KirBot.command.CommandCategory import me.mrkirby153.KirBot.command.CommandExecutor import me.mrkirby153.KirBot.command.ar...
mit
Kotlin
861ff01c99577c0d0af5a1e8a616413434b6444e
Create a SampleTextInput in sample app to be used as code snippets in docs
facebook/litho,facebook/litho,facebook/litho,facebook/litho,facebook/litho,facebook/litho
sample/src/main/java/com/facebook/samples/litho/kotlin/mountables/SampleTextInput.kt
sample/src/main/java/com/facebook/samples/litho/kotlin/mountables/SampleTextInput.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...
apache-2.0
Kotlin
657c340bacd02ee9325ad0fd0d06f080724196b1
Remove deferredGet from test api.
olegarx/restler,olegarx/restler,excelsior-oss/restler,aleksey-zhidkov/restler,excelsior-oss/restler,aleksey-zhidkov/restler
test-api/src/main/kotlin/org/restler/integration/ControllerApi.kt
test-api/src/main/kotlin/org/restler/integration/ControllerApi.kt
package org.restler.integration import org.springframework.scheduling.annotation.Async import org.springframework.web.bind.annotation.* import java.util.concurrent.Callable import java.util.concurrent.Future @RestController interface ControllerApi { @RequestMapping("get") open fun publicGet(): String @R...
package org.restler.integration import org.springframework.scheduling.annotation.Async import org.springframework.web.bind.annotation.* import java.util.concurrent.Callable import java.util.concurrent.Future @RestController interface ControllerApi { @RequestMapping("get") open fun publicGet(): String @R...
apache-2.0
Kotlin
cc484f7b6f4595523074b70c5b54560f0b394cf0
refactor #580 Reformat code.
toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Jitte
article/src/test/java/jp/toastkid/article_viewer/calendar/TitleFilterGeneratorTest.kt
article/src/test/java/jp/toastkid/article_viewer/calendar/TitleFilterGeneratorTest.kt
package jp.toastkid.article_viewer.calendar import org.junit.Assert.assertEquals import org.junit.Before import org.junit.Test /** * @author toastkidjp */ class TitleFilterGeneratorTest { private lateinit var titleFilterFenerator: TitleFilterGenerator @Before fun setUp() { titleFilterFenerator...
package jp.toastkid.article_viewer.calendar import org.junit.Assert.assertEquals import org.junit.Before import org.junit.Test /** * @author toastkidjp */ class TitleFilterGeneratorTest { private lateinit var titleFilterFenerator: TitleFilterGenerator @Before fun setUp() { titleFilterFenerator...
epl-1.0
Kotlin
75691530c80a2f71d0ca2ba0b960e43dec986e6a
Update to Android-Components 103.0.20220613143120.
mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android
buildSrc/src/main/java/AndroidComponents.kt
buildSrc/src/main/java/AndroidComponents.kt
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ object AndroidComponents { const val VERSION = "103.0.20220613143120" }
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ object AndroidComponents { const val VERSION = "103.0.20220612143104" }
mpl-2.0
Kotlin
2b97ed6f748c1d3115bb8c4543aea60370304c18
Update to first Android Components 96.0 Nightly build
mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android
buildSrc/src/main/java/AndroidComponents.kt
buildSrc/src/main/java/AndroidComponents.kt
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ object AndroidComponents { const val VERSION = "96.0.20211102173221" }
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ object AndroidComponents { const val VERSION = "95.0.20211101155331" }
mpl-2.0
Kotlin
faa7862b6bbf78b8fd15e9e4effcd8953b25d0de
Update to Android-Components 102.0.20220528143142.
mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android
buildSrc/src/main/java/AndroidComponents.kt
buildSrc/src/main/java/AndroidComponents.kt
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ object AndroidComponents { const val VERSION = "102.0.20220528143142" }
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ object AndroidComponents { const val VERSION = "102.0.20220527143105" }
mpl-2.0
Kotlin
9f8e34e0c4999927998dbebf6f094c0d8a650928
Update to Android-Components 101.0.20220424143100.
mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android
buildSrc/src/main/java/AndroidComponents.kt
buildSrc/src/main/java/AndroidComponents.kt
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ object AndroidComponents { const val VERSION = "101.0.20220424143100" }
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ object AndroidComponents { const val VERSION = "101.0.20220423143138" }
mpl-2.0
Kotlin
b05f2eec9044880536cf35693359f2831346a041
Add GroundItemPile fields
RuneSuite/client,RuneSuite/client
updater-mapper-standard/src/main/java/com/runesuite/client/updater/mapper/std/classes/GroundItemPile.kt
updater-mapper-standard/src/main/java/com/runesuite/client/updater/mapper/std/classes/GroundItemPile.kt
package com.runesuite.client.updater.mapper.std.classes import com.runesuite.mapper.IdentityMapper import com.runesuite.mapper.OrderMapper import com.runesuite.mapper.annotations.DependsOn import com.runesuite.mapper.extensions.and import com.runesuite.mapper.extensions.predicateOf import com.runesuite.mapper.extensio...
package com.runesuite.client.updater.mapper.std.classes import com.runesuite.mapper.IdentityMapper import com.runesuite.mapper.OrderMapper import com.runesuite.mapper.annotations.DependsOn import com.runesuite.mapper.extensions.and import com.runesuite.mapper.extensions.predicateOf import com.runesuite.mapper.extensio...
mit
Kotlin
7b8744ccd6e8fda6315a62eeb1f2862d0355a88e
Update RefCounterExtension cancelling
StepicOrg/stepik-android,StepicOrg/stepik-android,StepicOrg/stepik-android
app/src/main/java/org/stepik/android/presentation/redux/RefCounterExtension.kt
app/src/main/java/org/stepik/android/presentation/redux/RefCounterExtension.kt
package org.stepik.android.presentation.redux import ru.nobird.app.core.model.Cancellable import ru.nobird.app.presentation.redux.feature.Feature fun <State, Message, Action> Feature<State, Message, Action>.wrapWithRefCounter(): Feature<State, Message, Action> = object : Feature<State, Message, Action> by this { ...
package org.stepik.android.presentation.redux import ru.nobird.app.core.model.Cancellable import ru.nobird.app.presentation.redux.feature.Feature fun <State, Message, Action> Feature<State, Message, Action>.wrapWithRefCounter(): Feature<State, Message, Action> = object : Feature<State, Message, Action> by this { ...
apache-2.0
Kotlin
575afd2b78cd3aafd19168369f22d860bc2da8cc
Fix stress tests runner
ktorio/ktor,ktorio/ktor,ktorio/ktor,ktorio/ktor
ktor-server/ktor-server-test-host/jvm/src/io/ktor/server/testing/StressSuiteRunner.kt
ktor-server/ktor-server-test-host/jvm/src/io/ktor/server/testing/StressSuiteRunner.kt
/* * Copyright 2014-2019 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license. */ package io.ktor.server.testing import org.junit.runner.* import org.junit.runner.manipulation.* import org.junit.runner.notification.* import org.junit.runners.* class StressSuiteRunner(klas...
/* * Copyright 2014-2019 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license. */ package io.ktor.server.testing import org.junit.runner.* import org.junit.runner.notification.* import org.junit.runners.* class StressSuiteRunner(klass: Class<*>) : Runner() { private v...
apache-2.0
Kotlin
59af4f639191f91a83e8a4309f31cd2d37940989
Add KDOC for Permission.kt
google/modernstorage,google/modernstorage
mediastore/src/main/java/com/google/modernstorage/mediastore/Permission.kt
mediastore/src/main/java/com/google/modernstorage/mediastore/Permission.kt
/* * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
/* * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
apache-2.0
Kotlin
74ff3de75bd1d3e670f6b0ac79822d238757397a
Add ShakeView.kt
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/core/behaviours/ShakeView.kt
app/src/main/java/chat/rocket/android/core/behaviours/ShakeView.kt
package chat.rocket.android.core.behaviours import android.view.View interface ShakeView { /** * Shakes a view to indicate that it does not have the expected/correct value. * * @param viewToShake The view to shake. */ fun shakeView(viewToShake: View) }
mit
Kotlin
ac1c547e57bbe8708116dea68592dbe664da98d8
add maven repo that contains jpastebin (#4844)
MovingBlocks/Terasology,MovingBlocks/Terasology,Nanoware/Terasology,Nanoware/Terasology,Nanoware/Terasology,MovingBlocks/Terasology
build-logic/src/main/kotlin/terasology-repositories.gradle.kts
build-logic/src/main/kotlin/terasology-repositories.gradle.kts
// Copyright 2021 The Terasology Foundation // SPDX-License-Identifier: Apache-2.0 import java.net.URI // We use both Maven Central and our own Artifactory instance, which contains module builds, extra libs, and so on repositories { mavenCentral { content { // This is first choice for most jav...
// Copyright 2021 The Terasology Foundation // SPDX-License-Identifier: Apache-2.0 import java.net.URI // We use both Maven Central and our own Artifactory instance, which contains module builds, extra libs, and so on repositories { mavenCentral { content { // This is first choice for most jav...
apache-2.0
Kotlin
fb8f276a4591e4c43fe988ef690b20827293d0fa
Add documentation for Color.kt
FarbodSalamat-Zadeh/TimetableApp,FarbodSalamat-Zadeh/TimetableApp
app/src/main/java/com/satsumasoftware/timetable/framework/Color.kt
app/src/main/java/com/satsumasoftware/timetable/framework/Color.kt
package com.satsumasoftware.timetable.framework import android.content.Context import android.content.res.Resources import android.support.annotation.ColorRes /** * Used to represent a color from the material design spec. * * See the material design * [color palette](https://material.google.com/style/color.html#c...
package com.satsumasoftware.timetable.framework import android.content.Context import android.content.res.Resources import android.support.annotation.ColorRes class Color(val id: Int) { val name: String get() = when(id) { 1 -> "red" 2 -> "pink" 3 -> "purple" ...
apache-2.0
Kotlin
da7880460fb344814b5e282171043a826a719ed9
Make static invokers not cause errors (#672)
minecraft-dev/MinecraftDev,DemonWav/MinecraftDevIntelliJ,DemonWav/IntelliJBukkitSupport,minecraft-dev/MinecraftDev,minecraft-dev/MinecraftDev,DemonWav/MinecraftDevIntelliJ,DemonWav/MinecraftDevIntelliJ
src/main/kotlin/com/demonwav/mcdev/platform/mixin/inspection/StaticMemberInspection.kt
src/main/kotlin/com/demonwav/mcdev/platform/mixin/inspection/StaticMemberInspection.kt
/* * Minecraft Dev for IntelliJ * * https://minecraftdev.org * * Copyright (c) 2019 minecraft-dev * * MIT License */ package com.demonwav.mcdev.platform.mixin.inspection import com.demonwav.mcdev.platform.mixin.util.MixinConstants.Annotations.ACCESSOR import com.demonwav.mcdev.platform.mixin.util.MixinConstan...
/* * Minecraft Dev for IntelliJ * * https://minecraftdev.org * * Copyright (c) 2019 minecraft-dev * * MIT License */ package com.demonwav.mcdev.platform.mixin.inspection import com.demonwav.mcdev.platform.mixin.util.MixinConstants.Annotations.ACCESSOR import com.demonwav.mcdev.platform.mixin.util.MixinConstan...
mit
Kotlin
34559fc51931d1f4d3cfb1bcce01d2e3992f9479
Add NetworkHelper
RocketChat/Rocket.Chat.Android.Lily,RocketChat/Rocket.Chat.Android.Lily,RocketChat/Rocket.Chat.Android,RocketChat/Rocket.Chat.Android
app/src/main/java/chat/rocket/android/helper/NetworkHelper.kt
app/src/main/java/chat/rocket/android/helper/NetworkHelper.kt
package chat.rocket.android.helper import kotlinx.coroutines.experimental.CommonPool import kotlinx.coroutines.experimental.run import java.io.IOException import java.net.InetSocketAddress import java.net.Socket object NetworkHelper { /** * Checks whether there is internet access. * * The original...
mit
Kotlin
3fd5ca0bc996d07530bf80466e04c59ec5ac5512
Fix NPE in autocomplete handler.
denzelby/telegram-bot-bumblebee
telegram-bot-bumblebee-core/src/main/kotlin/com/github/bumblebee/command/autocomplete/AutoCompleteHandler.kt
telegram-bot-bumblebee-core/src/main/kotlin/com/github/bumblebee/command/autocomplete/AutoCompleteHandler.kt
package com.github.bumblebee.command.autocomplete import com.github.bumblebee.command.ChainedMessageListener import com.github.bumblebee.command.autocomplete.entity.AutoCompletePhrase import com.github.bumblebee.command.autocomplete.service.AutoCompleteService import com.github.telegram.api.BotApi import com.github.te...
package com.github.bumblebee.command.autocomplete import com.github.bumblebee.command.ChainedMessageListener import com.github.bumblebee.command.autocomplete.entity.AutoCompletePhrase import com.github.bumblebee.command.autocomplete.service.AutoCompleteService import com.github.telegram.api.BotApi import com.github.te...
mit
Kotlin
9875b3f21ea576f0dd8c23de3b459fc2b0f179ee
Optimise import
SpineEventEngine/core-java,SpineEventEngine/core-java,SpineEventEngine/core-java
server/src/main/kotlin/io/spine/server/event/EventFactoryBase.kt
server/src/main/kotlin/io/spine/server/event/EventFactoryBase.kt
/* * Copyright 2022, 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 2022, 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
981f73e1e868cda7fc90ca4ec867a28c52585066
Improve ItemListImpl
FarbodSalamat-Zadeh/TimetableApp,FarbodSalamat-Zadeh/TimetableApp
app/src/main/java/co/timetableapp/ui/ItemListImpl.kt
app/src/main/java/co/timetableapp/ui/ItemListImpl.kt
package co.timetableapp.ui import android.support.v7.widget.RecyclerView import android.view.View import co.timetableapp.data.handler.TimetableItemHandler import co.timetableapp.framework.TimetableItem /** * UI components displaying a list of items should implement this to define behavior specific to the * type of ...
package co.timetableapp.ui import co.timetableapp.data.handler.TimetableItemHandler import co.timetableapp.framework.TimetableItem /** * UI components displaying a list of items should implement this to define behavior specific to the * type of item being shown (e.g. assignments are displayed differently to classes...
apache-2.0
Kotlin
b9874745d9395081a4f67fa3db7175f6206fa904
Fix obsolete dhcoder package
d9n/trypp.support
src/main/code/trypp/support/math/IntCoord.kt
src/main/code/trypp/support/math/IntCoord.kt
package trypp.support.math import trypp.support.memory.Poolable /** * Simple class that represents an integer (x,y) coordinate. */ data class IntCoord(var x: Int, var y: Int) : Poolable { constructor() : this(0, 0) { } fun set(x: Int, y: Int): IntCoord { this.x = x this.y = y r...
package dhcoder.support.math import trypp.support.memory.Poolable /** * Simple class that represents an integer (x,y) coordinate. */ data class IntCoord(var x: Int, var y: Int) : Poolable { constructor() : this(0, 0) { } fun set(x: Int, y: Int): IntCoord { this.x = x this.y = y ...
mit
Kotlin
d23c833ec1b717af59f50abf7a95c132e2e5124f
Support options without assigned value in git config
allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/int...
plugins/git4idea/src/git4idea/repo/GitConfigHelper.kt
plugins/git4idea/src/git4idea/repo/GitConfigHelper.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
e727936807a4736232352e910ddeea46dc67ac98
Add a primary_duchy field to the computationToken etc
world-federation-of-advertisers/common-jvm,world-federation-of-advertisers/common-jvm
src/main/kotlin/org/wfanet/measurement/common/DuchyOrder.kt
src/main/kotlin/org/wfanet/measurement/common/DuchyOrder.kt
// Copyright 2020 The Measurement System 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 applicable ...
// Copyright 2020 The Measurement System 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 applicable ...
apache-2.0
Kotlin
8dd18a0bbe1af80956d7802ae2d1113789b3af30
Fix flickering while transiting frag
nkming2/libutils-android,nkming2/libutils-android
src/main/kotlin/com/nkming/utils/app/FragmentTransitionHelper.kt
src/main/kotlin/com/nkming/utils/app/FragmentTransitionHelper.kt
package com.nkming.utils.app import android.content.Context import android.os.Build import android.support.v4.app.Fragment import android.transition.TransitionInflater import android.view.View import com.nkming.utils.R class FragmentTransitionHelper { companion object { fun startTransitionAnimation(context: Conte...
package com.nkming.utils.app import android.content.Context import android.os.Build import android.support.v4.app.Fragment import android.transition.TransitionInflater import android.view.View import com.nkming.utils.R class FragmentTransitionHelper { companion object { fun startTransitionAnimation(context: Conte...
mit
Kotlin
5b6f6915e3934c8f9bb90b0acd9c5b8cba90c418
Add two permission for list command testing
Homes-MinecraftServerMod/Homes,Homes-MinecraftServerMod/Homes
src/test/java/com/masahirosaito/spigot/homes/tests/Permission.kt
src/test/java/com/masahirosaito/spigot/homes/tests/Permission.kt
package com.masahirosaito.spigot.homes.tests enum class Permission(val permission: String) { HOME("homes.command"), HOME_NAME("homes.command.name"), HOME_PLAYER("homes.command.player"), HOME_PLAYER_NAME("homes.command.player.name"), HOME_SET("homes.command.set"), HOME_SET_NAME("homes.command....
package com.masahirosaito.spigot.homes.tests enum class Permission(val permission: String) { HOME("homes.command"), HOME_NAME("homes.command.name"), HOME_PLAYER("homes.command.player"), HOME_PLAYER_NAME("homes.command.player.name"), HOME_SET("homes.command.set"), HOME_SET_NAME("homes.command....
apache-2.0
Kotlin
83ef8b2961a5321cc44774eb373db25b78353111
Fix js module qualifier issue
square/sqldelight,cashapp/sqldelight,square/sqldelight,square/sqldelight,cashapp/sqldelight,cashapp/sqldelight,cashapp/sqldelight,square/sqldelight
drivers/sqljs-driver/src/main/kotlin/com/squareup/sqldelight/drivers/sqljs/sqljs.SqlJs.kt
drivers/sqljs-driver/src/main/kotlin/com/squareup/sqldelight/drivers/sqljs/sqljs.SqlJs.kt
@file:JsModule("sql.js") @file:JsNonModule @file:Suppress("INTERFACE_WITH_SUPERCLASS", "OVERRIDING_FINAL_MEMBER", "RETURN_TYPE_MISMATCH_ON_OVERRIDE", "CONFLICTING_OVERLOADS", "EXTERNAL_DELEGATION") package com.squareup.sqldelight.drivers.sqljs import org.khronos.webgl.Uint8Array external interface QueryResults { va...
@file:JsQualifier("SqlJs") @file:Suppress("INTERFACE_WITH_SUPERCLASS", "OVERRIDING_FINAL_MEMBER", "RETURN_TYPE_MISMATCH_ON_OVERRIDE", "CONFLICTING_OVERLOADS", "EXTERNAL_DELEGATION") package com.squareup.sqldelight.drivers.sqljs import org.khronos.webgl.Uint8Array external interface QueryResults { var columns: Array...
apache-2.0
Kotlin
ad66dae4f1790e65bcbc1933d1c49a2cfd546e9c
Allow activating/disabling commands in the dashboard created with the new new API
LorittaBot/Loritta,LorittaBot/Loritta,LorittaBot/Loritta,LorittaBot/Loritta
loritta-discord/src/main/java/net/perfectdreams/loritta/website/routes/dashboard/configure/ConfigureCommandsRoute.kt
loritta-discord/src/main/java/net/perfectdreams/loritta/website/routes/dashboard/configure/ConfigureCommandsRoute.kt
package net.perfectdreams.loritta.website.routes.dashboard.configure import com.mrpowergamerbr.loritta.Loritta import com.mrpowergamerbr.loritta.utils.locale.BaseLocale import com.mrpowergamerbr.loritta.website.evaluate import io.ktor.application.ApplicationCall import net.dv8tion.jda.api.entities.Guild import net.per...
package net.perfectdreams.loritta.website.routes.dashboard.configure import com.mrpowergamerbr.loritta.Loritta import com.mrpowergamerbr.loritta.utils.locale.BaseLocale import com.mrpowergamerbr.loritta.website.evaluate import io.ktor.application.ApplicationCall import net.dv8tion.jda.api.entities.Guild import net.per...
agpl-3.0
Kotlin
a87f8bb98a8ed4cbdea971b9909e6884b72ce8af
Remove empty lines
SpineEventEngine/base,SpineEventEngine/base,SpineEventEngine/base
tools/plugin-base/build.gradle.kts
tools/plugin-base/build.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
6719cebffc4dbe744d73716fc6e6a427dfe6c438
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.core.entitirs.impl.MemberImpl class MemberDelegate(val xH4z9a_%e: Member) : MemberImpl { public fun getRoles(): List<Role> = }
agpl-3.0
Kotlin
7f5ddde322215d5cdcda394ae98aa4a93208fd48
Add onLongClick() extension function for View
LouisCAD/Splitties,LouisCAD/Splitties,LouisCAD/Splitties
views/src/main/java/splitties/views/Click.kt
views/src/main/java/splitties/views/Click.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
2ba7bcc32f69fa487f554fe0a441c45c51c33d95
add Dialog.hideKeyboard
WindSekirun/RichUtilsKt,WindSekirun/RichUtilsKt
RichUtils/src/main/java/pyxis/uzuki/live/richutilskt/RKeyboard.kt
RichUtils/src/main/java/pyxis/uzuki/live/richutilskt/RKeyboard.kt
@file:JvmName("Utils") @file:JvmMultifileClass package pyxis.uzuki.live.richutilskt import android.app.Activity import android.app.Dialog import android.content.Context import android.view.inputmethod.InputMethodManager /** * hide keyboard */ fun Activity.hideKeyboard() { val view = this.currentFocus if (v...
@file:JvmName("Utils") @file:JvmMultifileClass package pyxis.uzuki.live.richutilskt import android.app.Activity import android.content.Context import android.view.inputmethod.InputMethodManager /** * hide keyboard */ fun Activity.hideKeyboard() { val view = this.currentFocus if (view != null) { val...
apache-2.0
Kotlin
cfb14c59a703302c041bfbecd0f66489500251b5
Add test for do keyword completion
intellij-purescript/intellij-purescript,intellij-purescript/intellij-purescript
src/test/kotlin/org/purescript/keyword/KeywordCompletionContributorTest.kt
src/test/kotlin/org/purescript/keyword/KeywordCompletionContributorTest.kt
package org.purescript.keyword import com.intellij.testFramework.fixtures.BasePlatformTestCase class KeywordCompletionContributorTest : BasePlatformTestCase() { fun `test do`() { val src = """ module Main where dof = 1 main = d{-caret-} ...
bsd-3-clause
Kotlin
fb0e71fc62c5b8bca4cf71cb0f0122a68c6f54c2
add device request
StepicOrg/stepik-android,StepicOrg/stepic-android,StepicOrg/stepic-android,StepicOrg/stepik-android,StepicOrg/stepic-android,StepicOrg/stepik-android
app/src/main/java/org/stepic/droid/web/DeviceRequest.kt
app/src/main/java/org/stepic/droid/web/DeviceRequest.kt
package org.stepic.droid.web import org.stepic.droid.model.ClientType import org.stepic.droid.model.Device class DeviceRequest(token: String, description: String) { private val device: Device init { device = Device(0, token, 0, description, ClientType.Android) } }
apache-2.0
Kotlin
56be46dfa3bb4b0092c52f8059630acb7172721c
Solve Salary in kotlin
deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playgr...
solutions/uri/1008/1008.kt
solutions/uri/1008/1008.kt
import java.util.* fun main(args: Array<String>) { val sc = Scanner(System.`in`); val a: Int = sc.next().toInt(); val b: Int = sc.next().toInt(); val c: Double = sc.next().toDouble(); println("NUMBER = %d".format(a)); println("SALARY = U$ %.2f".format(b * c)); }
mit
Kotlin
5e1e2d00017e3e17606eb6758a6e7281c8bdf53d
Reduce the min supported sdk to 18
m4gr3d/GAST,m4gr3d/GAST,m4gr3d/GAST
config.gradle.kts
config.gradle.kts
val kotlinVersion by extra("1.3.72") val gradlePluginVersion by extra("4.0.0") val compileSdk by extra(29) val buildTools by extra("29.0.3") val minSdk by extra(18) val targetSdk by extra(29)
val kotlinVersion by extra("1.3.72") val gradlePluginVersion by extra("4.0.0") val compileSdk by extra(29) val buildTools by extra("29.0.3") val minSdk by extra(21) val targetSdk by extra(29)
mit
Kotlin
7820ed9d6f73aba9b276f13624b41f47f25968a4
Fix LoginActivityTest (#2795)
domdomegg/apps-android-commons,dbrant/apps-android-commons,commons-app/apps-android-commons,psh/apps-android-commons,maskaravivek/apps-android-commons,domdomegg/apps-android-commons,commons-app/apps-android-commons,maskaravivek/apps-android-commons,misaochan/apps-android-commons,psh/apps-android-commons,commons-app/app...
app/src/androidTest/java/fr/free/nrw/commons/LoginActivityTest.kt
app/src/androidTest/java/fr/free/nrw/commons/LoginActivityTest.kt
package fr.free.nrw.commons import android.app.Activity import android.app.Instrumentation.ActivityResult import android.content.Intent import androidx.test.espresso.Espresso import androidx.test.espresso.action.ViewActions import androidx.test.espresso.intent.Intents import androidx.test.espresso.intent.Intents.inten...
package fr.free.nrw.commons import android.app.Activity import android.app.Instrumentation.ActivityResult import android.content.Intent import androidx.test.espresso.Espresso import androidx.test.espresso.action.ViewActions import androidx.test.espresso.intent.Intents import androidx.test.espresso.intent.Intents.inten...
apache-2.0
Kotlin
fb16a8758105bdb99f18ee354884eab47452832e
Make Term implement Parcelable
FarbodSalamat-Zadeh/TimetableApp,FarbodSalamat-Zadeh/TimetableApp
app/src/main/java/com/satsumasoftware/timetable/framework/Term.kt
app/src/main/java/com/satsumasoftware/timetable/framework/Term.kt
package com.satsumasoftware.timetable.framework import android.database.Cursor import android.os.Parcel import android.os.Parcelable import com.satsumasoftware.timetable.db.TermsSchema import org.threeten.bp.LocalDate class Term(val id: Int, val timetableId: Int, val name: String, val startDate: LocalDate, ...
package com.satsumasoftware.timetable.framework import android.database.Cursor import com.satsumasoftware.timetable.db.TermsSchema import org.threeten.bp.LocalDate class Term(val id: Int, val timetableId: Int, val name: String, val startDate: LocalDate, val endDate: LocalDate) { constructor(cursor: Cu...
apache-2.0
Kotlin
d709b82b0c3b2c48838697cb1ec9b93cee8d4fb6
add DraggableItemAdapter interface to SimpleDataBindingDraggableItemAdapter
CruGlobal/android-gto-support,CruGlobal/android-gto-support,GlobalTechnology/android-gto-support
gto-support-recyclerview-advrecyclerview/src/main/java/org/ccci/gto/android/common/recyclerview/advrecyclerview/draggable/SimpleDataBindingDraggableItemAdapter.kt
gto-support-recyclerview-advrecyclerview/src/main/java/org/ccci/gto/android/common/recyclerview/advrecyclerview/draggable/SimpleDataBindingDraggableItemAdapter.kt
package org.ccci.gto.android.common.recyclerview.advrecyclerview.draggable import androidx.databinding.ViewDataBinding import androidx.lifecycle.LifecycleOwner import com.h6ah4i.android.widget.advrecyclerview.draggable.DraggableItemAdapter import org.ccci.gto.android.common.recyclerview.adapter.AbstractDataBindingAdap...
package org.ccci.gto.android.common.recyclerview.advrecyclerview.draggable import androidx.databinding.ViewDataBinding import androidx.lifecycle.LifecycleOwner import org.ccci.gto.android.common.recyclerview.adapter.AbstractDataBindingAdapter abstract class SimpleDataBindingDraggableItemAdapter<B : ViewDataBinding>(l...
mit
Kotlin
f60ad599f9c9cbfe2c1c1bcf056f595b7ad34513
Set proper visibility
JetBrains/spek
spek-subject-extension/src/main/kotlin/org/jetbrains/spek/subject/Shared.kt
spek-subject-extension/src/main/kotlin/org/jetbrains/spek/subject/Shared.kt
package org.jetbrains.spek.subject import org.jetbrains.spek.api.Spek import org.jetbrains.spek.api.dsl.Spec import org.jetbrains.spek.api.include import org.jetbrains.spek.api.lifecycle.CachingMode import org.jetbrains.spek.api.lifecycle.LifecycleAware import org.jetbrains.spek.meta.Experimental import org.jetbrains....
package org.jetbrains.spek.subject import org.jetbrains.spek.api.Spek import org.jetbrains.spek.api.dsl.Spec import org.jetbrains.spek.api.include import org.jetbrains.spek.api.lifecycle.CachingMode import org.jetbrains.spek.api.lifecycle.LifecycleAware import org.jetbrains.spek.meta.Experimental import org.jetbrains....
bsd-3-clause
Kotlin
9d4a49293a4399decf535ffbefde73fb0be94ef5
Replace deprecated API usage
zielu/GitToolBox,zielu/GitToolBox,zielu/GitToolBox
GitToolBox/src/main/kotlin/zielu/gittoolbox/ResIcons.kt
GitToolBox/src/main/kotlin/zielu/gittoolbox/ResIcons.kt
package zielu.gittoolbox import com.intellij.openapi.util.IconLoader import javax.swing.Icon internal object ResIcons { @JvmStatic val BranchOrange: Icon get() = getIcon("/zielu/gittoolbox/git-icon-orange.png") @JvmStatic val BranchViolet: Icon get() = getIcon("/zielu/gittoolbox/git-icon-violet.png") ...
package zielu.gittoolbox import com.intellij.openapi.util.IconLoader import javax.swing.Icon internal object ResIcons { @JvmStatic val BranchOrange: Icon get() = IconLoader.getIcon("/zielu/gittoolbox/git-icon-orange.png") @JvmStatic val BranchViolet: Icon get() = IconLoader.getIcon("/zielu/gittoolbox/...
apache-2.0
Kotlin
3db37790f4a016db03516ec8a6ed6736072c903b
Fix SSE terminator (#1388)
tipsy/javalin,tipsy/javalin,tipsy/javalin,tipsy/javalin
javalin/src/main/java/io/javalin/http/sse/Emitter.kt
javalin/src/main/java/io/javalin/http/sse/Emitter.kt
package io.javalin.http.sse import java.io.IOException import java.io.InputStream import javax.servlet.AsyncContext import javax.servlet.ServletOutputStream class Emitter(private var asyncContext: AsyncContext) { private lateinit var output: ServletOutputStream private var closed = false private val newl...
package io.javalin.http.sse import java.io.IOException import java.io.InputStream import javax.servlet.AsyncContext import javax.servlet.ServletOutputStream class Emitter(private var asyncContext: AsyncContext) { private lateinit var output: ServletOutputStream private var closed = false private val newl...
apache-2.0
Kotlin
6ac3310e4c13daec2652c3f6fdb898893c0bc3df
Bump snakeyaml from 1.27 to 1.28 (#3493)
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.19.0") api("org.spekframework.spek2:spek-dsl-jvm:${version.spek}") api("org.spekframework.spek2:spek-runne...
apache-2.0
Kotlin