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 |
|---|---|---|---|---|---|---|---|---|
1e23530f3dd8dec4771de5dc7c88919ec5be29a6 | Remove unused class import | fcostaa/kotlin-rxjava-android,fcostaa/kotlin-rxjava-android | app-base/src/androidTest/kotlin/com/github/felipehjcosta/marvelapp/base/di/TestApplicationComponent.kt | app-base/src/androidTest/kotlin/com/github/felipehjcosta/marvelapp/base/di/TestApplicationComponent.kt | package com.github.felipehjcosta.marvelapp.base.di
import com.github.felipehjcosta.marvelapp.base.main.MainActivityTest
import com.github.felipehjcosta.marvelapp.base.modules.wiki.di.WikiFragmentBuilderModule
import dagger.Component
import dagger.android.AndroidInjectionModule
import javax.inject.Singleton
@Singleton... | package com.github.felipehjcosta.marvelapp.base.di
import com.github.felipehjcosta.marvelapp.base.main.MainActivityTest
import com.github.felipehjcosta.marvelapp.base.modules.listing.di.CharacterListingFragmentBuilderModule
import com.github.felipehjcosta.marvelapp.base.modules.wiki.di.WikiFragmentBuilderModule
import... | mit | Kotlin |
bbfdd2cf7c3ec1db76da33c23b6f59b69dc188aa | fix fatal missing 'e' | Seancheey/Ark-Sonah | src/com/seancheey/game/Config.kt | src/com/seancheey/game/Config.kt | package com.seancheey.game
/**
* Created by Seancheey on 24/05/2017.
* GitHub: https://github.com/Seancheey
*/
object Config {
val botGridNum = 20
val botGridSize = 20.0
val botPixelSize
get() = botGridNum * botGridSize
val botGroupNum = 8
val botSize
get() = botGridSize * 5
... | package com.seancheey.game
/**
* Created by Seancheey on 24/05/2017.
* GitHub: https://github.com/Seancheey
*/
object Config {
val botGridNum = 20
val botGridSize = 20.0
val botPixelSize
get() = botGridNum * botGridSize
val botGroupNum = 8
val botSiz
get() = botGridSize * 5
v... | mit | Kotlin |
e6422350130ad24c0ba263795be06f0f6ce68317 | Improve Copy task sample | gradle/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle-script-kotlin,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn... | samples/copy/build.gradle.kts | samples/copy/build.gradle.kts | import org.apache.tools.ant.filters.*
//for including in the copy task
val dataContent = copySpec {
from("src/data")
include("*.data")
}
tasks {
"initConfig"(Copy::class) {
val tokens = mapOf("version" to "2.3.1")
inputs.properties(tokens)
from("src/main/config") {
in... | import org.apache.tools.ant.filters.*
//for including in the copy task
val dataContent = copySpec {
from("src/data")
include("*.data")
}
tasks {
"initConfig"(Copy::class) {
from("src/main/config") {
include("**/*.properties")
include("**/*.xml")
filter<ReplaceTo... | apache-2.0 | Kotlin |
5a797c78dfad403325cdf77ca78aee5d8929d58d | Fix escapeHTML type | ktorio/ktor,ktorio/ktor,ktorio/ktor,ktorio/ktor | ktor-core/src/org/jetbrains/ktor/util/Text.kt | ktor-core/src/org/jetbrains/ktor/util/Text.kt | package org.jetbrains.ktor.util
import kotlin.text.*
fun String.substringAfterMatch(mr: MatchResult) = drop(mr.range.endInclusive + if (mr.range.isEmpty()) 0 else 1)
private val escapeRegex = "\\\\.".toRegex()
fun String.unescapeIfQuoted() = when {
startsWith('"') && endsWith('"') -> removeSurrounding("\"").repl... | package org.jetbrains.ktor.util
import kotlin.text.*
fun String.substringAfterMatch(mr: MatchResult) = drop(mr.range.endInclusive + if (mr.range.isEmpty()) 0 else 1)
private val escapeRegex = "\\\\.".toRegex()
fun String.unescapeIfQuoted() = when {
startsWith('"') && endsWith('"') -> removeSurrounding("\"").repl... | apache-2.0 | Kotlin |
6040a51e8436133ee7e0c9621d94d1d72f8b396a | test stream consumers | norswap/violin,norswap/violin | test/norswap/violin/stream/TestConsumers.kt | test/norswap/violin/stream/TestConsumers.kt | package norswap.violin.stream
import org.testng.annotations.Test
import org.testng.Assert.*
import java.util.Comparator
@Test fun each() {
var i = 0
Stream(1, 2, 3).each { assertEquals(it, ++i) }
}
@Test fun mutableList() {
val list = Stream(1, 2, 3).mutableList()
list.add(4)
assertEquals(list, li... | bsd-3-clause | Kotlin | |
dd6fca59edaa33ac6b9de2da211948b5ad1a8d49 | Fix IDEA-234177: hide the frame border when maximized | 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/platform-impl/src/com/intellij/openapi/wm/impl/customFrameDecorations/header/DefaultFrameHeader.kt | platform/platform-impl/src/com/intellij/openapi/wm/impl/customFrameDecorations/header/DefaultFrameHeader.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.openapi.wm.impl.customFrameDecorations.header
import com.intellij.openapi.wm.impl.customFrameDecorations.header.titleLabel.CustomDecorationTitle
import com.i... | // 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.openapi.wm.impl.customFrameDecorations.header
import com.intellij.openapi.wm.impl.customFrameDecorations.header.titleLabel.CustomDecorationTitle
import com.i... | apache-2.0 | Kotlin |
52cc5e9a74923af463d311dbcbaa4598f7ddbc4e | Convert `command` into a function | pie-flavor/Kludge | src/main/kotlin/flavor/pie/kludge/commands.kt | src/main/kotlin/flavor/pie/kludge/commands.kt | package flavor.pie.kludge
import org.spongepowered.api.command.CommandResult
import org.spongepowered.api.command.CommandSource
import org.spongepowered.api.command.args.CommandContext
import org.spongepowered.api.command.spec.CommandExecutor
import org.spongepowered.api.command.spec.CommandSpec
fun ((CommandSource, ... | package flavor.pie.kludge
import org.spongepowered.api.command.CommandResult
import org.spongepowered.api.command.CommandSource
import org.spongepowered.api.command.args.CommandContext
import org.spongepowered.api.command.spec.CommandExecutor
import org.spongepowered.api.command.spec.CommandSpec
val ((CommandSource, ... | mit | Kotlin |
de8570944dffe9bd9cfdfed56cfc2ecd01a9b8e7 | Add onFailure import to Readiness | grpc/grpc-kotlin,grpc/grpc-kotlin,grpc/grpc-kotlin | stub/src/main/java/io/grpc/kotlin/Readiness.kt | stub/src/main/java/io/grpc/kotlin/Readiness.kt | /*
* Copyright 2020 gRPC authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | /*
* Copyright 2020 gRPC authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | apache-2.0 | Kotlin |
9de8fa8e9f715cd487b212c5c779a1ef227680c2 | add replicator tool | JetBrains/xodus,JetBrains/xodus,JetBrains/xodus | tools/src/main/kotlin/jetbrains/exodus/Main.kt | tools/src/main/kotlin/jetbrains/exodus/Main.kt | /**
* Copyright 2010 - 2018 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 a... | /**
* Copyright 2010 - 2018 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 a... | apache-2.0 | Kotlin |
838fed9017a800b6a4ab9ba73b711bf8d7104b40 | Add the column number to thedebug stack frame. | rhdunn/xquery-intellij-plugin,rhdunn/xquery-intellij-plugin | src/plugin-marklogic/main/uk/co/reecedunn/intellij/plugin/marklogic/query/rest/debugger/MarkLogicDebugFrame.kt | src/plugin-marklogic/main/uk/co/reecedunn/intellij/plugin/marklogic/query/rest/debugger/MarkLogicDebugFrame.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 |
d852bf648f3423a8bc0f2b277c1c25d3f63d7e4a | Update Prefix Path in dependencies | MaibornWolff/codecharta,MaibornWolff/codecharta,MaibornWolff/codecharta,MaibornWolff/codecharta,MaibornWolff/codecharta,MaibornWolff/codecharta,MaibornWolff/codecharta,MaibornWolff/codecharta | analysis/import/CodeMaatCouplingImporter/src/main/kotlin/de/maibornwolff/codecharta/importer/codemaat/CSVRow.kt | analysis/import/CodeMaatCouplingImporter/src/main/kotlin/de/maibornwolff/codecharta/importer/codemaat/CSVRow.kt | package de.maibornwolff.codecharta.importer.codemaat
import de.maibornwolff.codecharta.model.*
import java.util.*
class CSVRow(private val row: Array<String?>, private val header: CSVHeader, private val pathSeparator: Char) {
init {
if (row.size <= header.pathColumn) {
throw IllegalArgumentEx... | package de.maibornwolff.codecharta.importer.codemaat
import de.maibornwolff.codecharta.model.*
import java.util.*
class CSVRow(private val row: Array<String?>, private val header: CSVHeader, private val pathSeparator: Char) {
init {
if (row.size <= header.pathColumn) {
throw IllegalArgumentEx... | bsd-3-clause | Kotlin |
de40aed61dfa85d0df258d11d480412512da0c73 | Update params initialization using the initializer | KotlinNLP/SimpleDNN | src/main/kotlin/com/kotlinnlp/simplednn/deeplearning/attentionnetwork/attentionlayer/AttentionLayerParameters.kt | src/main/kotlin/com/kotlinnlp/simplednn/deeplearning/attentionnetwork/attentionlayer/AttentionLayerParameters.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 |
9988e3e6a5f4a03c1da16227f7cd2269f361cbaf | Bump modb-mal from 3.0.2 to 3.0.3 | manami-project/manami,manami-project/manami | manami-app/build.gradle.kts | manami-app/build.gradle.kts | dependencies {
api("io.github.manamiproject:modb-core:6.0.0")
api("io.github.manamiproject:modb-db-parser:3.0.2")
api("org.slf4j:slf4j-api:1.7.32")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.1-native-mt")
implementation("io.github.manamiproject:modb-anidb:3.0.3")
implemen... | dependencies {
api("io.github.manamiproject:modb-core:6.0.0")
api("io.github.manamiproject:modb-db-parser:3.0.2")
api("org.slf4j:slf4j-api:1.7.32")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.1-native-mt")
implementation("io.github.manamiproject:modb-anidb:3.0.3")
implemen... | agpl-3.0 | Kotlin |
50e2a2e72ddcc857ec9ab8160b038b8a75d2065a | Bump up version name | chibatching/Kotpref | buildSrc/src/main/java/dependencies/Versions.kt | buildSrc/src/main/java/dependencies/Versions.kt | package dependencies
object Versions {
const val versionName = "2.8.0"
const val targetSdk = 28
const val minSdk = 9
const val minSdkWithSupportLibrary = 14
internal const val kotlin = "1.3.31"
internal const val junit = "4.12"
internal const val robolectric = "4.2.1"
internal const ... | package dependencies
object Versions {
const val versionName = "2.7.0"
const val targetSdk = 28
const val minSdk = 9
const val minSdkWithSupportLibrary = 14
internal const val kotlin = "1.3.31"
internal const val junit = "4.12"
internal const val robolectric = "4.2.1"
internal const ... | apache-2.0 | Kotlin |
992db9d53313d0a86f70001ee61dc01859c4ea5c | Add Sherlock and the Valid String solution | denisrmp/hacker-rank | algorithms/strings/SherlockAndTheValidString.kt | algorithms/strings/SherlockAndTheValidString.kt | // https://www.hackerrank.com/challenges/sherlock-and-valid-string/problem
fun main() {
val string = readLine().orEmpty()
println(if (isValid(string)) "YES" else "NO")
}
fun isValid(string: String): Boolean {
if (string.length <= 3) return true
val charFreq = IntArray('z' - 'a' + 1)
for (char i... | mit | Kotlin | |
0002a22087efcbd277d70539c8e4585054cc7765 | test for check rx asyncemitter | y2k/RssReader | app/src/test/kotlin/y2k/rssreader/RxTests.kt | app/src/test/kotlin/y2k/rssreader/RxTests.kt | package y2k.rssreader
import org.junit.Assert.assertEquals
import org.junit.Test
import rx.AsyncEmitter
import rx.Observable
import rx.Single
import rx.subjects.AsyncSubject
/**
* Created by y2k on 21/08/16.
*/
class RxTests {
@Test fun `fromAsync test`() {
var mode = 0
val o = Observable.fromA... | package y2k.rssreader
import org.junit.Assert.assertEquals
import org.junit.Test
import rx.Single
import rx.subjects.AsyncSubject
/**
* Created by y2k on 21/08/16.
*/
class RxTests {
@Test fun test() {
var index = 1
fun f(): Single<Int> {
val s = AsyncSubject.create<Int>()
... | mit | Kotlin |
8931dbb657cfd243a48e537b25d2a8b782a6a982 | Remove unnecessary DB calls when setting chapter flag defaults | inorichi/tachiyomi,inorichi/mangafeed,CarlosEsco/tachiyomi,inorichi/mangafeed,inorichi/tachiyomi | app/src/main/java/eu/kanade/tachiyomi/util/chapter/ChapterSettingsHelper.kt | app/src/main/java/eu/kanade/tachiyomi/util/chapter/ChapterSettingsHelper.kt | package eu.kanade.tachiyomi.util.chapter
import eu.kanade.tachiyomi.data.database.DatabaseHelper
import eu.kanade.tachiyomi.data.database.models.Manga
import eu.kanade.tachiyomi.data.preference.PreferencesHelper
import eu.kanade.tachiyomi.util.lang.launchIO
import uy.kohesive.injekt.injectLazy
object ChapterSettingsH... | package eu.kanade.tachiyomi.util.chapter
import eu.kanade.tachiyomi.data.database.DatabaseHelper
import eu.kanade.tachiyomi.data.database.models.Manga
import eu.kanade.tachiyomi.data.preference.PreferencesHelper
import eu.kanade.tachiyomi.util.lang.launchIO
import uy.kohesive.injekt.injectLazy
object ChapterSettingsH... | apache-2.0 | Kotlin |
4b9ec6214ad226fc9203be847c2fb70e529ce02c | refactor #442 Clean up code in SslErrorMessageGenerator. | toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Jitte,toastkidjp/Yobidashi_kt | app/src/main/java/jp/toastkid/yobidashi/browser/SslErrorMessageGenerator.kt | app/src/main/java/jp/toastkid/yobidashi/browser/SslErrorMessageGenerator.kt | package jp.toastkid.yobidashi.browser
import android.content.Context
import android.net.http.SslCertificate
import android.net.http.SslError
import jp.toastkid.yobidashi.R
import java.text.SimpleDateFormat
import java.util.*
/**
* @author toastkidjp
*/
class SslErrorMessageGenerator {
private val dateFormat = ... | package jp.toastkid.yobidashi.browser
import android.content.Context
import android.net.http.SslCertificate
import android.net.http.SslError
import jp.toastkid.yobidashi.R
import java.text.SimpleDateFormat
import java.util.*
/**
* @author toastkidjp
*/
class SslErrorMessageGenerator {
operator fun invoke(conte... | epl-1.0 | Kotlin |
38d08268433d6f09f167ec320ab1fc9e6f45d693 | Remove accidentally leftover grpc-api dependency (#3918) | open-telemetry/opentelemetry-java,open-telemetry/opentelemetry-java,open-telemetry/opentelemetry-java | exporters/jaeger/build.gradle.kts | exporters/jaeger/build.gradle.kts | plugins {
id("otel.java-conventions")
id("otel.publish-conventions")
id("otel.animalsniffer-conventions")
id("com.squareup.wire")
}
description = "OpenTelemetry - Jaeger Exporter"
otelJava.moduleName.set("io.opentelemetry.exporter.jaeger")
dependencies {
api(project(":sdk:all"))
protoSource(project(":e... | plugins {
id("otel.java-conventions")
id("otel.publish-conventions")
id("otel.animalsniffer-conventions")
id("com.squareup.wire")
}
description = "OpenTelemetry - Jaeger Exporter"
otelJava.moduleName.set("io.opentelemetry.exporter.jaeger")
dependencies {
api(project(":sdk:all"))
api("io.grpc:grpc-api")
... | apache-2.0 | Kotlin |
da32009344d9ff9d36ee4e2ef5ef40a3e534f26a | Change signature of PluginConfigScope | BjoernPetersen/JMusicBot | src/main/kotlin/com/github/bjoernpetersen/musicbot/api/config/ConfigScope.kt | src/main/kotlin/com/github/bjoernpetersen/musicbot/api/config/ConfigScope.kt | package com.github.bjoernpetersen.musicbot.api.config
import kotlin.reflect.KClass
sealed class ConfigScope(private val scopeString: String) {
override fun equals(other: Any?): Boolean {
if (this === other) return true
if (other !is ConfigScope) return false
if (scopeString != other.scopeS... | package com.github.bjoernpetersen.musicbot.api.config
import com.github.bjoernpetersen.musicbot.spi.plugin.Plugin
import kotlin.reflect.KClass
sealed class ConfigScope(private val scopeString: String) {
override fun equals(other: Any?): Boolean {
if (this === other) return true
if (other !is Confi... | mit | Kotlin |
8d27d7493a31947b96993c617dfcac62c463e9dd | Remove bad test function | AcapellaSoft/Aconite,AcapellaSoft/Aconite | aconite-client/tests/io/aconite/client/Utils.kt | aconite-client/tests/io/aconite/client/Utils.kt | package io.aconite.client
import io.aconite.BodyBuffer
import io.aconite.Buffer
import io.aconite.Request
import io.aconite.Response
import io.aconite.annotations.*
import kotlinx.coroutines.experimental.future.future
import java.util.concurrent.TimeUnit
@Suppress("unused")
interface RootModuleApi {
@MODULE("/foo... | package io.aconite.client
import io.aconite.BodyBuffer
import io.aconite.Buffer
import io.aconite.Request
import io.aconite.Response
import io.aconite.annotations.*
import kotlinx.coroutines.experimental.future.future
import java.util.concurrent.TimeUnit
@Suppress("unused")
interface RootModuleApi {
@MODULE("/foo... | mit | Kotlin |
a531b9652e341ae30503d1568abdfa9ed153222a | refactor #727 Add unit test. | toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Jitte | licenses/src/test/java/jp/toastkid/licence/LicensesHtmlLoaderTest.kt | licenses/src/test/java/jp/toastkid/licence/LicensesHtmlLoaderTest.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 | |
1c20e507d70340b2f8f8087b74630b0370a6be3d | implement new injection for presenters on view | RogaLabs/social-login,RogaLabs/social-login | lib/src/main/java/com/rogalabs/lib/LoginView.kt | lib/src/main/java/com/rogalabs/lib/LoginView.kt | package com.rogalabs.lib
import android.content.Intent
import android.os.Bundle
import android.support.annotation.LayoutRes
import android.support.v7.app.AppCompatActivity
import android.util.Log
import android.widget.FrameLayout
import com.facebook.CallbackManager
import com.facebook.FacebookCallback
import com.faceb... | package com.rogalabs.lib
import android.content.Intent
import android.os.Bundle
import android.support.annotation.LayoutRes
import android.support.v7.app.AppCompatActivity
import android.util.Log
import android.widget.FrameLayout
import com.facebook.CallbackManager
import com.facebook.FacebookCallback
import com.faceb... | mit | Kotlin |
51d1548ef6f92ac494ab4afd350c4cd2aaf18f9b | refactor #232 Remove useless blank line. | toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Jitte | 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 |
d37827ce9342a8046c2d21b3ec486078c8ff857e | Return pairs for benchmark functions. | ethauvin/kobalt,ethauvin/kobalt,cbeust/kobalt,ethauvin/kobalt,cbeust/kobalt,cbeust/kobalt,ethauvin/kobalt | modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/misc/Benchmarks.kt | modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/misc/Benchmarks.kt | package com.beust.kobalt.misc
fun <T> benchmarkMillis(run: () -> T) : Pair<Long, T> {
val start = System.currentTimeMillis()
val result = run()
return Pair(System.currentTimeMillis() - start, result)
}
fun <T> benchmarkSeconds(run: () -> T) : Pair<Long, T> {
val result = benchmarkMillis(run)
retur... | package com.beust.kobalt.misc
fun benchmarkMillis(run: () -> Unit) : Long {
val start = System.currentTimeMillis()
run()
return System.currentTimeMillis() - start
}
fun benchmarkSeconds(run: () -> Unit) = benchmarkMillis(run) / 1000
| apache-2.0 | Kotlin |
681cf7989851bd950bde8bca398f40b25baca445 | Add varcs debug plugin | RuneSuite/client,RuneSuite/client | plugins-dev/src/main/java/org/runestar/client/plugins/dev/VarcsChangeDebug.kt | plugins-dev/src/main/java/org/runestar/client/plugins/dev/VarcsChangeDebug.kt | package org.runestar.client.plugins.dev
import org.kxtra.slf4j.logger.debug
import org.runestar.client.api.util.DisposablePlugin
import org.runestar.client.game.raw.access.XVarcs
import org.runestar.client.plugins.spi.PluginSettings
class VarcsChangeDebug : DisposablePlugin<PluginSettings>() {
override val defau... | mit | Kotlin | |
23540863fb13a24d6f3864fa905c178058d76d3f | Exclude Reactive Mongo autoconfiguration | mixitconf/mixit,mix-it/mixit,mix-it/mixit,mix-it/mixit,mix-it/mixit,mix-it/mixit,sdeleuze/mixit,sdeleuze/mixit,mixitconf/mixit,mixitconf/mixit,sdeleuze/mixit,sdeleuze/mixit,mixitconf/mixit | src/main/kotlin/mixit/Application.kt | src/main/kotlin/mixit/Application.kt | package mixit
import com.mongodb.ConnectionString
import com.samskivert.mustache.Mustache
import mixit.repository.ArticleRepository
import mixit.repository.EventRepository
import mixit.repository.SessionRepository
import mixit.repository.UserRepository
import mixit.support.MarkdownConverter
import mixit.support.MixitW... | package mixit
import com.mongodb.ConnectionString
import com.samskivert.mustache.Mustache
import mixit.repository.ArticleRepository
import mixit.repository.EventRepository
import mixit.repository.SessionRepository
import mixit.repository.UserRepository
import mixit.support.MarkdownConverter
import mixit.support.MixitW... | apache-2.0 | Kotlin |
ba57991b1c016820ca2aa5e53b027f6cfed59e5e | fix dispatcher.jar inclusion | mockk/mockk,mockk/mockk,mockk/mockk,mockk/mockk,mockk/mockk,mockk/mockk | modules/mockk-agent-android/build.gradle.kts | modules/mockk-agent-android/build.gradle.kts | import buildsrc.config.androidClassesDexAttributes
import buildsrc.config.asConsumer
plugins {
buildsrc.convention.`android-library`
buildsrc.convention.`mockk-publishing`
}
description = "Android instrumented testing MockK inline mocking agent"
val mavenName: String by extra("MockK Android Agent")
val mave... | import buildsrc.config.androidClassesDexAttributes
import buildsrc.config.asConsumer
plugins {
buildsrc.convention.`android-library`
buildsrc.convention.`mockk-publishing`
}
description = "Android instrumented testing MockK inline mocking agent"
val mavenName: String by extra("MockK Android Agent")
val mave... | apache-2.0 | Kotlin |
75fab5ce8871c76a517647d9168be73a9688f61b | improve presentation layer | rei-m/android_hyakuninisshu,rei-m/android_hyakuninisshu | app/src/main/java/me/rei_m/hyakuninisshu/presentation/karuta/KarutaFragment.kt | app/src/main/java/me/rei_m/hyakuninisshu/presentation/karuta/KarutaFragment.kt | /*
* Copyright (c) 2018. Rei Matsushita
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | /*
* Copyright (c) 2018. Rei Matsushita
*
* 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 |
cbd2af02e93e7ae902659717135488bc9add218e | Remove methods and field that is not longer in use | intellij-purescript/intellij-purescript,intellij-purescript/intellij-purescript | src/main/java/org/purescript/parser/ParserContext.kt | src/main/java/org/purescript/parser/ParserContext.kt | @file:Suppress("unused")
package org.purescript.parser
import com.intellij.lang.PsiBuilder
import com.intellij.psi.tree.IElementType
class ParserContext(private val builder: PsiBuilder) {
var isInAttempt = false
private var inOptional = 0
fun eof() = builder.eof()
fun advance() = builder.advanceLexe... | @file:Suppress("unused")
package org.purescript.parser
import com.intellij.lang.PsiBuilder
import com.intellij.psi.tree.IElementType
class ParserContext(private val builder: PsiBuilder) {
private val recoverySet = HashMap<IElementType, Int?>()
var isInAttempt = false
private var inOptional = 0
fun eo... | bsd-3-clause | Kotlin |
6beca66bf7c80e82581473ce88e985f1e15deadc | Add package to ProjectSubsetsTest | AndroidX/androidx,AndroidX/androidx,AndroidX/androidx,androidx/androidx,AndroidX/androidx,androidx/androidx,androidx/androidx,androidx/androidx,androidx/androidx,AndroidX/androidx,androidx/androidx,AndroidX/androidx,AndroidX/androidx,androidx/androidx,androidx/androidx,AndroidX/androidx,AndroidX/androidx,androidx/andro... | buildSrc-tests/project-subsets/src/test/kotlin/androidx/build/ProjectSubsetsTest.kt | buildSrc-tests/project-subsets/src/test/kotlin/androidx/build/ProjectSubsetsTest.kt | /*
* Copyright 2021 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 2021 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 |
a44efeac4f3c36a319b90ac3c71490259d26810e | Use Netty as a default test server instead of Jetty (some issues like TCP half-close could be reproduced only on Netty). | ktorio/ktor,ktorio/ktor,ktorio/ktor,ktorio/ktor | ktor-client/ktor-client-tests/jvm/src/io/ktor/client/tests/utils/TestServer.kt | ktor-client/ktor-client-tests/jvm/src/io/ktor/client/tests/utils/TestServer.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.client.tests.utils
import ch.qos.logback.classic.*
import io.ktor.client.tests.utils.tests.*
import io.ktor.server.engine.*
import io.ktor.server.jetty.*
import io.ktor.server... | /*
* 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.client.tests.utils
import ch.qos.logback.classic.*
import io.ktor.client.tests.utils.tests.*
import io.ktor.server.engine.*
import io.ktor.server.jetty.*
import org.slf4j.*
im... | apache-2.0 | Kotlin |
a2bd6df06a0b806e8b6f471daf1c75fad349b8a4 | Fix source-control sample | gradle/gradle-script-kotlin,gradle/gradle-script-kotlin | samples/source-control/sample/build.gradle.kts | samples/source-control/sample/build.gradle.kts | plugins {
application
}
application {
mainClassName = "samples.HelloWorld"
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
dependencies {
implementation("org.gradle.kotlin.dsl.samples.source-control:compute:latest.integration")
}
| plugins {
application
}
application {
mainClassName = "samples.HelloWorld"
}
java {
sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7
}
dependencies {
implementation("org.gradle.kotlin.dsl.samples.source-control:compute:latest.integration")
}
| apache-2.0 | Kotlin |
dae5b27e98489d4e40c2ef6cff442e22bf8b451a | Update to Android-Components 101.0.20220410143326. | 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.20220410143326"
}
| /* 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.20220409190321"
}
| mpl-2.0 | Kotlin |
ccb6d30e757651a2b37e27df7dca8864eab0ec6e | Update to Android-Components 98.0.20220120190433. | 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 = "98.0.20220120190433"
}
| /* 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 = "98.0.20220120143203"
}
| mpl-2.0 | Kotlin |
aca2a2d8c246421fdc8c14a369ec68a38dec78c8 | Fix JavaFxTest in headless environments | Kotlin/kotlinx.coroutines,Kotlin/kotlinx.coroutines,Kotlin/kotlinx.coroutines,Kotlin/kotlinx.coroutines,Kotlin/kotlinx.coroutines | ui/kotlinx-coroutines-javafx/test/JavaFxTest.kt | ui/kotlinx-coroutines-javafx/test/JavaFxTest.kt | /*
* Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
package kotlinx.coroutines.experimental.javafx
import javafx.application.*
import kotlinx.coroutines.experimental.*
import org.junit.*
class JavaFxTest : TestBase() {
@Before
fun setup() {
ig... | /*
* Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
package kotlinx.coroutines.experimental.javafx
import javafx.application.Platform
import kotlinx.coroutines.experimental.*
import org.junit.Before
import org.junit.Test
class JavaFxTest : TestBase() {
@B... | apache-2.0 | Kotlin |
96a2cc3d51d5d6e7d314f2201c139942a664abf4 | make Int.reached internal | MyDogTom/detekt,Mauin/detekt,rock3r/detekt,rock3r/detekt,Mauin/detekt,arturbosch/detekt,arturbosch/detekt,Mauin/detekt,Mauin/detekt,rock3r/detekt,arturbosch/detekt | detekt-cli/src/main/kotlin/io/gitlab/arturbosch/detekt/cli/console/BuildFailureReport.kt | detekt-cli/src/main/kotlin/io/gitlab/arturbosch/detekt/cli/console/BuildFailureReport.kt | package io.gitlab.arturbosch.detekt.cli.console
import io.gitlab.arturbosch.detekt.api.Config
import io.gitlab.arturbosch.detekt.api.ConsoleReport
import io.gitlab.arturbosch.detekt.api.Detektion
import io.gitlab.arturbosch.detekt.api.Finding
import io.gitlab.arturbosch.detekt.api.SingleAssign
import java.util.HashMap... | package io.gitlab.arturbosch.detekt.cli.console
import io.gitlab.arturbosch.detekt.api.Config
import io.gitlab.arturbosch.detekt.api.ConsoleReport
import io.gitlab.arturbosch.detekt.api.Detektion
import io.gitlab.arturbosch.detekt.api.Finding
import io.gitlab.arturbosch.detekt.api.SingleAssign
import java.util.HashMap... | apache-2.0 | Kotlin |
5db82bfd52cdc4778384b1291b35d1d8791b3046 | Fix hubtraffic by redirecting over a app.pr0gramm.com domain. | mopsalarm/Pr0,mopsalarm/Pr0,mopsalarm/Pr0 | app/src/main/java/com/pr0gramm/app/util/Affiliate.kt | app/src/main/java/com/pr0gramm/app/util/Affiliate.kt | package com.pr0gramm.app.util
import android.util.Base64
object Affiliate {
private val paramsHubTraffic = mapOf(
"utm_source" to "paid",
"utm_medium" to "hubtraffic",
"utm_campaign" to "hubtraffic_pr0grammapp")
private val reHubTraffic = "(?:pornhub|redtube|tube8|youporn|... | package com.pr0gramm.app.util
import android.net.Uri
object Affiliate {
private val paramsHubTraffic = mapOf(
"utm_source" to "paid",
"utm_medium" to "hubtraffic",
"utm_campaign" to "hubtraffic_pr0grammapp")
private val reHubTraffic = "(?:pornhub|redtube|tube8|youporn|xtub... | mit | Kotlin |
955706cb5b25e228a45c5754461bad7ce53e8ec0 | add a linked list implementation | norswap/violin,norswap/violin | src/norswap/violin/Link.kt | src/norswap/violin/Link.kt | package norswap.violin
import norswap.violin.stream.PeekStream
import norswap.violin.stream.Streamable
import norswap.violin.utils.after
/**
* Simple immutable linked list data structure. Use null as nil.
*/
class Link<out T: Any> (val item: T, val next: Link<T>?): Streamable<T>, Cloneable
{
override fun stream(... | bsd-3-clause | Kotlin | |
2a686d773d25fb647f0c3eb5478424acdf24956a | remove random from bot | elpassion/el-abyrinth-android,elpassion/el-abyrinth-android,elpassion/el-abyrinth-android | bot/src/main/java/pl/elpassion/elabyrinth/bot/Bot.kt | bot/src/main/java/pl/elpassion/elabyrinth/bot/Bot.kt | package pl.elpassion.elabyrinth.bot
import pl.elpassion.elabyrinth.core.Cell
import pl.elpassion.elabyrinth.core.Direction
import pl.elpassion.elabyrinth.core.Game
import pl.elpassion.elabyrinth.core.LabyrinthSocket
object Bot {
val socket by lazy { LabyrinthSocket() }
var map: List<List<Cell>>? = null
... | package pl.elpassion.elabyrinth.bot
import pl.elpassion.elabyrinth.core.Cell
import pl.elpassion.elabyrinth.core.Direction
import pl.elpassion.elabyrinth.core.Game
import pl.elpassion.elabyrinth.core.LabyrinthSocket
import java.util.*
object Bot {
val random = Random()
val socket by lazy { LabyrinthSocket() ... | mit | Kotlin |
5e305d2fe7183bdbdaf87f51189d7063730626bc | Test constructor visibility | AoEiuV020/LearningKotlin,AoEiuV020/LearningKotlin | app/src/test/kotlin/aoeiuv020/ConstructorTest.kt | app/src/test/kotlin/aoeiuv020/ConstructorTest.kt | package aoeiuv020
import org.junit.Test
import kotlin.test.*
/**
* Created by AoEiuV020 on 2017/05/04.
*/
class ConstructorTest {
var mOrder = 0
@Test
fun constructorTest() {
mOrder = 0
//var a = A() // e: Cannot access '<init>': it is private in 'A'
var a = A("s")
assert... | mit | Kotlin | |
d5cd7ab63d782b22ad90247ab85fdf24ee186b16 | Use the misc executor (otherwise threads left hanging). | ethauvin/kobalt,ethauvin/kobalt,cbeust/kobalt,ethauvin/kobalt,ethauvin/kobalt,evanchooly/kobalt,cbeust/kobalt,cbeust/kobalt,evanchooly/kobalt,evanchooly/kobalt,evanchooly/kobalt | src/main/kotlin/com/beust/kobalt/BuildScript.kt | src/main/kotlin/com/beust/kobalt/BuildScript.kt | package com.beust.kobalt
import com.beust.kobalt.api.Kobalt
import com.beust.kobalt.api.Project
import com.beust.kobalt.api.annotation.Directive
import com.beust.kobalt.maven.DepFactory
import com.beust.kobalt.maven.IClasspathDependency
import com.beust.kobalt.misc.KobaltExecutors
import com.beust.kobalt.SystemPropert... | package com.beust.kobalt
import com.beust.kobalt.api.Kobalt
import com.beust.kobalt.api.Project
import com.beust.kobalt.api.annotation.Directive
import com.beust.kobalt.maven.DepFactory
import com.beust.kobalt.maven.IClasspathDependency
import com.beust.kobalt.misc.KobaltExecutors
import com.beust.kobalt.SystemPropert... | apache-2.0 | Kotlin |
09b5ed5313b8a207f6b68bfd00482183ff6453fc | Fix modality thing | DemonWav/MinecraftDev,DemonWav/MinecraftDevIntelliJ,DemonWav/IntelliJBukkitSupport,minecraft-dev/MinecraftDev,DemonWav/MinecraftDev,minecraft-dev/MinecraftDev,DemonWav/MinecraftDevIntelliJ,DemonWav/MinecraftDev,DemonWav/MinecraftDevIntelliJ,minecraft-dev/MinecraftDev | src/main/kotlin/com/demonwav/mcdev/util/Util.kt | src/main/kotlin/com/demonwav/mcdev/util/Util.kt | /*
* Minecraft Dev for IntelliJ
*
* https://minecraftdev.org
*
* Copyright (c) 2016 minecraft-dev
*
* MIT License
*/
@file:JvmName("UtilKt")
package com.demonwav.mcdev.util
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.application.ModalityState
import com.intellij.open... | /*
* Minecraft Dev for IntelliJ
*
* https://minecraftdev.org
*
* Copyright (c) 2016 minecraft-dev
*
* MIT License
*/
@file:JvmName("UtilKt")
package com.demonwav.mcdev.util
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.application.ModalityState
import com.intellij.open... | mit | Kotlin |
2193651a85870b5b48e7adaac823478a7b22d2fd | replace deprecated api call | thomasvolk/alkali | src/main/kotlin/net/t53k/alkali/ActorFactory.kt | src/main/kotlin/net/t53k/alkali/ActorFactory.kt | /*
* Copyright 2017 Thomas Volk
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Ver... | /*
* Copyright 2017 Thomas Volk
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Ver... | apache-2.0 | Kotlin |
56dd5f0cebd63a2819e8231c5d10e47173f297d6 | add ItemInfo class | hanks-zyh/MaterialDesign,hanks-zyh/MaterialDesign | app/src/main/java/com/hanks/coor/MainActivity.kt | app/src/main/java/com/hanks/coor/MainActivity.kt | package com.hanks.coor
import android.content.Intent
import android.graphics.Color
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.support.v7.widget.LinearLayoutManager
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
impo... | package com.hanks.coor
import android.content.Intent
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.support.v7.widget.LinearLayoutManager
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
impo... | apache-2.0 | Kotlin |
28387c685ef0c11f0141ad6a1dbe289601ab1522 | Add missing Koin definitions to TestApp | k9mail/k-9,cketti/k-9,cketti/k-9,k9mail/k-9,cketti/k-9,k9mail/k-9,cketti/k-9 | app/core/src/test/java/com/fsck/k9/TestApp.kt | app/core/src/test/java/com/fsck/k9/TestApp.kt | package com.fsck.k9
import android.app.Application
import com.fsck.k9.backend.BackendManager
import com.fsck.k9.controller.ControllerExtension
import com.fsck.k9.crypto.EncryptionExtractor
import com.fsck.k9.notification.NotificationActionCreator
import com.fsck.k9.notification.NotificationResourceProvider
import com.... | package com.fsck.k9
import android.app.Application
import com.fsck.k9.backend.BackendManager
import com.fsck.k9.crypto.EncryptionExtractor
import com.fsck.k9.preferences.InMemoryStoragePersister
import com.fsck.k9.preferences.StoragePersister
import com.fsck.k9.storage.storageModule
import com.nhaarman.mockitokotlin2.... | apache-2.0 | Kotlin |
4752510de75effc48601138082fd27140cc910a3 | Update library/src/main/java/com/github/javiersantos/piracychecker/enums/InstallerID.kt | javiersantos/PiracyChecker,javiersantos/PiracyChecker | library/src/main/java/com/github/javiersantos/piracychecker/enums/InstallerID.kt | library/src/main/java/com/github/javiersantos/piracychecker/enums/InstallerID.kt | package com.github.javiersantos.piracychecker.enums
import java.util.ArrayList
import java.util.Arrays
enum class InstallerID(private val text: String) {
GOOGLE_PLAY("com.android.vending|com.google.android.feedback"),
AMAZON_APP_STORE("com.amazon.venezia"),
GALAXY_APPS("com.sec.android.app.samsungapps"),
... | package com.github.javiersantos.piracychecker.enums
import java.util.ArrayList
import java.util.Arrays
enum class InstallerID(private val text: String) {
GOOGLE_PLAY("com.android.vending|com.google.android.feedback"),
AMAZON_APP_STORE("com.amazon.venezia"),
GALAXY_APPS("com.sec.android.app.samsungapps");
... | apache-2.0 | Kotlin |
78e3ec18b17f786ffbca828ac763d7aa655685af | add tests for the argThat(matcher: ArgumentMatcher<T>) function | nhaarman/mockito-kotlin,mockito/mockito-kotlin,mockito/mockito-kotlin,nhaarman/mockito-kotlin | tests/src/test/kotlin/test/VarArgMatcherTest.kt | tests/src/test/kotlin/test/VarArgMatcherTest.kt | package test
import com.nhaarman.expect.expect
import com.nhaarman.mockitokotlin2.argThat
import com.nhaarman.mockitokotlin2.mock
import com.nhaarman.mockitokotlin2.whenever
import org.junit.Test
import org.mockito.ArgumentMatcher
import org.mockito.internal.matchers.VarargMatcher
import org.mockito.invocation.Invocat... | mit | Kotlin | |
c08506d66e2352665cc0246d5309820a8f93ee7b | Tweak test config | axelrindle/SimpleCoins | src/test/kotlin/TestInit.kt | src/test/kotlin/TestInit.kt | import be.seeseemelk.mockbukkit.MockBukkit
import be.seeseemelk.mockbukkit.ServerMock
import de.axelrindle.simplecoins.SimpleCoins
import io.kotest.core.config.AbstractProjectConfig
import io.kotest.core.listeners.ProjectListener
import io.kotest.core.spec.AutoScan
import io.kotest.core.test.TestCaseOrder
@AutoScan
ob... | import be.seeseemelk.mockbukkit.MockBukkit
import be.seeseemelk.mockbukkit.ServerMock
import de.axelrindle.simplecoins.CoinManager
import de.axelrindle.simplecoins.SimpleCoins
import io.kotest.core.listeners.ProjectListener
import io.kotest.core.spec.AutoScan
@AutoScan
object TestInit : ProjectListener {
private ... | mit | Kotlin |
c6be04a274ab1655b1cee1a3dc6c6024900d03b6 | refactor #580 Add @VisibleForTesting. | toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Jitte,toastkidjp/Yobidashi_kt | article/src/main/java/jp/toastkid/article_viewer/article/data/ArticleInsertion.kt | article/src/main/java/jp/toastkid/article_viewer/article/data/ArticleInsertion.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 |
4c5852090147c35384fb281a8ddb820feb232398 | use an arraylist at RadioGroupDialog constructor | canou/Simple-Commons | commons/src/main/kotlin/com/simplemobiletools/commons/dialogs/RadioGroupDialog.kt | commons/src/main/kotlin/com/simplemobiletools/commons/dialogs/RadioGroupDialog.kt | package com.simplemobiletools.commons.dialogs
import android.app.Activity
import android.support.v7.app.AlertDialog
import android.view.ViewGroup
import android.widget.RadioButton
import android.widget.RadioGroup
import com.simplemobiletools.commons.R
import com.simplemobiletools.commons.extensions.setupDialogStuff
im... | package com.simplemobiletools.commons.dialogs
import android.app.Activity
import android.support.v7.app.AlertDialog
import android.view.ViewGroup
import android.widget.RadioButton
import android.widget.RadioGroup
import com.simplemobiletools.commons.R
import com.simplemobiletools.commons.extensions.setupDialogStuff
im... | apache-2.0 | Kotlin |
dea358cb410b20a1307b81c532047fe11ed3d64c | Bump Pub/Sub protos version. | SpineEventEngine/gae-java,SpineEventEngine/gae-java | pubsub/build.gradle.kts | pubsub/build.gradle.kts | /*
* Copyright 2020, TeamDev. All rights reserved.
*
* Redistribution and use in source and/or binary forms, with or without
* modification, must retain the above copyright notice and the following
* disclaimer.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR... | /*
* Copyright 2020, TeamDev. All rights reserved.
*
* Redistribution and use in source and/or binary forms, with or without
* modification, must retain the above copyright notice and the following
* disclaimer.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR... | apache-2.0 | Kotlin |
057a0665f70a39ebb13afd6adf50204f72628a38 | Add empty kotlin expression builder | bibaev/stream-debugger-plugin,bibaev/stream-debugger-plugin | src/main/java/com/intellij/debugger/streams/trace/impl/KotlinExpressionBuilder.kt | src/main/java/com/intellij/debugger/streams/trace/impl/KotlinExpressionBuilder.kt | /*
* Copyright 2000-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | apache-2.0 | Kotlin | |
a030369bf89a8ee2225632dc9ea05240edd8eaea | Create NMSManager v1.10_R1 | Homes-MinecraftServerMod/Homes,Homes-MinecraftServerMod/Homes | src/main/kotlin/com/masahirosaito/spigot/homes/nms/v1_10_R1/NMSManager_v1_10_R1.kt | src/main/kotlin/com/masahirosaito/spigot/homes/nms/v1_10_R1/NMSManager_v1_10_R1.kt | package com.masahirosaito.spigot.homes.nms.v1_10_R1
import com.masahirosaito.spigot.homes.nms.NMSManager
import org.bukkit.Location
class NMSManager_v1_10_R1 : NMSManager {
override fun setUp() {
}
override fun spawnNMSArmorStand(loc: Location, name: String) {
}
}
| apache-2.0 | Kotlin | |
7525fdd22c8b791f3117279b347360a01cc03f2b | Use view binding in TabCountsView.kt (#2070) | dbrant/apps-android-wikipedia,wikimedia/apps-android-wikipedia,wikimedia/apps-android-wikipedia,wikimedia/apps-android-wikipedia,dbrant/apps-android-wikipedia,dbrant/apps-android-wikipedia,dbrant/apps-android-wikipedia,dbrant/apps-android-wikipedia,wikimedia/apps-android-wikipedia | app/src/main/java/org/wikipedia/views/TabCountsView.kt | app/src/main/java/org/wikipedia/views/TabCountsView.kt | package org.wikipedia.views
import android.content.Context
import android.content.res.ColorStateList
import android.util.AttributeSet
import android.util.TypedValue
import android.view.LayoutInflater
import android.view.ViewGroup
import android.view.animation.AnimationUtils
import android.widget.FrameLayout
import and... | package org.wikipedia.views
import android.content.Context
import android.content.res.ColorStateList
import android.util.AttributeSet
import android.util.TypedValue
import android.view.View
import android.view.ViewGroup
import android.view.animation.AnimationUtils
import android.widget.FrameLayout
import androidx.anno... | apache-2.0 | Kotlin |
e414f76790c3abe6f9e99096b7cc018df9c7fb71 | Bump version | SpineEventEngine/base,SpineEventEngine/base,SpineEventEngine/base | version.gradle.kts | version.gradle.kts | /*
* Copyright 2021, TeamDev. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Redistribution and use in source... | /*
* Copyright 2021, TeamDev. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Redistribution and use in source... | apache-2.0 | Kotlin |
8a1eaf2ab47dc2a6355b83eeaba527ae7b4cfa54 | Bump version -> `2.0.0-SNAPSHOT.102` | 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 |
3736a1110a96e03d2fc7a629630f8b1f01ddfea6 | Use "sync" as the default value for the IQ handler. (#1403) | jitsi/jitsi-videobridge,jitsi/jitsi-videobridge,jitsi/jitsi-videobridge,jitsi/jitsi-videobridge,gpolitis/jitsi-videobridge,jitsi/jitsi-videobridge,gpolitis/jitsi-videobridge,jitsi/jitsi-videobridge,jitsi/jitsi-videobridge,gpolitis/jitsi-videobridge | jvb/src/main/kotlin/org/jitsi/videobridge/xmpp/config/XmppClientConnectionConfig.kt | jvb/src/main/kotlin/org/jitsi/videobridge/xmpp/config/XmppClientConnectionConfig.kt | /*
* Copyright @ 2018 - present 8x8, 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 ... | /*
* Copyright @ 2018 - present 8x8, 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 ... | apache-2.0 | Kotlin |
ea7402f0aaa0a1326d32c4e350d5cd361281a31f | Update help and announce new feature | Sulion/marco-paolo | src/main/kotlin/org/logout/notifications/telegram/bot/processor/staticProcessors.kt | src/main/kotlin/org/logout/notifications/telegram/bot/processor/staticProcessors.kt | package org.logout.notifications.telegram.bot.processor
class HelpProcessor : Processor {
override fun onMessage(arguments: Array<String>?) =
listOf("/staima, /whatsup and a couple of secret aliases — the closest next event in near future\n" +
"/staima today — as much of today's sc... | package org.logout.notifications.telegram.bot.processor
class HelpProcessor : Processor {
override fun onMessage(arguments: Array<String>?) =
listOf("/staima, /whatsup and a couple of secret aliases — the closest next event in near future\n" +
"/staima today — as much of today's sc... | apache-2.0 | Kotlin |
a69a3f0c9836b0a92808702f96cf264ec5a6efb3 | make functions a little more interesting, would like these to be generators | tonyklawrence/kotlens | src/laws/kotlin/kotlens/laws/IsoLaws.kt | src/laws/kotlin/kotlens/laws/IsoLaws.kt | package kotlens.laws
import io.kotlintest.properties.Gen
import io.kotlintest.specs.StringSpec
import kotlens.Iso
class IsoLaws : StringSpec() { init {
val iso = Iso(String::toList, { a -> a.joinToString("") })
"Round trip one way" {
forAll { s: String ->
(iso compose iso.reverse()).get(s... | package kotlens.laws
import io.kotlintest.properties.Gen
import io.kotlintest.specs.StringSpec
import kotlens.Iso
class IsoLaws : StringSpec() { init {
val iso = Iso(String::toList, { a -> a.joinToString("") })
"Round trip one way" {
forAll { s: String ->
(iso compose iso.reverse()).get(s... | mit | Kotlin |
083d9dee8baaf31a65189ef4194fb6011569c0e6 | Solve problem 1718 | fredyw/leetcode,fredyw/leetcode,fredyw/leetcode,fredyw/leetcode | src/main/kotlin/leetcode/Problem1718.kt | src/main/kotlin/leetcode/Problem1718.kt | package leetcode
/**
* https://leetcode.com/problems/construct-the-lexicographically-largest-valid-sequence/
*/
class Problem1718 {
fun constructDistancedSequence(n: Int): IntArray {
return constructDistancedSequence(n, 0, HashSet(), IntArray(n * 2 - 1)).array
}
private class Answer(val found: B... | package leetcode
/**
* https://leetcode.com/problems/construct-the-lexicographically-largest-valid-sequence/
*/
class Problem1718 {
fun constructDistancedSequence(n: Int): IntArray {
TODO()
}
}
fun main() {
val prob = Problem1718()
println(prob.constructDistancedSequence(3)) // [3,1,2,3,2]
... | mit | Kotlin |
c57772874f03cbe23f91bbcabd0f9553a4c07c25 | Solve problem 2012 | fredyw/leetcode,fredyw/leetcode,fredyw/leetcode,fredyw/leetcode | src/main/kotlin/leetcode/Problem2012.kt | src/main/kotlin/leetcode/Problem2012.kt | package leetcode
import kotlin.math.max
import kotlin.math.min
/**
* https://leetcode.com/problems/sum-of-beauty-in-the-array/
*/
class Problem2012 {
fun sumOfBeauties(nums: IntArray): Int {
val left = IntArray(nums.size)
for ((i, n) in nums.withIndex()) {
left[i] = if (i == 0) n els... | package leetcode
/**
* https://leetcode.com/problems/sum-of-beauty-in-the-array/
*/
class Problem2012 {
fun sumOfBeauties(nums: IntArray): Int {
TODO()
}
}
fun main() {
val prob = Problem2012()
println(prob.sumOfBeauties(intArrayOf(1,2,3))) // 2
println(prob.sumOfBeauties(intArrayOf(2,4,... | mit | Kotlin |
887c860db07c3d9c30d34c219322ca26b3be51cf | add late init test | uchuhimo/kotlin-playground,uchuhimo/kotlin-playground | lang/src/main/kotlin/com/uchuhimo/lateinit/LateInit.kt | lang/src/main/kotlin/com/uchuhimo/lateinit/LateInit.kt | package com.uchuhimo.lateinit
interface Serializer {
fun serialize(input: Int): Boolean
}
class SerializerImpl : Serializer {
override fun serialize(input: Int): Boolean {
println(input)
return true
}
}
class SerializerThunk(
private val init: () -> Serializer,
private val... | apache-2.0 | Kotlin | |
8b4d8a27cb7bc08122cb7d1b920c9b5de1273d29 | Fix formatting | yschimke/oksocial-output | src/main/kotlin/com/baulsupp/oksocial/output/util.kt | src/main/kotlin/com/baulsupp/oksocial/output/util.kt | package com.baulsupp.oksocial.output
import com.baulsupp.oksocial.output.process.exec
import java.io.Console
import java.io.IOException
import java.util.Properties
import javax.activation.MimeType
import javax.activation.MimeTypeParseException
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.GlobalScope... | package com.baulsupp.oksocial.output
import com.baulsupp.oksocial.output.process.exec
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.async
import okio.BufferedSource
import okio.Sink
import okio.sink
import org.zeroturnaround.exec.stream.slf4j.Slf4jOutputStream
im... | apache-2.0 | Kotlin |
9757747764ce2324762b0875053dfe7a96412ab4 | refactor #511 Rename test function. | toastkidjp/Yobidashi_kt,toastkidjp/Jitte,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 |
0dab473c668253c1169c88108e1b0da8d10ec304 | Add nullable test case. | kubode/RxProperty,kubode/RxProperty,kubode/RxProperty | rxproperty-kotlin/src/test/kotlin/com/github/kubode/rxproperty/EmptyVariableKtTest.kt | rxproperty-kotlin/src/test/kotlin/com/github/kubode/rxproperty/EmptyVariableKtTest.kt | package com.github.kubode.rxproperty
import org.junit.Test
import kotlin.test.assertNull
class EmptyVariableKtTest {
@Test(expected = NullPointerException::class) fun npeWhenAccessToDefaultValue() {
val value = emptyVariable<String>().value
value.length
}
@Test fun defaultValueIsNull() {... | package com.github.kubode.rxproperty
import org.junit.Test
class EmptyVariableKtTest {
@Test(expected = NullPointerException::class)
fun npeOnGetValueWhenNoValueEmitted() {
val value = emptyVariable<String>().value
value.length
}
}
| apache-2.0 | Kotlin |
afb453eaaaf63530c9359df993161e1c46017600 | Fix types in Instant methods, for Java 8 compatibility. (#394) | jitsi/jitsi-videobridge,jitsi/jitsi-videobridge,jitsi/jitsi-videobridge,jitsi/jitsi-videobridge,jitsi/jitsi-videobridge,jitsi/jitsi-videobridge,jitsi/jitsi-videobridge | src/main/kotlin/org/jitsi/nlj/util/ClockUtils.kt | src/main/kotlin/org/jitsi/nlj/util/ClockUtils.kt | /*
* Copyright @ 2018 - present 8x8, 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 ... | /*
* Copyright @ 2018 - present 8x8, 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 ... | apache-2.0 | Kotlin |
a38f36dc6e3c433700671b9887d647d31fba3ba2 | Use playground backend v6. (#4493) | stripe/stripe-android,stripe/stripe-android,stripe/stripe-android,stripe/stripe-android,stripe/stripe-android | paymentsheet-example/src/main/java/com/stripe/android/paymentsheet/example/Settings.kt | paymentsheet-example/src/main/java/com/stripe/android/paymentsheet/example/Settings.kt | package com.stripe.android.paymentsheet.example
import android.content.Context
import android.content.pm.PackageManager
/**
* Class that provides global app settings.
*/
class Settings(context: Context) {
private val appContext = context.applicationContext
private val backendMetadata = getMetadata(METADATA_... | package com.stripe.android.paymentsheet.example
import android.content.Context
import android.content.pm.PackageManager
/**
* Class that provides global app settings.
*/
class Settings(context: Context) {
private val appContext = context.applicationContext
private val backendMetadata = getMetadata(METADATA_... | mit | Kotlin |
ecaeca3ef1f74628a7062dfc9e926d9e8f090076 | use proper clip for round inlay hints | 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/codeInsight/hints/presentation/RoundPresentation.kt | platform/lang-impl/src/com/intellij/codeInsight/hints/presentation/RoundPresentation.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.codeInsight.hints.presentation
import com.intellij.openapi.editor.markup.TextAttributes
import java.awt.Graphics2D
import java.awt.geom.RoundRectangle2D
/**... | // 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.codeInsight.hints.presentation
import com.intellij.openapi.editor.markup.TextAttributes
import java.awt.Graphics2D
import java.awt.geom.RoundRectangle2D
/**... | apache-2.0 | Kotlin |
67824ae0d27cf73d8398207eaec3526d338b6852 | Add asSequence() function for Android sparse arrays (#77) | Ribesg/anko,mr-max/anko,fboldog/anko,mr-max/anko,JetBrains/anko,is00hcw/anko,JetBrains/anko,Kotlin/anko,deva666/anko,Ribesg/anko,Kotlin/anko,is00hcw/anko,Ribesg/anko,fboldog/anko,is00hcw/anko,colriot/anko,deva666/anko,JetBrains/anko,fboldog/anko,deva666/anko,colriot/anko,colriot/anko,Kotlin/anko,mr-max/anko | dsl/static/src/common/Arrays.kt | dsl/static/src/common/Arrays.kt | /*
* Copyright 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 agreed to... | /*
* Copyright 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 agreed to... | apache-2.0 | Kotlin |
8385344b645612341f71497443a557c77751b89e | fix typo | ftomassetti/kolasu,ftomassetti/kolasu | playground/src/main/kotlin/com/strumenta/kolasu/playground/PlaygroundExampleGenerator.kt | playground/src/main/kotlin/com/strumenta/kolasu/playground/PlaygroundExampleGenerator.kt | package com.strumenta.kolasu.playground
import com.google.gson.JsonObject
import com.strumenta.kolasu.emf.EMFEnabledParser
import com.strumenta.kolasu.emf.createResource
import com.strumenta.kolasu.emf.saveAsJsonObject
import com.strumenta.kolasu.emf.toEObject
import com.strumenta.kolasu.parsing.ParsingResult
import c... | package com.strumenta.kolasu.playground
import com.google.gson.JsonObject
import com.strumenta.kolasu.emf.EMFEnabledParser
import com.strumenta.kolasu.emf.createResource
import com.strumenta.kolasu.emf.saveAsJsonObject
import com.strumenta.kolasu.emf.toEObject
import com.strumenta.kolasu.parsing.ParsingResult
import c... | apache-2.0 | Kotlin |
68a513a2a480fba7f5decff21414bedfed2c7d2e | Add a unit test for injection of lambdas | MichaelRocks/lightsaber,MichaelRocks/lightsaber | samples/injection-test/src/test/kotlin/io/michaelrocks/lightsaber/LambdaInjectionTest.kt | samples/injection-test/src/test/kotlin/io/michaelrocks/lightsaber/LambdaInjectionTest.kt | /*
* Copyright 2016 Michael Rozumyanskiy
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | apache-2.0 | Kotlin | |
9a8394d2ea54913b2c4c63615dc7a638d113ef97 | Update RCS.kt | Jire/Charlatano | src/main/kotlin/com/charlatano/scripts/RCS.kt | src/main/kotlin/com/charlatano/scripts/RCS.kt | /*
* Charlatano: Free and open-source (FOSS) cheat for CS:GO/CS:CO
* Copyright (C) 2017 - Thomas G. P. Nappo, Jonathan Beaudoin
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, eit... | /*
* Charlatano: Free and open-source (FOSS) cheat for CS:GO/CS:CO
* Copyright (C) 2017 - Thomas G. P. Nappo, Jonathan Beaudoin
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, eit... | agpl-3.0 | Kotlin |
fc7728faec7d9232dbdad47f971421c1a355e9db | Bump s3 from 2.17.223 to 2.17.281 | komamitsu/fluency,komamitsu/fluency,komamitsu/fluency,komamitsu/fluency | fluency-aws-s3/build.gradle.kts | fluency-aws-s3/build.gradle.kts | dependencies {
implementation(projects.fluencyCore)
implementation("software.amazon.awssdk:s3:2.17.281")
}
| dependencies {
implementation(projects.fluencyCore)
implementation("software.amazon.awssdk:s3:2.17.223")
}
| apache-2.0 | Kotlin |
14d953c3d267ff47705b75ad3fb51562b1b7e10a | Implement state default value in store dsl | Reduks/Reduks | src/main/kotlin/com/reduks/reduks/StoreDSL.kt | src/main/kotlin/com/reduks/reduks/StoreDSL.kt | package com.reduks.reduks
import com.reduks.reduks.error.ReduksException
data class StoreDSL<State> (
var initialState: State?,
var initialReducer: (State, Action<State>) -> State,
var enhancer: Enhancer<State>?
) {
companion object Provider {
inline fun <reified State> get() : Sto... | package com.reduks.reduks
data class StoreDSL<State> (
var initialState: State? = null,
var initialReducer: (State, Action<State>) -> State = { state, action -> action.action(state) },
var enhancer: Enhancer<State>? = null
)
fun <State> Any.reduksStore(dsl: StoreDSL<State>.() -> Unit) : Store<... | mit | Kotlin |
df75fa25d244080c6d4a9e40209427c0731f0bbb | Fix gradle run for demo | CarrotCodes/Pellet,CarrotCodes/Pellet | demo/build.gradle.kts | demo/build.gradle.kts | plugins {
application
id("com.github.johnrengelman.shadow") version "7.1.0"
kotlin("plugin.serialization") version "1.6.10"
}
group = "dev.pellet"
repositories {
mavenCentral()
}
dependencies {
implementation("dev.pellet:pellet-server:0.0.1")
implementation("dev.pellet:pellet-logging:0.0.1")
... | plugins {
application
id("com.github.johnrengelman.shadow") version "7.1.0"
kotlin("plugin.serialization") version "1.6.10"
}
group = "dev.pellet"
repositories {
mavenCentral()
}
dependencies {
implementation("dev.pellet:pellet-server:0.0.1")
implementation("dev.pellet:pellet-logging:0.0.1")
... | apache-2.0 | Kotlin |
5a77f365ac08bd7739f64c829969b1d664e53b06 | Use latest plugin version on itself. | JLLeitschuh/ktlint-gradle,JLLeitschuh/ktlint-gradle | plugin/buildSrc/src/main/kotlin/PluginDependencies.kt | plugin/buildSrc/src/main/kotlin/PluginDependencies.kt | object PluginVersions {
val kotlin = "1.3.31"
val ktlintPlugin = "7.4.0"
val gradlePublishPlugin = "0.10.1"
val androidPlugin = "3.3.0"
val semver = "1.1.1"
val gradleWrapper = "4.10.2"
val junit5 = "5.4.0"
val assertJ = "3.11.1"
}
| object PluginVersions {
val kotlin = "1.3.31"
val ktlintPlugin = "7.2.0"
val gradlePublishPlugin = "0.10.1"
val androidPlugin = "3.3.0"
val semver = "1.1.1"
val gradleWrapper = "4.10.2"
val junit5 = "5.4.0"
val assertJ = "3.11.1"
}
| mit | Kotlin |
b886042d0a8e5c7587c6d7e13732c9342873260f | Bump com.gradle.enterprise in /__tests__/samples/kotlin-dsl | eskatos/gradle-command-action,eskatos/gradle-command-action,eskatos/gradle-command-action | __tests__/samples/kotlin-dsl/settings.gradle.kts | __tests__/samples/kotlin-dsl/settings.gradle.kts | plugins {
id("com.gradle.enterprise") version "3.9"
}
gradleEnterprise {
buildScan {
termsOfServiceUrl = "https://gradle.com/terms-of-service"
termsOfServiceAgree = "yes"
publishAlways()
isUploadInBackground = false
}
}
rootProject.name = "kotlin-dsl"
| plugins {
id("com.gradle.enterprise") version "3.7"
}
gradleEnterprise {
buildScan {
termsOfServiceUrl = "https://gradle.com/terms-of-service"
termsOfServiceAgree = "yes"
publishAlways()
isUploadInBackground = false
}
}
rootProject.name = "kotlin-dsl"
| mit | Kotlin |
15d3f5a86f7bddd8380c69282ae71a4286f34442 | Add missing newline | Kotlin/kotlinx-cli | core/commonTest/src/DataSourceEnum.kt | core/commonTest/src/DataSourceEnum.kt | package kotlinx.cli
enum class DataSourceEnum {
LOCAL,
STAGING,
PRODUCTION;
override fun toString(): String = name.toLowerCase()
}
| package kotlinx.cli
enum class DataSourceEnum {
LOCAL,
STAGING,
PRODUCTION;
override fun toString(): String = name.toLowerCase()
} | apache-2.0 | Kotlin |
14d3e1f4efb51f82dc58cdc74025fc6ade28a9c1 | Remove duplicated test task setup for gradle plugin (#2506) | arturbosch/detekt,rock3r/detekt,arturbosch/detekt,arturbosch/detekt,rock3r/detekt,rock3r/detekt | detekt-gradle-plugin/build.gradle.kts | detekt-gradle-plugin/build.gradle.kts | import org.gradle.api.tasks.testing.logging.TestExceptionFormat
import org.gradle.api.tasks.testing.logging.TestLogEvent
plugins {
`java-gradle-plugin`
id("com.gradle.plugin-publish") version "0.10.1"
}
dependencies {
implementation(kotlin("gradle-plugin"))
implementation(kotlin("gradle-plugin-api"))
... | import org.gradle.api.tasks.testing.logging.TestExceptionFormat
import org.gradle.api.tasks.testing.logging.TestLogEvent
plugins {
`java-gradle-plugin`
id("com.gradle.plugin-publish") version "0.10.1"
}
dependencies {
implementation(kotlin("gradle-plugin"))
implementation(kotlin("gradle-plugin-api"))
... | apache-2.0 | Kotlin |
61de26ebec4caa3033d1301f5abd2c07086f2e6e | Use string variable references when building the key-value vars strings. | rhdunn/marklogic-intellij-plugin | src/main/java/uk/co/reecedunn/intellij/plugin/marklogic/query/vars/KeyValueVarsBuilder.kt | src/main/java/uk/co/reecedunn/intellij/plugin/marklogic/query/vars/KeyValueVarsBuilder.kt | /*
* Copyright (C) 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 agreed t... | /*
* Copyright (C) 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 agreed t... | apache-2.0 | Kotlin |
01023124807f4e211dbab6e3921448c09ed1535c | add 2 room lines | wiltonlazary/kotlin-native,jiaminglu/kotlin-native,jiaminglu/kotlin-native,jiaminglu/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,jiaminglu/kotlin-native,JuliusKunze/kotlin-native,JuliusKunze/kotlin-native,jiaminglu/kotlin-native,olonho/carkot,JetBrains/kotlin-native,JuliusKunze/kotlin-native,JuliusKun... | car_srv/kotlinSrv/src/room/Room.kt | car_srv/kotlinSrv/src/room/Room.kt | package room
import geometry.Line
object Room {
/*
_________
| |
| |
|________|
*/
// val upLine = Line(0.0, 1.0, -300.0)
// val leftLine = Line(1.0, 0.0, 150.0)
// val bottomLine = Line(0.0, 1.0, 20.0)
// val rightLine = Line(1.0, 0.0, -200.0)
//
// val walls... | package room
import geometry.Line
object Room {
val upLine = Line(0.0, 1.0, -300.0)
val leftLine = Line(1.0, 0.0, 150.0)
val bottomLine = Line(0.0, 1.0, 20.0)
val rightLine = Line(1.0, 0.0, -200.0)
val walls = listOf<Wall>(Wall(upLine, 200, -150, 300, 300),
Wall(leftLine, -150, -150,... | apache-2.0 | Kotlin |
41c7c545a4fa5205abd02d9382627d1a73d8e2c7 | Add distance layer | KotlinNLP/SimpleDNN | src/main/kotlin/com/kotlinnlp/simplednn/core/layers/models/merge/distance/DistanceLayer.kt | src/main/kotlin/com/kotlinnlp/simplednn/core/layers/models/merge/distance/DistanceLayer.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 | |
5a2651d250a081835e470ec4b4d1d4d83c1c76b3 | Update AndroidViewModelFactory.kt | TonnyTao/Acornote,TonnyTao/Acornote,TonnyTao/Acornote,TonnyTao/Acornote | Acornote_Kotlin/app/src/main/java/tonnysunm/com/acornote/library/AndroidViewModelFactory.kt | Acornote_Kotlin/app/src/main/java/tonnysunm/com/acornote/library/AndroidViewModelFactory.kt | package tonnysunm.com.acornote.library
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import kotlin.reflect.full.primaryConstructor
class AndroidViewModelFactory(private vararg val args: Any) :
ViewModelProvider.NewInstanceFactory() {
override fun <T : ViewModel> create(model... | package tonnysunm.com.acornote.library
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import kotlin.reflect.full.primaryConstructor
class AndroidViewModelFactory(private vararg val args: Any) :
ViewModelProvider.NewInstanceFactory() {
override fun <T : ViewModel> create(model... | apache-2.0 | Kotlin |
554c3426df61eb9842fd2eaca846fc256ec27865 | Remove unused dagger processor use in service-registry | hzsweers/CatchUp,hzsweers/CatchUp,hzsweers/CatchUp,hzsweers/CatchUp | service-registry/service-registry/build.gradle.kts | service-registry/service-registry/build.gradle.kts | /*
* Copyright (c) 2018 Zac Sweers
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | /*
* Copyright (c) 2018 Zac Sweers
*
* 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 |
aadeb860804059bdba6ccb79448797cb700fef6b | Add UPDATES_USER_ID constant | actions-on-google/actions-on-google-java | src/main/java/com/google/actions/api/Constants.kt | src/main/java/com/google/actions/api/Constants.kt | /*
* Copyright 2018 Google Inc. 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
*
* Unless required by appli... | /*
* Copyright 2018 Google Inc. 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
*
* Unless required by appli... | apache-2.0 | Kotlin |
d9bfe240b628efe2ce26582ee06c7750276c0b2f | return empty maps for params (fixes #260) | tipsy/javalin,tipsy/javalin,tipsy/javalin,tipsy/javalin | src/main/java/io/javalin/core/util/ContextUtil.kt | src/main/java/io/javalin/core/util/ContextUtil.kt | /*
* Javalin - https://javalin.io
* Copyright 2017 David Åse
* Licensed under Apache 2.0: https://github.com/tipsy/javalin/blob/master/LICENSE
*/
package io.javalin.core.util
import io.javalin.BasicAuthCredentials
import io.javalin.Context
import io.javalin.core.HandlerEntry
import java.net.URLDecoder
import java... | /*
* Javalin - https://javalin.io
* Copyright 2017 David Åse
* Licensed under Apache 2.0: https://github.com/tipsy/javalin/blob/master/LICENSE
*/
package io.javalin.core.util
import io.javalin.BasicAuthCredentials
import io.javalin.Context
import io.javalin.core.HandlerEntry
import java.net.URLDecoder
import java... | apache-2.0 | Kotlin |
34d814bc1fbc7aa8fe6a2ebd7a16df5e1c94bba4 | Stabilize derive/copy, fill parent | eugeis/ee-email | ee-email/src-gen/main/kotlin/ee/email/SharedApiBase.kt | ee-email/src-gen/main/kotlin/ee/email/SharedApiBase.kt | package ee.email
import java.nio.file.Path
import java.nio.file.Paths
open class EmailAddress {
val address: String
constructor(address: String = "") {
this.address = address
}
companion object {
val EMPTY = EmailAddress()
}
}
open class EmailDomain {
val name: String
... | package ee.email
import java.nio.file.Path
import java.nio.file.Paths
open class EmailAddress {
val address: String
constructor(address: String = "") {
this.address = address
}
companion object {
val EMPTY = EmailAddress()
}
}
open class Forwarding {
val from: EmailAddr... | apache-2.0 | Kotlin |
ecab59b18b330dcfd797f6837b0e312464e94b67 | Rename DAC tag for state holder | android/performance-samples,android/performance-samples,android/performance-samples | JankStatsSample/app/src/main/java/com/example/jankstats/compose/rememberMetricsStateHolder.kt | JankStatsSample/app/src/main/java/com/example/jankstats/compose/rememberMetricsStateHolder.kt | package com.example.jankstats.compose
import androidx.compose.runtime.Composable
import androidx.compose.runtime.remember
import androidx.compose.ui.platform.LocalView
import androidx.metrics.performance.PerformanceMetricsState
// [START metrics_state_holder]
/**
* Retrieve MetricsStateHolder from compose and rememb... | package com.example.jankstats.compose
import androidx.compose.runtime.Composable
import androidx.compose.runtime.remember
import androidx.compose.ui.platform.LocalView
import androidx.metrics.performance.PerformanceMetricsState
// [START rememberMetricsStateHolder]
/**
* Retrieve MetricsStateHolder from compose and ... | apache-2.0 | Kotlin |
832aac9a90af2b4edafe68bb55c79ff5a3698f23 | refactor #580 Fix incorrect class type. | toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Jitte | article/src/main/java/jp/toastkid/article_viewer/article/list/ArticleListFragmentViewModel.kt | article/src/main/java/jp/toastkid/article_viewer/article/list/ArticleListFragmentViewModel.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 |
0e0e03ec717bd022a302369f9779a83e6b547e26 | Update FunctionNaming regex to work for sentences | rock3r/detekt,arturbosch/detekt,Mauin/detekt,MyDogTom/detekt,arturbosch/detekt,rock3r/detekt,rock3r/detekt,Mauin/detekt,Mauin/detekt,Mauin/detekt,arturbosch/detekt | detekt-rules/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/style/naming/FunctionNaming.kt | detekt-rules/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/style/naming/FunctionNaming.kt | package io.gitlab.arturbosch.detekt.rules.style.naming
import io.gitlab.arturbosch.detekt.api.CodeSmell
import io.gitlab.arturbosch.detekt.api.Config
import io.gitlab.arturbosch.detekt.api.Debt
import io.gitlab.arturbosch.detekt.api.Entity
import io.gitlab.arturbosch.detekt.api.Issue
import io.gitlab.arturbosch.detekt... | package io.gitlab.arturbosch.detekt.rules.style.naming
import io.gitlab.arturbosch.detekt.api.CodeSmell
import io.gitlab.arturbosch.detekt.api.Config
import io.gitlab.arturbosch.detekt.api.Debt
import io.gitlab.arturbosch.detekt.api.Entity
import io.gitlab.arturbosch.detekt.api.Issue
import io.gitlab.arturbosch.detekt... | apache-2.0 | Kotlin |
9f0c271332b694fef331c59a466dd7e261168587 | Simplify plugin ref. | SpineEventEngine/base,SpineEventEngine/base,SpineEventEngine/base | testlib/build.gradle.kts | testlib/build.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 |
cd465144cacb31cad3e9175aa5c99501fda6dce8 | Rename endpoint to apiUri and default it to AMS portal | fod-dev/bsi-token-parser | src/main/kotlin/com/fortify/fod/parser/BsiToken.kt | src/main/kotlin/com/fortify/fod/parser/BsiToken.kt | package com.fortify.fod.parser
class BsiToken {
var tenantId: Int = 0
var tenantCode: String? = null
var projectVersionId: Int = 0
var payloadType: String? = null
var assessmentTypeId: Int = 0
var technologyStack: String? = null
var languageLevel = ""
var apiUri: String = "https://api.a... | package com.fortify.fod.parser
class BsiToken {
var tenantId: Int = 0
var tenantCode: String? = null
var projectVersionId: Int = 0
var payloadType: String? = null
var assessmentTypeId: Int = 0
var technologyStack: String? = null
var languageLevel = ""
var endpoint: String? = null
}
| apache-2.0 | Kotlin |
9a69725c113559f4551fd348d5b0fa385e53d481 | Create an XpmFunctionReference data class implementation. | rhdunn/xquery-intellij-plugin,rhdunn/xquery-intellij-plugin | src/lang-xpm/main/uk/co/reecedunn/intellij/plugin/xpm/function/impl/XpmFunctionReferenceImpl.kt | src/lang-xpm/main/uk/co/reecedunn/intellij/plugin/xpm/function/impl/XpmFunctionReferenceImpl.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... | apache-2.0 | Kotlin | |
37b5f9807a7f41da61338c5c2dee200464f6d0c1 | Add dependency on the `tools-api`. | SpineEventEngine/base,SpineEventEngine/base,SpineEventEngine/base | tools/smoke-tests/test-factories/build.gradle.kts | tools/smoke-tests/test-factories/build.gradle.kts | /*
* Copyright 2020, TeamDev. All rights reserved.
*
* Redistribution and use in source and/or binary forms, with or without
* modification, must retain the above copyright notice and the following
* disclaimer.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR... | /*
* Copyright 2020, TeamDev. All rights reserved.
*
* Redistribution and use in source and/or binary forms, with or without
* modification, must retain the above copyright notice and the following
* disclaimer.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR... | apache-2.0 | Kotlin |
078b11bc260ca916b3cfb7f4ab61133739cc58bc | Add Gradle Enterprise key to Utils project | blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpira... | .teamcity/src/main/kotlin/util/UtilProject.kt | .teamcity/src/main/kotlin/util/UtilProject.kt | package util
import common.Os
import jetbrains.buildServer.configs.kotlin.v2019_2.Project
object UtilProject : Project({
id("Util")
name = "Util"
buildType(RerunFlakyTest(Os.LINUX))
buildType(RerunFlakyTest(Os.WINDOWS))
buildType(RerunFlakyTest(Os.MACOS))
buildType(WarmupEc2Agent)
params... | package util
import common.Os
import jetbrains.buildServer.configs.kotlin.v2019_2.Project
object UtilProject : Project({
id("Util")
name = "Util"
buildType(RerunFlakyTest(Os.LINUX))
buildType(RerunFlakyTest(Os.WINDOWS))
buildType(RerunFlakyTest(Os.MACOS))
buildType(WarmupEc2Agent)
})
| apache-2.0 | Kotlin |
058a40bfab846899dc6d5f1b3503bcb5d0afe845 | Add PreviewPreferenceTest | Doctoror/ParticleConstellationsLiveWallpaper,Doctoror/ParticleConstellationsLiveWallpaper | app/src/test/java/com/doctoror/particleswallpaper/presentation/preference/PreviewPreferenceTest.kt | app/src/test/java/com/doctoror/particleswallpaper/presentation/preference/PreviewPreferenceTest.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 | |
3ae77ed3019f5e32f507a297d633bba2b4c85f76 | Allow registration of custom Show typeclasses #2021 (#2023) | sksamuel/ktest | kotest-assertions/kotest-assertions-shared/src/commonMain/kotlin/io/kotest/assertions/show/Show.kt | kotest-assertions/kotest-assertions-shared/src/commonMain/kotlin/io/kotest/assertions/show/Show.kt | @file:Suppress("UNCHECKED_CAST")
package io.kotest.assertions.show
import kotlin.reflect.KClass
/**
* The [Show] typeclass abstracts the ability to obtain a String representation of any object.
* It is used as a replacement for Java's Object#toString so that custom representations of
* the object can be printed.
... | @file:Suppress("UNCHECKED_CAST")
package io.kotest.assertions.show
import kotlin.reflect.KClass
/**
* The [Show] typeclass abstracts the ability to obtain a String representation of any object.
* It is used as a replacement for Java's Object#toString so that custom representations of
* the object can be printed.
... | mit | Kotlin |
8a9eb71a1c9a8f74883bd6ef787ad5469cd3edca | add heath-beat for sse to prevent timeout from the frontend | davinkevin/Podcast-Server,davinkevin/Podcast-Server,davinkevin/Podcast-Server,davinkevin/Podcast-Server,davinkevin/Podcast-Server | backend/src/main/kotlin/com/github/davinkevin/podcastserver/controller/sse/DownloaderControllerSSE.kt | backend/src/main/kotlin/com/github/davinkevin/podcastserver/controller/sse/DownloaderControllerSSE.kt | package com.github.davinkevin.podcastserver.controller.sse
import com.github.davinkevin.podcastserver.service.Message
import org.springframework.context.event.EventListener
import org.springframework.http.codec.ServerSentEvent
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bin... | package com.github.davinkevin.podcastserver.controller.sse
import com.github.davinkevin.podcastserver.service.Message
import org.springframework.context.event.EventListener
import org.springframework.http.codec.ServerSentEvent
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bin... | apache-2.0 | Kotlin |
1b9fa4a993c8c9673d8a6b8d122af026d2bd62ab | remove weakreference because image will disappear. | fan123199/V2ex-simple,fan123199/V2ex-simple | app/src/main/java/im/fdx/v2ex/view/BitmapHolder.kt | app/src/main/java/im/fdx/v2ex/view/BitmapHolder.kt | package im.fdx.v2ex.view
import android.graphics.Canvas
import android.graphics.drawable.BitmapDrawable
import android.graphics.drawable.Drawable
import im.fdx.v2ex.MyApp
import im.fdx.v2ex.R
@Suppress("DEPRECATION")
class BitmapHolder : BitmapDrawable() {
private var vDrawable: Drawable? = null
override fu... | package im.fdx.v2ex.view
import android.graphics.Canvas
import android.graphics.drawable.BitmapDrawable
import android.graphics.drawable.Drawable
import im.fdx.v2ex.MyApp
import im.fdx.v2ex.R
import java.lang.ref.WeakReference
@Suppress("DEPRECATION")
class BitmapHolder : BitmapDrawable() {
private var vDrawable... | apache-2.0 | Kotlin |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.