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
0695ac7f5f24980194d105f609c02f15e2169701
Add extensions to SwitchItem.
jguerinet/form-generator,jguerinet/form-generator
library/src/main/java/SwitchItem.kt
library/src/main/java/SwitchItem.kt
/* * Copyright 2015-2018 Julien Guerinet * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
/* * Copyright 2015-2018 Julien Guerinet * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
apache-2.0
Kotlin
350e83fac8e8a6bee78c80d18e83ede84b85c9ac
remove deprecations
http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k
src/docs/tutorials/add_a_little_chaos_to_your_life/_2/prod.kt
src/docs/tutorials/add_a_little_chaos_to_your_life/_2/prod.kt
package tutorials.add_a_little_chaos_to_your_life._2 import org.http4k.core.HttpHandler import org.http4k.core.Method.GET import org.http4k.core.Request import org.http4k.core.Response import org.http4k.core.Status.Companion.OK import org.http4k.core.then import org.http4k.filter.ClientFilters import org.http4k.filter...
package tutorials.add_a_little_chaos_to_your_life._2 import org.http4k.core.HttpHandler import org.http4k.core.Method.GET import org.http4k.core.Request import org.http4k.core.Response import org.http4k.core.Status.Companion.OK import org.http4k.core.then import org.http4k.filter.ClientFilters import org.http4k.filter...
apache-2.0
Kotlin
166349a2299bb6b01e02825b1dc09a486e1d72ad
Update build.gradle.kts
awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,a...
kotlin/services/stepfunctions/build.gradle.kts
kotlin/services/stepfunctions/build.gradle.kts
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { kotlin("jvm") version "1.5.31" application } group = "me.scmacdon" version = "1.0-SNAPSHOT" repositories { mavenCentral() } dependencies { implementation("aws.sdk.kotlin:sfn:0.9.4-beta") testImplementation("org.junit.jupiter:junit...
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { kotlin("jvm") version "1.5.31" application } group = "me.scmacdon" version = "1.0-SNAPSHOT" repositories { mavenCentral() } dependencies { implementation("aws.sdk.kotlin:sfn:0.9.0-alpha") testImplementation("org.junit.jupiter:juni...
apache-2.0
Kotlin
4cd40cb04e387e2e9a9bd58fc5935599f0d8e6ce
Revise Options documentation.
coil-kt/coil,coil-kt/coil
coil-base/src/main/java/coil/decode/Options.kt
coil-base/src/main/java/coil/decode/Options.kt
package coil.decode import android.graphics.Bitmap import android.graphics.ColorSpace import coil.fetch.Fetcher import coil.request.CachePolicy import coil.request.Parameters import coil.size.Scale import okhttp3.Headers /** * A set of configuration options for fetching and decoding an image. * * [Fetcher]s and [D...
package coil.decode import android.graphics.Bitmap import android.graphics.ColorSpace import coil.fetch.Fetcher import coil.request.CachePolicy import coil.request.Parameters import coil.size.Scale import okhttp3.Headers /** * A set of configuration options for loading and decoding an image. * * [Fetcher]s and [De...
apache-2.0
Kotlin
d5a765efd500b9b85c09aceadda1a2add0c6e44f
Add the forgotten mode advicer
arturbosch/TiNBo,arturbosch/TiNBo,arturbosch/TiNBo
src/main/java/com/gitlab/artismarti/tinbo/start/ModeAdvicer.kt
src/main/java/com/gitlab/artismarti/tinbo/start/ModeAdvicer.kt
package com.gitlab.artismarti.tinbo.start /** * @author artur */ object ModeAdvicer { private var mode = Mode.START fun setTimerMode() { mode = Mode.TIMER } fun isTimerMode(): Boolean { return mode == Mode.TIMER } fun setStartMode() { mode = Mode.START } f...
apache-2.0
Kotlin
9d7a2106e0fbe6f266f4055c04103e2822e93f9b
Include detekt-cli.zip distribution when releasing (#2626)
arturbosch/detekt,arturbosch/detekt,arturbosch/detekt
buildSrc/src/main/kotlin/releasing.gradle.kts
buildSrc/src/main/kotlin/releasing.gradle.kts
import com.vdurmont.semver4j.Semver plugins { id("com.github.breadmoirai.github-release") } githubRelease { token(project.findProperty("github.token") as? String ?: "") owner.set("arturbosch") repo.set("detekt") overwrite.set(true) dryRun.set(false) body { var changelog = project.f...
import com.vdurmont.semver4j.Semver plugins { id("com.github.breadmoirai.github-release") } githubRelease { token(project.findProperty("github.token") as? String ?: "") owner.set("arturbosch") repo.set("detekt") overwrite.set(true) dryRun.set(false) body { var changelog = project.f...
apache-2.0
Kotlin
b4414fcc399fcef1da2e3e2365f5c424f3976c0d
use Kotlin UI DSL 2 for new crate dialog
intellij-rust/intellij-rust,intellij-rust/intellij-rust,Undin/intellij-rust,Undin/intellij-rust,Undin/intellij-rust,intellij-rust/intellij-rust,intellij-rust/intellij-rust,Undin/intellij-rust,Undin/intellij-rust,Undin/intellij-rust,intellij-rust/intellij-rust,intellij-rust/intellij-rust
src/main/kotlin/org/rust/ide/actions/ui/CargoNewCrateDialog.kt
src/main/kotlin/org/rust/ide/actions/ui/CargoNewCrateDialog.kt
/* * Use of this source code is governed by the MIT license that can be * found in the LICENSE file. */ package org.rust.ide.actions.ui import com.intellij.openapi.project.Project import com.intellij.openapi.ui.ComboBox import com.intellij.openapi.ui.DialogWrapper import com.intellij.openapi.ui.ValidationInfo impo...
/* * Use of this source code is governed by the MIT license that can be * found in the LICENSE file. */ package org.rust.ide.actions.ui import com.intellij.openapi.project.Project import com.intellij.openapi.ui.ComboBox import com.intellij.openapi.ui.DialogWrapper import com.intellij.openapi.ui.ValidationInfo impo...
mit
Kotlin
75c73c2de832ec367326ad69e81d55341964f8e7
update Parser to be a read-only interface
cbeyls/fosdem-companion-android
app/src/main/java/be/digitalia/fosdem/parsers/Parser.kt
app/src/main/java/be/digitalia/fosdem/parsers/Parser.kt
package be.digitalia.fosdem.parsers import okio.BufferedSource interface Parser<out T> { @Throws(Exception::class) fun parse(source: BufferedSource): T }
package be.digitalia.fosdem.parsers import okio.BufferedSource interface Parser<T> { @Throws(Exception::class) fun parse(source: BufferedSource): T }
apache-2.0
Kotlin
bf172da34656f233040ae3da1f20902c3a377fa5
Add missing import in ReleaseAppHooks
breadwallet/breadwallet-android,breadwallet/breadwallet-android,breadwallet/breadwallet-android,breadwallet/breadwallet-android
app/src/release/java/ReleaseAppHooks.kt
app/src/release/java/ReleaseAppHooks.kt
package com.breadwallet import com.breadwallet.app.BreadApp internal fun BreadApp.installHooks() { }
package com.breadwallet internal fun BreadApp.installHooks() { }
mit
Kotlin
43ce06e2a043c2ce8c791905261e7c22a8ae20ff
Bump spigot-api from 1.15.1-R0.1-SNAPSHOT to 1.18.2-R0.1-SNAPSHOT
camdenorrb/KPortals
build.gradle.kts
build.gradle.kts
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { idea kotlin("jvm") version "1.3.61" id("com.github.johnrengelman.shadow") version "5.2.0" } group = "me.camdenorrb" version = "2.0.0" repositories { mavenCentral() ...
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { idea kotlin("jvm") version "1.3.61" id("com.github.johnrengelman.shadow") version "5.2.0" } group = "me.camdenorrb" version = "2.0.0" repositories { mavenCentral() ...
mit
Kotlin
d8971b1daa2276fe781d2c24f089c5651966b7c4
Configure KotlinProjectExtension after applying plugin
square/kotlinpoet,square/kotlinpoet
build.gradle.kts
build.gradle.kts
/* * Copyright (C) 2019 Square, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
/* * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
apache-2.0
Kotlin
375e240ff5c35cf6df4cddca3aabbf10883fcad3
Update to Spoofax Gradle 0.3.5.
metaborg/sdf,metaborg/sdf,metaborg/sdf
build.gradle.kts
build.gradle.kts
plugins { id("org.metaborg.gradle.config.root-project") version "0.3.21" id("org.metaborg.gitonium") version "0.1.2" // Set versions for plugins to use, only applying them in subprojects (apply false here). id("org.metaborg.spoofax.gradle.langspec") version "0.3.5" 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.2" // Set versions for plugins to use, only applying them in subprojects (apply false here). id("org.metaborg.spoofax.gradle.langspec") version "0.3.4" apply false id("de.set.ecj") version "1.4.1...
apache-2.0
Kotlin
a0412f29a944e0c14cc032dad76a4a957320b02c
add first class
mpsonntag/tag-notes,mpsonntag/tag-notes
src/App.kt
src/App.kt
/** * Copyright (c) 2015, Michael Sonntag * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted under the terms of the BSD License. See * LICENSE file in the root of the Project. */ fun main(args: Array<String>) { println("First line e...
bsd-3-clause
Kotlin
2b46fcca39799465bc44aeb0debbc7802fbc25a2
Add newline
blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,grad...
build-logic-commons/settings.gradle.kts
build-logic-commons/settings.gradle.kts
/* * Copyright 2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
/* * Copyright 2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
apache-2.0
Kotlin
6f478e6cae70d49dfab44f52daafa0947c398403
add unittest for id generator's maxWorkerId.
InsideZhou/Instep
core/src/test/kotlin/instep/util/LongIdGeneratorTest.kt
core/src/test/kotlin/instep/util/LongIdGeneratorTest.kt
package instep.util import org.testng.annotations.Test class LongIdGeneratorTest { @Test fun g() { val idGenerator = LongIdGenerator(0) var counter = 0 val ts = System.currentTimeMillis() while (System.currentTimeMillis() - ts < 1000) { counter += 1 pr...
package instep.util import org.testng.annotations.Test class LongIdGeneratorTest { @Test fun g() { val idGenerator = LongIdGenerator(0) var counter = 0 val ts = System.currentTimeMillis() while (System.currentTimeMillis() - ts < 1000) { counter += 1 pr...
bsd-2-clause
Kotlin
cd71617366b2028b13f70367659b587619be763c
Fix copyright formatting
nickbutcher/plaid,nickbutcher/plaid,nickbutcher/plaid,nickbutcher/plaid
core/src/main/java/io/plaidapp/core/data/api/AuthInterceptor.kt
core/src/main/java/io/plaidapp/core/data/api/AuthInterceptor.kt
/* * Copyright 2018 Google, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
/* * Copyright 2018 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...
apache-2.0
Kotlin
fcbda8387eb47853f8062d33fae7bf1fed5d3733
remove context param from constructor
clappr/clappr-android,clappr/clappr-android
player/src/main/kotlin/com/globo/clappr/plugin/LoadingPlugin.kt
player/src/main/kotlin/com/globo/clappr/plugin/LoadingPlugin.kt
package com.globo.clappr.plugin import android.content.Context <<<<<<< HEAD <<<<<<< HEAD <<<<<<< HEAD ======= >>>>>>> feature(loading_plugin): bind events to their respective callbacks import android.view.View import android.widget.ProgressBar import com.globo.clappr.base.Callback import com.globo.clappr.base.Event <<...
package com.globo.clappr.plugin import android.content.Context <<<<<<< HEAD <<<<<<< HEAD <<<<<<< HEAD ======= >>>>>>> feature(loading_plugin): bind events to their respective callbacks import android.view.View import android.widget.ProgressBar import com.globo.clappr.base.Callback import com.globo.clappr.base.Event <<...
bsd-3-clause
Kotlin
67b46848edc07ed1b8994f24b4262c09d55ea3fd
use NetworkCapabilities
ohmae/DmsExplorer
mobile/src/main/java/net/mm2d/android/net/AndroidLan.kt
mobile/src/main/java/net/mm2d/android/net/AndroidLan.kt
/* * Copyright (c) 2017 大前良介 (OHMAE Ryosuke) * * This software is released under the MIT License. * http://opensource.org/licenses/MIT */ package net.mm2d.android.net import android.content.Context import android.net.ConnectivityManager import android.net.NetworkCapabilities import android.os.Build import net.mm...
/* * Copyright (c) 2017 大前良介 (OHMAE Ryosuke) * * This software is released under the MIT License. * http://opensource.org/licenses/MIT */ package net.mm2d.android.net import android.content.Context import android.net.ConnectivityManager import net.mm2d.upnp.util.NetworkUtils import java.net.Inet4Address import j...
mit
Kotlin
a1e8382e37f63745b300ec9ec759a84a4277e38b
Test ItemViewModel in Scope
edvin/tornadofx,edvin/tornadofx,nimakro/tornadofx,nimakro/tornadofx,genobis/tornadofx,genobis/tornadofx
src/test/kotlin/tornadofx/tests/ScopeTests.kt
src/test/kotlin/tornadofx/tests/ScopeTests.kt
package tornadofx.tests import javafx.stage.Stage import org.junit.Test import org.testfx.api.FxToolkit import tornadofx.* import kotlin.test.assertEquals import kotlin.test.assertNotEquals import kotlin.test.assertTrue class ScopeTests { val primaryStage: Stage = FxToolkit.registerPrimaryStage() class Pers...
package tornadofx.tests import javafx.scene.control.Label import javafx.stage.Stage import org.junit.Test import org.testfx.api.FxToolkit import tornadofx.* import java.util.* import kotlin.test.assertEquals import kotlin.test.assertNotEquals import kotlin.test.assertTrue class ScopeTests { val primaryStage: Sta...
apache-2.0
Kotlin
65326e77b7f1ccf0517a678b5bfed4c63342971c
Solve problem 1954
fredyw/leetcode,fredyw/leetcode,fredyw/leetcode,fredyw/leetcode
src/main/kotlin/leetcode/Problem1954.kt
src/main/kotlin/leetcode/Problem1954.kt
package leetcode /** * https://leetcode.com/problems/minimum-garden-perimeter-to-collect-enough-apples/ */ class Problem1954 { fun minimumPerimeter(neededApples: Long): Long { var answer = 0L var lo = 1L var hi = neededApples while (lo <= hi) { val mid = lo + ((hi - lo...
package leetcode /** * https://leetcode.com/problems/minimum-garden-perimeter-to-collect-enough-apples/ */ class Problem1954 { fun minimumPerimeter(neededApples: Long): Long { TODO() } private fun numApples(n: Long): Long { var totalApples = 0L for (i in 1..n) { // *-...
mit
Kotlin
c9a789ab957ce45f82dcfd660fb6ef0b0274fe86
Update problem 2048
fredyw/leetcode,fredyw/leetcode,fredyw/leetcode,fredyw/leetcode
src/main/kotlin/leetcode/Problem2048.kt
src/main/kotlin/leetcode/Problem2048.kt
package leetcode /** * https://leetcode.com/problems/next-greater-numerically-balanced-number/ */ class Problem2048 { fun nextBeautifulNumber(n: Int): Int { TODO() } } fun main() { val prob = Problem2048() println(prob.nextBeautifulNumber(1)) // 22 println(prob.nextBeautifulNumber(1000))...
package leetcode /** * https://leetcode.com/problems/next-greater-numerically-balanced-number/ */ class Problem2048 { fun nextBeautifulNumber(n: Int): Int { TODO() } } fun main() { val prob = Problem2048() println(prob.nextBeautifulNumber(1)) // 22 println(prob.nextBeautifulNumber(1000))...
mit
Kotlin
bb268a0f8565e5ee9327b80a4a7bb7b551c1f4bc
Create EvenFibonacciNumbers.kt
DuckBoss/Programming-Challenges,DuckBoss/Programming-Challenges,DuckBoss/Programming-Challenges,DuckBoss/Programming-Challenges
Even_Fibonacci_Numbers/EvenFibonacciNumbers.kt
Even_Fibonacci_Numbers/EvenFibonacciNumbers.kt
fun main(args: Array<String>) { if(args.size != 3) { println("This program requires 2 starting integers, and the max terms!") return } println("Program Started...") val start1: Int = args[0].toInt() val start2: Int = args[1].toInt() var maxCount: Int = args[2].toInt() if(...
unlicense
Kotlin
49fe5f0ac435de56c6dc7051a6eb2b41d3518961
Test enum
AoEiuV020/LearningKotlin,AoEiuV020/LearningKotlin
app/src/test/kotlin/aoeiuv020/EnumTest.kt
app/src/test/kotlin/aoeiuv020/EnumTest.kt
package aoeiuv020 import org.junit.Test import kotlin.test.* /** * Created by AoEiuV020 on 2017/05/07. */ class EnumTest { @Test fun enumTest() { val r = RBG.RED assertEquals("RED", r.name) val b = RBG.valueOf("BLUE") assertEquals(RBG.BLUE, b) assertEquals(3, RBG.valu...
mit
Kotlin
0a7736e57470690fd819f16d07f62c008c8aac63
Add TODO
encircled/jPut
jput-core/src/main/java/cz/encircled/jput/JPut.kt
jput-core/src/main/java/cz/encircled/jput/JPut.kt
package cz.encircled.jput import cz.encircled.jput.model.ExecutionRun /** * TODO list: * - Timeout when max time is not set * - Self warm up * - Logging * - Fix when parallel > repeats * - Error on warmup * - ELK retries - https://discuss.elastic.co/t/how-to-set-listener-timeout-by-high-level-rest-client/12505...
package cz.encircled.jput import cz.encircled.jput.model.ExecutionRun /** * TODO list: * - Timeout when max time is not set * - Self warm up * - Logging * - Fix when parallel > repeats * - Error on warmup * * Helper functions for JPut users to control the perf tests execution * * @author Vlad on 15-Sep-19. ...
apache-2.0
Kotlin
c20d72f06d595482d5d45c102946fda866e1caf3
Update project description
blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,grad...
subprojects/functional/build.gradle.kts
subprojects/functional/build.gradle.kts
plugins { id("gradlebuild.distribution.implementation-java") } description = "Tools to work with functional code, including data structures" dependencies { implementation(project(":base-annotations")) }
plugins { id("gradlebuild.distribution.implementation-java") } description = "A set of generic data structures." dependencies { implementation(project(":base-annotations")) }
apache-2.0
Kotlin
5aedf19f7c944d06207c961887506c297dac96cf
Clarify instructions for exercise 29 (operators overloading)
enchf/kotlin-koans,trmollet/tuto_kotlin,Carighan/kotlin-koans,Riccorl/kotlin-koans,hughandrewarch/kotlin-koans,zyallday/kotlin-koans,Kotlin/kotlin-koans,hughandrewarch/kotlin-koans,Kotlin/kotlin-koans,enchf/kotlin-koans,Carighan/kotlin-koans,TheCoinTosser/Kotlin-Koans---Solutions,zyallday/kotlin-koans,Riccorl/kotlin-ko...
src/iii_conventions/n29OperatorsOverloading.kt
src/iii_conventions/n29OperatorsOverloading.kt
package iii_conventions import util.TODO import iii_conventions.TimeInterval.* fun todoTask29(): Nothing = TODO( """ Task 29. Implement a kind of date arithmetic. Support adding years, weeks and days to a date. Use classes 'MyDate' and 'TimeInterval'. Use the provided utility funct...
package iii_conventions import util.TODO import iii_conventions.TimeInterval.* fun todoTask29(): Nothing = TODO( """ Task 29. Implement a kind of date arithmetic. Support adding years, weeks and days to a date. Use classes 'MyDate' and 'TimeInterval'. Use a utility function 'MyDate...
mit
Kotlin
51a656f99c664df4df8e0c2624f99876fd074c02
refactor #523 Add deleteUnused test case.
toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt,toastkidjp/Jitte
app/src/test/java/jp/toastkid/yobidashi/tab/TabThumbnailsTest.kt
app/src/test/java/jp/toastkid/yobidashi/tab/TabThumbnailsTest.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
64bdea944f7041340b4b67218ae661a44e89974d
Fix serialization error(s) when tapping references. (#2918)
wikimedia/apps-android-wikipedia,wikimedia/apps-android-wikipedia,wikimedia/apps-android-wikipedia,wikimedia/apps-android-wikipedia
app/src/main/java/org/wikipedia/page/references/PageReferences.kt
app/src/main/java/org/wikipedia/page/references/PageReferences.kt
package org.wikipedia.page.references import kotlinx.serialization.Serializable @Serializable class PageReferences(val selectedIndex: Int = 0, val tid: String? = null, val referencesGroup: List<Reference> = emptyList()) { @Serializable class Reference(val id: String?...
package org.wikipedia.page.references import kotlinx.serialization.Serializable @Serializable data class PageReferences(val selectedIndex: Int = 0, val tid: String?, val referencesGroup: List<Reference>? = emptyList()) { @Serializable data class Reference(v...
apache-2.0
Kotlin
1da7b0d28cc101c58e58b4ba00a7ed5890df34f5
Fix processing properties with receivers.
Kotlin/dokka,Kotlin/dokka,google/dokka,Kotlin/dokka,Kotlin/dokka,Kotlin/dokka,google/dokka,Kotlin/dokka
src/Model/Diagnostics.kt
src/Model/Diagnostics.kt
package org.jetbrains.dokka import org.jetbrains.jet.lang.descriptors.* import org.jetbrains.jet.lang.resolve.name.* import org.jetbrains.jet.lang.resolve.BindingContext fun BindingContext.checkResolveChildren(node : DocumentationNode) { if (node.kind != DocumentationNode.Kind.Module && node.kind != Documentation...
package org.jetbrains.dokka import org.jetbrains.jet.lang.descriptors.* import org.jetbrains.jet.lang.resolve.name.* import org.jetbrains.jet.lang.resolve.BindingContext fun BindingContext.checkResolveChildren(node : DocumentationNode) { if (node.kind != DocumentationNode.Kind.Module && node.kind != Documentation...
apache-2.0
Kotlin
c6723cda8bba4986f28898487141091ce504664f
remove body
holisticon/ranked,holisticon/ranked,holisticon/ranked,holisticon/ranked,holisticon/ranked
application/src/main/kotlin/form/Form.kt
application/src/main/kotlin/form/Form.kt
package de.holisticon.ranked.form import de.holisticon.ranked.command.api.CreateMatch import de.holisticon.ranked.model.MatchSet import de.holisticon.ranked.model.Team import de.holisticon.ranked.model.UserName import org.axonframework.commandhandling.gateway.CommandGateway import org.springframework.stereotype.Contro...
package de.holisticon.ranked.form import de.holisticon.ranked.command.api.CreateMatch import de.holisticon.ranked.model.MatchSet import de.holisticon.ranked.model.Team import de.holisticon.ranked.model.UserName import org.axonframework.commandhandling.gateway.CommandGateway import org.springframework.stereotype.Contro...
bsd-3-clause
Kotlin
239d0f641c70851c3ce2a8ec9eb4344c872125f1
Fix sponsor logo url
mix-it/mixit,mix-it/mixit,mixitconf/mixit,mixitconf/mixit,mix-it/mixit,sdeleuze/mixit,sdeleuze/mixit,mix-it/mixit,mixitconf/mixit,sdeleuze/mixit,sdeleuze/mixit,mixitconf/mixit,mix-it/mixit
src/main/kotlin/mixit/data/dto/MemberDataDto.kt
src/main/kotlin/mixit/data/dto/MemberDataDto.kt
package mixit.data.dto import mixit.model.* import java.time.LocalDate import java.util.* data class MemberDataDto( val idMember: Long, var login: String?, var firstname: String?, var lastname: String?, var email: String?, var company: String?, var logo: String?...
package mixit.data.dto import mixit.model.* import java.time.LocalDate import java.util.* data class MemberDataDto( val idMember: Long, var login: String?, var firstname: String?, var lastname: String?, var email: String?, var company: String?, var logo: String?...
apache-2.0
Kotlin
9fa3ae1dc604292453e50aec01c5c2561c0e9ad8
Implement seq as plus and use that in then
intellij-purescript/intellij-purescript,intellij-purescript/intellij-purescript
src/main/java/org/purescript/parser/Parsec.kt
src/main/java/org/purescript/parser/Parsec.kt
package org.purescript.parser import com.intellij.psi.tree.IElementType import java.util.* abstract class Parsec { var name: String? = null get() { if (field == null) { field = calcName() } return field } private set var expectedName:...
package org.purescript.parser import com.intellij.psi.tree.IElementType import java.util.* abstract class Parsec { var name: String? = null get() { if (field == null) { field = calcName() } return field } private set var expectedName:...
bsd-3-clause
Kotlin
ee974311af235f4a57c80636f5b40b7d254b5994
Replace jcenter with mavenCentral
gwtproject/gwt-window,gwtproject/gwt-window
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
24527e224d4e11bbe5712d21d669b6462a9706e6
Update build.gradle.kts
awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,a...
kotlin/services/emr/build.gradle.kts
kotlin/services/emr/build.gradle.kts
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { kotlin("jvm") version "1.5.31" application } group = "me.scmacdon" version = "1.0-SNAPSHOT" repositories { mavenCentral() } dependencies { implementation("aws.sdk.kotlin:emr:0.14.3-beta") testImplementation("org.junit.jupiter:junit...
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { kotlin("jvm") version "1.5.31" application } group = "me.scmacdon" version = "1.0-SNAPSHOT" repositories { mavenCentral() } dependencies { implementation("aws.sdk.kotlin:emr:0.9.4-beta") testImplementation("org.junit.jupiter:junit-...
apache-2.0
Kotlin
08fc765e5f9aa22e0c6a97beb749a8f2c8bd2834
Add a boolean to control whether a top level class is created
jguerinet/mobile-string-parser,jguerinet/mobile-string-parser
src/main/java/config/AnalyticsConfig.kt
src/main/java/config/AnalyticsConfig.kt
/* * Copyright 2013-2019 Julien Guerinet * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
/* * Copyright 2013-2019 Julien Guerinet * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
apache-2.0
Kotlin
e6709cfaf989a08c597384833afb85828a3bc41b
Solve problem 2194
fredyw/leetcode,fredyw/leetcode,fredyw/leetcode,fredyw/leetcode
src/main/kotlin/leetcode/Problem2194.kt
src/main/kotlin/leetcode/Problem2194.kt
package leetcode /** * https://leetcode.com/problems/cells-in-a-range-on-an-excel-sheet/ */ class Problem2194 { fun cellsInRange(s: String): List<String> { val answer = mutableListOf<String>() val (from, to) = s.split(":") for (col in from[0]..to[0]) { for (row in from[1].toIn...
mit
Kotlin
d653c4e7516562ce99094038ba6600ca954cad15
Remove debug line
kvakil/venus,kvakil/venus,kvakil/venus
src/main/kotlin/simulator/impls/SWImpl.kt
src/main/kotlin/simulator/impls/SWImpl.kt
package venus.simulator.impls import venus.riscv.Instruction import venus.riscv.InstructionField import venus.simulator.SimulatorState import venus.simulator.InstructionImplementation object SWImpl : InstructionImplementation { override operator fun invoke(inst: Instruction, state: SimulatorState) { val r...
package venus.simulator.impls import venus.riscv.Instruction import venus.riscv.InstructionField import venus.simulator.SimulatorState import venus.simulator.InstructionImplementation object SWImpl : InstructionImplementation { override operator fun invoke(inst: Instruction, state: SimulatorState) { val r...
mit
Kotlin
acd1615a7bf76a30f9b34c1a6f4dddeb6a82a490
Remove extra blank line
kvakil/venus,kvakil/venus,kvakil/venus
src/main/kotlin/venus/riscv/insts/addi.kt
src/main/kotlin/venus/riscv/insts/addi.kt
package venus.riscv.insts import venus.riscv.insts.dsl.ITypeInstruction import venus.riscv.insts.dsl.relocators.PCRelLoRelocator32 val addi = ITypeInstruction( name = "addi", opcode = 0b0010011, funct3 = 0b000, eval32 = { a, b -> a + b }, eval64 = { a, b -> a + b }, rel...
package venus.riscv.insts import venus.riscv.insts.dsl.ITypeInstruction import venus.riscv.insts.dsl.relocators.PCRelLoRelocator32 val addi = ITypeInstruction( name = "addi", opcode = 0b0010011, funct3 = 0b000, eval32 = { a, b -> a + b }, eval64 = { a, b -> a + b }, rel...
mit
Kotlin
1fc4ddaa9dad7907591cd407ec0663e2a31d3a0a
Bump Dagger
fcostaa/kotlin-rxjava-android,fcostaa/kotlin-rxjava-android
buildSrc/src/main/kotlin/Versions.kt
buildSrc/src/main/kotlin/Versions.kt
internal object Kotlin { const val version = "1.3.50" } object Versions { const val androidGradlePlugin = "3.5.1" const val dependencyGraphGeneratorPlugin = "0.2.0" const val androidJunitJacocoPlugin = "0.13.0" const val detektGradlePlugin = "1.0.1" const val canidropjetifierPlugin = "0.4" ...
internal object Kotlin { const val version = "1.3.50" } object Versions { const val androidGradlePlugin = "3.5.1" const val dependencyGraphGeneratorPlugin = "0.2.0" const val androidJunitJacocoPlugin = "0.13.0" const val detektGradlePlugin = "1.0.1" const val canidropjetifierPlugin = "0.4" ...
mit
Kotlin
6cdf8f1d811cffdfec04abafbf20826c74ec6765
Support building against different API versions
rodm/teamcity-gradle-init-scripts-plugin,rodm/teamcity-gradle-init-scripts-plugin,rodm/teamcity-gradle-init-scripts-plugin
build.gradle.kts
build.gradle.kts
import com.github.rodm.teamcity.TeamCityPluginExtension import com.jfrog.bintray.gradle.BintrayExtension import com.jfrog.bintray.gradle.RecordingCopyTask import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { kotlin("jvm") version "1.2.0" apply false id ("com.github.rodm.teamcity-server") version "...
import com.github.rodm.teamcity.TeamCityPluginExtension import com.jfrog.bintray.gradle.BintrayExtension import com.jfrog.bintray.gradle.RecordingCopyTask import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { kotlin("jvm") version "1.2.0" apply false id ("com.github.rodm.teamcity-server") version "...
apache-2.0
Kotlin
91902aa8e5e71963cac2ac98750c7360ee6e5f35
Use lifecycle-base plugin (fixes #743)
MaTriXy/gradle-play-publisher-1,MaTriXy/gradle-play-publisher-1,Triple-T/gradle-play-publisher,MaTriXy/gradle-play-publisher-1,Triple-T/gradle-play-publisher,Triple-T/gradle-play-publisher
build.gradle.kts
build.gradle.kts
import org.jetbrains.kotlin.gradle.dsl.KotlinProjectExtension buildscript { repositories.deps() dependencies { classpath(kotlin("gradle-plugin", embeddedKotlinVersion)) } } plugins { `lifecycle-base` id("com.github.triplet.gradle.build") id("com.github.ben-manes.versions") version "0....
import org.jetbrains.kotlin.gradle.dsl.KotlinProjectExtension buildscript { repositories.deps() dependencies { classpath(kotlin("gradle-plugin", embeddedKotlinVersion)) } } plugins { id("com.github.triplet.gradle.build") id("com.github.ben-manes.versions") version "0.27.0" } buildScan { ...
mit
Kotlin
85a41c99026a9b73ff5197b7d4029c60844e86e1
Update dependency org.assertj:assertj-core to v3.23.1 (#443)
Turbo87/intellij-emberjs,Turbo87/intellij-emberjs,Turbo87/intellij-emberjs,Turbo87/intellij-emberjs
build.gradle.kts
build.gradle.kts
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { // Java support id("java") // Kotlin support id("org.jetbrains.kotlin.jvm") version "1.6.21" // gradle-intellij-plugin - read more: https://github.com/JetBrains/gradle-intellij-plugin id("org.jetbrains.intellij") version "1.5.3" }...
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { // Java support id("java") // Kotlin support id("org.jetbrains.kotlin.jvm") version "1.6.21" // gradle-intellij-plugin - read more: https://github.com/JetBrains/gradle-intellij-plugin id("org.jetbrains.intellij") version "1.5.3" }...
apache-2.0
Kotlin
d534dbdd01f8761ce3fc0b0954d5c86e33a7246b
Add kotlin-reflect dependency
bjansen/pebble-intellij,bjansen/pebble-intellij,bjansen/pebble-intellij
build.gradle.kts
build.gradle.kts
import org.jetbrains.intellij.tasks.PublishPluginTask import org.jetbrains.intellij.tasks.RunPluginVerifierTask import kotlin.collections.listOf val ideaVersion: String by project val kotlinVersion: String by project val downloadIdeaSources: String by project val publishToken: String by project val publishChannels: St...
import org.jetbrains.intellij.tasks.PublishPluginTask import org.jetbrains.intellij.tasks.RunPluginVerifierTask import kotlin.collections.listOf val ideaVersion: String by project val downloadIdeaSources: String by project val publishToken: String by project val publishChannels: String by project buildscript { r...
mit
Kotlin
11fafe6eb9340186e3a5ee1a4b7a76ff02d2a015
refactor #307 Add comments to pdf.ViewHolder.
toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt,toastkidjp/Jitte
app/src/main/java/jp/toastkid/yobidashi/pdf/ViewHolder.kt
app/src/main/java/jp/toastkid/yobidashi/pdf/ViewHolder.kt
package jp.toastkid.yobidashi.pdf import android.graphics.Bitmap import androidx.recyclerview.widget.RecyclerView import android.view.View import jp.toastkid.yobidashi.databinding.ItemPdfContentBinding /** * PDF viewer's view holder * * @param binding [ItemPdfContentBinding] * @author toastkidjp */ class ViewHol...
package jp.toastkid.yobidashi.pdf import android.graphics.Bitmap import androidx.recyclerview.widget.RecyclerView import android.view.View import jp.toastkid.yobidashi.databinding.ItemPdfContentBinding /** * @author toastkidjp */ class ViewHolder(val binding: ItemPdfContentBinding) : RecyclerView.ViewHolder(binding...
epl-1.0
Kotlin
6a1fed14814b9dc672edfa318958773b062ec8ab
refactor #853 Delete useless dependency.
toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt
app/src/main/java/jp/toastkid/yobidashi/settings/Theme.kt
app/src/main/java/jp/toastkid/yobidashi/settings/Theme.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
1711e62f0a3c783b885902029e36844dc47af8c2
Bump modb-anime-planet from 3.1.5 to 3.1.6
manami-project/manami,manami-project/manami
manami-app/build.gradle.kts
manami-app/build.gradle.kts
dependencies { api("io.github.manamiproject:modb-core:7.0.1") api("io.github.manamiproject:modb-db-parser:3.1.0") api("org.slf4j:slf4j-api:1.7.32") implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2-native-mt") implementation("io.github.manamiproject:modb-anidb:3.0.6") implemen...
dependencies { api("io.github.manamiproject:modb-core:7.0.1") api("io.github.manamiproject:modb-db-parser:3.1.0") api("org.slf4j:slf4j-api:1.7.32") implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2-native-mt") implementation("io.github.manamiproject:modb-anidb:3.0.6") implemen...
agpl-3.0
Kotlin
874f164170ddcc6eda03130cba348a66fd4a1087
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
d14f15427f4c3340caf1840918a99f6c4b0cbd5a
Update build.gradle.kts
awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,a...
kotlin/services/kinesis/build.gradle.kts
kotlin/services/kinesis/build.gradle.kts
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { kotlin("jvm") version "1.5.31" application } group = "me.scmacdon" version = "1.0-SNAPSHOT" repositories { mavenCentral() } dependencies { implementation("aws.sdk.kotlin:kinesis:0.14.3-beta") testImplementation("org.junit.jupiter:ju...
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { kotlin("jvm") version "1.5.31" application } group = "me.scmacdon" version = "1.0-SNAPSHOT" repositories { mavenCentral() } dependencies { implementation("aws.sdk.kotlin:kinesis:0.9.4-beta") testImplementation("org.junit.jupiter:jun...
apache-2.0
Kotlin
0f8fc35740ee6629e0dc4a8d93306e6c0f010129
Clean up VoiceSearch code.
toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Jitte
app/src/main/java/jp/toastkid/yobidashi/search/voice/VoiceSearch.kt
app/src/main/java/jp/toastkid/yobidashi/search/voice/VoiceSearch.kt
package jp.toastkid.yobidashi.search.voice import android.content.Context import android.content.Intent import android.speech.RecognizerIntent import io.reactivex.disposables.Disposable import io.reactivex.disposables.Disposables import jp.toastkid.yobidashi.libs.preference.PreferenceApplier import jp.toastkid.yobidas...
package jp.toastkid.yobidashi.search.voice import android.content.Context import android.content.Intent import android.speech.RecognizerIntent import io.reactivex.disposables.Disposable import io.reactivex.disposables.Disposables import jp.toastkid.yobidashi.libs.preference.PreferenceApplier import jp.toastkid.yobidas...
epl-1.0
Kotlin
b633344420043ccac95cf53964b742e546fb893f
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
0a9f565e03a35a9ce0d312be097e343b97d3d2f3
Modify LocalDateTimeConverter to support null values
BreakOutEvent/breakout-backend,BreakOutEvent/breakout-backend,BreakOutEvent/breakout-backend
src/main/java/backend/converter/LocalDateTimeConverter.kt
src/main/java/backend/converter/LocalDateTimeConverter.kt
package backend.converter import java.sql.Timestamp import java.time.LocalDateTime import javax.persistence.AttributeConverter import javax.persistence.Converter @Converter(autoApply = true) class LocalDateTimeConverter() : AttributeConverter<LocalDateTime, Timestamp> { override fun convertToDatabaseColumn(data:...
package backend.converter import java.sql.Timestamp import java.time.LocalDateTime import javax.persistence.AttributeConverter import javax.persistence.Converter @Converter(autoApply = true) class LocalDateTimeConverter() : AttributeConverter<LocalDateTime, Timestamp> { override fun convertToDatabaseColumn(data:...
agpl-3.0
Kotlin
98b0d24e5a0acc0a7f1853fb477999e3d2077af4
add unparsedpacket class
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/rtp/UnparsedPacket.kt
src/main/kotlin/org/jitsi/rtp/UnparsedPacket.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 ...
apache-2.0
Kotlin
667afe60974aa9680820f3e87ef01c3210fdf53e
Remove unused code from VersionRange
DemonWav/IntelliJBukkitSupport,minecraft-dev/MinecraftDev,minecraft-dev/MinecraftDev,minecraft-dev/MinecraftDev
src/main/kotlin/util/VersionRange.kt
src/main/kotlin/util/VersionRange.kt
/* * Minecraft Dev for IntelliJ * * https://minecraftdev.org * * Copyright (c) 2021 minecraft-dev * * MIT License */ package com.demonwav.mcdev.util /** * A [SemanticVersion] range whose [lower] bound is **inclusive** and [upper] bound is **exclusive** (uncapped if `null`) */ data class VersionRange(val low...
/* * Minecraft Dev for IntelliJ * * https://minecraftdev.org * * Copyright (c) 2021 minecraft-dev * * MIT License */ package com.demonwav.mcdev.util /** * A [SemanticVersion] range whose [lower] bound is **inclusive** and [upper] bound is **exclusive** (uncapped if `null`) */ data class VersionRange(val low...
mit
Kotlin
b27f04ca261a494d1d519357d8dd9f0e84b540b0
Remove unused code
ruXlab/safe-kotlin-features-showcase,ruXlab/safe-kotlin-features-showcase
src/named_params/KNamedArgumentInConstructor.kt
src/named_params/KNamedArgumentInConstructor.kt
package named_params import java.io.File /** * Created by rux on 02/05/17. */ class MyService( val config: Map<String, String>, val input: File, val output: File, val offsetX: Int, val offsetY: Int, val items: List<String> ) fun main(args: Array<String>) { val items = listOf("one", "tw...
package named_params import java.io.File /** * Created by rux on 02/05/17. */ class Parcel( val id: Long, val width: Double, val height: Double, val length: Double, val weight: Double, val price: Double, val value: Double ) class MyService( val config: Map<String, String>, val ...
mit
Kotlin
4761b50634c963bc047123f2619dbdaaa6b3fdc8
Bump intellij gradle plugin version
JetBrains/resharper-unity,JetBrains/resharper-unity,JetBrains/resharper-unity
rider/buildSrc/build.gradle.kts
rider/buildSrc/build.gradle.kts
import java.net.URI // Note: The `buildscript` block affects the dependencies ONLY for the build scripts of the buildSrc projects // (i.e. buildSrc/build.gradle.kts et al) // Use top level `repositories` and `dependencies` for the buildSrc project itself. Also note that the dependencies of // the buildSrc project beco...
import java.net.URI // Note: The `buildscript` block affects the dependencies ONLY for the build scripts of the buildSrc projects // (i.e. buildSrc/build.gradle.kts et al) // Use top level `repositories` and `dependencies` for the buildSrc project itself. Also note that the dependencies of // the buildSrc project beco...
apache-2.0
Kotlin
eadc589c96b9b30bcfd7b7b2c355d311989984b5
Mark a new class internal and add more doc
SpineEventEngine/base,SpineEventEngine/base,SpineEventEngine/base
tools/plugin-base/src/main/kotlin/io/spine/tools/gradle/Multiple.kt
tools/plugin-base/src/main/kotlin/io/spine/tools/gradle/Multiple.kt
/* * 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
f998f1be9fb8071e1a0e04b3d49c7bde2ff76bf0
Update teamcity ide version for pull requests builds
JetBrains/ideavim,JetBrains/ideavim
.teamcity/_Self/buildTypes/GitHubPullRequests.kt
.teamcity/_Self/buildTypes/GitHubPullRequests.kt
package _Self.buildTypes import _Self.vcsRoots.GitHubPullRequest import jetbrains.buildServer.configs.kotlin.v2019_2.BuildType import jetbrains.buildServer.configs.kotlin.v2019_2.CheckoutMode import jetbrains.buildServer.configs.kotlin.v2019_2.buildFeatures.PullRequests import jetbrains.buildServer.configs.kotlin.v201...
package _Self.buildTypes import _Self.vcsRoots.GitHubPullRequest import jetbrains.buildServer.configs.kotlin.v2019_2.BuildType import jetbrains.buildServer.configs.kotlin.v2019_2.CheckoutMode import jetbrains.buildServer.configs.kotlin.v2019_2.buildFeatures.PullRequests import jetbrains.buildServer.configs.kotlin.v201...
mit
Kotlin
09482b6dba77fba3f336d131d94b2625820284b9
Bump org.jetbrains.kotlin.plugin.spring from 1.3.72 to 1.4.21 (#1906)
sksamuel/ktest
kotest-extensions/kotest-extensions-spring/build.gradle.kts
kotest-extensions/kotest-extensions-spring/build.gradle.kts
plugins { id("java") kotlin("multiplatform") id("java-library") id("org.jetbrains.kotlin.plugin.spring") version "1.4.21" id("com.adarshr.test-logger") } repositories { mavenCentral() } kotlin { targets { jvm { compilations.all { kotlinOptions { jvmTarge...
plugins { id("java") kotlin("multiplatform") id("java-library") id("org.jetbrains.kotlin.plugin.spring") version "1.3.72" id("com.adarshr.test-logger") } repositories { mavenCentral() } kotlin { targets { jvm { compilations.all { kotlinOptions { jvmTarge...
mit
Kotlin
02555c54e7e66766831510beba8d86bfabef3549
Update StreamPrivacy.kt
vimeo/vimeo-networking-java,vimeo/vimeo-networking-java,vimeo/vimeo-networking-java
models/src/main/java/com/vimeo/networking2/StreamPrivacy.kt
models/src/main/java/com/vimeo/networking2/StreamPrivacy.kt
package com.vimeo.networking2 import com.squareup.moshi.Json import com.squareup.moshi.JsonClass import com.vimeo.networking2.enums.EmbedPrivacyType import com.vimeo.networking2.enums.ViewPrivacyType import com.vimeo.networking2.enums.asEnum /** * Stream privacy data. * * @param embedPrivacy The event's embed perm...
package com.vimeo.networking2 import com.squareup.moshi.Json import com.vimeo.networking2.enums.EmbedPrivacyType import com.vimeo.networking2.enums.ViewPrivacyType import com.vimeo.networking2.enums.asEnum /** * Stream privacy data. * * @param embedPrivacy The event's embed permission setting. * @param unlistedHa...
mit
Kotlin
5e366a15983215971fd14a98119aeb0c9d4f7bd5
Add placeholder Kotlin source
blindpirate/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,gradle/gradle-script-kotlin,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,robinverduijn/gradle,blindpirate/gra...
src/main/kotlin/Placeholder.kt
src/main/kotlin/Placeholder.kt
class Placeholder
apache-2.0
Kotlin
9bb8214531d51b69b5c6bcb0458e5aa973334068
Fix ResolverResult.kt
MaridProject/marid,MaridProject/marid
marid-ide/build.gradle.kts
marid-ide/build.gradle.kts
plugins { kotlin("jvm") } val openjfxVersion = "16" dependencies { compileOnly(project(":marid-common")) compileOnly(project(":marid-moans")) compileOnly(group = "org.jetbrains.kotlinx", name = "kotlinx-serialization-json-jvm", version = "1.2.1") compileOnly(group = "org.slf4j", name = "slf4j-jdk14", versi...
plugins { kotlin("jvm") } val openjfxVersion = "16" dependencies { compileOnly(project(":marid-common")) compileOnly(project(":marid-moans")) compileOnly(group = "org.jetbrains.kotlinx", name = "kotlinx-serialization-json-jvm", version = "1.2.1") compileOnly(group = "org.slf4j", name = "slf4j-jdk14", versi...
agpl-3.0
Kotlin
3ef489eb8aaea31361a334a83c136814c860d0ef
Fix crash due to posted Runnable firing after onStop (#376)
chrisbanes/tivi,chrisbanes/tivi
common-ui/src/main/java/app/tivi/TiviFragment.kt
common-ui/src/main/java/app/tivi/TiviFragment.kt
/* * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
/* * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
apache-2.0
Kotlin
aedaa1b0740cc9fa70cc0ee2cef5f925f3d65cca
Add natives support to library class
lapis-mc/minecraft-versioning
src/main/kotlin/com/lapismc/minecraft/versioning/Library.kt
src/main/kotlin/com/lapismc/minecraft/versioning/Library.kt
package com.lapismc.minecraft.versioning /** * Package required for the game to run * and additional information regarding extraction and inclusion rules. * @param gav Maven information for the downloadable artifacts. * @param artifacts Set of artifacts included in the library. * @param exclusions Paths to exclud...
package com.lapismc.minecraft.versioning /** * Package required for the game to run * and additional information regarding extraction and inclusion rules. * @param gav Maven information for the downloadable artifacts. * @param artifacts Set of artifacts included in the library. * @param exclusions Paths to exclud...
mit
Kotlin
63abdc43be5903b2b47ce65aa9fbd7b5a141f6e4
添加数组 kotlin 版本
wangzheng0822/algo,wangzheng0822/algo,wangzheng0822/algo,wangzheng0822/algo,wangzheng0822/algo,wangzheng0822/algo,wangzheng0822/algo,wangzheng0822/algo,wangzheng0822/algo,wangzheng0822/algo,wangzheng0822/algo,wangzheng0822/algo,wangzheng0822/algo,wangzheng0822/algo
kotlin/05_array/ArrayKt.kt
kotlin/05_array/ArrayKt.kt
import kotlin.Array /** * 1) 数组的插入、删除、按照下标随机访问操作; * 2)数组中的数据是int类型的; * * Author: Zackratos */ class ArrayKt constructor(private val capacity: Int) { // 定义整型数据data保存数据 private val data: IntArray = IntArray(capacity) // 定义数组中实际个数 private var count: Int = 0 companion object { @JvmStatic...
apache-2.0
Kotlin
2d02b3015d331550972c069f7723f80b1795d88c
refactor #559 Modify comment.
toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt,toastkidjp/Jitte
app/src/main/java/jp/toastkid/yobidashi/libs/ImageLoader.kt
app/src/main/java/jp/toastkid/yobidashi/libs/ImageLoader.kt
package jp.toastkid.yobidashi.libs import android.content.Context import android.graphics.Bitmap import android.graphics.BitmapFactory import android.graphics.drawable.BitmapDrawable import android.net.Uri import java.io.IOException /** * Image file loader. * * @author toastkidjp */ object ImageLoader { /** ...
package jp.toastkid.yobidashi.libs import android.content.Context import android.graphics.Bitmap import android.graphics.BitmapFactory import android.graphics.drawable.BitmapDrawable import android.net.Uri import java.io.IOException /** * Image file loader. * @author toastkidjp */ object ImageLoader { /** ...
epl-1.0
Kotlin
207aa39bb0e1b091d935cce36e74b241d79ae5fd
refactor #853 Add extension function for compatibility.
toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt
lib/src/main/java/jp/toastkid/lib/compat/ParcelableCompat.kt
lib/src/main/java/jp/toastkid/lib/compat/ParcelableCompat.kt
/* * Copyright (c) 2022 toastkidjp. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompany this distribution. * The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html. */ package jp...
epl-1.0
Kotlin
60bd21653cfa364c050aff090821d07e22cf13dc
Fix inspection warnings.
Senspark/ee-x,Senspark/ee-x,Senspark/ee-x,Senspark/ee-x,Senspark/ee-x,Senspark/ee-x,Senspark/ee-x,Senspark/ee-x,Senspark/ee-x
src/android/core/src/main/java/com/ee/Thread.kt
src/android/core/src/main/java/com/ee/Thread.kt
package com.ee import androidx.annotation.AnyThread import com.ee.internal.IThreadImpl object Thread { private var _impl: IThreadImpl? = null @AnyThread fun registerImpl(impl: IThreadImpl) { _impl = impl } @AnyThread @JvmStatic fun checkMainThread() { _impl?.checkMainThre...
package com.ee import androidx.annotation.AnyThread import com.ee.internal.IThreadImpl object Thread { private var _impl: IThreadImpl? = null @AnyThread fun registerImpl(impl: IThreadImpl) { _impl = impl } @AnyThread @JvmStatic fun checkMainThread() { _impl?.checkMainThre...
mit
Kotlin
6af4d9872439113bcf904e60f5c8540009572fad
Implement internal Requisition service
world-federation-of-advertisers/common-jvm,world-federation-of-advertisers/common-jvm
src/main/kotlin/org/wfanet/measurement/common/ProtoUtils.kt
src/main/kotlin/org/wfanet/measurement/common/ProtoUtils.kt
package org.wfanet.measurement.common import com.google.protobuf.MessageOrBuilder import com.google.protobuf.Timestamp import com.google.protobuf.util.JsonFormat import java.time.Instant /** Converts a protobuf [MessageOrBuilder] into its canonical JSON representation.*/ fun MessageOrBuilder.toJson(): String { retu...
package org.wfanet.measurement.common import com.google.protobuf.Timestamp import java.time.Instant fun Instant.toProtoTime(): Timestamp = Timestamp.newBuilder() .setSeconds(epochSecond) .setNanos(nano) .build() fun Timestamp.toInstant(): Instant = Instant.ofEpochSecond(seconds, nanos.toLong())
apache-2.0
Kotlin
374d5a93b73e47617bc7ed6821ea67f31e661181
Bump the version to `2.0.0-SNAPSHOT.109`.
SpineEventEngine/base,SpineEventEngine/base,SpineEventEngine/base
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
8ffdf7ba27682f9c21de21c9d32da4076467dba4
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
ea56bab9b3a5b1f6bf0b7fc5d752145e6b31524d
fix example
http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k
src/docs/guide/howto/record_and_replay_http_traffic/example_cache.kt
src/docs/guide/howto/record_and_replay_http_traffic/example_cache.kt
package guide.howto.record_and_replay_http_traffic import org.http4k.core.Method.GET import org.http4k.core.Request import org.http4k.core.Response import org.http4k.core.Status.Companion.OK import org.http4k.core.then import org.http4k.filter.TrafficFilters import org.http4k.traffic.ReadWriteCache fun main() { ...
package guide.howto.record_and_replay_http_traffic import org.http4k.core.Method.GET import org.http4k.core.Request import org.http4k.core.Response import org.http4k.core.Status.Companion.OK import org.http4k.core.then import org.http4k.filter.TrafficFilters import org.http4k.traffic.ReadWriteCache fun main() { ...
apache-2.0
Kotlin
9f6c2b06fd6db3869505dcc1eba4e1eb02d64cca
Add recover flow function
pyamsoft/pydroid
core/src/main/java/com/pyamsoft/pydroid/core/ResultWrapper.kt
core/src/main/java/com/pyamsoft/pydroid/core/ResultWrapper.kt
/* * Copyright 2021 Peter Kenji Yamanaka * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
/* * Copyright 2021 Peter Kenji Yamanaka * * 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
d100cd66a421c0a3f5534efe6ec2c9222cf85a6d
add cargo home to allowed roots
intellij-rust/intellij-rust,intellij-rust/intellij-rust,intellij-rust/intellij-rust,Undin/intellij-rust,Undin/intellij-rust,Undin/intellij-rust,intellij-rust/intellij-rust,Undin/intellij-rust,intellij-rust/intellij-rust,Undin/intellij-rust,Undin/intellij-rust,intellij-rust/intellij-rust
src/test/kotlin/org/rust/cargo/RustupTestFixture.kt
src/test/kotlin/org/rust/cargo/RustupTestFixture.kt
/* * Use of this source code is governed by the MIT license that can be * found in the LICENSE file. */ package org.rust.cargo import com.intellij.openapi.project.Project import com.intellij.openapi.util.io.FileUtil import com.intellij.openapi.vfs.VirtualFile import com.intellij.openapi.vfs.newvfs.impl.VfsRootAcce...
/* * Use of this source code is governed by the MIT license that can be * found in the LICENSE file. */ package org.rust.cargo import com.intellij.openapi.project.Project import com.intellij.openapi.vfs.VirtualFile import com.intellij.openapi.vfs.newvfs.impl.VfsRootAccess import com.intellij.testFramework.fixtures...
mit
Kotlin
e41199ced61c1fe48197cf0114d19b6b2e359071
fix the crush bug
SixCan/SixDaily,SixCan/SixDaily,SixCan/SixDaily
app/src/main/java/ca/six/daily/biz/home/DailyListActivity.kt
app/src/main/java/ca/six/daily/biz/home/DailyListActivity.kt
package ca.six.daily.biz.home import android.content.Intent import android.os.Bundle import android.support.v7.widget.LinearLayoutManager import android.support.v7.widget.RecyclerView import android.widget.TextView import ca.six.daily.R import ca.six.daily.biz.detail.DailyDetailActivity import ca.six.daily.core.BaseAc...
package ca.six.daily.biz.home import android.content.Intent import android.os.Bundle import android.support.v7.widget.LinearLayoutManager import android.support.v7.widget.RecyclerView import android.widget.TextView import ca.six.daily.R import ca.six.daily.biz.detail.DailyDetailActivity import ca.six.daily.core.BaseAc...
mpl-2.0
Kotlin
fb9950bca1b2ec1e56ba94b9fbf2dbd5161240b2
Add mustNotBe to spec.kt.
epabst/kotlin-showcase,epabst/kotlin-showcase,epabst/kotlin-showcase,epabst/kotlin-showcase
common/src/test/kotlin/common/spec.kt
common/src/test/kotlin/common/spec.kt
package common import org.hamcrest.CoreMatchers import org.hamcrest.MatcherAssert import kotlin.test.assertEquals import kotlin.test.assertNotEquals import kotlin.test.fail /** * Kotlin extensions to QUnit. * @author Eric Pabst (epabst@gmail.com) * Date: 6/16/16 * Time: 5:59 AM */ fun <T> T.mustBe(expected: T) {...
package common import kotlin.test.assertEquals /** * Kotlin extensions to QUnit. * @author Eric Pabst (epabst@gmail.com) * Date: 6/16/16 * Time: 5:59 AM */ fun <T> T.mustBe(expected: T) { assertEquals(expected, this) }
apache-2.0
Kotlin
6358066393c5530356f30a4dcb540862581a88e8
Update EmailMessage.kt
elifarley/kotlin-examples,elifarley/kotlin-misc-lib,elifarley/kotlin-examples,elifarley/kotlin-misc-lib
src/com/github/elifarley/kotlin/EmailMessage.kt
src/com/github/elifarley/kotlin/EmailMessage.kt
package com.github.elifarley.kotlin import java.io.Serializable class EmailMessage(val toAddress: String, val subject: String, val body: String, var myMutableField: String?) : Serializable
package br.com.m4u import java.io.Serializable class EmailMessage(val toAddress: String, val subject: String, val body: String, var myMutableField: String?) : Serializable
mit
Kotlin
5bda34d2ccd635f635c5202ad60cea37fd8bc0c9
Add default constructor to EmailAddress for JPA
BreakOutEvent/breakout-backend,BreakOutEvent/breakout-backend,BreakOutEvent/breakout-backend
src/main/java/backend/model/misc/EmailAddress.kt
src/main/java/backend/model/misc/EmailAddress.kt
package backend.model.misc import org.apache.commons.validator.routines.EmailValidator import org.hibernate.validator.constraints.Email import javax.persistence.Embeddable @Embeddable class EmailAddress() { @Email private lateinit var value: String constructor(email: String) : this() { val valid...
package backend.model.misc import org.apache.commons.validator.routines.EmailValidator import org.hibernate.validator.constraints.Email import javax.persistence.Embeddable @Embeddable class EmailAddress { @Email private val value: String constructor(email: String) { val validator = EmailValidato...
agpl-3.0
Kotlin
381f07003a96b87dfe7d668188e4e412a90fcef4
Fix direct access of nullable var
nkming2/libutils-android,nkming2/libutils-android
src/main/kotlin/com/nkming/utils/widget/decorator/FooterDecoration.kt
src/main/kotlin/com/nkming/utils/widget/decorator/FooterDecoration.kt
package com.nkming.utils.widget.decorator import android.graphics.Canvas import android.graphics.Rect import android.support.v7.widget.LinearLayoutManager import android.support.v7.widget.RecyclerView import android.view.View import android.view.ViewGroup import com.nkming.utils.type.ext.childIterator /** * Add a fo...
package com.nkming.utils.widget.decorator import android.graphics.Canvas import android.graphics.Rect import android.support.v7.widget.LinearLayoutManager import android.support.v7.widget.RecyclerView import android.view.View import android.view.ViewGroup import com.nkming.utils.type.ext.childIterator /** * Add a fo...
mit
Kotlin
48e43b6d54df4cc9e855d973a63a27c0a9d3dd4f
add license header
JetBrains/xodus,JetBrains/xodus,JetBrains/xodus
sshd/src/main/kotlin/jetbrains/exodus/javascript/JavaScriptConsole.kt
sshd/src/main/kotlin/jetbrains/exodus/javascript/JavaScriptConsole.kt
/** * Copyright 2010 - 2016 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...
package jetbrains.exodus.javascript import jetbrains.exodus.core.dataStructures.hash.HashMap import org.apache.commons.cli.* import kotlin.system.exitProcess // todo: remove this after XD-563 is fixed fun main(args: Array<String>) { fun getCommandLine(args: Array<String>): CommandLine { fun createOption...
apache-2.0
Kotlin
1d30787b690ca479417c05e4cf48ce48027abed0
fix #49: forcefully initialize indentation options
intellij-solidity/intellij-solidity,intellij-solidity/intellij-solidity,intellij-solidity/intellij-solidity,intellij-solidity/intellij-solidity
src/main/kotlin/me/serce/solidity/ide/formatting/settings.kt
src/main/kotlin/me/serce/solidity/ide/formatting/settings.kt
package me.serce.solidity.ide.formatting import com.intellij.application.options.CodeStyleAbstractConfigurable import com.intellij.application.options.IndentOptionsEditor import com.intellij.application.options.SmartIndentOptionsEditor import com.intellij.application.options.TabbedLanguageCodeStylePanel import com.int...
package me.serce.solidity.ide.formatting import com.intellij.application.options.CodeStyleAbstractConfigurable import com.intellij.application.options.IndentOptionsEditor import com.intellij.application.options.SmartIndentOptionsEditor import com.intellij.application.options.TabbedLanguageCodeStylePanel import com.int...
mit
Kotlin
4cf4d230d47342f8644ccaf264d307d3f6e4a1af
Optimize pop stack clear
chrisbanes/tivi,chrisbanes/tivi
app/src/main/java/me/banes/chris/tivi/extensions/FragmentExtensions.kt
app/src/main/java/me/banes/chris/tivi/extensions/FragmentExtensions.kt
/* * Copyright 2017 Google, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
/* * Copyright 2017 Google, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
apache-2.0
Kotlin
a4e1ae59b93e89910ed1c3c18aa02a4e5ae56f98
fix IDE warning of unsafe string
dbrant/apps-android-wikipedia,wikimedia/apps-android-wikipedia,wikimedia/apps-android-wikipedia,dbrant/apps-android-wikipedia,dbrant/apps-android-wikipedia,wikimedia/apps-android-wikipedia,dbrant/apps-android-wikipedia,wikimedia/apps-android-wikipedia,dbrant/apps-android-wikipedia
app/src/main/java/org/wikipedia/util/ImageUrlUtil.kt
app/src/main/java/org/wikipedia/util/ImageUrlUtil.kt
package org.wikipedia.util import android.net.Uri object ImageUrlUtil { private val WIDTH_IN_IMAGE_URL_REGEX = """/(\d+)px-""".toPattern() @JvmStatic fun getUrlForSize(uri: Uri, size: Int): Uri { return Uri.parse(getUrlForSize(uri.toString(), size)) } @JvmStatic fun getUrlForSize(or...
package org.wikipedia.util import android.net.Uri object ImageUrlUtil { private val WIDTH_IN_IMAGE_URL_REGEX = """/(\d+)px-""".toPattern() @JvmStatic fun getUrlForSize(uri: Uri, size: Int): Uri { return Uri.parse(getUrlForSize(uri.toString(), size)) } @JvmStatic fun getUrlForSize(or...
apache-2.0
Kotlin
443fe728182f1594ed74ef48cf00f33393d1f7ba
refactor #518 Add test case.
toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Jitte
app/src/test/java/jp/toastkid/yobidashi/libs/speech/SpeechMakerTest.kt
app/src/test/java/jp/toastkid/yobidashi/libs/speech/SpeechMakerTest.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
ac90b91febbd48a0411bb3b20953a7940a77389e
Add url of beta api server
ffc-nectec/FFC
ffc/src/main/kotlin/ffc/api/FfcCentral.kt
ffc/src/main/kotlin/ffc/api/FfcCentral.kt
/* * Copyright (c) 2018 NECTEC * National Electronics and Computer Technology Center, Thailand * * 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/...
/* * Copyright (c) 2018 NECTEC * National Electronics and Computer Technology Center, Thailand * * 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/...
apache-2.0
Kotlin
2e15be59af23de2302d7ccebd7ccea31d4f98da3
Fix unnecessary recompose when calling LazyListState.isScrolledToEnd (#7598)
CarlosEsco/tachiyomi
app/src/main/java/eu/kanade/presentation/util/LazyListState.kt
app/src/main/java/eu/kanade/presentation/util/LazyListState.kt
package eu.kanade.presentation.util import androidx.compose.foundation.lazy.LazyListState import androidx.compose.runtime.Composable import androidx.compose.runtime.derivedStateOf import androidx.compose.runtime.getValue import androidx.compose.runtime.mutableStateOf import androidx.compose.runtime.remember import and...
package eu.kanade.presentation.util import androidx.compose.foundation.lazy.LazyListState import androidx.compose.runtime.Composable import androidx.compose.runtime.derivedStateOf import androidx.compose.runtime.getValue import androidx.compose.runtime.mutableStateOf import androidx.compose.runtime.remember import and...
apache-2.0
Kotlin
99066adae3db7785d3b6f697badbb75b8da784a0
Add workaround for issue where closing a connection can take a long time.
charleskorn/batect,charleskorn/batect,charleskorn/batect,charleskorn/batect,charleskorn/batect
app/src/main/kotlin/batect/os/unixsockets/UnixSocketFactory.kt
app/src/main/kotlin/batect/os/unixsockets/UnixSocketFactory.kt
/* Copyright 2017-2018 Charles Korn. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
/* Copyright 2017-2018 Charles Korn. 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
45b26dfb561734a49f47d7a1300f851b67e68a44
Upgrade gradle publish plugin
maxirosson/jdroid-gradle-plugin,maxirosson/jdroid-gradle-plugin,maxirosson/jdroid-gradle-plugin
buildSrc/src/main/kotlin/Libs.kt
buildSrc/src/main/kotlin/Libs.kt
object Libs { // https://github.com/maxirosson/jdroid-java-github/releases const val JDROID_JAVA_GITHUB = "com.jdroidtools:jdroid-java-github:1.1.0" // https://github.com/maxirosson/jdroid-java/blob/master/CHANGELOG.md const val JDROID_JAVA_CORE = "com.jdroidtools:jdroid-java-core:3.0.0" // https...
object Libs { // https://github.com/maxirosson/jdroid-java-github/releases const val JDROID_JAVA_GITHUB = "com.jdroidtools:jdroid-java-github:1.1.0" // https://github.com/maxirosson/jdroid-java/blob/master/CHANGELOG.md const val JDROID_JAVA_CORE = "com.jdroidtools:jdroid-java-core:3.0.0" // https...
apache-2.0
Kotlin
e75ab95a813a1598029ace7353428231e6d17fa6
Update version string to '7.1.0-SNAPSHOT'.
jenetics/jenetics,jenetics/jenetics,jenetics/jenetics,jenetics/jenetics,jenetics/jenetics,jenetics/jenetics,jenetics/jenetics
buildSrc/src/main/kotlin/Env.kt
buildSrc/src/main/kotlin/Env.kt
/* * Java Genetic Algorithm Library (@__identifier__@). * Copyright (c) @__year__@ Franz Wilhelmstötter * * 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/...
/* * Java Genetic Algorithm Library (@__identifier__@). * Copyright (c) @__year__@ Franz Wilhelmstötter * * 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/...
apache-2.0
Kotlin
4d7c858e99763fa99ac5a207b2af7d77db042820
Add Java class version of toParticleIdentifier. (#5063)
PolymerLabs/arcs,PolymerLabs/arcs,PolymerLabs/arcs,PolymerLabs/arcs,PolymerLabs/arcs,PolymerLabs/arcs,PolymerLabs/arcs,PolymerLabs/arcs
java/arcs/core/host/ParticleIdentifier.kt
java/arcs/core/host/ParticleIdentifier.kt
/* * Copyright 2020 Google LLC. * * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * * Code distributed by Google as part of this project is also subject to an additional IP rights * grant found at * http://polymer.github.io/PATENTS.txt */ package arcs.co...
/* * Copyright 2020 Google LLC. * * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * * Code distributed by Google as part of this project is also subject to an additional IP rights * grant found at * http://polymer.github.io/PATENTS.txt */ package arcs.co...
bsd-3-clause
Kotlin
cc9ec79087263edb77b142c3e257afb0bf53f891
Debug application should use the new push interface since v2.1.8. (#294)
RoverPlatform/rover-android,RoverPlatform/rover-android,RoverPlatform/rover-android
debug-app/src/main/java/io/rover/app/debug/DebugApplication.kt
debug-app/src/main/java/io/rover/app/debug/DebugApplication.kt
package io.rover.app.debug import android.app.Application import android.content.Intent import com.google.firebase.iid.FirebaseInstanceId import io.rover.core.CoreAssembler import io.rover.core.Rover import io.rover.debug.DebugAssembler import io.rover.experiences.ExperiencesAssembler import io.rover.location.Location...
package io.rover.app.debug import android.app.Application import android.content.Intent import com.google.firebase.iid.FirebaseInstanceId import io.rover.core.CoreAssembler import io.rover.core.Rover import io.rover.debug.DebugAssembler import io.rover.experiences.ExperiencesAssembler import io.rover.location.Location...
apache-2.0
Kotlin
2ee31f1441295c266001e9e2df58f6032e6c8087
fix linter issues
NiciDieNase/chaosflix,NiciDieNase/chaosflix,NiciDieNase/chaosflix,NiciDieNase/chaosflix
common/src/noFree/java/de/nicidienase/chaosflix/noFreeInit.kt
common/src/noFree/java/de/nicidienase/chaosflix/noFreeInit.kt
import com.microsoft.appcenter.AppCenter import com.microsoft.appcenter.AppCenterService import com.microsoft.appcenter.analytics.Analytics import com.microsoft.appcenter.crashes.Crashes import com.microsoft.appcenter.distribute.Distribute import de.nicidienase.chaosflix.BuildConfig import de.nicidienase.chaosflix.Chao...
import com.microsoft.appcenter.AppCenter import com.microsoft.appcenter.AppCenterService import com.microsoft.appcenter.analytics.Analytics import com.microsoft.appcenter.crashes.Crashes import com.microsoft.appcenter.distribute.Distribute import de.nicidienase.chaosflix.BuildConfig import de.nicidienase.chaosflix.Chao...
mit
Kotlin
6fe247af300d24cb27f62e9cd572b8ab6fa1d3c4
Update Android Components version to 93.0.20210813143343
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 = "93.0.20210813143343" }
/* 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 = "93.0.20210812143121" }
mpl-2.0
Kotlin
8d6212b9ca39b613fcb0b6ea5608a9876f6f4bf5
Cover ID type of message direct (non) conversion
SpineEventEngine/base,SpineEventEngine/base,SpineEventEngine/base
base/src/test/kotlin/io/spine/base/IdTypeTest.kt
base/src/test/kotlin/io/spine/base/IdTypeTest.kt
/* * 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
690f56c87be7116b3b08ea9d2cc0b365f91d8d73
Fix line endings in test to run successfully on windows
kotlinx/kotlinx.html,kotlinx/kotlinx.html,kotlinx/kotlinx.html
jvm/src/test/kotlin/dom-trees.kt
jvm/src/test/kotlin/dom-trees.kt
package html4k.tests import html4k.* import html4k.dom.* import html4k.dom.createHTMLDocument import kotlin.test.assertEquals import org.junit.Test as test class TestDOMTrees { test fun `able to create simple tree`() { val tree = createHTMLDocument().div { id = "test-node" +"conten...
package html4k.tests import html4k.* import html4k.dom.* import html4k.dom.createHTMLDocument import kotlin.test.assertEquals import org.junit.Test as test class TestDOMTrees { test fun `able to create simple tree`() { val tree = createHTMLDocument().div { id = "test-node" +"conten...
apache-2.0
Kotlin
437ace7629c0ad3b18232b09008b634febb3cf5b
Add header
KotlinNLP/SimpleDNN
src/test/kotlin/deeplearning/mergelayers/biaffine/BiaffineLayerUtils.kt
src/test/kotlin/deeplearning/mergelayers/biaffine/BiaffineLayerUtils.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/. * ------------------------------------------...
package deeplearning.mergelayers.biaffine import com.kotlinnlp.simplednn.core.arrays.AugmentedArray import com.kotlinnlp.simplednn.core.functionalities.activations.Tanh import com.kotlinnlp.simplednn.deeplearning.mergelayers.biaffine.BiaffineLayerParameters import com.kotlinnlp.simplednn.deeplearning.mergelayers.biaff...
mpl-2.0
Kotlin
233851379d778da5adf562548fd8c3c1c7f252a6
call FirebaseAuth lazily
greenspand/totemz,greenspand/totemz,greenspand/totemz
app/src/main/java/ro/cluj/totemz/BaseActivity.kt
app/src/main/java/ro/cluj/totemz/BaseActivity.kt
package ro.cluj.totemz import android.app.NotificationManager import android.content.SharedPreferences import android.os.Bundle import android.support.v7.app.AppCompatActivity import com.github.salomonbrys.kodein.* import com.github.salomonbrys.kodein.android.appKodein import com.github.salomonbrys.kodein.android.wit...
package ro.cluj.totemz import android.app.NotificationManager import android.content.SharedPreferences import android.os.Bundle import android.support.v7.app.AppCompatActivity import com.github.salomonbrys.kodein.* import com.github.salomonbrys.kodein.android.appKodein import com.github.salomonbrys.kodein.android.wit...
apache-2.0
Kotlin
f6be710929987e6356d5ed6d2a5b8ae955991615
Change isFuture() and isPast() on LocalDate to variables.
jguerinet/android-utils,jguerinet/Suitcase,jguerinet/android-utils,jguerinet/Suitcase
date/src/main/java/com/guerinet/suitcase/date/extensions/LocalDateExt.kt
date/src/main/java/com/guerinet/suitcase/date/extensions/LocalDateExt.kt
/* * Copyright 2016-2018 Julien Guerinet * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
/* * Copyright 2016-2018 Julien Guerinet * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
apache-2.0
Kotlin
29fb6d52ee5862b0253db544b0357f738feb3034
simplify QueryTest
CruGlobal/android-gto-support,CruGlobal/android-gto-support,GlobalTechnology/android-gto-support
gto-support-db/src/test/java/org/ccci/gto/android/common/db/QueryTest.kt
gto-support-db/src/test/java/org/ccci/gto/android/common/db/QueryTest.kt
package org.ccci.gto.android.common.db import org.ccci.gto.android.common.db.Contract.RootTable import org.ccci.gto.android.common.db.Query.Companion.select import org.hamcrest.CoreMatchers.equalTo import org.hamcrest.CoreMatchers.nullValue import org.hamcrest.MatcherAssert.assertThat import org.hamcrest.core.AnyOf.an...
package org.ccci.gto.android.common.db import android.text.TextUtils import android.util.Pair import org.ccci.gto.android.common.db.Contract.RootTable import org.ccci.gto.android.common.db.Query.Companion.select import org.ccci.gto.android.common.testing.CommonMocks import org.hamcrest.CoreMatchers.`is` import org.ham...
mit
Kotlin
bd17b15dd403048fa99726bf2671b044929d07d2
Update versions
Adventech/sabbath-school-android-2,Adventech/sabbath-school-android-2,Adventech/sabbath-school-android-2
buildSrc/src/main/kotlin/dependencies/Versions.kt
buildSrc/src/main/kotlin/dependencies/Versions.kt
package dependencies object Versions { const val COROUTINES = "1.5.2" const val COMPOSE = "1.0.5" const val MATERIAL = "1.4.0" const val ACCOMPANIST = "0.20.2" object AndroidX { const val APPCOMPAT = "1.3.1" const val RECYCLER_VIEW = "1.2.1" const val LIFECYCLE = "2.4.0" ...
package dependencies object Versions { const val COROUTINES = "1.5.2" const val COMPOSE = "1.0.4" const val MATERIAL = "1.4.0" const val ACCOMPANIST = "0.20.0" object AndroidX { const val APPCOMPAT = "1.3.1" const val RECYCLER_VIEW = "1.2.1" const val LIFECYCLE = "2.4.0" ...
mit
Kotlin
fbcbe4b28696f1fc8574b67f7e480151d01fea84
Add item utilities
pie-flavor/Kludge
src/main/kotlin/flavor/pie/kludge/items.kt
src/main/kotlin/flavor/pie/kludge/items.kt
package flavor.pie.kludge import org.spongepowered.api.block.BlockSnapshot import org.spongepowered.api.block.BlockState import org.spongepowered.api.block.BlockType import org.spongepowered.api.data.key.Keys import org.spongepowered.api.item.ItemType import org.spongepowered.api.item.inventory.ItemStack import org.sp...
mit
Kotlin