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 |
|---|---|---|---|---|---|---|---|---|
02ec31d7b5bccdc9db8d6bcf7d5f55a77e6f5202 | Solve problem 2149 | fredyw/leetcode,fredyw/leetcode,fredyw/leetcode,fredyw/leetcode | src/main/kotlin/leetcode/Problem2149.kt | src/main/kotlin/leetcode/Problem2149.kt | package leetcode
/**
* https://leetcode.com/problems/rearrange-array-elements-by-sign/
*/
class Problem2149 {
fun rearrangeArray(nums: IntArray): IntArray {
val answer = IntArray(nums.size)
val positives = IntArray(nums.size / 2)
val negatives = IntArray(nums.size / 2)
var pi = 0
... | package leetcode
/**
* https://leetcode.com/problems/rearrange-array-elements-by-sign/
*/
class Problem2149 {
fun rearrangeArray(nums: IntArray): IntArray {
TODO()
}
}
fun main() {
val prob = Problem2149()
println(prob.rearrangeArray(intArrayOf(3,1,-2,-5,2,-4)).contentToString()) // [3,-2,1,... | mit | Kotlin |
f64877c47d5e6e2b74f814156302e71766fe3dd2 | Move Notification Settings into a dedicated wrapper class | allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/int... | platform/platform-impl/src/com/intellij/notification/impl/ui/NotificationSettingsWrapper.kt | platform/platform-impl/src/com/intellij/notification/impl/ui/NotificationSettingsWrapper.kt | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.notification.impl.ui
import com.intellij.notification.NotificationDisplayType
import com.intellij.notification.NotificationGroup.Companion.getGroupTitle
impo... | apache-2.0 | Kotlin | |
afbe0c2df4f217258cee1fef344b3ed739c2908c | replace LifecycleActivity to AppCompatActivity | satoshun/RxLifecycleOwner | sample/src/main/java/com/github/satoshun/io/reactivex/lifecycleowner/sample/MainActivity.kt | sample/src/main/java/com/github/satoshun/io/reactivex/lifecycleowner/sample/MainActivity.kt | package com.github.satoshun.io.reactivex.lifecycleowner.sample
import android.arch.lifecycle.ViewModelProviders
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.util.Log
import com.github.satoshun.io.reactivex.lifecycleowner.CompositeDisposableViewModel
import com.github.satoshun... | package com.github.satoshun.io.reactivex.lifecycleowner.sample
import android.arch.lifecycle.LifecycleActivity
import android.arch.lifecycle.ViewModelProviders
import android.os.Bundle
import android.util.Log
import com.github.satoshun.io.reactivex.lifecycleowner.CompositeDisposableViewModel
import com.github.satoshun... | apache-2.0 | Kotlin |
08ecea3ae017686c1b9d79a5d9f0c9767f95c9e6 | convert LocaleCompatTest to Kotlin | GlobalTechnology/android-gto-support,CruGlobal/android-gto-support,CruGlobal/android-gto-support | gto-support-compat/src/test/java/org/ccci/gto/android/common/compat/util/LocaleCompatTest.kt | gto-support-compat/src/test/java/org/ccci/gto/android/common/compat/util/LocaleCompatTest.kt | package org.ccci.gto.android.common.compat.util
import androidx.test.ext.junit.runners.AndroidJUnit4
import org.junit.Assert.assertEquals
import org.junit.Test
import org.junit.runner.RunWith
import org.robolectric.annotation.Config
import java.util.Locale
private val LANGUAGETAGS = mapOf<Locale, String>(
Locale.... | package org.ccci.gto.android.common.compat.util
import org.junit.Assert.assertEquals
import org.junit.Test
import org.junit.runner.RunWith
import org.junit.runners.Parameterized
import java.util.Locale
@RunWith(Parameterized::class)
internal class LocaleCompatTest(private val compat: LocaleCompatMethods) {
@Test... | mit | Kotlin |
bb092cad58f15ab76165ba81768851652185fe26 | add PeekStream shorthand | norswap/violin,norswap/violin | src/norswap/violin/stream/PeekStream.kt | src/norswap/violin/stream/PeekStream.kt | package norswap.violin.stream
import norswap.violin.utils.after
/**
* A peek stream is a stream where one can peek at the next value without advancing the stream.
*/
interface PeekStream <out T: Any>: Stream<T>
{
companion object {
/**
* Creates a [PeekStream] from a [Stream.next] implementation... | package norswap.violin.stream
import norswap.violin.utils.after
/**
* A peek stream is a stream where one can peek at the next value without advancing the stream.
*/
interface PeekStream <out T: Any>: Stream<T>
{
companion object {
/**
* Creates a [PeekStream] from a [Stream.next] implementation... | bsd-3-clause | Kotlin |
167c888324d02b1842a3fdb3d53a63b9e8cb1d48 | Test retrieving a generic instance explicitly | MichaelRocks/lightsaber,MichaelRocks/lightsaber | samples/injection-test/src/test/kotlin/io/michaelrocks/lightsaber/GenericInjectionTest.kt | samples/injection-test/src/test/kotlin/io/michaelrocks/lightsaber/GenericInjectionTest.kt | /*
* Copyright 2016 Michael Rozumyanskiy
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | /*
* Copyright 2016 Michael Rozumyanskiy
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | apache-2.0 | Kotlin |
881ecb24a27c973160bc6355827ac4b702215702 | Update intellij gradle plugin to fix JBR download | JetBrains/resharper-unity,JetBrains/resharper-unity,JetBrains/resharper-unity | rider/buildSrc/build.gradle.kts | rider/buildSrc/build.gradle.kts | // Note: The `buildscript` block affects the dependencies ONLY for the build scripts of the buildSrc projects
// (i.e. buildSrc/build.gradle.kts et al)
// Use top level `repositories` and `dependencies` for the buildSrc project itself. Also note that the dependencies of
// the buildSrc project become dependencies for t... | // Note: The `buildscript` block affects the dependencies ONLY for the build scripts of the buildSrc projects
// (i.e. buildSrc/build.gradle.kts et al)
// Use top level `repositories` and `dependencies` for the buildSrc project itself. Also note that the dependencies of
// the buildSrc project become dependencies for t... | apache-2.0 | Kotlin |
2152ae4238b497fb395c4717e5a018b217e16511 | Refactor service more Kotlin style like | TerrenceMiao/IPAQ | src/main/kotlin/org/paradise/ipaq/services/ExperianService.kt | src/main/kotlin/org/paradise/ipaq/services/ExperianService.kt | package org.paradise.ipaq.services
import org.paradise.ipaq.domain.ExperianAddress
import org.paradise.ipaq.domain.ExperianSearchResult
import org.paradise.ipaq.services.rest.RestServiceClient
import org.slf4j.LoggerFactory
import org.springframework.beans.factory.annotation.Value
import org.springframework.http.*
imp... | package org.paradise.ipaq.services
import org.paradise.ipaq.domain.ExperianAddress
import org.paradise.ipaq.domain.ExperianSearchResult
import org.paradise.ipaq.services.rest.RestServiceClient
import org.slf4j.LoggerFactory
import org.springframework.beans.factory.annotation.Value
import org.springframework.http.*
imp... | apache-2.0 | Kotlin |
2141675d69b9bafe8d0e380af2d8a877cbe7ef31 | Create ExtractCompanionClassNameTest.kt | thuytrinh/KotlinPlayground,thuytrinh/KotlinPlayground | src/test/kotlin/logging/ExtractCompanionClassNameTest.kt | src/test/kotlin/logging/ExtractCompanionClassNameTest.kt | package logging
import org.junit.Test
class ExtractCompanionClassNameTest {
companion object {
init {
println("canonicalName=${this::class.java.canonicalName}")
println("name=${this::class.java.name}")
println("simpleName=${this::class.java.simpleName}")
println(this::class.java.canonica... | mit | Kotlin | |
086395925d281b09ccb6a5170211b9da0abb9646 | rename trigger | http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k | src/docs/guide/modules/chaos/example_chaos.kt | src/docs/guide/modules/chaos/example_chaos.kt | package guide.modules.chaos
import org.http4k.chaos.ChaosBehaviour
import org.http4k.chaos.ChaosPolicy
import org.http4k.chaos.ChaosStage.Companion.Wait
import org.http4k.client.OkHttp
import org.http4k.core.Filter
import org.http4k.core.HttpHandler
import org.http4k.core.HttpTransaction
import org.http4k.core.Method
... | package guide.modules.chaos
import org.http4k.chaos.ChaosBehaviour
import org.http4k.chaos.ChaosPolicy
import org.http4k.chaos.ChaosStage.Companion.Wait
import org.http4k.client.OkHttp
import org.http4k.core.Filter
import org.http4k.core.HttpHandler
import org.http4k.core.HttpTransaction
import org.http4k.core.Method
... | apache-2.0 | Kotlin |
c12bf1b6460846112e5b7d6fb66587be74f1b502 | Fix md5. | evanchooly/kobalt,ethauvin/kobalt,cbeust/kobalt,ethauvin/kobalt,ethauvin/kobalt,evanchooly/kobalt,cbeust/kobalt,evanchooly/kobalt,ethauvin/kobalt,evanchooly/kobalt,cbeust/kobalt | src/main/kotlin/com/beust/kobalt/maven/Md5.kt | src/main/kotlin/com/beust/kobalt/maven/Md5.kt | package com.beust.kobalt.maven
import java.io.File
import java.security.MessageDigest
import javax.xml.bind.DatatypeConverter
public class Md5 {
companion object {
fun toMd5(file: File) = MessageDigest.getInstance("MD5").let { md5 ->
file.forEachBlock { bytes, size ->
m... | package com.beust.kobalt.maven
import org.jetbrains.kotlin.rmi.toHexString
import java.io.File
import java.security.MessageDigest
public class Md5 {
companion object {
fun toMd5(file: File) = MessageDigest.getInstance("MD5").let { md5 ->
file.forEachBlock { bytes, size ->
... | apache-2.0 | Kotlin |
ff3c41ec3618680dd34f1e56793ce49ee893d2c2 | Allow `dwFlags` arg for `mouseMove` | Austin72/Charlatano,Austin72/Charlatano,Jire/Charlatano | src/main/kotlin/com/charlatano/utils/Mouse.kt | src/main/kotlin/com/charlatano/utils/Mouse.kt | /*
* Charlatano: Free and open-source (FOSS) cheat for CS:GO/CS:CO
* Copyright (C) 2017 - Thomas G. P. Nappo, Jonathan Beaudoin
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Soft... | /*
* Charlatano: Free and open-source (FOSS) cheat for CS:GO/CS:CO
* Copyright (C) 2017 - Thomas G. P. Nappo, Jonathan Beaudoin
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Soft... | agpl-3.0 | Kotlin |
b54525849e1b48bd996e19e1d297dda99a7d1cf3 | Hide cast button in F-Droid builds | arkon/LISTEN.moe-Unofficial-Android-App,LISTEN-moe/android-app | app/src/fdroid/java/me/echeung/moemoekyun/cast/CastDelegate.kt | app/src/fdroid/java/me/echeung/moemoekyun/cast/CastDelegate.kt | package me.echeung.moemoekyun.cast
import android.content.Context
import android.view.Menu
import me.echeung.moemoekyun.R
import me.echeung.moemoekyun.client.api.socket.Socket
import me.echeung.moemoekyun.client.stream.Stream
import me.echeung.moemoekyun.viewmodel.RadioViewModel
/**
* No-op versions of functions use... | package me.echeung.moemoekyun.cast
import android.content.Context
import android.view.Menu
/**
* No-op versions of functions used in Play Store version for Google Cast support
*/
class CastDelegate(
context: Context,
radioViewModel: RadioViewModel,
stream: Stream,
socket: Socket
) {
fun onDestr... | mit | Kotlin |
b6a6e350f3b8f36a6ac46439cfbbc6583866a7cf | include priority and tag in Crashlytics log message | GlobalTechnology/android-gto-support,CruGlobal/android-gto-support,CruGlobal/android-gto-support | gto-support-firebase-crashlytics/src/main/java/org/ccci/gto/android/common/firebase/crashlytics/timber/CrashlyticsTree.kt | gto-support-firebase-crashlytics/src/main/java/org/ccci/gto/android/common/firebase/crashlytics/timber/CrashlyticsTree.kt | package org.ccci.gto.android.common.firebase.crashlytics.timber
import android.util.Log
import com.google.firebase.crashlytics.FirebaseCrashlytics
import timber.log.Timber
class CrashlyticsTree @JvmOverloads constructor(
private val logLevel: Int,
private val exceptionLogLevel: Int = logLevel
) : Timber.Tree... | package org.ccci.gto.android.common.firebase.crashlytics.timber
import android.util.Log
import com.google.firebase.crashlytics.FirebaseCrashlytics
import timber.log.Timber
class CrashlyticsTree @JvmOverloads constructor(
private val logLevel: Int,
private val exceptionLogLevel: Int = logLevel
) : Timber.Tree... | mit | Kotlin |
f57ac4412fc2455071c87b7e5cdc1740f4f603bd | handle empty email query | StepicOrg/stepic-android,StepicOrg/stepik-android,StepicOrg/stepik-android,StepicOrg/stepic-android,StepicOrg/stepik-android,StepicOrg/stepic-android | app/src/main/java/org/stepik/android/remote/email_address/EmailAddressRemoteDataSourceImpl.kt | app/src/main/java/org/stepik/android/remote/email_address/EmailAddressRemoteDataSourceImpl.kt | package org.stepik.android.remote.email_address
import io.reactivex.Completable
import io.reactivex.Single
import org.stepik.android.data.email_address.source.EmailAddressRemoteDataSource
import org.stepik.android.model.user.EmailAddress
import org.stepik.android.remote.email_address.model.EmailAddressRequest
import o... | package org.stepik.android.remote.email_address
import io.reactivex.Completable
import io.reactivex.Single
import org.stepik.android.data.email_address.source.EmailAddressRemoteDataSource
import org.stepik.android.model.user.EmailAddress
import org.stepik.android.remote.email_address.model.EmailAddressRequest
import o... | apache-2.0 | Kotlin |
35c9638c86f6dd9e5ac4de00525244aa311cd73f | Fix detection of IntelliJ | gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpira... | buildSrc/subprojects/configuration/src/main/kotlin/org/gradle/gradlebuild/BuildEnvironment.kt | buildSrc/subprojects/configuration/src/main/kotlin/org/gradle/gradlebuild/BuildEnvironment.kt | package org.gradle.gradlebuild
import org.gradle.api.JavaVersion
import org.gradle.internal.os.OperatingSystem
object BuildEnvironment {
const val CI_ENVIRONMENT_VARIABLE = "CI"
const val BUILD_BRANCH = "BUILD_BRANCH"
const val BUILD_COMMIT_ID = "BUILD_COMMIT_ID"
val isCiServer = CI_ENVIRONMENT_VAR... | package org.gradle.gradlebuild
import org.gradle.api.JavaVersion
import org.gradle.internal.os.OperatingSystem
object BuildEnvironment {
const val CI_ENVIRONMENT_VARIABLE = "CI"
const val BUILD_BRANCH = "BUILD_BRANCH"
const val BUILD_COMMIT_ID = "BUILD_COMMIT_ID"
val isCiServer = CI_ENVIRONMENT_VAR... | apache-2.0 | Kotlin |
418a263eed442a7735984bd01f783c73f8d9aa66 | Trim URL when saving | Waboodoo/HTTP-Shortcuts,Waboodoo/HTTP-Shortcuts,Waboodoo/HTTP-Shortcuts | HTTPShortcuts/app/src/main/kotlin/ch/rmy/android/http_shortcuts/activities/editor/basicsettings/BasicRequestSettingsViewModel.kt | HTTPShortcuts/app/src/main/kotlin/ch/rmy/android/http_shortcuts/activities/editor/basicsettings/BasicRequestSettingsViewModel.kt | package ch.rmy.android.http_shortcuts.activities.editor.basicsettings
import android.app.Application
import ch.rmy.android.http_shortcuts.activities.editor.BasicShortcutEditorViewModel
import ch.rmy.android.http_shortcuts.data.Transactions
import io.reactivex.Completable
class BasicRequestSettingsViewModel(applicatio... | package ch.rmy.android.http_shortcuts.activities.editor.basicsettings
import android.app.Application
import ch.rmy.android.http_shortcuts.activities.editor.BasicShortcutEditorViewModel
import ch.rmy.android.http_shortcuts.data.Transactions
import io.reactivex.Completable
class BasicRequestSettingsViewModel(applicatio... | mit | Kotlin |
23b00e9f8fa97969f4060b735358cf2682a00aaf | create an extension method that will set ViewPager2's height to wrap_content | GlobalTechnology/android-gto-support,CruGlobal/android-gto-support,CruGlobal/android-gto-support | gto-support-androidx-viewpager2/src/main/java/org/ccci/gto/android/common/androidx/viewpager2/widget/ViewPager2Utils.kt | gto-support-androidx-viewpager2/src/main/java/org/ccci/gto/android/common/androidx/viewpager2/widget/ViewPager2Utils.kt | package org.ccci.gto.android.common.androidx.viewpager2.widget
import android.view.ViewGroup
import androidx.viewpager2.widget.ViewPager2
import androidx.viewpager2.widget.recyclerView
fun ViewPager2.setHeightWrapContent() {
with(recyclerView) {
// update nested RecyclerView to have a wrap_content height
... | mit | Kotlin | |
00582995d461d6c92e54155fb49c6524b11877a6 | Allow testing both versions in ApiGatewayHttpClientTest | 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/ApiGatewayHttpClientTest.kt | http4k-serverless-lambda/integration-test/src/test/kotlin/org/http4k/serverless/lambda/client/ApiGatewayHttpClientTest.kt | package org.http4k.serverless.lambda.client
import org.http4k.aws.ApiIntegrationVersion
import org.http4k.aws.ApiIntegrationVersion.v1
import org.http4k.aws.ApiIntegrationVersion.v2
import org.http4k.client.HttpClientContract
import org.http4k.client.OkHttp
import org.http4k.core.Request
import org.http4k.core.Respons... | package org.http4k.serverless.lambda.client
import org.http4k.aws.ApiIntegrationVersion
import org.http4k.aws.ApiIntegrationVersion.v1
import org.http4k.client.HttpClientContract
import org.http4k.client.OkHttp
import org.http4k.core.Request
import org.http4k.core.then
import org.http4k.filter.ClientFilters
import org... | apache-2.0 | Kotlin |
2cdce500cac10e417b08a18987c9b53f8564cf96 | Create a Task for interacting with the certificate manager (#180) | world-federation-of-advertisers/panel-exchange-client,world-federation-of-advertisers/panel-exchange-client,world-federation-of-advertisers/panel-exchange-client | src/main/kotlin/org/wfanet/panelmatch/client/exchangetasks/GenerateExchangeCertificateTask.kt | src/main/kotlin/org/wfanet/panelmatch/client/exchangetasks/GenerateExchangeCertificateTask.kt | // Copyright 2021 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 | |
061d3fe332547fd152a17908d1adf573698f6cb5 | Update description of questionnaires | google/android-fhir,google/android-fhir | datacapturegallery/src/main/java/com/google/android/fhir/datacapture/gallery/MainActivity.kt | datacapturegallery/src/main/java/com/google/android/fhir/datacapture/gallery/MainActivity.kt | /*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | /*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | apache-2.0 | Kotlin |
26fa95408d2581374fc143307519ca87d4a0f11a | Fix broken text | sandjelkovic/dispatchd,sandjelkovic/dispatchd | content-service/src/test/kotlin/com/sandjelkovic/dispatchd/contentservice/trakt/provider/impl/DefaultTraktMediaProviderTest.kt | content-service/src/test/kotlin/com/sandjelkovic/dispatchd/contentservice/trakt/provider/impl/DefaultTraktMediaProviderTest.kt | package com.sandjelkovic.dispatchd.contentservice.trakt.provider.impl
import com.sandjelkovic.dispatchd.contentservice.trakt.dto.ShowTrakt
import org.assertj.core.api.Assertions.assertThat
import org.junit.Test
import org.junit.runner.RunWith
import org.mockito.Mockito.*
import org.springframework.test.context.junit4.... | package com.sandjelkovic.dispatchd.contentservice.trakt.provider.impl
import com.sandjelkovic.dispatchd.contentservice.trakt.dto.ShowTrakt
import org.assertj.core.api.Assertions.assertThat
import org.junit.Test
import org.junit.runner.RunWith
import org.mockito.Mockito.*
import org.springframework.test.context.junit4.... | apache-2.0 | Kotlin |
bdbae5268dd1f6bc7e5202c009274014ec645d0c | Update Kotlin version | Atsky/haskell-idea-plugin,anlun/haskell-idea-plugin,Atsky/haskell-idea-plugin,anlun/haskell-idea-plugin | plugin/src/org/jetbrains/haskell/fileType/HaskellFileType.kt | plugin/src/org/jetbrains/haskell/fileType/HaskellFileType.kt | package org.jetbrains.haskell.fileType
import com.intellij.openapi.fileTypes.LanguageFileType
import com.intellij.openapi.vfs.VirtualFile
import org.jetbrains.annotations.NonNls
import org.jetbrains.haskell.HaskellLanguage
import org.jetbrains.haskell.icons.HaskellIcons
import javax.swing.*
public class HaskellFileTy... | package org.jetbrains.haskell.fileType
import com.intellij.openapi.fileTypes.LanguageFileType
import com.intellij.openapi.vfs.VirtualFile
import org.jetbrains.annotations.NonNls
import org.jetbrains.haskell.HaskellLanguage
import org.jetbrains.haskell.icons.HaskellIcons
import javax.swing.*
public class HaskellFileTy... | apache-2.0 | Kotlin |
5885c08a568b97eb3d68c3811f59ba7a7adf3cfd | Remove XdmTextNode from XQueryCDataSection. | rhdunn/xquery-intellij-plugin,rhdunn/xquery-intellij-plugin | src/lang-xquery/main/uk/co/reecedunn/intellij/plugin/xquery/ast/xquery/XQueryCDataSection.kt | src/lang-xquery/main/uk/co/reecedunn/intellij/plugin/xquery/ast/xquery/XQueryCDataSection.kt | /*
* Copyright (C) 2016 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) 2016, 2020-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 ... | apache-2.0 | Kotlin |
f69ce2cd1e833c0b01eee49b0c787861ed9c753b | Use `ExistingPeriodicWorkPolicy.KEEP`. | android/nowinandroid,android/nowinandroid | sync/src/main/java/com/google/samples/apps/nowinandroid/sync/initializers/SyncInitializer.kt | sync/src/main/java/com/google/samples/apps/nowinandroid/sync/initializers/SyncInitializer.kt | /*
* Copyright 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | /*
* Copyright 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | apache-2.0 | Kotlin |
1c5b55ac5720738c2c5bfec0b2e97ed14a53ae69 | Upgrade Kotlin DSL to 1.1.2 | blindpirate/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,blindpirate/gradle,robinver... | buildSrc/subprojects/configuration/src/main/kotlin/org/gradle/gradlebuild/BuildEnvironment.kt | buildSrc/subprojects/configuration/src/main/kotlin/org/gradle/gradlebuild/BuildEnvironment.kt | package org.gradle.gradlebuild
import org.gradle.api.JavaVersion
import org.gradle.internal.os.OperatingSystem
object BuildEnvironment {
val isCiServer = "CI" in System.getenv()
val isTravis = "TRAVIS" in System.getenv()
val isJenkins = "JENKINS_HOME" in System.getenv()
val gradleKotlinDslVersion = "... | package org.gradle.gradlebuild
import org.gradle.api.JavaVersion
import org.gradle.internal.os.OperatingSystem
object BuildEnvironment {
val isCiServer = "CI" in System.getenv()
val isTravis = "TRAVIS" in System.getenv()
val isJenkins = "JENKINS_HOME" in System.getenv()
val gradleKotlinDslVersion = "... | apache-2.0 | Kotlin |
c6df4e5dc4b77bd065a22a20b0a5b7d99cd5d591 | Remove redundant map access | gradle/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,lsmaira/gradle,gradle/gradle,lsmaira/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/g... | buildSrc/subprojects/packaging/src/main/kotlin/org/gradle/gradlebuild/packaging/ClassGraph.kt | buildSrc/subprojects/packaging/src/main/kotlin/org/gradle/gradlebuild/packaging/ClassGraph.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 |
d9a705c13350536845ff025de259d42a3bb948be | Rename AutoSizedCircularProgressIndicator internal vals | chrisbanes/tivi,chrisbanes/tivi | common-ui-compose/src/main/java/app/tivi/common/compose/AutoSizedCircularProgressIndicator.kt | common-ui-compose/src/main/java/app/tivi/common/compose/AutoSizedCircularProgressIndicator.kt | /*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | /*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | apache-2.0 | Kotlin |
4b5daaa01465fc87af1aacb237f99e8fcd7c4b66 | refactor #853 Modify incorrect casting. | toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt | app/src/main/java/jp/toastkid/yobidashi/browser/permission/DownloadPermissionRequestContract.kt | app/src/main/java/jp/toastkid/yobidashi/browser/permission/DownloadPermissionRequestContract.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 |
d0f6e8c2e8fc67db251b8145fe1669928461da2c | Simplify the `StringConverterFactory.kt`. | imknown/ImkGithub | ZMain/ImkGithubApp/src/main/java/net/imknown/imkgithub/web/converter/StringConverterFactory.kt | ZMain/ImkGithubApp/src/main/java/net/imknown/imkgithub/web/converter/StringConverterFactory.kt | /*
* Copyright (C) 2015 Square, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | /*
* Copyright (C) 2015 Square, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | apache-2.0 | Kotlin |
bbf0445187e903d8b58f43dbe101cdfd10f041e9 | Upgrade Kotlin DSL to 1.0-rc-10 | lsmaira/gradle,gradle/gradle,lsmaira/gradle,lsmaira/gradle,blindpirate/gradle,lsmaira/gradle,gradle/gradle,blindpirate/gradle,robinverduijn/gradle,blindpirate/gradle,lsmaira/gradle,gradle/gradle,blindpirate/gradle,lsmaira/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,robinverduijn/gradle,lsmaira/gra... | buildSrc/subprojects/configuration/src/main/kotlin/org/gradle/gradlebuild/build-environment.kt | buildSrc/subprojects/configuration/src/main/kotlin/org/gradle/gradlebuild/build-environment.kt | package org.gradle.gradlebuild
import org.gradle.api.JavaVersion
import org.gradle.internal.os.OperatingSystem
object BuildEnvironment {
val isCiServer = "CI" in System.getenv()
val gradleKotlinDslVersion = "1.0-rc-10"
val jvm = org.gradle.internal.jvm.Jvm.current()
val javaVersion = JavaVersion.curr... | package org.gradle.gradlebuild
import org.gradle.api.JavaVersion
import org.gradle.internal.os.OperatingSystem
object BuildEnvironment {
val isCiServer = "CI" in System.getenv()
val gradleKotlinDslVersion = "1.0-rc-9"
val jvm = org.gradle.internal.jvm.Jvm.current()
val javaVersion = JavaVersion.curre... | apache-2.0 | Kotlin |
aaf795b6bcc097156ea56af0ff8176ac45d5c726 | Fix incorrect setting | chibatching/Kotpref | buildSrc/src/main/java/plugin/BuildSettingHelperPlugin.kt | buildSrc/src/main/java/plugin/BuildSettingHelperPlugin.kt | package plugin
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.kotlin.dsl.getByName
import org.gradle.testing.jacoco.plugins.JacocoPluginExtension
import org.gradle.testing.jacoco.tasks.JacocoReport
class BuildSettingHelperPlugin : Plugin<Project> {
override fun apply(project: Projec... | package plugin
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.kotlin.dsl.closureOf
import org.gradle.testing.jacoco.plugins.JacocoPluginExtension
import org.gradle.testing.jacoco.tasks.JacocoReport
class BuildSettingHelperPlugin : Plugin<Project> {
override fun apply(project: Projec... | apache-2.0 | Kotlin |
12c26ca1e2b4c1d73704e7d8da0f0d3f4ca7818f | prepare for the next version | 7449/Album | AlbumLibrary/src/main/java/com/album/AlbumConst.kt | AlbumLibrary/src/main/java/com/album/AlbumConst.kt | package com.album
object AlbumConst {
//[AlbumBundle]主要数据的Key
const val EXTRA_ALBUM_OPTIONS = BuildConfig.APPLICATION_ID + ".Album.Options"
//UI数据Key
const val EXTRA_ALBUM_UI_OPTIONS = BuildConfig.APPLICATION_ID + ".Album.Ui.Options"
//拍照成功之后刷新的Type
const val TYPE_RESULT_CAMERA = 0
//裁剪成功之后... | package com.album
object AlbumConst {
//[AlbumBundle]主要数据的Key
const val EXTRA_ALBUM_OPTIONS = BuildConfig.APPLICATION_ID + ".Album.Options"
//UI数据Key
const val EXTRA_ALBUM_UI_OPTIONS = BuildConfig.APPLICATION_ID + ".Album.Ui.Options"
//拍照成功之后刷新的Type
const val TYPE_RESULT_CAMERA = 0
//裁剪成功之后... | mpl-2.0 | Kotlin |
5d4f864f567601a35e3f77b5da40e1bd5ec1ea30 | Add an error drawable to coil-sample. (#802) | coil-kt/coil,coil-kt/coil | coil-sample/src/main/java/coil/sample/ImageListAdapter.kt | coil-sample/src/main/java/coil/sample/ImageListAdapter.kt | package coil.sample
import android.content.Context
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import androidx.core.view.updateLayoutParams
import androidx.recyclerview.widget.DiffUtil
import android... | package coil.sample
import android.content.Context
import android.graphics.drawable.ColorDrawable
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import androidx.core.view.updateLayoutParams
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdap... | apache-2.0 | Kotlin |
224ea991d0529e3fa7cf0be3de4adf2365eb26c5 | Fix documentation | KotlinNLP/SimpleDNN | src/kotlin/com/kotlinnlp/simplednn/deeplearning/birnn/BiRNN.kt | src/kotlin/com/kotlinnlp/simplednn/deeplearning/birnn/BiRNN.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 |
020ec9ed09185afb766fb4613a8bd045535b11c4 | add GStringImplのキャスト対策を追加。 | t-kgd/buckets,t-kgd/buckets | util/util-groovy/src/main/kotlin/jp/gr/java_conf/kgd/library/buckets/util/groovy/GroovyUtil.kt | util/util-groovy/src/main/kotlin/jp/gr/java_conf/kgd/library/buckets/util/groovy/GroovyUtil.kt | /*
* The MIT License
*
* Copyright (c) 2015 Misakura.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, mo... | mit | Kotlin | |
90daf12717ece4dfac24be68acab14cef4930510 | add needsmorejpeg command | noud02/Akatsuki | src/main/kotlin/me/noud02/akatsuki/commands/NeedsMoreJpeg.kt | src/main/kotlin/me/noud02/akatsuki/commands/NeedsMoreJpeg.kt | /*
* Copyright (c) 2017 Noud Kerver
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy, modify,... | mit | Kotlin | |
e83696b4aa30bbb002a01d72508d7e4a64208492 | Call close() on connection before clearing the ThreadLocal | cashapp/sqldelight,cashapp/sqldelight,cashapp/sqldelight,cashapp/sqldelight | drivers/sqlite-driver/src/main/kotlin/com/squareup/sqldelight/sqlite/driver/JdbcSqliteDriver.kt | drivers/sqlite-driver/src/main/kotlin/com/squareup/sqldelight/sqlite/driver/JdbcSqliteDriver.kt | package com.squareup.sqldelight.sqlite.driver
import com.squareup.sqldelight.sqlite.driver.ConnectionManager.Transaction
import com.squareup.sqldelight.sqlite.driver.JdbcSqliteDriver.Companion.IN_MEMORY
import java.sql.Connection
import java.sql.DriverManager
import java.util.Properties
import kotlin.concurrent.getOrS... | package com.squareup.sqldelight.sqlite.driver
import com.squareup.sqldelight.sqlite.driver.ConnectionManager.Transaction
import com.squareup.sqldelight.sqlite.driver.JdbcSqliteDriver.Companion.IN_MEMORY
import java.sql.Connection
import java.sql.DriverManager
import java.util.Properties
import kotlin.concurrent.getOrS... | apache-2.0 | Kotlin |
8c5709ca985aee20d23db8acb8206673aacd145a | Fix incorrect i18n for combo box close button position (IDEA-250690) | allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/int... | platform/platform-impl/src/com/intellij/application/options/editor/EditorCloseButtonPosition.kt | platform/platform-impl/src/com/intellij/application/options/editor/EditorCloseButtonPosition.kt | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.application.options.editor
import com.intellij.ide.ui.UISettings
import com.intellij.ide.ui.search.BooleanOptionDescription
import com.intellij.openapi.appli... | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.application.options.editor
import com.intellij.ide.ui.UISettings
import com.intellij.ide.ui.search.BooleanOptionDescription
import com.intellij.openapi.appli... | apache-2.0 | Kotlin |
46dc91c847f23361f3249cfc3067a5de1f421344 | Refactor LicensePreferencePresenter | Doctoror/ParticleConstellationsLiveWallpaper,Doctoror/ParticleConstellationsLiveWallpaper | app/src/main/java/com/doctoror/particleswallpaper/userprefs/license/LicensePreferencePresenter.kt | app/src/main/java/com/doctoror/particleswallpaper/userprefs/license/LicensePreferencePresenter.kt | /*
* Copyright (C) 2017 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) 2017 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 |
bbebb73c528b228e6c079a362bf4a16b316d6f07 | fix close LoginActivity after logging | egf2-guide/guide-android | app/src/main/kotlin/com/eigengraph/egf2/guide/ui/LoginActivity.kt | app/src/main/kotlin/com/eigengraph/egf2/guide/ui/LoginActivity.kt | package com.eigengraph.egf2.guide.ui
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.widget.FrameLayout
import com.eigengraph.egf2.framework.EGF2
import com.eigengraph.egf2.guide.showFragment
import com.eigengraph.egf2.guide.ui.anko.LoginActivityLayout
import com.eigengraph.egf2... | package com.eigengraph.egf2.guide.ui
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.widget.FrameLayout
import com.eigengraph.egf2.framework.EGF2
import com.eigengraph.egf2.guide.showFragment
import com.eigengraph.egf2.guide.ui.anko.LoginActivityLayout
import com.eigengraph.egf2... | mit | Kotlin |
7a851504645b37874a3975dd2f3cc8725842a876 | fix JRE disabled test range, add link to issue | mockk/mockk,mockk/mockk,mockk/mockk,mockk/mockk,mockk/mockk,mockk/mockk | mockk/jvm/src/test/kotlin/io/mockk/jvm/HashMapMockTest.kt | mockk/jvm/src/test/kotlin/io/mockk/jvm/HashMapMockTest.kt | package io.mockk.jvm
import io.mockk.every
import io.mockk.mockk
import io.mockk.spyk
import io.mockk.verify
import java.util.concurrent.ConcurrentHashMap
import kotlin.test.assertEquals
import org.junit.jupiter.api.Disabled
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.assertDoesNotThrow
import org.j... | package io.mockk.jvm
import io.mockk.every
import io.mockk.mockk
import io.mockk.spyk
import io.mockk.verify
import java.util.concurrent.ConcurrentHashMap
import kotlin.test.assertEquals
import org.junit.jupiter.api.Disabled
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.assertDoesNotThrow
import org.j... | apache-2.0 | Kotlin |
a01040f9a1d71530437dab2be78347ec44c49353 | Improve variable names in AssociateRequisitionAndReportTransaction | world-federation-of-advertisers/cross-media-measurement,world-federation-of-advertisers/cross-media-measurement,world-federation-of-advertisers/cross-media-measurement | src/main/kotlin/org/wfanet/measurement/db/kingdom/gcp/AssociateRequisitionAndReportTransaction.kt | src/main/kotlin/org/wfanet/measurement/db/kingdom/gcp/AssociateRequisitionAndReportTransaction.kt | // Copyright 2020 The Measurement System Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable ... | // Copyright 2020 The Measurement System Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable ... | apache-2.0 | Kotlin |
5f9bb783d00a083117b0ffad5f8c117b76ddc4af | Set 'hiddenMeProp' and 'outputMeProp' networks arguments | KotlinNLP/SimpleDNN | src/main/kotlin/com/kotlinnlp/simplednn/deeplearning/multipredictionscorer/MultiPredictionModel.kt | src/main/kotlin/com/kotlinnlp/simplednn/deeplearning/multipredictionscorer/MultiPredictionModel.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 |
7026d377c29cfc0bb066fb176ba29816adcedbb7 | add SharedIndexesBundle class for messages, cleanup the bundle. | allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/int... | platform/lang-impl/src/com/intellij/util/indexing/roots/SyntheticLibraryIndexableFilesProvider.kt | platform/lang-impl/src/com/intellij/util/indexing/roots/SyntheticLibraryIndexableFilesProvider.kt | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.util.indexing.roots
import com.intellij.navigation.ItemPresentation
import com.intellij.openapi.application.runReadAction
import com.intellij.openapi.project... | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.util.indexing.roots
import com.intellij.navigation.ItemPresentation
import com.intellij.openapi.application.runReadAction
import com.intellij.openapi.project... | apache-2.0 | Kotlin |
8087c177b2e4031b1590b6a3576a72e787eeea76 | Bump version | SpineEventEngine/core-java,SpineEventEngine/core-java,SpineEventEngine/core-java | version.gradle.kts | version.gradle.kts | /*
* Copyright 2020, TeamDev. All rights reserved.
*
* Redistribution and use in source and/or binary forms, with or without
* modification, must retain the above copyright notice and the following
* disclaimer.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR... | /*
* Copyright 2020, TeamDev. All rights reserved.
*
* Redistribution and use in source and/or binary forms, with or without
* modification, must retain the above copyright notice and the following
* disclaimer.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR... | apache-2.0 | Kotlin |
66d7f834c7c23159b00d3de4b57e54c276db9e01 | Fix tests | BjoernPetersen/JMusicBot | src/test/kotlin/com/github/bjoernpetersen/musicbot/api/plugin/management/DefaultPluginManagerTest.kt | src/test/kotlin/com/github/bjoernpetersen/musicbot/api/plugin/management/DefaultPluginManagerTest.kt | package com.github.bjoernpetersen.musicbot.api.plugin.management
import com.github.bjoernpetersen.musicbot.api.config.Config
import com.github.bjoernpetersen.musicbot.api.config.ConfigExtension
import com.github.bjoernpetersen.musicbot.spi.plugin.Bases
import com.github.bjoernpetersen.musicbot.spi.plugin.GenericPlugin... | package com.github.bjoernpetersen.musicbot.api.plugin.management
import com.github.bjoernpetersen.musicbot.api.config.Config
import com.github.bjoernpetersen.musicbot.api.config.ConfigExtension
import com.github.bjoernpetersen.musicbot.spi.plugin.Bases
import com.github.bjoernpetersen.musicbot.spi.plugin.GenericPlugin... | mit | Kotlin |
57f6aa95ec023e1a9d41a4363adcbac1cb20ea99 | Add a StreamEx jar to the classpath | da1z/intellij-community,xfournet/intellij-community,xfournet/intellij-community,xfournet/intellij-community,mglukhikh/intellij-community,da1z/intellij-community,allotria/intellij-community,da1z/intellij-community,mglukhikh/intellij-community,mglukhikh/intellij-community,allotria/intellij-community,da1z/intellij-communi... | plugins/stream-debugger/src/test/java/com/intellij/debugger/streams/exec/streamex/StreamExTestCase.kt | plugins/stream-debugger/src/test/java/com/intellij/debugger/streams/exec/streamex/StreamExTestCase.kt | /*
* Copyright 2000-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | /*
* Copyright 2000-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | apache-2.0 | Kotlin |
08bc5d26bf460afb7c80254c0c0c5d6d1f94d496 | Implement XdmCommentNode on XQueryDirCommentConstructor. | rhdunn/xquery-intellij-plugin,rhdunn/xquery-intellij-plugin | src/lang-xquery/main/uk/co/reecedunn/intellij/plugin/xquery/ast/xquery/XQueryDirCommentConstructor.kt | src/lang-xquery/main/uk/co/reecedunn/intellij/plugin/xquery/ast/xquery/XQueryDirCommentConstructor.kt | /*
* Copyright (C) 2016, 2020-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 ... | /*
* Copyright (C) 2016, 2020-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 ... | apache-2.0 | Kotlin |
020d1dec312cde6f672e3c168a6a5edc90fa7cd0 | set bucket to -1 | 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/stats-collector/log-events/src/main/kotlin/com/intellij/stats/completion/events/LogEvent.kt | plugins/stats-collector/log-events/src/main/kotlin/com/intellij/stats/completion/events/LogEvent.kt | /*
* Copyright 2000-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | /*
* Copyright 2000-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | apache-2.0 | Kotlin |
96717e43ff28522466f713caf44fdd306e3ae4d2 | use equality check instead of elvis | Mauin/detekt,Mauin/detekt,rock3r/detekt,rock3r/detekt,Mauin/detekt,arturbosch/detekt,arturbosch/detekt,MyDogTom/detekt,arturbosch/detekt,rock3r/detekt,Mauin/detekt | detekt-rules/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/style/DataClassContainsFunctionsRule.kt | detekt-rules/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/style/DataClassContainsFunctionsRule.kt | package io.gitlab.arturbosch.detekt.rules.style
import io.gitlab.arturbosch.detekt.api.CodeSmell
import io.gitlab.arturbosch.detekt.api.Config
import io.gitlab.arturbosch.detekt.api.DetektVisitor
import io.gitlab.arturbosch.detekt.api.Entity
import io.gitlab.arturbosch.detekt.api.Issue
import io.gitlab.arturbosch.dete... | package io.gitlab.arturbosch.detekt.rules.style
import io.gitlab.arturbosch.detekt.api.CodeSmell
import io.gitlab.arturbosch.detekt.api.Config
import io.gitlab.arturbosch.detekt.api.DetektVisitor
import io.gitlab.arturbosch.detekt.api.Entity
import io.gitlab.arturbosch.detekt.api.Issue
import io.gitlab.arturbosch.dete... | apache-2.0 | Kotlin |
09d4ef4a567c7e54de65fd8841a5540aeecad891 | Remove "serverConfigColumns" list from LorittaDiscordPlugin | LorittaBot/Loritta,LorittaBot/Loritta,LorittaBot/Loritta,LorittaBot/Loritta | loritta-discord/src/main/java/net/perfectdreams/loritta/platform/discord/plugin/LorittaDiscordPlugin.kt | loritta-discord/src/main/java/net/perfectdreams/loritta/platform/discord/plugin/LorittaDiscordPlugin.kt | package net.perfectdreams.loritta.platform.discord.plugin
import com.mrpowergamerbr.loritta.Loritta
import com.mrpowergamerbr.loritta.modules.MessageReceivedModule
import com.mrpowergamerbr.loritta.utils.lorittaShards
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.GlobalScope
import kotlinx.corouti... | package net.perfectdreams.loritta.platform.discord.plugin
import com.mrpowergamerbr.loritta.Loritta
import com.mrpowergamerbr.loritta.modules.MessageReceivedModule
import com.mrpowergamerbr.loritta.utils.lorittaShards
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.GlobalScope
import kotlinx.corouti... | agpl-3.0 | Kotlin |
0141207cd176e0239c9a5d10328960a0159d1a3b | add tri-gram features into expected list | 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/filePrediction/src/com/intellij/filePrediction/features/history/FilePredictionHistoryFeatures.kt | plugins/filePrediction/src/com/intellij/filePrediction/features/history/FilePredictionHistoryFeatures.kt | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.filePrediction.features.history
import com.intellij.filePrediction.features.FilePredictionFeature
import com.intellij.filePrediction.features.FilePredictionF... | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.filePrediction.features.history
import com.intellij.filePrediction.features.FilePredictionFeature
import com.intellij.filePrediction.features.FilePredictionF... | apache-2.0 | Kotlin |
c2b57c09f61b1480b013971be404eac5bd2c0978 | Move threading-related Check functions | bubenheimer/androidrxutil,bubenheimer/androidrxutil | src/main/java/org/bubenheimer/android/livedata/LiveDataUtils.kt | src/main/java/org/bubenheimer/android/livedata/LiveDataUtils.kt | /*
* Copyright (c) 2015-2019 Uli Bubenheimer
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | /*
* Copyright (c) 2015-2019 Uli Bubenheimer
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | apache-2.0 | Kotlin |
543340c4ac5f98aa2e730ec91c143ff1d9eb3eba | Fix SemVer name spelling. | google/play-services-plugins,google/play-services-plugins | strict-version-matcher-plugin/src/main/java/com/google/android/gms/dependencies/VersionEvaluation.kt | strict-version-matcher-plugin/src/main/java/com/google/android/gms/dependencies/VersionEvaluation.kt | package com.google.android.gms.dependencies
interface VersionEvaluator {
fun isCompatible(version: String): Boolean
}
/**
* TODO: Javadoc.
* TODO: Unit tests.
* TODO: Code formatting.
*/
object VersionEvaluators {
fun getEvaluator(versionString: String, isSemVer: Boolean): VersionEvaluator {
retu... | package com.google.android.gms.dependencies
interface VersionEvaluator {
fun isCompatible(version: String): Boolean
}
/**
* TODO: Javadoc.
* TODO: Unit tests.
* TODO: Code formatting.
*/
object VersionEvaluators {
fun getEvaluator(versionString: String, isSemver: Boolean): VersionEvaluator {
retu... | apache-2.0 | Kotlin |
ee4e3d84abd47c3b4daff07bf4c2229a0d433651 | Delete useless empty line | elpassion/android-commons,elpassion/android-commons,elpassion/android-commons | recycler/src/main/java/com/elpassion/android/commons/recycler/components/base/MutableListItemsStrategy.kt | recycler/src/main/java/com/elpassion/android/commons/recycler/components/base/MutableListItemsStrategy.kt | package com.elpassion.android.commons.recycler.components.base
import com.elpassion.android.commons.recycler.components.MutableItemsStrategy
class MutableListItemsStrategy<T> @JvmOverloads constructor(
list: List<T> = listOf()
) : MutableItemsStrategy<T> {
private val items: MutableList<T> = list.toMutab... | package com.elpassion.android.commons.recycler.components.base
import com.elpassion.android.commons.recycler.components.MutableItemsStrategy
class MutableListItemsStrategy<T> @JvmOverloads constructor(
list: List<T> = listOf()
) : MutableItemsStrategy<T> {
private val items: MutableList<T> = list.toMutab... | apache-2.0 | Kotlin |
fdd2b79dbabc660cc3e89187194ca6d0899b614f | fix wanrings | pine613/rxkotlin-collections | src/main/kotlin/moe/pine/rx/collection/Collections.kt | src/main/kotlin/moe/pine/rx/collection/Collections.kt | @file:kotlin.jvm.JvmMultifileClass
@file:kotlin.jvm.JvmName("CollectionsKt")
package moe.pine.rx.collections
import rx.Observable
/**
* Collection Utils for Observable
* Created by pine on 2016/02/20.
*/
fun <T> Observable<T>.filterIndexed(predicate: (Int, T) -> Boolean): Observable<T> {
return this.withIndex... | @file:kotlin.jvm.JvmMultifileClass
@file:kotlin.jvm.JvmName("CollectionsKt")
package moe.pine.rx.collections
import rx.Observable
/**
* Collection Utils for Observable
* Created by pine on 2016/02/20.
*/
fun <T> Observable<T>.filterIndexed(predicate: (Int, T) -> Boolean): Observable<T> {
return this.withIndex... | mit | Kotlin |
42566cfa1f7d37ae79f67ff8b2f7cf9f8e376de0 | Add DotScalePreferencePresenterTest | Doctoror/ParticleConstellationsLiveWallpaper,Doctoror/ParticleConstellationsLiveWallpaper | app/src/test/java/com/doctoror/particleswallpaper/presentation/presenter/DotScalePreferencePresenterTest.kt | app/src/test/java/com/doctoror/particleswallpaper/presentation/presenter/DotScalePreferencePresenterTest.kt | /*
* Copyright (C) 2018 Yaroslav Mytkalyk
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | apache-2.0 | Kotlin | |
b533fceb2ada478e0d18ec222f3ca4fd8b7decac | fix exists naming. | Raizlabs/DBFlow,Raizlabs/DBFlow | reactive-streams/src/main/kotlin/com/dbflow5/reactivestreams/structure/BaseRXModel.kt | reactive-streams/src/main/kotlin/com/dbflow5/reactivestreams/structure/BaseRXModel.kt | package com.dbflow5.reactivestreams.structure
import com.dbflow5.adapter.ModelAdapter
import com.dbflow5.annotation.ColumnIgnore
import com.dbflow5.config.FlowManager
import com.dbflow5.database.DatabaseWrapper
import com.dbflow5.structure.BaseModel
import com.dbflow5.structure.InvalidDBConfiguration
import io.reactiv... | package com.dbflow5.reactivestreams.structure
import com.dbflow5.adapter.ModelAdapter
import com.dbflow5.annotation.ColumnIgnore
import com.dbflow5.config.FlowManager
import com.dbflow5.database.DatabaseWrapper
import com.dbflow5.structure.BaseModel
import com.dbflow5.structure.InvalidDBConfiguration
import io.reactiv... | mit | Kotlin |
f4ac35bf2c4bf1356e0df76723b4600696b3b435 | Bump org.jetbrains.intellij from 1.5.1 to 1.6.0 | krasa/GrepConsole,krasa/GrepConsole | build.gradle.kts | build.gradle.kts | plugins {
id("java")
id("org.jetbrains.intellij") version "1.6.0"
}
group = "GrepConsole"
version = "12.12.211.6693.0"
tasks {
patchPluginXml {
sinceBuild.set("211.6693.3")
untilBuild.set("")
changeNotes.set(
buildString {
append("- Fixed: Auto Clear<br>... | plugins {
id("java")
id("org.jetbrains.intellij") version "1.5.1"
}
group = "GrepConsole"
version = "12.12.211.6693.0"
tasks {
patchPluginXml {
sinceBuild.set("211.6693.3")
untilBuild.set("")
changeNotes.set(
buildString {
append("- Fixed: Auto Clear<br>... | apache-2.0 | Kotlin |
c7985b51c0911ee898877838feeddbfa511dae00 | Bump jvm from 1.6.21 to 1.7.0 | camdenorrb/KPortals | build.gradle.kts | build.gradle.kts | import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
idea
kotlin("jvm") version "1.7.0"
id("com.github.johnrengelman.shadow") version "7.1.2"
}
group = "me.camdenorrb"
version = "2.0.0"
repositories {
mavenCentral()
m... | import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
idea
kotlin("jvm") version "1.6.21"
id("com.github.johnrengelman.shadow") version "7.1.2"
}
group = "me.camdenorrb"
version = "2.0.0"
repositories {
mavenCentral()
... | mit | Kotlin |
2a46064080916349463ddea2eb0d34e840eb9399 | Set version to release version | britter/bean-validators,britter/bean-validators | build.gradle.kts | build.gradle.kts | /*
* Copyright 2019 Benedikt Ritter
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | /*
* Copyright 2019 Benedikt Ritter
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | apache-2.0 | Kotlin |
8c086853805874f04e25a729fd21a6b67ad5b725 | Bump annotations from 20.1.0 to 21.0.1 | docker-client/docker-engine,docker-client/docker-engine,docker-client/docker-engine | build.gradle.kts | build.gradle.kts | import java.text.SimpleDateFormat
import java.util.*
rootProject.extra.set("artifactVersion", SimpleDateFormat("yyyy-MM-dd\'T\'HH-mm-ss").format(Date()))
plugins {
id("maven-publish")
id("com.github.ben-manes.versions") version "0.39.0"
id("net.ossindex.audit") version "0.4.11"
id("io.freefair.maven-central.v... | import java.text.SimpleDateFormat
import java.util.*
rootProject.extra.set("artifactVersion", SimpleDateFormat("yyyy-MM-dd\'T\'HH-mm-ss").format(Date()))
plugins {
id("maven-publish")
id("com.github.ben-manes.versions") version "0.39.0"
id("net.ossindex.audit") version "0.4.11"
id("io.freefair.maven-central.v... | mit | Kotlin |
608f8377dc53f3a7442411e9e28b67abc56f165b | Update to next development version | britter/bean-validators,britter/bean-validators | build.gradle.kts | build.gradle.kts | /*
* Copyright 2019 Benedikt Ritter
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | /*
* Copyright 2019 Benedikt Ritter
*
* 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... | apache-2.0 | Kotlin |
43d4f2f6192d06464a933395cabac7f532d0c162 | Update plugin org.jetbrains.kotlin.jvm to v1.6.21 (#437) | Turbo87/intellij-emberjs,Turbo87/intellij-emberjs,Turbo87/intellij-emberjs,Turbo87/intellij-emberjs | build.gradle.kts | build.gradle.kts | import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
// Java support
id("java")
// Kotlin support
id("org.jetbrains.kotlin.jvm") version "1.6.21"
// gradle-intellij-plugin - read more: https://github.com/JetBrains/gradle-intellij-plugin
id("org.jetbrains.intellij") version "1.5.3"
}... | import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
// Java support
id("java")
// Kotlin support
id("org.jetbrains.kotlin.jvm") version "1.6.20"
// gradle-intellij-plugin - read more: https://github.com/JetBrains/gradle-intellij-plugin
id("org.jetbrains.intellij") version "1.5.3"
}... | apache-2.0 | Kotlin |
89da18e097692c24cb055fcc65acc89e352c8fe8 | Update `org.jsoup:jsoup:1.14.3` to `1.15.1` | chimbori/crux,chimbori/crux | build.gradle.kts | build.gradle.kts | import org.jetbrains.kotlin.gradle.dsl.ExplicitApiMode.Strict
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.6.20"
id("com.vanniktech.maven.publish") version "0.20.0"
id("com.github.ben-manes.versions") version "0.42.0"
}
repositories {
mavenCentral()
}
buildscript ... | import org.jetbrains.kotlin.gradle.dsl.ExplicitApiMode.Strict
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.6.20"
id("com.vanniktech.maven.publish") version "0.20.0"
id("com.github.ben-manes.versions") version "0.42.0"
}
repositories {
mavenCentral()
}
buildscript ... | apache-2.0 | Kotlin |
96f4f7d3b046ef3e3d9127267333dfec22f1c066 | Bump io.freefair.maven-central.validate-poms from 6.5.0.2 to 6.5.0.3 | gesellix/docker-client,gesellix/docker-client,gesellix/docker-client | build.gradle.kts | build.gradle.kts | plugins {
id("maven-publish")
id("com.github.ben-manes.versions") version "0.42.0"
id("net.ossindex.audit") version "0.4.11"
id("io.freefair.maven-central.validate-poms") version "6.5.0.3"
id("io.github.gradle-nexus.publish-plugin") version "1.1.0"
}
val dependencyVersions = listOf(
"net.bytebuddy:byte-bud... | plugins {
id("maven-publish")
id("com.github.ben-manes.versions") version "0.42.0"
id("net.ossindex.audit") version "0.4.11"
id("io.freefair.maven-central.validate-poms") version "6.5.0.2"
id("io.github.gradle-nexus.publish-plugin") version "1.1.0"
}
val dependencyVersions = listOf(
"net.bytebuddy:byte-bud... | mit | Kotlin |
408f5e470349429c6b1f70c7a300e370332cd681 | add DockedModeGuiTest to reproduce IDEA-188874 | 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... | community-guitests/testSrc/com/intellij/testGuiFramework/tests/community/toolWindow/DockedModeGuiTest.kt | community-guitests/testSrc/com/intellij/testGuiFramework/tests/community/toolWindow/DockedModeGuiTest.kt | // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.testGuiFramework.tests.community.toolWindow
import com.intellij.icons.AllIcons
import com.intellij.openapi.actionSystem.impl.ActionMenuItem
import com.intell... | apache-2.0 | Kotlin | |
b576634530e6069dfb1e8ec4003cd78f521dc5a2 | Add documentation to baseline profile benchmark | android/performance-samples,android/performance-samples,android/performance-samples | MacrobenchmarkSample/macrobenchmark/src/main/java/com/example/macrobenchmark/TrivialBaselineProfileBenchmark.kt | MacrobenchmarkSample/macrobenchmark/src/main/java/com/example/macrobenchmark/TrivialBaselineProfileBenchmark.kt | /*
* Copyright 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 applica... | /*
* Copyright 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 applica... | apache-2.0 | Kotlin |
b456d9b714b6899d182f8ebc897213ea7e3a55b5 | fix routing for rita (#761) | http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k | src/docs/guide/howto/simple_routing/example.kt | src/docs/guide/howto/simple_routing/example.kt | package guide.howto.simple_routing
import org.http4k.core.Method.DELETE
import org.http4k.core.Method.GET
import org.http4k.core.Method.POST
import org.http4k.core.Request
import org.http4k.core.Response
import org.http4k.core.Status.Companion.OK
import org.http4k.routing.bind
import org.http4k.routing.routes
fun mai... | package guide.howto.simple_routing
import org.http4k.core.Method.DELETE
import org.http4k.core.Method.GET
import org.http4k.core.Method.POST
import org.http4k.core.Request
import org.http4k.core.Response
import org.http4k.core.Status.Companion.OK
import org.http4k.routing.bind
import org.http4k.routing.routes
fun mai... | apache-2.0 | Kotlin |
6bc51838c326ac7cb2ab53f2439a636ed5891b90 | Remove logs | StepicOrg/stepik-android,StepicOrg/stepic-android,StepicOrg/stepik-android,StepicOrg/stepic-android,StepicOrg/stepik-android,StepicOrg/stepic-android | app/src/main/java/org/stepik/android/view/step_quiz_fill_blanks/ui/fragment/FillBlanksInputBottomSheetDialogFragment.kt | app/src/main/java/org/stepik/android/view/step_quiz_fill_blanks/ui/fragment/FillBlanksInputBottomSheetDialogFragment.kt | package org.stepik.android.view.step_quiz_fill_blanks.ui.fragment
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.DialogFragment
import com.google.android.material.bottomsheet.BottomSheetDialogFragment
import kotlinx.androi... | package org.stepik.android.view.step_quiz_fill_blanks.ui.fragment
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.DialogFragment
import com.google.android.material.bottomsheet.BottomSheetDialogFragment
import kotlinx.androi... | apache-2.0 | Kotlin |
489ef75c1ff73c52a345591df47739752aa60638 | Optimise `InstantExecutionClassLoaderScopeRegistryListener` | blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,robinverduijn/gradle,robinverduijn/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gra... | subprojects/instant-execution/src/main/kotlin/org/gradle/instantexecution/InstantExecutionClassLoaderScopeRegistryListener.kt | subprojects/instant-execution/src/main/kotlin/org/gradle/instantexecution/InstantExecutionClassLoaderScopeRegistryListener.kt | /*
* Copyright 2019 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 2019 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 |
8e32df538546f60275e8bba084aa4c69533c16fd | use elvis | mglukhikh/intellij-community,xfournet/intellij-community,mglukhikh/intellij-community,mglukhikh/intellij-community,xfournet/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,mglukhikh/intellij-community,allotria/intellij-community,mglukhikh/intellij-community,xfourne... | plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/lang/psi/impl/statements/typedef/code/BodyCodeMembersProvider.kt | plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/lang/psi/impl/statements/typedef/code/BodyCodeMembersProvider.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 org.jetbrains.plugins.groovy.lang.psi.impl.statements.typedef.code
import org.jetbrains.plugins.groovy.lang.psi.api.statements.GrField
import org.jetbrains.plugins... | /*
* 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 |
3a092012bb447913d82ab52417040de4a92d04fa | Add some repeat action passing tests | JetBrains/ideavim,JetBrains/ideavim | test/org/jetbrains/plugins/ideavim/action/RepeatActionTest.kt | test/org/jetbrains/plugins/ideavim/action/RepeatActionTest.kt | /*
* IdeaVim - Vim emulator for IDEs based on the IntelliJ platform
* Copyright (C) 2003-2019 The IdeaVim authors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the ... | mit | Kotlin | |
85b05e3fc233416ec6b354c5a7d1db22ee84e6d5 | use kotlin to find the enum value rather than java, so no exceptions ect. | Tvede-dk/CommonsenseAndroidKotlin | com.commonsense.android.kotlin-base/src/main/java/com/commonsense/android/kotlin/base/extensions/collections/PrimitiveExtensions.kt | com.commonsense.android.kotlin-base/src/main/java/com/commonsense/android/kotlin/base/extensions/collections/PrimitiveExtensions.kt | package com.commonsense.android.kotlin.base.extensions.collections
import com.commonsense.android.kotlin.base.EmptyFunction
import com.commonsense.android.kotlin.base.FunctionUnit
import com.commonsense.android.kotlin.base.extensions.isNull
/**
* Created by Kasper Tvede on 06-12-2016.
*/
/**
* performs the action... | package com.commonsense.android.kotlin.base.extensions.collections
import com.commonsense.android.kotlin.base.EmptyFunction
import com.commonsense.android.kotlin.base.FunctionUnit
import com.commonsense.android.kotlin.base.extensions.isNull
/**
* Created by Kasper Tvede on 06-12-2016.
*/
/**
* performs the action... | mit | Kotlin |
fcc56d6c08ba1b9e528f104a5f1b49ef5b1b6518 | Align Kotlin snippet with the Groovy version | gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle | subprojects/docs/src/snippets/dependencyManagement/customizingResolution-attributeSubstitutionRule/kotlin/consumer/build.gradle.kts | subprojects/docs/src/snippets/dependencyManagement/customizingResolution-attributeSubstitutionRule/kotlin/consumer/build.gradle.kts | plugins {
id("myproject.java-library-conventions")
}
// tag::dependencies[]
dependencies {
implementation(project(":lib"))
}
// end::dependencies[]
// tag::substitution_rule[]
configurations.all {
resolutionStrategy.dependencySubstitution {
substitute(platform(module("com.google.guava:guava:28.2-j... | plugins {
id("myproject.java-library-conventions")
}
// tag::dependencies[]
dependencies {
implementation(project(":lib"))
}
// end::dependencies[]
// tag::substitution_rule[]
configurations.all {
resolutionStrategy.dependencySubstitution {
substitute(platform(module("com.google.guava:guava:28.2-j... | apache-2.0 | Kotlin |
6cc0050d5ab5ecf3ee56fe607f11f3840c969c1b | rename clappr clock | clappr/clappr-android,clappr/clappr-android | clappr/src/main/kotlin/io/clappr/player/clocks/MonotonicClock.kt | clappr/src/main/kotlin/io/clappr/player/clocks/MonotonicClock.kt | package io.clappr.player.clocks
import android.os.SystemClock
typealias MonotonicClock = () -> Long
val clapprMonotonicClock: MonotonicClock = { SystemClock.uptimeMillis() } | package io.clappr.player.clocks
import android.os.SystemClock
typealias MonotonicClock = () -> Long
val ClapprSystemClock: MonotonicClock = { SystemClock.uptimeMillis() } | bsd-3-clause | Kotlin |
c75db6a76abc65bcdc56697c2d54b228f989994c | refactor #506 Use finder. | toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt | image/src/main/java/jp/toastkid/image/list/BucketLoader.kt | image/src/main/java/jp/toastkid/image/list/BucketLoader.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 |
3c9b950a28f310a353bc4a857a01f3e1b131019d | Update DiskCache.kt | shkschneider/android_Skeleton,shkschneider/android_Skeleton,shkschneider/android_Skeleton | library/src/main/java/me/shkschneider/skeleton/data/DiskCache.kt | library/src/main/java/me/shkschneider/skeleton/data/DiskCache.kt | package me.shkschneider.skeleton.data
import java.io.File
import java.io.Serializable
// <http://developer.android.com/reference/java/io/Serializable.html>
object DiskCache {
// <http://developer.android.com/guide/topics/data/data-storage.html#filesInternal>
class Internal(dir: File) : Cache(dir)
// <ht... | package me.shkschneider.skeleton.data
import java.io.File
import java.io.Serializable
// <http://developer.android.com/reference/java/io/Serializable.html>
object DiskCache {
// <http://developer.android.com/guide/topics/data/data-storage.html#filesInternal>
class Internal(dir: File) : Cache(dir)
// <ht... | apache-2.0 | Kotlin |
868210315e3f412f047434bb1dc02e3a4e26e628 | Fix runAsync for PipelineContinue case | ktorio/ktor,ktorio/ktor,ktorio/ktor,ktorio/ktor | ktor-core/src/org/jetbrains/ktor/pipeline/Async.kt | ktor-core/src/org/jetbrains/ktor/pipeline/Async.kt | package org.jetbrains.ktor.pipeline
import java.util.concurrent.*
fun <C : Any> PipelineContext<C>.runAsync(exec: ExecutorService, block: PipelineContext<C>.() -> Unit): Nothing {
exec.submit {
asyncBlock(block)
}
pause()
}
private fun <C : Any> PipelineContext<C>.asyncBlock(block: PipelineConte... | package org.jetbrains.ktor.pipeline
import java.util.concurrent.*
fun <C : Any> PipelineContext<C>.runAsync(exec: ExecutorService, block: PipelineContext<C>.() -> Unit): Nothing {
val future = CompletableFuture.runAsync(Runnable {
block()
}, exec)
future.whenComplete { unit, throwable ->
i... | apache-2.0 | Kotlin |
3bb8e13adb29412d9f2f3c74a3b65b2d434cace8 | Create an XdmItem base class. | rhdunn/xquery-intellij-plugin,rhdunn/xquery-intellij-plugin | src/main/java/uk/co/reecedunn/intellij/plugin/xdm/model/Items.kt | src/main/java/uk/co/reecedunn/intellij/plugin/xdm/model/Items.kt | /*
* Copyright (C) 2017-2018 Reece H. Dunn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | /*
* Copyright (C) 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 |
11668ce8b4c68344bd1b866b0e84ef21de1dc968 | add test assert | odd-poet/kotlin-expect | src/test/kotlin/net/oddpoet/expect/extension/AnyExtensionTest.kt | src/test/kotlin/net/oddpoet/expect/extension/AnyExtensionTest.kt | package net.oddpoet.expect.extension
import net.oddpoet.expect.expect
import net.oddpoet.expect.should
import org.junit.Test
import org.slf4j.LoggerFactory
/**
*
* @author Yunsang Choi
*/
class AnyExtensionTest {
val log = LoggerFactory.getLogger(this.javaClass)
@Test
fun `test value equality`() {
... | package net.oddpoet.expect.extension
import net.oddpoet.expect.expect
import net.oddpoet.expect.should
import org.junit.Test
import org.slf4j.LoggerFactory
/**
*
* @author Yunsang Choi
*/
class AnyExtensionTest {
val log = LoggerFactory.getLogger(this.javaClass)
@Test
fun `test value equality`() {
... | apache-2.0 | Kotlin |
419ad0f7fd82173220954ae906efa4e3fd436dcf | refactor #283 Delete unused lambda parameter in planning_poker.Adapter. | toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Jitte | app/src/main/java/jp/toastkid/yobidashi/planning_poker/Adapter.kt | app/src/main/java/jp/toastkid/yobidashi/planning_poker/Adapter.kt | package jp.toastkid.yobidashi.planning_poker
import android.databinding.DataBindingUtil
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.ViewGroup
import jp.toastkid.yobidashi.R
import jp.toastkid.yobidashi.databinding.CardItemBinding
/**
* RecyclerView's adapter.... | package jp.toastkid.yobidashi.planning_poker
import android.databinding.DataBindingUtil
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.ViewGroup
import jp.toastkid.yobidashi.R
import jp.toastkid.yobidashi.databinding.CardItemBinding
/**
* RecyclerView's adapter.... | epl-1.0 | Kotlin |
763463b886f49b4b754f2ce88ca37ba482670a38 | Reformat NotificationModuleˆ | squanchy-dev/squanchy-android,squanchy-dev/squanchy-android,squanchy-dev/squanchy-android | app/src/main/java/net/squanchy/notification/NotificationModule.kt | app/src/main/java/net/squanchy/notification/NotificationModule.kt | package net.squanchy.notification
import android.content.Context
import android.support.v4.app.NotificationManagerCompat
import dagger.Module
import dagger.Provides
import net.squanchy.injection.ServiceContextModule
import net.squanchy.service.firebase.FirebaseAuthService
import net.squanchy.service.repository.EventRe... | package net.squanchy.notification
import android.content.Context
import android.support.v4.app.NotificationManagerCompat
import dagger.Module
import dagger.Provides
import net.squanchy.injection.ServiceContextModule
import net.squanchy.service.firebase.FirebaseAuthService
import net.squanchy.service.repository.EventRe... | apache-2.0 | Kotlin |
ac7a95f50267248964ebbe13fa73d777865858cb | Bump org.jetbrains.intellij from 1.6.0 to 1.8.0 | krasa/GrepConsole,krasa/GrepConsole | build.gradle.kts | build.gradle.kts | plugins {
id("java")
id("org.jetbrains.intellij") version "1.8.0"
}
group = "GrepConsole"
version = "12.14.211.6693.0"
tasks {
patchPluginXml {
sinceBuild.set("211.6693.3")
untilBuild.set("")
changeNotes.set(
buildString {
append("- Sound fix<br>")
... | plugins {
id("java")
id("org.jetbrains.intellij") version "1.6.0"
}
group = "GrepConsole"
version = "12.14.211.6693.0"
tasks {
patchPluginXml {
sinceBuild.set("211.6693.3")
untilBuild.set("")
changeNotes.set(
buildString {
append("- Sound fix<br>")
... | apache-2.0 | Kotlin |
f6a57d53ba181fb6bd60d5de64c30a717cf4d619 | add a workaround to avoid duplicated files in the zip | jonnyzzz/TeamCity.Node,jonnyzzz/TeamCity.Node | build.gradle.kts | build.gradle.kts | plugins {
id("com.github.rodm.teamcity-common") version "1.1" apply false
id("com.github.rodm.teamcity-agent") version "1.1" apply false
id("com.github.rodm.teamcity-server") version "1.1" apply false
kotlin("jvm") version "1.2.41" apply false
}
ext {
set("teamcityVersion", System.getenv("DEP_TEAMCITY_VERSI... | plugins {
id("com.github.rodm.teamcity-common") version "1.1" apply false
id("com.github.rodm.teamcity-agent") version "1.1" apply false
id("com.github.rodm.teamcity-server") version "1.1" apply false
kotlin("jvm") version "1.2.41" apply false
}
ext {
set("teamcityVersion", System.getenv("DEP_TEAMCITY_VERSI... | apache-2.0 | Kotlin |
6f7711ade3dadd498448d19f9e87c6b6402c12ff | Attach sources JAR | eskatos/creadur-rat-gradle | build.gradle.kts | build.gradle.kts | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | apache-2.0 | Kotlin |
b62fc61ca7ce616d81e35af7779fdf66ec89de88 | Update the Gradle versions plugin to 0.21.0 | saschpe/android-versioninfo,saschpe/android-versioninfo,saschpe/android-versioninfo | build.gradle.kts | build.gradle.kts | /*
* Copyright 2016 Sascha Peilicke
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | /*
* Copyright 2016 Sascha Peilicke
*
* 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... | apache-2.0 | Kotlin |
f9c72936cf42e3d8b902fc8a8f4b892f0d7cbcf3 | add backpressure buffer | StephanHener/orxo | orxo/src/main/kotlin/com/tractive/android/orxo/OrxoBus.kt | orxo/src/main/kotlin/com/tractive/android/orxo/OrxoBus.kt | package com.tractive.android.orxo
import android.util.Log
import com.jakewharton.rxrelay.*
import rx.Scheduler
import rx.Subscription
import rx.android.schedulers.AndroidSchedulers
import rx.functions.Action1
import rx.subscriptions.CompositeSubscription
import java.util.*
abstract class OrxoBus(val isSerialized: Bo... | package com.tractive.android.orxo
import android.util.Log
import com.jakewharton.rxrelay.*
import rx.Scheduler
import rx.Subscription
import rx.android.schedulers.AndroidSchedulers
import rx.functions.Action1
import rx.subscriptions.CompositeSubscription
import java.util.*
abstract class OrxoBus(val isSerialized: Bo... | apache-2.0 | Kotlin |
24979e768e02d560f139b74c0ee3aff42054a96b | support to Proxy with authentication | siosio/GradleDependenciesHelperPlugin | src/main/java/siosio/Client.kt | src/main/java/siosio/Client.kt | package siosio
import com.intellij.util.net.*
import org.apache.http.client.config.*
import org.apache.http.client.methods.*
import org.apache.http.impl.client.*
import java.util.concurrent.*
object Client {
fun get(uri: String): String {
val clientBuilder = RequestConfig.custom()
val basicCreden... | package siosio
import com.intellij.util.net.*
import org.apache.http.client.config.*
import org.apache.http.client.methods.*
import org.apache.http.impl.client.*
import java.util.concurrent.*
object Client {
fun get(uri: String): String {
val clientBuilder = RequestConfig.custom()
IdeHttpClientHe... | mit | Kotlin |
91442b1f461331f75020b70c3d3248bccce7206d | Bump micrometer-core from 1.7.3 to 1.7.4 (#2605) | ktorio/ktor,ktorio/ktor,ktorio/ktor,ktorio/ktor | ktor-features/ktor-metrics-micrometer/build.gradle.kts | ktor-features/ktor-metrics-micrometer/build.gradle.kts | tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().all {
kotlinOptions {
// micrometer uses jdk 1.8 features, so we need to use that version here
jvmTarget = "1.8"
}
}
kotlin {
sourceSets {
val jvmMain by getting {
dependencies {
// 1.1.3 i... | tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().all {
kotlinOptions {
// micrometer uses jdk 1.8 features, so we need to use that version here
jvmTarget = "1.8"
}
}
kotlin {
sourceSets {
val jvmMain by getting {
dependencies {
// 1.1.3 i... | apache-2.0 | Kotlin |
f81ed5f87dae208201ca85cb2543e37f2c0f54f0 | add LearnVar | hanks-zyh/KotlinExample | src/LearnVar.kt | src/LearnVar.kt | /**
* Created by hanks on 15-10-28.
*/
fun main(args: Array<String>) {
val a = 1
val b: Int = 2
val c: Int
c = 1
println(a)
println(b)
println(c)
var x = 5
x += 1
println(x)
} | apache-2.0 | Kotlin | |
d569de39a5530df7a37243884cf9a5837f559480 | Revert sample to block structure | gradle/gradle,gradle/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle-script-kotlin,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle-script-kotlin,robinverduijn/gradle,gradle/gradle,gradle/gradle... | samples/multi-kotlin-project-config-injection/build.gradle.kts | samples/multi-kotlin-project-config-injection/build.gradle.kts | import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
buildscript {
repositories { gradleScriptKotlin() }
dependencies { classpath(kotlinModule("gradle-plugin")) }
}
allprojects {
group = "org.gradle.script.kotlin.samples.multiprojectci"
version = "1.0"
configure(listOf(repositories, buildscri... | import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
buildscript {
repositories { gradleScriptKotlin() }
dependencies { classpath(kotlinModule("gradle-plugin")) }
}
allprojects {
group = "org.gradle.script.kotlin.samples.multiprojectci"
version = "1.0"
configure(listOf(repositories, buildscri... | apache-2.0 | Kotlin |
b6c33f692eb66e36acf2f31f501c46d9fb06d134 | adjust "show expression type" action to work in macro calls | Undin/intellij-rust,Undin/intellij-rust,intellij-rust/intellij-rust,intellij-rust/intellij-rust,intellij-rust/intellij-rust,Undin/intellij-rust,intellij-rust/intellij-rust,intellij-rust/intellij-rust,Undin/intellij-rust,Undin/intellij-rust,intellij-rust/intellij-rust,Undin/intellij-rust | src/main/kotlin/org/rust/ide/hints/RsExpressionTypeProvider.kt | src/main/kotlin/org/rust/ide/hints/RsExpressionTypeProvider.kt | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.ide.hints
import com.intellij.lang.ExpressionTypeProvider
import com.intellij.openapi.util.TextRange
import com.intellij.psi.PsiElement
import com.intellij.psi.impl.FakePsiElement
import org.rus... | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.ide.hints
import com.intellij.lang.ExpressionTypeProvider
import com.intellij.psi.PsiElement
import org.rust.lang.core.psi.RsExpr
import org.rust.lang.core.psi.RsPat
import org.rust.lang.core.ps... | mit | Kotlin |
e09e0cfff385f657f103b578c403376172b9c939 | Add app/src/release/java/chat/rocket/android/helper/OkHttpHelper.kt | RocketChat/Rocket.Chat.Android,RocketChat/Rocket.Chat.Android.Lily,RocketChat/Rocket.Chat.Android.Lily,RocketChat/Rocket.Chat.Android | app/src/release/java/chat/rocket/android/helper/OkHttpHelper.kt | app/src/release/java/chat/rocket/android/helper/OkHttpHelper.kt | package chat.rocket.android.helper
import android.content.Context
import chat.rocket.android.RocketChatCache
import chat.rocket.android.api.rest.CookieInterceptor
import chat.rocket.android.api.rest.DefaultCookieProvider
import java.util.concurrent.TimeUnit
import okhttp3.OkHttpClient
object OkHttpHelper {
fun g... | mit | Kotlin | |
c2a8746b1a41f686205cd0c0b45ed7e951354aea | make Array.stream() implementation more efficient | norswap/violin,norswap/violin | src/norswap/violin/stream/Tune.kt | src/norswap/violin/stream/Tune.kt | package norswap.violin.stream
import java.util.stream.Stream as JStream
/// Conversion to Stream ---------------------------------------------------------------------------
/**
* Converts an iterator into a stream.
*
* Be cautious: this assumes the iterator is finite and so returns a [Stream].
* If not so, assign... | package norswap.violin.stream
import java.util.stream.Stream as JStream
/// Conversion to Stream ---------------------------------------------------------------------------
/**
* Converts an iterator into a stream.
*
* Be cautious: this assumes the iterator is finite and so returns a [Stream].
* If not so, assign... | bsd-3-clause | Kotlin |
5e29239f9c775d2bbda771c4a9f4688d2bc7028d | Change scrolling to next event logic | squanchy-dev/squanchy-android,squanchy-dev/squanchy-android,squanchy-dev/squanchy-android | app/src/main/java/net/squanchy/schedule/domain/view/Schedule.kt | app/src/main/java/net/squanchy/schedule/domain/view/Schedule.kt | package net.squanchy.schedule.domain.view
import net.squanchy.support.system.CurrentTime
import org.joda.time.DateTimeZone
private const val NOT_FOUND_INDEX = -1
private const val FIRST_PAGE_INDEX = 0
private const val CURRENT_SLOT_THRESHOLD = .6f
data class Schedule(val pages: List<SchedulePage>, val timezone: Dat... | package net.squanchy.schedule.domain.view
import net.squanchy.support.system.CurrentTime
import org.joda.time.DateTimeZone
private const val NOT_FOUND_INDEX = -1
private const val FIRST_PAGE_INDEX = 0
data class Schedule(val pages: List<SchedulePage>, val timezone: DateTimeZone) {
val isEmpty: Boolean
g... | apache-2.0 | Kotlin |
3cdc000387f8f4c0310ce9206330aeeb60f79326 | Remove unused method in ViewHolder. | toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Jitte | app/src/main/java/jp/toastkid/yobidashi/tab/tab_list/ViewHolder.kt | app/src/main/java/jp/toastkid/yobidashi/tab/tab_list/ViewHolder.kt | package jp.toastkid.yobidashi.tab.tab_list
import android.graphics.Color
import android.support.v7.widget.RecyclerView
import android.view.View
import jp.toastkid.yobidashi.R
import jp.toastkid.yobidashi.databinding.ItemTabListBinding
import jp.toastkid.yobidashi.libs.ImageLoader
import jp.toastkid.yobidashi.libs.pref... | package jp.toastkid.yobidashi.tab.tab_list
import android.graphics.Color
import android.support.annotation.ColorInt
import android.support.v7.widget.RecyclerView
import android.view.View
import jp.toastkid.yobidashi.R
import jp.toastkid.yobidashi.databinding.ItemTabListBinding
import jp.toastkid.yobidashi.libs.ImageLo... | epl-1.0 | Kotlin |
9c8bfb1728e4c731b0acbf5bf2d97b3950474cab | Fix TwitterRepository after upgrading Kotlin | squanchy-dev/squanchy-android,squanchy-dev/squanchy-android,squanchy-dev/squanchy-android | app/src/main/java/net/squanchy/tweets/service/TwitterRepository.kt | app/src/main/java/net/squanchy/tweets/service/TwitterRepository.kt | package net.squanchy.tweets.service
import com.twitter.sdk.android.core.TwitterCore
import com.twitter.sdk.android.core.models.Search
import com.twitter.sdk.android.core.models.SearchMetadata
import io.reactivex.Single
import io.reactivex.schedulers.Schedulers
import retrofit2.Call
class TwitterRepository {
priv... | package net.squanchy.tweets.service
import com.twitter.sdk.android.core.TwitterCore
import com.twitter.sdk.android.core.models.Search
import io.reactivex.Single
import io.reactivex.schedulers.Schedulers
import retrofit2.Call
class TwitterRepository {
private val searchService = TwitterCore.getInstance().apiClien... | apache-2.0 | Kotlin |
d56dccad3a8ea9b08519701cf3d3b7de8e1bae8e | Remove unused import | google/ground-android,google/ground-android,google/ground-android | ground/src/main/java/com/google/android/ground/model/TestModelBuilders.kt | ground/src/main/java/com/google/android/ground/model/TestModelBuilders.kt | /*
* Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | /*
* Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | apache-2.0 | Kotlin |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.