commit stringlengths 40 40 | subject stringlengths 4 1.73k | repos stringlengths 5 127k | old_file stringlengths 2 751 | new_file stringlengths 2 751 | new_contents stringlengths 1 8.98k | old_contents stringlengths 0 6.59k | license stringclasses 13
values | lang stringclasses 23
values |
|---|---|---|---|---|---|---|---|---|
1911dc29cf48ac87fd3a361ed78a7856a455aaf6 | refactor #506 Add test case. | toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Yobidashi_kt | app/src/test/java/jp/toastkid/yobidashi/media/image/list/ImageLoaderUseCaseTest.kt | app/src/test/java/jp/toastkid/yobidashi/media/image/list/ImageLoaderUseCaseTest.kt | /*
* Copyright (c) 2021 toastkidjp.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompany this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html.
*/
package jp... | /*
* Copyright (c) 2021 toastkidjp.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompany this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html.
*/
package jp... | epl-1.0 | Kotlin |
ccaa8abcea209596ac33cd8fcc338af01f6eb656 | Enable "ShowMessageHistoryAction" only if commit message is focused | allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/int... | platform/vcs-impl/src/com/intellij/openapi/vcs/actions/ShowMessageHistoryAction.kt | platform/vcs-impl/src/com/intellij/openapi/vcs/actions/ShowMessageHistoryAction.kt | // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.openapi.vcs.actions
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.editor.actions.ContentChooser
import com.intellij.open... | // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.openapi.vcs.actions
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.editor.actions.ContentChooser
import com.intellij.open... | apache-2.0 | Kotlin |
4ee2eaa77d24b40eb093c8e527b90588d8b3a1d7 | Migrate flow to callbackFlow. | 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... | window/window/src/main/java/androidx/window/layout/WindowInfoTrackerImpl.kt | window/window/src/main/java/androidx/window/layout/WindowInfoTrackerImpl.kt | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | apache-2.0 | Kotlin |
63da90432e9e12844b82a230632620b0256d12d2 | Create AllocateAddress.kt | awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,a... | .kotlin_alpha/services/ec2/src/main/kotlin/com/kotlin/ec2/AllocateAddress.kt | .kotlin_alpha/services/ec2/src/main/kotlin/com/kotlin/ec2/AllocateAddress.kt | //snippet-sourcedescription:[AllocateAddress.kt demonstrates how to allocate an elastic IP address for an Amazon Elastic Compute Cloud (Amazon EC2) instance.]
//snippet-keyword:[AWS SDK for Kotlin]
//snippet-keyword:[Code Sample]
//snippet-service:[Amazon EC2]
//snippet-sourcetype:[full-example]
//snippet-sourcedate:[0... | apache-2.0 | Kotlin | |
2d304c82a868c5480b3473deae32de7fe4d1dd2e | Remove custom setter from Note | Doist/TodoistModels,Doist/TodoistPojos | src/main/java/com/todoist/pojo/Note.kt | src/main/java/com/todoist/pojo/Note.kt | package com.todoist.pojo
open class Note<F : FileAttachment> @JvmOverloads constructor(
id: Long,
open var content: String?,
open var posted: Long = System.currentTimeMillis(),
open var postedUid: Long,
uidsToNotify: Collection<Long>?,
open var fileAttachment: F? = null,... | package com.todoist.pojo
open class Note<F : FileAttachment> @JvmOverloads constructor(
id: Long,
open var content: String?,
open var posted: Long = System.currentTimeMillis(),
open var postedUid: Long,
uidsToNotify: Collection<Long>?,
open var fileAttachment: F? = null,... | mit | Kotlin |
cd5de9153433f953af8c532d6575352963d1618a | Fix opcode | kvakil/venus,kvakil/venus,kvakil/venus | src/main/kotlin/simulator/impl/ADDI.kt | src/main/kotlin/simulator/impl/ADDI.kt | package venus.simulator.impl
import venus.riscv.Instruction
import venus.riscv.InstructionField
import venus.simulator.SimulatorState
import venus.simulator.DispatchTest
import venus.simulator.FieldTest
import venus.simulator.InstructionImplementation
object ADDI {
val implementation = object: InstructionImplemen... | package venus.simulator.impl
import venus.riscv.Instruction
import venus.riscv.InstructionField
import venus.simulator.SimulatorState
import venus.simulator.DispatchTest
import venus.simulator.FieldTest
import venus.simulator.InstructionImplementation
object ADDI {
val implementation = object: InstructionImplemen... | mit | Kotlin |
420d643b5f6c04bd4f30fc9c78079cafa66ac371 | refactor #523 Remove redundant type declaration. | toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Jitte,toastkidjp/Yobidashi_kt | app/src/main/java/jp/toastkid/yobidashi/browser/tls/TlsErrorDialogFragment.kt | app/src/main/java/jp/toastkid/yobidashi/browser/tls/TlsErrorDialogFragment.kt | /*
* Copyright (c) 2018 toastkidjp.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompany this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html.
*/
package jp.... | /*
* Copyright (c) 2018 toastkidjp.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompany this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html.
*/
package jp.... | epl-1.0 | Kotlin |
f2bd513c97988a72ea875f4c9585203c32509651 | Refactor of method names for better readability. | ramonrabello/Kiphy | app/src/main/kotlin/com/github/ramonrabello/kiphy/trends/TrendingContract.kt | app/src/main/kotlin/com/github/ramonrabello/kiphy/trends/TrendingContract.kt | package com.github.ramonrabello.kiphy.trends
import com.github.ramonrabello.kiphy.trends.model.TrendingResponse
/**
* MVP contract for Giphy Trending API.
*/
interface TrendingContract {
/**
* View for Trending contract.
*/
interface View {
fun showProgress()
fun hideProgress()
... | package com.github.ramonrabello.kiphy.trends
import com.github.ramonrabello.kiphy.data.model.Trending
/**
* MVP contract for Giphy Trending API.
*/
interface TrendingContract {
/**
* View for Trending contract.
*/
interface View {
fun showProgress()
fun hideProgress()
fun ... | apache-2.0 | Kotlin |
465d448fe79276686f4b811b2fc43d8b1878d503 | simplify didUpdateBitrate signature | clappr/clappr-android,clappr/clappr-android | clappr/src/main/kotlin/io/clappr/player/playback/ExoPlayerBitrateLogger.kt | clappr/src/main/kotlin/io/clappr/player/playback/ExoPlayerBitrateLogger.kt | package io.clappr.player.playback
import com.google.android.exoplayer2.C
import com.google.android.exoplayer2.analytics.AnalyticsListener
import com.google.android.exoplayer2.analytics.AnalyticsListener.EventTime
import com.google.android.exoplayer2.source.MediaSourceEventListener.LoadEventInfo
import com.google.andro... | package io.clappr.player.playback
import com.google.android.exoplayer2.C
import com.google.android.exoplayer2.analytics.AnalyticsListener
import com.google.android.exoplayer2.analytics.AnalyticsListener.EventTime
import com.google.android.exoplayer2.source.MediaSourceEventListener.LoadEventInfo
import com.google.andro... | bsd-3-clause | Kotlin |
f6da19e5e1933f9317ffec63718b831636442907 | mark complex path virtual file system as non-physical | allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/int... | platform/vcs-impl/src/com/intellij/vcs/editor/ComplexPathVirtualFileSystem.kt | platform/vcs-impl/src/com/intellij/vcs/editor/ComplexPathVirtualFileSystem.kt | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.vcs.editor
import com.intellij.openapi.diagnostic.logger
import com.intellij.openapi.project.Project
import com.intellij.openapi.project.ex.ProjectManagerEx
... | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.vcs.editor
import com.intellij.openapi.diagnostic.logger
import com.intellij.openapi.project.Project
import com.intellij.openapi.project.ex.ProjectManagerEx
... | apache-2.0 | Kotlin |
8d5b2ce70524fc120ce0eafd0f9e1c17b2c7a7d1 | Enable autoupdate again | mbarberot/mtg-grimoire,mbarberot/mtg-grimoire | src/main/kotlin/org/github/mbarberot/mtg/grimoire/business/updates/Updater.kt | src/main/kotlin/org/github/mbarberot/mtg/grimoire/business/updates/Updater.kt | package org.github.mbarberot.mtg.grimoire.business.updates
import org.github.mbarberot.mtg.grimoire.business.updates.mtgjson.MTGReader
import org.github.mbarberot.mtg.grimoire.model.Model
import java.net.URL
class Updater(
val model: Model,
var isReady: Boolean = false
) {
fun update() {
... | package org.github.mbarberot.mtg.grimoire.business.updates
import org.github.mbarberot.mtg.grimoire.business.updates.mtgjson.MTGReader
import org.github.mbarberot.mtg.grimoire.model.Model
import java.net.URL
class Updater(
val model: Model,
var isReady: Boolean = false
) {
fun update() {
... | mit | Kotlin |
2a4f6bd94640876da4926eefddb4af37bd1b7f16 | Make list of breakpoints mutable | shiraji/breakpoints-manager,shiraji/breakpoints-manager,shiraji/breakpoints-manager | src/main/java/com/github/shiraji/breakpointsmanager/model/BreakpointState.kt | src/main/java/com/github/shiraji/breakpointsmanager/model/BreakpointState.kt | package com.github.shiraji.breakpointsmanager.model
data class BreakpointState(var entities: MutableMap<String, MutableList<BreakpointEntity>> = mutableMapOf())
| package com.github.shiraji.breakpointsmanager.model
data class BreakpointState(var entities: MutableMap<String, List<BreakpointEntity>> = mutableMapOf())
| apache-2.0 | Kotlin |
f3a19c237f70466613bc4764255c1691d9bb5070 | Add permissions/method name to model | shiraji/permissions-dispatcher-plugin,shiraji/permissions-dispatcher-plugin,shiraji/permissions-dispatcher-plugin | src/main/kotlin/com/github/shiraji/permissionsdispatcherplugin/models/GeneratePMCodeModel.kt | src/main/kotlin/com/github/shiraji/permissionsdispatcherplugin/models/GeneratePMCodeModel.kt | package com.github.shiraji.permissionsdispatcherplugin.models
import com.intellij.openapi.project.Project
import com.intellij.psi.JavaPsiFacade
import com.intellij.psi.PsiClass
import com.intellij.psi.search.GlobalSearchScope
class GeneratePMCodeModel(project: Project) {
private val activityPsiClass: PsiClass? =... | package com.github.shiraji.permissionsdispatcherplugin.models
import com.intellij.openapi.project.Project
import com.intellij.psi.JavaPsiFacade
import com.intellij.psi.PsiClass
import com.intellij.psi.search.GlobalSearchScope
class GeneratePMCodeModel(project: Project) {
private val activityPsiClass: PsiClass? =... | apache-2.0 | Kotlin |
274906d63f43ab34456271324d78db31774cf0b9 | refactor #727 Add blank line. | toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Yobidashi_kt | app/src/main/java/jp/toastkid/yobidashi/about/license/LicenseContentLoaderUseCase.kt | app/src/main/java/jp/toastkid/yobidashi/about/license/LicenseContentLoaderUseCase.kt | /*
* Copyright (c) 2021 toastkidjp.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompany this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html.
*/
package jp.... | /*
* Copyright (c) 2021 toastkidjp.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompany this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html.
*/
package jp.... | epl-1.0 | Kotlin |
d84ad1dd0345ef99546438d70f1081b6f85ba74a | Refactor Main (Due to fix in JavaFX 9) | Ehvazend/BuilderMPU | src/main/kotlin/net/ehvazend/builder/Main.kt | src/main/kotlin/net/ehvazend/builder/Main.kt | package net.ehvazend.builder
import javafx.application.Application
import javafx.fxml.FXMLLoader
import javafx.scene.Scene
import javafx.scene.image.Image
import javafx.stage.Stage
import net.ehvazend.builder.Main.DataApplication.*
class Main : Application() {
enum class DataApplication(val get: String) {
... | package net.ehvazend.builder
import javafx.application.Application
import javafx.fxml.FXMLLoader
import javafx.scene.Scene
import javafx.scene.image.Image
import javafx.stage.Stage
import net.ehvazend.builder.Main.DataApplication.*
class Main : Application() {
enum class DataApplication(val get: String) {
... | apache-2.0 | Kotlin |
531bc84d7995bdcb4c9174716438a416a560ee81 | Add thumbnail requests | djkovrik/YapTalker,djkovrik/YapTalker | app/src/main/java/com/sedsoftware/yaptalker/data/remote/thumbnails/Requests.kt | app/src/main/java/com/sedsoftware/yaptalker/data/remote/thumbnails/Requests.kt | package com.sedsoftware.yaptalker.data.remote.thumbnails
import com.sedsoftware.yaptalker.data.model.video.CoubData
import com.sedsoftware.yaptalker.data.model.video.RutubeData
import io.reactivex.Single
import retrofit2.http.GET
import retrofit2.http.Path
import retrofit2.http.Query
interface RutubeThumbnailLoader {... | apache-2.0 | Kotlin | |
4482718f77f08c16aa5a0fe9aeb530154ecf1c14 | add di | StepicOrg/stepic-android,StepicOrg/stepik-android,StepicOrg/stepik-android,StepicOrg/stepic-android,StepicOrg/stepic-android,StepicOrg/stepik-android | app/src/main/java/org/stepik/android/view/injection/search/SearchDataModule.kt | app/src/main/java/org/stepik/android/view/injection/search/SearchDataModule.kt | package org.stepik.android.view.injection.search
import dagger.Binds
import dagger.Module
import dagger.Provides
import org.stepik.android.cache.search.SearchCacheDataSourceImpl
import org.stepik.android.data.search.repository.SearchRepositoryImpl
import org.stepik.android.data.search.source.SearchCacheDataSource
impo... | package org.stepik.android.view.injection.search
import dagger.Binds
import dagger.Module
import dagger.Provides
import org.stepik.android.data.search.repository.SearchRepositoryImpl
import org.stepik.android.data.search.source.SearchRemoteDataSource
import org.stepik.android.domain.search.repository.SearchRepository
... | apache-2.0 | Kotlin |
b0adac6b691ef2fec90c52ac985a5906dd8c5b79 | Use `ioBuffer` to avoid redundant data copy for sending to sockets | ktorio/ktor,ktorio/ktor,ktorio/ktor,ktorio/ktor | ktor-hosts/ktor-netty/src/org/jetbrains/ktor/netty/HttpContentWriteChannel.kt | ktor-hosts/ktor-netty/src/org/jetbrains/ktor/netty/HttpContentWriteChannel.kt | package org.jetbrains.ktor.netty
import io.netty.channel.*
import org.jetbrains.ktor.cio.*
import java.nio.*
internal class HttpContentWriteChannel(val context: ChannelHandlerContext) : WriteChannel {
private val allocator = context.alloc()
override suspend fun write(src: ByteBuffer) {
while (src.has... | package org.jetbrains.ktor.netty
import io.netty.channel.*
import org.jetbrains.ktor.cio.*
import java.nio.*
internal class HttpContentWriteChannel(val context: ChannelHandlerContext) : WriteChannel {
private val allocator = context.alloc()
override suspend fun write(src: ByteBuffer) {
while (src.has... | apache-2.0 | Kotlin |
2b9165a144c5ae8b3455e5ff1f43393ea4656fc8 | Add initial PageNodeTransformer interface | Kotlin/dokka,Kotlin/dokka,Kotlin/dokka,Kotlin/dokka,Kotlin/dokka,Kotlin/dokka | core/src/main/kotlin/pages/transformers/PageNodeTransformer.kt | core/src/main/kotlin/pages/transformers/PageNodeTransformer.kt | package org.jetbrains.dokka.pages.transformers
import org.jetbrains.dokka.pages.ModulePageNode
interface PageNodeTransformer {
operator fun invoke(original: ModulePageNode): ModulePageNode
} | apache-2.0 | Kotlin | |
e58be4814d5cea0b31382c97e2b1a4500fd5c597 | Adjust test case to changes in `PluginRequest` | gradle/gradle-script-kotlin,robinverduijn/gradle,gradle/gradle,blindpirate/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,gradle/gradl... | src/test/kotlin/org/gradle/script/lang/kotlin/KotlinPluginDependenciesHandlerTest.kt | src/test/kotlin/org/gradle/script/lang/kotlin/KotlinPluginDependenciesHandlerTest.kt | package org.gradle.script.lang.kotlin
import org.gradle.groovy.scripts.StringScriptSource
import org.gradle.plugin.use.PluginDependenciesSpec
import org.gradle.plugin.use.internal.PluginRequestCollector
import org.hamcrest.CoreMatchers.equalTo
import org.hamcrest.MatcherAssert.assertThat
import org.junit.Test
clas... | package org.gradle.script.lang.kotlin
import org.gradle.groovy.scripts.StringScriptSource
import org.gradle.plugin.use.PluginDependenciesSpec
import org.gradle.plugin.use.internal.PluginRequest
import org.gradle.plugin.use.internal.PluginRequestCollector
import org.hamcrest.CoreMatchers.equalTo
import org.hamcrest.M... | apache-2.0 | Kotlin |
5e69f7538efd25c7add2baaa1e31dca39b653775 | refactor #435 Safe delete 'setImageToImageView'. | toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Yobidashi_kt | app/src/main/java/jp/toastkid/yobidashi/libs/ImageLoader.kt | app/src/main/java/jp/toastkid/yobidashi/libs/ImageLoader.kt | package jp.toastkid.yobidashi.libs
import android.content.Context
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.graphics.drawable.BitmapDrawable
import android.net.Uri
import java.io.IOException
/**
* Image file loader.
* @author toastkidjp
*/
object ImageLoader {
/**
... | package jp.toastkid.yobidashi.libs
import android.content.Context
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.graphics.drawable.BitmapDrawable
import android.net.Uri
import android.text.TextUtils
import android.widget.ImageView
import timber.log.Timber
import java.io.File
impor... | epl-1.0 | Kotlin |
47b11a8beb11f36f6aeeca7935679b0119b8e967 | optimize error message | YiiGuxing/TranslationPlugin,YiiGuxing/TranslationPlugin | src/main/kotlin/cn/yiiguxing/plugin/translate/trans/AbstractTranslator.kt | src/main/kotlin/cn/yiiguxing/plugin/translate/trans/AbstractTranslator.kt | package cn.yiiguxing.plugin.translate.trans
import cn.yiiguxing.plugin.translate.message
import com.intellij.util.io.HttpRequests
import io.netty.handler.codec.http.HttpResponseStatus
import java.net.ConnectException
import java.net.SocketException
import java.net.SocketTimeoutException
import java.net.UnknownHostExce... | package cn.yiiguxing.plugin.translate.trans
import cn.yiiguxing.plugin.translate.message
import com.intellij.util.io.HttpRequests
import io.netty.handler.codec.http.HttpResponseStatus
import java.io.IOException
import java.net.ConnectException
import java.net.SocketException
import java.net.SocketTimeoutException
impo... | mit | Kotlin |
70e6430960bb97f1999d24980df72c6544e3aad4 | Make oneskyExtension field | rejasupotaro/onesky-gradle-plugin,rejasupotaro/onesky-gradle-plugin | plugin/src/main/java/rejasupotaro/onesky/plugin/OneskyTask.kt | plugin/src/main/java/rejasupotaro/onesky/plugin/OneskyTask.kt | package rejasupotaro.onesky.plugin
import org.gradle.api.DefaultTask
open class OneskyTask : DefaultTask() {
val oneskyExtension by lazy {
project.extensions.findByType(OneskyExtension::class.java)
}
val oneskyClient by lazy {
val apiKey = oneskyExtension.apiKey
val apiSecret = on... | package rejasupotaro.onesky.plugin
import org.gradle.api.DefaultTask
open class OneskyTask : DefaultTask() {
val oneskyClient by lazy {
val extension = project.extensions.findByType(OneskyExtension::class.java)
val apiKey = extension.apiKey
val apiSecret = extension.apiSecret
val p... | mit | Kotlin |
c9f3b75c3011932b639fb5747dfd54ad2487e738 | test single thread scope | hypercube1024/firefly,hypercube1024/firefly,hypercube1024/firefly,hypercube1024/firefly,hypercube1024/firefly | firefly-common/src/main/kotlin/com/fireflysource/common/coroutine/ChannelExtension.kt | firefly-common/src/main/kotlin/com/fireflysource/common/coroutine/ChannelExtension.kt | package com.fireflysource.common.coroutine
import kotlinx.coroutines.channels.Channel
inline fun <T> Channel<T>.consumeAll(crossinline block: (T) -> Unit) {
try {
while (true) {
val result = this.tryReceive()
if (result.isFailure) {
break
}
v... | package com.fireflysource.common.coroutine
import kotlinx.coroutines.channels.Channel
inline fun <T> Channel<T>.consumeAll(crossinline block: (T) -> Unit) {
try {
while (true) {
val result = this.tryReceive()
if (result.isFailure) {
break
}
v... | apache-2.0 | Kotlin |
14d2b7466f87321c9445165a2ae241c0438de2d2 | add comment for diffutil | android/performance-samples,android/performance-samples,android/performance-samples | BenchmarkSample/ui/src/main/java/com/example/benchmark/ui/SampleAdapter.kt | BenchmarkSample/ui/src/main/java/com/example/benchmark/ui/SampleAdapter.kt | package com.example.benchmark.ui
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
class SampleAdapter : ListAdapter<String, Holder>(StringDiffCallback) {
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): Holder {
re... | package com.example.benchmark.ui
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
class SampleAdapter : ListAdapter<String, Holder>(StringDiffCallback) {
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): Holder {
re... | apache-2.0 | Kotlin |
a6a71d7f0a978a14215fa33a1a36c0694ae95e37 | refactor #220 Modify constructor for writeable unit test. | toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt,toastkidjp/Jitte | app/src/main/java/jp/toastkid/yobidashi/browser/archive/auto/AutoArchive.kt | app/src/main/java/jp/toastkid/yobidashi/browser/archive/auto/AutoArchive.kt | /*
* Copyright (c) 2019 toastkidjp.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompany this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html.
*/
package jp.... | /*
* Copyright (c) 2019 toastkidjp.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompany this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html.
*/
package jp.... | epl-1.0 | Kotlin |
e3aa6bbb0c690285bc61a39cdabe6213ae63d6a6 | Make DateResponse a data class | google/ground-android,google/ground-android,google/ground-android | ground/src/main/java/com/google/android/ground/model/submission/DateResponse.kt | ground/src/main/java/com/google/android/ground/model/submission/DateResponse.kt | /*
* Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | /*
* Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | apache-2.0 | Kotlin |
3e3b649193e58fb0707724fe260bcf38db54329a | Mark on{Success,Failure} as infix | michaelbull/kotlin-result | src/main/kotlin/com/github/michaelbull/result/On.kt | src/main/kotlin/com/github/michaelbull/result/On.kt | package com.github.michaelbull.result
/**
* Calls a [callback] if the [Result] is [Ok].
* @param callback The function to call.
*/
infix inline fun <V, E> Result<V, E>.onSuccess(callback: (V) -> Unit) = mapBoth(callback, {})
/**
* Calls a [callback] if the [Result] is [Err].
* @param callback The function to cal... | package com.github.michaelbull.result
/**
* Calls a [callback] if the [Result] is [Ok].
* @param callback The function to call.
*/
inline fun <V, E> Result<V, E>.onSuccess(callback: (V) -> Unit) = mapBoth(callback, {})
/**
* Calls a [callback] if the [Result] is [Err].
* @param callback The function to call.
*/... | isc | Kotlin |
27f00c26cda06bab7114287337f5ce65c3a4f38a | add videortppacket-specific clone | jitsi/jitsi-videobridge,jitsi/jitsi-videobridge,jitsi/jitsi-videobridge,jitsi/jitsi-videobridge,jitsi/jitsi-videobridge,jitsi/jitsi-videobridge,jitsi/jitsi-videobridge | src/main/kotlin/org/jitsi/nlj/rtp/VideoRtpPacket.kt | src/main/kotlin/org/jitsi/nlj/rtp/VideoRtpPacket.kt | /*
* Copyright @ 2018 Atlassian Pty Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | /*
* Copyright @ 2018 Atlassian Pty Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | apache-2.0 | Kotlin |
67db8bc706e2da04bd1b46f8c8aae7d4385374d9 | Remove unnecessary cast | BjoernPetersen/JMusicBot | src/main/kotlin/net/bjoernpetersen/musicbot/api/plugin/management/DependencyFinder.kt | src/main/kotlin/net/bjoernpetersen/musicbot/api/plugin/management/DependencyFinder.kt | package net.bjoernpetersen.musicbot.api.plugin.management
import com.google.inject.spi.InjectionPoint
import net.bjoernpetersen.musicbot.spi.plugin.Plugin
import kotlin.reflect.KClass
import kotlin.reflect.full.isSubclassOf
/**
* Find the immediate dependencies of a plugin.
*/
fun Plugin.findDependencies(): Set<KCl... | package net.bjoernpetersen.musicbot.api.plugin.management
import com.google.inject.spi.InjectionPoint
import net.bjoernpetersen.musicbot.spi.plugin.Plugin
import kotlin.reflect.KClass
import kotlin.reflect.full.isSubclassOf
/**
* Find the immediate dependencies of a plugin.
*/
fun Plugin.findDependencies(): Set<KCl... | mit | Kotlin |
5d67b68717b952ccbd46a8b9a743d5ed7379a92b | refactor #605 Use explicit importing. | toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt | app/src/test/java/jp/toastkid/yobidashi/editor/ContentHolderServiceTest.kt | app/src/test/java/jp/toastkid/yobidashi/editor/ContentHolderServiceTest.kt | package jp.toastkid.yobidashi.editor
import org.junit.Assert.assertTrue
import org.junit.Assert.assertFalse
import org.junit.Assert.assertEquals
import org.junit.Before
import org.junit.Test
/**
* @author toastkidjp
*/
class ContentHolderServiceTest {
private lateinit var contentHolderService: ContentHolderSer... | package jp.toastkid.yobidashi.editor
import org.junit.Assert.*
import org.junit.Before
import org.junit.Test
/**
* @author toastkidjp
*/
class ContentHolderServiceTest {
private lateinit var contentHolderService: ContentHolderService
@Before
fun setUp() {
contentHolderService = ContentHolderSe... | epl-1.0 | Kotlin |
b0024b2d46441b59708a6a5f058f43ad6ad5eebb | refactor #605 Implement MenuSwitchColorApplier's test. | toastkidjp/Jitte,toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt | app/src/test/java/jp/toastkid/yobidashi/menu/MenuSwitchColorApplierTest.kt | app/src/test/java/jp/toastkid/yobidashi/menu/MenuSwitchColorApplierTest.kt | package jp.toastkid.yobidashi.menu
import android.graphics.Color
import com.google.android.material.floatingactionbutton.FloatingActionButton
import io.mockk.MockKAnnotations
import io.mockk.every
import io.mockk.impl.annotations.MockK
import io.mockk.mockk
import io.mockk.unmockkAll
import io.mockk.verify
import jp.t... | epl-1.0 | Kotlin | |
87b86a24790caac8fa9b47d0338e4aab655cd666 | add two finger tap gesture (not implemented) test | Guardiola31337/uiagesturegen | uiagesturegen/src/androidTest/kotlin/com/pguardiola/uiagesturegen/TwoFingerTapTest.kt | uiagesturegen/src/androidTest/kotlin/com/pguardiola/uiagesturegen/TwoFingerTapTest.kt | /*
* Copyright (C) 2017 Pablo Guardiola Sánchez.
*
* 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 ... | apache-2.0 | Kotlin | |
c426b692915121c99d0225658cc916a31c44e508 | refactor #307 Add comments. | toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Jitte | app/src/main/java/jp/toastkid/yobidashi/settings/fragment/DisplayingSettingFragment.kt | app/src/main/java/jp/toastkid/yobidashi/settings/fragment/DisplayingSettingFragment.kt | /*
* Copyright (c) 2019 toastkidjp.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompany this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html.
*/
package jp.... | /*
* Copyright (c) 2019 toastkidjp.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompany this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html.
*/
package jp.... | epl-1.0 | Kotlin |
b029686f1650dd1073586eea5866536495302982 | refactor #289 Extract to function. | toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt,toastkidjp/Jitte | app/src/main/java/jp/toastkid/yobidashi/settings/initial/InitialIndexSettingUseCase.kt | app/src/main/java/jp/toastkid/yobidashi/settings/initial/InitialIndexSettingUseCase.kt | /*
* Copyright (c) 2019 toastkidjp.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompany this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html.
*/
package jp.... | /*
* Copyright (c) 2019 toastkidjp.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompany this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html.
*/
package jp.... | epl-1.0 | Kotlin |
557652b18ec1ea5ec1b536fdf2d39b1809b744c8 | Remove test for hex strings in WiFi codes | markusfisch/BinaryEye,markusfisch/BinaryEye | app/src/test/kotlin/de/markusfisch/android/binaryeye/actions/wifi/WifiConnectorTest.kt | app/src/test/kotlin/de/markusfisch/android/binaryeye/actions/wifi/WifiConnectorTest.kt | package de.markusfisch.android.binaryeye.actions.wifi
import de.markusfisch.android.binaryeye.simpleFail
import junit.framework.TestCase.*
import org.junit.Test
class WifiConnectorTest {
@Test
fun notWifi() {
assertNull(WifiConnector.parseMap("asdfz"))
}
@Test
fun wep() {
val info = simpleDataAccessor("WIFI... | package de.markusfisch.android.binaryeye.actions.wifi
import de.markusfisch.android.binaryeye.simpleFail
import junit.framework.TestCase.*
import org.junit.Test
class WifiConnectorTest {
@Test
fun notWifi() {
assertNull(WifiConnector.parseMap("asdfz"))
}
@Test
fun wep() {
val info = simpleDataAccessor("WIFI... | mit | Kotlin |
4a07895cb4c09909906b8bebe0ef8507106b0429 | Update bind user request | applivery/applivery-android-sdk,applivery/applivery-android-sdk | applvsdklib/src/main/java/com/applivery/applvsdklib/network/api/AppliveryApiService.kt | applvsdklib/src/main/java/com/applivery/applvsdklib/network/api/AppliveryApiService.kt | /*
* Copyright (c) 2016 Applivery
*
* 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 (c) 2016 Applivery
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | apache-2.0 | Kotlin |
db453d2ec3db26d219c58ca4df99d1635917dddc | Update to version 3.6 | openHPI/android-app | buildSrc/src/main/kotlin/Dependencies.kt | buildSrc/src/main/kotlin/Dependencies.kt | import org.gradle.api.JavaVersion
object Versions {
// Project
const val KOTLIN = "1.4.10"
const val BUILD_TOOLS = "30.0.2"
const val MIN_SDK = 21
const val TARGET_SDK = 30
const val COMPILE_SDK = 30
const val VERSION_NAME = "3.6"
const val VERSION_CODE = 60
const val XIKOLO_API =... | import org.gradle.api.JavaVersion
object Versions {
// Project
const val KOTLIN = "1.4.10"
const val BUILD_TOOLS = "30.0.2"
const val MIN_SDK = 21
const val TARGET_SDK = 30
const val COMPILE_SDK = 30
const val VERSION_NAME = "3.5"
const val VERSION_CODE = 59
const val XIKOLO_API =... | bsd-3-clause | Kotlin |
2351c1b4268fdbe4f1d3de44857bbc5c60cef64b | Update AGP for AS 4.1.1 | inorichi/tachiyomi,inorichi/mangafeed,inorichi/mangafeed,inorichi/tachiyomi,CarlosEsco/tachiyomi | buildSrc/src/main/kotlin/Dependencies.kt | buildSrc/src/main/kotlin/Dependencies.kt | object BuildPluginsVersion {
const val AGP = "4.1.1"
const val KOTLIN = "1.4.10"
const val KOTLINTER = "3.0.2"
const val VERSIONS_PLUGIN = "0.33.0"
}
| object BuildPluginsVersion {
const val AGP = "4.1.0"
const val KOTLIN = "1.4.10"
const val KOTLINTER = "3.0.2"
const val VERSIONS_PLUGIN = "0.33.0"
}
| apache-2.0 | Kotlin |
0e3240b472be0d2d99f58fc4bd1f1b0c5d790e3a | Use Hetzner internal build cache node | gradle/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,... | gradle/init-scripts/build-scan.init.gradle.kts | gradle/init-scripts/build-scan.init.gradle.kts | /*
* This is an init script for internal usage at Gradle Inc.
*/
val tasksWithBuildScansOnFailure = listOf("verifyTestFilesCleanup", "killExistingProcessesStartedByGradle", "tagBuild").map { listOf(it)}
if (!gradle.startParameter.systemPropertiesArgs.containsKey("disableScanPlugin")) {
rootProject {
plug... | /*
* This is an init script for internal usage at Gradle Inc.
*/
val tasksWithBuildScansOnFailure = listOf("verifyTestFilesCleanup", "killExistingProcessesStartedByGradle", "tagBuild").map { listOf(it)}
if (!gradle.startParameter.systemPropertiesArgs.containsKey("disableScanPlugin")) {
rootProject {
plug... | apache-2.0 | Kotlin |
a6ffe24757e5c38f4df32902beae502a64045bbb | Revert "Remove ObjectiveCDocumentationElementProvider" | YiiGuxing/TranslationPlugin,YiiGuxing/TranslationPlugin | src/main/kotlin/cn/yiiguxing/plugin/translate/provider/ObjectiveCDocumentationElementProvider.kt | src/main/kotlin/cn/yiiguxing/plugin/translate/provider/ObjectiveCDocumentationElementProvider.kt | package cn.yiiguxing.plugin.translate.provider
import cn.yiiguxing.plugin.translate.util.findChild
import cn.yiiguxing.plugin.translate.util.getNextSiblingSkippingCondition
import com.intellij.psi.*
import com.jetbrains.cidr.lang.psi.OCDeclaration
import com.jetbrains.cidr.lang.psi.OCDeclarationStatement
import com.je... | mit | Kotlin | |
b243d412a6789528efee703ec220cbcabcdf3c3f | Put diagnostics for scripts on editor opening | noemus/kotlin-eclipse,noemus/kotlin-eclipse | kotlin-eclipse-ui/src/org/jetbrains/kotlin/ui/editors/KotlinScriptEditor.kt | kotlin-eclipse-ui/src/org/jetbrains/kotlin/ui/editors/KotlinScriptEditor.kt | package org.jetbrains.kotlin.ui.editors
import com.intellij.openapi.util.text.StringUtil
import org.eclipse.core.resources.IFile
import org.eclipse.jdt.core.IJavaProject
import org.eclipse.jdt.core.JavaCore
import org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor
import org.eclipse.jdt.internal.ui.javaedito... | package org.jetbrains.kotlin.ui.editors
import com.intellij.openapi.util.text.StringUtil
import org.eclipse.core.resources.IFile
import org.eclipse.jdt.core.IJavaProject
import org.eclipse.jdt.core.JavaCore
import org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor
import org.eclipse.jdt.internal.ui.javaedito... | apache-2.0 | Kotlin |
195f66778ac355999f12f6e7061ba66f3b3b76f2 | fix test case for visibility check | google/ksp,google/ksp,google/ksp | plugins/ksp/testData/api/visibilities.kt | plugins/ksp/testData/api/visibilities.kt | // TEST PROCESSOR: VisibilityProcessor
// EXPECTED:
// publicFun: PUBLIC,visible in A, B, D: true, true, true
// packageFun: JAVA_PACKAGE,visible in A, B, D: true, false, true
// privateFun: PRIVATE,visible in A, B, D: false, false, false
// protectedFun: PROTECTED,visible in A, B, D: true, false, true
// END
// FILE:... | // TEST PROCESSOR: VisibilityProcessor
// EXPECTED:
// publicFun: PUBLIC,visible in A, B, D: true, true, true
// packageFun: JAVA_PACKAGE,visible in A, B, D: true, false, true
// privateFun: PRIVATE,visible in A, B, D: false, false, false
// protectedFun: PROTECTED,visible in A, B, D: true, false, false
// END
// FILE... | apache-2.0 | Kotlin |
dc08a471a10d08c07c3ca27e30a588257088c5cc | fix flow in getDeviceInfo | Yubico/yubioath-desktop,Yubico/yubioath-desktop,Yubico/yubioath-desktop,Yubico/yubioath-desktop,Yubico/yubioath-desktop | android/app/src/main/kotlin/com/yubico/authenticator/yubikit/DeviceInfoHelper.kt | android/app/src/main/kotlin/com/yubico/authenticator/yubikit/DeviceInfoHelper.kt | package com.yubico.authenticator.yubikit
import com.yubico.authenticator.device.Info
import com.yubico.authenticator.logging.Log
import com.yubico.authenticator.management.model
import com.yubico.authenticator.oath.OathManager
import com.yubico.yubikit.android.transport.nfc.NfcYubiKeyDevice
import com.yubico.yubikit.a... | package com.yubico.authenticator.yubikit
import com.yubico.authenticator.device.Info
import com.yubico.authenticator.logging.Log
import com.yubico.authenticator.management.model
import com.yubico.authenticator.oath.OathManager
import com.yubico.yubikit.android.transport.nfc.NfcYubiKeyDevice
import com.yubico.yubikit.a... | apache-2.0 | Kotlin |
5cfc7caf2183b0446ea3c9e4bbe9042c69d653ff | Add DSL config to the gson-sample | ktorio/ktor,ktorio/ktor,ktorio/ktor,ktorio/ktor | ktor-samples/ktor-samples-gson/src/io/ktor/samples/gson/GsonApplication.kt | ktor-samples/ktor-samples-gson/src/io/ktor/samples/gson/GsonApplication.kt | package io.ktor.samples.gson
import io.ktor.application.*
import io.ktor.features.*
import io.ktor.gson.*
import io.ktor.http.*
import io.ktor.response.*
import io.ktor.routing.*
import java.text.*
data class Model(val name: String, val items: List<Item>)
data class Item(val key: String, val value: String)
/*
... | package io.ktor.samples.gson
import io.ktor.application.*
import io.ktor.features.*
import io.ktor.gson.*
import io.ktor.http.*
import io.ktor.response.*
import io.ktor.routing.*
data class Model(val name: String, val items: List<Item>)
data class Item(val key: String, val value: String)
/*
> curl -v --comp... | apache-2.0 | Kotlin |
a1a9e669a83dff5cb15bcd5f49810a9a4aaa97fe | add viewstates classes | DevPicon/kotlin-marvel-hero-finder,DevPicon/kotlin-marvel-hero-finder | app/src/main/kotlin/pe/devpicon/android/marvelheroes/presentation/home/MainViewState.kt | app/src/main/kotlin/pe/devpicon/android/marvelheroes/presentation/home/MainViewState.kt | package pe.devpicon.android.marvelheroes.presentation.home
import android.text.SpannableString
data class SearchViewState(
val id: Long,
val name: String
)
data class HeroViewState(
val thumbnailUrl: String,
val name: SpannableString,
val description: SpannableString,
... | package pe.devpicon.android.marvelheroes.presentation.home
data class SearchViewState(
val id: Long,
val name: String
) | mit | Kotlin |
e4b5b5a239687a215fbacbcdaa6ff3d8a084fc64 | Add dev plugin for drawing all models | RuneSuite/client,RuneSuite/client | plugins-dev/src/main/java/org/runestar/client/plugins/dev/ModelDrawTest.kt | plugins-dev/src/main/java/org/runestar/client/plugins/dev/ModelDrawTest.kt | package org.runestar.client.plugins.dev
import org.runestar.client.api.util.DisposablePlugin
import org.runestar.client.game.api.Model
import org.runestar.client.game.api.SceneObject
import org.runestar.client.game.api.live.*
import org.runestar.client.game.raw.access.XScene
import org.runestar.client.plugins.spi.Plug... | mit | Kotlin | |
e61fc3c4013d3f9d5ea366b32260bb9283c28118 | Update build.gradle.kts | awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,a... | kotlin/services/dynamodb/build.gradle.kts | kotlin/services/dynamodb/build.gradle.kts | import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.5.31"
application
}
group = "me.scmacdon"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
implementation("aws.sdk.kotlin:dynamodb:0.14.3-beta")
testImplementation("org.junit.jupiter:... | import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.5.31"
application
}
group = "me.scmacdon"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
implementation("aws.sdk.kotlin:dynamodb:0.14.3-beta")
testImplementation("org.junit.jupiter:... | apache-2.0 | Kotlin |
8e57e3f5200dfb49447bf0b783bc75c9945b5a80 | Add `attributes` to Application | ktorio/ktor,ktorio/ktor,ktorio/ktor,ktorio/ktor | ktor-core/src/org/jetbrains/ktor/application/Application.kt | ktor-core/src/org/jetbrains/ktor/application/Application.kt | package org.jetbrains.ktor.application
import org.jetbrains.ktor.interception.*
import org.jetbrains.ktor.util.*
/**
* Represents configured and running web application, capable of handling requests
*/
public open class Application(val config: ApplicationConfig) : InterceptApplicationCall<ApplicationCall> {
val... | package org.jetbrains.ktor.application
import org.jetbrains.ktor.http.*
import org.jetbrains.ktor.interception.*
/**
* Represents configured and running web application, capable of handling requests
*/
public open class Application(val config: ApplicationConfig) : InterceptApplicationCall<ApplicationCall> {
pri... | apache-2.0 | Kotlin |
8449854c044ac2f0aaa1bb17f8767e49fe8c0ea1 | use internal engine thread (#531) | envoyproxy/envoy-mobile,envoyproxy/envoy-mobile,envoyproxy/envoy-mobile,envoyproxy/envoy-mobile,envoyproxy/envoy-mobile,envoyproxy/envoy-mobile,envoyproxy/envoy-mobile,envoyproxy/envoy-mobile,envoyproxy/envoy-mobile | library/kotlin/src/io/envoyproxy/envoymobile/EnvoyClient.kt | library/kotlin/src/io/envoyproxy/envoymobile/EnvoyClient.kt | package io.envoyproxy.envoymobile
import io.envoyproxy.envoymobile.engine.EnvoyConfiguration
import io.envoyproxy.envoymobile.engine.EnvoyEngine
import java.nio.ByteBuffer
/**
* Available logging levels for an Envoy instance. Note some levels may be compiled out.
*/
enum class LogLevel(internal val level: String) {... | package io.envoyproxy.envoymobile
import io.envoyproxy.envoymobile.engine.EnvoyConfiguration
import io.envoyproxy.envoymobile.engine.EnvoyEngine
import java.nio.ByteBuffer
/**
* Available logging levels for an Envoy instance. Note some levels may be compiled out.
*/
enum class LogLevel(internal val level: String) {... | apache-2.0 | Kotlin |
8c57ea3c4cbedce5a3b24ac207d0167f6eea87fa | fix cast | hitting1024/FirebaseSampleForAndroid | FirebaseSampleForAndroid/app/src/main/kotlin/jp/hitting/firebasesampleforandroid/FirebaseAdapter.kt | FirebaseSampleForAndroid/app/src/main/kotlin/jp/hitting/firebasesampleforandroid/FirebaseAdapter.kt | package jp.hitting.firebasesampleforandroid
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ArrayAdapter
import android.widget.TextView
import com.google.firebase.database.DataSnapshot
class FirebaseAdapter(context: Context... | package jp.hitting.firebasesampleforandroid
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ArrayAdapter
import android.widget.TextView
import com.google.firebase.database.DataSnapshot
import java.util.*
class FirebaseAdapt... | mit | Kotlin |
d1df70f51790e3161e6d1be5876228e48786f66d | Extend HardwareCanvasBlacklist based on crash reports | Doctoror/ParticleConstellationsLiveWallpaper,Doctoror/ParticleConstellationsLiveWallpaper | app/src/main/java/com/doctoror/particleswallpaper/data/config/HardwareCanvasBlacklist.kt | app/src/main/java/com/doctoror/particleswallpaper/data/config/HardwareCanvasBlacklist.kt | package com.doctoror.particleswallpaper.data.config
object HardwareCanvasBlacklist {
private val blackList = hashSetOf(
"beryllium",
"bullhead",
"chiron",
"degaswifiue",
"dipper",
"dream2lte",
"dream2qltesq",
"dreamlte... | package com.doctoror.particleswallpaper.data.config
object HardwareCanvasBlacklist {
private val blackList = hashSetOf(
"bullhead",
"degaswifiue",
"dream2qltesq",
"dreamlte",
"dreamlteks",
"F8332",
"gemini",
"grandneov... | apache-2.0 | Kotlin |
b3c0e2b38c2f6d33e9c93ae4ea857b0821cf66ea | refactor #559 Implement FragmentReplacingUseCase's test cases. | toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Yobidashi_kt | app/src/test/java/jp/toastkid/yobidashi/main/FragmentReplacingUseCaseTest.kt | app/src/test/java/jp/toastkid/yobidashi/main/FragmentReplacingUseCaseTest.kt | package jp.toastkid.yobidashi.main
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentTransaction
import io.mockk.MockKAnnotations
import io.mockk.every
import io.mockk.impl.annotations.MockK
import io.mockk.mockk
import io.mockk.unmockkAll
import io... | epl-1.0 | Kotlin | |
2fbd21aa6936b6c4e3aaf82c28e154ca23f8dbae | Add an IWrappedTerminalSymbolTokenType class. | rhdunn/xquery-intellij-plugin,rhdunn/xquery-intellij-plugin | src/xqt-platform-intellij/main/xqt/platform/intellij/lexer/token/IWrappedTerminalSymbolTokenType.kt | src/xqt-platform-intellij/main/xqt/platform/intellij/lexer/token/IWrappedTerminalSymbolTokenType.kt | // Copyright (C) 2022 Reece H. Dunn. SPDX-License-Identifier: Apache-2.0
package xqt.platform.intellij.lexer.token
import com.intellij.psi.tree.IElementType
import xqt.platform.xml.lexer.tokens.TerminalSymbolTokenType
/**
* A terminal symbol that wraps an IntelliJ element type.
*
* @param elementType The element t... | apache-2.0 | Kotlin | |
fba30b53bd250da48c4d4063f8e5a720a277b853 | Add test for DetectLeaksAfterTestSuccess test rule | square/leakcanary,square/leakcanary,square/leakcanary | leakcanary-android-instrumentation/src/androidTest/java/leakcanary/DetectLeaksAfterTestSuccessTest.kt | leakcanary-android-instrumentation/src/androidTest/java/leakcanary/DetectLeaksAfterTestSuccessTest.kt | package leakcanary
import org.assertj.core.api.Assertions.assertThat
import org.junit.Rule
import org.junit.Test
import org.junit.rules.RuleChain
import org.junit.rules.TestRule
import org.junit.runner.Description
import org.junit.runners.model.Statement
class DetectLeaksAfterTestSuccessTest {
object CheckAssertNo... | apache-2.0 | Kotlin | |
53bbbd4559897a753a8f2a85026c1529bb8936dc | Fix style | ligee/kotlin-jupyter | jupyter-lib/kotlin-jupyter-compiler/src/main/kotlin/org/jetbrains/kotlin/jupyter/config/compilation.kt | jupyter-lib/kotlin-jupyter-compiler/src/main/kotlin/org/jetbrains/kotlin/jupyter/config/compilation.kt | package org.jetbrains.kotlin.jupyter.config
import jupyter.kotlin.DependsOn
import jupyter.kotlin.Repository
import jupyter.kotlin.ScriptTemplateWithDisplayHelpers
import org.jetbrains.kotlin.scripting.resolve.skipExtensionsResolutionForImplicitsExceptInnermost
import java.io.File
import kotlin.script.experimental.api... | package org.jetbrains.kotlin.jupyter.config
import jupyter.kotlin.ScriptTemplateWithDisplayHelpers
import jupyter.kotlin.DependsOn
import jupyter.kotlin.Repository
import org.jetbrains.kotlin.scripting.resolve.skipExtensionsResolutionForImplicitsExceptInnermost
import java.io.File
import kotlin.script.experimental.api... | apache-2.0 | Kotlin |
5b408497c557248a6ddc5ed20a50292aa546f3d6 | Add longer timeouts due to longish processing times on devices | spark/photon-tinker-android,spark/photon-tinker-android | app/src/main/java/io/particle/particlemesh/meshsetup/Config.kt | app/src/main/java/io/particle/particlemesh/meshsetup/Config.kt | package io.particle.particlemesh.meshsetup
// FIXME: REVIEW ALL THESE VALUES!
// this has to be LONG for some of the messages to be processed (like AuthRequest)
const val BLE_PROTO_REQUEST_TIMEOUT_MILLIS = 15000
| package io.particle.particlemesh.meshsetup
// FIXME: REVIEW ALL THESE VALUES!
const val BLE_PROTO_REQUEST_TIMEOUT_MILLIS = 8000
| apache-2.0 | Kotlin |
ecd40f6e6f9c8bdae75ec9371c33fb7e280bebf2 | Improve KDoc wording | SpineEventEngine/base,SpineEventEngine/base,SpineEventEngine/base | base/src/main/kotlin/io/spine/protobuf/DescriptorExtensions.kt | base/src/main/kotlin/io/spine/protobuf/DescriptorExtensions.kt | /*
* Copyright 2022, TeamDev. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Redistribution and use in source... | /*
* Copyright 2022, TeamDev. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Redistribution and use in source... | apache-2.0 | Kotlin |
0974adb4bf13ff824fb361f4d9bf566244c85304 | use and in infix notation for bitwise operations | Yubico/yubioath-desktop,Yubico/yubioath-desktop,Yubico/yubioath-desktop,Yubico/yubioath-desktop,Yubico/yubioath-desktop | android/app/src/main/kotlin/com/yubico/authenticator/data/oath/SteamCredential.kt | android/app/src/main/kotlin/com/yubico/authenticator/data/oath/SteamCredential.kt | package com.yubico.authenticator.data.oath
import com.yubico.yubikit.oath.Code
import com.yubico.yubikit.oath.Credential
import com.yubico.yubikit.oath.OathSession
import com.yubico.yubikit.oath.OathType
import java.nio.ByteBuffer
import kotlin.experimental.and
/**
* Returns true if this credential is considered to ... | package com.yubico.authenticator.data.oath
import com.yubico.yubikit.oath.Code
import com.yubico.yubikit.oath.Credential
import com.yubico.yubikit.oath.OathSession
import com.yubico.yubikit.oath.OathType
import java.nio.ByteBuffer
import kotlin.experimental.and
/**
* Returns true if this credential is considered to ... | apache-2.0 | Kotlin |
a4bc55723d4e3fb3b762c2715d272f2ab119de34 | refactor #523 Add test case. | toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt | app/src/test/java/jp/toastkid/yobidashi/browser/webview/AlphaConverterTest.kt | app/src/test/java/jp/toastkid/yobidashi/browser/webview/AlphaConverterTest.kt | /*
* Copyright (c) 2021 toastkidjp.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompany this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html.
*/
package jp... | /*
* Copyright (c) 2021 toastkidjp.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompany this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html.
*/
package jp... | epl-1.0 | Kotlin |
0fa643ed4babfc766ca864c47181eff395a07ce0 | return -> expression body | kerubistan/kerub,K0zka/kerub,K0zka/kerub,kerubistan/kerub,K0zka/kerub,kerubistan/kerub | src/main/kotlin/com/github/kerubistan/kerub/planner/steps/vm/start/kvm/KvmStartVirtualMachineFactory.kt | src/main/kotlin/com/github/kerubistan/kerub/planner/steps/vm/start/kvm/KvmStartVirtualMachineFactory.kt | package com.github.kerubistan.kerub.planner.steps.vm.start.kvm
import com.github.kerubistan.kerub.model.Expectation
import com.github.kerubistan.kerub.model.Host
import com.github.kerubistan.kerub.model.OperatingSystem
import com.github.kerubistan.kerub.model.VirtualMachine
import com.github.kerubistan.kerub.model.col... | package com.github.kerubistan.kerub.planner.steps.vm.start.kvm
import com.github.kerubistan.kerub.model.Expectation
import com.github.kerubistan.kerub.model.Host
import com.github.kerubistan.kerub.model.OperatingSystem
import com.github.kerubistan.kerub.model.VirtualMachine
import com.github.kerubistan.kerub.model.col... | apache-2.0 | Kotlin |
75ad7d4b2dc7a15651fcba663f08ffdc321d073d | add wait function to Timeouts | allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/int... | platform/testGuiFramework/src/com/intellij/testGuiFramework/framework/Timeouts.kt | platform/testGuiFramework/src/com/intellij/testGuiFramework/framework/Timeouts.kt | // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.testGuiFramework.framework
import org.fest.swing.timing.Pause
import org.fest.swing.timing.Timeout
import java.util.concurrent.TimeUnit
object Timeouts {
... | // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.testGuiFramework.framework
import org.fest.swing.timing.Timeout
import java.util.concurrent.TimeUnit
object Timeouts {
val defaultTimeout = Timeout.timeou... | apache-2.0 | Kotlin |
273a7d975da4465fc79f89961f70a1f3640c6fb5 | refactor #412 Extract dispatchers to field. | toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Jitte | app/src/main/java/jp/toastkid/yobidashi/search/usecase/ContentSwitcherUseCase.kt | app/src/main/java/jp/toastkid/yobidashi/search/usecase/ContentSwitcherUseCase.kt | /*
* Copyright (c) 2021 toastkidjp.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompany this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html.
*/
package jp... | /*
* Copyright (c) 2021 toastkidjp.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompany this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html.
*/
package jp... | epl-1.0 | Kotlin |
077f40db5daa7733e30e4729f5071ded8447c1e0 | refactor #244 Move common initialization to setUp(). | toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Yobidashi_kt | app/src/test/java/jp/toastkid/yobidashi/libs/network/WebViewCookieHandlerTest.kt | app/src/test/java/jp/toastkid/yobidashi/libs/network/WebViewCookieHandlerTest.kt | package jp.toastkid.yobidashi.libs.network
import android.webkit.CookieManager
import io.mockk.MockKAnnotations
import io.mockk.every
import io.mockk.impl.annotations.MockK
import io.mockk.mockkStatic
import io.mockk.unmockkAll
import io.mockk.verify
import okhttp3.Cookie
import okhttp3.HttpUrl.Companion.toHttpUrl
imp... | package jp.toastkid.yobidashi.libs.network
import android.webkit.CookieManager
import io.mockk.MockKAnnotations
import io.mockk.every
import io.mockk.impl.annotations.MockK
import io.mockk.mockkStatic
import io.mockk.unmockkAll
import io.mockk.verify
import okhttp3.Cookie
import okhttp3.HttpUrl.Companion.toHttpUrl
imp... | epl-1.0 | Kotlin |
d6d354b19df5e594e13a22de855af1720218fefe | fix import | StepicOrg/stepic-android,StepicOrg/stepik-android,StepicOrg/stepik-android,StepicOrg/stepic-android,StepicOrg/stepic-android,StepicOrg/stepik-android | app/src/main/java/org/stepik/android/view/settings/ui/activity/SettingsActivity.kt | app/src/main/java/org/stepik/android/view/settings/ui/activity/SettingsActivity.kt | package org.stepik.android.view.settings.ui.activity
import android.os.Bundle
import android.view.MenuItem
import androidx.fragment.app.Fragment
import org.stepic.droid.R
import org.stepic.droid.ui.activities.SmartLockActivityBase
import org.stepic.droid.ui.util.initCenteredToolbar
import org.stepik.android.view.setti... | package org.stepik.android.view.settings.ui.activity
import android.os.Bundle
import android.view.MenuItem
import androidx.fragment.app.Fragment
import org.stepic.droid.R
import org.stepic.droid.ui.activities.SmartLockActivityBase
import org.stepic.droid.ui.util.initCenteredToolbar
import org.stepik.android.view.setti... | apache-2.0 | Kotlin |
c13db9dba89ecfc465b23e5e60d656b61d8d3b58 | Use JvmField for generated model properties. (#75) | JayNewstrom/json | plugin/compiler/src/main/kotlin/com/jaynewstrom/json/compiler/ModelBuilder.kt | plugin/compiler/src/main/kotlin/com/jaynewstrom/json/compiler/ModelBuilder.kt | package com.jaynewstrom.json.compiler
import com.squareup.kotlinpoet.AnnotationSpec
import com.squareup.kotlinpoet.FunSpec
import com.squareup.kotlinpoet.KModifier
import com.squareup.kotlinpoet.PropertySpec
import com.squareup.kotlinpoet.TypeSpec
internal data class ModelBuilder(
private val isPublic: Boolean,
... | package com.jaynewstrom.json.compiler
import com.squareup.kotlinpoet.FunSpec
import com.squareup.kotlinpoet.KModifier
import com.squareup.kotlinpoet.PropertySpec
import com.squareup.kotlinpoet.TypeSpec
internal data class ModelBuilder(
private val isPublic: Boolean,
private val name: String,
private val f... | apache-2.0 | Kotlin |
aa89c80f09fd9d48535a1266314688cfc9b17e0b | Fix leak in leakcanary (#1288) | square/leakcanary,square/leakcanary,square/leakcanary | leakcanary-android-core/src/main/java/leakcanary/internal/activity/LeakActivity.kt | leakcanary-android-core/src/main/java/leakcanary/internal/activity/LeakActivity.kt | package leakcanary.internal.activity
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.os.Bundle
import com.squareup.leakcanary.core.R
import leakcanary.internal.activity.db.LeaksDbHelper
import leakcanary.internal.activity.screen.GroupListScreen
import leakca... | package leakcanary.internal.activity
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.os.Bundle
import com.squareup.leakcanary.core.R
import leakcanary.internal.activity.db.LeaksDbHelper
import leakcanary.internal.activity.screen.GroupListScreen
import leakca... | apache-2.0 | Kotlin |
310601fee76d6a308f6e1287ce31db8259ab90d3 | Clean up if the user isn't on the guild anymore | LorittaBot/Loritta,LorittaBot/Loritta,LorittaBot/Loritta,LorittaBot/Loritta | loritta-discord/src/main/java/net/perfectdreams/loritta/commands/vanilla/economy/SonhosTopLocalCommand.kt | loritta-discord/src/main/java/net/perfectdreams/loritta/commands/vanilla/economy/SonhosTopLocalCommand.kt | package net.perfectdreams.loritta.commands.vanilla.economy
import com.mrpowergamerbr.loritta.tables.GuildProfiles
import com.mrpowergamerbr.loritta.tables.Profiles
import com.mrpowergamerbr.loritta.utils.Constants
import net.perfectdreams.loritta.api.commands.CommandCategory
import net.perfectdreams.loritta.api.messag... | package net.perfectdreams.loritta.commands.vanilla.economy
import com.mrpowergamerbr.loritta.tables.GuildProfiles
import com.mrpowergamerbr.loritta.tables.Profiles
import com.mrpowergamerbr.loritta.utils.Constants
import net.perfectdreams.loritta.api.commands.CommandCategory
import net.perfectdreams.loritta.api.messag... | agpl-3.0 | Kotlin |
841504d3f3a77869c52aad2bcf34389a031a1f55 | clean code | EmmyLua/IntelliJ-EmmyLua,EmmyLua/IntelliJ-EmmyLua,tangzx/IntelliJ-EmmyLua,EmmyLua/IntelliJ-EmmyLua,tangzx/IntelliJ-EmmyLua,EmmyLua/IntelliJ-EmmyLua,tangzx/IntelliJ-EmmyLua,tangzx/IntelliJ-EmmyLua | src/main/java/com/tang/intellij/lua/refactoring/rename/RenameLuaMethodProcessor.kt | src/main/java/com/tang/intellij/lua/refactoring/rename/RenameLuaMethodProcessor.kt | /*
* Copyright (c) 2017. tangzx(love.tangzx@qq.com)
*
* 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 l... | /*
* Copyright (c) 2017. tangzx(love.tangzx@qq.com)
*
* 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 l... | apache-2.0 | Kotlin |
52f1274310e7a79f44ade97238611aa0205cacab | refactor #506 Add empty line. | toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt | image/src/test/java/jp/toastkid/image/list/BucketLoaderTest.kt | image/src/test/java/jp/toastkid/image/list/BucketLoaderTest.kt | /*
* Copyright (c) 2022 toastkidjp.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompany this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html.
*/
package jp... | /*
* Copyright (c) 2022 toastkidjp.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompany this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html.
*/
package jp... | epl-1.0 | Kotlin |
8a3083132e9862812fb2c119a73bd2405fa53fcd | optimize keyword insert handler | tangzx/IntelliJ-EmmyLua,tangzx/IntelliJ-EmmyLua,EmmyLua/IntelliJ-EmmyLua,tangzx/IntelliJ-EmmyLua,tangzx/IntelliJ-EmmyLua,EmmyLua/IntelliJ-EmmyLua,EmmyLua/IntelliJ-EmmyLua,EmmyLua/IntelliJ-EmmyLua | src/main/java/com/tang/intellij/lua/editor/completion/KeywordInsertHandler.kt | src/main/java/com/tang/intellij/lua/editor/completion/KeywordInsertHandler.kt | /*
* Copyright (c) 2017. tangzx(love.tangzx@qq.com)
*
* 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 l... | /*
* Copyright (c) 2017. tangzx(love.tangzx@qq.com)
*
* 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 l... | apache-2.0 | Kotlin |
009af2121425d15ee35c0447d1879bc3efc20f25 | Fix indentation | robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,robinverduij... | src/main/kotlin/org/gradle/script/lang/kotlin/ExtensionContainerExtensions.kt | src/main/kotlin/org/gradle/script/lang/kotlin/ExtensionContainerExtensions.kt | /*
* Copyright 2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | /*
* Copyright 2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | apache-2.0 | Kotlin |
049ecd248c84156f49f5f7f67ed51f1877e0724d | Add another inspecting test | AlexLandau/semlang,AlexLandau/semlang,AlexLandau/semlang,AlexLandau/semlang | kotlin/sem2-to-sem1/src/test/kotlin/transformInspectionTest.kt | kotlin/sem2-to-sem1/src/test/kotlin/transformInspectionTest.kt | package net.semlang.sem2.translate
import net.semlang.api.Expression
import net.semlang.api.Function
import net.semlang.api.ModuleName
import net.semlang.sem2.api.*
import org.junit.Assert.*
import org.junit.Test
// This tests that some sem2 constructs are translated to the specific sem1 constructs we expect... | package net.semlang.sem2.translate
import net.semlang.api.Expression
import net.semlang.api.Function
import net.semlang.api.ModuleName
import net.semlang.sem2.api.*
import org.junit.Assert.*
import org.junit.Test
// This tests that some sem2 constructs are translated to the specific sem1 constructs we expect... | apache-2.0 | Kotlin |
673e89ac30d908bafa6ec18616c4a2e19b51d796 | Remove @CheckResult from MaterialDialog.customView() (#1685) | afollestad/material-dialogs,MaTriXy/material-dialogs | core/src/main/java/com/afollestad/materialdialogs/customview/DialogCustomViewExt.kt | core/src/main/java/com/afollestad/materialdialogs/customview/DialogCustomViewExt.kt | /**
* Designed and developed by Aidan Follestad (@afollestad)
*
* 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 b... | /**
* Designed and developed by Aidan Follestad (@afollestad)
*
* 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 b... | apache-2.0 | Kotlin |
ec79749e78ae385a2407405d7fd59ae462918ae8 | Bump version to 1.7.0 | SpineEventEngine/core-java,SpineEventEngine/core-java,SpineEventEngine/core-java | version.gradle.kts | version.gradle.kts | /*
* Copyright 2020, TeamDev. All rights reserved.
*
* Redistribution and use in source and/or binary forms, with or without
* modification, must retain the above copyright notice and the following
* disclaimer.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR... | /*
* Copyright 2020, TeamDev. All rights reserved.
*
* Redistribution and use in source and/or binary forms, with or without
* modification, must retain the above copyright notice and the following
* disclaimer.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR... | apache-2.0 | Kotlin |
efd6c2e83054eaf0262c1725b7dffdf2cd51ab70 | Update version | SpineEventEngine/core-java,SpineEventEngine/core-java,SpineEventEngine/core-java | version.gradle.kts | version.gradle.kts | /*
* Copyright 2022, TeamDev. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Redistribution and use in source... | /*
* Copyright 2022, TeamDev. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Redistribution and use in source... | apache-2.0 | Kotlin |
5e67e409e5d90dc1e24bb0745cb3c6a23e3f8855 | Bump version | SpineEventEngine/core-java,SpineEventEngine/core-java,SpineEventEngine/core-java | version.gradle.kts | version.gradle.kts | /*
* Copyright 2020, TeamDev. All rights reserved.
*
* Redistribution and use in source and/or binary forms, with or without
* modification, must retain the above copyright notice and the following
* disclaimer.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR... | /*
* Copyright 2020, TeamDev. All rights reserved.
*
* Redistribution and use in source and/or binary forms, with or without
* modification, must retain the above copyright notice and the following
* disclaimer.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR... | apache-2.0 | Kotlin |
07ce02383b6edef03645df9291ec563ad8509976 | Fix threading in GQL pages loader | allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/int... | plugins/github/src/org/jetbrains/plugins/github/api/util/GHGQLPagesLoader.kt | plugins/github/src/org/jetbrains/plugins/github/api/util/GHGQLPagesLoader.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 org.jetbrains.plugins.github.api.util
import com.intellij.openapi.progress.ProgressIndicator
import org.jetbrains.plugins.github.api.GithubApiRequest
import org.jetbrains... | // 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 org.jetbrains.plugins.github.api.util
import com.intellij.openapi.progress.ProgressIndicator
import org.jetbrains.plugins.github.api.GithubApiRequest
import org.jetbrains... | apache-2.0 | Kotlin |
5bd97da4fe517c0b8df5cfab88d8353d2e1012d9 | refactor #283 Add const keyword in NotificationWidget. | toastkidjp/Jitte,toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt | 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
*/
... | 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
*/
... | epl-1.0 | Kotlin |
534a22dee89b8598508c6c388bc369f4f8013cbc | Add traits sample although this one generates exception. | dodyg/Kotlin101,mewebstudio/Kotlin101 | src/Objects/Traits.kt | src/Objects/Traits.kt | package Objects.Traits
fun main(args : Array<String>){
var adam = Cowboy("Adam")
adam.does()
}
trait Shooting {
abstract var name : String
fun does(){
print("$name can Shoot")
}
}
class Cowboy (name : String): Shooting{
override var name = name
} | bsd-3-clause | Kotlin | |
7d362774677113acce7c7b18da88dad207cc4738 | Build fix: workaround for false smart cast impossible | xcerx/kotlin-koans,timbotetsu/kotlin-koans,RomanBelkov/workshop-jb,sarvex/workshop-jb,goodwinnk/workshop-jb,chickenbane/workshop-jb,jghoman/workshop-jb,sarvex/kotlin-koans,griffio/workshop-jb,usommerl/kotlin-koans,ian-pi/kotlin-koans,aksiksi/workshop-jb,ian-pi/kotlin-koans,mvaldez/kotlin-examples,sarvex/kotlin-koans,en... | test/iii_properties/_18_Properties.kt | test/iii_properties/_18_Properties.kt | package iii_properties
import junit.framework.Assert
import org.junit.Test as test
class _18_Properties {
test fun testPropertyWithCounter() {
val q = PropertyExample()
q.propertyWithCounter = 14
q.propertyWithCounter = 21
q.propertyWithCounter = 32
Assert.assertEquals("The... | package iii_properties
import junit.framework.Assert
import org.junit.Test as test
class _18_Properties {
test fun testPropertyWithCounter() {
val q = PropertyExample()
q.propertyWithCounter = 14
q.propertyWithCounter = 21
q.propertyWithCounter = 32
Assert.assertEquals("The... | mit | Kotlin |
be0177c8b09400f28903fc551726748410d97acc | refactor #412 Add empty category case. | toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Jitte | app/src/test/java/jp/toastkid/yobidashi/search/history/SearchHistoryInsertionTest.kt | app/src/test/java/jp/toastkid/yobidashi/search/history/SearchHistoryInsertionTest.kt | /*
* Copyright (c) 2021 toastkidjp.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompany this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html.
*/
package jp... | /*
* Copyright (c) 2021 toastkidjp.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompany this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html.
*/
package jp... | epl-1.0 | Kotlin |
8fe6b82b318b88ae5c876ea6a3256865aca94d9c | Change back commands shortkey to '..' instead of b - #58 | arturbosch/TiNBo,arturbosch/TiNBo,arturbosch/TiNBo | src/main/java/com/gitlab/artismarti/tinbo/common/BackCommand.kt | src/main/java/com/gitlab/artismarti/tinbo/common/BackCommand.kt | package com.gitlab.artismarti.tinbo.common
import com.gitlab.artismarti.tinbo.config.ModeAdvisor
import com.gitlab.artismarti.tinbo.providers.PromptProvider
import com.gitlab.artismarti.tinbo.utils.printlnInfo
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.shell.core.annotatio... | package com.gitlab.artismarti.tinbo.common
import com.gitlab.artismarti.tinbo.config.ModeAdvisor
import com.gitlab.artismarti.tinbo.providers.PromptProvider
import com.gitlab.artismarti.tinbo.utils.printlnInfo
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.shell.core.annotatio... | apache-2.0 | Kotlin |
64213eeec8f01abc28de25fdec6156216457e9ed | Improve Optional and LiveData typing | bubenheimer/androidrxutil,bubenheimer/androidrxutil | src/main/java/org/bubenheimer/android/livedata/LiveDataUtils.kt | src/main/java/org/bubenheimer/android/livedata/LiveDataUtils.kt | /*
* Copyright (c) 2015-2019 Uli Bubenheimer
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | /*
* Copyright (c) 2015-2019 Uli Bubenheimer
*
* 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... | apache-2.0 | Kotlin |
16f583d69181c4f55866b92b7c8816a10905eb5a | Add license | android/animation-samples,android/animation-samples | MotionCompose/app/src/main/java/com/example/android/compose/motion/demo/visibility/AnimatedVisibilityExample.kt | MotionCompose/app/src/main/java/com/example/android/compose/motion/demo/visibility/AnimatedVisibilityExample.kt | /*
* Copyright (C) 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | package com.example.android.compose.motion.demo.visibility
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.fadeIn
import androidx.compose.animation.fadeOut
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.la... | apache-2.0 | Kotlin |
d85b39de48154dff6dc4bc14b58e534550b8754f | Fix comparing Packet contents. | jitsi/jitsi-videobridge,jitsi/jitsi-videobridge,jitsi/jitsi-videobridge,jitsi/jitsi-videobridge,jitsi/jitsi-videobridge,jitsi/jitsi-videobridge,jitsi/jitsi-videobridge | src/test/kotlin/org/jitsi/nlj/test_utils/matchers/ByteArrayBuffer/ByteArrayBuffer.kt | src/test/kotlin/org/jitsi/nlj/test_utils/matchers/ByteArrayBuffer/ByteArrayBuffer.kt | /*
* Copyright @ 2018 - present 8x8, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | /*
* Copyright @ 2018 - present 8x8, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | apache-2.0 | Kotlin |
18e95112484bcd9b6bc65e709ad6695ff94069f0 | reduce cyclomatic complexity of addLanguageData() | AlmasB/FXGL,AlmasB/FXGL,AlmasB/FXGL,AlmasB/FXGL | fxgl-localization/src/main/kotlin/com/almasb/fxgl/localization/LocalizationService.kt | fxgl-localization/src/main/kotlin/com/almasb/fxgl/localization/LocalizationService.kt | /*
* FXGL - JavaFX Game Library. The MIT License (MIT).
* Copyright (c) AlmasB (almaslvl@gmail.com).
* See LICENSE for details.
*/
package com.almasb.fxgl.localization
import com.almasb.fxgl.core.EngineService
import com.almasb.sslogger.Logger
import javafx.beans.binding.Bindings
import javafx.beans.binding.Strin... | /*
* FXGL - JavaFX Game Library. The MIT License (MIT).
* Copyright (c) AlmasB (almaslvl@gmail.com).
* See LICENSE for details.
*/
package com.almasb.fxgl.localization
import com.almasb.fxgl.core.EngineService
import com.almasb.sslogger.Logger
import javafx.beans.binding.Bindings
import javafx.beans.binding.Strin... | mit | Kotlin |
5ab718e68260650ac55f6608c002db1b9d122a7b | Convert DateTaskViewModel to kotlin | google/ground-android,google/ground-android,google/ground-android | ground/src/main/java/com/google/android/ground/ui/editsubmission/DateTaskViewModel.kt | ground/src/main/java/com/google/android/ground/ui/editsubmission/DateTaskViewModel.kt | /*
* Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | /*
* Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | apache-2.0 | Kotlin |
4be2e95716edda1a16d91b66391e5805f438646b | Remove unused import in TransitionFBO and update docs | ImXico/handy-gdx,ImXico/punk | core/src/main/kotlin/cyberpunk/core/transition/TransitionFBO.kt | core/src/main/kotlin/cyberpunk/core/transition/TransitionFBO.kt | package cyberpunk.core.transition
import com.badlogic.gdx.Gdx
import com.badlogic.gdx.graphics.Pixmap
import com.badlogic.gdx.graphics.g2d.TextureRegion
import com.badlogic.gdx.graphics.glutils.FrameBuffer
/**
* Holds the frame buffer objects (FBOs) and flipped regions
* that are used during state transitions.
*/
... | package cyberpunk.core.transition
import com.badlogic.gdx.Gdx
import com.badlogic.gdx.graphics.Pixmap
import com.badlogic.gdx.graphics.g2d.TextureRegion
import com.badlogic.gdx.graphics.glutils.FrameBuffer
import cyberpunk.core.state.StateManager
/**
* Holds the frame buffer objects (FBOs) and flipped regions
* tha... | mit | Kotlin |
92f3e498be8a617f769f80993eb8a8cb92132724 | update dependency org.jetbrains.kotlin:kotlin-gradle-plugin to v1.7.0 (#1071) | ACRA/acra,ACRA/acra,ACRA/acra,ACRA/acra | examples/build.gradle.kts | examples/build.gradle.kts | /*
* Copyright (c) 2021
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writi... | /*
* Copyright (c) 2021
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writi... | apache-2.0 | Kotlin |
4f45f5f1ff3d012678e9f54dd80bd0324f3a6e26 | Convert experience commands to Kotlin | apollo-rsps/apollo,apollo-rsps/apollo,apollo-rsps/apollo | game/src/plugins/cmd/src/skill-cmd.plugin.kts | game/src/plugins/cmd/src/skill-cmd.plugin.kts |
import org.apollo.game.model.entity.Skill
import org.apollo.game.model.entity.SkillSet
import org.apollo.game.model.entity.setting.PrivilegeLevel
/**
* Maximises the player's skill set.
*/
on_command("max", PrivilegeLevel.ADMINISTRATOR)
.then { player ->
val skills = player.skillSet
... | isc | Kotlin | |
18006cadbb8f8fce866b1aaa57f1a5417ecc0f9b | Make sure that playerId is not empty | clappr/clappr-android,clappr/clappr-android | clappr/src/test/kotlin/io/clappr/player/utils/EnvironmentTest.kt | clappr/src/test/kotlin/io/clappr/player/utils/EnvironmentTest.kt | package io.clappr.player.utils
import org.junit.Assert.*
import org.junit.Test
class EnvironmentTest {
@Test
fun `should have a not empty playerId`() {
val environment = Environment()
assertFalse(environment.playerId.isEmpty())
}
} | bsd-3-clause | Kotlin | |
da59c21442650918e1c71b8fdac4f8aef9cc4b2f | refactor #605 Fix incorrect unit test. | toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Jitte,toastkidjp/Yobidashi_kt | app/src/test/java/jp/toastkid/yobidashi/appwidget/search/RemoteViewsFactoryTest.kt | app/src/test/java/jp/toastkid/yobidashi/appwidget/search/RemoteViewsFactoryTest.kt | /*
* Copyright (c) 2021 toastkidjp.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompany this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html.
*/
package jp... | /*
* Copyright (c) 2021 toastkidjp.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompany this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html.
*/
package jp... | epl-1.0 | Kotlin |
0bfa3d3176880f951949538a57cd57d4523d4c51 | refactor #451 Use just runs. | toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Jitte | app/src/test/java/jp/toastkid/yobidashi/browser/usecase/HtmlSourceExtractionUseCaseTest.kt | app/src/test/java/jp/toastkid/yobidashi/browser/usecase/HtmlSourceExtractionUseCaseTest.kt | /*
* Copyright (c) 2021 toastkidjp.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompany this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html.
*/
package jp... | /*
* Copyright (c) 2021 toastkidjp.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompany this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html.
*/
package jp... | epl-1.0 | Kotlin |
cfd3448eec1ff8601237e182c061809e8af5efe3 | Update the playground adding delayed payment (#4218) | stripe/stripe-android,stripe/stripe-android,stripe/stripe-android,stripe/stripe-android,stripe/stripe-android | paymentsheet-example/src/main/java/com/stripe/android/paymentsheet/example/Settings.kt | paymentsheet-example/src/main/java/com/stripe/android/paymentsheet/example/Settings.kt | package com.stripe.android.paymentsheet.example
import android.content.Context
import android.content.pm.PackageManager
import com.stripe.android.paymentsheet.example.service.CheckoutBackendApi
/**
* Class that provides global app settings.
*/
class Settings(context: Context) {
private val appContext = context.... | package com.stripe.android.paymentsheet.example
import android.content.Context
import android.content.pm.PackageManager
import com.stripe.android.paymentsheet.example.service.CheckoutBackendApi
/**
* Class that provides global app settings.
*/
class Settings(context: Context) {
private val appContext = context.... | mit | Kotlin |
d3883d80139a3f0b75d6a40de2591f695e103436 | add tests for update sql builder | jayrave/falkon | falkon-sql-builder-sqlite/src/test/kotlin/com/jayrave/falkon/sqlBuilders/sqlite/SqliteUpdateSqlBuilderIntegrationTests.kt | falkon-sql-builder-sqlite/src/test/kotlin/com/jayrave/falkon/sqlBuilders/sqlite/SqliteUpdateSqlBuilderIntegrationTests.kt | package com.jayrave.falkon.sqlBuilders.sqlite
import com.jayrave.falkon.sqlBuilders.test.update.TestUpdate
import org.junit.Test
class SqliteUpdateSqlBuilderIntegrationTests : BaseClassForIntegrationTests() {
private val updateSqlBuilder = SqliteUpdateSqlBuilder()
@Test
fun `update all records`() {
... | apache-2.0 | Kotlin | |
406d0681d96a720d7be093dbb67fb063cf6c6bc8 | Add missed params to launchInteractor method | chrisbanes/tivi,chrisbanes/tivi | interactors/src/main/java/app/tivi/interactors/Interactor.kt | interactors/src/main/java/app/tivi/interactors/Interactor.kt | /*
* Copyright 2018 Google, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | /*
* Copyright 2018 Google, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | apache-2.0 | Kotlin |
03682992a0b3e9cadd9cc593ff1564bb2883602f | Add GenericParamsCollector | KotlinNLP/SimpleDNN | 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/.
* ------------------------------------------... | mpl-2.0 | Kotlin | |
b8ea3ee552b6ec33953e979aac2c0dfd262de2fe | Use kotlinx.serialization to create the status JSON | LorittaBot/Loritta,LorittaBot/Loritta,LorittaBot/Loritta,LorittaBot/Loritta | discord/loritta-bot-common/src/main/kotlin/net/perfectdreams/loritta/morenitta/website/routes/api/v1/loritta/GetStatusRoute.kt | discord/loritta-bot-common/src/main/kotlin/net/perfectdreams/loritta/morenitta/website/routes/api/v1/loritta/GetStatusRoute.kt | package net.perfectdreams.loritta.morenitta.website.routes.api.v1.loritta
import com.github.salomonbrys.kotson.jsonArray
import com.github.salomonbrys.kotson.jsonObject
import com.github.salomonbrys.kotson.set
import io.ktor.server.application.*
import kotlinx.serialization.json.*
import net.perfectdreams.loritta.more... | package net.perfectdreams.loritta.morenitta.website.routes.api.v1.loritta
import com.github.salomonbrys.kotson.jsonArray
import com.github.salomonbrys.kotson.jsonObject
import com.github.salomonbrys.kotson.set
import io.ktor.server.application.*
import net.perfectdreams.loritta.morenitta.LorittaBot
import net.perfectd... | agpl-3.0 | Kotlin |
a84da355b4b4794cbef61d29fb9f2c562c87fd77 | Fix weird class declaration | tipsy/javalin,tipsy/javalin,tipsy/javalin,tipsy/javalin | src/main/java/io/javalin/embeddedserver/CachedRequestWrapper.kt | src/main/java/io/javalin/embeddedserver/CachedRequestWrapper.kt | /*
* Javalin - https://javalin.io
* Copyright 2017 David Åse
* Licensed under Apache 2.0: https://github.com/tipsy/javalin/blob/master/LICENSE
*/
package io.javalin.embeddedserver
import io.javalin.core.util.ContextUtil
import java.io.ByteArrayInputStream
import javax.servlet.ReadListener
import javax.servlet.Ser... | /*
* Javalin - https://javalin.io
* Copyright 2017 David Åse
* Licensed under Apache 2.0: https://github.com/tipsy/javalin/blob/master/LICENSE
*/
package io.javalin.embeddedserver
import io.javalin.core.util.ContextUtil
import java.io.ByteArrayInputStream
import java.io.IOException
import javax.servlet.ReadListen... | apache-2.0 | Kotlin |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.