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 |
|---|---|---|---|---|---|---|---|---|
18f0d1ff2b80ec1fc93458b5bf9e613964af05c6 | Fix Kotlin custom logger sample | lsmaira/gradle,robinverduijn/gradle,blindpirate/gradle,lsmaira/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,lsmaira/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,robinverduijn/gradle,lsmaira/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,lsma... | subprojects/docs/src/samples/userguide/initScripts/customLogger/kotlin/customLogger.init.gradle.kts | subprojects/docs/src/samples/userguide/initScripts/customLogger/kotlin/customLogger.init.gradle.kts | useLogger(CustomEventLogger())
class CustomEventLogger() : BuildAdapter(), TaskExecutionListener {
override fun beforeExecute(task: Task) {
println("[${task.name}]")
}
override fun afterExecute(task: Task, state: TaskState) {
println()
}
override fun buildFinished(result: BuildRe... | useLogger(CustomEventLogger())
class CustomEventLogger() : BuildAdapter(), TaskExecutionListener {
override fun beforeExecute(task: Task) {
println("[${task.name}]")
}
override fun afterExecute(task: Task, state: TaskState) {
println()
}
override fun buildFinished(result: BuildRe... | apache-2.0 | Kotlin |
fc9b7eb24736c7e73a420438f31be994c7f619f9 | Add DISABLE constant and remove unused constant | shiraji/find-pull-request | src/main/kotlin/com/github/shiraji/findpullrequest/model/FindPullRequestConfig.kt | src/main/kotlin/com/github/shiraji/findpullrequest/model/FindPullRequestConfig.kt | package com.github.shiraji.findpullrequest.model
import com.intellij.ide.util.PropertiesComponent
import com.intellij.openapi.project.Project
object FindPullRequestConfig {
private const val DISABLE = "com.github.shiraji.findpullrequest.model.FindPullRequestConfig.DISABLE"
private const val DEBUG_MODE = "com.... | package com.github.shiraji.findpullrequest.model
import com.intellij.ide.util.PropertiesComponent
import com.intellij.openapi.project.Project
object FindPullRequestConfig {
private const val DEBUG_MODE = "com.github.shiraji.findpullrequest.model.FindPullRequestConfig.DEBUG_MODE"
private const val OPEN_COMMIT ... | apache-2.0 | Kotlin |
61e617476dfc1977f92f779ba36eb71f3879b72e | fix https://github.com/JetBrains/resharper-unity/issues/1283 (#1284) | JetBrains/resharper-unity,JetBrains/resharper-unity,JetBrains/resharper-unity | rider/src/main/kotlin/com/jetbrains/rider/plugins/unity/run/attach/UnityRunUtil.kt | rider/src/main/kotlin/com/jetbrains/rider/plugins/unity/run/attach/UnityRunUtil.kt | package com.jetbrains.rider.plugins.unity.run.attach
import com.intellij.execution.ProgramRunnerUtil
import com.intellij.execution.executors.DefaultDebugExecutor
import com.intellij.execution.process.ProcessInfo
import com.intellij.execution.runners.ExecutionEnvironmentBuilder
import com.intellij.openapi.project.Proje... | package com.jetbrains.rider.plugins.unity.run.attach
import com.intellij.execution.ProgramRunnerUtil
import com.intellij.execution.executors.DefaultDebugExecutor
import com.intellij.execution.process.ProcessInfo
import com.intellij.execution.runners.ExecutionEnvironmentBuilder
import com.intellij.openapi.project.Proje... | apache-2.0 | Kotlin |
afe8422881d1d328f4e52c8d83aa2b74390d658c | Fix missing shift | kvakil/venus,kvakil/venus,kvakil/venus | src/main/kotlin/assembler/writers/STypeWriter.kt | src/main/kotlin/assembler/writers/STypeWriter.kt | package venus.assembler.writers
import venus.assembler.InstructionWriter
import venus.assembler.Program
import venus.riscv.Instruction
import venus.riscv.InstructionField
object STypeWriter : InstructionWriter() {
const val MAX_S_VALUE = 2047
const val MIN_S_VALUE = -2048
override operator fun invoke(pro... | package venus.assembler.writers
import venus.assembler.InstructionWriter
import venus.assembler.Program
import venus.riscv.Instruction
import venus.riscv.InstructionField
object STypeWriter : InstructionWriter() {
const val MAX_S_VALUE = 2047
const val MIN_S_VALUE = -2048
override operator fun invoke(pro... | mit | Kotlin |
d1e6369d832a4508bcbc9606d7e7f4907a7f1770 | Fix iOS crash, introduce memory leak | ktorio/ktor,ktorio/ktor,ktorio/ktor,ktorio/ktor | ktor-client/ktor-client-ios/darwin/src/io/ktor/client/engine/ios/IosClientEngine.kt | ktor-client/ktor-client-ios/darwin/src/io/ktor/client/engine/ios/IosClientEngine.kt | /*
* Copyright 2014-2019 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package io.ktor.client.engine.ios
import io.ktor.client.engine.*
import io.ktor.client.features.*
import io.ktor.client.request.*
import io.ktor.http.*
import kotlinx.coroutines.*
import plat... | /*
* Copyright 2014-2019 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package io.ktor.client.engine.ios
import io.ktor.client.engine.*
import io.ktor.client.features.*
import io.ktor.client.request.*
import io.ktor.http.*
import kotlinx.coroutines.*
import plat... | apache-2.0 | Kotlin |
428c5194f6073df9c1eb083de3d2eb9b75c294c3 | Fix check is failed in sample that uses ruleset. | JLLeitschuh/ktlint-gradle,JLLeitschuh/ktlint-gradle | samples/kotlin-rulesets-using/build.gradle.kts | samples/kotlin-rulesets-using/build.gradle.kts | import org.jlleitschuh.gradle.ktlint.KtlintExtension
import org.jlleitschuh.gradle.ktlint.reporter.ReporterType
plugins {
application
}
plugins.apply("org.jlleitschuh.gradle.ktlint")
apply {
plugin("kotlin")
}
application {
mainClassName = "org.jlleitschuh.gradle.ktlint.sample.kotlin.MainKt"
}
dependenc... | import org.jlleitschuh.gradle.ktlint.KtlintExtension
import org.jlleitschuh.gradle.ktlint.reporter.ReporterType
plugins {
application
}
plugins.apply("org.jlleitschuh.gradle.ktlint")
apply {
plugin("kotlin")
}
application {
mainClassName = "org.jlleitschuh.gradle.ktlint.sample.kotlin.MainKt"
}
dependenc... | mit | Kotlin |
4225a970424c42c7658250e269148584317bbd84 | refactor #382 Clean up code. | toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt,toastkidjp/Jitte | app/src/main/java/jp/toastkid/yobidashi/browser/archive/ArchivesActivity.kt | app/src/main/java/jp/toastkid/yobidashi/browser/archive/ArchivesActivity.kt | package jp.toastkid.yobidashi.browser.archive
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.os.Bundle
import androidx.annotation.LayoutRes
import androidx.annotation.StringRes
import androidx.databinding.DataBindingUtil
import androidx.recyclerview.widget.Linea... | package jp.toastkid.yobidashi.browser.archive
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.os.Bundle
import androidx.annotation.LayoutRes
import androidx.annotation.StringRes
import androidx.databinding.DataBindingUtil
import androidx.recyclerview.widget.Linea... | epl-1.0 | Kotlin |
4020800bf6b58a64656c639fcf85eb0efb5ff83b | Update documentation | KotlinNLP/SimpleDNN | src/main/kotlin/com/kotlinnlp/simplednn/core/functionalities/activations/Softmax.kt | src/main/kotlin/com/kotlinnlp/simplednn/core/functionalities/activations/Softmax.kt | /* Copyright 2016-present The KotlinNLP Authors. All Rights Reserved.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, you can obtain one at http://mozilla.org/MPL/2.0/.
* ------------------------------------------... | /* Copyright 2016-present The KotlinNLP Authors. All Rights Reserved.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, you can obtain one at http://mozilla.org/MPL/2.0/.
* ------------------------------------------... | mpl-2.0 | Kotlin |
fc60eac37f692d88b88fa1526a3322d2ded4f251 | Create CreateDataSet.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/forecast/src/main/kotlin/com/kotlin/forecast/CreateDataSet.kt | .kotlin_alpha/services/forecast/src/main/kotlin/com/kotlin/forecast/CreateDataSet.kt | //snippet-sourcedescription:[CreateDataSet.kt demonstrates how to create a data set for the Amazon Forecast service.]
//snippet-keyword:[AWS SDK for Kotlin]
//snippet-keyword:[Code Sample]
//snippet-service:[Amazon Forecast]
//snippet-sourcetype:[full-example]
//snippet-sourcedate:[04/21/2021]
//snippet-sourceauthor:[s... | apache-2.0 | Kotlin | |
f9076c5479861ff94c8f4ba7d9fe8082d021f26d | Add Fragment LiveData check to IssueRegistry | 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... | fragment/fragment-lint/src/main/java/androidx/fragment/lint/FragmentIssueRegistry.kt | fragment/fragment-lint/src/main/java/androidx/fragment/lint/FragmentIssueRegistry.kt | /*
* Copyright 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | /*
* Copyright 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | apache-2.0 | Kotlin |
4fbdf39db9cf723e24d0e64a5b52e98e40a56c7b | change file system storage client to use InputStream.asFlow rather than ReadableByteChannel.asFlow (#113) | world-federation-of-advertisers/common-jvm,world-federation-of-advertisers/common-jvm | src/main/kotlin/org/wfanet/measurement/storage/filesystem/FileSystemStorageClient.kt | src/main/kotlin/org/wfanet/measurement/storage/filesystem/FileSystemStorageClient.kt | // Copyright 2020 The Cross-Media Measurement 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 applic... | // Copyright 2020 The Cross-Media Measurement 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 applic... | apache-2.0 | Kotlin |
1b1f1f62d97cb050386635bed754f537ef42c92a | refactor #307 Use property access syntax. | toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Jitte,toastkidjp/Yobidashi_kt | app/src/test/java/jp/toastkid/yobidashi/notification/widget/RemoteViewsFactoryTest.kt | app/src/test/java/jp/toastkid/yobidashi/notification/widget/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 |
36c28fad42b2ac8261ff7a21404e42d5c3303f02 | Test fix. | evanchooly/kobalt,ethauvin/kobalt,evanchooly/kobalt,evanchooly/kobalt,cbeust/kobalt,cbeust/kobalt,ethauvin/kobalt,ethauvin/kobalt,ethauvin/kobalt,cbeust/kobalt,evanchooly/kobalt | src/test/kotlin/com/beust/kobalt/TestModule.kt | src/test/kotlin/com/beust/kobalt/TestModule.kt | package com.beust.kobalt
import com.beust.kobalt.maven.LocalRepo
import com.beust.kobalt.misc.MainModule
import com.beust.kobalt.plugin.java.SystemProperties
import com.google.inject.Inject
import com.google.inject.Scopes
import java.io.File
class TestLocalRepo: LocalRepo(localRepo = SystemProperties.homeDir + File.s... | package com.beust.kobalt
import com.beust.kobalt.maven.LocalRepo
import com.beust.kobalt.misc.MainModule
import com.beust.kobalt.plugin.java.SystemProperties
import com.google.inject.Inject
import com.google.inject.Scopes
import java.io.File
class TestLocalRepo: LocalRepo(localRepo = SystemProperties.homeDir + File.s... | apache-2.0 | Kotlin |
578b8db258340b4ccab2bd72ab6d6f2052849857 | refactor #606 Remove incorrect comment. | toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Jitte,toastkidjp/Yobidashi_kt | article/src/main/java/jp/toastkid/article_viewer/article/list/ArticleSearchUseCase.kt | article/src/main/java/jp/toastkid/article_viewer/article/list/ArticleSearchUseCase.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 |
f8a6ca18057c38f5b1a94a81f394ff570df0d1ca | Comment resettableLazy helper | Sevran/DnDice | app/src/main/java/io/deuxsept/dndice/Utils/ResettableLazy.kt | app/src/main/java/io/deuxsept/dndice/Utils/ResettableLazy.kt | package io.deuxsept.dndice.Utils
import java.util.*
import kotlin.reflect.KProperty
/**
* Allows lazy initialization to be resetted
* http://stackoverflow.com/questions/35752575/kotlin-lazy-properties-and-values-reset-a-resettable-lazy-delegate
*/
class ResettableLazyManager {
// we synchronize to make sure th... | package io.deuxsept.dndice.Utils
import java.util.*
import kotlin.reflect.KProperty
/**
* http://stackoverflow.com/questions/35752575/kotlin-lazy-properties-and-values-reset-a-resettable-lazy-delegate
*/
class ResettableLazyManager {
// we synchronize to make sure the timing of a reset() call and new inits do n... | mit | Kotlin |
3dcba4f018174217d6cfbcf0fbcdaccbe5028296 | change quality parameter | helloworld1/FreeOTPPlus,helloworld1/FreeOTPPlus,helloworld1/FreeOTPPlus | app/src/main/java/org/fedorahosted/freeotp/util/ImageUtil.kt | app/src/main/java/org/fedorahosted/freeotp/util/ImageUtil.kt | package org.fedorahosted.freeotp.util
import android.content.Context
import android.graphics.Bitmap
import android.media.Image
import android.net.Uri
import android.provider.MediaStore
import androidx.core.net.toUri
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
import java.io.File
import ... | package org.fedorahosted.freeotp.util
import android.content.Context
import android.graphics.Bitmap
import android.media.Image
import android.net.Uri
import android.provider.MediaStore
import androidx.core.net.toUri
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
import java.io.File
import ... | apache-2.0 | Kotlin |
2cbd359e86666decc3a55db2e1ab0f93b2b63aa3 | Fix database migration: do not run initial setup on upgrade. | mopsalarm/Pr0,mopsalarm/Pr0,mopsalarm/Pr0 | app/src/main/java/com/pr0gramm/app/util/Databases.kt | app/src/main/java/com/pr0gramm/app/util/Databases.kt | package com.pr0gramm.app.util
import android.content.Context
import android.database.sqlite.SQLiteDatabase
import android.database.sqlite.SQLiteOpenHelper
import com.squareup.sqlbrite.BriteDatabase
/**
*/
object Databases {
inline fun withTransaction(db: SQLiteDatabase, inTxRunnable: () -> Unit) {
db.be... | package com.pr0gramm.app.util
import android.content.Context
import android.database.sqlite.SQLiteDatabase
import android.database.sqlite.SQLiteOpenHelper
import com.squareup.sqlbrite.BriteDatabase
/**
*/
object Databases {
inline fun withTransaction(db: SQLiteDatabase, inTxRunnable: () -> Unit) {
db.be... | mit | Kotlin |
51bd81441d4ba7e7b83544e8e0a53e69017cab7b | Reorder padding extensions | LouisCAD/Splitties,LouisCAD/Splitties,LouisCAD/Splitties | views/src/main/java/splitties/views/Padding.kt | views/src/main/java/splitties/views/Padding.kt | /*
* Copyright (c) 2018. Louis Cognault Ayeva Derman
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | /*
* Copyright (c) 2018. Louis Cognault Ayeva Derman
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | apache-2.0 | Kotlin |
c0c77d975ea81eff0b6e68185a92e24edcb8d6fa | Update MockWorldFactory | Homes-MinecraftServerMod/Homes,Homes-MinecraftServerMod/Homes | src/test/java/com/masahirosaito/spigot/homes/tests/utils/MockWorldFactory.kt | src/test/java/com/masahirosaito/spigot/homes/tests/utils/MockWorldFactory.kt | package com.masahirosaito.spigot.homes.tests.utils
import org.bukkit.Location
import org.bukkit.World
import org.powermock.api.mockito.PowerMockito
import java.util.*
object MockWorldFactory {
val worlds: MutableMap<UUID, World> = mutableMapOf()
fun makeNewMockWorld(name: String): World {
return Powe... | package com.masahirosaito.spigot.homes.tests.utils
import org.bukkit.Location
import org.bukkit.World
import org.powermock.api.mockito.PowerMockito
import java.util.*
object MockWorldFactory {
val worlds: MutableMap<UUID, World> = mutableMapOf()
val world: World = MockWorldFactory.makeNewMockWorld().apply { M... | apache-2.0 | Kotlin |
db107c0ef33ca90627b3e182478c7f060f46f9c7 | Improve Generators to generate into same file | eugeis/ee-email | ee-email_des/src/main/kotlin/ee/email/EmailModelGenerator.kt | ee-email_des/src/main/kotlin/ee/email/EmailModelGenerator.kt | package ee.email
import ee.design.gen.DesingKotlinGenerator
import ee.lang.integ.eePath
fun main(args: Array<String>) {
val generator = DesingKotlinGenerator(model())
generator.generate(eePath)
}
| package ee.email
import ee.design.KotlinGenerator
import ee.lang.integ.eePath
fun main(args: Array<String>) {
val generator = KotlinGenerator(model())
generator.generate(eePath)
}
| apache-2.0 | Kotlin |
32d39d2b0bbc0a04a56a7f758b10ff7b21304fae | tidy multipart API to hide MultipartEntity | http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k | http4k-multipart/src/main/kotlin/org/http4k/core/FormFile.kt | http4k-multipart/src/main/kotlin/org/http4k/core/FormFile.kt | package org.http4k.core
import java.io.InputStream
data class FormFile(val filename: String, val contentType: ContentType, val content: InputStream) {
private data class Realised(val filename: String, val contentType: ContentType, val content: String)
private val realised by lazy { Realised(filename, conten... | package org.http4k.core
import org.http4k.lens.BiDiLensSpec
import org.http4k.lens.LensGet
import org.http4k.lens.LensSet
import org.http4k.lens.MultipartForm
import org.http4k.lens.ParamMeta
import java.io.InputStream
data class FormFile(val filename: String, val contentType: ContentType, val content: InputStream) {... | apache-2.0 | Kotlin |
00ada80a37a51ee5e3357eb390c78bb9aa49a3b4 | Fix the episode card presenter colors | AoDevBlue/AnimeUltimeTv,AoDevBlue/AnimeUltimeTv | app/src/main/java/blue/aodev/animeultimetv/presentation/common/EpisodeCardPresenter.kt | app/src/main/java/blue/aodev/animeultimetv/presentation/common/EpisodeCardPresenter.kt | package blue.aodev.animeultimetv.presentation.common
import android.content.Context
import android.support.v17.leanback.widget.ImageCardView
import blue.aodev.animeultimetv.R
import blue.aodev.animeultimetv.domain.model.Episode
import blue.aodev.animeultimetv.extensions.formatEpisodeDuration
import com.bumptech.glide.... | package blue.aodev.animeultimetv.presentation.common
import android.content.Context
import android.support.v17.leanback.widget.ImageCardView
import blue.aodev.animeultimetv.R
import blue.aodev.animeultimetv.domain.model.Episode
import blue.aodev.animeultimetv.extensions.formatEpisodeDuration
import com.bumptech.glide.... | mit | Kotlin |
00e65173df96f720aff3488ed83a86face35b2ac | refactor #818 Add @Suppress annotation. | toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt | loan/src/test/java/jp/toastkid/loan/usecase/DebouncedCalculatorUseCaseTest.kt | loan/src/test/java/jp/toastkid/loan/usecase/DebouncedCalculatorUseCaseTest.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 |
eb317cd4b67d63d68b5e913d73e3cd0534c1639a | switch on ignore file generation for tests | 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/git4idea/tests/git4idea/ignore/GitIgnoredFileTest.kt | plugins/git4idea/tests/git4idea/ignore/GitIgnoredFileTest.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 git4idea.ignore
import com.intellij.openapi.command.WriteCommandAction
import com.intellij.openapi.util.registry.Registry
import com.intellij.openapi.vfs.VirtualFile
impo... | // 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 git4idea.ignore
import com.intellij.openapi.command.WriteCommandAction
import com.intellij.openapi.vfs.VirtualFile
import com.intellij.openapi.vfs.encoding.EncodingProjec... | apache-2.0 | Kotlin |
f6f6c1ad7612b41e2ea14d74c069d7ba8722e6ea | Fix equality issue in ComputeBatch.kt | emanuelpalm/palm-compute,emanuelpalm/palm-compute,emanuelpalm/palm-compute,emanuelpalm/palm-compute | core/src/main/java/se/ltu/emapal/compute/ComputeBatch.kt | core/src/main/java/se/ltu/emapal/compute/ComputeBatch.kt | package se.ltu.emapal.compute
import java.util.*
/**
* Some arbitrary byte array to be processed by some identified lambda function.
*
* @param lambdaId Identifies lambda responsible for processing batch.
* @param batchId Batch identifier unique within the application.
* @param data Arbitrary byte array to proce... | package se.ltu.emapal.compute
/**
* Some arbitrary byte array to be processed by some identified lambda function.
*
* @param lambdaId Identifies lambda responsible for processing batch.
* @param batchId Batch identifier unique within the application.
* @param data Arbitrary byte array to process.
*/
data class C... | mit | Kotlin |
3867a2bda42e6d5cb99103bf75b648bf1d6eecd7 | Make timeout and disposable visible for testing | Doctoror/FuckOffMusicPlayer,Doctoror/PainlessMusicPlayer,Doctoror/FuckOffMusicPlayer,Doctoror/PainlessMusicPlayer,Doctoror/PainlessMusicPlayer | data/src/main/java/com/doctoror/fuckoffmusicplayer/data/playback/unit/PlaybackServiceUnitStopTimeout.kt | data/src/main/java/com/doctoror/fuckoffmusicplayer/data/playback/unit/PlaybackServiceUnitStopTimeout.kt | /*
* Copyright (C) 2018 Yaroslav Mytkalyk
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | /*
* Copyright (C) 2018 Yaroslav Mytkalyk
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | apache-2.0 | Kotlin |
400e53e702c93aa728795232383fe231a4cdee57 | Simplify callback, and remove warnings | intellij-purescript/intellij-purescript,intellij-purescript/intellij-purescript | src/main/java/org/purescript/parser/PureParser.kt | src/main/java/org/purescript/parser/PureParser.kt | package org.purescript.parser
import com.intellij.lang.ASTNode
import com.intellij.lang.PsiBuilder
import com.intellij.lang.PsiParser
import com.intellij.psi.tree.IElementType
class PureParser : PsiParser, PSTokens, PSElements {
override fun parse(root: IElementType, builder: PsiBuilder): ASTNode {
// bui... | package org.purescript.parser
import com.intellij.lang.ASTNode
import com.intellij.lang.PsiBuilder
import com.intellij.lang.PsiParser
import com.intellij.psi.tree.IElementType
class PureParser : PsiParser, PSTokens, PSElements {
override fun parse(root: IElementType, builder: PsiBuilder): ASTNode {
// bui... | bsd-3-clause | Kotlin |
37a1ec954c69c070c637a6c080417aa7f51265d3 | Fix deprecated API call | the-obsidian/DiscourseGroupSync | src/main/kotlin/gg/obsidian/discoursegroupsync/UUIDHelper.kt | src/main/kotlin/gg/obsidian/discoursegroupsync/UUIDHelper.kt | package gg.obsidian.discoursegroupsync
import com.squareup.okhttp.OkHttpClient
import com.squareup.okhttp.Request
import org.json.simple.JSONObject
import org.json.simple.JSONValue
import java.util.*
object UUIDHelper {
val PROFILE_URL = "https://sessionserver.mojang.com/session/minecraft/profile/"
val httpC... | package gg.obsidian.discoursegroupsync
import com.squareup.okhttp.OkHttpClient
import com.squareup.okhttp.Request
import org.json.simple.JSONObject
import org.json.simple.JSONValue
import java.util.*
object UUIDHelper {
val PROFILE_URL = "https://sessionserver.mojang.com/session/minecraft/profile/"
val httpC... | mit | Kotlin |
9f800f8ade36b9376182ebe6a98b0cbe8b16ad7c | Remove arg override used for testing | Flank/flank,Flank/flank,Flank/flank,Flank/flank,Flank/flank,Flank/flank,Flank/flank,Flank/flank,Flank/flank,Flank/flank | cloud_testing/kotlin_poc/src/main/kotlin/ftl/Main.kt | cloud_testing/kotlin_poc/src/main/kotlin/ftl/Main.kt | package ftl
import ftl.cli.RefreshCommand
import ftl.cli.RunCommand
import picocli.CommandLine
@CommandLine.Command(
name = "flank.jar\n",
synopsisHeading = "",
subcommands = [
RunCommand::class,
RefreshCommand::class
]
)
object Main : Runnable {
override f... | package ftl
import ftl.cli.RefreshCommand
import ftl.cli.RunCommand
import picocli.CommandLine
@CommandLine.Command(
name = "flank.jar\n",
synopsisHeading = "",
subcommands = [
RunCommand::class,
RefreshCommand::class
]
)
object Main : Runnable {
override f... | apache-2.0 | Kotlin |
54e1e4f1995e2eed7a53166c30f5913817504255 | Add IntentExtensions. | sys1yagi/DroiDon,sys1yagi/DroiDon,sys1yagi/DroiDon,sys1yagi/DroiDon | app/src/main/java/com/sys1yagi/mastodon/android/extensions/IntentExtensions.kt | app/src/main/java/com/sys1yagi/mastodon/android/extensions/IntentExtensions.kt | package com.sys1yagi.mastodon.android.extensions
import android.content.Intent
inline fun <reified T> Intent.getRequired(name: String): T {
extras?.get(name).let {
if (it !is T) {
throw IllegalArgumentException("Extras don't have a value specified by key $name")
}
return it
... | mit | Kotlin | |
ab498bc314b26c02b9738f4e90b356427e884a31 | bump versions (#556) | Skatteetaten/boober,Skatteetaten/boober | build.gradle.kts | build.gradle.kts | plugins {
id("java")
id("no.skatteetaten.gradle.aurora") version "4.4.22"
}
aurora {
useKotlinDefaults
useSpringBootDefaults
}
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-slf4j:1.6.2")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.2")
implem... | plugins {
id("java")
id("no.skatteetaten.gradle.aurora") version "4.4.22"
}
aurora {
useKotlinDefaults
useSpringBootDefaults
}
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-slf4j:1.6.0")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.0")
implem... | apache-2.0 | Kotlin |
713711293475dd023c52a90dc99be01e8ac649e2 | Update plugin org.jetbrains.kotlin.android to v1.7.20 (#210) | cortinico/slidetoact,cortinico/slidetoact | build.gradle.kts | build.gradle.kts | plugins {
id("com.android.application") version "7.3.0" apply false
id("com.android.library") version "7.3.0" apply false
id("org.jlleitschuh.gradle.ktlint") version "11.0.0" apply false
kotlin("android") version "1.7.20" apply false
}
| plugins {
id("com.android.application") version "7.3.0" apply false
id("com.android.library") version "7.3.0" apply false
id("org.jlleitschuh.gradle.ktlint") version "11.0.0" apply false
kotlin("android") version "1.7.10" apply false
}
| mit | Kotlin |
8ccc7b26221528730e78b4d34cf176325742bb6a | bump plugin version | breandan/idear,breandan/idear,OpenASR/idear,OpenASR/idear | build.gradle.kts | build.gradle.kts | import org.jetbrains.intellij.tasks.RunIdeTask
tasks.withType<RunIdeTask> {
findProperty("luginDev")?.let { args = listOf(projectDir.absolutePath) }
}
plugins {
id("org.jetbrains.intellij") version "0.4.7"
kotlin("jvm") version "1.3.21"
}
intellij {
pluginName = "idear"
updateSinceUntilBuild = fa... | import org.jetbrains.intellij.tasks.RunIdeTask
tasks.withType<RunIdeTask> {
findProperty("luginDev")?.let { args = listOf(projectDir.absolutePath) }
}
plugins {
id("org.jetbrains.intellij") version "0.4.6"
kotlin("jvm") version "1.3.21"
}
intellij {
pluginName = "idear"
updateSinceUntilBuild = fa... | apache-2.0 | Kotlin |
c4ca91e47a2390956d0d4aacffb454d5a1552738 | Change version to 3.0.2 | libgdx/packr,libgdx/packr,libgdx/packr,libgdx/packr | build.gradle.kts | build.gradle.kts | /*
* Copyright 2020 See AUTHORS file
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | /*
* Copyright 2020 See AUTHORS file
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | apache-2.0 | Kotlin |
87c02e51b08fe8560e1950f536cbcbd8bec9dbc5 | Use toolchains to run tests on different JVMs | tbroyer/gradle-incap-helper,tbroyer/gradle-incap-helper | build.gradle.kts | build.gradle.kts | import nl.javadude.gradle.plugins.license.LicenseExtension
import java.time.Year
plugins {
base
id("com.github.sherter.google-java-format") version "0.9"
id("org.jlleitschuh.gradle.ktlint") version "9.4.1"
id("com.github.hierynomus.license") version "0.15.0" apply false
// Used by "local.java-libr... | import nl.javadude.gradle.plugins.license.LicenseExtension
import java.time.Year
plugins {
base
id("com.github.sherter.google-java-format") version "0.9"
id("org.jlleitschuh.gradle.ktlint") version "9.4.1"
id("com.github.hierynomus.license") version "0.15.0" apply false
// Used by "local.java-libr... | apache-2.0 | Kotlin |
b21e5a0f378291d74ed60e510ce3c15cc76ea2e7 | Fix `LoadDirectoryTest` after API change | robinverduijn/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle-script-kotlin,blindpirate/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/gradle... | subprojects/provider/src/test/kotlin/org/gradle/kotlin/dsl/caching/LoadDirectoryTest.kt | subprojects/provider/src/test/kotlin/org/gradle/kotlin/dsl/caching/LoadDirectoryTest.kt | /*
* Copyright 2018 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 2018 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 |
ac36030691faedc2fbcf86965ae8110e5a3e5742 | Set generator output directory to src/main/java | Kotlin/anko,Kotlin/anko,JetBrains/anko,Kotlin/anko,JetBrains/anko,JetBrains/anko | anko/library/generator/src/org/jetbrains/android/anko/config/DefaultAnkoConfiguration.kt | anko/library/generator/src/org/jetbrains/android/anko/config/DefaultAnkoConfiguration.kt | /*
* Copyright 2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | /*
* Copyright 2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | apache-2.0 | Kotlin |
aa01d3eb008cf5c5ebf23813189644834941b5c2 | Add Navigatable | charbgr/CliffHanger | cliffhanger/app/src/main/java/com/github/charbgr/cliffhanger/shared/views/Navigatable.kt | cliffhanger/app/src/main/java/com/github/charbgr/cliffhanger/shared/views/Navigatable.kt | package com.github.charbgr.cliffhanger.shared.views
interface Navigatable {
fun onBackPressed(): Boolean
}
| mit | Kotlin | |
2841cde3332133a83bf2029ab05bf5ee2b4883ac | Fix type in @param in HealthDataService.kt | 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... | health/health-data-client/src/main/java/androidx/health/data/client/HealthDataService.kt | health/health-data-client/src/main/java/androidx/health/data/client/HealthDataService.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... | /*
* 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... | apache-2.0 | Kotlin |
f7058e61e6f603701b3e8545ff6ad231724b311f | Simplify `hello-kotlin` sample | blindpirate/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,robinverduijn/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle-script-kotlin,blindpirate/gradle,gradle/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,... | samples/hello-kotlin/build.gradle.kts | samples/hello-kotlin/build.gradle.kts | buildscript {
repositories {
gradleScriptKotlin()
}
dependencies {
classpath(kotlinModule("gradle-plugin"))
}
}
apply {
plugin("kotlin")
plugin<ApplicationPlugin>()
}
configure<ApplicationPluginConvention> {
mainClassName = "samples.HelloWorldKt"
}
repositories {
gra... | buildscript {
extra["kotlinVersion"] = "1.1.0-dev-1159"
extra["repo"] = "https://repo.gradle.org/gradle/repo"
repositories {
maven { setUrl(extra["repo"]) }
}
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${extra["kotlinVersion"]}")
}
}
apply {
plugi... | apache-2.0 | Kotlin |
0580edef6e63e07c1fd44537a0a807a103f83e67 | Implement clone on MarkLogicServerTable::ServerEditor. | rhdunn/marklogic-intellij-plugin | src/main/java/uk/co/reecedunn/intellij/plugin/marklogic/settings/MarkLogicServerTable.kt | src/main/java/uk/co/reecedunn/intellij/plugin/marklogic/settings/MarkLogicServerTable.kt | /*
* Copyright (C) 2017 Reece H. Dunn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | /*
* Copyright (C) 2017 Reece H. Dunn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | apache-2.0 | Kotlin |
c639ab0e96ad68053ad453d5cfc59b55e85a2e03 | Update DescribeTrails.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/cloudtrail/src/main/kotlin/com/kotlin/cloudtrail/DescribeTrails.kt | .kotlin_alpha/services/cloudtrail/src/main/kotlin/com/kotlin/cloudtrail/DescribeTrails.kt | // snippet-comment:[These are tags for the AWS doc team's sample catalog. Do not remove.]
// snippet-sourcedescription:[DescribeTrails.kt demonstrates how to look up information about a trail.]
//snippet-keyword:[AWS SDK for Kotlin]
// snippet-service:[AWS CloudTrail]
// snippet-keyword:[Code Sample]
// snippet-so... | // snippet-comment:[These are tags for the AWS doc team's sample catalog. Do not remove.]
// snippet-sourcedescription:[DescribeTrails.kt demonstrates how to look up information about a trail.]
//snippet-keyword:[AWS SDK for Kotlin]
// snippet-service:[AWS CloudTrail]
// snippet-keyword:[Code Sample]
// snippet-so... | apache-2.0 | Kotlin |
dc58cbf02d5f08741fd8cf52f71f08ab80dc7031 | Fix memory leak in PollingAuthenticator (#5666) | stripe/stripe-android,stripe/stripe-android,stripe/stripe-android,stripe/stripe-android,stripe/stripe-android | paymentsheet/src/main/java/com/stripe/android/paymentsheet/paymentdatacollection/polling/PollingAuthenticator.kt | paymentsheet/src/main/java/com/stripe/android/paymentsheet/paymentdatacollection/polling/PollingAuthenticator.kt | package com.stripe.android.paymentsheet.paymentdatacollection.polling
import androidx.activity.result.ActivityResultCallback
import androidx.activity.result.ActivityResultCaller
import androidx.activity.result.ActivityResultLauncher
import com.stripe.android.core.networking.ApiRequest
import com.stripe.android.model.S... | package com.stripe.android.paymentsheet.paymentdatacollection.polling
import androidx.activity.result.ActivityResultCallback
import androidx.activity.result.ActivityResultCaller
import androidx.activity.result.ActivityResultLauncher
import com.stripe.android.core.networking.ApiRequest
import com.stripe.android.model.S... | mit | Kotlin |
33385be1b1db34e3f7db17b40443714f0001bb01 | Work on the execution and callbacks of requests | chaseberry/Sprint | src/main/kotlin/edu/csh/chase/sprint/RequestProcessor.kt | src/main/kotlin/edu/csh/chase/sprint/RequestProcessor.kt | package edu.csh.chase.sprint
import com.squareup.okhttp
import com.squareup.okhttp.Call
import com.squareup.okhttp.Callback
import com.squareup.okhttp.OkHttpClient
import com.squareup.okhttp.Response
import java.io.IOException
import com.squareup.okhttp.Request as OkRequest
import com.squareup.okhttp.Response as OkRes... | package edu.csh.chase.sprint
import com.squareup.okhttp.OkHttpClient
import com.squareup.okhttp.Request as OkRequest
class RequestProcessor(val request: Request, val client: OkHttpClient, val successListener: SprintSuccess?,
val failureListener: SprintFailure?) {
private fun buildOkRequest... | apache-2.0 | Kotlin |
c373b43144b1c1196b625565b95abf1abe302e92 | Optimize Vp8Packet#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/codec/vp8/Vp8Packet.kt | src/main/kotlin/org/jitsi/nlj/rtp/codec/vp8/Vp8Packet.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 |
79783269fcec99f858a6ae30bbe1e699f07ffefb | Remove unnecessary import | robinverduijn/gradle,gradle/gradle-script-kotlin,gradle/gradle,blindpirate/gradle,blindpirate/gradle,robinverduijn/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle-script-kotlin,blindpirate/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,robinverduijn/gradle,gradl... | samples/code-quality/build.gradle.kts | samples/code-quality/build.gradle.kts | plugins {
checkstyle
findbugs
pmd
jdepend
jacoco
application
}
java {
sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7
}
dependencies {
testCompile("junit:junit:4.12")
}
checkstyle {
configFile = file("config/checkstyle/sun_checks.xml... | import java.math.BigDecimal
plugins {
checkstyle
findbugs
pmd
jdepend
jacoco
application
}
java {
sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7
}
dependencies {
testCompile("junit:junit:4.12")
}
checkstyle {
configFile = file("con... | apache-2.0 | Kotlin |
84d5c8257e6f2b4a0e1d83c19a70cc56b26c718a | add stress tests | ktorio/ktor,ktorio/ktor,ktorio/ktor,ktorio/ktor | ktor-server/ktor-server-jetty/test/io/ktor/tests/server/jetty/JettyStressTest.kt | ktor-server/ktor-server-jetty/test/io/ktor/tests/server/jetty/JettyStressTest.kt | package io.ktor.tests.server.jetty
import io.ktor.jetty.*
import io.ktor.testing.*
class JettyStressTest : HostStressSuite<JettyApplicationHost>(Jetty)
| apache-2.0 | Kotlin | |
aaf11af682122e0a4c5d6c6b9331b9ff890fed1e | Bump modb-core from 5.2.0 to 6.0.0 | manami-project/manami,manami-project/manami | manami-app/build.gradle.kts | manami-app/build.gradle.kts | dependencies {
api("io.github.manamiproject:modb-core:6.0.0")
api("io.github.manamiproject:modb-db-parser:3.0.1")
api("org.slf4j:slf4j-api:1.7.32")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.1-native-mt")
implementation("io.github.manamiproject:modb-anidb:3.0.2")
implemen... | dependencies {
api("io.github.manamiproject:modb-core:5.2.0")
api("io.github.manamiproject:modb-db-parser:3.0.1")
api("org.slf4j:slf4j-api:1.7.32")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.1-native-mt")
implementation("io.github.manamiproject:modb-anidb:3.0.2")
implemen... | agpl-3.0 | Kotlin |
5292e1b4d840429a37f155afd550112b14fbd851 | Bump modb-notify from 3.0.2 to 3.0.3 | manami-project/manami,manami-project/manami | manami-app/build.gradle.kts | manami-app/build.gradle.kts | dependencies {
api("io.github.manamiproject:modb-core:6.0.1")
api("io.github.manamiproject:modb-db-parser:3.0.3")
api("org.slf4j:slf4j-api:1.7.32")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.1-native-mt")
implementation("io.github.manamiproject:modb-anidb:3.0.4")
implemen... | dependencies {
api("io.github.manamiproject:modb-core:6.0.1")
api("io.github.manamiproject:modb-db-parser:3.0.3")
api("org.slf4j:slf4j-api:1.7.32")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.1-native-mt")
implementation("io.github.manamiproject:modb-anidb:3.0.4")
implemen... | agpl-3.0 | Kotlin |
9c569c77696baaf81ba6ce0f5f5bf23aa9b49002 | fix the issue of permission | pokk/SSFM | app/src/main/kotlin/taiwan/no1/app/ssfm/mvvm/views/activities/PlayMainActivity.kt | app/src/main/kotlin/taiwan/no1/app/ssfm/mvvm/views/activities/PlayMainActivity.kt | package taiwan.no1.app.ssfm.mvvm.views.activities
import android.Manifest.permission.WRITE_EXTERNAL_STORAGE
import android.app.Activity
import android.content.pm.PackageManager
import android.os.Bundle
import android.support.v4.app.ActivityCompat
import android.util.Log
import kotlinx.android.synthetic.main.part_main_... | package taiwan.no1.app.ssfm.mvvm.views.activities
import android.app.Activity
import taiwan.no1.app.ssfm.R
import taiwan.no1.app.ssfm.databinding.ActivityMusicBinding
import taiwan.no1.app.ssfm.mvvm.viewmodels.PlayMainViewModel
import taiwan.no1.app.ssfm.mvvm.views.AdvancedActivity
import javax.inject.Inject
/**
*
... | apache-2.0 | Kotlin |
7242116dc1a182453c575d8d35a68c643027933e | refactor #580 Add line separator. | toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Yobidashi_kt | article/src/main/java/jp/toastkid/article_viewer/calendar/TitleFilterGenerator.kt | article/src/main/java/jp/toastkid/article_viewer/calendar/TitleFilterGenerator.kt | package jp.toastkid.article_viewer.calendar
/**
* Title filtering query generator.
*
* @author toastkidjp
*/
class TitleFilterGenerator {
/**
* Make filtering query with year, month, and date.
*
* @param year ex) 2019
* @param month You should specify 1-12
* @param date You should spe... | package jp.toastkid.article_viewer.calendar
/**
* Title filtering query generator.
*
* @author toastkidjp
*/
class TitleFilterGenerator {
/**
* Make filtering query with year, month, and date.
*
* @param year ex) 2019
* @param month You should specify 1-12
* @param date You should spe... | epl-1.0 | Kotlin |
b071ccf5743fa2a4ed8f7e22772af417508ebe4b | Add SWSLOptimizer | KotlinNLP/SimpleDNN | src/kotlin/com/kotlinnlp/simplednn/deeplearning/sequencelabeling/SWSLOptimizer.kt | src/kotlin/com/kotlinnlp/simplednn/deeplearning/sequencelabeling/SWSLOptimizer.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 | |
fe8e0e3f8c2832708e78c08a527600cbeb47ebcb | Add test showing failing case | dhis2/dhis2-android-sdk,dhis2/dhis2-android-sdk,dhis2/dhis2-android-sdk | core/src/androidTest/java/org/hisp/dhis/android/testapp/trackedentity/search/TrackedEntityInstanceQueryCollectionRepositoryMockEnqueableIntegrationShould.kt | core/src/androidTest/java/org/hisp/dhis/android/testapp/trackedentity/search/TrackedEntityInstanceQueryCollectionRepositoryMockEnqueableIntegrationShould.kt | /*
* Copyright (c) 2004-2022, University of Oslo
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
* list... | bsd-3-clause | Kotlin | |
ca9ce02e9a93bcf53e4f7f1b1f5490fee520d72d | Stop querying an inexistent table | k0kubun/github-ranking,k0kubun/github-ranking,k0kubun/githubranking,k0kubun/github-ranking,k0kubun/githubranking,k0kubun/github-ranking,k0kubun/githubranking,k0kubun/github-ranking,k0kubun/githubranking,k0kubun/githubranking | worker/src/main/kotlin/com/github/k0kubun/gitstar_ranking/db/OrganizationQuery.kt | worker/src/main/kotlin/com/github/k0kubun/gitstar_ranking/db/OrganizationQuery.kt | package com.github.k0kubun.gitstar_ranking.db
import com.github.k0kubun.gitstar_ranking.core.Organization
import com.github.k0kubun.gitstar_ranking.core.StarsCursor
import java.sql.Timestamp
import org.jooq.DSLContext
import org.jooq.Record
import org.jooq.RecordMapper
import org.jooq.impl.DSL.field
import org.jooq.im... | package com.github.k0kubun.gitstar_ranking.db
import com.github.k0kubun.gitstar_ranking.core.Organization
import com.github.k0kubun.gitstar_ranking.core.StarsCursor
import java.sql.Timestamp
import org.jooq.DSLContext
import org.jooq.Record
import org.jooq.RecordMapper
import org.jooq.impl.DSL.field
import org.jooq.im... | mit | Kotlin |
994e087b0a4a420fa7eedf1789acaa1ffa1d52cc | Add Node.getParentBeforeAncestor | AcornUI/Acorn,AcornUI/Acorn,AcornUI/Acorn | acornui-core/src/main/kotlin/com/acornui/dom/nodeUtils.kt | acornui-core/src/main/kotlin/com/acornui/dom/nodeUtils.kt | /*
* Copyright 2020 Poly Forest, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | /*
* Copyright 2020 Poly Forest, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | apache-2.0 | Kotlin |
0ab1a576df9cf0747bb3d3716e6ce50a655c7351 | refactor #412 Delete useless toasting. | toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt | app/src/main/java/jp/toastkid/yobidashi/search/favorite/FavoriteSearchInsertion.kt | app/src/main/java/jp/toastkid/yobidashi/search/favorite/FavoriteSearchInsertion.kt | package jp.toastkid.yobidashi.search.favorite
import android.content.Context
import jp.toastkid.yobidashi.libs.db.DatabaseFinder
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.Job
import kotlinx.coroutines.launch
im... | package jp.toastkid.yobidashi.search.favorite
import android.content.Context
import jp.toastkid.yobidashi.R
import jp.toastkid.yobidashi.libs.Toaster
import jp.toastkid.yobidashi.libs.db.DatabaseFinder
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Disp... | epl-1.0 | Kotlin |
e4ec17035ee77a888679e5b4d4e8b1c7db8e8664 | Add test for validating current build version name | dya-tel/TSU-Schedule | src/test/kotlin/ru/dyatel/tsuschedule/UpdaterTest.kt | src/test/kotlin/ru/dyatel/tsuschedule/UpdaterTest.kt | package ru.dyatel.tsuschedule
import org.junit.Test
class UpdaterTest {
@Test fun testBuildVersionName() {
Release("1.0.0", "").isNewerThanInstalled()
}
}
| mit | Kotlin | |
363a26b8dbf42f4a0a7fd0f4c75a4ff5a73a5d2a | make val compositeDisposable in DownloadingPresenter | StepicOrg/stepik-android,StepicOrg/stepik-android,StepicOrg/stepik-android,StepicOrg/stepic-android,StepicOrg/stepic-android,StepicOrg/stepic-android | app/src/main/java/org/stepic/droid/core/downloadingProgress/DownloadingPresenter.kt | app/src/main/java/org/stepic/droid/core/downloadingProgress/DownloadingPresenter.kt | package org.stepic.droid.core.downloadingProgress
import io.reactivex.Scheduler
import io.reactivex.disposables.CompositeDisposable
import io.reactivex.disposables.Disposable
import org.stepic.droid.core.presenters.PresenterBase
import org.stepic.droid.di.qualifiers.BackgroundScheduler
import org.stepic.droid.di.quali... | package org.stepic.droid.core.downloadingProgress
import io.reactivex.Scheduler
import io.reactivex.disposables.CompositeDisposable
import io.reactivex.disposables.Disposable
import org.stepic.droid.core.presenters.PresenterBase
import org.stepic.droid.di.qualifiers.BackgroundScheduler
import org.stepic.droid.di.quali... | apache-2.0 | Kotlin |
ff3561ed1af872897929594367c17af5f240201c | add exception | lfkdsk/JustDB,lfkdsk/JustDB | src/core/JustDB.kt | src/core/JustDB.kt | package core
import buffer.BufferManager
import buffer.BufferManagerImpl
import logger.LogManager
import logger.LogManagerImpl
import storage.FileManager
import storage.FileManagerImpl
/**
* Created by liufengkai on 2017/4/30.
*/
/**
* system basic interface
*/
interface SystemService
/**
* cannot find excepti... | package core
import logger.LogManager
import logger.LogManagerImpl
import storage.FileManager
import storage.FileManagerImpl
/**
* Created by liufengkai on 2017/4/30.
*/
interface SystemService
object JustDB {
const val FILE_MANAGER = "FILE_MANAGER"
const val LOGGER_MANAGER = "LOGGER_MANAGER"
const val BUFFER_... | apache-2.0 | Kotlin |
d14103d9b2a2e9aba552a93b5e2867ea3de102bd | use psiTraverser() in CheckPsiReadAccessors | 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/testFramework/src/com/intellij/testFramework/propertyBased/CheckPsiReadAccessors.kt | platform/testFramework/src/com/intellij/testFramework/propertyBased/CheckPsiReadAccessors.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.testFramework.propertyBased
import com.intellij.openapi.util.Condition
import com.intellij.psi.PsiFile
import com.intellij.psi.SyntaxTraverser.psiTraverser
i... | // 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.testFramework.propertyBased
import com.intellij.openapi.util.Condition
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiFile
import com.intellij... | apache-2.0 | Kotlin |
1d51b06d3e226f665fd845bb0e0b2461022f6f98 | Increase default connect/read timeouts | inorichi/tachiyomi,inorichi/tachiyomi,inorichi/mangafeed,inorichi/mangafeed,CarlosEsco/tachiyomi | app/src/main/java/eu/kanade/tachiyomi/network/NetworkHelper.kt | app/src/main/java/eu/kanade/tachiyomi/network/NetworkHelper.kt | package eu.kanade.tachiyomi.network
import android.content.Context
import java.io.File
import java.util.concurrent.TimeUnit
import okhttp3.Cache
import okhttp3.OkHttpClient
class NetworkHelper(context: Context) {
private val cacheDir = File(context.cacheDir, "network_cache")
private val cacheSize = 5L * 102... | package eu.kanade.tachiyomi.network
import android.content.Context
import java.io.File
import okhttp3.Cache
import okhttp3.OkHttpClient
class NetworkHelper(context: Context) {
private val cacheDir = File(context.cacheDir, "network_cache")
private val cacheSize = 5L * 1024 * 1024 // 5 MiB
val cookieMana... | apache-2.0 | Kotlin |
b3ccf8221760aca791243e223cf8a305590dea5d | fix theme for CodeEditorLayout | StepicOrg/stepik-android,StepicOrg/stepik-android,StepicOrg/stepic-android,StepicOrg/stepic-android,StepicOrg/stepic-android,StepicOrg/stepik-android | app/src/main/java/org/stepic/droid/code/ui/CodeEditorLayout.kt | app/src/main/java/org/stepic/droid/code/ui/CodeEditorLayout.kt | package org.stepic.droid.code.ui
import android.content.Context
import android.graphics.Typeface
import android.util.AttributeSet
import android.view.LayoutInflater
import android.widget.ScrollView
import org.stepic.droid.R
import org.stepic.droid.code.highlight.themes.CodeTheme
import org.stepic.droid.code.highlight.... | package org.stepic.droid.code.ui
import android.content.Context
import android.graphics.Typeface
import android.util.AttributeSet
import android.view.LayoutInflater
import android.widget.ScrollView
import org.stepic.droid.R
import org.stepic.droid.code.highlight.themes.CodeTheme
import org.stepic.droid.code.highlight.... | apache-2.0 | Kotlin |
edd767d8c52db74c30828aa5a9b1fc52161eeb21 | make CodeEditor accessible outside of CodeEditorLayout | StepicOrg/stepik-android,StepicOrg/stepic-android,StepicOrg/stepic-android,StepicOrg/stepic-android,StepicOrg/stepik-android,StepicOrg/stepik-android | app/src/main/java/org/stepic/droid/code/ui/CodeEditorLayout.kt | app/src/main/java/org/stepic/droid/code/ui/CodeEditorLayout.kt | package org.stepic.droid.code.ui
import android.content.Context
import android.support.v4.widget.NestedScrollView
import android.util.AttributeSet
import android.view.LayoutInflater
import org.stepic.droid.R
import org.stepic.droid.code.highlight.themes.CodeTheme
import org.stepic.droid.code.highlight.themes.Presets
i... | package org.stepic.droid.code.ui
import android.content.Context
import android.graphics.Typeface
import android.support.v4.widget.NestedScrollView
import android.util.AttributeSet
import android.view.LayoutInflater
import org.stepic.droid.R
import org.stepic.droid.code.highlight.themes.CodeTheme
import org.stepic.droi... | apache-2.0 | Kotlin |
edd9d77910cf89eafb023ef556b0b5ce124b6383 | Update an incorrect property type in Weather | mustafaberkaymutlu/uv-index | base/src/main/java/net/epictimes/uvindex/data/model/Weather.kt | base/src/main/java/net/epictimes/uvindex/data/model/Weather.kt | package net.epictimes.uvindex.data.model
import com.google.gson.annotations.SerializedName
class Weather {
@SerializedName("lat")
var latitude: String? = null
@SerializedName("lon")
var longitude: String? = null
@SerializedName("wind_spd")
var windSpeed: Double? = null
@SerializedName... | package net.epictimes.uvindex.data.model
import com.google.gson.annotations.SerializedName
class Weather {
@SerializedName("lat")
var latitude: String? = null
@SerializedName("lon")
var longitude: String? = null
@SerializedName("wind_spd")
var windSpeed: Double? = null
@SerializedName... | apache-2.0 | Kotlin |
a15ef15f9016ce8f6d00d36ba162dcb77e65fffe | Fix Inbound/Outbound type | mtransitapps/parser,mtransitapps/parser | src/main/java/org/mtransit/parser/mt/data/MInboundType.kt | src/main/java/org/mtransit/parser/mt/data/MInboundType.kt | package org.mtransit.parser.mt.data
import org.mtransit.parser.MTLog
enum class MInboundType(val id: String) {
NONE(""),
INBOUND("1"),
OUTBOUND("0");
override fun toString(): String {
return id
}
@Suppress("unused")
fun intValue(): Int {
return when (id) {
IN... | package org.mtransit.parser.mt.data
import org.mtransit.parser.MTLog
enum class MInboundType(val id: String) {
NONE(""),
INBOUND("1"),
OUTBOUND("0");
override fun toString(): String {
return id
}
@Suppress("unused")
fun intValue(): Int {
return when (id) {
id... | apache-2.0 | Kotlin |
943d2cbb9e92171f527eeb7d10f5c49230eeb9d5 | refactor #307 Fix incorrect unit test. | toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Jitte | app/src/test/java/jp/toastkid/yobidashi/notification/widget/RemoteViewsFactoryTest.kt | app/src/test/java/jp/toastkid/yobidashi/notification/widget/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 |
9905a4241891839b70bccb55d73772b79e87f8ac | Update back logic | charbgr/CliffHanger | cliffhanger/app/src/main/java/com/github/charbgr/cliffhanger/features/MainActivity.kt | cliffhanger/app/src/main/java/com/github/charbgr/cliffhanger/features/MainActivity.kt | package com.github.charbgr.cliffhanger.features
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.widget.FrameLayout
import com.github.charbgr.cliffhanger.R
import com.github.charbgr.cliffhanger.R.layout
import com.github.charbgr.cliffhanger.features.home.NavigateToHome
import com... | package com.github.charbgr.cliffhanger.features
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.view.View
import android.widget.FrameLayout
import com.github.charbgr.cliffhanger.R
import com.github.charbgr.cliffhanger.R.layout
import com.github.charbgr.cliffhanger.features.home.... | mit | Kotlin |
ffd1bde3ae627305afbf10ebd01de296a99dff9f | create a threadlocal kotlin delegate | CruGlobal/android-gto-support,CruGlobal/android-gto-support,GlobalTechnology/android-gto-support | gto-support-util/src/main/java/org/ccci/gto/android/common/util/kotlin/ThreadLocalDelegate.kt | gto-support-util/src/main/java/org/ccci/gto/android/common/util/kotlin/ThreadLocalDelegate.kt | package org.ccci.gto.android.common.util.kotlin
import kotlin.properties.ReadWriteProperty
import kotlin.reflect.KProperty
private class ThreadLocalDelegate<T>(initializer: () -> T) : ReadWriteProperty<Any, T> {
private val threadLocal = ThreadLocalWithInitializer(initializer)
@Suppress("UNCHECKED_CAST")
... | mit | Kotlin | |
02c40cb8a2ad2e23ea95b11af13033420145add8 | Add BiRNNEncoderUtils | KotlinNLP/SimpleDNN | test/kotlin/deeplearning/birnn/utils/BiRNNEncoderUtils.kt | test/kotlin/deeplearning/birnn/utils/BiRNNEncoderUtils.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 | |
4415f2db314329dccc7c70ac638ebf623d002048 | Solve problem 2220 | fredyw/leetcode,fredyw/leetcode,fredyw/leetcode,fredyw/leetcode | src/main/kotlin/leetcode/Problem2220.kt | src/main/kotlin/leetcode/Problem2220.kt | package leetcode
/**
* https://leetcode.com/problems/minimum-bit-flips-to-convert-number/
*/
class Problem2220 {
fun minBitFlips(start: Int, goal: Int): Int {
var answer = 0
var s = start.toString(2)
var g = goal.toString(2)
if (s.length > g.length) {
g = g.padStart(s.... | package leetcode
/**
* https://leetcode.com/problems/minimum-bit-flips-to-convert-number/
*/
class Problem2220 {
fun minBitFlips(start: Int, goal: Int): Int {
TODO()
}
}
fun main() {
val prob = Problem2220()
println(prob.minBitFlips(10, 7)) // 3
println(prob.minBitFlips(3, 4)) // 3
} | mit | Kotlin |
dcd9a7275a67ad75d8e5ad5c1ac38b7f8ddfc08e | Update CreateTrail.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/cloudtrail/src/main/kotlin/com/kotlin/cloudtrail/CreateTrail.kt | .kotlin_alpha/services/cloudtrail/src/main/kotlin/com/kotlin/cloudtrail/CreateTrail.kt | // snippet-comment:[These are tags for the AWS doc team's sample catalog. Do not remove.]
// snippet-sourcedescription:[CreateTrail.kt demonstrates how to create a trail.]
//snippet-keyword:[AWS SDK for Kotlin]
// snippet-service:[AWS CloudTrail]
// snippet-keyword:[Code Sample]
// snippet-sourcetype:[full-example]
// ... | // snippet-comment:[These are tags for the AWS doc team's sample catalog. Do not remove.]
// snippet-sourcedescription:[CreateTrail.kt demonstrates how to create a trail.]
//snippet-keyword:[AWS SDK for Kotlin]
// snippet-service:[AWS CloudTrail]
// snippet-keyword:[Code Sample]
// snippet-sourcetype:[full-example]
// ... | apache-2.0 | Kotlin |
b8fff0144a084f54feeb280cd53b970b302ee754 | Remove nullable WeakRef | charbgr/CliffHanger | cliffhanger/app/src/main/java/com/github/charbgr/cliffhanger/home/mvi/HomePresenter.kt | cliffhanger/app/src/main/java/com/github/charbgr/cliffhanger/home/mvi/HomePresenter.kt | package com.github.charbgr.cliffhanger.home.mvi
import com.github.charbgr.cliffhanger.shared.arch.RxJava2Presenter
import io.reactivex.Observable
import io.reactivex.Scheduler
import io.reactivex.android.schedulers.AndroidSchedulers
import io.reactivex.observers.DisposableObserver
class HomePresenter(
private val... | package com.github.charbgr.cliffhanger.home.mvi
import com.github.charbgr.cliffhanger.shared.arch.RxJava2Presenter
import io.reactivex.Observable
import io.reactivex.Scheduler
import io.reactivex.android.schedulers.AndroidSchedulers
import io.reactivex.observers.DisposableObserver
class HomePresenter(
private val... | mit | Kotlin |
f26de8f0566c9e3fee9210828b5c69ea608da584 | Fix debug setting | google/ksp,google/ksp,google/ksp | integration-tests/src/test/kotlin/com/google/devtools/ksp/test/TemporaryTestProject.kt | integration-tests/src/test/kotlin/com/google/devtools/ksp/test/TemporaryTestProject.kt | package com.google.devtools.ksp.test
import org.junit.rules.TemporaryFolder
import java.io.File
class TemporaryTestProject(projectName: String, baseProject: String? = null) : TemporaryFolder() {
private val testProjectSrc = File("src/test/resources", projectName)
private val baseProjectSrc = baseProject?.let ... | package com.google.devtools.ksp.test
import org.junit.rules.TemporaryFolder
import java.io.File
class TemporaryTestProject(projectName: String, baseProject: String? = null) : TemporaryFolder() {
private val testProjectSrc = File("src/test/resources", projectName)
private val baseProjectSrc = baseProject?.let ... | apache-2.0 | Kotlin |
f54a27d92648aff27e35f2b051634e9334903362 | Remove unneeded fully qualified name | LouisCAD/Splitties,LouisCAD/Splitties,LouisCAD/Splitties | sample/src/main/kotlin/com/louiscad/splittiessample/extensions/coroutines/Lifecycle.kt | sample/src/main/kotlin/com/louiscad/splittiessample/extensions/coroutines/Lifecycle.kt | /*
* Copyright (c) 2018. Louis Cognault Ayeva Derman
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | /*
* Copyright (c) 2018. Louis Cognault Ayeva Derman
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | apache-2.0 | Kotlin |
cd7ab49cfdf31bb98105595c036736c58156dace | Make FileUtil return an empty list if file does not exist. | shaeberling/euler,shaeberling/euler,shaeberling/euler,shaeberling/euler | kotlin/src/com/s13g/aoc/FileUtil.kt | kotlin/src/com/s13g/aoc/FileUtil.kt | /*
* Copyright 2017 Sascha Haeberling
*
* 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 2017 Sascha Haeberling
*
* 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 |
17b92b45dcd09faa9742cd0070fdd64c821f908d | Add getIntId() method | KotlinNLP/SimpleDNN | src/main/kotlin/com/kotlinnlp/simplednn/deeplearning/embeddings/EmbeddingsContainerByStrings.kt | src/main/kotlin/com/kotlinnlp/simplednn/deeplearning/embeddings/EmbeddingsContainerByStrings.kt | /* Copyright 2016-present The KotlinNLP Authors. All Rights Reserved.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, you can obtain one at http://mozilla.org/MPL/2.0/.
* ------------------------------------------... | /* Copyright 2016-present The KotlinNLP Authors. All Rights Reserved.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, you can obtain one at http://mozilla.org/MPL/2.0/.
* ------------------------------------------... | mpl-2.0 | Kotlin |
c286b4d6b67fbb6d41d819b69867938508b4567a | Bump version | SpineEventEngine/core-java,SpineEventEngine/core-java,SpineEventEngine/core-java | version.gradle.kts | version.gradle.kts | /*
* Copyright 2021, TeamDev. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Redistribution and use in source... | /*
* Copyright 2021, TeamDev. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Redistribution and use in source... | apache-2.0 | Kotlin |
bff1b63fdc4d7a110185cb18b1068fa53921053d | add test for contract | http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k | http4k-contract/src/test/kotlin/org/http4k/contract/DslContractRoutingHttpHandlerTest.kt | http4k-contract/src/test/kotlin/org/http4k/contract/DslContractRoutingHttpHandlerTest.kt | package org.http4k.contract
import com.natpryce.hamkrest.assertion.assertThat
import org.http4k.contract.simple.SimpleJson
import org.http4k.core.Method.GET
import org.http4k.core.Request
import org.http4k.core.Response
import org.http4k.core.Status.Companion.OK
import org.http4k.core.then
import org.http4k.filter.Ser... | package org.http4k.contract
import org.http4k.contract.simple.SimpleJson
import org.http4k.core.then
import org.http4k.filter.ServerFilters
import org.http4k.format.Jackson
class FunctionContractRoutingHttpHandlerTest : ContractRoutingHttpHandlerContract() {
@Suppress("DEPRECATION")
override val handler =
... | apache-2.0 | Kotlin |
e10ded494fe762373863ef1e775150ad778c3552 | Update ArtsyJoyLori.kt | LorittaBot/Loritta,LorittaBot/Loritta,LorittaBot/Loritta,LorittaBot/Loritta | loritta-plugins/artsy-joy-lori/src/main/kotlin/net/perfectdreams/loritta/ArtsyJoyLori.kt | loritta-plugins/artsy-joy-lori/src/main/kotlin/net/perfectdreams/loritta/ArtsyJoyLori.kt | package net.perfectdreams.loritta
import com.mrpowergamerbr.loritta.plugin.LorittaPlugin
import net.perfectdreams.loritta.commands.actions.*
import net.perfectdreams.loritta.commands.administration.DashboardCommand
import net.perfectdreams.loritta.commands.administration.RenameChannelCommand
import net.perfectdreams.l... | package net.perfectdreams.loritta
import com.mrpowergamerbr.loritta.plugin.LorittaPlugin
import net.perfectdreams.loritta.commands.actions.*
import net.perfectdreams.loritta.commands.administration.DashboardCommand
import net.perfectdreams.loritta.commands.administration.RenameChannelCommand
import net.perfectdreams.l... | agpl-3.0 | Kotlin |
b407ddeb9b5a3b4827fa67166152f68811d38b28 | refactor #580 Add CoilPluginFactory's test case. | toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Jitte | article/src/test/java/jp/toastkid/article_viewer/article/detail/markdown/CoilPluginFactoryTest.kt | article/src/test/java/jp/toastkid/article_viewer/article/detail/markdown/CoilPluginFactoryTest.kt | /*
* Copyright (c) 2021 toastkidjp.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompany this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html.
*/
package jp... | epl-1.0 | Kotlin | |
8d09d2e985a0d3017dc85246e905bef11a066551 | Remove TODO and simplify map - no longer on a kotlin eap. | gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpira... | subprojects/docs/src/snippets/initScripts/configurationInjection/kotlin/build.gradle.kts | subprojects/docs/src/snippets/initScripts/configurationInjection/kotlin/build.gradle.kts | repositories {
mavenCentral()
}
tasks.register("showRepos") {
doLast {
println("All repos:")
println(repositories.map { it.name })
}
}
| repositories {
mavenCentral()
}
tasks.register("showRepos") {
doLast {
println("All repos:")
//TODO:kotlin-dsl remove filter once we're no longer on a kotlin eap
println(repositories.map { it.name }.filter { it != "maven" })
}
}
| apache-2.0 | Kotlin |
e6aa6c4d7b0c34bf1119fc874a8ca7ae3685fab4 | Add onCreate and onOpen extensions in arch-room | LouisCAD/Splitties,LouisCAD/Splitties,LouisCAD/Splitties | arch-room/src/main/java/splitties/arch/room/Room.kt | arch-room/src/main/java/splitties/arch/room/Room.kt | /*
* Copyright (c) 2018. Louis Cognault Ayeva Derman
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | /*
* Copyright (c) 2018. Louis Cognault Ayeva Derman
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | apache-2.0 | Kotlin |
8e4e15fefb2b4ede4bd935abd78a0316660c4741 | remove invoke method from EventViewHolder | squanchy-dev/squanchy-android,squanchy-dev/squanchy-android,squanchy-dev/squanchy-android | app/src/main/java/net/squanchy/schedule/view/EventViewHolder.kt | app/src/main/java/net/squanchy/schedule/view/EventViewHolder.kt | package net.squanchy.schedule.view
import android.support.v7.widget.RecyclerView
import net.squanchy.schedule.domain.view.Event
class EventViewHolder(itemView: EventItemView) : RecyclerView.ViewHolder(itemView) {
fun updateWith(event: Event, listener: (Event) -> Unit) {
(itemView as EventItemView).updat... | package net.squanchy.schedule.view
import android.support.v7.widget.RecyclerView
import net.squanchy.schedule.domain.view.Event
class EventViewHolder(itemView: EventItemView) : RecyclerView.ViewHolder(itemView) {
fun updateWith(event: Event, listener: (Event) -> Unit) {
(itemView as EventItemView).updat... | apache-2.0 | Kotlin |
1b7822a338755744309b0ea8a333f25e59b96c1c | Improve TerraformLookupElementRenderer | VladRassokhin/intellij-hcl,VladRassokhin/intellij-hcl,VladRassokhin/intellij-hcl,VladRassokhin/intellij-hcl,VladRassokhin/intellij-hcl | src/kotlin/org/intellij/plugins/hcl/terraform/config/codeinsight/TerraformLookupElementRenderer.kt | src/kotlin/org/intellij/plugins/hcl/terraform/config/codeinsight/TerraformLookupElementRenderer.kt | /*
* Copyright 2000-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | /*
* Copyright 2000-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | apache-2.0 | Kotlin |
e4a299e07d87fd57bcbc5aac49f9b8e312268cbf | Refactor ArbitraryTypeReader | config4k/config4k,config4k/config4k | src/main/io.github.config4k/readers/ArbitraryTypeReader.kt | src/main/io.github.config4k/readers/ArbitraryTypeReader.kt | package io.github.config4k.readers
import com.typesafe.config.Config
import io.github.config4k.ClassContainer
import io.github.config4k.extract
import io.github.config4k.getGenericList
import java.lang.reflect.ParameterizedType
import kotlin.reflect.full.primaryConstructor
import kotlin.reflect.jvm.javaType
internal... | package io.github.config4k.readers
import io.github.config4k.ClassContainer
import io.github.config4k.extract
import io.github.config4k.getGenericList
import java.lang.reflect.ParameterizedType
import kotlin.reflect.full.primaryConstructor
import kotlin.reflect.jvm.javaType
internal class ArbitraryTypeReader(clazz: ... | apache-2.0 | Kotlin |
d7357d121bb61a91628386b571b31c5c4e6545a2 | Add concurrent library on top of guava | docent/kotlin-guava | src/main/kotlin/org/github/docent/kguava/ext/concurrent.kt | src/main/kotlin/org/github/docent/kguava/ext/concurrent.kt | package org.github.docent.kguava.ext
import com.google.common.util.concurrent.ListenableFuture
import com.google.common.util.concurrent.ListeningExecutorService
import java.util.concurrent.TimeUnit
import com.google.common.util.concurrent.Futures
import com.google.common.util.concurrent.ListeningScheduledExecutorServi... | apache-2.0 | Kotlin | |
4d0e0b8ef881c1bb0c1bd147e1fe76aec17d8289 | Fix VCS tagging after EAP release | JetBrains/ideavim,JetBrains/ideavim | .teamcity/_Self/buildTypes/ReleaseEap.kt | .teamcity/_Self/buildTypes/ReleaseEap.kt | package _Self.buildTypes
import _Self.Constants.DEV_VERSION
import _Self.Constants.EAP
import _Self.Constants.RELEASE_EAP
import jetbrains.buildServer.configs.kotlin.v2019_2.BuildType
import jetbrains.buildServer.configs.kotlin.v2019_2.CheckoutMode
import jetbrains.buildServer.configs.kotlin.v2019_2.DslContext
import ... | package _Self.buildTypes
import _Self.Constants.DEV_VERSION
import _Self.Constants.EAP
import _Self.Constants.RELEASE_EAP
import jetbrains.buildServer.configs.kotlin.v2019_2.BuildType
import jetbrains.buildServer.configs.kotlin.v2019_2.CheckoutMode
import jetbrains.buildServer.configs.kotlin.v2019_2.DslContext
import ... | mit | Kotlin |
888067bc26483836f40801deb0149573a203f6f3 | Fix indent in settings.gradle.kts | LouisCAD/Splitties,LouisCAD/Splitties,LouisCAD/Splitties | settings.gradle.kts | settings.gradle.kts | @file:Suppress("SpellCheckingInspection")
/*
* Copyright (c) 2016. Louis Cognault Ayeva Derman
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | @file:Suppress("SpellCheckingInspection")
/*
* Copyright (c) 2016. Louis Cognault Ayeva Derman
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | apache-2.0 | Kotlin |
1c5904ebf048404cd973cb570be820097d0ee637 | Upgrade Gradle plugins | sbrannen/junit-lambda,junit-team/junit-lambda | settings.gradle.kts | settings.gradle.kts | pluginManagement {
plugins {
id("com.gradle.enterprise") version "3.1"
id("net.nemerosa.versioning") version "2.10.0"
id("com.github.ben-manes.versions") version "0.27.0"
id("com.diffplug.gradle.spotless") version "3.27.0"
id("org.ajoberstar.git-publish") version "2.1.3"
kotlin("jvm") version "1.3.61"
id... | pluginManagement {
plugins {
id("com.gradle.enterprise") version "3.1"
id("net.nemerosa.versioning") version "2.8.2"
id("com.github.ben-manes.versions") version "0.26.0"
id("com.diffplug.gradle.spotless") version "3.25.0"
id("org.ajoberstar.git-publish") version "2.1.1"
kotlin("jvm") version "1.3.50"
id(... | epl-1.0 | Kotlin |
54f4f3b204959e8b4ed2d749583e02d435b4dfe4 | Remove extra line break | LouisCAD/Splitties,LouisCAD/Splitties,LouisCAD/Splitties | modules/preferences/build.gradle.kts | modules/preferences/build.gradle.kts | /*
* Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
*/
plugins {
id("com.android.library")
kotlin("multiplatform")
`maven-publish`
}
android {
setDefaults()
buildTypes.getByName("release").consumerProguardFiles("proguard-rules.pro")
}
... | /*
* Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
*/
plugins {
id("com.android.library")
kotlin("multiplatform")
`maven-publish`
}
android {
setDefaults()
buildTypes.getByName("release").consumerProguardFiles("proguard-rules.pro")
}
... | apache-2.0 | Kotlin |
763ae155e1f9344490e5633d679b8624afa3d44f | Update Room version to 1.1 beta2 | androidx/androidx,AndroidX/androidx,aosp-mirror/platform_frameworks_support,AndroidX/androidx,androidx/androidx,androidx/androidx,AndroidX/androidx,androidx/androidx,androidx/androidx,androidx/androidx,androidx/androidx,AndroidX/androidx,androidx/androidx,AndroidX/androidx,aosp-mirror/platform_frameworks_support,Androi... | buildSrc/src/main/kotlin/android/support/LibraryVersions.kt | buildSrc/src/main/kotlin/android/support/LibraryVersions.kt | /*
* Copyright (C) 2017 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... | /*
* Copyright (C) 2017 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... | apache-2.0 | Kotlin |
11d71ac6fbed82672d17dd5ec6ee57e243e32eed | fix RIDER-69113 Remove Exclude/Include actions from the Unity view in Explorer | JetBrains/resharper-unity,JetBrains/resharper-unity,JetBrains/resharper-unity | rider/src/main/kotlin/com/jetbrains/rider/plugins/unity/explorer/UnitySolutionExplorerCustomization.kt | rider/src/main/kotlin/com/jetbrains/rider/plugins/unity/explorer/UnitySolutionExplorerCustomization.kt | package com.jetbrains.rider.plugins.unity.explorer
import com.intellij.openapi.project.Project
import com.jetbrains.rider.plugins.unity.isUnityGeneratedProject
import com.jetbrains.rider.plugins.unity.ui.UnityUIManager
import com.jetbrains.rider.plugins.unity.ui.hasTrueValue
import com.jetbrains.rider.projectView.view... | package com.jetbrains.rider.plugins.unity.explorer
import com.intellij.openapi.project.Project
import com.jetbrains.rider.plugins.unity.isUnityGeneratedProject
import com.jetbrains.rider.plugins.unity.ui.UnityUIManager
import com.jetbrains.rider.plugins.unity.ui.hasTrueValue
import com.jetbrains.rider.projectView.view... | apache-2.0 | Kotlin |
875811020b267569f3922e406a859a0a2d2ef5c8 | Delete unused | http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k | http4k-serverless-lambda/integration-test/src/test/kotlin/org/http4k/serverless/lambda/client/client.kt | http4k-serverless-lambda/integration-test/src/test/kotlin/org/http4k/serverless/lambda/client/client.kt | package org.http4k.serverless.lambda.client
import org.http4k.aws.AwsLambdaApiClient
import org.http4k.aws.FunctionName
import org.http4k.client.JavaHttpClient
import org.http4k.cloudnative.env.Environment
import org.http4k.core.Filter
import org.http4k.core.HttpHandler
import org.http4k.core.NoOp
import org.http4k.co... | package org.http4k.serverless.lambda.client
import org.http4k.aws.AwsLambdaApiClient
import org.http4k.aws.FunctionName
import org.http4k.client.JavaHttpClient
import org.http4k.cloudnative.env.Environment
import org.http4k.core.Filter
import org.http4k.core.HttpHandler
import org.http4k.core.NoOp
import org.http4k.co... | apache-2.0 | Kotlin |
85cc61934cc33a7f6316e52d50908918d5dbddeb | add test | winni67/AndroidAPS,Heiner1/AndroidAPS,PoweRGbg/AndroidAPS,jotomo/AndroidAPS,jotomo/AndroidAPS,jotomo/AndroidAPS,PoweRGbg/AndroidAPS,Heiner1/AndroidAPS,winni67/AndroidAPS,PoweRGbg/AndroidAPS,MilosKozak/AndroidAPS,MilosKozak/AndroidAPS,MilosKozak/AndroidAPS,Heiner1/AndroidAPS,Heiner1/AndroidAPS | app/src/test/java/info/nightscout/androidaps/plugins/general/versionChecker/VersionCheckerUtilsKtTest.kt | app/src/test/java/info/nightscout/androidaps/plugins/general/versionChecker/VersionCheckerUtilsKtTest.kt | package info.nightscout.androidaps.plugins.general.versionChecker
import org.junit.Assert.assertEquals
import org.junit.Test
class VersionCheckerUtilsKtTest {
@Test
fun findVersionMatches() {
val buildGradle = """blabla
| android {
| aosenuthoae
| }
... | agpl-3.0 | Kotlin | |
b13e9ee28b690d5d40f9cba6aad5729cd57996ad | Handle partially correct status in submissions list | StepicOrg/stepik-android,StepicOrg/stepic-android,StepicOrg/stepik-android,StepicOrg/stepik-android,StepicOrg/stepic-android,StepicOrg/stepic-android | app/src/main/java/org/stepik/android/view/submission/ui/delegate/SubmissionViewDelegate.kt | app/src/main/java/org/stepik/android/view/submission/ui/delegate/SubmissionViewDelegate.kt | package org.stepik.android.view.submission.ui.delegate
import android.widget.TextView
import androidx.annotation.DrawableRes
import androidx.appcompat.content.res.AppCompatResources
import androidx.core.graphics.drawable.DrawableCompat
import androidx.core.view.isVisible
import androidx.core.widget.TextViewCompat
impo... | package org.stepik.android.view.submission.ui.delegate
import android.widget.TextView
import androidx.annotation.DrawableRes
import androidx.appcompat.content.res.AppCompatResources
import androidx.core.graphics.drawable.DrawableCompat
import androidx.core.view.isVisible
import androidx.core.widget.TextViewCompat
impo... | apache-2.0 | Kotlin |
224765d01d6415785e01cf2b74569c3705095aa2 | Fix logging messages about Task Executors | sandjelkovic/dispatchd,sandjelkovic/dispatchd | content-service/src/main/kotlin/com/sandjelkovic/dispatchd/contentservice/ContentConfig.kt | content-service/src/main/kotlin/com/sandjelkovic/dispatchd/contentservice/ContentConfig.kt | package com.sandjelkovic.dispatchd.contentservice
import com.sandjelkovic.dispatchd.contentservice.data.repository.ImportStatusRepository
import com.sandjelkovic.dispatchd.contentservice.data.repository.UpdateJobRepository
import com.sandjelkovic.dispatchd.contentservice.service.ImporterSelectionStrategy
import com.sa... | package com.sandjelkovic.dispatchd.contentservice
import com.sandjelkovic.dispatchd.contentservice.data.repository.ImportStatusRepository
import com.sandjelkovic.dispatchd.contentservice.data.repository.UpdateJobRepository
import com.sandjelkovic.dispatchd.contentservice.service.ImporterSelectionStrategy
import com.sa... | apache-2.0 | Kotlin |
a83bc16934c770b3e47c1f7e3a5b398a26eae240 | Fix TestWithTempFiles | blindpirate/gradle,robinverduijn/gradle,robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,gradle/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/g... | subprojects/kotlin-dsl-test-fixtures/src/main/kotlin/org/gradle/kotlin/dsl/fixtures/TestWithTempFiles.kt | subprojects/kotlin-dsl-test-fixtures/src/main/kotlin/org/gradle/kotlin/dsl/fixtures/TestWithTempFiles.kt | package org.gradle.kotlin.dsl.fixtures
import org.gradle.test.fixtures.file.CleanupTestDirectory
import org.gradle.test.fixtures.file.TestNameTestDirectoryProvider
import org.gradle.kotlin.dsl.support.zipTo
import org.junit.Rule
import java.io.File
@CleanupTestDirectory(fieldName = "tempFolder")
abstract class Te... | package org.gradle.kotlin.dsl.fixtures
import org.gradle.test.fixtures.file.CleanupTestDirectory
import org.gradle.test.fixtures.file.TestFile
import org.gradle.test.fixtures.file.TestNameTestDirectoryProvider
import org.gradle.kotlin.dsl.support.zipTo
import org.junit.Rule
import java.io.File
@CleanupTestDirecto... | apache-2.0 | Kotlin |
484d063fa30731a4cbe75774b9877515a69b313c | Update RealmSpotlight.kt | RocketChat/Rocket.Chat.Android.Lily,RocketChat/Rocket.Chat.Android.Lily,RocketChat/Rocket.Chat.Android,RocketChat/Rocket.Chat.Android | persistence-realm/src/main/java/chat/rocket/persistence/realm/models/ddp/RealmSpotlight.kt | persistence-realm/src/main/java/chat/rocket/persistence/realm/models/ddp/RealmSpotlight.kt | package chat.rocket.persistence.realm.models.ddp
import chat.rocket.core.models.Spotlight
import io.realm.RealmObject
import io.realm.annotations.PrimaryKey
import org.json.JSONObject
// This class must be annotated with open to work properly with Realm (Kotlin classes are final by default).
open class RealmSpotlight... | package chat.rocket.persistence.realm.models.ddp
import chat.rocket.core.models.Spotlight
import io.realm.RealmObject
import io.realm.annotations.PrimaryKey
import org.json.JSONObject
// This class must be annotated with open to work properly with Realm (Kotlin classes are final by default).
open class RealmSpotlight... | mit | Kotlin |
6a25ef0f6761dff3a6949cc4c40c31af7aadb477 | Update example to use Kotlin version 1.1.0 | rodm/gradle-teamcity-plugin,rodm/gradle-teamcity-plugin | samples/kotlin-plugin/build.gradle.kts | samples/kotlin-plugin/build.gradle.kts |
buildscript {
extra["kotlinVersion"] = "1.1.0"
repositories {
mavenLocal()
maven { setUrl("https://repo.gradle.org/gradle/repo") }
maven { setUrl("https://plugins.gradle.org/m2/") }
mavenCentral()
}
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-p... |
buildscript {
extra["kotlinVersion"] = "1.1-M03"
repositories {
mavenLocal()
maven { setUrl("https://repo.gradle.org/gradle/repo") }
maven { setUrl("https://plugins.gradle.org/m2/") }
mavenCentral()
}
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle... | apache-2.0 | Kotlin |
7a15d44b881d3f8691a47d9ae54a9ccf7c54620e | Improve the logic to select the initial server when changing the database. | rhdunn/xquery-intellij-plugin,rhdunn/xquery-intellij-plugin | src/plugin-api/main/uk/co/reecedunn/intellij/plugin/processor/query/execution/ui/QueryServerComboBoxModel.kt | src/plugin-api/main/uk/co/reecedunn/intellij/plugin/processor/query/execution/ui/QueryServerComboBoxModel.kt | /*
* Copyright (C) 2021 Reece H. Dunn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | /*
* Copyright (C) 2021 Reece H. Dunn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | apache-2.0 | Kotlin |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.