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
5f4b7f4bcd9fa0c2ea230ac2b8abe1b693c64e90
bump kotlin from 1.5.0 to 1.6.21 (via #745)
allure-framework/allure-java,allure-framework/allure-java
settings.gradle.kts
settings.gradle.kts
rootProject.name = "allure-java" include("allure-assertj") include("allure-attachments") include("allure-bom") include("allure-citrus") include("allure-cucumber-jvm") include("allure-cucumber2-jvm") include("allure-cucumber3-jvm") include("allure-cucumber4-jvm") include("allure-cucumber5-jvm") include("allure-cucumber...
rootProject.name = "allure-java" include("allure-assertj") include("allure-attachments") include("allure-bom") include("allure-citrus") include("allure-cucumber-jvm") include("allure-cucumber2-jvm") include("allure-cucumber3-jvm") include("allure-cucumber4-jvm") include("allure-cucumber5-jvm") include("allure-cucumber...
apache-2.0
Kotlin
eab5eb599e4aa762d8a0b20b31ab370a314ea54a
Update org.jetbrains.kotlin to v1.6.21
domaframework/doma,domaframework/doma
settings.gradle.kts
settings.gradle.kts
pluginManagement { repositories { gradlePluginPortal() } plugins { id("com.diffplug.eclipse.apt") version "3.36.0" id("com.diffplug.spotless") version "6.4.2" id("io.github.gradle-nexus.publish-plugin") version "1.1.0" id("net.researchgate.release") version "2.8.1" ...
pluginManagement { repositories { gradlePluginPortal() } plugins { id("com.diffplug.eclipse.apt") version "3.36.0" id("com.diffplug.spotless") version "6.4.2" id("io.github.gradle-nexus.publish-plugin") version "1.1.0" id("net.researchgate.release") version "2.8.1" ...
apache-2.0
Kotlin
e0997a6bab9b23efa3c00edba3c348dd1b81166f
Update plugin com.diffplug.spotless to v6.9.0 (#48)
SpongePowered/SpongeGradle,SpongePowered/SpongeGradle
settings.gradle.kts
settings.gradle.kts
pluginManagement { repositories { maven("https://repo.spongepowered.org/repository/maven-public/") { name = "sponge" } } plugins { val indraVersion = "2.1.1" id("com.gradle.plugin-publish") version "0.21.0" id("com.diffplug.spotless") version "6.9.0" ...
pluginManagement { repositories { maven("https://repo.spongepowered.org/repository/maven-public/") { name = "sponge" } } plugins { val indraVersion = "2.1.1" id("com.gradle.plugin-publish") version "0.21.0" id("com.diffplug.spotless") version "6.8.0" ...
mit
Kotlin
1f47c4596bd30c9483be733edf58937ae59ded73
Simplify code.
Userfeeds/android-ads-sdk
core/src/main/java/io/userfeeds/ads/sdk/Weighted.kt
core/src/main/java/io/userfeeds/ads/sdk/Weighted.kt
package io.userfeeds.ads.sdk import java.math.BigDecimal import java.util.* internal interface Weighted { val weight: BigDecimal } internal fun <T : Weighted> List<T>.randomIndex(random: Random): Int { val sum = fold(BigDecimal.ZERO) { acc, elem -> acc + elem.weight } var value = BigDecimal(random.nextD...
package io.userfeeds.ads.sdk import java.math.BigDecimal import java.util.* interface Weighted { val weight: BigDecimal } internal fun <T : Weighted> List<T>.randomIndex(random: Random): Int { var sum = BigDecimal.ZERO for (elem in this) { sum += elem.weight } var value = BigDecimal(rand...
apache-2.0
Kotlin
e9c72f288757d2053156d868b44fa28ca4c8a1b3
add load action
0legg/bodylookin,0legg/bodylookin,0legg/bodylookin
src/main/kotlin/net/olegg/bodylookin/action/LoadAction.kt
src/main/kotlin/net/olegg/bodylookin/action/LoadAction.kt
package net.olegg.bodylookin.action import com.intellij.openapi.actionSystem.AnAction import com.intellij.openapi.actionSystem.AnActionEvent import com.intellij.openapi.actionSystem.CommonDataKeys import com.intellij.openapi.fileEditor.FileDocumentManager import com.intellij.openapi.wm.ToolWindowManager import net.ole...
package net.olegg.bodylookin.action import com.intellij.openapi.actionSystem.AnAction import com.intellij.openapi.actionSystem.AnActionEvent import com.intellij.openapi.fileEditor.FileEditorManager import com.intellij.openapi.wm.ToolWindowManager import net.olegg.bodylookin.Constants import net.olegg.bodylookin.toolwi...
mit
Kotlin
b391126a186b3fb635e3491ca13a58d403ff385e
Replace deprecated PreferenceManager with support version
cemrich/zapp
app/src/main/java/de/christinecoenen/code/zapp/app/settings/repository/SettingsRepository.kt
app/src/main/java/de/christinecoenen/code/zapp/app/settings/repository/SettingsRepository.kt
package de.christinecoenen.code.zapp.app.settings.repository import android.annotation.SuppressLint import android.content.Context import android.os.Build import androidx.appcompat.app.AppCompatDelegate import androidx.preference.PreferenceManager import de.christinecoenen.code.zapp.R class SettingsRepository(context...
package de.christinecoenen.code.zapp.app.settings.repository import android.annotation.SuppressLint import android.content.Context import android.os.Build import android.preference.PreferenceManager import androidx.appcompat.app.AppCompatDelegate import de.christinecoenen.code.zapp.R class SettingsRepository(context:...
mit
Kotlin
10a0f53e3e089e7c4c603972dae24fc5b55d35dc
Update to Android-Components 108.0.20221106143258.
mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android
buildSrc/src/main/java/AndroidComponents.kt
buildSrc/src/main/java/AndroidComponents.kt
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ object AndroidComponents { const val VERSION = "108.0.20221106143258" }
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ object AndroidComponents { const val VERSION = "108.0.20221105143131" }
mpl-2.0
Kotlin
be610ac2d171c69ebce6dbdd168a538f791038c3
Update to Android-Components 101.0.20220408143342.
mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android
buildSrc/src/main/java/AndroidComponents.kt
buildSrc/src/main/java/AndroidComponents.kt
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ object AndroidComponents { const val VERSION = "101.0.20220408143342" }
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ object AndroidComponents { const val VERSION = "101.0.20220407143154" }
mpl-2.0
Kotlin
3689a21a1cb90d27a160e0f3b7e0754b9232ae86
Bump guava from 30.1.1-jre to 31.1-jre in /project
owntracks/android,owntracks/android,owntracks/android
project/settings.gradle.kts
project/settings.gradle.kts
pluginManagement { repositories { gradlePluginPortal() google() mavenCentral() } resolutionStrategy { eachPlugin { when (requested.id.id) { "dagger.hilt.android.plugin" -> useModule("com.google.dagger:hilt-android-gradle-plugin:${requested.version}...
pluginManagement { repositories { gradlePluginPortal() google() mavenCentral() } resolutionStrategy { eachPlugin { when (requested.id.id) { "dagger.hilt.android.plugin" -> useModule("com.google.dagger:hilt-android-gradle-plugin:${requested.version}...
epl-1.0
Kotlin
9ad84b087d5774db4901208bc89c997d3486e712
Bump kotlinx-coroutines-core from 1.4.3 to 1.5.1
manami-project/manami,manami-project/manami
manami-app/build.gradle.kts
manami-app/build.gradle.kts
dependencies { api("io.github.manamiproject:modb-core:5.0.1") api("io.github.manamiproject:modb-db-parser:3.0.0") api("org.slf4j:slf4j-api:1.7.30") implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.1") implementation("io.github.manamiproject:modb-anidb:3.0.0") implementation("io...
dependencies { api("io.github.manamiproject:modb-core:5.0.1") api("io.github.manamiproject:modb-db-parser:3.0.0") api("org.slf4j:slf4j-api:1.7.30") implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.3") implementation("io.github.manamiproject:modb-anidb:3.0.0") implementation("io...
agpl-3.0
Kotlin
9f09be8dd008565c027eea00256cb7a3eb37d28c
Change Live Literal annotations to have runtime retention
androidx/androidx,androidx/androidx,androidx/androidx,AndroidX/androidx,AndroidX/androidx,androidx/androidx,androidx/androidx,androidx/androidx,AndroidX/androidx,AndroidX/androidx,androidx/androidx,AndroidX/androidx,androidx/androidx,AndroidX/androidx,AndroidX/androidx,AndroidX/androidx,AndroidX/androidx,androidx/andro...
compose/runtime/runtime/src/commonMain/kotlin/androidx/compose/runtime/internal/LiveLiteral.kt
compose/runtime/runtime/src/commonMain/kotlin/androidx/compose/runtime/internal/LiveLiteral.kt
/* * Copyright 2020 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
/* * Copyright 2020 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
apache-2.0
Kotlin
36481eedb3a4a4d557a473c41efa12a0657ffbd7
Remove accidental gradle plugin config
square/kotlinpoet,square/kotlinpoet
kotlinpoet-classinspector-elements/build.gradle.kts
kotlinpoet-classinspector-elements/build.gradle.kts
import com.github.jengelman.gradle.plugins.shadow.tasks.ConfigureShadowRelocation /* * Copyright (C) 2019 Square, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.a...
import com.github.jengelman.gradle.plugins.shadow.tasks.ConfigureShadowRelocation /* * Copyright (C) 2019 Square, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.a...
apache-2.0
Kotlin
f0159843851dc965e4769ccff4034510f09521ed
remove a Directory helper function addSize
anthologist/Simple-Gallery
app/src/main/kotlin/com/simplemobiletools/gallery/models/Directory.kt
app/src/main/kotlin/com/simplemobiletools/gallery/models/Directory.kt
package com.simplemobiletools.gallery.models import com.simplemobiletools.commons.helpers.* import java.io.Serializable data class Directory(val path: String, val tmb: String, val name: String, var mediaCnt: Int, val modified: Long, val taken: Long, val size: Long) : Serializable, Comparable<Dire...
package com.simplemobiletools.gallery.models import com.simplemobiletools.commons.helpers.* import java.io.Serializable data class Directory(val path: String, val tmb: String, val name: String, var mediaCnt: Int, val modified: Long, val taken: Long, var size: Long) : Serializable, Comparable<Dire...
apache-2.0
Kotlin
e3a41490eff1d2aadcff930dba219c8b7d1e551f
Fix percent reporting
Flank/flank,Flank/flank,Flank/flank,Flank/flank,Flank/flank,Flank/flank,Flank/flank,Flank/flank,Flank/flank,Flank/flank
cloud_testing/kotlin_poc/src/main/kotlin/ftl/reports/ResultSummary.kt
cloud_testing/kotlin_poc/src/main/kotlin/ftl/reports/ResultSummary.kt
package ftl.reports import ftl.config.FtlConstants import ftl.config.FtlConstants.indent import ftl.json.MatrixMap import ftl.run.TestRunner import ftl.util.Outcome import java.nio.file.Files import java.nio.file.Paths import java.text.DecimalFormat /** Used to create result_summary.txt Contains pass/fail metrics **/...
package ftl.reports import ftl.config.FtlConstants import ftl.config.FtlConstants.indent import ftl.json.MatrixMap import ftl.run.TestRunner import ftl.util.Outcome import java.nio.file.Files import java.nio.file.Paths import java.text.DecimalFormat /** Used to create result_summary.txt Contains pass/fail metrics **/...
apache-2.0
Kotlin
a119311839c62b596746d20d5a7199f35f6bf1ae
Convert method to expression body
elpassion/mainframer-intellij-plugin,elpassion/mainframer-intellij-plugin,elpassion/mainframer-intellij-plugin
src/main/kotlin/com/elpassion/intelijidea/common/console/RemoteToLocalTranslatingInputFilter.kt
src/main/kotlin/com/elpassion/intelijidea/common/console/RemoteToLocalTranslatingInputFilter.kt
package com.elpassion.intelijidea.common.console import com.intellij.execution.filters.InputFilter import com.intellij.execution.ui.ConsoleViewContentType import com.intellij.openapi.project.Project import com.intellij.openapi.util.Pair import java.util.regex.Pattern class RemoteToLocalTranslatingInputFilter(private ...
package com.elpassion.intelijidea.common.console import com.intellij.execution.filters.InputFilter import com.intellij.execution.ui.ConsoleViewContentType import com.intellij.openapi.project.Project import com.intellij.openapi.util.Pair import java.util.regex.Pattern class RemoteToLocalTranslatingInputFilter(private ...
apache-2.0
Kotlin
1d883112b60cc843d627f3aabbf2d34941cb6768
destroy - sample
Ekito/koin,Ekito/koin
koin-projects/examples/androidx-samples/src/main/java/org/koin/sample/androidx/mvp/MVPActivity.kt
koin-projects/examples/androidx-samples/src/main/java/org/koin/sample/androidx/mvp/MVPActivity.kt
package org.koin.sample.androidx.mvp import android.os.Bundle import androidx.appcompat.app.AppCompatActivity import kotlinx.android.synthetic.main.mvp_activity.* import org.junit.Assert.assertEquals import org.junit.Assert.assertNotEquals import org.koin.core.parameter.parametersOf import org.koin.core.scope.* import...
package org.koin.sample.androidx.mvp import android.os.Bundle import androidx.appcompat.app.AppCompatActivity import kotlinx.android.synthetic.main.mvp_activity.* import org.junit.Assert.assertEquals import org.junit.Assert.assertNotEquals import org.koin.core.parameter.parametersOf import org.koin.core.scope.* import...
apache-2.0
Kotlin
62c3a71aaaa3205238e6a39800f93cdf29631124
Implement methods
KotlinNLP/SimpleDNN
src/kotlin/com/kotlinnlp/simplednn/core/layers/recurrent/simple/SimpleRecurrentRelevanceHelper.kt
src/kotlin/com/kotlinnlp/simplednn/core/layers/recurrent/simple/SimpleRecurrentRelevanceHelper.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
482edd1fd2fa2a9652c4fd4f097ab4573ea815d1
add video timestamp to model
StepicOrg/stepic-android,StepicOrg/stepik-android,StepicOrg/stepic-android,StepicOrg/stepic-android,StepicOrg/stepik-android,StepicOrg/stepik-android
app/src/main/java/org/stepic/droid/model/VideoTimestamp.kt
app/src/main/java/org/stepic/droid/model/VideoTimestamp.kt
package org.stepic.droid.model data class VideoTimestamp(val videoId: Long, val timestamp: Long)
apache-2.0
Kotlin
48a85e34ee10e99a6c7e4b197309402b186768ea
refactor #853 Delete useless line.
toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt
app/src/test/java/jp/toastkid/yobidashi/TestApplication.kt
app/src/test/java/jp/toastkid/yobidashi/TestApplication.kt
/* * Copyright (c) 2018 toastkidjp. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompany this distribution. * The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html. */ package jp....
/* * Copyright (c) 2018 toastkidjp. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompany this distribution. * The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html. */ package jp....
epl-1.0
Kotlin
34c405b63935bf9e607a317074dba6dae1963ada
Implement XdmTextNode on XQueryDirTextConstructor.
rhdunn/xquery-intellij-plugin,rhdunn/xquery-intellij-plugin
src/lang-xquery/main/uk/co/reecedunn/intellij/plugin/xquery/ast/plugin/PluginDirTextConstructor.kt
src/lang-xquery/main/uk/co/reecedunn/intellij/plugin/xquery/ast/plugin/PluginDirTextConstructor.kt
/* * Copyright (C) 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 agreed t...
/* * Copyright (C) 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 agreed t...
apache-2.0
Kotlin
fa07cecbeca8b7accf7a31dd4fdd1314808af1a4
Add tuples for four to seven parameters
cmaier/7tools,cmaier/7tools
seventools/src/main/java/me/sieben/seventools/containers/MoreTuples.kt
seventools/src/main/java/me/sieben/seventools/containers/MoreTuples.kt
@file:Suppress("unused") package me.sieben.seventools.containers import java.io.Serializable data class Quad<out A, out B, out C, out D>(val first: A, val second: B, val third: C, val f...
apache-2.0
Kotlin
e04cf266f720d1193fde6edaddb5cfff7a1ad510
refactor #732 Remove useless statements.
toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Jitte
app/src/main/java/jp/toastkid/yobidashi/libs/network/NetworkChecker.kt
app/src/main/java/jp/toastkid/yobidashi/libs/network/NetworkChecker.kt
package jp.toastkid.yobidashi.libs.network import android.content.Context import android.net.ConnectivityManager import android.net.NetworkCapabilities /** * Network checker. * * @author toastkidjp */ object NetworkChecker { private enum class NetworkType { WIFI, OTHER, NONE } /** * If ...
package jp.toastkid.yobidashi.libs.network import android.content.Context import android.net.ConnectivityManager import android.net.NetworkCapabilities /** * Network checker. * * @author toastkidjp */ object NetworkChecker { private enum class NetworkType { WIFI, OTHER, NONE } /** * If ...
epl-1.0
Kotlin
c4d2138fbb8628918060336a2fa122d8c1349994
refactor #307 Add @LayoutRes annotation.
toastkidjp/Jitte,toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt
app/src/main/java/jp/toastkid/yobidashi/planning_poker/CardFragment.kt
app/src/main/java/jp/toastkid/yobidashi/planning_poker/CardFragment.kt
package jp.toastkid.yobidashi.planning_poker import android.databinding.DataBindingUtil import android.os.Bundle import android.support.annotation.LayoutRes import android.support.v4.app.Fragment import android.util.TypedValue import android.view.LayoutInflater import android.view.View import android.view.ViewGroup im...
package jp.toastkid.yobidashi.planning_poker import android.databinding.DataBindingUtil import android.os.Bundle import android.support.v4.app.Fragment import android.util.TypedValue import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import jp.toastkid.yobidashi.R import jp.toast...
epl-1.0
Kotlin
ea612cd75c29e820f76eae3e3838960ad0aae204
Make GsonProvider expose a singleton
auth0/Auth0.Android,auth0/Auth0.Android
auth0/src/main/java/com/auth0/android/request/internal/GsonProvider.kt
auth0/src/main/java/com/auth0/android/request/internal/GsonProvider.kt
package com.auth0.android.request.internal import androidx.annotation.VisibleForTesting import com.auth0.android.result.Credentials import com.auth0.android.result.UserProfile import com.auth0.android.util.JsonRequiredTypeAdapterFactory import com.google.gson.Gson import com.google.gson.GsonBuilder import com.google.g...
package com.auth0.android.request.internal; import androidx.annotation.NonNull; import androidx.annotation.VisibleForTesting; import com.auth0.android.result.Credentials; import com.auth0.android.result.UserProfile; import com.auth0.android.util.JsonRequiredTypeAdapterFactory; import com.google.gson.Gson; import com....
mit
Kotlin
990ed28cfe48b10a7dc36576ee6b9554320e77f7
Allow language injection in hcl
VladRassokhin/intellij-hcl,VladRassokhin/intellij-hcl,VladRassokhin/intellij-hcl,VladRassokhin/intellij-hcl,VladRassokhin/intellij-hcl
src/org/intellij/plugins/hcl/HCLParserDefinition.kt
src/org/intellij/plugins/hcl/HCLParserDefinition.kt
/* * Copyright 2000-2015 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
/* * Copyright 2000-2015 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
apache-2.0
Kotlin
3e15d9c2ed222b4f295af13d8931a1e73061d5e3
Improve unhandled coroutine exceptions logging
ktorio/ktor,ktorio/ktor,ktorio/ktor,ktorio/ktor
ktor-server/ktor-server-host-common/jvm/src/io/ktor/server/engine/DefaultUncaughtExceptionHandler.kt
ktor-server/ktor-server-host-common/jvm/src/io/ktor/server/engine/DefaultUncaughtExceptionHandler.kt
/* * Copyright 2014-2019 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license. */ package io.ktor.server.engine import io.ktor.util.* import kotlinx.coroutines.* import org.slf4j.* import java.io.* import kotlin.coroutines.* /** * Handles all uncaught exceptions and logs...
/* * Copyright 2014-2019 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license. */ package io.ktor.server.engine import io.ktor.util.* import kotlinx.coroutines.* import org.slf4j.* import java.io.* import kotlin.coroutines.* /** * Handles all uncaught exceptions and logs...
apache-2.0
Kotlin
5953bebafd32f6d2a0fe5c3e20baba06c6faeb56
read request String content through channel adapter
ktorio/ktor,ktorio/ktor,ktorio/ktor,ktorio/ktor
ktor-core/src/org/jetbrains/ktor/content/RequestContent.kt
ktor-core/src/org/jetbrains/ktor/content/RequestContent.kt
package org.jetbrains.ktor.content import org.jetbrains.ktor.application.* import org.jetbrains.ktor.http.* import org.jetbrains.ktor.nio.* import java.io.* import kotlin.reflect.* abstract class RequestContent(private val request: ApplicationRequest) { @Deprecated("Use getReadChannel instead") protected abst...
package org.jetbrains.ktor.content import org.jetbrains.ktor.application.* import org.jetbrains.ktor.http.* import org.jetbrains.ktor.nio.* import java.io.* import kotlin.reflect.* abstract class RequestContent(private val request: ApplicationRequest) { @Deprecated("Use getReadChannel instead") protected abst...
apache-2.0
Kotlin
b510edd279b46612e1c429e3d2c4fba794fa27f3
Return empty strings
Turbo87/intellij-rust,intellij-rust/intellij-rust,d9n/intellij-rust,ThoseGrapefruits/intellij-rust,Turbo87/intellij-rust,Undin/intellij-rust,ujpv/intellij-rust,anton-okolelov/intellij-rust,himikof/intellij-rust,ThoseGrapefruits/intellij-rust,Undin/intellij-rust,alygin/intellij-rust,himikof/intellij-rust,d9n/intellij-ru...
src/org/rust/lang/search/RustFindUsagesProvider.kt
src/org/rust/lang/search/RustFindUsagesProvider.kt
package org.rust.lang.search import com.intellij.lang.HelpID import com.intellij.lang.findUsages.FindUsagesProvider import com.intellij.psi.PsiElement import org.rust.lang.core.psi.RustPatBinding class RustFindUsagesProvider : FindUsagesProvider { override fun getWordsScanner() = RustWordScanner() override f...
package org.rust.lang.search import com.intellij.lang.HelpID import com.intellij.lang.findUsages.FindUsagesProvider import com.intellij.psi.ElementDescriptionUtil import com.intellij.psi.PsiElement import com.intellij.usageView.UsageViewLongNameLocation import com.intellij.usageView.UsageViewNodeTextLocation import co...
mit
Kotlin
d382e067800c7a2a67e9af61d63528be2d14e48c
fix empty ids request
StepicOrg/stepic-android,StepicOrg/stepik-android,StepicOrg/stepik-android,StepicOrg/stepic-android,StepicOrg/stepik-android,StepicOrg/stepic-android
app/src/main/java/org/stepik/android/remote/course_collection/CourseCollectionRemoteDataSourceImpl.kt
app/src/main/java/org/stepik/android/remote/course_collection/CourseCollectionRemoteDataSourceImpl.kt
package org.stepik.android.remote.course_collection import io.reactivex.Single import io.reactivex.functions.Function import org.stepik.android.data.course_collection.source.CourseCollectionRemoteDataSource import org.stepik.android.domain.course_collection.model.CourseCollectionQuery import org.stepik.android.model.C...
package org.stepik.android.remote.course_collection import io.reactivex.Single import org.stepik.android.data.course_collection.source.CourseCollectionRemoteDataSource import org.stepik.android.domain.course_collection.model.CourseCollectionQuery import org.stepik.android.model.CourseCollection import org.stepik.andro...
apache-2.0
Kotlin
022cca7e47ab6c167034a83039bfc18c40f6104f
Test for issue 180.
cbeust/klaxon,cbeust/klaxon,cbeust/klaxon
src/test/kotlin/com/beust/klaxon/Issue180.kt
src/test/kotlin/com/beust/klaxon/Issue180.kt
package com.beust.klaxon import org.assertj.core.api.Assertions.assertThat import org.testng.annotations.Test import kotlin.reflect.KProperty @Test class Issue180 { fun f() { val x = Klaxon().toJsonString(CharacterPlayer(12)) val char = Klaxon().parse<CharacterPlayer>(x) assertThat(char!!....
apache-2.0
Kotlin
fe8bb58ca1458c2b7f2a647140d2389159029d7f
Add additional documentation for "Done" LoadState.
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...
paging/common/src/main/kotlin/androidx/paging/LoadState.kt
paging/common/src/main/kotlin/androidx/paging/LoadState.kt
/* * Copyright 2019 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
/* * Copyright 2019 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
apache-2.0
Kotlin
02ea3643a37a068689459ddbc36f3d55a56c2b3a
improve folding
kropp/intellij-makefile
src/main/kotlin/name/kropp/intellij/makefile/MakefileFoldingBuilder.kt
src/main/kotlin/name/kropp/intellij/makefile/MakefileFoldingBuilder.kt
package name.kropp.intellij.makefile import com.intellij.lang.ASTNode import com.intellij.lang.folding.FoldingBuilderEx import com.intellij.lang.folding.FoldingDescriptor import com.intellij.openapi.editor.Document import com.intellij.openapi.util.TextRange import com.intellij.psi.PsiElement import com.intellij.psi.Ps...
package name.kropp.intellij.makefile import com.intellij.lang.ASTNode import com.intellij.lang.folding.FoldingBuilderEx import com.intellij.lang.folding.FoldingDescriptor import com.intellij.openapi.editor.Document import com.intellij.psi.PsiElement import com.intellij.psi.util.PsiTreeUtil import name.kropp.intellij.m...
mit
Kotlin
5c0cadda340f4fc5a1df1210f46b9ef4f9f4c9cf
Fix "0 people" in DiscordBotListCommand.kt (#2213)
LorittaBot/Loritta,LorittaBot/Loritta,LorittaBot/Loritta,LorittaBot/Loritta
loritta-discord/src/main/java/com/mrpowergamerbr/loritta/commands/vanilla/misc/DiscordBotListCommand.kt
loritta-discord/src/main/java/com/mrpowergamerbr/loritta/commands/vanilla/misc/DiscordBotListCommand.kt
package com.mrpowergamerbr.loritta.commands.vanilla.misc import com.mrpowergamerbr.loritta.commands.AbstractCommand import com.mrpowergamerbr.loritta.commands.CommandContext import com.mrpowergamerbr.loritta.utils.Constants import com.mrpowergamerbr.loritta.utils.locale.LegacyBaseLocale import com.mrpowergamerbr.lorit...
package com.mrpowergamerbr.loritta.commands.vanilla.misc import com.mrpowergamerbr.loritta.commands.AbstractCommand import com.mrpowergamerbr.loritta.commands.CommandContext import com.mrpowergamerbr.loritta.utils.Constants import com.mrpowergamerbr.loritta.utils.locale.LegacyBaseLocale import com.mrpowergamerbr.lorit...
agpl-3.0
Kotlin
9cd03ca5f7e6675a2fa93ee42057c415550511b0
Replace jcenter with mavenCentral
gwtproject/gwt-history,gwtproject/gwt-history,gwtproject/gwt-history
buildSrc/build.gradle.kts
buildSrc/build.gradle.kts
plugins { `java-gradle-plugin` `kotlin-dsl` id("com.diffplug.spotless") version "5.10.2" } buildscript { dependencyLocking { lockAllConfigurations() } } dependencyLocking { lockAllConfigurations() } repositories { mavenCentral() } kotlinDslPluginOptions { experimentalWarning.set(...
plugins { `java-gradle-plugin` `kotlin-dsl` id("com.diffplug.spotless") version "5.10.2" } buildscript { dependencyLocking { lockAllConfigurations() } } dependencyLocking { lockAllConfigurations() } repositories { jcenter() } kotlinDslPluginOptions { experimentalWarning.set(false...
apache-2.0
Kotlin
ab5d76af85e0a73757f36d5c4bffddf681d1fd50
Use extension methods
himikof/intellij-rust,intellij-rust/intellij-rust,anton-okolelov/intellij-rust,anton-okolelov/intellij-rust,d9n/intellij-rust,Undin/intellij-rust,intellij-rust/intellij-rust,d9n/intellij-rust,Undin/intellij-rust,d9n/intellij-rust,Turbo87/intellij-rust,himikof/intellij-rust,Undin/intellij-rust,ujpv/intellij-rust,d9n/int...
src/org/rust/lang/icons/RustIconProvider.kt
src/org/rust/lang/icons/RustIconProvider.kt
package org.rust.lang.icons import com.intellij.ide.IconProvider import com.intellij.openapi.util.Iconable import com.intellij.psi.PsiElement import com.intellij.psi.util.PsiUtil import com.intellij.ui.RowIcon import com.intellij.util.PlatformIcons import com.intellij.util.VisibilityIcons import com.intellij.util.ui.E...
package org.rust.lang.icons import com.intellij.ide.IconProvider import com.intellij.openapi.util.Iconable import com.intellij.psi.PsiElement import com.intellij.psi.util.PsiUtil import com.intellij.ui.RowIcon import com.intellij.util.PlatformIcons import com.intellij.util.VisibilityIcons import com.intellij.util.ui.E...
mit
Kotlin
11fbbe83d9bd20c41c129f3bcbbf5bae12b6b4a0
Add more CORS allowed headers
RimmerM/Yttrium,Le-Chiffre/Yttrium
Server/src/com/rimmer/yttrium/server/http/Server.kt
Server/src/com/rimmer/yttrium/server/http/Server.kt
package com.rimmer.yttrium.server.http import com.rimmer.yttrium.server.ServerContext import com.rimmer.yttrium.server.listen import io.netty.channel.ChannelFutureListener import io.netty.channel.ChannelHandlerContext import io.netty.channel.ChannelInboundHandlerAdapter import io.netty.channel.ChannelPipeline import i...
package com.rimmer.yttrium.server.http import com.rimmer.yttrium.server.ServerContext import com.rimmer.yttrium.server.listen import io.netty.channel.ChannelFutureListener import io.netty.channel.ChannelHandlerContext import io.netty.channel.ChannelInboundHandlerAdapter import io.netty.channel.ChannelPipeline import i...
mit
Kotlin
3095c08b70bab859e5e7720a6cdc46887950e829
refactor #580 Delete useless 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
2d6d017d45a9c753372ff724c021d7216033ccd0
Fix develop api url
tomatrocho/insapp-material
app/src/main/java/fr/insapp/insapp/http/ServiceGenerator.kt
app/src/main/java/fr/insapp/insapp/http/ServiceGenerator.kt
package fr.insapp.insapp.http import com.thomasbouvier.persistentcookiejar.PersistentCookieJar import com.thomasbouvier.persistentcookiejar.cache.SetCookieCache import com.thomasbouvier.persistentcookiejar.persistence.SharedPrefsCookiePersistor import fr.insapp.insapp.App import fr.insapp.insapp.BuildConfig import fr....
package fr.insapp.insapp.http import com.thomasbouvier.persistentcookiejar.PersistentCookieJar import com.thomasbouvier.persistentcookiejar.cache.SetCookieCache import com.thomasbouvier.persistentcookiejar.persistence.SharedPrefsCookiePersistor import fr.insapp.insapp.App import fr.insapp.insapp.BuildConfig import fr....
mit
Kotlin
c29d404851fc38a84fc75bfd4b911810f7ca312b
コピー漏れ。
masm11/contextplayer,masm11/contextplayer,masm11/contextplayer
app/src/main/java/me/masm11/contextplayer/db/PlayContext.kt
app/src/main/java/me/masm11/contextplayer/db/PlayContext.kt
/* Context Player - Audio Player with Contexts Copyright (C) 2016, 2018 Yuuki Harano This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your o...
/* Context Player - Audio Player with Contexts Copyright (C) 2016, 2018 Yuuki Harano This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your o...
apache-2.0
Kotlin
3cfd1e9d0df25cb0c65fde244aa17cf7526399e4
Add showHamburgerIconsForAll
hermantai/samples,hermantai/samples,hermantai/samples,hermantai/samples,hermantai/samples,hermantai/samples,hermantai/samples,hermantai/samples,hermantai/samples,hermantai/samples,hermantai/samples,hermantai/samples
kotlin/developer-android/AndroidTrivia-Starter/app/src/main/java/com/example/android/navigation/MainActivity.kt
kotlin/developer-android/AndroidTrivia-Starter/app/src/main/java/com/example/android/navigation/MainActivity.kt
/* * Copyright 2018, The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
/* * Copyright 2018, The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
apache-2.0
Kotlin
037048bf1c60f5a5c4184b76021b6d39ae1d9ece
Address minor optimization warning
arkon/LISTEN.moe-Unofficial-Android-App,LISTEN-moe/android-app
app/src/main/java/me/echeung/moemoekyun/util/system/ContextExtension.kt
app/src/main/java/me/echeung/moemoekyun/util/system/ContextExtension.kt
package me.echeung.moemoekyun.util.system import android.app.Activity import android.app.AlarmManager import android.app.NotificationManager import android.app.UiModeManager import android.content.ClipboardManager import android.content.Context import android.content.Intent import android.content.res.Configuration imp...
package me.echeung.moemoekyun.util.system import android.app.Activity import android.app.AlarmManager import android.app.NotificationManager import android.app.UiModeManager import android.content.ClipboardManager import android.content.Context import android.content.Intent import android.content.res.Configuration imp...
mit
Kotlin
164ceec6d8e01429cfc26dfebe096b9b407aaeb5
Fix typo in Fetcher.kt (#394)
coil-kt/coil,coil-kt/coil
coil-base/src/main/java/coil/fetch/Fetcher.kt
coil-base/src/main/java/coil/fetch/Fetcher.kt
@file:Suppress("UNCHECKED_CAST") package coil.fetch import android.graphics.Bitmap import android.graphics.drawable.Drawable import coil.bitmappool.BitmapPool import coil.decode.Options import coil.memory.MemoryCache import coil.size.Size import okio.BufferedSource /** * A [Fetcher] translates data into either a [B...
@file:Suppress("UNCHECKED_CAST") package coil.fetch import android.graphics.Bitmap import android.graphics.drawable.Drawable import coil.bitmappool.BitmapPool import coil.decode.Options import coil.memory.MemoryCache import coil.size.Size import okio.BufferedSource /** * A [Fetcher] translates data into either a [B...
apache-2.0
Kotlin
7096d1febb0cdbf750ce195afd7b48547df467a2
Add onMouseDrag
soywiz/korge,soywiz/korge,soywiz/korge
korge/src/commonMain/kotlin/com/soywiz/korge/input/MouseDragComponent.kt
korge/src/commonMain/kotlin/com/soywiz/korge/input/MouseDragComponent.kt
package com.soywiz.korge.input import com.soywiz.korge.view.View import com.soywiz.korge.view.Views import com.soywiz.korma.geom.Point data class MouseDragInfo( var dx: Double = 0.0, var dy: Double = 0.0, var start: Boolean = false, var end: Boolean = false ) { fun set(dx: Double, dy: Double, star...
apache-2.0
Kotlin
e5e03b9e6f751e66f6b0931a95bb289b9ba9e243
Update Folder.kt
vimeo/vimeo-networking-java,vimeo/vimeo-networking-java,vimeo/vimeo-networking-java
models/src/main/java/com/vimeo/networking2/Folder.kt
models/src/main/java/com/vimeo/networking2/Folder.kt
@file:JvmName("FolderUtils") package com.vimeo.networking2 import com.squareup.moshi.Json import com.squareup.moshi.JsonClass import java.util.Date /** * A folder that acts as a container for a list of [Videos][Video] that can be fetched via * a uri defined in [Metadata.connections]. */ @JsonClass(generateAdapter...
@file:JvmName("FolderUtils") package com.vimeo.networking2 import com.squareup.moshi.Json import com.squareup.moshi.JsonClass import java.util.* /** * A folder that acts as a container for a list of [Videos][Video] that can be fetched via * a uri defined in [Metadata.connections]. */ @JsonClass(generateAdapter = ...
mit
Kotlin
68a85729b27ae2373a71921516e08e7a9483fb7f
Improve the sample of relativePaddingFrom
AndroidX/androidx,androidx/androidx,AndroidX/androidx,androidx/androidx,androidx/androidx,androidx/androidx,AndroidX/androidx,androidx/androidx,androidx/androidx,androidx/androidx,AndroidX/androidx,AndroidX/androidx,AndroidX/androidx,AndroidX/androidx,AndroidX/androidx,AndroidX/androidx,androidx/androidx,AndroidX/andro...
compose/foundation/foundation-layout/samples/src/main/java/androidx/compose/foundation/layout/samples/RelativePaddingFromSamples.kt
compose/foundation/foundation-layout/samples/src/main/java/androidx/compose/foundation/layout/samples/RelativePaddingFromSamples.kt
/* * Copyright 2020 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
/* * Copyright 2020 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
apache-2.0
Kotlin
e2307fa8c20f11604b2716bf0f773136342bdd89
Use latest plugins
ajoberstar/reckon,ajoberstar/reckon
settings.gradle.kts
settings.gradle.kts
pluginManagement { plugins { id("org.ajoberstar.defaults.java-library") version "0.17.1" id("org.ajoberstar.defaults.gradle-plugin") version "0.17.1" id("org.ajoberstar.grgit") version "5.0.0" id("org.ajoberstar.reckon") version "0.14.0" id("org.ajoberstar.stutter") version "0.7.0" id("com.d...
pluginManagement { plugins { id("org.ajoberstar.defaults.java-library") version "0.17.1" id("org.ajoberstar.defaults.gradle-plugin") version "0.17.1" id("org.ajoberstar.grgit") version "4.1.1" id("org.ajoberstar.reckon") version "0.13.1" id("org.ajoberstar.stutter") version "0.7.0" id("com.d...
apache-2.0
Kotlin
fd5d45fd5f0e63f82b742daa01d671e5e1332bbd
test structured concurrency
hypercube1024/firefly,hypercube1024/firefly,hypercube1024/firefly,hypercube1024/firefly,hypercube1024/firefly
firefly-example/src/test/kotlin/com/firefly/example/kotlin/test/coroutine/StructuredConcurrency.kt
firefly-example/src/test/kotlin/com/firefly/example/kotlin/test/coroutine/StructuredConcurrency.kt
package com.firefly.example.kotlin.test.coroutine import kotlinx.coroutines.experimental.* /** * @author Pengtao Qiu */ fun main(args: Array<String>) = runBlocking { launchDoWorld() println("Hello,") } // this is your first suspending function suspend fun launchDoWorld() = currentScope { launch { ...
apache-2.0
Kotlin
0200e8115ba201842dca307b8d4909edea8d688d
Fix imports
Hexworks/zircon,Hexworks/zircon,Hexworks/zircon
zircon.core/common/src/main/kotlin/org/hexworks/zircon/api/Components.kt
zircon.core/common/src/main/kotlin/org/hexworks/zircon/api/Components.kt
package org.hexworks.zircon.api import org.hexworks.zircon.api.builder.component.ButtonBuilder import org.hexworks.zircon.api.builder.component.CheckBoxBuilder import org.hexworks.zircon.api.builder.component.GameComponentBuilder import org.hexworks.zircon.api.builder.component.HBoxBuilder import org.hexworks.zircon.a...
package org.hexworks.zircon.api import org.hexworks.zircon.api.builder.component.* import org.hexworks.zircon.api.data.Block import org.hexworks.zircon.api.data.Tile import kotlin.jvm.JvmStatic object Components { @JvmStatic fun textArea() = TextAreaBuilder.newBuilder() @JvmStatic fun logArea() = Lo...
apache-2.0
Kotlin
115498c55858a4ecfaba35ba6fb74ac29259ac80
Create OkHttpClientAdapter.kt
elifarley/kotlin-examples,elifarley/kotlin-misc-lib,elifarley/kotlin-examples,elifarley/kotlin-misc-lib
src/com/github/elifarley/kotlin/http/OkHttpClientAdapter.kt
src/com/github/elifarley/kotlin/http/OkHttpClientAdapter.kt
package com.orgecc.lib.http import com.jsoniter.JsonIterator import okhttp3.* import java.io.IOException class OkHttpClientAdapter : HttpClientAdapter<OkHttpClient, Request>() { override val toSimpleHeaders: Request.() -> lib.http.Headers = { this.headers().toMultimap().flatMap { (key, value) -> value.ma...
mit
Kotlin
2c99e16fff79ce7e3a0a3e24f880d2bc23575958
Fix VSecurityKtTest.kt
UnderMybrella/Visi
src/test/kotlin/org/abimon/visi/security/VSecurityKtTest.kt
src/test/kotlin/org/abimon/visi/security/VSecurityKtTest.kt
package org.abimon.visi.security import org.junit.Test import java.io.ByteArrayInputStream import java.security.SecureRandom import kotlin.system.measureTimeMillis class VSecurityKtTest { @Test fun fileTest() { val ms = measureTimeMillis { println("Hash: " + SecureRandom().run { val bytes = ByteArray(...
package org.abimon.visi.security import org.junit.Test import java.io.File import java.io.FileInputStream import kotlin.system.measureTimeMillis class VSecurityKtTest { @Test fun fileTest() { val ms = measureTimeMillis { println("Hash: " + FileInputStream(File("test.png")).sha256Hash()) } prin...
mit
Kotlin
9c95e4d57eda6b2ba518da1f1af71e11c9dfdf0d
Rename to Attachable, AttachListener
memoizr/shank
autoattach-pure/src/main/java/life.shank/AutoDetach.kt
autoattach-pure/src/main/java/life.shank/AutoDetach.kt
package life.shank interface Attachable interface AttachListener<A : Attachable> { fun onAttach(a: A) fun onDetach(a: A) }
package life.shank interface AutoDetachable interface DetachAware<V : AutoDetachable> { fun attach(v: V) fun detach(v: V) }
apache-2.0
Kotlin
df0ebf3d02fb5de56a9c5e7b6de49517eec4a192
Remove unused imports in TestModelBuilders
google/ground-android,google/ground-android,google/ground-android
ground/src/main/java/com/google/android/ground/model/TestModelBuilders.kt
ground/src/main/java/com/google/android/ground/model/TestModelBuilders.kt
/* * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
/* * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
apache-2.0
Kotlin
d663057c3e8a09b8c1a03290bb34b96e2fb6520b
Add new Lucky Patcher package ID
Citrus-CAF/packages_apps_Margarita,Citrus-CAF/packages_apps_Margarita,Citrus-CAF/packages_apps_Margarita
app/src/main/java/com/citrus/theme/ThemerConstants.kt
app/src/main/java/com/citrus/theme/ThemerConstants.kt
package com.citrus.theme object ThemerConstants { // Simple AntiPiracy Configuration val PIRACY_CHECK = false // Play Store AntiPiracy LVL configurations (Relies on PIRACY_CHECK) internal val BASE_64_LICENSE_KEY = "" internal val APK_SIGNATURE_PRODUCTION = "" // AntiPiracy Library Configuration...
package com.citrus.theme object ThemerConstants { // Simple AntiPiracy Configuration val PIRACY_CHECK = false // Play Store AntiPiracy LVL configurations (Relies on PIRACY_CHECK) internal val BASE_64_LICENSE_KEY = "" internal val APK_SIGNATURE_PRODUCTION = "" // AntiPiracy Library Configuration...
apache-2.0
Kotlin
9c1e505064eba182ec3f6117ca465bc051143065
Use module roots for indexing
Turbo87/intellij-emberjs,Turbo87/intellij-emberjs,Turbo87/intellij-emberjs,Turbo87/intellij-emberjs
src/main/kotlin/com/emberjs/index/EmberFileIndex.kt
src/main/kotlin/com/emberjs/index/EmberFileIndex.kt
package com.emberjs.index import com.emberjs.project.EmberModuleType import com.emberjs.resolver.EmberName import com.emberjs.utils.VoidHelper import com.intellij.openapi.module.ModuleType import com.intellij.openapi.module.ModuleUtilCore import com.intellij.openapi.project.ProjectLocator import com.intellij.openapi.r...
package com.emberjs.index import com.emberjs.resolver.EmberName import com.emberjs.utils.VoidHelper import com.intellij.openapi.project.ProjectLocator import com.intellij.openapi.vfs.VirtualFile import com.intellij.util.indexing.* import com.intellij.util.io.EnumeratorStringDescriptor class EmberFileIndex() : ...
apache-2.0
Kotlin
43342d35fbb3f3e4e0c88d9d21b2481a67269bb3
Fix parameter wrong name
pbreault/adb-idea
src/main/kotlin/com/developerphil/adbidea/adb/command/ToggleSvcCommand.kt
src/main/kotlin/com/developerphil/adbidea/adb/command/ToggleSvcCommand.kt
package com.developerphil.adbidea.adb.command import com.android.ddmlib.IDevice import com.developerphil.adbidea.adb.command.receiver.GenericReceiver import com.developerphil.adbidea.ui.NotificationHelper.error import com.developerphil.adbidea.ui.NotificationHelper.info import com.intellij.openapi.project.Project impo...
package com.developerphil.adbidea.adb.command import com.android.ddmlib.IDevice import com.developerphil.adbidea.adb.command.receiver.GenericReceiver import com.developerphil.adbidea.ui.NotificationHelper.error import com.developerphil.adbidea.ui.NotificationHelper.info import com.intellij.openapi.project.Project impo...
apache-2.0
Kotlin
d5443c8e6bace9041455c9bda48b79ae4809b536
Add InstanceStopper class to ease Lifecycle management
BjoernPetersen/JMusicBot
src/main/kotlin/net/bjoernpetersen/musicbot/api/module/InstanceStopper.kt
src/main/kotlin/net/bjoernpetersen/musicbot/api/module/InstanceStopper.kt
package net.bjoernpetersen.musicbot.api.module import com.google.inject.Injector import mu.KotlinLogging import net.bjoernpetersen.musicbot.api.plugin.management.PluginFinder import net.bjoernpetersen.musicbot.spi.loader.ResourceCache import net.bjoernpetersen.musicbot.spi.loader.SongLoader import net.bjoernpetersen.m...
mit
Kotlin
b1c532ac3461cf0249957e7108abb4acf8b663ab
use explicit Kobalt version to build plugin
DevCharly/kobalt-ant,DevCharly/kobalt-ant
kobalt/src/Build.kt
kobalt/src/Build.kt
import com.beust.kobalt.* import com.beust.kobalt.plugin.packaging.* import com.beust.kobalt.plugin.publish.bintray object Versions { val kobalt = "1.0.100" val kotlinAntDSL = "0.5" val ant = "1.9.7" } val plugin = project { name = "kobalt-ant" group = "com.devcharly" artifactId = name version = "0.3" depend...
import com.beust.kobalt.* import com.beust.kobalt.plugin.packaging.* import com.beust.kobalt.plugin.publish.bintray object Versions { val kotlinAntDSL = "0.5" val ant = "1.9.7" } val plugin = project { name = "kobalt-ant" group = "com.devcharly" artifactId = name version = "0.3" dependencies { provided("com...
apache-2.0
Kotlin
9dd68bb7977b7b887ca720697b52cd95f5c8043d
Remove import
DanielMartinus/Konfetti
konfetti/core/src/main/java/nl/dionsegijn/konfetti/core/ParticleSystem.kt
konfetti/core/src/main/java/nl/dionsegijn/konfetti/core/ParticleSystem.kt
package nl.dionsegijn.konfetti.core import android.content.res.Resources import android.graphics.Rect import nl.dionsegijn.konfetti.core.emitter.BaseEmitter import nl.dionsegijn.konfetti.core.emitter.Confetti import nl.dionsegijn.konfetti.core.emitter.PartyEmitter /** * PartySystem is responsible for requesting part...
package nl.dionsegijn.konfetti.core import android.content.res.Resources import android.graphics.Rect import nl.dionsegijn.konfetti.core.emitter.BaseEmitter import nl.dionsegijn.konfetti.core.emitter.Confetti import nl.dionsegijn.konfetti.core.emitter.PartyEmitter import nl.dionsegijn.konfetti.core.models.Vector /** ...
isc
Kotlin
5afc75aa8d0377d600b5c27a49e4810f15d37abc
Solve Extremely Basic in kotlin
deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playgr...
solutions/uri/1001/1001.kt
solutions/uri/1001/1001.kt
import java.util.* fun main(args: Array<String>) { val sc = Scanner(System.`in`); val a: String = sc.next(); val b: String = sc.next(); println("X = " + (a.toInt() + b.toInt())); }
mit
Kotlin
1019cc0045ae63457325f0efc8fc9990dcabeeba
Update to Android-Components 106.0.20220903000045.
mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android
buildSrc/src/main/java/AndroidComponents.kt
buildSrc/src/main/java/AndroidComponents.kt
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ object AndroidComponents { const val VERSION = "106.0.20220903000045" }
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ object AndroidComponents { const val VERSION = "106.0.20220902143238" }
mpl-2.0
Kotlin
b7c8f521d867c37cecb6f6c0abb6cde81b29015c
Update to Android-Components 100.0.20220327143103.
mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android
buildSrc/src/main/java/AndroidComponents.kt
buildSrc/src/main/java/AndroidComponents.kt
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ object AndroidComponents { const val VERSION = "100.0.20220327143103" }
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ object AndroidComponents { const val VERSION = "100.0.20220326143132" }
mpl-2.0
Kotlin
c284e76006fa77303a4a27c9a6a65843c971535e
Update to Android-Components 96.0.20211203143129.
mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android
buildSrc/src/main/java/AndroidComponents.kt
buildSrc/src/main/java/AndroidComponents.kt
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ object AndroidComponents { const val VERSION = "96.0.20211203143129" }
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ object AndroidComponents { const val VERSION = "96.0.20211203041618" }
mpl-2.0
Kotlin
3d9aaa9fadcad0a10f6d90ccbd1f68b5e30ecd67
add underscore separator between callname and date in recordings filename
jitsi/jibri,jitsi/jibri,jitsi/jibri
src/main/java/org/jitsi/jibri/sink/impl/FileSink.kt
src/main/java/org/jitsi/jibri/sink/impl/FileSink.kt
package org.jitsi.jibri.sink.impl import org.jitsi.jibri.sink.Sink import org.jitsi.jibri.util.extensions.error import java.io.File import java.time.LocalDateTime import java.time.format.DateTimeFormatter import java.util.logging.Logger /** * [FileSink] represents a sink which will write to a media file on the * fi...
package org.jitsi.jibri.sink.impl import org.jitsi.jibri.sink.Sink import org.jitsi.jibri.util.extensions.error import java.io.File import java.time.LocalDateTime import java.time.format.DateTimeFormatter import java.util.logging.Logger /** * [FileSink] represents a sink which will write to a media file on the * fi...
apache-2.0
Kotlin
aa8049d93160c6a574f18272a5b19a15e066d8d2
add aliases for help
noud02/Akatsuki
src/main/kotlin/me/noud02/akatsuki/commands/Help.kt
src/main/kotlin/me/noud02/akatsuki/commands/Help.kt
package me.noud02.akatsuki.commands import me.noud02.akatsuki.bot.entities.* @Load @Alias([ "--help", "-h" ]) @Argument("command", "string", true) class Help : Command() { override val name = "help" override val desc = "Sends you help!" override fun run(ctx: Context) { if (ctx.args.contai...
package me.noud02.akatsuki.commands import me.noud02.akatsuki.bot.entities.Argument import me.noud02.akatsuki.bot.entities.Command import me.noud02.akatsuki.bot.entities.Context import me.noud02.akatsuki.bot.entities.Load @Load @Argument("command", "string", true) class Help : Command() { override val name = "hel...
mit
Kotlin
443859d3c247b6a3ee0288f04755125bdb6031be
Create PollyDemo.kt
awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,a...
.kotlin_alpha/services/polly/src/main/kotlin/com/kotlin/polly/PollyDemo.kt
.kotlin_alpha/services/polly/src/main/kotlin/com/kotlin/polly/PollyDemo.kt
// snippet-sourcedescription:[PollyDemo.kt demonstrates how to convert text into speech.] //snippet-keyword:[AWS SDK for Kotlin] // snippet-service:[Amazon Polly] // snippet-keyword:[Code Sample] // snippet-sourcetype:[full-example] // snippet-sourcedate:[06/02/2021] // snippet-sourceauthor:[scmacdon AWS] /* Copyri...
apache-2.0
Kotlin
45bee65477f9ee789e190990bfaad0f5ab9f99aa
refactor #704 Rename test case.
toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt,toastkidjp/Jitte
app/src/test/java/jp/toastkid/yobidashi/libs/network/NetworkCheckerTest.kt
app/src/test/java/jp/toastkid/yobidashi/libs/network/NetworkCheckerTest.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
1f06897db6a30ac7e9348574e5525760024ad840
Solve Salary with Bonus in kotlin
deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playgr...
solutions/uri/1009/1009.kt
solutions/uri/1009/1009.kt
import java.util.* fun main(args: Array<String>) { val sc = Scanner(System.`in`); sc.next(); val b: Double = sc.next().toDouble(); val c: Double = sc.next().toDouble(); println("TOTAL = R$ %.2f".format(b + (c * 0.15))); }
mit
Kotlin
2034259cc37a49f94cef872e29f1b72c84bc4493
Remove redundant Kotlin plugin config
rock3r/detekt,rock3r/detekt,rock3r/detekt,arturbosch/detekt,arturbosch/detekt,arturbosch/detekt
detekt-sample-extensions/build.gradle.kts
detekt-sample-extensions/build.gradle.kts
val assertjVersion: String by project val usedDetektVersion: String by project val junitEngineVersion: String by project val junitPlatformVersion: String by project val spekVersion: String by project dependencies { implementation("io.gitlab.arturbosch.detekt:detekt-api:$usedDetektVersion") testImplementation("io.gi...
buildscript { repositories { mavenLocal() jcenter() } val kotlinVersion: String by project dependencies { classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion") } } repositories { jcenter() } apply { plugin("kotlin") } val assertjVersion: String by project val usedDetektVersion: String ...
apache-2.0
Kotlin
39597dca58777b77e06ebd76483661a1c4abb997
Add setHeight and setWidth methods to View
MaTriXy/KAndroid,pawegio/KAndroid
kandroid/src/main/kotlin/com/pawegio/kandroid/KView.kt
kandroid/src/main/kotlin/com/pawegio/kandroid/KView.kt
/* * Copyright 2015-2016 Paweł Gajda * * 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 2015-2016 Paweł Gajda * * 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
f82bb588cb8b8a2faf76ec79f59c18f5a2fa5fc8
Add Pageable interface
vimeo/vimeo-networking-java,vimeo/vimeo-networking-java,vimeo/vimeo-networking-java
models/src/main/java/com/vimeo/networking2/Pageable.kt
models/src/main/java/com/vimeo/networking2/Pageable.kt
package com.vimeo.networking2 /** * All lists that can be paged should implement this interface to provide * paging urls, total number of items returns for each page and the data for each page. */ interface Pageable<DATA_T> { /** * Total number of items returned. */ val total: Int? /** ...
mit
Kotlin
1957bade6b37aa7dde200a215c73aba569737e17
Add basic Swagger configuration
gprince/FreeDaS
freedas-api/src/main/kotlin/fr/kynapse/freedas/api/SwaggerConfiguration.kt
freedas-api/src/main/kotlin/fr/kynapse/freedas/api/SwaggerConfiguration.kt
package fr.kynapse.freedas.api import org.springframework.context.annotation.Bean import org.springframework.context.annotation.Configuration import springfox.documentation.builders.PathSelectors import springfox.documentation.builders.RequestHandlerSelectors import springfox.documentation.spi.DocumentationType import...
apache-2.0
Kotlin
b280d4b25496dd0e1890d6f4578b921a40e5e993
Fix AndroidInjections default get activity dependency graph implementation
beyama/winter,beyama/winter,beyama/winter
winter-android/src/main/kotlin/io/jentz/winter/android/AndroidInjection.kt
winter-android/src/main/kotlin/io/jentz/winter/android/AndroidInjection.kt
package io.jentz.winter.android import android.app.Activity import android.content.Context import android.content.ContextWrapper import android.view.View import io.jentz.winter.Graph import io.jentz.winter.Injector import io.jentz.winter.WinterException object AndroidInjection { private var applicationGraphGette...
package io.jentz.winter.android import android.app.Activity import android.content.Context import android.content.ContextWrapper import android.view.View import io.jentz.winter.Graph import io.jentz.winter.Injector import io.jentz.winter.WinterException object AndroidInjection { private var applicationGraphGette...
apache-2.0
Kotlin
b55d90802fd802f33e1210bf8f68ba11c1d03be1
fix broken serverside detection
octarine-noise/BetterFoliage,octarine-noise/BetterFoliage
src/main/kotlin/mods/betterfoliage/BetterFoliageMod.kt
src/main/kotlin/mods/betterfoliage/BetterFoliageMod.kt
package mods.betterfoliage import mods.betterfoliage.client.Client import mods.betterfoliage.client.config.Config import net.minecraftforge.common.config.Configuration import net.minecraftforge.fml.common.FMLCommonHandler import net.minecraftforge.fml.common.Mod import net.minecraftforge.fml.common.event.FMLPostInitia...
package mods.betterfoliage import mods.betterfoliage.client.Client import mods.betterfoliage.client.config.Config import net.minecraftforge.common.config.Configuration import net.minecraftforge.fml.common.FMLCommonHandler import net.minecraftforge.fml.common.Mod import net.minecraftforge.fml.common.event.FMLPostInitia...
mit
Kotlin
f7cfff980579fb2049dda3e4547a288246114d05
split out get and set lens
grover-ws-1/http4k,http4k/http4k,http4k/http4k,grover-ws-1/http4k,grover-ws-1/http4k,http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k,grover-ws-1/http4k,grover-ws-1/http4k,http4k/http4k
src/main/kotlin/org/reekwest/http/contract/BiDiLens.kt
src/main/kotlin/org/reekwest/http/contract/BiDiLens.kt
package org.reekwest.http.contract import org.reekwest.http.asByteBuffer import org.reekwest.http.asString import java.nio.ByteBuffer interface GetLens<in IN, out OUT> { operator fun invoke(target: IN): List<OUT> } interface SetLens<IN, in OUT> { operator fun invoke(values: List<OUT>, target: IN): IN } inter...
package org.reekwest.http.contract import org.reekwest.http.asByteBuffer import org.reekwest.http.asString import java.nio.ByteBuffer interface GetLens<in IN, out OUT> : (IN) -> List<OUT> interface BiDiLens<IN, OUT> : GetLens<IN, OUT> { operator fun invoke(values: List<OUT>, target: IN): IN } fun <IN> Function1...
apache-2.0
Kotlin
ee40c7b87488ad9fe3131863bc586cbe5547c7ae
Add option() extension fun to create optionals from nullables
squanchy-dev/squanchy-android,squanchy-dev/squanchy-android,squanchy-dev/squanchy-android
app/src/main/java/net/squanchy/support/lang/Options.kt
app/src/main/java/net/squanchy/support/lang/Options.kt
package net.squanchy.support.lang import arrow.core.Option import arrow.core.getOrElse fun <T> Option<T>.or(value: T): T = this.getOrElse { value } fun <T> Option<T>.getOrThrow(): T = this.getOrElse { throw IllegalStateException("You must check if data is present before using get()") } fun <T> T?.option(): Opti...
package net.squanchy.support.lang import arrow.core.Option import arrow.core.getOrElse fun <T> Option<T>.or(value: T): T { return this.getOrElse { value } } fun <T> Option<T>.getOrThrow(): T { return this.getOrElse { throw IllegalStateException("You must check if data is present before using get()") } }
apache-2.0
Kotlin
ac633ed7a213de61e0f080d83521f1488a8a3a83
use the url-field whenever it is available
EventFahrplan/EventFahrplan,EventFahrplan/EventFahrplan
app/src/main/java/nerd/tuxmobil/fahrplan/congress/utils/EventUrlComposer.kt
app/src/main/java/nerd/tuxmobil/fahrplan/congress/utils/EventUrlComposer.kt
package nerd.tuxmobil.fahrplan.congress.utils import nerd.tuxmobil.fahrplan.congress.BuildConfig import nerd.tuxmobil.fahrplan.congress.extensions.originatesFromPretalx import nerd.tuxmobil.fahrplan.congress.utils.ServerBackendType.* import nerd.tuxmobil.fahrplan.congress.models.Lecture as Event class EventUrlCompose...
package nerd.tuxmobil.fahrplan.congress.utils import nerd.tuxmobil.fahrplan.congress.BuildConfig import nerd.tuxmobil.fahrplan.congress.extensions.originatesFromPretalx import nerd.tuxmobil.fahrplan.congress.utils.ServerBackendType.* import nerd.tuxmobil.fahrplan.congress.models.Lecture as Event class EventUrlCompose...
apache-2.0
Kotlin
2fd8d74c85a65423f2cb17e8a5735696c99522fd
Bump JUnit Platform to 1.5.2 (#820)
JetBrains/spek
buildSrc/src/main/kotlin/Dependencies.kt
buildSrc/src/main/kotlin/Dependencies.kt
object Dependencies { val hamkrest = "com.natpryce:hamkrest:1.1.0.0" val junitPlatformEngine = "org.junit.platform:junit-platform-engine:1.5.2" val junitPlatformRunner = "org.junit.platform:junit-platform-runner:1.5.2" val junitPlatformLauncher = "org.junit.platform:junit-platform-launcher:1.5.2" ...
object Dependencies { val hamkrest = "com.natpryce:hamkrest:1.1.0.0" val junitPlatformEngine = "org.junit.platform:junit-platform-engine:1.1.1" val junitPlatformRunner = "org.junit.platform:junit-platform-runner:1.1.1" val junitPlatformLauncher = "org.junit.platform:junit-platform-launcher:1.1.1" ...
bsd-3-clause
Kotlin
e5e01801bd253cb379ef17320e723ed75b5f75ca
Add a command to link to the full quote list
mrkirby153/KirBot
src/main/kotlin/me/mrkirby153/KirBot/command/executors/fun/CommandQuote.kt
src/main/kotlin/me/mrkirby153/KirBot/command/executors/fun/CommandQuote.kt
package me.mrkirby153.KirBot.command.executors.`fun` import me.mrkirby153.KirBot.command.BaseCommand import me.mrkirby153.KirBot.command.Command import me.mrkirby153.KirBot.command.CommandCategory import me.mrkirby153.KirBot.command.CommandException import me.mrkirby153.KirBot.command.args.Arguments import me.mrkirby1...
package me.mrkirby153.KirBot.command.executors.`fun` import me.mrkirby153.KirBot.command.BaseCommand import me.mrkirby153.KirBot.command.Command import me.mrkirby153.KirBot.command.CommandCategory import me.mrkirby153.KirBot.command.CommandException import me.mrkirby153.KirBot.command.args.Arguments import me.mrkirby1...
mit
Kotlin
167e16ae02be0af44eaf38d1a1fd8c4d393686a5
Remove unused snippet
android/performance-samples,android/performance-samples,android/performance-samples
MacrobenchmarkSample/macrobenchmark/build.gradle.kts
MacrobenchmarkSample/macrobenchmark/build.gradle.kts
import com.android.build.api.dsl.ManagedVirtualDevice plugins { id("com.android.test") id("kotlin-android") } // [START macrobenchmark_setup_android] android { // [START_EXCLUDE] compileSdk = 33 namespace = "com.example.macrobenchmark" defaultConfig { minSdk = 23 // Minimum supported ...
import com.android.build.api.dsl.ManagedVirtualDevice plugins { id("com.android.test") id("kotlin-android") } // [START macrobenchmark_setup_android] android { // [START_EXCLUDE] compileSdk = 33 namespace = "com.example.macrobenchmark" defaultConfig { minSdk = 23 // Minimum supported ...
apache-2.0
Kotlin
7ab63d0855ed3308aa6f2fa4aec75c0cf9880e40
Solve problem 2032
fredyw/leetcode,fredyw/leetcode,fredyw/leetcode,fredyw/leetcode
src/main/kotlin/leetcode/Problem2032.kt
src/main/kotlin/leetcode/Problem2032.kt
package leetcode /** * https://leetcode.com/problems/two-out-of-three/ */ class Problem2032 { fun twoOutOfThree(nums1: IntArray, nums2: IntArray, nums3: IntArray): List<Int> { val set1 = mutableSetOf<Int>() nums1.forEach { if (it !in set1) { set1 += it } ...
package leetcode /** * https://leetcode.com/problems/two-out-of-three/ */ class Problem2032 { fun twoOutOfThree(nums1: IntArray, nums2: IntArray, nums3: IntArray): List<Int> { TODO() } } fun main() { val prob = Problem2032() println(prob.twoOutOfThree(intArrayOf(1,1,3,2), intArrayOf(2,3), in...
mit
Kotlin
43724869151fcd9b8218d76c5038e4e4c8a2a23f
Solve problem 2049
fredyw/leetcode,fredyw/leetcode,fredyw/leetcode,fredyw/leetcode
src/main/kotlin/leetcode/Problem2049.kt
src/main/kotlin/leetcode/Problem2049.kt
package leetcode /** * https://leetcode.com/problems/count-nodes-with-the-highest-score/ */ class Problem2049 { fun countHighestScoreNodes(parents: IntArray): Int { val root = buildTree(parents) val scores = mutableMapOf<Long, Int>() countHighestScore(parents.size, root, scores) v...
package leetcode /** * https://leetcode.com/problems/count-nodes-with-the-highest-score/ */ class Problem2049 { fun countHighestScoreNodes(parents: IntArray): Int { TODO() } } fun main() { val prob = Problem2049() println(prob.countHighestScoreNodes(intArrayOf(-1,2,0,2,0))) // 3 println(...
mit
Kotlin
8752abf9ffa53fcff58cac8a82b1f00979d6ce61
Solve problem 2120
fredyw/leetcode,fredyw/leetcode,fredyw/leetcode,fredyw/leetcode
src/main/kotlin/leetcode/Problem2129.kt
src/main/kotlin/leetcode/Problem2129.kt
package leetcode /** * https://leetcode.com/problems/capitalize-the-title/ */ class Problem2129 { fun capitalizeTitle(title: String): String { return title.split(" ") .joinToString(" ") { if (it.length > 2) it[0].toUpperCase() + it.substring(1).toLowerCase() else it.toLowerCas...
mit
Kotlin
f2e1ec539aa9fb67d08d242152a4ddbbf57bc797
Update Spoofax 2 Gradle plugin.
metaborg/spoofax-deploy,metaborg/spoofax-deploy,metaborg/spoofax-deploy
gradle/build.gradle.kts
gradle/build.gradle.kts
plugins { id("org.metaborg.gradle.config.root-project") version "0.3.21" id("org.metaborg.gitonium") version "0.1.3" // Set versions for plugins to use, only applying them in subprojects (apply false here). id("org.metaborg.spoofax.gradle.langspec") version "0.4.4" apply false id("de.set.ecj") version "1.4.1...
plugins { id("org.metaborg.gradle.config.root-project") version "0.3.21" id("org.metaborg.gitonium") version "0.1.3" // Set versions for plugins to use, only applying them in subprojects (apply false here). id("org.metaborg.spoofax.gradle.langspec") version "0.4.2" apply false id("de.set.ecj") version "1.4.1...
apache-2.0
Kotlin
e8e30725bb6d1df9ae7083fbe1b306c11cc1534f
refactor #506 Add unit test.
toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Jitte
app/src/test/java/jp/toastkid/yobidashi/media/image/list/ImageLoaderTest.kt
app/src/test/java/jp/toastkid/yobidashi/media/image/list/ImageLoaderTest.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
fe61d3028cbed7ac7000f64d4cbd48e563fc56f5
refactor #431 Modify verification.
toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt
barcode/src/test/java/jp/toastkid/barcode/generator/BarcodeGeneratorTest.kt
barcode/src/test/java/jp/toastkid/barcode/generator/BarcodeGeneratorTest.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
3b2660aa1200f73cf7a078686c97cb59fe46b404
bump grpc from 1.46.0 to 1.47.0 (via #771)
allure-framework/allure-java,allure-framework/allure-java
allure-grpc/build.gradle.kts
allure-grpc/build.gradle.kts
import com.google.protobuf.gradle.* plugins { id("com.google.protobuf") } description = "Allure gRPC Integration" val agent: Configuration by configurations.creating val grpcVersion = "1.47.0" val protobufVersion = "3.21.0" dependencies { agent("org.aspectj:aspectjweaver") api(project(":allure-attachme...
import com.google.protobuf.gradle.* plugins { id("com.google.protobuf") } description = "Allure gRPC Integration" val agent: Configuration by configurations.creating val grpcVersion = "1.46.0" val protobufVersion = "3.21.0" dependencies { agent("org.aspectj:aspectjweaver") api(project(":allure-attachme...
apache-2.0
Kotlin
11ddb6d709b6df03c20b7e1ace0d8b7e2f189a67
Revert "[refactoring] Remove unnecessary out."
elpassion/cloud-timer-android,elpassion/cloud-timer-android,elpassion/cloud-timer-android
app/src/main/java/pl/elpassion/cloudtimer/adapter/BaseRecyclerViewAdapter.kt
app/src/main/java/pl/elpassion/cloudtimer/adapter/BaseRecyclerViewAdapter.kt
package pl.elpassion.cloudtimer.adapter import android.support.v7.widget.RecyclerView import android.view.LayoutInflater import android.view.ViewGroup import java.util.* open class BaseRecyclerViewAdapter : RecyclerView.Adapter<RecyclerView.ViewHolder>() { val adapters: MutableList<ItemAdapter<out RecyclerView.V...
package pl.elpassion.cloudtimer.adapter import android.support.v7.widget.RecyclerView import android.view.LayoutInflater import android.view.ViewGroup import java.util.* open class BaseRecyclerViewAdapter : RecyclerView.Adapter<RecyclerView.ViewHolder>() { val adapters: MutableList<ItemAdapter<RecyclerView.ViewH...
apache-2.0
Kotlin
aeeb67b1aacf8a54b375bfbf6a60d2bdc53ec0db
Add an UT
MontpellierTechHub/ABCTestChronometer
app/src/test/java/fr/montpelliertechhub/abctestchronometer/ABTestUnitTest.kt
app/src/test/java/fr/montpelliertechhub/abctestchronometer/ABTestUnitTest.kt
package fr.montpelliertechhub.abctestchronometer import fr.montpelliertechhub.abctestchronometer.models.ABTest import fr.montpelliertechhub.abctestchronometer.models.Try import org.junit.Assert import org.junit.Test /** * Test for {@link ABTestUnitTest} * * Created by Hugo Gresse on 21/09/2017. */ class ABTestUn...
apache-2.0
Kotlin
22cef3d2482f8a0087554990ca62027a664d04a1
Add todo for LifecycleObserver
LouisCAD/Splitties,LouisCAD/Splitties,LouisCAD/Splitties
arch-lifecycle/src/main/kotlin/splitties/arch/lifecycle/LifecycleObserver.kt
arch-lifecycle/src/main/kotlin/splitties/arch/lifecycle/LifecycleObserver.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
ff4ce95f42e99c9e835486667cba456fbb87ede1
Add wrapInScrollView and wrapInHorizontalScrollView
LouisCAD/Splitties,LouisCAD/Splitties,LouisCAD/Splitties
modules/views-dsl/src/main/kotlin/splitties/views/dsl/core/ScrollWrapping.kt
modules/views-dsl/src/main/kotlin/splitties/views/dsl/core/ScrollWrapping.kt
package splitties.views.dsl.core import android.view.View import android.widget.HorizontalScrollView import android.widget.ScrollView import androidx.annotation.IdRes import kotlin.contracts.InvocationKind import kotlin.contracts.contract inline fun View.wrapInScrollView( @IdRes id: Int = View.NO_ID, height: ...
apache-2.0
Kotlin
dcf74d08a92bbfa8636f59c84515a65305faddc3
change catfact to a non-threaded command
noud02/Akatsuki
src/main/kotlin/me/noud02/akatsuki/commands/CatFact.kt
src/main/kotlin/me/noud02/akatsuki/commands/CatFact.kt
/* * Copyright (c) 2017-2018 Noud Kerver * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, * copy, mo...
/* * Copyright (c) 2017-2018 Noud Kerver * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, * copy, mo...
mit
Kotlin
155cac0bbba9a9a6a6bf1624edd8376601e0359b
fix commands erroring in dms
noud02/Akatsuki
src/main/kotlin/me/noud02/akatsuki/entities/Context.kt
src/main/kotlin/me/noud02/akatsuki/entities/Context.kt
/* * Copyright (c) 2017 Noud Kerver * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, * copy, modify, merge...
/* * Copyright (c) 2017 Noud Kerver * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, * copy, modify, merge...
mit
Kotlin
7d853b4e16d7894f0754bf9a5ace8461d6ae416b
Check if the DJ is enabled before executing commands
mrkirby153/KirBot
src/main/kotlin/me/mrkirby153/KirBot/command/executors/music/MusicCommand.kt
src/main/kotlin/me/mrkirby153/KirBot/command/executors/music/MusicCommand.kt
package me.mrkirby153.KirBot.command.executors.music import me.mrkirby153.KirBot.command.CommandException import me.mrkirby153.KirBot.command.args.CommandContext import me.mrkirby153.KirBot.command.executors.CmdExecutor import me.mrkirby153.KirBot.database.api.MusicSettings import me.mrkirby153.KirBot.music.MusicManag...
package me.mrkirby153.KirBot.command.executors.music import me.mrkirby153.KirBot.command.CommandException import me.mrkirby153.KirBot.command.args.CommandContext import me.mrkirby153.KirBot.command.executors.CmdExecutor import me.mrkirby153.KirBot.database.api.MusicSettings import me.mrkirby153.KirBot.music.MusicManag...
mit
Kotlin
03cdcbcbd290e88bad194e7b58dc713e90616314
refactor #232 Remove redundant line breaks.
toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Jitte,toastkidjp/Yobidashi_kt
app/src/main/java/jp/toastkid/yobidashi/rss/suggestion/RssAddingSuggestion.kt
app/src/main/java/jp/toastkid/yobidashi/rss/suggestion/RssAddingSuggestion.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
979194d946eeb8716f0d1f6947fe1477b79117ae
Add missing newline
kvakil/venus,kvakil/venus,kvakil/venus
src/main/kotlin/venus/riscv/utils.kt
src/main/kotlin/venus/riscv/utils.kt
package venus.riscv fun userStringToInt(s: String): Int { val radix = when (s.take(2)) { "0x" -> 16 "0b" -> 2 else -> return s.toLong().toInt() } return s.drop(2).toLong(radix).toInt() }
package venus.riscv fun userStringToInt(s: String): Int { val radix = when (s.take(2)) { "0x" -> 16 "0b" -> 2 else -> return s.toLong().toInt() } return s.drop(2).toLong(radix).toInt() }
mit
Kotlin
e0e14c479581477f0aa35d6e4be497e36f6c00f1
Call parent method
ids1024/lsdict-android
src/main/kotlin/com/ids1024/lsdict/LSDict.kt
src/main/kotlin/com/ids1024/lsdict/LSDict.kt
package com.ids1024.lsdict import android.app.ListActivity import android.os.Bundle import android.database.sqlite.SQLiteDatabase import android.widget.SimpleCursorAdapter import android.view.Menu import android.content.Context import android.app.SearchManager import android.widget.SearchView import android.content.In...
package com.ids1024.lsdict import android.app.ListActivity import android.os.Bundle import android.database.sqlite.SQLiteDatabase import android.widget.SimpleCursorAdapter import android.view.Menu import android.content.Context import android.app.SearchManager import android.widget.SearchView import android.content.In...
mit
Kotlin
dc790c2552d88e8e7d85420055a1e7a78783f865
Add Player.give
pie-flavor/Kludge
src/main/kotlin/flavor/pie/kludge/players.kt
src/main/kotlin/flavor/pie/kludge/players.kt
package flavor.pie.kludge import org.spongepowered.api.data.key.Keys import org.spongepowered.api.entity.EntityTypes import org.spongepowered.api.entity.living.player.Player import org.spongepowered.api.item.inventory.ItemStack import org.spongepowered.api.item.inventory.ItemStackSnapshot import org.spongepowered.api....
package flavor.pie.kludge import org.spongepowered.api.entity.living.player.Player import org.spongepowered.api.item.inventory.entity.MainPlayerInventory import org.spongepowered.api.text.Text import org.spongepowered.api.text.TextElement import org.spongepowered.api.text.TextTemplate import org.spongepowered.api.text...
mit
Kotlin
5b75351ce0bc750a59289f9239a9f1dc96f777f7
Fix missing copyright header
romainguy/kotlin-math
src/main/kotlin/com/curiouscreature/kotlin/math/Ray.kt
src/main/kotlin/com/curiouscreature/kotlin/math/Ray.kt
/* * Copyright (C) 2017 Romain Guy * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
package com.curiouscreature.kotlin.math data class Ray(var origin: Float3 = Float3(), var direction: Float3) fun pointAt(r: Ray, t: Float) = r.origin + r.direction * t
apache-2.0
Kotlin
2961bfd76e53d8680ae452406f8b586a196b4b1d
add nsfw option to Command
noud02/Akatsuki
src/main/kotlin/me/noud02/akatsuki/entities/Command.kt
src/main/kotlin/me/noud02/akatsuki/entities/Command.kt
/* * Copyright (c) 2017 Noud Kerver * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, * copy, modify, merge...
/* * Copyright (c) 2017 Noud Kerver * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, * copy, modify, merge...
mit
Kotlin
900ce711d5bc47343486e9c82fc3c10b5029699f
Optimize iteration in post-order
devromik/tree
src/main/kotlin/net/devromik/tree/PostOrderIterator.kt
src/main/kotlin/net/devromik/tree/PostOrderIterator.kt
package net.devromik.tree import java.util.* /** * @author Shulnyaev Roman */ class PostOrderIterator<D>(root: TreeNode<D>, private val isLeaf: (TreeNode<D>) -> Boolean = { it.isLeaf }) { private val traversalOrder: Deque<TreeNode<D>> private val traversedNodes = mutableSetOf<TreeNode<D>>() // *******...
package net.devromik.tree import java.util.* /** * @author Shulnyaev Roman */ class PostOrderIterator<D>(root: TreeNode<D>, private val isLeaf: (TreeNode<D>) -> Boolean = { it.isLeaf }) { private val traversalOrder: Deque<TreeNode<D>> private val traversedNodes = mutableSetOf<TreeNode<D>>() // *******...
mit
Kotlin