commit stringlengths 40 40 | old_file stringlengths 4 236 | new_file stringlengths 4 236 | old_contents stringlengths 1 3.26k | new_contents stringlengths 16 4.43k | subject stringlengths 16 624 | message stringlengths 17 3.29k | lang stringclasses 5
values | license stringclasses 13
values | repos stringlengths 5 91.5k |
|---|---|---|---|---|---|---|---|---|---|
97962e09e64b89ee6330a3567810afefe5eb3b11 | src/main/kotlin/prat/SimpleCorsFilter.kt | src/main/kotlin/prat/SimpleCorsFilter.kt | package prat
import org.springframework.stereotype.Component
import java.io.IOException
import javax.servlet.*
import javax.servlet.http.HttpServletResponse
/**
* Created by pt2121 on 12/10/15.
*/
@Component
class SimpleCorsFilter : Filter {
@Throws(IOException::class, ServletException::class)
override fun doF... | package prat
import org.springframework.stereotype.Component
import java.io.IOException
import javax.servlet.*
import javax.servlet.http.HttpServletResponse
/**
* Created by pt2121 on 12/10/15.
*/
@Component
class SimpleCorsFilter : Filter {
@Throws(IOException::class, ServletException::class)
override fun doF... | Update CORS for PUT request | Update CORS for PUT request
| Kotlin | apache-2.0 | prt2121/invite-backend |
92fd49fcf471c3f52858c40922380d5ce9a8ab95 | rxjava-test/src/main/java/com/elpassion/android/commons/rxjavatest/CompletableExtension.kt | rxjava-test/src/main/java/com/elpassion/android/commons/rxjavatest/CompletableExtension.kt | package com.elpassion.android.commons.rxjavatest
import org.mockito.stubbing.OngoingStubbing
import rx.Completable
fun OngoingStubbing<Completable>.thenNeverending() = thenReturn(Completable.never())
fun OngoingStubbing<Completable>.thenError(exception: Exception) = thenReturn(Completable.error(exception))
fun Ongo... | package com.elpassion.android.commons.rxjavatest
import org.mockito.stubbing.OngoingStubbing
import rx.Completable
import rx.observers.TestSubscriber
fun OngoingStubbing<Completable>.thenNeverending() = thenReturn(Completable.never())
fun OngoingStubbing<Completable>.thenError(exception: Exception) = thenReturn(Comp... | Add test extension method to completable | Add test extension method to completable
| Kotlin | apache-2.0 | elpassion/android-commons,elpassion/android-commons,elpassion/android-commons |
c0238a985fecdec80c23e68beacee319befeedb2 | app/src/test/kotlin/com/felipecosta/microservice/app/notes/frontcontroller/NotesFrontCommandTest.kt | app/src/test/kotlin/com/felipecosta/microservice/app/notes/frontcontroller/NotesFrontCommandTest.kt | package com.felipecosta.microservice.app.notes.frontcontroller
import com.felipecosta.microservice.server.Request
import com.felipecosta.microservice.server.Response
import com.felipecosta.microservice.server.renderer.Renderer
import io.mockk.every
import io.mockk.mockk
import org.junit.Assert.assertEquals
import org.... | package com.felipecosta.microservice.app.notes.frontcontroller
import com.felipecosta.microservice.server.Request
import com.felipecosta.microservice.server.Response
import com.felipecosta.microservice.server.renderer.Renderer
import io.mockk.every
import io.mockk.mockk
import org.junit.jupiter.api.Assertions.assertEq... | Migrate the mockk test sample to JUnit 5 | Migrate the mockk test sample to JUnit 5
| Kotlin | mit | fcostaa/kotlin-microservice,fcostaa/kotlin-microservice,fcostaa/kotlin-microservice |
c53996c37498da411787e4bc45c2b75d63798cc6 | src/main/kotlin/link/kotlin/scripts/LinksSource.kt | src/main/kotlin/link/kotlin/scripts/LinksSource.kt | package link.kotlin.scripts
import kotlinx.coroutines.runBlocking
import link.kotlin.scripts.scripting.ScriptEvaluator
import link.kotlin.scripts.scripting.default
import java.nio.file.Paths
import java.nio.file.Files
import kotlin.streams.toList
interface LinksSource {
fun getLinks(): List<Category>
compani... | package link.kotlin.scripts
import kotlinx.coroutines.runBlocking
import link.kotlin.scripts.scripting.ScriptEvaluator
import java.nio.file.Paths
import java.nio.file.Files
interface LinksSource {
fun getLinks(): List<Category>
companion object
}
private val files = listOf(
"Links.awesome.kts",
"Lib... | Rollback file list, as simplest way to keep links in order | Rollback file list, as simplest way to keep links in order
| Kotlin | apache-2.0 | KotlinBy/awesome-kotlin,KotlinBy/awesome-kotlin,KotlinBy/awesome-kotlin,KotlinBy/awesome-kotlin |
e791b7621164e11c5460aacf9ce8eb40e2d70284 | subprojects/enterprise/enterprise.gradle.kts | subprojects/enterprise/enterprise.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... | Remove unnecessary test runtime dependency declarations | Remove unnecessary test runtime dependency declarations
These are now provided through the dependency on the distribuition.
| Kotlin | apache-2.0 | blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpira... |
b9648cfdc3141651cfc45e9e675fc686f232b9ff | utils/src/main/java/com/glucose/device/Units.kt | utils/src/main/java/com/glucose/device/Units.kt | package com.glucose.device
import android.content.Context
object Units {
/**
* Convert density points to pixels.
*/
fun dpToPx(ctx: Context, dp: Float): Float {
val metrics = ctx.resources.displayMetrics
return dp * (metrics.densityDpi / 160f)
}
/**
* Convert pixels t... | package com.glucose.device
import android.content.Context
object Units {
/**
* Convert density points to pixels.
*/
fun dpToPx(ctx: Context, dp: Float): Float {
val metrics = ctx.resources.displayMetrics
return dp * (metrics.densityDpi / 160f)
}
/**
* Convert pixels t... | Add extension functions for units | Add extension functions for units
| Kotlin | mit | daemontus/glucose,daemontus/android-glucose,daemontus/android-glucose |
74a0a6b40eccaf428febcf5507b99673ce9082e1 | src/com/seancheey/game/Player.kt | src/com/seancheey/game/Player.kt | package com.seancheey.game
import java.io.FileOutputStream
import java.io.ObjectOutputStream
import java.io.Serializable
/**
* Created by Seancheey on 26/05/2017.
* GitHub: https://github.com/Seancheey
*/
class Player(val id: Long, var name: String, val pass_SHA: ByteArray, val robots: ArrayList<RobotModelGroup>)... | package com.seancheey.game
import java.io.File
import java.io.FileOutputStream
import java.io.ObjectOutputStream
import java.io.Serializable
/**
* Created by Seancheey on 26/05/2017.
* GitHub: https://github.com/Seancheey
*/
class Player(val id: Long, var name: String, val pass_SHA: ByteArray, val robots: ArrayLi... | Create saves directory if not exist | Create saves directory if not exist
| Kotlin | mit | Seancheey/Ark-Sonah |
90850324bd7a250ff63ec4bfec93c5615b8b0301 | app/src/main/java/net/squanchy/service/firestore/model/schedule/FirestoreSchedule.kt | app/src/main/java/net/squanchy/service/firestore/model/schedule/FirestoreSchedule.kt | package net.squanchy.service.firestore.model.schedule
import java.util.Date
class FirestoreSchedulePage {
lateinit var day: FirestoreDay
var events: List<FirestoreEvent> = emptyList()
}
class FirestoreDay {
lateinit var id: String
lateinit var date: Date
}
class FirestoreEvent {
lateinit var id:... | package net.squanchy.service.firestore.model.schedule
import com.google.firebase.firestore.PropertyName
import java.util.Date
class FirestoreSchedulePage {
lateinit var day: FirestoreDay
var events: List<FirestoreEvent> = emptyList()
}
class FirestoreDay {
lateinit var id: String
lateinit var date: D... | Use @PropertyName for FirestoreTrack fields which use snake_case on the DB | Use @PropertyName for FirestoreTrack fields which use snake_case on the DB
| Kotlin | apache-2.0 | squanchy-dev/squanchy-android,squanchy-dev/squanchy-android,squanchy-dev/squanchy-android |
a3f150e66f7c47e0a0cefed4d9aa03199dff9e7f | kotlinx-coroutines-core/native/src/Debug.kt | kotlinx-coroutines-core/native/src/Debug.kt | /*
* Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
package kotlinx.coroutines
private var counter = 0
internal actual val Any.hexAddress: String
get() {
return "<not_implemented>" // :todo:
}
internal actual val Any.classSimpleName: String g... | /*
* Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
package kotlinx.coroutines
import kotlin.math.*
internal actual val Any.hexAddress: String get() = abs(id().let { if (it == Int.MIN_VALUE) 0 else it }).toString(16)
internal actual val Any.classSimpleName: ... | Use identity hash code on K/N for debug strings | Use identity hash code on K/N for debug strings
Fixes #1237
| Kotlin | apache-2.0 | Kotlin/kotlinx.coroutines,Kotlin/kotlinx.coroutines,Kotlin/kotlinx.coroutines,Kotlin/kotlinx.coroutines,Kotlin/kotlinx.coroutines |
c8c0ead1ae602928f744fdd317d1542ea91cd70d | build.gradle.kts | build.gradle.kts | buildscript {
repositories {
jcenter()
google()
maven("https://dl.bintray.com/jetbrains/kotlin-native-dependencies")
}
dependencies {
classpath("org.jlleitschuh.gradle:ktlint-gradle:+")
}
}
plugins {
kotlin("jvm") version SamplesVersions.kotlin apply false
id("co... | buildscript {
repositories {
jcenter()
google()
maven("https://dl.bintray.com/jetbrains/kotlin-native-dependencies")
}
dependencies {
classpath("org.jlleitschuh.gradle:ktlint-gradle:+")
}
}
plugins {
kotlin("jvm") version SamplesVersions.kotlin apply false
id("co... | Add ktlint task dependencies in root project | Add ktlint task dependencies in root project
| Kotlin | mit | JLLeitschuh/ktlint-gradle,JLLeitschuh/ktlint-gradle |
5d01c3f206593d9bda9431ce07511cd0be73f010 | activities/src/main/java/splitties/activities/Context.kt | activities/src/main/java/splitties/activities/Context.kt | /*
* Copyright (c) 2018. Louis Cognault Ayeva Derman
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | /*
* Copyright (c) 2018. Louis Cognault Ayeva Derman
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | Add KDoc to start and startActivity | Add KDoc to start and startActivity
| Kotlin | apache-2.0 | LouisCAD/Splitties,LouisCAD/Splitties,LouisCAD/Splitties |
1f80372c20bc852c5f1192b71fb555d0491de09c | app/src/main/java/org/stepik/android/view/base/routing/InternalDeeplinkRouter.kt | app/src/main/java/org/stepik/android/view/base/routing/InternalDeeplinkRouter.kt | package org.stepik.android.view.base.routing
import android.content.ActivityNotFoundException
import android.content.Context
import android.content.Intent
import android.net.Uri
import android.widget.Toast
import org.stepic.droid.BuildConfig
import org.stepic.droid.R
object InternalDeeplinkRouter {
private const ... | package org.stepik.android.view.base.routing
import android.content.ActivityNotFoundException
import android.content.Context
import android.content.Intent
import android.net.Uri
import android.widget.Toast
import org.stepic.droid.BuildConfig
import org.stepic.droid.R
object InternalDeeplinkRouter {
private const ... | Use startActivity instead of resolveActivity | Use startActivity instead of resolveActivity
| Kotlin | apache-2.0 | StepicOrg/stepic-android,StepicOrg/stepik-android,StepicOrg/stepik-android,StepicOrg/stepic-android,StepicOrg/stepic-android,StepicOrg/stepik-android |
cf6e06a767d5d949c205c8c66659891da0203a46 | buildSrc/build.gradle.kts | buildSrc/build.gradle.kts | plugins {
`kotlin-dsl`
}
repositories {
mavenCentral()
}
dependencies {
implementation("com.diffplug.spotless:spotless-plugin-gradle:6.0.0")
}
| plugins {
`kotlin-dsl`
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions {
jvmTarget = "17"
}
}
repositories {
mavenCentral()
}
dependencies {
implementation("com.diffplug.spotless:spotless-p... | Improve consistency of java/kotlin buildSrc | Improve consistency of java/kotlin buildSrc
Use same version of Java across both.
| Kotlin | apache-2.0 | ajoberstar/grgit,ajoberstar/grgit |
c951cae69eac8e717b575225428cf335d6a58f2b | app/src/main/java/com/farmerbb/notepad/ui/components/NotepadTheme.kt | app/src/main/java/com/farmerbb/notepad/ui/components/NotepadTheme.kt | /* Copyright 2022 Braden Farmer
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | /* Copyright 2022 Braden Farmer
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | Apply themed colors to text selection handle / background | Apply themed colors to text selection handle / background
| Kotlin | apache-2.0 | farmerbb/Notepad |
77fcbceab8529b8e0deee7f8270e441cf4fbc692 | samples/android-app/src/androidMain/kotlin/com/example/splitties/extensions/UiMode.kt | samples/android-app/src/androidMain/kotlin/com/example/splitties/extensions/UiMode.kt | /*
* Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
*/
package com.example.splitties.extensions
import android.app.UiModeManager
import android.content.res.Configuration
import androidx.appcompat.app.AppCompatActivity
import splitties.exceptions.illegalArg... | /*
* Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
*/
package com.example.splitties.extensions
import android.app.Activity
import androidx.appcompat.app.AppCompatDelegate.MODE_NIGHT_AUTO
import androidx.appcompat.app.AppCompatDelegate.MODE_NIGHT_FOLLOW_SY... | Use setDefaultNightMode in place of setLocalNightMode | Use setDefaultNightMode in place of setLocalNightMode
This fixes black screen when resuming DialogFragment after night mode
was enabled.
| Kotlin | apache-2.0 | LouisCAD/Splitties,LouisCAD/Splitties,LouisCAD/Splitties |
b923da0e7a8857fd7b9741c927295de5d11cff43 | src/test/kotlin/com/elpassion/intelijidea/action/configure/selector/MFSelectorTest.kt | src/test/kotlin/com/elpassion/intelijidea/action/configure/selector/MFSelectorTest.kt | package com.elpassion.intelijidea.action.configure.selector
import com.elpassion.android.commons.rxjavatest.thenJust
import com.intellij.testFramework.fixtures.LightPlatformCodeInsightFixtureTestCase
import com.nhaarman.mockito_kotlin.any
import com.nhaarman.mockito_kotlin.mock
import com.nhaarman.mockito_kotlin.whene... | package com.elpassion.intelijidea.action.configure.selector
import com.elpassion.android.commons.rxjavatest.thenJust
import com.intellij.testFramework.fixtures.LightPlatformCodeInsightFixtureTestCase
import com.nhaarman.mockito_kotlin.any
import com.nhaarman.mockito_kotlin.mock
import com.nhaarman.mockito_kotlin.whene... | Return empty result when no changes in ui | [89] Return empty result when no changes in ui
| Kotlin | apache-2.0 | elpassion/mainframer-intellij-plugin,elpassion/mainframer-intellij-plugin,elpassion/mainframer-intellij-plugin |
d7c8a4afe153b838ec35339d5f2f642d6fc11bf8 | samples/hello-android/app/build.gradle.kts | samples/hello-android/app/build.gradle.kts | import org.jetbrains.kotlin.config.KotlinCompilerVersion
plugins {
id("com.android.application")
id("kotlin-android")
id("kotlin-android-extensions")
}
android {
compileSdkVersion(27)
defaultConfig {
applicationId = "org.gradle.kotlin.dsl.samples.androidstudio"
minSdkVersion(15)
... | import org.jetbrains.kotlin.config.KotlinCompilerVersion
plugins {
id("com.android.application")
kotlin("android")
kotlin("android.extensions")
}
android {
compileSdkVersion(27)
defaultConfig {
applicationId = "org.gradle.kotlin.dsl.samples.androidstudio"
minSdkVersion(15)
... | Use `kotlin` method in plugins scope for Android example | Use `kotlin` method in plugins scope for Android example
Signed-off-by: Mike Kobit <6b5be85140a72f835339fc5384eb248e653d0103@gmail.com>
| Kotlin | apache-2.0 | robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle-script-kotlin,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle-script-kotlin,gradle/gradle,b... |
1ca81af219875dc97b2e6777155883fd6bb8adc4 | junit-jupiter-api/junit-jupiter-api.gradle.kts | junit-jupiter-api/junit-jupiter-api.gradle.kts | import org.gradle.plugins.ide.eclipse.model.Classpath
import org.gradle.plugins.ide.eclipse.model.ProjectDependency
description = "JUnit Jupiter API"
dependencies {
api("org.opentest4j:opentest4j:${Versions.ota4j}")
api(project(":junit-platform-commons"))
compileOnly("org.jetbrains.kotlin:kotlin-stdlib")
runtimeO... | import org.gradle.plugins.ide.eclipse.model.Classpath
import org.gradle.plugins.ide.eclipse.model.ProjectDependency
description = "JUnit Jupiter API"
dependencies {
api("org.opentest4j:opentest4j:${Versions.ota4j}")
api(project(":junit-platform-commons"))
compileOnly("org.jetbrains.kotlin:kotlin-stdlib")
runtimeO... | Use Action instead of Closure | Use Action instead of Closure
| Kotlin | epl-1.0 | junit-team/junit-lambda,sbrannen/junit-lambda |
1dcdf0d5670e678f18dd9b1518e6e1d606f22c32 | src/main/java/net/moltendorf/Bukkit/IntelliDoors/listener/Redstone.kt | src/main/java/net/moltendorf/Bukkit/IntelliDoors/listener/Redstone.kt | package net.moltendorf.Bukkit.IntelliDoors.listener
import net.moltendorf.Bukkit.IntelliDoors.Settings
import net.moltendorf.Bukkit.IntelliDoors.controller.DoubleDoor
import net.moltendorf.Bukkit.IntelliDoors.controller.SingleDoor
import org.bukkit.event.EventHandler
import org.bukkit.event.EventPriority
import org.bu... | package net.moltendorf.Bukkit.IntelliDoors.listener
import net.moltendorf.Bukkit.IntelliDoors.Settings
import net.moltendorf.Bukkit.IntelliDoors.controller.DoubleDoor
import net.moltendorf.Bukkit.IntelliDoors.controller.SingleDoor
import org.bukkit.event.EventHandler
import org.bukkit.event.EventPriority
import org.bu... | Rename method to match event object | Rename method to match event object
| Kotlin | mit | moltendorf/IntelliDoors |
a6f75c7778860f7a9deb226b21a6c676dc8b1b51 | src/test/kotlin/com/emberjs/EmberTestFixtures.kt | src/test/kotlin/com/emberjs/EmberTestFixtures.kt | package com.emberjs
import com.intellij.mock.MockVirtualFile
import java.io.File
import java.nio.file.Path
import java.nio.file.Paths
object EmberTestFixtures {
val RESOURCE_PATH = Paths.get("src/test/resources/com/emberjs").toAbsolutePath()
val EXAMPLE = from(RESOURCE_PATH.resolve("fixtures/example"))
... | package com.emberjs
import com.intellij.mock.MockVirtualFile
import java.io.File
import java.nio.file.Path
import java.nio.file.Paths
object EmberTestFixtures {
val FIXTURES_RESOURCE = ClassLoader.getSystemResource("com/emberjs/fixtures")
val FIXTURES_PATH = Paths.get(FIXTURES_RESOURCE.toURI()).toAbsolutePat... | Load fixtures path from class loader | TestFixtures: Load fixtures path from class loader
| Kotlin | apache-2.0 | Turbo87/intellij-emberjs,Turbo87/intellij-emberjs,Turbo87/intellij-emberjs,Turbo87/intellij-emberjs |
b23bad849bbaae6c5c010496562cbf24514a0e23 | ground/src/main/java/com/google/android/ground/persistence/remote/firestore/schema/MultipleChoiceConverter.kt | ground/src/main/java/com/google/android/ground/persistence/remote/firestore/schema/MultipleChoiceConverter.kt | /*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | /*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | Fix incorrect list type passed to MultipleChoice | Fix incorrect list type passed to MultipleChoice
| Kotlin | apache-2.0 | google/ground-android,google/ground-android,google/ground-android |
d9f6143c5a965072792f4e10c579bd82d71417c3 | junit-jupiter-api/junit-jupiter-api.gradle.kts | junit-jupiter-api/junit-jupiter-api.gradle.kts | import org.gradle.plugins.ide.eclipse.model.Classpath
import org.gradle.plugins.ide.eclipse.model.ProjectDependency
description = "JUnit Jupiter API"
dependencies {
api("org.opentest4j:opentest4j:${Versions.ota4j}")
api(project(":junit-platform-commons"))
compileOnly("org.jetbrains.kotlin:kotlin-stdlib")
runtimeO... | description = "JUnit Jupiter API"
dependencies {
api("org.opentest4j:opentest4j:${Versions.ota4j}")
api(project(":junit-platform-commons"))
compileOnly("org.jetbrains.kotlin:kotlin-stdlib")
}
tasks.jar {
manifest {
attributes(
"Automatic-Module-Name" to "org.junit.jupiter.api"
)
}
}
| Remove runtime dependency from Jupiter API to its Engine | Remove runtime dependency from Jupiter API to its Engine
Reverts #1669
| Kotlin | epl-1.0 | junit-team/junit-lambda,sbrannen/junit-lambda |
70d5c973b180a134c4829fe2ec85c87d62c8dcdd | buildSrc/src/main/kotlin/config/ProjectVersions.kt | buildSrc/src/main/kotlin/config/ProjectVersions.kt | /*
* Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
*/
@file:Suppress("PackageDirectoryMismatch")
import org.gradle.api.Project
import org.gradle.kotlin.dsl.extra
import java.util.Properties
object ProjectVersions {
const val androidSdk = 29
}
val Pr... | /*
* Copyright 2019-2021 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
*/
@file:Suppress("PackageDirectoryMismatch")
import org.gradle.api.Project
import org.gradle.kotlin.dsl.extra
import java.util.Properties
object ProjectVersions {
const val androidSdk = 29
}
v... | Remove no longer needed isDevVersion extension property | Remove no longer needed isDevVersion extension property
| Kotlin | apache-2.0 | LouisCAD/Splitties,LouisCAD/Splitties,LouisCAD/Splitties |
1dcc3104d339c881c1651fc2c886dc62c0270c94 | example/kotlin/build.gradle.kts | example/kotlin/build.gradle.kts | import nu.studer.gradle.rocker.RockerConfig
plugins {
id("nu.studer.rocker") version "2.1"
id("java")
}
repositories {
jcenter()
}
val rockerVersion by extra("1.3.0")
rocker {
create("main") {
templateDir = file("src/rocker")
outputDir = file("src/generated/rocker")
isOptimiz... | import nu.studer.gradle.rocker.RockerConfig
plugins {
id("nu.studer.rocker") version "2.1.1"
id("java")
}
repositories {
jcenter()
}
val rockerVersion by extra("1.3.0")
rocker {
create("main") {
templateDir.set(file("src/rocker"))
outputDir.set(file("src/generated/rocker"))
o... | Clean up Kotlin DSL example | Clean up Kotlin DSL example
| Kotlin | apache-2.0 | etiennestuder/gradle-rocker-plugin,etiennestuder/gradle-rocker-plugin,etiennestuder/gradle-rocker-plugin |
346eb9ea7482ffeb8f33a34bd0d2d18d28735d91 | subprojects/composite-builds/build.gradle.kts | subprojects/composite-builds/build.gradle.kts | plugins {
id("gradlebuild.distribution.api-java")
}
dependencies {
implementation(project(":base-services"))
implementation(project(":messaging"))
implementation(project(":logging"))
implementation(project(":core-api"))
implementation(project(":model-core"))
implementation(project(":core"))... | plugins {
id("gradlebuild.distribution.api-java")
}
dependencies {
implementation(project(":base-services"))
implementation(project(":messaging"))
implementation(project(":logging"))
implementation(project(":core-api"))
implementation(project(":model-core"))
implementation(project(":core"))... | Add missing test implementation dependency | Add missing test implementation dependency
| Kotlin | apache-2.0 | blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpira... |
908064ff40a6a5a036d78b203bf96e7a59ee6ed9 | subprojects/internal-testing/build.gradle.kts | subprojects/internal-testing/build.gradle.kts | plugins {
id("gradlebuild.internal.java")
}
dependencies {
implementation(project(":base-services"))
implementation(project(":native"))
implementation(libs.groovy)
implementation(libs.slf4jApi)
implementation(libs.guava)
implementation(libs.commonsLang)
implementation(libs.commonsIo)
... | plugins {
id("gradlebuild.internal.java")
}
dependencies {
implementation(project(":base-services"))
implementation(project(":native"))
implementation(libs.groovy)
implementation(libs.groovyJson)
implementation(libs.groovyXml)
implementation(libs.slf4jApi)
implementation(libs.guava)
... | Upgrade 'internal-testing' to Groovy 3 | Upgrade 'internal-testing' to Groovy 3
| Kotlin | apache-2.0 | blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpira... |
b07c73e554f8e61a05c1b0074015aa9f5f6339dc | src/main/kotlin/venus/riscv/utils.kt | src/main/kotlin/venus/riscv/utils.kt | package venus.riscv
fun userStringToInt(s: String): Int {
if (isCharacterLiteral(s)) {
return s[1].toInt()
}
val radix = when (s.take(2)) {
"0x" -> 16
"0b" -> 2
else -> return s.toLong().toInt()
}
return s.drop(2).toLong(radix).toInt()
}
private fun isCharacterLiter... | package venus.riscv
fun userStringToInt(s: String): Int {
if (isCharacterLiteral(s)) {
return characterLiteralToInt(s)
}
val radix = when (s.take(2)) {
"0x" -> 16
"0b" -> 2
else -> return s.toLong().toInt()
}
return s.drop(2).toLong(radix).toInt()
}
private fun isCh... | Improve support for parsing character literals | Improve support for parsing character literals
| Kotlin | mit | kvakil/venus,kvakil/venus,kvakil/venus |
6277bc3272cda44ae2c1179a205f9cebc025b754 | src/commonTest/kotlin/app/cash/turbine/testUtil.kt | src/commonTest/kotlin/app/cash/turbine/testUtil.kt | /*
* Copyright (C) 2020 Square, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | /*
* Copyright (C) 2020 Square, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | Use awaitCancellation instead of suspendCancellableCoroutine | Use awaitCancellation instead of suspendCancellableCoroutine | Kotlin | apache-2.0 | cashapp/turbine |
c56f8ae145dc19b56a0432635a4cd5dfb6fe2a08 | build.gradle.kts | build.gradle.kts | plugins {
id("adventure.parent-build-logic")
}
group = "net.kyori"
version = "4.8.1"
description = "A user-interface library for Minecraft: Java Edition."
| plugins {
id("adventure.parent-build-logic")
}
group = "net.kyori"
version = "4.9.0-SNAPSHOT"
description = "A user-interface library for Minecraft: Java Edition."
| Return to development on 4.9.0 | release: Return to development on 4.9.0
| Kotlin | mit | KyoriPowered/text,KyoriPowered/text |
fc6389dafaebbb8027f47fe9e35d8694194b38a2 | migration/src/main/java/br/com/bloder/migration/BetterMigration.kt | migration/src/main/java/br/com/bloder/migration/BetterMigration.kt | package br.com.bloder.migration
import br.com.bloder.migration.internal.detail.MigrationDetail
import io.realm.DynamicRealm
import io.realm.RealmMigration
/**
* Abstract better migration actions to transform in
* a realm migration
*/
class BetterMigration(private val migration: MigrationDetail) : RealmMigration {
... | package br.com.bloder.migration
import br.com.bloder.migration.internal.detail.MigrationDetail
import io.realm.DynamicRealm
import io.realm.RealmMigration
/**
* Abstract better migration actions to transform in
* a realm migration
*/
class BetterMigration(private val migration: MigrationDetail) : RealmMigration {
... | Fix wrong param in better migration class | Fix wrong param in better migration class
| Kotlin | mit | ingresso-rapido-mobile/better-migrations,ingresso-rapido-mobile/better-migrations |
acb6574b9b7728d731c672195e35eff06706c7f9 | server/src/test/kotlin/org/javacs/kt/JavaToKotlinTest.kt | server/src/test/kotlin/org/javacs/kt/JavaToKotlinTest.kt | package org.javacs.kt
import org.javacs.kt.j2k.convertJavaToKotlin
import org.junit.Test
import org.junit.Assert.assertThat
import org.hamcrest.Matchers.equalTo
import java.nio.file.Paths
class JavaToKotlinTest : LanguageServerTestFixture("j2k") {
@Test fun `test j2k conversion`() {
val javaCode = workspa... | package org.javacs.kt
import org.javacs.kt.j2k.convertJavaToKotlin
import org.junit.Test
import org.junit.Assert.assertThat
import org.hamcrest.Matchers.equalTo
import java.nio.file.Paths
class JavaToKotlinTest : LanguageServerTestFixture("j2k") {
@Test fun `test j2k conversion`() {
val javaCode = workspa... | Update J2K test to always use linefeeds | Update J2K test to always use linefeeds
| Kotlin | mit | fwcd/kotlin-language-server,fwcd/kotlin-language-server,fwcd/kotlin-language-server |
08c81e849e180da6153d0224abaa2cb983242ee5 | ktor-utils/common/src/io/ktor/util/Annotations.kt | ktor-utils/common/src/io/ktor/util/Annotations.kt | package io.ktor.util
/**
* API marked with this annotation is ktor internal and it is not intended to be used outside.
* It could be modified or removed without any notice. Using it outside of ktor could cause undefined behaviour and/or
* any strange effects.
*
* We are strongly recommend to not use such API.
*/... | package io.ktor.util
/**
* API marked with this annotation is ktor internal and it is not intended to be used outside.
* It could be modified or removed without any notice. Using it outside of ktor could cause undefined behaviour and/or
* any strange effects.
*
* We are strongly recommend to not use such API.
*/... | Make KtorExperimentalAPI applicable to all suitable targets | Make KtorExperimentalAPI applicable to all suitable targets
| Kotlin | apache-2.0 | ktorio/ktor,ktorio/ktor,ktorio/ktor,ktorio/ktor |
231cd4dbe97667f76633ce0bccd06458372409b8 | .teamcity/Gradle_Check/configurations/FunctionalTest.kt | .teamcity/Gradle_Check/configurations/FunctionalTest.kt | package configurations
import jetbrains.buildServer.configs.kotlin.v10.BuildType
import model.CIBuildModel
import model.OS
import model.TestCoverage
import model.TestType
class FunctionalTest(testCoverage : TestCoverage, bucket: Int = 0) : BuildType({
uuid = "${testCoverage.asId()}_$bucket"
extId = uuid
n... | package configurations
import jetbrains.buildServer.configs.kotlin.v10.BuildType
import model.CIBuildModel
import model.OS
import model.TestCoverage
import model.TestType
class FunctionalTest(testCoverage : TestCoverage, bucket: Int = 0) : BuildType({
uuid = "${testCoverage.asId()}_$bucket"
extId = uuid
n... | Set Android home for soak tests | Set Android home for soak tests
| Kotlin | apache-2.0 | robinverduijn/gradle,gradle/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,gradle/gradle,robinverduijn/gradle,gradle/gradle,b... |
8a757d6d5c746b4059634a7a1693fb9308531a4d | gto-support-picasso/src/main/java/org/ccci/gto/android/common/picasso/widget/TextViewDrawableEndTarget.kt | gto-support-picasso/src/main/java/org/ccci/gto/android/common/picasso/widget/TextViewDrawableEndTarget.kt | package org.ccci.gto.android.common.picasso.widget
import android.graphics.drawable.Drawable
import android.widget.TextView
import org.ccci.gto.android.common.picasso.BaseViewTarget
import org.ccci.gto.android.common.picasso.R
class TextViewDrawableEndTarget(view: TextView) : BaseViewTarget<TextView>(view) {
init... | package org.ccci.gto.android.common.picasso.widget
import android.graphics.drawable.Drawable
import android.widget.TextView
import org.ccci.gto.android.common.picasso.BaseViewTarget
import org.ccci.gto.android.common.picasso.R
class TextViewDrawableEndTarget(view: TextView) : BaseViewTarget<TextView>(view) {
init... | Replace end drawable instead of start | Replace end drawable instead of start
| Kotlin | mit | CruGlobal/android-gto-support,GlobalTechnology/android-gto-support,CruGlobal/android-gto-support |
b10df5d59623c36f1f99fabaf64e86850de165f2 | .teamcity/src/main/kotlin/configurations/VcsTriggers.kt | .teamcity/src/main/kotlin/configurations/VcsTriggers.kt | /*
* 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... | Fix branch name case in triggers | Fix branch name case in triggers
| Kotlin | apache-2.0 | blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,grad... |
811d222a3af7587ca05ab7f4e8ea2d2bf6a2659d | src/main/kotlin/com/demonwav/mcdev/i18n/inspections/TranslationInspection.kt | src/main/kotlin/com/demonwav/mcdev/i18n/inspections/TranslationInspection.kt | /*
* Minecraft Dev for IntelliJ
*
* https://minecraftdev.org
*
* Copyright (c) 2017 minecraft-dev
*
* MIT License
*/
package com.demonwav.mcdev.i18n.inspections
import com.intellij.codeInspection.BaseJavaLocalInspectionTool
import com.intellij.codeInspection.ProblemsHolder
import com.intellij.psi.PsiElementVi... | /*
* Minecraft Dev for IntelliJ
*
* https://minecraftdev.org
*
* Copyright (c) 2017 minecraft-dev
*
* MIT License
*/
package com.demonwav.mcdev.i18n.inspections
import com.demonwav.mcdev.platform.mcp.McpModuleType
import com.intellij.codeInspection.BaseJavaLocalInspectionTool
import com.intellij.codeInspectio... | Check for MCP module type for translation inspections | Check for MCP module type for translation inspections
| Kotlin | mit | DemonWav/MinecraftDev,DemonWav/MinecraftDevIntelliJ,DemonWav/MinecraftDevIntelliJ,minecraft-dev/MinecraftDev,minecraft-dev/MinecraftDev,DemonWav/IntelliJBukkitSupport,minecraft-dev/MinecraftDev,DemonWav/MinecraftDev,DemonWav/MinecraftDev,DemonWav/MinecraftDevIntelliJ |
8fcf8c82c7c86f0318b0938247fe50453fad7f05 | src/main/kotlin/io/kotlintest/mock/MockitoSugar.kt | src/main/kotlin/io/kotlintest/mock/MockitoSugar.kt | package io.kotlintest.mock
import org.mockito.Mockito
import org.mockito.stubbing.OngoingStubbing
inline fun <reified T> mock(): T {
val klass = T::class
val t = Mockito.mock(Class.forName(klass.qualifiedName)) as T
return t
}
fun <A> `when`(methodCall: A): OngoingStubbing<A> = Mockito.`when`(methodCall)
| package io.kotlintest.mock
import org.mockito.Mockito
import org.mockito.stubbing.OngoingStubbing
inline fun <reified T> mock(): T {
val klass = T::class
val t = Mockito.mock(Class.forName(klass.qualifiedName)) as T
return t
}
fun <T> spy(instance: T) = Mockito.spy(instance)
inline fun <reified T : Any> spy()... | Add Mockito sugar for creating spies. | Add Mockito sugar for creating spies.
| Kotlin | mit | sksamuel/ktest,kotlintest/kotlintest,kotlintest/kotlintest,kotlintest/kotlintest |
9beedb6a599cf010292b26ca41aee694115be7fb | app/src/main/java/jp/toastkid/yobidashi/main/StartUp.kt | app/src/main/java/jp/toastkid/yobidashi/main/StartUp.kt | package jp.toastkid.yobidashi.main
import android.support.annotation.IdRes
import android.support.annotation.StringRes
import jp.toastkid.yobidashi.R
/**
* Start-up view definition.
*
* @param titleId
* @param radioButtonId
*
* @author toastkidjp
*/
enum class StartUp(@StringRes val titleId: Int, @IdRes val ra... | package jp.toastkid.yobidashi.main
import android.support.annotation.IdRes
import android.support.annotation.StringRes
import jp.toastkid.yobidashi.R
/**
* Start-up view definition.
*
* @param titleId
* @param radioButtonId
*
* @author toastkidjp
*/
enum class StartUp(@StringRes val titleId: Int, @IdRes val ra... | Modify default startup to browser. | Modify default startup to browser.
| Kotlin | epl-1.0 | toastkidjp/Jitte,toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt |
7aa5b52a7e8cd69a384ef29aeeb199061b92584f | core/src/test/kotlin/format/FileGeneratorTestCase.kt | core/src/test/kotlin/format/FileGeneratorTestCase.kt | package org.jetbrains.dokka.tests
import org.jetbrains.dokka.DocumentationNode
import org.jetbrains.dokka.FileGenerator
import org.jetbrains.dokka.FormatService
import org.junit.Before
import org.junit.Rule
import org.junit.rules.TemporaryFolder
abstract class FileGeneratorTestCase {
abstract val formatService: ... | package org.jetbrains.dokka.tests
import org.jetbrains.dokka.DocumentationNode
import org.jetbrains.dokka.FileGenerator
import org.jetbrains.dokka.FormatService
import org.jetbrains.dokka.relativeToRoot
import org.junit.Before
import org.junit.Rule
import org.junit.rules.TemporaryFolder
abstract class FileGeneratorT... | Check file path in testData, when more then one node | Check file path in testData, when more then one node
| Kotlin | apache-2.0 | google/dokka,Kotlin/dokka,Kotlin/dokka,Kotlin/dokka,google/dokka,Kotlin/dokka,Kotlin/dokka,Kotlin/dokka |
53bc98950c2e5f6d4b5a464b73386707034d2a3b | app/src/main/java/de/christinecoenen/code/zapp/models/shows/PersistedMediathekShow.kt | app/src/main/java/de/christinecoenen/code/zapp/models/shows/PersistedMediathekShow.kt | package de.christinecoenen.code.zapp.models.shows
import androidx.room.Embedded
import androidx.room.Entity
import androidx.room.Index
import androidx.room.PrimaryKey
import org.joda.time.DateTime
@Entity(indices = [Index(value = ["apiId"], unique = true)])
data class PersistedMediathekShow(
@PrimaryKey(autoGenerat... | package de.christinecoenen.code.zapp.models.shows
import androidx.room.Embedded
import androidx.room.Entity
import androidx.room.Index
import androidx.room.PrimaryKey
import org.joda.time.DateTime
@Entity(indices = [Index(value = ["apiId"], unique = true)])
data class PersistedMediathekShow(
@PrimaryKey(autoGenerat... | Fix NaN error in downloads tab | Fix NaN error in downloads tab
| Kotlin | mit | cemrich/zapp |
e1009098152c01b34b751d9e40ee531be63902f8 | build.gradle.kts | build.gradle.kts | buildscript {
val kotlinVersion = "1.0.6"
extra["kotlinVersion"] = kotlinVersion
repositories {
jcenter()
}
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
}
}
apply {
plugin("idea")
plugin("kotlin")
}
repositories {
jcenter()
}
... | import org.eclipse.jgit.api.Git as JGit
import org.eclipse.jgit.storage.file.FileRepositoryBuilder
buildscript {
val kotlinVersion = "1.0.6"
extra["kotlinVersion"] = kotlinVersion
repositories {
jcenter()
}
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinV... | Add a task about Git operation | Add a task about Git operation
| Kotlin | mit | kamatama41/gradle-embulk-plugin,kamatama41/gradle-embulk-plugin |
15d8b986e22906ad1e32d6b0a78833fa5555be1e | demo-google-play/src/main/java/nl/dionsegijn/konfettidemo/widgets/NonSwipeableViewPager.kt | demo-google-play/src/main/java/nl/dionsegijn/konfettidemo/widgets/NonSwipeableViewPager.kt | package nl.dionsegijn.konfettidemo.widgets
import android.content.Context
import android.support.v4.view.ViewPager
import android.util.AttributeSet
import android.view.MotionEvent
/**
* Created by dionsegijn on 5/23/17.
*/
class NonSwipeableViewPager : ViewPager {
constructor(context: Context?) : super(contex... | package nl.dionsegijn.konfettidemo.widgets
import android.content.Context
import android.support.v4.view.ViewPager
import android.util.AttributeSet
import android.view.MotionEvent
/**
* Created by dionsegijn on 5/23/17.
*/
class NonSwipeableViewPager : ViewPager {
constructor(context: Context) : super(context... | Fix nullable context and use expression body | Fix nullable context and use expression body
| Kotlin | isc | DanielMartinus/Konfetti |
df47eef577ef5de5bcfd29c0a9196116ef7c5553 | pythagoras/src/main/kotlin/pythagoras/util/Platform.kt | pythagoras/src/main/kotlin/pythagoras/util/Platform.kt | //
// Pythagoras - a collection of geometry classes
// http://github.com/samskivert/pythagoras
package pythagoras.util
/**
* Handles differences between the JDK and GWT platforms.
*/
object Platform {
/**
* Returns a hash code for the supplied float value.
*/
fun hashCode(f1: Float): Int {
... | //
// Pythagoras - a collection of geometry classes
// http://github.com/samskivert/pythagoras
package pythagoras.util
/**
* Handles differences between the JDK and GWT platforms.
*/
object Platform {
/**
* Returns a hash code for the supplied float value.
*/
fun hashCode(f1: Float): Int {
... | Make pythagoras.util kotlin JS compatible | Make pythagoras.util kotlin JS compatible
| Kotlin | apache-2.0 | cdietze/klay |
dc1151edc09034cef79d028b90b1f315041e02cc | build.gradle.kts | build.gradle.kts | import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm").version("1.6.20")
id("com.vanniktech.maven.publish") version ("0.19.0")
id("com.github.ben-manes.versions") version "0.42.0"
}
repositories {
mavenCentral()
}
buildscript {
extra["kotlinVersion"] = "1.6.20"
repositories {
... | import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.6.20"
id("com.vanniktech.maven.publish") version "0.19.0"
id("com.github.ben-manes.versions") version "0.42.0"
}
repositories {
mavenCentral()
}
buildscript {
repositories {
mavenCentral()
}
dependencies {
... | Use consistent formatting with specifying the `version` in `plugins`. | Use consistent formatting with specifying the `version` in `plugins`.
| Kotlin | apache-2.0 | chimbori/crux,chimbori/crux |
16ffd2ba8e9da87422c36f2c0c7c64d869eac701 | subprojects/base-services/base-services.gradle.kts | subprojects/base-services/base-services.gradle.kts | /*
* A set of generic services and utilities.
*
* Should have a very small set of dependencies, and should be appropriate to embed in an external
* application (eg as part of the tooling API).
*/
import java.util.concurrent.Callable
plugins {
`java-library`
id("classycle")
}
val javaVersion: JavaVersion... | /*
* A set of generic services and utilities.
*
* Should have a very small set of dependencies, and should be appropriate to embed in an external
* application (eg as part of the tooling API).
*/
import java.util.concurrent.Callable
plugins {
`java-library`
id("classycle")
}
val javaVersion: JavaVersion... | Configure `jmh` extension dynamically via `withGroovyBuilder` | Configure `jmh` extension dynamically via `withGroovyBuilder`
Since the extension type is not available to the script.
| Kotlin | apache-2.0 | robinverduijn/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,lsmaira/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,gradle/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,blindpir... |
e6d3cc860478ac36a2e5be9b8b836b534bb78fc1 | src/main/kotlin/Language.kt | src/main/kotlin/Language.kt | /*
* Copyright 2013-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 2013-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... | Remove need for columnIndex within the config file | Remove need for columnIndex within the config file
| Kotlin | apache-2.0 | jguerinet/mobile-string-parser,jguerinet/mobile-string-parser |
1835b1795e330f50bbee80c1efe97ca2644a8de6 | kaadin-core/src/main/kotlin/ch/frankel/kaadin/Common.kt | kaadin-core/src/main/kotlin/ch/frankel/kaadin/Common.kt | /*
* Copyright 2016 Nicolas Fränkel
*
* 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... | /*
* Copyright 2016 Nicolas Fränkel
*
* 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... | Add function to get current UI and set theme | Add function to get current UI and set theme
| Kotlin | apache-2.0 | nfrankel/kaadin,nfrankel/kaadin,nfrankel/kaadin |
1154f05a8a686b7a9ba46691a11ec496c3a502b0 | ktor-core/src/org/jetbrains/ktor/routing/RoutingPath.kt | ktor-core/src/org/jetbrains/ktor/routing/RoutingPath.kt | package org.jetbrains.ktor.routing
import org.jetbrains.ktor.http.*
class RoutingPath private constructor(val parts: List<RoutingPathSegment>) {
companion object {
val root: RoutingPath = RoutingPath(listOf())
fun parse(path: String): RoutingPath {
if (path == "/") return root
... | package org.jetbrains.ktor.routing
import org.jetbrains.ktor.http.decodeURLPart
class RoutingPath private constructor(val parts: List<RoutingPathSegment>) {
companion object {
val root: RoutingPath = RoutingPath(listOf())
fun parse(path: String): RoutingPath {
if (path == "/") return r... | Replace size check with isNotEmpty | Replace size check with isNotEmpty
| Kotlin | apache-2.0 | ktorio/ktor,ktorio/ktor,ktorio/ktor,ktorio/ktor |
bc680b2d0d88196c81d362c6c9c8a3f8af53e0a7 | src/nl/rubensten/texifyidea/run/evince/EvinceForwardSearch.kt | src/nl/rubensten/texifyidea/run/evince/EvinceForwardSearch.kt | package nl.rubensten.texifyidea.run.evince
import com.intellij.execution.runners.ExecutionEnvironment
import nl.rubensten.texifyidea.TeXception
import nl.rubensten.texifyidea.psi.LatexEnvironment
import nl.rubensten.texifyidea.run.LatexRunConfiguration
import nl.rubensten.texifyidea.util.*
import org.jetbrains.concurr... | package nl.rubensten.texifyidea.run.evince
import com.intellij.execution.runners.ExecutionEnvironment
import nl.rubensten.texifyidea.TeXception
import nl.rubensten.texifyidea.psi.LatexEnvironment
import nl.rubensten.texifyidea.run.LatexRunConfiguration
import nl.rubensten.texifyidea.util.*
import org.jetbrains.concurr... | Remove check which does not do forward search in preamble because this is unnecessary (forward search works fine) and behaves incorrectly (at least in one case). | Remove check which does not do forward search in preamble because this is unnecessary (forward search works fine) and behaves incorrectly (at least in one case).
| Kotlin | mit | Ruben-Sten/TeXiFy-IDEA,Ruben-Sten/TeXiFy-IDEA,Ruben-Sten/TeXiFy-IDEA,Ruben-Sten/TeXiFy-IDEA |
c35e7b75e111e7deb3d73ee3781b1a5efdd465c8 | evergreen/src/main/java/app/evergreen/services/Logger.kt | evergreen/src/main/java/app/evergreen/services/Logger.kt | // Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | // Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | Use Kotlin ?.let instead of null-checking. | Use Kotlin ?.let instead of null-checking.
| Kotlin | apache-2.0 | google/evergreen-checker,google/evergreen-checker |
491c8652cd263afb89e7d6bc7a735a82571d31e2 | src/211/main/kotlin/org/rust/cargo/toolchain/wsl/Utils.kt | src/211/main/kotlin/org/rust/cargo/toolchain/wsl/Utils.kt | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.cargo.toolchain.wsl
import com.intellij.execution.wsl.WSLDistribution
import com.intellij.util.io.isFile
import java.nio.file.Path
const val WSL_TOOLCHAIN: String = "org.rust.wsl"
fun WSLDistr... | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.cargo.toolchain.wsl
import com.intellij.execution.wsl.WSLDistribution
import java.nio.file.Path
const val WSL_TOOLCHAIN: String = "org.rust.wsl"
fun WSLDistribution.expandUserHome(path: String... | Fix toolchain validation on WSL | RUN: Fix toolchain validation on WSL
| Kotlin | mit | Undin/intellij-rust,intellij-rust/intellij-rust,Undin/intellij-rust,intellij-rust/intellij-rust,intellij-rust/intellij-rust,intellij-rust/intellij-rust,Undin/intellij-rust,Undin/intellij-rust,intellij-rust/intellij-rust,Undin/intellij-rust,Undin/intellij-rust,intellij-rust/intellij-rust |
5a299b7c9d54b83692e9d5e43ac669dda2c44b65 | src/main/java/org/purescript/psi/PSValueDeclaration.kt | src/main/java/org/purescript/psi/PSValueDeclaration.kt | package org.purescript.psi
import com.intellij.lang.ASTNode
import com.intellij.navigation.ItemPresentation
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiNameIdentifierOwner
import com.intellij.psi.util.collectDescendantsOfType
import javax.swing.Icon
class PSValueDeclaration(node: ASTNode) : PSPsiEle... | package org.purescript.psi
import com.intellij.lang.ASTNode
import com.intellij.navigation.ItemPresentation
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiNameIdentifierOwner
import com.intellij.psi.util.collectDescendantsOfType
import javax.swing.Icon
class PSValueDeclaration(node: ASTNode) : PSPsiEle... | Add parameters to presentable text of value declaration | Add parameters to presentable text of value declaration
| Kotlin | bsd-3-clause | intellij-purescript/intellij-purescript,intellij-purescript/intellij-purescript |
9a20a024897e0f82cda5cc4b693de1ff567c70d9 | app/src/main/kotlin/net/expandable/sample/MainActivity.kt | app/src/main/kotlin/net/expandable/sample/MainActivity.kt | package net.expandable.sample
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.widget.Toast
import net.expandable.ExpandableTextView
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
... | package net.expandable.sample
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.widget.Toast
import net.expandable.ExpandableTextView
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
... | Convert cast to findViewById with type parameter | Convert cast to findViewById with type parameter
close #11
| Kotlin | apache-2.0 | yuzumone/ExpandableTextView |
53f79091541434b97b0c6c14b97c5c027b40078b | app/src/main/java/pl/mg6/likeornot/commons/Collections.kt | app/src/main/java/pl/mg6/likeornot/commons/Collections.kt | package pl.mg6.likeornot.commons
fun <T> List<T>.batch(chunkSize: Int): List<List<T>> {
if (chunkSize <= 0) {
throw IllegalArgumentException("chunkSize must be greater than 0")
}
val list = mutableListOf<MutableList<T>>()
for (i in 0 until size) {
if (i % chunkSize == 0) {
l... | package pl.mg6.likeornot.commons
fun <T> List<T>.batch(chunkSize: Int): List<List<T>> {
if (chunkSize <= 0) {
throw IllegalArgumentException("chunkSize must be greater than 0")
}
val list = mutableListOf<MutableList<T>>()
for (i in 0 until size) {
if (i % chunkSize == 0) {
l... | Set initial list capacity to expected final size. | [optimization] Set initial list capacity to expected final size.
| Kotlin | apache-2.0 | mg6maciej/fluffy-octo-rotary-phone,mg6maciej/fluffy-octo-rotary-phone,mg6maciej/fluffy-octo-rotary-phone |
9e281bf2e35aa7366d73fb30ca3028a7ace8b1dd | src/main/java/backend/configuration/CustomUserDetails.kt | src/main/java/backend/configuration/CustomUserDetails.kt | package backend.configuration
import backend.model.user.User
import org.springframework.security.core.userdetails.UserDetails
class CustomUserDetails(val user: User) : UserDetails {
val id = user.core.id
override fun getUsername() = user.email
override fun isCredentialsNonExpired() = true
override... | package backend.configuration
import backend.model.user.User
import org.springframework.security.core.userdetails.UserDetails
class CustomUserDetails(val user: User) : UserDetails {
val id = user.core.id
override fun getUsername() = user.email
override fun isCredentialsNonExpired() = true
override... | Set customUserDetails.isEnabled() to true per default | Set customUserDetails.isEnabled() to true per default
| Kotlin | agpl-3.0 | BreakOutEvent/breakout-backend,BreakOutEvent/breakout-backend,BreakOutEvent/breakout-backend |
705918710413fb0a1a292f0ab2565a28e0ac61d7 | app/src/main/java/com/satsumasoftware/timetable/PrefUtils.kt | app/src/main/java/com/satsumasoftware/timetable/PrefUtils.kt | package com.satsumasoftware.timetable
import android.content.Context
import android.preference.PreferenceManager
import com.satsumasoftware.timetable.db.util.TimetableUtils
import com.satsumasoftware.timetable.framework.Timetable
class PrefUtils {
companion object {
const val PREF_CURRENT_TIMETABLE = "p... | package com.satsumasoftware.timetable
import android.content.Context
import android.preference.PreferenceManager
import com.satsumasoftware.timetable.db.util.TimetableUtils
import com.satsumasoftware.timetable.framework.Timetable
class PrefUtils {
companion object {
const val PREF_CURRENT_TIMETABLE = "p... | Add functions to read/put values for pref_display_weeks_as_letters | Add functions to read/put values for pref_display_weeks_as_letters
| Kotlin | apache-2.0 | FarbodSalamat-Zadeh/TimetableApp,FarbodSalamat-Zadeh/TimetableApp |
75aa44651f88563853af4ea5b95d1ea20ee8e168 | arch/src/main/java/com/pyamsoft/pydroid/arch/UiController.kt | arch/src/main/java/com/pyamsoft/pydroid/arch/UiController.kt | /*
* Copyright 2020 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 2020 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... | Use a singleton for empty controllers | Use a singleton for empty controllers
An empty UI controller has no controller events
| Kotlin | apache-2.0 | pyamsoft/pydroid |
d6d18bc5033ca61c3f3b54d848f6261c2dd817b7 | view/src/androidTest/java/com/elpassion/android/view/ViewTest.kt | view/src/androidTest/java/com/elpassion/android/view/ViewTest.kt | package com.elpassion.android.view
import android.app.Application
import android.test.ApplicationTestCase
import android.view.View
class ViewTest : ApplicationTestCase<Application>(Application::class.java) {
fun testShouldSetViewVisibilityToVisible() {
val view = View(context)
view.visibility = V... | package com.elpassion.android.view
import android.app.Application
import android.test.ApplicationTestCase
import android.view.View
import junit.framework.Assert
class ViewTest : ApplicationTestCase<Application>(Application::class.java) {
fun testShouldSetViewVisibilityToVisible() {
val view = View(contex... | Add tests for isVisible and enable/disable functions | Add tests for isVisible and enable/disable functions
| Kotlin | apache-2.0 | elpassion/android-commons,elpassion/android-commons,elpassion/android-commons |
3ff2042041f896829937d19cbd0aaab68f51cdd4 | ktor-client/ktor-client-core/src/io/ktor/client/request/utils.kt | ktor-client/ktor-client-core/src/io/ktor/client/request/utils.kt | package io.ktor.client.request
import io.ktor.http.*
/**
* Gets the associated URL's host.
*/
var HttpRequestBuilder.host: String
get() = url.host
set(value) {
url.host = value
}
/**
* Gets the associated URL's port.
*/
var HttpRequestBuilder.port: Int
get() = url.port
set(value) {
... | package io.ktor.client.request
import io.ktor.http.*
/**
* Gets the associated URL's host.
*/
var HttpRequestBuilder.host: String
get() = url.host
set(value) {
url.host = value
}
/**
* Gets the associated URL's port.
*/
var HttpRequestBuilder.port: Int
get() = url.port
set(value) {
... | Clarify usage of HttpRequestBuilder.parameter() function | Clarify usage of HttpRequestBuilder.parameter() function
| Kotlin | apache-2.0 | ktorio/ktor,ktorio/ktor,ktorio/ktor,ktorio/ktor |
64731c4c919f4eebcf33c38c00d9885496b34c17 | smuggler-sample/src/main/java/io/mironov/smuggler/sample/SampleActivity.kt | smuggler-sample/src/main/java/io/mironov/smuggler/sample/SampleActivity.kt | package io.mironov.smuggler.sample
import android.app.Activity
import android.os.Bundle
import io.mironov.smuggler.AutoParcelable
class SampleActivity : Activity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_sample)
}
}
data c... | package io.mironov.smuggler.sample
import android.app.Activity
import android.os.Bundle
import android.os.Parcel
import android.os.Parcelable
import io.mironov.smuggler.AutoParcelable
class SampleActivity : Activity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
... | Add simple parcelable implementation for reference | Add simple parcelable implementation for reference
| Kotlin | mit | nsk-mironov/smuggler |
fcd3a4f3a263e1bd02e8d9989065dab1ea071e65 | src/main/kotlin/org/jitsi/rtp/rtcp/CompoundRtcpSplitter.kt | src/main/kotlin/org/jitsi/rtp/rtcp/CompoundRtcpSplitter.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 ... | Fix parsing compound RTCP when offset!=0. | fix: Fix parsing compound RTCP when offset!=0.
| Kotlin | apache-2.0 | jitsi/jitsi-videobridge,jitsi/jitsi-videobridge,jitsi/jitsi-videobridge,jitsi/jitsi-videobridge,jitsi/jitsi-videobridge,jitsi/jitsi-videobridge,jitsi/jitsi-videobridge |
e76ad306d3a4a0f1852f9d4bc60a84a0c96b6560 | src/main/kotlin/com/doomspork/helloworld/HelloWorldConfiguration.kt | src/main/kotlin/com/doomspork/helloworld/HelloWorldConfiguration.kt | package com.doomspork.helloworld
import io.dropwizard.Configuration
import org.hibernate.validator.constraints.NotEmpty
import com.fasterxml.jackson.annotation.JsonProperty
data class HelloWorldConfiguration(JsonProperty NotEmpty var template: String,
JsonProperty NotEmpty var defau... | package com.doomspork.helloworld
import io.dropwizard.Configuration
import org.hibernate.validator.constraints.NotEmpty
import com.fasterxml.jackson.annotation.JsonProperty
import com.fasterxml.jackson.annotation.JsonCreator
data class HelloWorldConfiguration [JsonCreator] (JsonProperty("template") NotEmpty var templ... | Update jackson annotations to support multi-arg constructor | Update jackson annotations to support multi-arg constructor
| Kotlin | mit | doomspork/kotlin-dropwizard |
b93fa5bac8557476a03f6d53f042bac1db909ebc | src/kotlin/com/kotlinnlp/simplednn/simplemath/ndarray/NDArrayMask.kt | src/kotlin/com/kotlinnlp/simplednn/simplemath/ndarray/NDArrayMask.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/.
* ------------------------------------------... | Add shape and size attributes | Add shape and size attributes
| Kotlin | mpl-2.0 | KotlinNLP/SimpleDNN |
167d93eef63aa1e633fec6439dfaa59e0e62b433 | app/src/main/java/net/squanchy/support/font/TypefaceDelegate.kt | app/src/main/java/net/squanchy/support/font/TypefaceDelegate.kt | package net.squanchy.support.font
import android.graphics.Paint
import android.graphics.Typeface
class TypefaceDelegate(private val newTypeface: Typeface) {
private companion object {
@SuppressWarnings("MagicNumber")
const val TEXT_SKEW_X = -.25f
const val FALSE_FLAG = 0
}
fun ap... | package net.squanchy.support.font
import android.graphics.Paint
import android.graphics.Typeface
class TypefaceDelegate(private val newTypeface: Typeface) {
private companion object {
@SuppressWarnings("MagicNumber")
const val TEXT_SKEW_X = -.25f
const val FALSE_FLAG = 0
}
fun ap... | Change naming to make the code easier to understand | Change naming to make the code easier to understand
| Kotlin | apache-2.0 | squanchy-dev/squanchy-android,squanchy-dev/squanchy-android,squanchy-dev/squanchy-android |
4c3485f796f099057e6be15cbaa925af2519967b | aztec/src/main/kotlin/org/wordpress/aztec/AztecAttributes.kt | aztec/src/main/kotlin/org/wordpress/aztec/AztecAttributes.kt | package org.wordpress.aztec
import org.xml.sax.Attributes
import org.xml.sax.helpers.AttributesImpl
class AztecAttributes(attributes: Attributes = AttributesImpl()) : AttributesImpl(attributes) {
fun setValue(key: String, value: String) {
val index = getIndex(key)
if (index == -1) {
a... | package org.wordpress.aztec
import org.xml.sax.Attributes
import org.xml.sax.helpers.AttributesImpl
class AztecAttributes(attributes: Attributes = AttributesImpl()) : AttributesImpl(attributes) {
fun setValue(key: String, value: String) {
val index = getIndex(key)
if (index == -1) {
a... | Add helper function for attribute removal | Add helper function for attribute removal
| Kotlin | mpl-2.0 | wordpress-mobile/AztecEditor-Android,wordpress-mobile/AztecEditor-Android,wordpress-mobile/AztecEditor-Android |
59dd0c5754bf390e647c95572e2d146ee66d646f | benchmark/benchmark-macro/src/main/java/androidx/benchmark/macro/perfetto/UiState.kt | benchmark/benchmark-macro/src/main/java/androidx/benchmark/macro/perfetto/UiState.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... | Append UI metadata to trace file directly, instead of load+append+write | Append UI metadata to trace file directly, instead of load+append+write
Fixes: 193923003
Test: UiStateTest
Test: TrivialStartupBenchmark # verified UI metadata via Studio
Relnote: Reduce cost of appending Ui metadata to traces by 50+ ms
TIL - you can simply concatenate traces on disk, so appending got a
lot simpler.
... | Kotlin | apache-2.0 | 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... |
9537b7bd6d182ed5ba93beac284f8ad8b12ebcbb | src/main/kotlin/org/rust/cargo/toolchain/Grcov.kt | src/main/kotlin/org/rust/cargo/toolchain/Grcov.kt | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.cargo.toolchain
import com.intellij.execution.configurations.GeneralCommandLine
import org.rust.cargo.CargoConstants.ProjectLayout
import org.rust.openapiext.GeneralCommandLine
import java.io.Fi... | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.cargo.toolchain
import com.intellij.execution.configurations.GeneralCommandLine
import org.rust.cargo.CargoConstants.ProjectLayout
import org.rust.openapiext.GeneralCommandLine
import java.io.Fi... | Fix `Run with Coverage` on nightly channel | RUN: Fix `Run with Coverage` on nightly channel
| Kotlin | mit | intellij-rust/intellij-rust,intellij-rust/intellij-rust,Undin/intellij-rust,intellij-rust/intellij-rust,Undin/intellij-rust,Undin/intellij-rust,intellij-rust/intellij-rust,Undin/intellij-rust,intellij-rust/intellij-rust,intellij-rust/intellij-rust,Undin/intellij-rust,Undin/intellij-rust |
e1bc9181f400740b818d37b84354716ec170d0ab | api/src/main/java/com/vimeo/networking2/config/RetrofitServicesCache.kt | api/src/main/java/com/vimeo/networking2/config/RetrofitServicesCache.kt | package com.vimeo.networking2.config
import retrofit2.Retrofit
class RetrofitServicesCache(var retrofit: Retrofit) {
/**
* Cache of Retrofit API Services. Objects created by calling getService().
*/
private val cache = mutableMapOf<Class<*>, Any>()
/**
* Create and cache instance of the ... | package com.vimeo.networking2.config
import retrofit2.Retrofit
/**
* As Retrofit services are created, they are cached in this class.
*/
class RetrofitServicesCache(var retrofit: Retrofit) {
/**
* Cache of Retrofit API Services. Objects created by calling getService().
*/
private val cache = mut... | Add class doc for the retrofit services cache | Add class doc for the retrofit services cache
| Kotlin | mit | vimeo/vimeo-networking-java,vimeo/vimeo-networking-java,vimeo/vimeo-networking-java |
60ee3f7e2b39e98ad3a4cd60b66bf2421db36014 | buildSrc/subprojects/integration-testing/integration-testing.gradle.kts | buildSrc/subprojects/integration-testing/integration-testing.gradle.kts | dependencies {
implementation(project(":basics"))
implementation(project(":cleanup"))
implementation(project(":dependencyModules"))
implementation(project(":packaging"))
implementation(project(":moduleIdentity"))
testImplementation("junit:junit")
}
| dependencies {
implementation(project(":basics"))
implementation(project(":cleanup"))
implementation(project(":dependencyModules"))
implementation(project(":moduleIdentity"))
testImplementation("junit:junit")
}
| Remove dependency that is not needed | Remove dependency that is not needed
| Kotlin | apache-2.0 | gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpira... |
318661b1c74cbd88156f47955041b74558fb91aa | src/main/kotlin/com/elpassion/mainframerplugin/util/config.kt | src/main/kotlin/com/elpassion/mainframerplugin/util/config.kt | package com.elpassion.mainframerplugin.util
val toolFilename = "mainframer.sh"
fun getToolDownloadUrl(version: String) = "https://github.com/gojuno/mainframer/releases/download/v$version/mainframer.sh" | package com.elpassion.mainframerplugin.util
val toolFilename = "mainframer"
fun getToolDownloadUrl(version: String) = "https://github.com/gojuno/mainframer/releases/download/v$version/$toolFilename"
| Remove .sh suffix from mainframer.sh. | Remove .sh suffix from mainframer.sh. | Kotlin | apache-2.0 | elpassion/mainframer-intellij-plugin,elpassion/mainframer-intellij-plugin,elpassion/mainframer-intellij-plugin |
1ceabc7178f421554218af56404374a9be8e767b | src/main/kotlin/ru/dyatel/tsuschedule/utilities/FileUtilities.kt | src/main/kotlin/ru/dyatel/tsuschedule/utilities/FileUtilities.kt | package ru.dyatel.tsuschedule.utilities
import java.io.File
import java.net.URL
fun URL.download(destination: File, timeout: Int, onProgressUpdate: (Int) -> Unit) {
val connection = openConnection().apply {
connectTimeout = timeout
readTimeout = timeout
}
val length = connection.contentLe... | package ru.dyatel.tsuschedule.utilities
import java.io.File
import java.net.URL
fun URL.download(destination: File, timeout: Int, onProgressUpdate: (Int) -> Unit) {
val connection = openConnection().apply {
connectTimeout = timeout
readTimeout = timeout
}
connection.getInputStream().buffe... | Fix possible division by 0 in file downloading | Fix possible division by 0 in file downloading
| Kotlin | mit | dya-tel/TSU-Schedule |
cd4c37e0daa545f72109122591f4f18365ee3292 | app/src/main/java/org/wikipedia/views/ImageDetailHorizontalView.kt | app/src/main/java/org/wikipedia/views/ImageDetailHorizontalView.kt | package org.wikipedia.views
import android.content.Context
import android.util.AttributeSet
import android.view.View
import android.widget.LinearLayout
import kotlinx.android.synthetic.main.view_image_detail_horizontal.view.*
import org.wikipedia.R
import org.wikipedia.util.StringUtil
class ImageDetailHorizontalView ... | package org.wikipedia.views
import android.content.Context
import android.util.AttributeSet
import android.view.View
import android.widget.LinearLayout
import kotlinx.android.synthetic.main.view_image_detail_horizontal.view.*
import org.wikipedia.R
import org.wikipedia.util.StringUtil
class ImageDetailHorizontalView ... | Fix crash when inflating view | Fix crash when inflating view
| Kotlin | apache-2.0 | dbrant/apps-android-wikipedia,dbrant/apps-android-wikipedia,wikimedia/apps-android-wikipedia,wikimedia/apps-android-wikipedia,wikimedia/apps-android-wikipedia,dbrant/apps-android-wikipedia,wikimedia/apps-android-wikipedia,dbrant/apps-android-wikipedia,dbrant/apps-android-wikipedia |
02c671cbe7fb925489f0afaf419b8a16e87cc589 | src/main/java/org/purescript/ide/inspections/PSUnresolvedReferenceInspection.kt | src/main/java/org/purescript/ide/inspections/PSUnresolvedReferenceInspection.kt | package org.purescript.ide.inspections
import com.intellij.codeInspection.LocalInspectionTool
import com.intellij.codeInspection.ProblemsHolder
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiElementVisitor
import com.intellij.psi.PsiReference
import org.purescript.PSLanguage
import org.purescript.psi.ex... | package org.purescript.ide.inspections
import com.intellij.codeInspection.LocalInspectionTool
import com.intellij.codeInspection.ProblemsHolder
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiElementVisitor
import com.intellij.psi.PsiReference
import org.purescript.PSLanguage
import org.purescript.psi.ex... | Implement inspections for unresolved expression constructors | Implement inspections for unresolved expression constructors
| Kotlin | bsd-3-clause | intellij-purescript/intellij-purescript,intellij-purescript/intellij-purescript |
eba24c5f9a20f1663611520bf7e2f846f7175959 | core/kotlinx-coroutines-test/src/TestCoroutineExceptionHandler.kt | core/kotlinx-coroutines-test/src/TestCoroutineExceptionHandler.kt | package kotlinx.coroutines.test
import kotlinx.coroutines.CoroutineExceptionHandler
import java.util.*
import kotlin.coroutines.CoroutineContext
/**
* Access uncaught coroutines exceptions captured during test execution.
*
* Note, tests executed via [runBlockingTest] or [TestCoroutineScope.runBlocking] will not tr... | package kotlinx.coroutines.test
import kotlinx.coroutines.CoroutineExceptionHandler
import java.util.*
import kotlin.coroutines.CoroutineContext
/**
* Access uncaught coroutines exceptions captured during test execution.
*
* Note, tests executed via [runBlockingTest] or [TestCoroutineScope.runBlocking] will not tr... | Add thread saftey to exceptions | Add thread saftey to exceptions
| Kotlin | apache-2.0 | Kotlin/kotlinx.coroutines,Kotlin/kotlinx.coroutines,Kotlin/kotlinx.coroutines,Kotlin/kotlinx.coroutines,Kotlin/kotlinx.coroutines |
942b245af8bf98efbed5bbac7b57b8f4dcdebef6 | ktor-client/ktor-client-cio/src/io/ktor/client/engine/cio/CIOEngineConfig.kt | ktor-client/ktor-client-cio/src/io/ktor/client/engine/cio/CIOEngineConfig.kt | package io.ktor.client.engine.cio
import io.ktor.client.engine.*
import io.ktor.network.tls.*
import javax.net.ssl.*
class CIOEngineConfig : HttpClientEngineConfig() {
val endpoint: EndpointConfig = EndpointConfig()
val https: HttpsConfig = HttpsConfig()
var maxConnectionsCount: Int = 1000
}
class Endpo... | package io.ktor.client.engine.cio
import io.ktor.client.engine.*
import io.ktor.network.tls.*
import java.security.*
import javax.net.ssl.*
private val DEFAULT_RANDOM: String =
SecureRandom.getInstanceStrong().algorithm.takeIf { it != "unknown" } ?: "NativePRNGNonBlocking"
class CIOEngineConfig : HttpClientEngin... | Set default random algorithm from system provided | Set default random algorithm from system provided
| Kotlin | apache-2.0 | ktorio/ktor,ktorio/ktor,ktorio/ktor,ktorio/ktor |
58ee7249d45b6e3b5e8612bedf5bb32d13f4ce22 | src/main/kotlin/com/kotlinnlp/simplednn/core/arrays/UpdatableArray.kt | src/main/kotlin/com/kotlinnlp/simplednn/core/arrays/UpdatableArray.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/.
* ------------------------------------------... | Set updaterSupportStructure var as lateinit | Set updaterSupportStructure var as lateinit
| Kotlin | mpl-2.0 | KotlinNLP/SimpleDNN |
01741b83cd4c849ac4e9e864a9f6a2c282dce0a0 | app/src/main/kotlin/de/markusfisch/android/binaryeye/app/Vibrator.kt | app/src/main/kotlin/de/markusfisch/android/binaryeye/app/Vibrator.kt | package de.markusfisch.android.binaryeye.app
import android.os.Build
import android.os.VibrationEffect
import android.os.Vibrator
fun Vibrator.vibrate() {
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O) {
@Suppress("DEPRECATION")
this.vibrate(100)
} else {
this.vibrate(VibrationEffect.createOneShot(100, 10... | package de.markusfisch.android.binaryeye.app
import android.os.Build
import android.os.VibrationEffect
import android.os.Vibrator
private const val MILLISECONDS = 100L
fun Vibrator.vibrate() {
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O) {
@Suppress("DEPRECATION")
this.vibrate(MILLISECONDS)
} else {
th... | Fix vibrating for Android O and higher | Fix vibrating for Android O and higher
The amplitude was too small.
| Kotlin | mit | markusfisch/BinaryEye,markusfisch/BinaryEye |
d5477ba7a73cd9e57c9ff9190bf5d21123a25356 | platform/platform-api/src/com/intellij/openapi/actionSystem/ActionGroupStub.kt | platform/platform-api/src/com/intellij/openapi/actionSystem/ActionGroupStub.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.actionSystem
import com.intellij.diagnostic.PluginException
import com.intellij.openapi.extensions.PluginId
interface ActionStubBase {
val id: Str... | // 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.actionSystem
import com.intellij.diagnostic.PluginException
import com.intellij.openapi.extensions.PluginId
interface ActionStubBase {
val id: Str... | Copy shortcut from stub to actual action group (e.g. "Database tools" action group has a shortcut assigned) | IDEA-CR-48751: Copy shortcut from stub to actual action group (e.g. "Database tools" action group has a shortcut assigned)
(cherry picked from commit 083edd047d96341f582913ac29769eb6821dce9f)
GitOrigin-RevId: 786f9641c2bebf33701fbfa238a26b0d966ecbfc | Kotlin | apache-2.0 | 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... |
c35dc757044ccaaece3eb30957924d4450609892 | apina-core/src/main/kotlin/fi/evident/apina/utils/PropertyUtils.kt | apina-core/src/main/kotlin/fi/evident/apina/utils/PropertyUtils.kt | package fi.evident.apina.utils
import java.util.Locale
fun propertyNameForGetter(getterName: String): String =
when {
// Value/inline classes result in name suffixed with hash
getterName.contains("-") -> propertyNameForSimpleGetter(getterName.substringBefore('-'))
else -> propertyNameForSi... | package fi.evident.apina.utils
fun propertyNameForGetter(getterName: String): String =
when {
// Value/inline classes result in name suffixed with hash
getterName.contains("-") -> propertyNameForSimpleGetter(getterName.substringBefore('-'))
else -> propertyNameForSimpleGetter(getterName)
... | Revert removal of decapitalize, caused apina generation task to fail with gradle 6.8 | Revert removal of decapitalize, caused apina generation task to fail with gradle 6.8
| Kotlin | mit | EvidentSolutions/apina,EvidentSolutions/apina,EvidentSolutions/apina |
47f03ec60ad49a766f927a8dd0aab99c052eb357 | src/main/kotlin/cn/yiiguxing/plugin/translate/action/TitleBarActionRegistrar.kt | src/main/kotlin/cn/yiiguxing/plugin/translate/action/TitleBarActionRegistrar.kt | package cn.yiiguxing.plugin.translate.action
import cn.yiiguxing.plugin.translate.util.Plugin
import com.intellij.ide.AppLifecycleListener
import com.intellij.ide.plugins.DynamicPluginListener
import com.intellij.ide.plugins.IdeaPluginDescriptor
import com.intellij.openapi.actionSystem.ActionManager
import com.intelli... | package cn.yiiguxing.plugin.translate.action
import com.intellij.ide.AppLifecycleListener
import com.intellij.ide.plugins.DynamicPluginListener
import com.intellij.ide.plugins.IdeaPluginDescriptor
import com.intellij.openapi.actionSystem.ActionManager
import com.intellij.openapi.actionSystem.Constraints
import com.int... | Fix title bar action group ID not registered exception | Fix title bar action group ID not registered exception
| Kotlin | mit | YiiGuxing/TranslationPlugin,YiiGuxing/TranslationPlugin |
06125ef141a7ee43f4c12f119d71f81c5ab439bc | mezzanine-compiler/src/main/java/com/anthonycr/mezzanine/utils/MessagerUtils.kt | mezzanine-compiler/src/main/java/com/anthonycr/mezzanine/utils/MessagerUtils.kt | package com.anthonycr.mezzanine.utils
import javax.annotation.processing.Messager
import javax.lang.model.element.Element
import javax.tools.Diagnostic.Kind
/**
* Utils to communicate with the compiler.
*/
object MessagerUtils {
lateinit var messager: Messager
/**
* Report an error to the compiler at... | package com.anthonycr.mezzanine.utils
import javax.annotation.processing.Messager
import javax.lang.model.element.Element
import javax.tools.Diagnostic.Kind
/**
* Utils to communicate with the compiler.
*/
object MessagerUtils {
lateinit var messager: Messager
/**
* Report an error to the compiler at... | Swap out use of messager for println until NOTE stops generating warning | Swap out use of messager for println until NOTE stops generating warning
| Kotlin | apache-2.0 | anthonycr/Mezzanine,anthonycr/Mezzanine |
5fcb5edac8bc3e38bf23a4524e9820f33dc04ac4 | shared/src/library/kotlin/org/jetbrains/kotlin/konan/library/KonanLibraryVersioning.kt | shared/src/library/kotlin/org/jetbrains/kotlin/konan/library/KonanLibraryVersioning.kt | package org.jetbrains.kotlin.konan.library
import org.jetbrains.kotlin.konan.KonanVersion
import org.jetbrains.kotlin.konan.parseKonanVersion
import org.jetbrains.kotlin.konan.KonanAbiVersion
import org.jetbrains.kotlin.konan.properties.Properties
import org.jetbrains.kotlin.konan.parseKonanAbiVersion
data class Kon... | package org.jetbrains.kotlin.konan.library
import org.jetbrains.kotlin.konan.KonanVersion
import org.jetbrains.kotlin.konan.parseKonanVersion
import org.jetbrains.kotlin.konan.KonanAbiVersion
import org.jetbrains.kotlin.konan.properties.Properties
import org.jetbrains.kotlin.konan.parseKonanAbiVersion
data class Kon... | Print out the complete KonanVersion to klib manifest. | Print out the complete KonanVersion to klib manifest.
| Kotlin | apache-2.0 | wiltonlazary/kotlin-native,JetBrains/kotlin-native,wiltonlazary/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,wiltonlazary/kotlin-native,JetBrains/kotlin-native,wiltonlazary/kotlin-native,JetBrains/kotlin-native,wiltonlazary/kotlin-... |
5d3c2ff186834987e6768a8ac6632c1a378f85b5 | app/src/main/java/jp/toastkid/yobidashi/notification/widget/NotificationWidget.kt | app/src/main/java/jp/toastkid/yobidashi/notification/widget/NotificationWidget.kt | package jp.toastkid.yobidashi.notification.widget
import android.app.Notification
import android.content.Context
import android.support.v4.app.NotificationCompat
import android.support.v4.app.NotificationManagerCompat
import jp.toastkid.yobidashi.R
/**
* Notification widget's launcher.
* @author toastkidjp
*/
ob... | package jp.toastkid.yobidashi.notification.widget
import android.app.Notification
import android.content.Context
import android.support.v4.app.NotificationCompat
import android.support.v4.app.NotificationManagerCompat
import jp.toastkid.yobidashi.R
/**
* Notification widget's launcher.
*
* @author toastkidjp
*/
... | Clean up notification widget's code. | Clean up notification widget's code.
| Kotlin | epl-1.0 | toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Jitte |
92e0a34912e762aafcfb5a0af59f9ed68df44d96 | src/kotlin-intellij/main/uk/co/reecedunn/intellij/plugin/core/xml/XmlAttribute.kt | src/kotlin-intellij/main/uk/co/reecedunn/intellij/plugin/core/xml/XmlAttribute.kt | /*
* Copyright (C) 2019-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 agr... | /*
* Copyright (C) 2019-2021 Reece H. Dunn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | Support resolving relaxng schemma types. | Support resolving relaxng schemma types.
| Kotlin | apache-2.0 | rhdunn/xquery-intellij-plugin,rhdunn/xquery-intellij-plugin |
b2d415bbadaaca7627802383b20eaa073c45d322 | app/src/main/java/chat/rocket/android/chatroom/viewmodel/MessageViewModelMapper.kt | app/src/main/java/chat/rocket/android/chatroom/viewmodel/MessageViewModelMapper.kt | package chat.rocket.android.chatroom.viewmodel
import android.content.Context
import chat.rocket.android.helper.MessageParser
import chat.rocket.android.server.domain.MessagesRepository
import chat.rocket.core.TokenRepository
import chat.rocket.core.model.Message
import chat.rocket.core.model.Value
import javax.inject... | package chat.rocket.android.chatroom.viewmodel
import android.content.Context
import chat.rocket.android.helper.MessageParser
import chat.rocket.android.server.domain.MessagesRepository
import chat.rocket.core.TokenRepository
import chat.rocket.core.model.Message
import chat.rocket.core.model.Value
import kotlinx.coro... | Set suspendable fun to use CommonPool | Set suspendable fun to use CommonPool
| Kotlin | mit | RocketChat/Rocket.Chat.Android,RocketChat/Rocket.Chat.Android.Lily,RocketChat/Rocket.Chat.Android,RocketChat/Rocket.Chat.Android.Lily |
074e44604ed5596f62850590260c1c9039447635 | aztec/src/main/kotlin/org/wordpress/aztec/plugins/visual2html/ISpanPreprocessor.kt | aztec/src/main/kotlin/org/wordpress/aztec/plugins/visual2html/ISpanPreprocessor.kt | package org.wordpress.aztec.plugins.visual2html
import android.text.SpannableStringBuilder
import org.wordpress.aztec.plugins.IAztecPlugin
interface ISpanPreprocessor : IAztecPlugin {
fun beforeSpansProcessed(spannable: SpannableStringBuilder)
} | package org.wordpress.aztec.plugins.visual2html
import android.text.SpannableStringBuilder
import org.wordpress.aztec.plugins.IAztecPlugin
interface ISpanPreprocessor : IAztecPlugin {
/**
* Called before the spannable is processed by [org.wordpress.aztec.AztecParser] during span-to-HTML parsing.
*
... | Add a warning comment to the span preprocessor plugin interface | Add a warning comment to the span preprocessor plugin interface
| Kotlin | mpl-2.0 | wordpress-mobile/AztecEditor-Android,wordpress-mobile/AztecEditor-Android,wordpress-mobile/AztecEditor-Android |
97e05d430147706390a127a718126776bd94d304 | base/src/main/java/app/tivi/extensions/CoroutineExtensions.kt | base/src/main/java/app/tivi/extensions/CoroutineExtensions.kt | /*
* Copyright 2018 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | /*
* 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 or agreed to i... | Add try-finally block to make sure we release the concurrency permit | Add try-finally block to make sure we release the concurrency permit
Thanks @objcode
| Kotlin | apache-2.0 | chrisbanes/tivi,chrisbanes/tivi |
de6e7710e1ba4d45eeb16bb7ca0fcbf3a251517e | app/src/main/java/com/sampsonjoliver/firestarter/FirebaseActivity.kt | app/src/main/java/com/sampsonjoliver/firestarter/FirebaseActivity.kt | package com.sampsonjoliver.firestarter
import android.content.Intent
import android.os.Build
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import com.sampsonjoliver.firestarter.service.SessionManager
import com.sampsonjoliver.firestarter.views.login.LoginActivity
abstract class FirebaseActi... | package com.sampsonjoliver.firestarter
import android.content.Intent
import android.os.Build
import android.support.v7.app.AppCompatActivity
import com.sampsonjoliver.firestarter.service.SessionManager
import com.sampsonjoliver.firestarter.views.login.LoginActivity
abstract class FirebaseActivity : AppCompatActivity(... | Change to Firebase session lifecycle calls | Change to Firebase session lifecycle calls
| Kotlin | apache-2.0 | sampsonjoliver/Firestarter,sampsonjoliver/Firestarter |
d097e636eabf76636a519bf81a78045da68ad96b | test/org/jetbrains/plugins/ideavim/action/motion/visual/VisualExitModeActionTest.kt | test/org/jetbrains/plugins/ideavim/action/motion/visual/VisualExitModeActionTest.kt | /*
* IdeaVim - Vim emulator for IDEs based on the IntelliJ platform
* Copyright (C) 2003-2020 The IdeaVim authors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the ... | /*
* IdeaVim - Vim emulator for IDEs based on the IntelliJ platform
* Copyright (C) 2003-2020 The IdeaVim authors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the ... | Add test for double exiting visual mode | Add test for double exiting visual mode
| Kotlin | mit | JetBrains/ideavim,JetBrains/ideavim |
4b60a2ecdcd911f30d9b5bf408ae6e272220367f | app/src/main/java/com/goldenpiedevs/schedule/app/core/api/lessons/LessonsManager.kt | app/src/main/java/com/goldenpiedevs/schedule/app/core/api/lessons/LessonsManager.kt | package com.goldenpiedevs.schedule.app.core.api.lessons
import com.goldenpiedevs.schedule.app.core.dao.BaseResponseModel
import com.goldenpiedevs.schedule.app.core.dao.timetable.DaoWeekModel
import com.goldenpiedevs.schedule.app.core.dao.timetable.TimeTableData
import io.realm.Realm
import io.realm.RealmList
import ko... | package com.goldenpiedevs.schedule.app.core.api.lessons
import com.goldenpiedevs.schedule.app.core.dao.BaseResponseModel
import com.goldenpiedevs.schedule.app.core.dao.timetable.DaoWeekModel
import com.goldenpiedevs.schedule.app.core.dao.timetable.TimeTableData
import io.realm.Realm
import io.realm.RealmList
import ko... | Save only days with lessons | Save only days with lessons
| Kotlin | apache-2.0 | kpi-ua/ecampus-client-android |
f59843104d3b67a3c52aae04c76385bc608df586 | app/src/main/java/jp/toastkid/yobidashi/libs/network/DownloadAction.kt | app/src/main/java/jp/toastkid/yobidashi/libs/network/DownloadAction.kt | package jp.toastkid.yobidashi.libs.network
import android.app.DownloadManager
import android.content.Context
import android.net.Uri
/**
* Method object of downloading.
*
* @author toastkidjp
*/
class DownloadAction(
val context: Context,
val url: String
) {
fun invoke() {
val request =... | package jp.toastkid.yobidashi.libs.network
import android.app.DownloadManager
import android.content.Context
import android.net.Uri
import android.os.Environment
/**
* Method object of downloading.
*
* @author toastkidjp
*/
class DownloadAction(
val context: Context,
val url: String
) {
fu... | Modify saving directory which save downloaded items. | Modify saving directory which save downloaded items.
| Kotlin | epl-1.0 | toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt,toastkidjp/Jitte |
5cd788fa46cfe0cec5f57b8998113d4b0c95863f | app/src/main/java/com/sedsoftware/yaptalker/features/videodisplay/VideoDisplayPresenter.kt | app/src/main/java/com/sedsoftware/yaptalker/features/videodisplay/VideoDisplayPresenter.kt | package com.sedsoftware.yaptalker.features.videodisplay
import com.arellomobile.mvp.InjectViewState
import com.sedsoftware.yaptalker.base.BasePresenter
@InjectViewState
class VideoDisplayPresenter : BasePresenter<VideoDisplayView>() {
fun loadVideoContent() {
viewState.displayWebViewContent()
}
override f... | package com.sedsoftware.yaptalker.features.videodisplay
import com.arellomobile.mvp.InjectViewState
import com.sedsoftware.yaptalker.base.BasePresenter
@InjectViewState
class VideoDisplayPresenter : BasePresenter<VideoDisplayView>() {
fun loadVideoContent() {
viewState.displayWebViewContent()
}
override f... | Fix webView reset on view detach | Fix webView reset on view detach
| Kotlin | apache-2.0 | djkovrik/YapTalker,djkovrik/YapTalker |
65297660ab69094b188e436d4e9bd6747b7ee156 | app/src/main/java/me/echeung/moemoekyun/util/ext/CoroutineExtensions.kt | app/src/main/java/me/echeung/moemoekyun/util/ext/CoroutineExtensions.kt | package me.echeung.moemoekyun.util.ext
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.CoroutineStart
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.Job
import kotlinx.coroutines.launch
fun la... | package me.echeung.moemoekyun.util.ext
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.CoroutineStart
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.Job
import kotlinx.coroutines.SupervisorJob
import kotlinx.coroutines.launch
priv... | Fix crash when starting app without network | Fix crash when starting app without network
| Kotlin | mit | LISTEN-moe/android-app,arkon/LISTEN.moe-Unofficial-Android-App |
46dd3a2d6a206be7d76d950f9bf0438fdd57bfc3 | app/src/release/kotlin/io/sweers/catchup/app/ApplicationComponent.kt | app/src/release/kotlin/io/sweers/catchup/app/ApplicationComponent.kt | /*
* Copyright (C) 2019. 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... | /*
* Copyright (C) 2019. 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... | Fix missing okhttp builder in release variant | Fix missing okhttp builder in release variant
| Kotlin | apache-2.0 | hzsweers/CatchUp,hzsweers/CatchUp,hzsweers/CatchUp,hzsweers/CatchUp |
8a6a21458965d074510b5a0ab338c0bd3e757973 | Core/src/main/kotlin/org/brightify/reactant/core/component/Component.kt | Core/src/main/kotlin/org/brightify/reactant/core/component/Component.kt | package org.brightify.reactant.core.component
import io.reactivex.Observable
import io.reactivex.disposables.CompositeDisposable
import org.brightify.reactant.core.LifetimeDisposeBagContainer
/**
* @author <a href="mailto:filip.dolnik.96@gmail.com">Filip Dolnik</a>
*/
interface Component<STATE, ACTION>: LifetimeDi... | package org.brightify.reactant.core.component
import io.reactivex.Observable
import io.reactivex.disposables.CompositeDisposable
import org.brightify.reactant.core.LifetimeDisposeBagContainer
/**
* @author <a href="mailto:filip.dolnik.96@gmail.com">Filip Dolnik</a>
*/
interface Component<STATE, ACTION>: LifetimeDi... | Make `withState` return concrete type. | Make `withState` return concrete type.
| Kotlin | mit | KotlinKit/Reactant |
1a265fd9b9a12b6c100fd4460d7651c0239c53e0 | shared/src/main/java/com/google/samples/apps/iosched/shared/util/NetworkUtils.kt | shared/src/main/java/com/google/samples/apps/iosched/shared/util/NetworkUtils.kt | /*
* Copyright 2018 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | /*
* Copyright 2018 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | Fix the crash on Lollipop. | Fix the crash on Lollipop.
T getSystemService (Class<T> serviceClass) is't available in Lollipop
Bug: 78249538
Change-Id: Ib26ad58b69c1dd97198466d1ee97b40adc83e696
| Kotlin | apache-2.0 | google/iosched,google/iosched,google/iosched |
af02643f8a40a9a0d705b2987698ad1db2f415eb | http4k-security-oauth/src/main/kotlin/org/http4k/security/oauth/server/AuthorizationCodes.kt | http4k-security-oauth/src/main/kotlin/org/http4k/security/oauth/server/AuthorizationCodes.kt | package org.http4k.security.oauth.server
import org.http4k.core.Uri
import java.time.Instant
/**
* Provides a consistent way to manage authorization codes
*/
interface AuthorizationCodes {
/**
* Create new authorization code to be given to client after the user successfully authorize access
*/
fun... | package org.http4k.security.oauth.server
import org.http4k.core.Uri
import java.time.Instant
/**
* Provides a consistent way to manage authorization codes
*/
interface AuthorizationCodes {
/**
* Create new authorization code to be given to client after the user successfully authorize access
* The gene... | Add doc note regarding authorization code generation | Add doc note regarding authorization code generation
| Kotlin | apache-2.0 | http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k |
06dfef69cf5357b65a4dd45d3cf5649131ced2dc | app/src/main/java/com/satsumasoftware/timetable/framework/ClassTimeGroup.kt | app/src/main/java/com/satsumasoftware/timetable/framework/ClassTimeGroup.kt | package com.satsumasoftware.timetable.framework
import org.threeten.bp.LocalTime
import java.util.*
/**
* A data structure merely to group [ClassTime] objects with the same start and end dates as each
* other.
*
* @property startTime The start time all `ClassTime`s in this group will have
* @property endTime The... | package com.satsumasoftware.timetable.framework
import org.threeten.bp.LocalTime
import java.util.*
/**
* A data structure merely to group [ClassTime] objects with the same start and end dates as each
* other.
*
* @property startTime The start time all `ClassTime`s in this group will have
* @property endTime The... | Add a 'see' reference for ClassTime in the ClassTImeGroup doc | Add a 'see' reference for ClassTime in the ClassTImeGroup doc
| Kotlin | apache-2.0 | FarbodSalamat-Zadeh/TimetableApp,FarbodSalamat-Zadeh/TimetableApp |
e393dec56e978a91391eee9d72757d78ada7fc1a | server/src/main/kotlin/org/javacs/kt/codeaction/quickfix/QuickFix.kt | server/src/main/kotlin/org/javacs/kt/codeaction/quickfix/QuickFix.kt | package org.javacs.kt.codeaction.quickfix
import org.eclipse.lsp4j.CodeAction
import org.eclipse.lsp4j.Command
import org.eclipse.lsp4j.Diagnostic
import org.eclipse.lsp4j.Range
import org.eclipse.lsp4j.jsonrpc.messages.Either
import org.javacs.kt.CompiledFile
import org.jetbrains.kotlin.resolve.diagnostics.Diagnostic... | package org.javacs.kt.codeaction.quickfix
import org.eclipse.lsp4j.CodeAction
import org.eclipse.lsp4j.Command
import org.eclipse.lsp4j.Diagnostic
import org.eclipse.lsp4j.Range
import org.eclipse.lsp4j.jsonrpc.messages.Either
import org.javacs.kt.CompiledFile
import org.jetbrains.kotlin.resolve.diagnostics.Diagnostic... | Use Set instead of HashSet in diagnostic match helpers | Use Set instead of HashSet in diagnostic match helpers
| Kotlin | mit | fwcd/kotlin-language-server,fwcd/kotlin-language-server,fwcd/kotlin-language-server |
810819f3052edc832b987a46af1e0f5bf67c2c75 | src/main/kotlin/com/kotlinnlp/simplednn/core/optimizer/GenericParamsErrorsCollector.kt | src/main/kotlin/com/kotlinnlp/simplednn/core/optimizer/GenericParamsErrorsCollector.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/.
* ------------------------------------------... | Add getAll() method and update documentation | Add getAll() method and update documentation
| Kotlin | mpl-2.0 | KotlinNLP/SimpleDNN |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.