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
8415c9fe65c020113fa43396300430229fb8ec38
Replace deprecated RxJava methods.
viniciussoares/ribot-android-boilerplate-kotlin,viniciussoares/ribot-android-boilerplate-kotlin
app/src/test/java/uk/co/ribot/androidboilerplate/util/RxSchedulersOverrideRule.kt
app/src/test/java/uk/co/ribot/androidboilerplate/util/RxSchedulersOverrideRule.kt
package uk.co.ribot.androidboilerplate.util import org.junit.rules.TestRule import org.junit.runner.Description import org.junit.runners.model.Statement import rx.Scheduler import rx.android.plugins.RxAndroidPlugins import rx.android.plugins.RxAndroidSchedulersHook import rx.plugins.RxJavaPlugins import rx.plugins.Rx...
package uk.co.ribot.androidboilerplate.util import org.junit.rules.TestRule import org.junit.runner.Description import org.junit.runners.model.Statement import rx.Scheduler import rx.android.plugins.RxAndroidPlugins import rx.android.plugins.RxAndroidSchedulersHook import rx.plugins.RxJavaPlugins import rx.plugins.Rx...
apache-2.0
Kotlin
26dd7c53d94b0ee1ebe2239fb3f9e57ae8906ecb
add 20 min timeout
allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/int...
platform/testGuiFramework/src/com/intellij/testGuiFramework/framework/Timeouts.kt
platform/testGuiFramework/src/com/intellij/testGuiFramework/framework/Timeouts.kt
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.testGuiFramework.framework import org.fest.swing.timing.Pause import org.fest.swing.timing.Timeout import java.util.concurrent.TimeUnit object Timeouts { ...
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.testGuiFramework.framework import org.fest.swing.timing.Pause import org.fest.swing.timing.Timeout import java.util.concurrent.TimeUnit object Timeouts { ...
apache-2.0
Kotlin
0dfe988cf44d5c2be9d2b3908e0c1329b19cd663
Make the KSP processor generate a placeholder file
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...
privacysandbox/tools/tools-apicompiler/src/main/java/androidx/privacysandbox/tools/apicompiler/PrivacySandboxKspCompiler.kt
privacysandbox/tools/tools-apicompiler/src/main/java/androidx/privacysandbox/tools/apicompiler/PrivacySandboxKspCompiler.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
e7d76336473af50f8d9d1f116749a6a5a7bea43d
Set passParentEnvs default to true (#624)
JetBrains/spek
spek-ide-plugin/intellij-base/src/main/kotlin/org/spekframework/intellij/support/SpekCommonProgramRunConfigurationParameters.kt
spek-ide-plugin/intellij-base/src/main/kotlin/org/spekframework/intellij/support/SpekCommonProgramRunConfigurationParameters.kt
package org.spekframework.intellij.support import com.intellij.execution.CommonProgramRunConfigurationParameters import com.intellij.execution.configuration.EnvironmentVariablesComponent import com.intellij.openapi.project.Project import com.intellij.openapi.util.JDOMExternalizerUtil import org.jdom.Element import org...
package org.spekframework.intellij.support import com.intellij.execution.CommonProgramRunConfigurationParameters import com.intellij.execution.configuration.EnvironmentVariablesComponent import com.intellij.openapi.project.Project import com.intellij.openapi.util.JDOMExternalizerUtil import org.jdom.Element import org...
bsd-3-clause
Kotlin
00396bdb6db724bb856a8ea51e0398d2b6b79efd
Update imageAttachmentUri value.
RocketChat/Rocket.Chat.Android,RocketChat/Rocket.Chat.Android.Lily,RocketChat/Rocket.Chat.Android.Lily,RocketChat/Rocket.Chat.Android
app/src/main/java/chat/rocket/android/app/chatroom/MessageFragment.kt
app/src/main/java/chat/rocket/android/app/chatroom/MessageFragment.kt
package chat.rocket.android.app.chatroom import android.app.Fragment import android.os.Bundle import android.support.v7.widget.LinearLayoutManager import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import chat.rocket.android.R import chat.rocket.android.app.User import kotlinx.an...
package chat.rocket.android.app.chatroom import android.app.Fragment import android.os.Bundle import android.support.v7.widget.LinearLayoutManager import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import chat.rocket.android.R import chat.rocket.android.app.User import kotlinx.an...
mit
Kotlin
c1e38ba0e7b1d354055f41aefa48a757658ce8b8
Fix +petpet label (#2227)
LorittaBot/Loritta,LorittaBot/Loritta,LorittaBot/Loritta,LorittaBot/Loritta
loritta-plugins/rosbife/src/jvmMain/kotlin/net/perfectdreams/loritta/plugin/rosbife/commands/PetPetCommand.kt
loritta-plugins/rosbife/src/jvmMain/kotlin/net/perfectdreams/loritta/plugin/rosbife/commands/PetPetCommand.kt
package net.perfectdreams.loritta.plugin.rosbife.commands import net.perfectdreams.loritta.plugin.rosbife.RosbifePlugin import net.perfectdreams.loritta.plugin.rosbife.commands.base.GabrielaImageCommandBase class PetPetCommand(m: RosbifePlugin) : GabrielaImageCommandBase( m.loritta, listOf("petpet"), "commands....
package net.perfectdreams.loritta.plugin.rosbife.commands import net.perfectdreams.loritta.plugin.rosbife.RosbifePlugin import net.perfectdreams.loritta.plugin.rosbife.commands.base.GabrielaImageCommandBase class PetPetCommand(m: RosbifePlugin) : GabrielaImageCommandBase( m.loritta, listOf("carlyaaah"), "comman...
agpl-3.0
Kotlin
b59686bb577893d07643eb1809bb5bfe9e2e6319
Add SpeedFactorPreferencePresenterTest
Doctoror/ParticleConstellationsLiveWallpaper,Doctoror/ParticleConstellationsLiveWallpaper
app/src/test/java/com/doctoror/particleswallpaper/presentation/presenter/SpeedFactorPreferencePresenterTest.kt
app/src/test/java/com/doctoror/particleswallpaper/presentation/presenter/SpeedFactorPreferencePresenterTest.kt
/* * Copyright (C) 2018 Yaroslav Mytkalyk * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
apache-2.0
Kotlin
d546b45a3c2b724a81cf7dc47cb4da9d3fa4aa7a
fix stopKoin()
Ekito/koin,Ekito/koin,InsertKoinIO/koin,InsertKoinIO/koin,InsertKoinIO/koin
koin-projects/examples/android-mvp/src/test/java/fr/ekito/myweatherapp/datasource/WeatherRepositoryHeadlessTest.kt
koin-projects/examples/android-mvp/src/test/java/fr/ekito/myweatherapp/datasource/WeatherRepositoryHeadlessTest.kt
package fr.ekito.myweatherapp.datasource import fr.ekito.myweatherapp.data.repository.WeatherRepository import fr.ekito.myweatherapp.di.testWeatherApp import org.junit.After import org.junit.Assert.* import org.junit.Before import org.junit.Test import org.koin.standalone.StandAloneContext.startKoin import org.koin.st...
package fr.ekito.myweatherapp.datasource import fr.ekito.myweatherapp.data.repository.WeatherRepository import fr.ekito.myweatherapp.di.testWeatherApp import org.junit.After import org.junit.Assert.* import org.junit.Before import org.junit.Test import org.koin.standalone.StandAloneContext.closeKoin import org.koin.st...
apache-2.0
Kotlin
b119a3fa68aa92570bc6d91c63e4c90466c18f55
Add tests for the TransformParamsErrorsAccumulator
KotlinNLP/SimpleDNN
test/kotlin/deeplearning/attentionnetwork/TransformParamsErrorsAccumulatorSpec.kt
test/kotlin/deeplearning/attentionnetwork/TransformParamsErrorsAccumulatorSpec.kt
/* Copyright 2016-present The KotlinNLP Authors. All Rights Reserved. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, you can obtain one at http://mozilla.org/MPL/2.0/. * ------------------------------------------...
mpl-2.0
Kotlin
daea587dfe5a2434e7239347270b542bc74a3876
create a ClickableText composable that utilizes the Material3 Text widget
CruGlobal/android-gto-support,CruGlobal/android-gto-support
gto-support-androidx-compose-material3/src/main/kotlin/org/ccci/gto/android/common/androidx/compose/material3/ClickableText.kt
gto-support-androidx-compose-material3/src/main/kotlin/org/ccci/gto/android/common/androidx/compose/material3/ClickableText.kt
package org.ccci.gto.android.common.androidx.compose.material3 import androidx.compose.foundation.gestures.detectTapGestures import androidx.compose.material3.LocalTextStyle import androidx.compose.material3.Text import androidx.compose.runtime.Composable import androidx.compose.runtime.mutableStateOf import androidx....
mit
Kotlin
36cd2fcdaff83fd23ce48b42f90999d3da11ad6b
refactor #412 Rename test function.
toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt,toastkidjp/Jitte
app/src/test/java/jp/toastkid/yobidashi/search/trend/TrendResponseConverterTest.kt
app/src/test/java/jp/toastkid/yobidashi/search/trend/TrendResponseConverterTest.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
05d53b8bc13fe7e811cd3d1e2d7744656f937318
Revert "Set `prepareKotlinBuildScriptModel` task group explicitly"
gradle/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle...
subprojects/kotlin-dsl-tooling-builders/src/main/kotlin/org/gradle/kotlin/dsl/tooling/builders/KotlinScriptingModelBuildersRegistrationAction.kt
subprojects/kotlin-dsl-tooling-builders/src/main/kotlin/org/gradle/kotlin/dsl/tooling/builders/KotlinScriptingModelBuildersRegistrationAction.kt
/* * Copyright 2016 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 2016 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
f1fb60b98dd532e5c4fe55bd58d7bd2572e27599
set minimum ZAP version to 2.8.0
zaproxy/zap-extensions,secdec/zap-extensions,secdec/zap-extensions,zaproxy/zap-extensions,psiinon/zap-extensions,thc202/zap-extensions,zaproxy/zap-extensions,secdec/zap-extensions,zapbot/zap-extensions,zaproxy/zap-extensions,denniskniep/zap-extensions,thc202/zap-extensions,psiinon/zap-extensions,zapbot/zap-extensions,k...
addOns/gettingStarted/gettingStarted.gradle.kts
addOns/gettingStarted/gettingStarted.gradle.kts
import org.zaproxy.gradle.addon.AddOnStatus version = "10" description = "A short Getting Started with ZAP Guide" zapAddOn { addOnName.set("Getting Started with ZAP Guide") addOnStatus.set(AddOnStatus.RELEASE) zapVersion.set("2.7.0") manifest { author.set("ZAP Dev Team") notBeforeVers...
import org.zaproxy.gradle.addon.AddOnStatus version = "10" description = "A short Getting Started with ZAP Guide" zapAddOn { addOnName.set("Getting Started with ZAP Guide") addOnStatus.set(AddOnStatus.RELEASE) zapVersion.set("2.7.0") manifest { author.set("ZAP Dev Team") } }
apache-2.0
Kotlin
e348e7845be77a937b0200d923a8bf638f729495
Update Docker with new version (#2920)
JetBrains/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,wiltonlazary/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,wiltonlazary/kotlin-native,wiltonlazary/kotlin-native,JetBrains/kotlin-native,wiltonlazary/kotlin-nat...
tools/docker/kotlin-native-distributive/build.gradle.kts
tools/docker/kotlin-native-distributive/build.gradle.kts
plugins { // CHANGE_VERSION_WITH_RELEASE kotlin("multiplatform") version "1.3.31" } kotlin { linuxX64() }
plugins { // CHANGE_VERSION_WITH_RELEASE kotlin("multiplatform") version "1.3.30" } kotlin { linuxX64() }
apache-2.0
Kotlin
3630aa73eec5bac458d27f63e0e6d4d2cd7b6120
Fix lack of imports for some reason
DemonWav/MinecraftDev,DemonWav/IntelliJBukkitSupport,DemonWav/MinecraftDev,DemonWav/MinecraftDevIntelliJ,DemonWav/MinecraftDevIntelliJ,minecraft-dev/MinecraftDev,DemonWav/MinecraftDev,minecraft-dev/MinecraftDev,DemonWav/MinecraftDevIntelliJ,minecraft-dev/MinecraftDev
src/main/kotlin/com/demonwav/mcdev/nbt/lang/colors/NbttSyntaxHighlighterFactory.kt
src/main/kotlin/com/demonwav/mcdev/nbt/lang/colors/NbttSyntaxHighlighterFactory.kt
/* * Minecraft Dev for IntelliJ * * https://minecraftdev.org * * Copyright (c) 2017 minecraft-dev * * MIT License */ package com.demonwav.mcdev.nbt.lang.colors import com.intellij.openapi.fileTypes.SyntaxHighlighterFactory import com.intellij.openapi.project.Project import com.intellij.openapi.vfs.VirtualFile...
/* * Minecraft Dev for IntelliJ * * https://minecraftdev.org * * Copyright (c) 2017 minecraft-dev * * MIT License */ package com.demonwav.mcdev.nbt.lang.colors class NbttSyntaxHighlighterFactory : com.intellij.openapi.fileTypes.SyntaxHighlighterFactory() { override fun getSyntaxHighlighter(project: com.in...
mit
Kotlin
ba0c0dfab318ea613dc646a19f45acdda9516c6d
change to internal class
emoji-gen/Emoji-Android
lib.slack/src/main/java/moe/pine/emoji/lib/slack/UserAgentInterceptor.kt
lib.slack/src/main/java/moe/pine/emoji/lib/slack/UserAgentInterceptor.kt
package moe.pine.emoji.lib.slack import okhttp3.Interceptor import okhttp3.Response /** * Interceptor for the User-Agent header * Created by pine on 4/4/17. */ internal class UserAgentInterceptor(val userAgent: String) : Interceptor { override fun intercept(chain: Interceptor.Chain?): Response? { val ...
package moe.pine.emoji.lib.slack import okhttp3.Interceptor import okhttp3.Response /** * Interceptor for the User-Agent header * Created by pine on 4/4/17. */ class UserAgentInterceptor(val userAgent: String) : Interceptor { override fun intercept(chain: Interceptor.Chain?): Response? { val request =...
mit
Kotlin
2629b3db22f27b968a19f0699969de223b9cc792
Use shared constant for ws endpoint
luxons/seven-wonders,luxons/seven-wonders,luxons/seven-wonders
sw-server/src/main/kotlin/org/luxons/sevenwonders/server/config/WebSocketConfig.kt
sw-server/src/main/kotlin/org/luxons/sevenwonders/server/config/WebSocketConfig.kt
package org.luxons.sevenwonders.server.config import org.luxons.sevenwonders.model.api.SEVEN_WONDERS_WS_ENDPOINT import org.springframework.beans.factory.annotation.Autowired import org.springframework.context.annotation.Bean import org.springframework.context.annotation.Configuration import org.springframework.messag...
package org.luxons.sevenwonders.server.config import org.springframework.beans.factory.annotation.Autowired import org.springframework.context.annotation.Bean import org.springframework.context.annotation.Configuration import org.springframework.messaging.simp.config.ChannelRegistration import org.springframework.mess...
mit
Kotlin
8e0a7195c0b9eb4d3e271ebd3e10edfadd36c905
add braces to if statement
bugsnag/bugsnag-android-gradle-plugin,bugsnag/bugsnag-android-gradle-plugin,bugsnag/bugsnag-android-gradle-plugin,bugsnag/bugsnag-android-gradle-plugin,bugsnag/bugsnag-android-gradle-plugin,bugsnag/bugsnag-android-gradle-plugin
src/main/kotlin/com/bugsnag/android/gradle/internal/DexguardCompat.kt
src/main/kotlin/com/bugsnag/android/gradle/internal/DexguardCompat.kt
package com.bugsnag.android.gradle.internal import com.android.build.gradle.api.ApkVariant import com.android.build.gradle.api.ApkVariantOutput import com.bugsnag.android.gradle.GroovyCompat import org.gradle.api.Project import org.gradle.util.VersionNumber import java.io.File import java.nio.file.Paths /** * Finds ...
package com.bugsnag.android.gradle.internal import com.android.build.gradle.api.ApkVariant import com.android.build.gradle.api.ApkVariantOutput import com.bugsnag.android.gradle.GroovyCompat import org.gradle.api.Project import org.gradle.util.VersionNumber import java.io.File import java.nio.file.Paths /** * Finds ...
mit
Kotlin
a248ab68c1e08903a350ed7b5cdf1cc01bee14b6
Fix duplicate items in deck list
jamieadkins95/Roach,jamieadkins95/Roach
commonutils/src/main/java/com/jamieadkins/commonutils/ui/BaseRecyclerViewAdapter.kt
commonutils/src/main/java/com/jamieadkins/commonutils/ui/BaseRecyclerViewAdapter.kt
package com.jamieadkins.commonutils.ui import android.support.v7.util.DiffUtil import android.support.v7.widget.RecyclerView import android.view.LayoutInflater import android.view.ViewGroup import com.jamieadkins.commonutils.R import java.util.ArrayList /** * Holds base logic for recycler view adapters. */ abstr...
package com.jamieadkins.commonutils.ui import android.support.v7.util.DiffUtil import android.support.v7.widget.RecyclerView import android.view.LayoutInflater import android.view.ViewGroup import com.jamieadkins.commonutils.R import java.util.ArrayList /** * Holds base logic for recycler view adapters. */ abstr...
apache-2.0
Kotlin
90fb624e3e969b71c09b8b68c4b5930a0efdb724
Replace `inline` class by `value` class
gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,grad...
subprojects/configuration-cache-report/src/main/kotlin/data/Trie.kt
subprojects/configuration-cache-report/src/main/kotlin/data/Trie.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
6aaf3ce01a9e1c18b4d6aaf7e503c38646e23f2c
fix example with updated onMessage function
guacamoledragon/twitch-chat,guacamoledragon/twitch-chat
src/test/kotlin/kapchat.kt
src/test/kotlin/kapchat.kt
import club.guacamoledragon.plugin.kapchat.Client import club.guacamoledragon.plugin.kapchat.Message import club.guacamoledragon.plugin.ui.ChatRoom import java.awt.Dimension import java.awt.event.WindowAdapter import java.awt.event.WindowEvent import javax.swing.JFrame import javax.swing.WindowConstants fun main(args:...
import club.guacamoledragon.plugin.kapchat.Client import club.guacamoledragon.plugin.kapchat.Message import club.guacamoledragon.plugin.ui.ChatRoom import java.awt.Dimension import java.awt.event.WindowAdapter import java.awt.event.WindowEvent import javax.swing.JFrame import javax.swing.WindowConstants fun main(args:...
apache-2.0
Kotlin
125bba45a93918a1c93146b0bf3cfb71e97dee99
Remove redundant javadoc
Doctoror/FuckOffMusicPlayer,Doctoror/FuckOffMusicPlayer,Doctoror/PainlessMusicPlayer,Doctoror/PainlessMusicPlayer,Doctoror/PainlessMusicPlayer
domain/src/main/java/com/doctoror/fuckoffmusicplayer/domain/genres/GenresProvider.kt
domain/src/main/java/com/doctoror/fuckoffmusicplayer/domain/genres/GenresProvider.kt
/* * Copyright (C) 2018 Yaroslav Mytkalyk * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
/* * Copyright (C) 2018 Yaroslav Mytkalyk * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
apache-2.0
Kotlin
2bb08a5b7d6e361dc804e85ef61f7ca618faef94
Improve performance by preserving stream instead of creating a new one
google/ground-android,google/ground-android,google/ground-android
ground/src/main/java/com/google/android/ground/ui/home/mapcontainer/LoiCardSource.kt
ground/src/main/java/com/google/android/ground/ui/home/mapcontainer/LoiCardSource.kt
/* * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
/* * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
apache-2.0
Kotlin
bda8e0f356c39bbaf9ea18e3a4642b95424a648f
Advance version
SpineEventEngine/core-java,SpineEventEngine/core-java,SpineEventEngine/core-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
d5ee5b77f56d45e18bde5fe3145398e143e1ac27
Fix the version. Set to `1.7.0`.
SpineEventEngine/base,SpineEventEngine/base,SpineEventEngine/base
version.gradle.kts
version.gradle.kts
/* * Copyright 2020, TeamDev. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Redistribution and use in source...
/* * Copyright 2020, TeamDev. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Redistribution and use in source...
apache-2.0
Kotlin
a1f4333fe498e68df7b639e0841b360cae64385f
Bump version -> `2.0.0-SNAPSHOT.96`
SpineEventEngine/core-java,SpineEventEngine/core-java,SpineEventEngine/core-java
version.gradle.kts
version.gradle.kts
/* * 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
9c7a77621628d66673f225b606d1f87154b4db8c
Update documentation for Network.kt
kirtan403/K4Kotlin,kirtan403/K4Kotlin
k4kotlincore/src/main/java/com/livinglifetechway/k4kotlin/core/Network.kt
k4kotlincore/src/main/java/com/livinglifetechway/k4kotlin/core/Network.kt
package com.livinglifetechway.k4kotlin.core import android.content.Context import android.net.ConnectivityManager /** * Checks for network availability * NOTE: Don't forget to add android.permission.ACCESS_NETWORK_STATE permission to manifest * @return a boolean representing if network is available or not */ fun ...
package com.livinglifetechway.k4kotlin.core import android.content.Context import android.net.ConnectivityManager /** * Checks for network availability * NOTE: Don't forget to add android.permission.ACCESS_NETWORK_STATE permission to manifest */ fun Context.isNetworkAvailable(): Boolean { val cm = getSystemSer...
apache-2.0
Kotlin
58d3b7b92ef3eea58453579f17f439a5f75a55aa
Add Class.isArray() and Class.isPrimitive() method for Kotlin Native.
google/j2cl,google/j2cl,google/j2cl,google/j2cl,google/j2cl
jre/java/super-kt/java/lang/Class.kt
jre/java/super-kt/java/lang/Class.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...
/* * 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
a2c0acb9da383a8e213b871bdabef1bb575b3d76
reformat NotificationComponent
squanchy-dev/squanchy-android,squanchy-dev/squanchy-android,squanchy-dev/squanchy-android
app/src/main/java/net/squanchy/notification/NotificationComponent.kt
app/src/main/java/net/squanchy/notification/NotificationComponent.kt
package net.squanchy.notification import android.app.Service import android.content.Context import dagger.Component import net.squanchy.analytics.Analytics import net.squanchy.injection.ActivityLifecycle import net.squanchy.injection.ApplicationComponent import net.squanchy.injection.ServiceContextModule import net.sq...
package net.squanchy.notification import android.app.Service import android.content.Context import dagger.Component import net.squanchy.analytics.Analytics import net.squanchy.injection.ActivityLifecycle import net.squanchy.injection.ApplicationComponent import net.squanchy.injection.ServiceContextModule import net.sq...
apache-2.0
Kotlin
3d850fc4e8a1062bd1969176953d9ec99b7affad
refactor #511 Rename test function.
toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Yobidashi_kt
app/src/test/java/jp/toastkid/yobidashi/editor/usecase/LinkTitleFetcherUseCaseTest.kt
app/src/test/java/jp/toastkid/yobidashi/editor/usecase/LinkTitleFetcherUseCaseTest.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
a6ea89162a54297956f109feb2e66acce6783e54
Change collector option
JetBrains/ideavim,JetBrains/ideavim
src/com/maddyhome/idea/vim/SetOptionsCollector.kt
src/com/maddyhome/idea/vim/SetOptionsCollector.kt
package com.maddyhome.idea.vim import com.intellij.internal.statistic.beans.UsageDescriptor import com.intellij.internal.statistic.service.fus.collectors.ApplicationUsagesCollector import com.maddyhome.idea.vim.option.ClipboardOptionsData import com.maddyhome.idea.vim.option.IdeaRefactorMode import com.maddyhome.idea....
package com.maddyhome.idea.vim import com.intellij.internal.statistic.beans.UsageDescriptor import com.intellij.internal.statistic.service.fus.collectors.ApplicationUsagesCollector import com.maddyhome.idea.vim.option.ClipboardOptionsData import com.maddyhome.idea.vim.option.IdeaRefactorMode import com.maddyhome.idea....
mit
Kotlin
2892c423feaacbd0e4d8dfc74a16dcb0a32064cd
Disable 'showing diff checkbox' if ranking is disabled
allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/int...
plugins/stats-collector/src/com/intellij/completion/settings/MLRankingConfigurable.kt
plugins/stats-collector/src/com/intellij/completion/settings/MLRankingConfigurable.kt
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.completion.settings import com.intellij.completion.StatsCollectorBundle import com.intellij.openapi.options.BoundConfigurable import com.intellij.openapi.ui....
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.completion.settings import com.intellij.application.options.CodeCompletionOptionsCustomSection import com.intellij.completion.StatsCollectorBundle import com...
apache-2.0
Kotlin
7ebbd4c261e2b7c9bed3c2e0bba98143a2a53112
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/iam/build.gradle.kts
kotlin/services/iam/build.gradle.kts
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { kotlin("jvm") version "1.7.10" application } group = "me.scmacdon" version = "1.0-SNAPSHOT" buildscript { repositories { maven("https://plugins.gradle.org/m2/") } dependencies { classpath("org.jlleitschuh.gradle:ktli...
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { kotlin("jvm") version "1.7.10" application } group = "me.scmacdon" version = "1.0-SNAPSHOT" buildscript { repositories { maven("https://plugins.gradle.org/m2/") } dependencies { classpath("org.jlleitschuh.gradle:ktli...
apache-2.0
Kotlin
5a5f5077393ece828889fcac4cb4328fd086568f
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
e0537b1afa66fbfb6b6b087d844cfe7db450ed5a
refactor #504 Rename test function.
toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt
app/src/test/java/jp/toastkid/yobidashi/notification/morning/RemoteViewsFactoryTest.kt
app/src/test/java/jp/toastkid/yobidashi/notification/morning/RemoteViewsFactoryTest.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
04c971254866381be3d519dede6a95a22a34535e
Fix lint issue
LouisCAD/Splitties,LouisCAD/Splitties,LouisCAD/Splitties
views-recyclerview/src/main/kotlin/splitties/views/recyclerview/LinearLayoutManager.kt
views-recyclerview/src/main/kotlin/splitties/views/recyclerview/LinearLayoutManager.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
0fc362f1e730f51162a46863a3a80fbb4bd1491c
Introduce FirstBallStatistic
joseph-roque/BowlingCompanion
app/src/main/java/ca/josephroque/bowlingcompanion/statistics/impl/FirstBallStatistic.kt
app/src/main/java/ca/josephroque/bowlingcompanion/statistics/impl/FirstBallStatistic.kt
package ca.josephroque.bowlingcompanion.statistics.impl import ca.josephroque.bowlingcompanion.games.Frame import ca.josephroque.bowlingcompanion.games.Game import ca.josephroque.bowlingcompanion.games.lane.Deck import ca.josephroque.bowlingcompanion.games.lane.arePinsCleared import ca.josephroque.bowlingcompanion.sta...
mit
Kotlin
ceda32d014583bfa7e2cdca4701d01f58ee4cdf1
Add KeyHelper for isDoneOrEnterPressed()
Spiddekauga/android-utils
android-framework/src/main/java/io/blushine/android/common/KeyHelper.kt
android-framework/src/main/java/io/blushine/android/common/KeyHelper.kt
package io.blushine.android.common import android.view.KeyEvent import android.view.inputmethod.EditorInfo import android.widget.TextView /** * Various helper classes for editor action listener */ /** * Checks whether IME_DONE or ENTER has been pressed */ fun TextView.OnEditorActionListener.isDoneOrEnterPressed(...
mit
Kotlin
3e0b4ab844b8c29c282e6bc43454901f4e08bfaf
Make Assignment implement Parcelable
FarbodSalamat-Zadeh/TimetableApp,FarbodSalamat-Zadeh/TimetableApp
app/src/main/java/com/satsumasoftware/timetable/framework/Assignment.kt
app/src/main/java/com/satsumasoftware/timetable/framework/Assignment.kt
package com.satsumasoftware.timetable.framework import android.os.Parcel import android.os.Parcelable import android.database.Cursor import com.satsumasoftware.timetable.db.AssignmentsSchema import org.threeten.bp.LocalDate class Assignment(val id: Int, val classId: Int, val title: String, val detail: String, ...
package com.satsumasoftware.timetable.framework import android.database.Cursor import com.satsumasoftware.timetable.db.AssignmentsSchema import org.threeten.bp.LocalDate class Assignment(val id: Int, val classId: Int, val title: String, val detail: String, val dueDate: LocalDate, val completionProgre...
apache-2.0
Kotlin
29ae201fff5da94aca01400429f7cc1f66a2efbe
Implement the subtreeChanged notification on QNames.
rhdunn/xquery-intellij-plugin,rhdunn/xquery-intellij-plugin
src/main/java/uk/co/reecedunn/intellij/plugin/xpath/psi/impl/xpath/XPathQNamePsiImpl.kt
src/main/java/uk/co/reecedunn/intellij/plugin/xpath/psi/impl/xpath/XPathQNamePsiImpl.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
a05a72b0d22e295e738ae65afa02417d95e7aaf6
Add AndroidX test runner dependency
LouisCAD/Splitties,LouisCAD/Splitties,LouisCAD/Splitties
modules/preferences/build.gradle.kts
modules/preferences/build.gradle.kts
/* * Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license. */ plugins { id("com.android.library") kotlin("multiplatform") `maven-publish` } android { setDefaults() buildTypes.getByName("release").consumerProguardFiles("proguard-rules.pro") } ...
/* * Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license. */ plugins { id("com.android.library") kotlin("multiplatform") `maven-publish` } android { setDefaults() buildTypes.getByName("release").consumerProguardFiles("proguard-rules.pro") } ...
apache-2.0
Kotlin
0fb9dd74e839166459dacff0bf1e0cf6db2f0c88
Add Trusted+ rank to mapping
andimage/PCBridge
src/main/kotlin/com/projectcitybuild/spigot/modules/ranks/RankMapper.kt
src/main/kotlin/com/projectcitybuild/spigot/modules/ranks/RankMapper.kt
package com.projectcitybuild.spigot.modules.ranks import com.projectcitybuild.entities.models.Group object RankMapper { fun mapGroupsToPermissionGroups(groups: List<Group>): List<String> { val permissionGroups = mutableSetOf<String>() // TODO: [@andy] use Config file instead of hardcoding these ...
package com.projectcitybuild.spigot.modules.ranks import com.projectcitybuild.entities.models.Group object RankMapper { fun mapGroupsToPermissionGroups(groups: List<Group>): List<String> { val permissionGroups = mutableSetOf<String>() // TODO: [@andy] use Config file instead of hardcoding these ...
mit
Kotlin
637545c752c57cb5648bcea35ff7d8e2e5f79412
Add todo
xamoom/xamoom-android-sdk,xamoom/xamoom-android-sdk
xamoomsdk/src/main/java/com/xamoom/android/xamoomsdk/BeaconViewModel.kt
xamoomsdk/src/main/java/com/xamoom/android/xamoomsdk/BeaconViewModel.kt
package com.xamoom.android.xamoomsdk import androidx.lifecycle.LiveData import androidx.lifecycle.MutableLiveData import androidx.lifecycle.ViewModel import org.altbeacon.beacon.Beacon import java.util.* import kotlin.collections.HashMap import kotlin.collections.LinkedHashMap // TODO: Should this class just store be...
package com.xamoom.android.xamoomsdk import androidx.lifecycle.LiveData import androidx.lifecycle.MutableLiveData import androidx.lifecycle.ViewModel import org.altbeacon.beacon.Beacon import java.util.* import kotlin.collections.HashMap import kotlin.collections.LinkedHashMap class BeaconViewModel : ViewModel() { ...
mit
Kotlin
b801b3a212d75c3c346550c79a5cfb0e5e2d07d9
Convert isLossPartitionEnabled to isLossPartitionDisabled
KotlinNLP/SimpleDNN
src/kotlin/com/kotlinnlp/simplednn/core/functionalities/losses/AugmentedMSECalculator.kt
src/kotlin/com/kotlinnlp/simplednn/core/functionalities/losses/AugmentedMSECalculator.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
ebee046e363e7061f19541fb1a9ef1985fcacabb
fix app module - sample mvp
Ekito/koin,Ekito/koin,InsertKoinIO/koin,InsertKoinIO/koin,InsertKoinIO/koin
koin-projects/examples/android-mvp/src/main/kotlin/fr/ekito/myweatherapp/di/app_module.kt
koin-projects/examples/android-mvp/src/main/kotlin/fr/ekito/myweatherapp/di/app_module.kt
package fr.ekito.myweatherapp.di import fr.ekito.myweatherapp.data.repository.WeatherRepository import fr.ekito.myweatherapp.data.repository.WeatherRepositoryImpl import fr.ekito.myweatherapp.domain.UserSession import fr.ekito.myweatherapp.util.rx.ApplicationSchedulerProvider import fr.ekito.myweatherapp.util.rx.Sched...
package fr.ekito.myweatherapp.di import fr.ekito.myweatherapp.data.repository.WeatherRepository import fr.ekito.myweatherapp.data.repository.WeatherRepositoryImpl import fr.ekito.myweatherapp.domain.UserSession import fr.ekito.myweatherapp.util.rx.ApplicationSchedulerProvider import fr.ekito.myweatherapp.util.rx.Sched...
apache-2.0
Kotlin
72948d553d2d2df719969fee044e300f56cd1734
Bump gradle from 7.2.1 to 7.2.2 in /src.kotlin/alphaTab (#938)
CoderLine/alphaTab,CoderLine/alphaTab,CoderLine/alphaTab,CoderLine/alphaTab,CoderLine/alphaTab,CoderLine/alphaTab
src.kotlin/alphaTab/build.gradle.kts
src.kotlin/alphaTab/build.gradle.kts
buildscript { repositories { gradlePluginPortal() google() mavenCentral() } dependencies { classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.21") classpath("com.android.tools.build:gradle:7.2.2") } } allprojects { repositories { google() ...
buildscript { repositories { gradlePluginPortal() google() mavenCentral() } dependencies { classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.21") classpath("com.android.tools.build:gradle:7.2.1") } } allprojects { repositories { google() ...
mpl-2.0
Kotlin
5c72e2a142cc7ceaf32cccda25902c56648d6fe7
set the asset pipeline source path relative to the *build* directory, which is used in development runtime
robfletcher/midcentury-ipsum,robfletcher/midcentury-ipsum,robfletcher/midcentury-ipsum
src/main/kotlin/com/energizedwork/midcenturyipsum/Main.kt
src/main/kotlin/com/energizedwork/midcenturyipsum/Main.kt
/* * The MIT License (MIT) * * Copyright (c) 2015 Robert Fletcher * * 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 u...
/* * The MIT License (MIT) * * Copyright (c) 2015 Robert Fletcher * * 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 u...
mit
Kotlin
c39f3d34b8038e85d52e215cce5adeca66af1d4e
add annotations to SocialAuthError
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/remote/auth/model/SocialAuthError.kt
app/src/main/java/org/stepik/android/remote/auth/model/SocialAuthError.kt
package org.stepik.android.remote.auth.model import com.google.gson.annotations.SerializedName class SocialAuthError( @SerializedName("error") val error: String?, @SerializedName("email") val email: String?, @SerializedName("provider") val provider: String? )
package org.stepik.android.remote.auth.model class SocialAuthError( val error: String?, val email: String?, val provider: String? )
apache-2.0
Kotlin
9239ea5bf96dfd0b96bfd44529480b28660cc0f6
Add return type to methods
jguerinet/MyMartlet,jguerinet/MyMartlet,jguerinet/MyMartlet,jguerinet/MyMartlet,jguerinet/MyMartlet-Android
app/src/main/java/viewmodel/SemesterViewModel.kt
app/src/main/java/viewmodel/SemesterViewModel.kt
/* * Copyright 2014-2019 Julien Guerinet * * 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 2014-2018 Julien Guerinet * * 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
153ae99dac411587de825e6d990e689d31bb80d6
fix broken tests
icela/FriceEngine,icela/FriceEngine
test/org/frice/utils/graphics/ColorUtilsTest.kt
test/org/frice/utils/graphics/ColorUtilsTest.kt
package org.frice.utils.graphics import org.junit.Test import java.awt.Color import java.util.* import kotlin.test.assertEquals class ColorUtilsTest { private infix fun <Any> Any?.shouldBe(o: Any?) = assertEquals(o, this) @Test fun averageTest() { Color(0, 0, 0).average() shouldBe 0 (0..255).forEach { Color(i...
package org.frice.utils.graphics import org.junit.Test import java.awt.Color import java.util.* import kotlin.test.assertEquals class ColorUtilsTest { private infix fun <Any> Any?.shouldBe(o: Any?) = assertEquals(o, this) @Test fun averageTest() { Color(0, 0, 0).average() shouldBe 0 (0..255).forEach { Color(i...
agpl-3.0
Kotlin
f3c50720f2b108741a491e4c9608443f405c8d08
Bump kotlinpoet from 1.7.1 to 1.8.0 (#849)
ACRA/acra,ACRA/acra,ACRA/acra,ACRA/acra
annotationprocessor/build.gradle.kts
annotationprocessor/build.gradle.kts
/* * Copyright (c) 2020 * * 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 writi...
/* * Copyright (c) 2020 * * 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 writi...
apache-2.0
Kotlin
66d9ee8bf0a847e144671c2d952f40ef51b1bb02
fix busy only switch
camsteffen/polite,camsteffen/polite
src/main/java/me/camsteffen/polite/rule/edit/EditCalendarRuleViewModel.kt
src/main/java/me/camsteffen/polite/rule/edit/EditCalendarRuleViewModel.kt
package me.camsteffen.polite.rule.edit import android.app.Application import androidx.lifecycle.LiveData import androidx.lifecycle.MutableLiveData import androidx.lifecycle.Transformations import me.camsteffen.polite.model.CalendarEventMatchBy import me.camsteffen.polite.model.CalendarRule import javax.inject.Inject ...
package me.camsteffen.polite.rule.edit import android.app.Application import androidx.lifecycle.LiveData import androidx.lifecycle.MutableLiveData import androidx.lifecycle.Transformations import me.camsteffen.polite.model.CalendarEventMatchBy import me.camsteffen.polite.model.CalendarRule import javax.inject.Inject ...
mpl-2.0
Kotlin
9505ad0df05a9565dfa356c1d8a9c72c383d3c73
refactor #894 Accept null.
toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt
number/src/main/java/jp/toastkid/number/repository/GameRepository.kt
number/src/main/java/jp/toastkid/number/repository/GameRepository.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
eea08f76aad4f5bb43fcab77a5ff4e7239a619cc
Fix memory lick in SpaceReviewToolWindowFactory
allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/int...
plugins/space/src/main/kotlin/com/intellij/space/vcs/review/SpaceReviewToolWindowFactory.kt
plugins/space/src/main/kotlin/com/intellij/space/vcs/review/SpaceReviewToolWindowFactory.kt
// Copyright 2000-2021 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.space.vcs.review import com.intellij.openapi.components.service import com.intellij.openapi.project.DumbAware import com.intellij.openapi.project.Project imp...
// Copyright 2000-2021 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.space.vcs.review import com.intellij.openapi.components.service import com.intellij.openapi.project.DumbAware import com.intellij.openapi.project.Project imp...
apache-2.0
Kotlin
b613c3b3e4a5e676b84a1e43f68a37788bbf64fe
Sort BUILTIN_TYPES
intellij-purescript/intellij-purescript,intellij-purescript/intellij-purescript
lexer/src/main/kotlin/org/purescript/PSLanguage.kt
lexer/src/main/kotlin/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
f262d1c16430ede250be3b2942d08262d8affa78
refactor #496 Divide to use case.
toastkidjp/Jitte,toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt
app/src/main/java/jp/toastkid/yobidashi/main/usecase/MusicPlayerUseCase.kt
app/src/main/java/jp/toastkid/yobidashi/main/usecase/MusicPlayerUseCase.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
ebb08ae84f89c4c5576e83448ffdfe178a1940f8
Reduce logging in RequisitionLinker daemon. (world-federation-of-advertisers/experimental#58)
world-federation-of-advertisers/cross-media-measurement,world-federation-of-advertisers/cross-media-measurement,world-federation-of-advertisers/cross-media-measurement
src/main/kotlin/org/wfanet/measurement/kingdom/daemon/RequisitionLinker.kt
src/main/kotlin/org/wfanet/measurement/kingdom/daemon/RequisitionLinker.kt
// Copyright 2020 The Cross-Media Measurement 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 applic...
// Copyright 2020 The Cross-Media Measurement 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 applic...
apache-2.0
Kotlin
d7203c23af021dc7af49502fdbf653cf2c8aa172
Complete koan 39 (HTML builders)
sleberknight/kotlin-koans,sleberknight/kotlin-koans
src/v_builders/_39_HtmlBuilders.kt
src/v_builders/_39_HtmlBuilders.kt
package v_builders import util.TODO import util.doc39 import v_builders.data.getProducts import v_builders.htmlLibrary.* fun getTitleColor() = "#b9c9fe" fun getCellColor(row: Int, column: Int) = if ((row + column) %2 == 0) "#dce4ff" else "#eff2ff" fun todoTask39(): Nothing = TODO( """ Task 39. 1)...
package v_builders import util.TODO import util.doc39 import v_builders.data.getProducts import v_builders.htmlLibrary.* fun getTitleColor() = "#b9c9fe" fun getCellColor(row: Int, column: Int) = if ((row + column) %2 == 0) "#dce4ff" else "#eff2ff" fun todoTask39(): Nothing = TODO( """ Task 39. 1)...
mit
Kotlin
609760ba4502d22d6e25c3cafa4875902bbedebe
Add method to find all sponsors
BreakOutEvent/breakout-backend,BreakOutEvent/breakout-backend,BreakOutEvent/breakout-backend
src/main/java/backend/model/user/UserRepository.kt
src/main/java/backend/model/user/UserRepository.kt
@file:JvmName("UserRepository") package backend.model.user import org.springframework.data.jpa.repository.Query import org.springframework.data.repository.CrudRepository import org.springframework.data.repository.query.Param interface UserRepository : CrudRepository<UserCore, Long> { fun findByEmail(email: Strin...
@file:JvmName("UserRepository") package backend.model.user import org.springframework.data.jpa.repository.Query import org.springframework.data.repository.CrudRepository import org.springframework.data.repository.query.Param interface UserRepository : CrudRepository<UserCore, Long> { fun findByEmail(email: Strin...
agpl-3.0
Kotlin
193db994575f6a056fd46bfdf732b007fbf03c78
Create TurbineAndAdvanceTimeByTest.kt
thuytrinh/KotlinPlayground,thuytrinh/KotlinPlayground
src/test/kotlin/turbine/TurbineAndAdvanceTimeByTest.kt
src/test/kotlin/turbine/TurbineAndAdvanceTimeByTest.kt
package turbine import app.cash.turbine.test import kotlinx.coroutines.delay import kotlinx.coroutines.flow.flow import kotlinx.coroutines.test.runBlockingTest import org.assertj.core.api.Assertions.assertThat import org.junit.Test import kotlin.time.seconds class TurbineAndAdvanceTimeByTest { @Test fun test() = ...
mit
Kotlin
08809af7924a2c8a95191133d9eba0d6bf104b13
Format Transcript
jguerinet/MyMartlet,jguerinet/MyMartlet,jguerinet/MyMartlet-Android,jguerinet/MyMartlet,jguerinet/MyMartlet
app/src/main/java/model/transcript/Transcript.kt
app/src/main/java/model/transcript/Transcript.kt
/* * Copyright 2014-2018 Julien Guerinet * * 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 2014-2018 Julien Guerinet * * 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
4dc0654ee951722d61087f1cf2e8c3cc9a341780
Fix for repositories not defined issue in versioning multimodule example (#2263)
Kotlin/dokka,Kotlin/dokka,Kotlin/dokka,Kotlin/dokka,Kotlin/dokka,Kotlin/dokka
examples/gradle/dokka-versioning-multimodule-example/build.gradle.kts
examples/gradle/dokka-versioning-multimodule-example/build.gradle.kts
plugins { kotlin("jvm") version "1.6.0" id("org.jetbrains.dokka") version ("1.6.0") apply false } // The versioning plugin should be applied in all submodules subprojects { repositories { mavenCentral() } apply { plugin("org.jetbrains.kotlin.jvm") plugin("org.jetbrains.dokka...
plugins { kotlin("jvm") version "1.6.0" id("org.jetbrains.dokka") version ("1.6.0") apply false } // The versioning plugin should be applied in all submodules subprojects { apply { plugin("org.jetbrains.kotlin.jvm") plugin("org.jetbrains.dokka") } val dokkaPlugin by configurations ...
apache-2.0
Kotlin
26c35430ee360b5f1bf38abc636973f75f2d006d
Use github URL for plugin website
NextFaze/dev-fun,NextFaze/dev-fun,NextFaze/dev-fun
devfun-gradle-plugin/build.gradle.kts
devfun-gradle-plugin/build.gradle.kts
import com.nextfaze.devfun.* import groovy.lang.Closure import org.gradle.kotlin.dsl.get import kotlin.reflect.KCallable import kotlin.reflect.KFunction plugins { id("com.gradle.plugin-publish") version "0.9.10" } apply { plugin("kotlin") plugin("kotlin-kapt") plugin("maven-publish") } description = ...
import com.nextfaze.devfun.* import groovy.lang.Closure import org.gradle.kotlin.dsl.get import kotlin.reflect.KCallable import kotlin.reflect.KFunction plugins { id("com.gradle.plugin-publish") version "0.9.10" } apply { plugin("kotlin") plugin("kotlin-kapt") plugin("maven-publish") } description = ...
apache-2.0
Kotlin
6638cde3541abc7eedaae8de3761b078249f3207
Handle correct exception for large responses
Waboodoo/HTTP-Shortcuts,Waboodoo/HTTP-Shortcuts,Waboodoo/HTTP-Shortcuts
HTTPShortcuts/app/src/main/kotlin/ch/rmy/android/http_shortcuts/extensions/DataExtensions.kt
HTTPShortcuts/app/src/main/kotlin/ch/rmy/android/http_shortcuts/extensions/DataExtensions.kt
package ch.rmy.android.http_shortcuts.extensions import android.content.Context import android.net.Uri import ch.rmy.android.http_shortcuts.utils.SizeLimitedReader import java.io.BufferedReader import java.io.InputStreamReader private const val BUFFER_SIZE = 16384 fun Uri.readIntoString(context: Context, limit: Long...
package ch.rmy.android.http_shortcuts.extensions import android.content.Context import android.net.Uri import ch.rmy.android.http_shortcuts.exceptions.ResponseTooLargeException import ch.rmy.android.http_shortcuts.utils.SizeLimitedReader import java.io.BufferedReader import java.io.InputStreamReader private const val...
mit
Kotlin
d26e2aa6c27dc3e653903d7bdb3fc8f548c35d36
Make resource selection more predictable
android/project-replicator
code/codegen/src/main/kotlin/com/android/gradle/replicator/resgen/util/PregenFileSelector.kt
code/codegen/src/main/kotlin/com/android/gradle/replicator/resgen/util/PregenFileSelector.kt
package com.android.gradle.replicator.resgen.util import java.io.File import kotlin.random.Random enum class FileTypes { PNG, NINE_PATCH, WEBP, JPEG, GIF, TEXT, JSON, TTF, OTF, TTC } private fun listResourceFiles(folder: String): List<File> { val loader = Thread.currentThread().contextClassLoader val url...
package com.android.gradle.replicator.resgen.util import java.io.File import kotlin.random.Random enum class FileTypes { PNG, NINE_PATCH, WEBP, JPEG, GIF, TEXT, JSON, TTF, OTF, TTC } private fun listResourceFiles(folder: String): List<File> { val loader = Thread.currentThread().contextClassLoader val url...
apache-2.0
Kotlin
313b481a8d5e6de833a825a0d453bf35b474864c
Migrate UserRepository.java to kotlin
google/ground-android,google/ground-android,google/ground-android
gnd/src/main/java/com/google/android/gnd/repository/UserRepository.kt
gnd/src/main/java/com/google/android/gnd/repository/UserRepository.kt
/* * Copyright 2019 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 2019 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
488497bb1929001ae56e6aa2fb0bf8f4ae5e3180
Format Semester
jguerinet/MyMartlet,jguerinet/MyMartlet,jguerinet/MyMartlet,jguerinet/MyMartlet,jguerinet/MyMartlet-Android
app/src/main/java/model/Semester.kt
app/src/main/java/model/Semester.kt
/* * Copyright 2014-2018 Julien Guerinet * * 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 2014-2018 Julien Guerinet * * 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
e687a86f586992dd16c0fc5f989071524d7d27f9
Update Neanderthal.kt
outware/neanderthal,outware/neanderthal
neanderthal/src/main/kotlin/au/com/outware/neanderthal/Neanderthal.kt
neanderthal/src/main/kotlin/au/com/outware/neanderthal/Neanderthal.kt
package au.com.outware.neanderthal import android.content.Context import au.com.outware.neanderthal.data.factory.ConfigurationFactoryImpl import au.com.outware.neanderthal.data.model.ConfigurationFactory import au.com.outware.neanderthal.data.repository.VariantRepository import au.com.outware.neanderthal.data.reposito...
package au.com.outware.neanderthal import android.content.Context import au.com.outware.neanderthal.data.factory.ConfigurationFactoryImpl import au.com.outware.neanderthal.data.model.ConfigurationFactory import au.com.outware.neanderthal.data.repository.VariantRepository import au.com.outware.neanderthal.data.reposito...
mit
Kotlin
f1a9cafc99a829ec13574fa831135096b6ed7787
Fix registration url.
droidcon-italy-hackathon-2016/memory-leaks-android
app/src/main/java/com/elpassion/memoryleaks/register/api/impl/RegisterApi.kt
app/src/main/java/com/elpassion/memoryleaks/register/api/impl/RegisterApi.kt
package com.elpassion.memoryleaks.register.api.impl import com.elpassion.memoryleaks.common.provider.RetrofitProvider import retrofit2.http.GET import retrofit2.http.POST import retrofit2.http.Query import rx.Observable interface RegisterApi { @POST("users") fun call(@Query("name") name: String, @Query("toke...
package com.elpassion.memoryleaks.register.api.impl import com.elpassion.memoryleaks.common.provider.RetrofitProvider import retrofit2.http.GET import retrofit2.http.Query import rx.Observable interface RegisterApi { @GET("ping") fun call(@Query("name") name: String, @Query("token") token: String? = null): O...
apache-2.0
Kotlin
41b2f210cad2cfd021cd923bd8fb6302abffbe20
update Number+Extension.kt
fengzhizi715/SAF-Kotlin-Utils,fengzhizi715/SAF-Kotlin-Utils
saf-kotlin-ext/src/main/java/com/safframework/ext/Number+Extension.kt
saf-kotlin-ext/src/main/java/com/safframework/ext/Number+Extension.kt
package com.safframework.ext import java.math.BigDecimal import java.math.RoundingMode import java.text.DecimalFormat /** * @Author zhiqiang * @Date 2019-06-19 * @Description */ /** * 默认保留小数点后10位 */ const val DEFAULT_DECIMAL_NUMBER = 2 /** * 默认分隔符为千分位 */ const val DEFAULT_SEPARATE_NUMBER = 3 /** * @param...
package com.safframework.ext import java.math.BigDecimal import java.math.RoundingMode import java.text.DecimalFormat /** * @Author zhiqiang * @Date 2019-06-19 * @Description */ /** * 默认保留小数点后10位 */ const val DEFAULT_DECIMAL_NUMBER = 2 /** * 默认分隔符为千分位 */ const val DEFAULT_SEPARATE_NUMBER = 3 /** * @param...
apache-2.0
Kotlin
549515973e2429e2ed17f644a641b033ea38d179
Update gradle plugin version from 4.2.1 to 4.2.2 (#629)
google/android-fhir,google/android-fhir
buildSrc/src/main/kotlin/Plugins.kt
buildSrc/src/main/kotlin/Plugins.kt
/* * Copyright 2020 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 2020 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
db69766c146c9f6265461f9d37f85b6dae40e1f2
refactor #506 Implement factory's unit test.
toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt,toastkidjp/Jitte
app/src/test/java/jp/toastkid/yobidashi/media/image/preview/ImagePreviewDialogFragmentTest.kt
app/src/test/java/jp/toastkid/yobidashi/media/image/preview/ImagePreviewDialogFragmentTest.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
7247b15b21b45e2e241293fb04c31733f366f379
Add missing license header
farmerbb/Notepad
app/src/main/java/com/farmerbb/notepad/models/ExportedNotesDirectory.kt
app/src/main/java/com/farmerbb/notepad/models/ExportedNotesDirectory.kt
/* Copyright 2022 Braden Farmer * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
package com.farmerbb.notepad.models import android.net.Uri import com.github.k1rakishou.fsaf.manager.base_directory.BaseDirectory class ExportedNotesDirectory( private val uri: Uri?, ) : BaseDirectory() { override fun getDirUri() = uri override fun getDirFile() = null override fun currentActiveBaseDir...
apache-2.0
Kotlin
99cf0b0e17a99d15e9f0f923515d5ad8aa3fc06b
add missing brackets
canou/Simple-Commons
commons/src/main/kotlin/com/simplemobiletools/commons/extensions/Int.kt
commons/src/main/kotlin/com/simplemobiletools/commons/extensions/Int.kt
package com.simplemobiletools.commons.extensions import android.graphics.Color import java.util.* fun Int.getContrastColor(): Int { val y = (299 * Color.red(this) + 587 * Color.green(this) + 114 * Color.blue(this)) / 1000 return if (y >= 128) Color.BLACK else Color.WHITE } fun Int.adjustAlpha(factor: Float):...
package com.simplemobiletools.commons.extensions import android.graphics.Color import java.util.* fun Int.getContrastColor(): Int { val y = (299 * Color.red(this) + 587 * Color.green(this) + 114 * Color.blue(this)) / 1000 return if (y >= 128) Color.BLACK else Color.WHITE } fun Int.adjustAlpha(factor: Float):...
apache-2.0
Kotlin
a87c9346c331597315302635a91be79d3fa27d1b
Fix the existing image unit tests
wordpress-mobile/AztecEditor-Android,wordpress-mobile/AztecEditor-Android,wordpress-mobile/AztecEditor-Android
wordpress-shortcodes/src/test/java/org/wordpress/aztec/plugins/shortcodes/ImageCaptionTest.kt
wordpress-shortcodes/src/test/java/org/wordpress/aztec/plugins/shortcodes/ImageCaptionTest.kt
@file:Suppress("DEPRECATION") package org.wordpress.aztec.plugins.shortcodes import android.app.Activity import org.junit.Assert import org.junit.Before import org.junit.Test import org.junit.runner.RunWith import org.robolectric.Robolectric import org.robolectric.RobolectricTestRunner import org.robolectric.annotati...
@file:Suppress("DEPRECATION") package org.wordpress.aztec.plugins.shortcodes import android.app.Activity import org.junit.Assert import org.junit.Before import org.junit.Test import org.junit.runner.RunWith import org.robolectric.Robolectric import org.robolectric.RobolectricTestRunner import org.robolectric.annotati...
mpl-2.0
Kotlin
ceaa802ec663913423f1c441a7e050747e5eae3b
Add FileManagerTest
Doctoror/ParticleConstellationsLiveWallpaper,Doctoror/ParticleConstellationsLiveWallpaper
app/src/test/java/com/doctoror/particleswallpaper/data/file/FileManagerTest.kt
app/src/test/java/com/doctoror/particleswallpaper/data/file/FileManagerTest.kt
/* * Copyright (C) 2018 Yaroslav Mytkalyk * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
apache-2.0
Kotlin
5ab70ffce7cc4fe21b2674a0ea80cd74a89168d9
Fix typo
sbrannen/junit-lambda,junit-team/junit-lambda
junit-platform-console-standalone/junit-platform-console-standalone.gradle.kts
junit-platform-console-standalone/junit-platform-console-standalone.gradle.kts
plugins { `java-library-conventions` id("com.github.johnrengelman.shadow") } description = "JUnit Platform Console Standalone" dependencies { shadowed(project(":junit-platform-reporting")) shadowed(project(":junit-platform-console")) shadowed(project(":junit-jupiter-engine")) shadowed(project(":junit-jupiter-pa...
plugins { `java-library-conventions` id("com.github.johnrengelman.shadow") } description = "JUnit Platform Console Standalone" dependencies { shadowed(project(":junit-platform-reporting")) shadowed(project(":junit-platform-console")) shadowed(project(":junit-jupiter-engine")) shadowed(project(":junit-jupiter-pa...
epl-1.0
Kotlin
6eb0203d346a2a600accc0212880801e87bde081
Add plugin publication to the portal
blindpirate/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,gradle/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle-script-kotlin,gradle/gradle,blindpirate/gradle,robinverduijn/gradle,robinverduijn/g...
plugins/build.gradle.kts
plugins/build.gradle.kts
import build.kotlinVersion plugins { `java-gradle-plugin` id("com.gradle.plugin-publish") version "0.9.7" } apply { plugin("kotlin") } base { archivesBaseName = "gradle-script-kotlin-plugins" } dependencies { implementation(kotlin("stdlib")) implementation(kotlin("gradle-plugin")) test...
import build.kotlinVersion plugins { `java-gradle-plugin` } apply { plugin("kotlin") } base { archivesBaseName = "gradle-script-kotlin-plugins" } dependencies { implementation(kotlin("stdlib")) implementation(kotlin("gradle-plugin")) testImplementation(project(":test-fixtures")) } tasks {...
apache-2.0
Kotlin
d8062c0710de495e82dd856bf8b1a2bd92024a7c
Remove v4 accept request header
arkon/LISTEN.moe-Unofficial-Android-App,LISTEN-moe/android-app
app/src/main/java/me/echeung/moemoekyun/client/network/NetworkClient.kt
app/src/main/java/me/echeung/moemoekyun/client/network/NetworkClient.kt
package me.echeung.moemoekyun.client.network import me.echeung.moemoekyun.util.system.NetworkUtil import okhttp3.Interceptor import okhttp3.OkHttpClient object NetworkClient { private const val HEADER_CONTENT_TYPE = "Content-Type" private const val CONTENT_TYPE = "application/json" private const val HEA...
package me.echeung.moemoekyun.client.network import me.echeung.moemoekyun.util.system.NetworkUtil import okhttp3.Interceptor import okhttp3.OkHttpClient object NetworkClient { private const val HEADER_CONTENT_TYPE = "Content-Type" private const val CONTENT_TYPE = "application/json" private const val HEA...
mit
Kotlin
bb7ec5f15917ce5ac1721dc4f397a623f6076f1b
Add Colour Coded Logging System
FTL-Lang/FTL-Compiler
src/main/kotlin/com/thomas/needham/ftl/Logger.kt
src/main/kotlin/com/thomas/needham/ftl/Logger.kt
/* The MIT License (MIT) FTL-Compiler Copyright (c) 2016 thoma 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 ...
mit
Kotlin
e5e2e76bf0b278276eb21535f3a093ccc40bb3d2
refactor #220 Add save() test case.
toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt,toastkidjp/Jitte
app/src/test/java/jp/toastkid/yobidashi/browser/archive/auto/AutoArchiveTest.kt
app/src/test/java/jp/toastkid/yobidashi/browser/archive/auto/AutoArchiveTest.kt
package jp.toastkid.yobidashi.browser.archive.auto import android.webkit.WebView import io.mockk.MockKAnnotations import io.mockk.every import io.mockk.impl.annotations.InjectMockKs import io.mockk.impl.annotations.MockK import io.mockk.mockk import io.mockk.unmockkAll import io.mockk.verify import jp.toastkid.lib.fil...
package jp.toastkid.yobidashi.browser.archive.auto import org.junit.Assert.assertFalse import org.junit.Assert.assertTrue import org.junit.Test /** * @author toastkidjp */ class AutoArchiveTest { @Test fun test() { assertFalse(AutoArchive.shouldNotUpdateTab("https://www.yahoo.co.jp/")) ass...
epl-1.0
Kotlin
84180cd12d08df4b08ea19d6a5c67d0ce687960c
refactor #853 Use compat function.
toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt
article/src/main/java/jp/toastkid/article_viewer/zip/ZipLoaderService.kt
article/src/main/java/jp/toastkid/article_viewer/zip/ZipLoaderService.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
02486b1b7b5d02882c5a0b0aec918eec2c02fe27
Add forgotten test for line break inspection in magic comments
Ruben-Sten/TeXiFy-IDEA,Ruben-Sten/TeXiFy-IDEA,Ruben-Sten/TeXiFy-IDEA,Ruben-Sten/TeXiFy-IDEA
test/nl/hannahsten/texifyidea/inspections/latex/LatexLineBreakInspectionTest.kt
test/nl/hannahsten/texifyidea/inspections/latex/LatexLineBreakInspectionTest.kt
package nl.hannahsten.texifyidea.inspections.latex import nl.hannahsten.texifyidea.inspections.TexifyInspectionTestBase class LatexLineBreakInspectionTest : TexifyInspectionTestBase(LatexLineBreakInspection()) { fun testWarning() = testHighlighting(""" Not this, b<weak_warning descr="Sentence does not...
package nl.hannahsten.texifyidea.inspections.latex import nl.hannahsten.texifyidea.file.LatexFileType import nl.hannahsten.texifyidea.inspections.TexifyInspectionTestBase import nl.hannahsten.texifyidea.testutils.writeCommand class LatexLineBreakInspectionTest : TexifyInspectionTestBase(LatexLineBreakInspection()) { ...
mit
Kotlin
8831856c32f785512d70331499e112f8746b17c0
swap nodes
dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas
kotlin/src/katas/kotlin/leetcode/swap_nodes_in_pairs/SwapNodesInPairs.kt
kotlin/src/katas/kotlin/leetcode/swap_nodes_in_pairs/SwapNodesInPairs.kt
package katas.kotlin.leetcode.swap_nodes_in_pairs import katas.kotlin.leetcode.ListNode import katas.kotlin.leetcode.listNodes import kotlincommon.test.shouldEqual import org.junit.Test /** * https://leetcode.com/problems/swap-nodes-in-pairs */ class SwapNodesInPairsTests { @Test fun `swap every two adjacent no...
package katas.kotlin.leetcode.swap_nodes_in_pairs import katas.kotlin.leetcode.ListNode import katas.kotlin.leetcode.listNodes import kotlincommon.test.shouldEqual import org.junit.Test /** * https://leetcode.com/problems/swap-nodes-in-pairs */ class SwapNodesInPairsTests { @Test fun `swap every two adjacent no...
unlicense
Kotlin
ceecdee852c948f8d8bf46f3ae1beaac050d803e
Add note about failing test for the future
Saketme/JRAW,Saketme/JRAW,thatJavaNerd/JRAW,thatJavaNerd/JRAW,thatJavaNerd/JRAW,Saketme/JRAW
lib/src/test/kotlin/net/dean/jraw/test/integration/InboxReferenceTest.kt
lib/src/test/kotlin/net/dean/jraw/test/integration/InboxReferenceTest.kt
package net.dean.jraw.test.integration import com.winterbe.expekt.should import net.dean.jraw.test.TestConfig.reddit import net.dean.jraw.test.randomName import org.jetbrains.spek.api.Spek import org.jetbrains.spek.api.dsl.describe import org.jetbrains.spek.api.dsl.it class InboxReferenceTest : Spek({ val inbox =...
package net.dean.jraw.test.integration import com.winterbe.expekt.should import net.dean.jraw.test.TestConfig.reddit import net.dean.jraw.test.randomName import org.jetbrains.spek.api.Spek import org.jetbrains.spek.api.dsl.describe import org.jetbrains.spek.api.dsl.it class InboxReferenceTest : Spek({ val inbox =...
mit
Kotlin
72a25946363a7a93f355775931143083e3eaa017
Load Java no throw methods eagerly
CodeIntelligenceTesting/jazzer,CodeIntelligenceTesting/jazzer,CodeIntelligenceTesting/jazzer,CodeIntelligenceTesting/jazzer,CodeIntelligenceTesting/jazzer
agent/src/main/java/com/code_intelligence/jazzer/generated/JavaNoThrowMethods.kt
agent/src/main/java/com/code_intelligence/jazzer/generated/JavaNoThrowMethods.kt
// Copyright 2021 Code Intelligence GmbH // // 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 2021 Code Intelligence GmbH // // 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
daf100a1557be1fe69daa9664bee724b0ddafb77
Allow to use nullable parameters
InsertKoinIO/koin,InsertKoinIO/koin,InsertKoinIO/koin,Ekito/koin,Ekito/koin
koin-projects/koin-core/src/main/kotlin/org/koin/core/parameter/ParameterList.kt
koin-projects/koin-core/src/main/kotlin/org/koin/core/parameter/ParameterList.kt
/* * Copyright 2017-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 ap...
/* * Copyright 2017-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 ap...
apache-2.0
Kotlin
6a6ef57819122f305f4a81629d6592c27d740d26
Revert changes.
dleppik/EgTest,dleppik/EgTest
kotlin-generator/src/main/kotlin/com/vocalabs/egtest/codegenerator/ClassBuild.kt
kotlin-generator/src/main/kotlin/com/vocalabs/egtest/codegenerator/ClassBuild.kt
package com.vocalabs.egtest.codegenerator import kotlin.reflect.KType class ClassBuild(var name: String, var properties: List<KType>): AbstractCodeBuilding(), ClassBuilder { var classSignature: String = "" var listofFunctions: List<FunctionBuild> = listOf() var classBody: String= "" fun addClass...
package com.vocalabs.egtest.codegenerator import kotlin.reflect.KType class ClassBuild(var name: String, var properties: List<KType>): AbstractCodeBuilding(), ClassBuilder { var classSignature: String = "" var listofFunctions: List<FunctionBuild> = listOf() var classBody: String= "" fun addClass...
apache-2.0
Kotlin
f19d2fd0b94838a18affcd51d1d0e975111e54ac
fix compilazione
lightem90/Sismic
app/src/main/java/com/polito/sismic/Interactors/Helpers/LoginSharedPreferences.kt
app/src/main/java/com/polito/sismic/Interactors/Helpers/LoginSharedPreferences.kt
package com.polito.sismic.Interactors.Helpers import android.content.Context import com.polito.sismic.Domain.UserDetails import com.polito.sismic.Extensions.edit /** * Created by Matteo on 14/08/2017. */ //TODO can be done better, in a more "kotlin" way class LoginSharedPreferences { companion object { ...
package com.polito.sismic.Interactors.Helpers import android.content.Context import com.polito.sismic.Domain.UserDetails import com.polito.sismic.Extensions.edit /** * Created by Matteo on 14/08/2017. */ //TODO can be done better, in a more "kotlin" way class LoginSharedPreferences { companion object { ...
mit
Kotlin
8fd7050f9b0b050790de89d3f29af326817d4eb3
Fix main command
Homes-MinecraftServerMod/Homes,Homes-MinecraftServerMod/Homes
src/main/kotlin/com/masahirosaito/spigot/homes/commands/maincommands/MainCommand.kt
src/main/kotlin/com/masahirosaito/spigot/homes/commands/maincommands/MainCommand.kt
package com.masahirosaito.spigot.homes.commands.maincommands import com.masahirosaito.spigot.homes.commands.BaseCommand import com.masahirosaito.spigot.homes.commands.subcommands.console.ConsoleCommand import com.masahirosaito.spigot.homes.commands.subcommands.player.PlayerCommand import com.masahirosaito.spigot.homes...
package com.masahirosaito.spigot.homes.commands.maincommands import com.masahirosaito.spigot.homes.commands.BaseCommand import com.masahirosaito.spigot.homes.commands.subcommands.console.ConsoleCommand import com.masahirosaito.spigot.homes.commands.subcommands.player.PlayerCommand import com.masahirosaito.spigot.homes...
apache-2.0
Kotlin
f9d5650bc072f4c87c345e348eb3e7f6e433240c
Add LibraryPermissionsProviderTest
Doctoror/PainlessMusicPlayer,Doctoror/PainlessMusicPlayer,Doctoror/PainlessMusicPlayer,Doctoror/FuckOffMusicPlayer,Doctoror/FuckOffMusicPlayer
presentation/src/test/java/com/doctoror/fuckoffmusicplayer/presentation/library/LibraryPermissionsProviderTest.kt
presentation/src/test/java/com/doctoror/fuckoffmusicplayer/presentation/library/LibraryPermissionsProviderTest.kt
/* * Copyright (C) 2018 Yaroslav Mytkalyk * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
apache-2.0
Kotlin
e399bc41856ad31e2e0937ac381f755bfde4e9e0
Fix managingTransitiveDependencies/constraintsFromBOM Kotlin DSL sample
robinverduijn/gradle,gradle/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,lsmaira/gradle,lsmaira/gradle,gradle/gradle,lsmaira/gradle,lsmaira/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,robinverduijn/gradle,robinverduijn/gradle,robinverduijn/gradle...
subprojects/docs/src/samples/userguide/dependencyManagement/managingTransitiveDependencies/constraintsFromBOM/kotlin/build.gradle.kts
subprojects/docs/src/samples/userguide/dependencyManagement/managingTransitiveDependencies/constraintsFromBOM/kotlin/build.gradle.kts
plugins { `java-library` } repositories { mavenCentral() } // tag::dependency-on-bom[] dependencies { // import a BOM implementation(dependencies.platform("org.springframework.boot:spring-boot-dependencies:1.5.8.RELEASE")) // define dependencies without versions implementation("com.google.cod...
plugins { `java-library` } repositories { mavenCentral() } // tag::dependency-on-bom[] dependencies { // import a BOM implementation("org.springframework.boot:spring-boot-dependencies:1.5.8.RELEASE") // define dependencies without versions implementation("com.google.code.gson:gson") imple...
apache-2.0
Kotlin
04daea0185595e4e185dd696f85febde19229979
refactor #727 Rename field.
toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt
about/src/test/java/jp/toastkid/about/license/LicenseContentLoaderUseCaseTest.kt
about/src/test/java/jp/toastkid/about/license/LicenseContentLoaderUseCaseTest.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
b577a979c09d7bf196d82452e6d1b75d09ddeabc
Add Result
emanuelpalm/palm-compute,emanuelpalm/palm-compute,emanuelpalm/palm-compute,emanuelpalm/palm-compute
core/src/main/java/se/ltu/emapal/compute/util/Result.kt
core/src/main/java/se/ltu/emapal/compute/util/Result.kt
package se.ltu.emapal.compute.util /** * Data type used for error handling. * * In places where it is expected that functions fail frequently, it may be inappropriate to use * regular exceptions, as these are easy to ignore and are expensive in terms of performance. The * [Result] type is constructed either as a ...
mit
Kotlin
c8549fb8900ac618e9bc68bf6d532ca73b9aa010
add info count to FileNode
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/lang-impl/src/com/intellij/analysis/problemsView/toolWindow/FileNode.kt
platform/lang-impl/src/com/intellij/analysis/problemsView/toolWindow/FileNode.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.analysis.problemsView.toolWindow import com.intellij.icons.AllIcons import com.intellij.ide.projectView.PresentationData import com.intellij.ide.projectView....
// 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.analysis.problemsView.toolWindow import com.intellij.icons.AllIcons import com.intellij.ide.projectView.PresentationData import com.intellij.ide.projectView....
apache-2.0
Kotlin
9727793f3fa8ef0e0c6aca87ba49b998bb7b149d
make it work
songzhw/Hello-kotlin,songzhw/Hello-kotlin
algo/src/main/java/ca/six/algo/string/自己实现替换.kt
algo/src/main/java/ca/six/algo/string/自己实现替换.kt
package ca.six.algo.string fun originalReplaceWhitespace(str: Array<Char>) { // for (char in str) { // if (char == ' ') { // // index // for(i = index+2; index <= length + 2; index++){ // str[i] = str[index] // } // } // } } // 时间复杂度是O(n) + O(n) = O(...
package ca.six.algo.string fun originalReplaceWhitespace(str: Array<Char>) { // for (char in str) { // if (char == ' ') { // // index // for(i = index+2; index <= length + 2; index++){ // str[i] = str[index] // } // } // } } fun replaceWhitespace(str...
apache-2.0
Kotlin
207ddfa223d2ed94276bbd374fc5e6ecbd7f207a
Convert "ChangeInfoCalculator" to kotlin
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/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/ChangeInfoCalculator.kt
platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/ChangeInfoCalculator.kt
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.openapi.vcs.changes.ui import com.intellij.openapi.vcs.changes.Change private val MODIFIED_FILTER = { it: Change -> it.type == Change.Type.MODIFICATION || i...
/* * Copyright 2000-2011 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
095aa7ce16e8876600bcac8b97ee1f45ac1a772e
Fix app crash when no devices.json file
jeffcharles/visitor-detector,jeffcharles/visitor-detector,jeffcharles/visitor-detector,jeffcharles/visitor-detector
app/src/main/kotlin/com/beyondtechnicallycorrect/visitordetector/persistence/DevicePersistence.kt
app/src/main/kotlin/com/beyondtechnicallycorrect/visitordetector/persistence/DevicePersistence.kt
package com.beyondtechnicallycorrect.visitordetector.persistence import android.content.Context import com.google.gson.Gson import timber.log.Timber import java.io.* import javax.inject.Inject import javax.inject.Named import javax.inject.Singleton @Singleton public class DevicePersistence @Inject constructor( @N...
package com.beyondtechnicallycorrect.visitordetector.persistence import android.content.Context import com.google.gson.Gson import timber.log.Timber import java.io.* import javax.inject.Inject import javax.inject.Named import javax.inject.Singleton @Singleton public class DevicePersistence @Inject constructor( @N...
mit
Kotlin
9019d3a9d1f4161d525181c7110e1eda55fac7e9
Simplify MockPsiDocumentManagerEx.
rhdunn/xquery-intellij-plugin,rhdunn/xquery-intellij-plugin
src/intellij-test/main/uk/co/reecedunn/intellij/plugin/core/tests/psi/MockPsiDocumentManagerEx.kt
src/intellij-test/main/uk/co/reecedunn/intellij/plugin/core/tests/psi/MockPsiDocumentManagerEx.kt
/* * Copyright (C) 2017, 2020-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 ...
/* * Copyright (C) 2017, 2020 Reece H. Dunn * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
apache-2.0
Kotlin
5fcae368859c7cd593fbec055e82f483e8b399b8
add ticket for deduplication
viartemev/requestmapper
src/main/kotlin/com/viartemev/requestmapper/annotations/extraction/PsiBinaryExpressionExtractor.kt
src/main/kotlin/com/viartemev/requestmapper/annotations/extraction/PsiBinaryExpressionExtractor.kt
package com.viartemev.requestmapper.annotations.extraction import com.intellij.psi.PsiBinaryExpression import com.intellij.psi.PsiElement import com.intellij.psi.PsiLiteralExpression import com.intellij.psi.PsiPolyadicExpression import com.intellij.psi.PsiReferenceExpression import com.viartemev.requestmapper.utils.un...
package com.viartemev.requestmapper.annotations.extraction import com.intellij.psi.PsiBinaryExpression import com.intellij.psi.PsiElement import com.intellij.psi.PsiLiteralExpression import com.intellij.psi.PsiPolyadicExpression import com.intellij.psi.PsiReferenceExpression import com.viartemev.requestmapper.utils.un...
mit
Kotlin