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 |
|---|---|---|---|---|---|---|---|---|
22d7b88c9c1f2bdbd11fc441d2e61e7460d74aed | Fix build for Apple Silicon | square/duktape-android,square/duktape-android,square/duktape-android,square/duktape-android,square/duktape-android | samples/emoji-search/presenters/build.gradle.kts | samples/emoji-search/presenters/build.gradle.kts | import org.jetbrains.kotlin.gradle.plugin.PLUGIN_CLASSPATH_CONFIGURATION_NAME
import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension
import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootPlugin
plugins {
kotlin("multiplatform")
kotlin("plugin.serialization")
}
kotlin {
jvm()
js {
... | import org.jetbrains.kotlin.gradle.plugin.PLUGIN_CLASSPATH_CONFIGURATION_NAME
plugins {
kotlin("multiplatform")
kotlin("plugin.serialization")
}
kotlin {
jvm()
js {
browser()
binaries.executable()
}
sourceSets {
val commonMain by getting {
dependencies {
implementation(project(... | apache-2.0 | Kotlin |
8c7ebae41912d4c96c43e5f17102de238f1d24a7 | Reduce replaced with compose. It's just easier to read | WonderBeat/suchmarines,WonderBeat/suchmarines | src/main/kotlin/org/wow/learning/FileBasedLearner.kt | src/main/kotlin/org/wow/learning/FileBasedLearner.kt | package org.wow.learning
import java.io.File
import org.wow.logger.World
import org.slf4j.LoggerFactory
import reactor.core.composable.spec.Promises
import reactor.core.composable.spec.Streams
import org.wow.logger.LogsParser
import reactor.core.Environment
import reactor.function.Consumer
import java.util.concurrent.... | package org.wow.learning
import java.io.File
import org.wow.logger.World
import org.slf4j.LoggerFactory
import reactor.core.composable.spec.Promises
import reactor.core.composable.spec.Streams
import org.wow.logger.LogsParser
import reactor.core.Environment
import reactor.function.Consumer
public class FileBasedLearn... | mit | Kotlin |
72d13c973bc1b99ba57eca1d6ce6d46725699d84 | Create Interface NMSManager | Homes-MinecraftServerMod/Homes,Homes-MinecraftServerMod/Homes | src/main/kotlin/com/masahirosaito/spigot/homes/nms/NMSManager.kt | src/main/kotlin/com/masahirosaito/spigot/homes/nms/NMSManager.kt | package com.masahirosaito.spigot.homes.nms
import org.bukkit.Location
interface NMSManager {
fun setUp()
fun spawnNMSArmorStand(loc: Location, name: String)
}
| apache-2.0 | Kotlin | |
96785303b94ba670d3e819978e68f682ffddb134 | Enable leak detection if the bot is running in debug mode | mrkirby153/KirBot | src/main/kotlin/me/mrkirby153/KirBot/database/DatabaseConnection.kt | src/main/kotlin/me/mrkirby153/KirBot/database/DatabaseConnection.kt | package me.mrkirby153.KirBot.database
import com.google.common.util.concurrent.ThreadFactoryBuilder
import com.zaxxer.hikari.HikariConfig
import com.zaxxer.hikari.HikariDataSource
import me.mrkirby153.KirBot.Bot
import java.sql.Connection
import java.util.concurrent.Executors
class DatabaseConnection(host: String, po... | package me.mrkirby153.KirBot.database
import com.google.common.util.concurrent.ThreadFactoryBuilder
import com.zaxxer.hikari.HikariConfig
import com.zaxxer.hikari.HikariDataSource
import java.sql.Connection
import java.util.concurrent.Executors
class DatabaseConnection(host: String, port: Int, database: String,
... | mit | Kotlin |
8a3ab6777f11660f6a09891390c3a0cbb26c118f | make shorter | seirion/code,seirion/code,seirion/code,seirion/code,seirion/code | google/2019/round1_b/1/main.kt | google/2019/round1_b/1/main.kt | import java.util.*
fun main(args: Array<String>) {
val t = readLine()!!.toInt()
repeat(t) { solve(it) }
}
data class Input(
val x: Int,
val y: Int,
val c: Char
)
fun solve(num: Int) {
val (P, _) = readLine()!!.split(" ").map { it.toInt() }
val xValues = TreeMap<Int, Int>()
... | import java.util.*
fun main(args: Array<String>) {
val t = readLine()!!.toInt()
repeat(t) { solve(it) }
}
data class Input(
val x: Int,
val y: Int,
val c: Char
)
fun solve(num: Int) {
val (P, Q) = readLine()!!.split(" ").map { it.toInt() }
val xValues = TreeMap<Int, Int>()
... | apache-2.0 | Kotlin |
e8b768351a86294851fea6f1b1fa5b492d75c7d9 | add a explain | ScienceYuan/WidgetNote | app/src/main/java/com/rousci/androidapp/widgetnote/model/NotesData.kt | app/src/main/java/com/rousci/androidapp/widgetnote/model/NotesData.kt | package com.rousci.androidapp.widgetnote.model
import android.content.Context
import org.jetbrains.anko.db.*
/**
* Created by rousci on 17-10-11.
* this mean to make a simple interface to keep notes
*
* database must init
* but the expect of null database is still not deal with
*
* use a tick of closure
q * le... | package com.rousci.androidapp.widgetnote.model
import android.content.Context
import org.jetbrains.anko.db.*
/**
* Created by rousci on 17-10-11.
* this mean to make a simple interface to keep notes
*
* database must init
* but the expect of null database is still not deal with
*
* use a tick of closure
* let... | mit | Kotlin |
48aaaffaef2c5335994da839880f44509c461255 | Create coroutine scope for audio player | google/oboe,google/oboe,google/oboe,google/oboe,google/oboe,google/oboe | samples/minimaloboe/src/main/java/com/example/minimaloboe/AudioPlayer.kt | samples/minimaloboe/src/main/java/com/example/minimaloboe/AudioPlayer.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 |
15b409a16c5ce8a7f49d3f1bee4bc988ce7eb66d | Exclude import | googlemaps/android-samples,googlemaps/android-samples | snippets/app/src/gms/java/com/google/maps/example/kotlin/MapsActivity.kt | snippets/app/src/gms/java/com/google/maps/example/kotlin/MapsActivity.kt | // Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | // Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | apache-2.0 | Kotlin |
b583e8cd7b1a45fc83b28bba2af1de487a488c9d | Add toCValues() extension functions to Arrays of unsigned types (#2417) | wiltonlazary/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,wiltonlazary/kotlin-native,wiltonlazary/kotlin-native,JetBrains/kotlin-native,wiltonlazary/kotlin-native,wiltonlazary/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-... | Interop/Runtime/src/native/kotlin/kotlinx/cinterop/NativeUtils.kt | Interop/Runtime/src/native/kotlin/kotlinx/cinterop/NativeUtils.kt | /*
* Copyright 2010-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 2010-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 |
21d5784b2a3a54fa5d5a5e3fa7d37e4acdc10fbc | Split the mass-deletion job into jobs of 1500 items to avoid serialization hard-limit | AVnetWS/Hentoid,AVnetWS/Hentoid,AVnetWS/Hentoid | app/src/main/java/me/devsaki/hentoid/viewmodels/PreferencesViewModel.kt | app/src/main/java/me/devsaki/hentoid/viewmodels/PreferencesViewModel.kt | package me.devsaki.hentoid.viewmodels
import android.app.Application
import androidx.lifecycle.AndroidViewModel
import androidx.work.ExistingWorkPolicy
import androidx.work.OneTimeWorkRequestBuilder
import androidx.work.WorkManager
import com.annimon.stream.Stream
import me.devsaki.hentoid.R
import me.devsaki.hentoid.... | package me.devsaki.hentoid.viewmodels
import android.app.Application
import androidx.lifecycle.AndroidViewModel
import androidx.work.ExistingWorkPolicy
import androidx.work.OneTimeWorkRequestBuilder
import androidx.work.WorkManager
import com.annimon.stream.Stream
import me.devsaki.hentoid.R
import me.devsaki.hentoid.... | apache-2.0 | Kotlin |
1e69561e847484e665b96f3b2c88b2aa6ddc8a34 | use applicationContext at getting a Config instance | anthologist/Simple-Gallery | app/src/main/kotlin/com/simplemobiletools/gallery/extensions/context.kt | app/src/main/kotlin/com/simplemobiletools/gallery/extensions/context.kt | package com.simplemobiletools.gallery.extensions
import android.content.Context
import android.content.Intent
import android.content.res.Configuration
import android.graphics.Point
import android.media.AudioManager
import android.os.Build
import android.view.WindowManager
import com.simplemobiletools.commons.extension... | package com.simplemobiletools.gallery.extensions
import android.content.Context
import android.content.Intent
import android.content.res.Configuration
import android.graphics.Point
import android.media.AudioManager
import android.net.Uri
import android.os.Build
import android.view.WindowManager
import com.simplemobile... | apache-2.0 | Kotlin |
0deff7e25d202dc346c2e0530a00a2b3309166df | Add unit tests for CSS style manipulation | wordpress-mobile/AztecEditor-Android,wordpress-mobile/AztecEditor-Android,wordpress-mobile/AztecEditor-Android | aztec/src/test/kotlin/org/wordpress/aztec/CssStyleAttributeTest.kt | aztec/src/test/kotlin/org/wordpress/aztec/CssStyleAttributeTest.kt | @file:Suppress("DEPRECATION")
package org.wordpress.aztec
import android.test.AndroidTestCase
import android.test.mock.MockContext
import android.text.SpannableString
import junit.framework.Assert
import org.junit.Before
import org.junit.Test
import org.junit.runner.RunWith
import org.robolectric.RobolectricTestRunne... | mpl-2.0 | Kotlin | |
3428e347fb930cf02acbb6c52aaf98385709f7ac | Add sourcesJar to shadow publications | Kotlin/dokka,Kotlin/dokka,Kotlin/dokka,Kotlin/dokka,Kotlin/dokka,Kotlin/dokka | buildSrc/src/main/kotlin/org/jetbrains/publication.kt | buildSrc/src/main/kotlin/org/jetbrains/publication.kt | package org.jetbrains
import com.github.jengelman.gradle.plugins.shadow.ShadowExtension
import com.jfrog.bintray.gradle.BintrayExtension
import org.gradle.api.Project
import org.gradle.api.publish.PublishingExtension
import org.gradle.api.publish.maven.MavenPublication
import org.gradle.kotlin.dsl.*
class DokkaPublic... | package org.jetbrains
import com.github.jengelman.gradle.plugins.shadow.ShadowExtension
import com.jfrog.bintray.gradle.BintrayExtension
import org.gradle.api.Project
import org.gradle.api.publish.PublishingExtension
import org.gradle.api.publish.maven.MavenPublication
import org.gradle.kotlin.dsl.*
class DokkaPublic... | apache-2.0 | Kotlin |
08f62791bf6c90155c188663365db9fb07b02ba7 | Change minimum near threshold to 8cm | ssaqua/ProximityService | app/src/main/kotlin/ss/proximityservice/data/ProximityDetector.kt | app/src/main/kotlin/ss/proximityservice/data/ProximityDetector.kt | package ss.proximityservice.data
import android.content.Context
import android.hardware.Sensor
import android.hardware.SensorEvent
import android.hardware.SensorEventListener
import android.hardware.SensorManager
class ProximityDetector(context: Context, private val listener: ProximityListener) : SensorEventListener ... | package ss.proximityservice.data
import android.content.Context
import android.hardware.Sensor
import android.hardware.SensorEvent
import android.hardware.SensorEventListener
import android.hardware.SensorManager
class ProximityDetector(context: Context, private val listener: ProximityListener) : SensorEventListener ... | apache-2.0 | Kotlin |
8686b34cbbb21f604f28f25bf9acda75c6337343 | Make auto correct to be enabled as default which makes testing easier, in production the global flag autoCorrect in the yaml config must still be turned on - #41 | Mauin/detekt,rock3r/detekt,rock3r/detekt,Mauin/detekt,Mauin/detekt,Mauin/detekt,arturbosch/detekt,arturbosch/detekt,arturbosch/detekt,rock3r/detekt,MyDogTom/detekt | detekt-api/src/main/kotlin/io/gitlab/arturbosch/detekt/api/Rule.kt | detekt-api/src/main/kotlin/io/gitlab/arturbosch/detekt/api/Rule.kt | package io.gitlab.arturbosch.detekt.api
import org.jetbrains.kotlin.psi.KtFile
/**
* A rule defines how one specific code structure should look like. If code is found
* which does not meet this structure, it is considered as harmful regarding maintainability
* or readability.
*
* A rule is implemented using the ... | package io.gitlab.arturbosch.detekt.api
import org.jetbrains.kotlin.psi.KtFile
/**
* A rule defines how one specific code structure should look like. If code is found
* which does not meet this structure, it is considered as harmful regarding maintainability
* or readability.
*
* A rule is implemented using the ... | apache-2.0 | Kotlin |
e8e84e6dba2b66d328a8b82fc98d4bf5ef981da1 | Fix problem of negative point calculation | chrhsmt/Sishen,chrhsmt/Sishen | app/src/main/java/com/chrhsmt/sisheng/point/SimplePointCalculator.kt | app/src/main/java/com/chrhsmt/sisheng/point/SimplePointCalculator.kt | package com.chrhsmt.sisheng.point
import de.qaware.chronix.distance.DistanceFunctionEnum
import de.qaware.chronix.distance.DistanceFunctionFactory
import de.qaware.chronix.dtw.FastDTW
import de.qaware.chronix.dtw.TimeWarpInfo
import de.qaware.chronix.timeseries.MultivariateTimeSeries
/**
* Created by chihiro on 2017... | package com.chrhsmt.sisheng.point
import de.qaware.chronix.distance.DistanceFunctionEnum
import de.qaware.chronix.distance.DistanceFunctionFactory
import de.qaware.chronix.dtw.FastDTW
import de.qaware.chronix.dtw.TimeWarpInfo
import de.qaware.chronix.timeseries.MultivariateTimeSeries
/**
* Created by chihiro on 2017... | mit | Kotlin |
ef9ec10cf5d8482b08ef7736859bcf7e3cef646c | use kotlin stdlib | moko256/twicalico,moko256/twicalico | app/src/main/java/com/github/moko256/twitlatte/net/OkHttpReplacer.kt | app/src/main/java/com/github/moko256/twitlatte/net/OkHttpReplacer.kt | /*
* Copyright 2015-2019 The twitlatte 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 la... | /*
* Copyright 2015-2019 The twitlatte 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 la... | apache-2.0 | Kotlin |
82a4559a84161fdb5089b2c36c14454bc0953f8c | refactor #605 Extract layout ID. | toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Jitte,toastkidjp/Yobidashi_kt | app/src/main/java/jp/toastkid/yobidashi/search/suggestion/Adapter.kt | app/src/main/java/jp/toastkid/yobidashi/search/suggestion/Adapter.kt | package jp.toastkid.yobidashi.search.suggestion
import android.annotation.SuppressLint
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.annotation.LayoutRes
import androidx.databinding.DataBindingUtil
import androidx.recyclerview.widget.RecyclerView
import jp.to... | package jp.toastkid.yobidashi.search.suggestion
import android.annotation.SuppressLint
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.recyclerview.widget.RecyclerView
import jp.toastkid.yobidashi.R
import timber.log.... | epl-1.0 | Kotlin |
5670d66062203bd08b29e46049bdb0ed8e7f85b9 | Add TODO and fix typo | DanielMartinus/Konfetti | konfetti-core/src/main/java/nl/dionsegijn/konfetti_core/_new/Party.kt | konfetti-core/src/main/java/nl/dionsegijn/konfetti_core/_new/Party.kt | package nl.dionsegijn.konfetti_core._new
import android.graphics.Color
import nl.dionsegijn.konfetti_core._new.NewEmitter.EmitterConfig
import nl.dionsegijn.konfetti_core.models.Shape
import nl.dionsegijn.konfetti_core.models.Size
data class Party(
val angle: Int = 0,
val spread: Int = 20,
val startVeloci... | package nl.dionsegijn.konfetti_core._new
import android.graphics.Color
import nl.dionsegijn.konfetti_core._new.NewEmitter.EmitterConfig
import nl.dionsegijn.konfetti_core.models.Shape
import nl.dionsegijn.konfetti_core.models.Size
data class Party(
val angle: Int = 0,
val spread: Int = 20,
val startVeloci... | isc | Kotlin |
917768af6a512e2c2602571998bcfce446488671 | fix kit getter | hkokocin/androidKit | library/src/main/java/com/github/hkokocin/androidkit/AndroidKit.kt | library/src/main/java/com/github/hkokocin/androidkit/AndroidKit.kt | package com.github.hkokocin.androidkit
import com.github.hkokocin.androidkit.content.ContextKit
import com.github.hkokocin.androidkit.view.ViewKit
import com.github.hkokocin.androidkit.widget.WidgetKit
val kit: AndroidKit
get() = AndroidKit.instance
class AndroidKit private constructor()
: WidgetKit, ViewKit... | package com.github.hkokocin.androidkit
import com.github.hkokocin.androidkit.content.ContextKit
import com.github.hkokocin.androidkit.view.ViewKit
import com.github.hkokocin.androidkit.widget.WidgetKit
val kit = AndroidKit.instance
class AndroidKit private constructor()
: WidgetKit, ViewKit, ContextKit {
co... | mit | Kotlin |
0058920105dcf5066233c0e72bc3e8d8d88d48b1 | Swap interface and implementation for more logical order | 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/ui/layout/SpacingConfiguration.kt | platform/platform-impl/src/com/intellij/ui/layout/SpacingConfiguration.kt | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.ui.layout
import com.intellij.openapi.util.SystemInfo
import com.intellij.openapi.util.registry.Registry
import com.intellij.util.ui.JBUI
import com.intellij... | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.ui.layout
import com.intellij.openapi.util.SystemInfo
import com.intellij.openapi.util.registry.Registry
import com.intellij.util.ui.JBUI
import com.intellij... | apache-2.0 | Kotlin |
0732f4c1bfa1d251750af074037a32d314770c9c | Replace Mutable list with list when able | ScreamingHawk/phone-saver | app/src/main/java/link/standen/michael/phonesaver/util/LocationHelper.kt | app/src/main/java/link/standen/michael/phonesaver/util/LocationHelper.kt | package link.standen.michael.phonesaver.util
import android.content.Context
import android.os.Environment
import com.google.gson.Gson
import com.google.gson.reflect.TypeToken
/**
* A helper class for managing the stored locations
*/
object LocationHelper {
const private val TAG = "LocationHelper"
const private v... | package link.standen.michael.phonesaver.util
import android.content.Context
import android.os.Environment
import com.google.gson.Gson
import com.google.gson.reflect.TypeToken
/**
* A helper class for managing the stored locations
*/
object LocationHelper {
const private val TAG = "LocationHelper"
const private v... | mit | Kotlin |
e175f4c1f21df06ea4b873c95a220ae74917a1b2 | refactor #894 Modify interface. | toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt | number/src/main/java/jp/toastkid/number/repository/GameRepository.kt | number/src/main/java/jp/toastkid/number/repository/GameRepository.kt | /*
* Copyright (c) 2022 toastkidjp.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompany this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html.
*/
package jp... | /*
* Copyright (c) 2022 toastkidjp.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompany this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html.
*/
package jp... | epl-1.0 | Kotlin |
232680cee755ca6708714036f65431e5475a7231 | Add extensions to start activities from Fragments | LouisCAD/Splitties,LouisCAD/Splitties,LouisCAD/Splitties | sample/src/main/java/com/louiscad/splittiessample/extensions/Fragment.kt | sample/src/main/java/com/louiscad/splittiessample/extensions/Fragment.kt | /*
* Copyright (c) 2018. Louis Cognault Ayeva Derman
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | /*
* Copyright (c) 2018. Louis Cognault Ayeva Derman
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | apache-2.0 | Kotlin |
7290ab55f1f48d10c1a63d25c9c4025259ce3689 | refactor #442 Care nullable variable. | toastkidjp/Jitte,toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt | app/src/main/java/jp/toastkid/yobidashi/planning_poker/CardFragment.kt | app/src/main/java/jp/toastkid/yobidashi/planning_poker/CardFragment.kt | package jp.toastkid.yobidashi.planning_poker
import android.os.Bundle
import android.util.TypedValue
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.annotation.LayoutRes
import androidx.databinding.DataBindingUtil
import androidx.fragment.app.Fragment
import jp... | package jp.toastkid.yobidashi.planning_poker
import androidx.databinding.DataBindingUtil
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.util.TypedValue
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.annotation.LayoutRes
import jp... | epl-1.0 | Kotlin |
6a3762d8e681c2cae006219a932ae471752424aa | Remove unused try-catch | encircled/jPut | jput-core/src/main/java/cz/encircled/jput/runner/JUnitTestRunnerSupport.kt | jput-core/src/main/java/cz/encircled/jput/runner/JUnitTestRunnerSupport.kt | package cz.encircled.jput.runner
import cz.encircled.jput.context.context
import cz.encircled.jput.model.SuiteConfiguration
import cz.encircled.jput.unit.PerformanceSuite
import org.junit.runners.ParentRunner
import org.junit.runners.model.RunnerScheduler
import java.util.concurrent.ExecutorService
import java.util.co... | package cz.encircled.jput.runner
import cz.encircled.jput.context.context
import cz.encircled.jput.model.SuiteConfiguration
import cz.encircled.jput.unit.PerformanceSuite
import org.junit.runners.ParentRunner
import org.junit.runners.model.RunnerScheduler
import java.util.concurrent.ExecutorService
import java.util.co... | apache-2.0 | Kotlin |
3fb070656abd6364bf08ad433d3e143c178749e9 | Update AuthenticationActivity (which extends BaseActivity class instead of Acitivity class) | RocketChat/Rocket.Chat.Android.Lily,RocketChat/Rocket.Chat.Android,RocketChat/Rocket.Chat.Android.Lily,RocketChat/Rocket.Chat.Android | app/src/main/java/chat/rocket/android/app/AuthenticationActivity.kt | app/src/main/java/chat/rocket/android/app/AuthenticationActivity.kt | package chat.rocket.android.app
import android.os.Bundle
import chat.rocket.android.BaseActivity
import chat.rocket.android.R
/**
* @author Filipe de Lima Brito (filipedelimabrito@gmail.com)
*/
class AuthenticationActivity : BaseActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.on... | package chat.rocket.android.app
import android.app.Activity
import android.app.Fragment
import android.os.Bundle
import chat.rocket.android.R
/**
* @author Filipe de Lima Brito (filipedelimabrito@gmail.com)
*/
class AuthenticationActivity : Activity() {
override fun onCreate(savedInstanceState: Bundle?) {
... | mit | Kotlin |
4919f29bdacbc954ce1b1b849b9a4e8eda54ada5 | refactor #853 Modify for compilation. | toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt | app/src/main/java/jp/toastkid/yobidashi/search/voice/VoiceSearch.kt | app/src/main/java/jp/toastkid/yobidashi/search/voice/VoiceSearch.kt | package jp.toastkid.yobidashi.search.voice
import android.content.Context
import android.content.Intent
import android.speech.RecognizerIntent
import android.view.View
import jp.toastkid.lib.intent.GooglePlayIntentFactory
import jp.toastkid.lib.preference.ColorPair
import jp.toastkid.yobidashi.BuildConfig
import jp.to... | package jp.toastkid.yobidashi.search.voice
import android.content.Context
import android.content.Intent
import android.speech.RecognizerIntent
import android.view.View
import jp.toastkid.lib.intent.GooglePlayIntentFactory
import jp.toastkid.lib.preference.ColorPair
import jp.toastkid.yobidashi.R
import jp.toastkid.yob... | epl-1.0 | Kotlin |
c5a8c694612feaf90e33b2782d81a84303eb895d | remove obsolete configuration closure delegate computation (IDEA-204313, EA-133159) | 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/gradle/java/src/service/resolve/GradleConfigurationsContributor.kt | plugins/gradle/java/src/service/resolve/GradleConfigurationsContributor.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.gradle.service.resolve
import groovy.lang.Closure
import org.jetbrains.plugins.gradle.service.resolve.GradleCommonClassNames.*
import org.jetbrains.... | // 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.gradle.service.resolve
import com.intellij.patterns.ElementPattern
import com.intellij.patterns.PsiJavaPatterns.psiElement
import com.intellij.psi.P... | apache-2.0 | Kotlin |
aed5d0e3527b2d6d3c2301455ba4e461636ad5e2 | refactor #605 Use explicit importing. | toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt | app/src/test/java/jp/toastkid/yobidashi/browser/archive/IdGeneratorTest.kt | app/src/test/java/jp/toastkid/yobidashi/browser/archive/IdGeneratorTest.kt | package jp.toastkid.yobidashi.browser.archive
import org.junit.Assert.assertEquals
import org.junit.Assert.assertNull
import org.junit.Assert.assertTrue
import org.junit.Test
import org.junit.runner.RunWith
import org.robolectric.RobolectricTestRunner
/**
* @author toastkidjp
*/
@RunWith(RobolectricTestRunner::clas... | package jp.toastkid.yobidashi.browser.archive
import org.junit.Assert.*
import org.junit.Test
import org.junit.runner.RunWith
import org.robolectric.RobolectricTestRunner
/**
* @author toastkidjp
*/
@RunWith(RobolectricTestRunner::class)
class IdGeneratorTest {
@Test
fun test() {
val idGenerator = ... | epl-1.0 | Kotlin |
e3d787c6f5d1635858ec2a17885c32cedd04195a | Use constants in PerformanceTests | LouisCAD/Splitties,LouisCAD/Splitties,LouisCAD/Splitties | preferences/src/androidTest/java/splitties/preferences/PerformanceTests.kt | preferences/src/androidTest/java/splitties/preferences/PerformanceTests.kt | /*
* Copyright (c) 2017. Louis Cognault Ayeva Derman
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | /*
* Copyright (c) 2017. Louis Cognault Ayeva Derman
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | apache-2.0 | Kotlin |
eeba52fae8fbd6d0e2790e7dd2a2e9cd7b1dff18 | Remove unused imports | google/ground-android,google/ground-android,google/ground-android | ground/src/main/java/com/google/android/ground/ui/map/MapController.kt | ground/src/main/java/com/google/android/ground/ui/map/MapController.kt | /*
* Copyright 2022 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 2022 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 |
2f3f7015d209c60974a7c12b5a046d7c7fe05e55 | Fix typo in JavaDoc | magnusja/libaums,magnusja/libaums,mjdev/libaums,magnusja/libaums | libaums/src/main/java/com/github/mjdev/libaums/driver/BlockDeviceDriver.kt | libaums/src/main/java/com/github/mjdev/libaums/driver/BlockDeviceDriver.kt | /*
* (C) Copyright 2014 mjahnen <jahnen@in.tum.de>
*
* 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 applicabl... | /*
* (C) Copyright 2014 mjahnen <jahnen@in.tum.de>
*
* 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 applicabl... | apache-2.0 | Kotlin |
700a929488b33f5becbd0c976dbe48953290943d | apply suggestions for `Environment` | kittinunf/Fuel,kittinunf/Fuel | fuel/src/main/kotlin/com/github/kittinunf/fuel/core/Environment.kt | fuel/src/main/kotlin/com/github/kittinunf/fuel/core/Environment.kt | package com.github.kittinunf.fuel.core
import java.util.concurrent.Executor
interface Environment {
var callbackExecutor: Executor
}
fun createEnvironment(): Environment = try {
Class.forName(AndroidEnvironmentClass).newInstance() as Environment
} catch(exception: ClassNotFoundException) {
DefaultEnviron... | package com.github.kittinunf.fuel.core
import java.util.concurrent.Executor
interface Environment {
var callbackExecutor: Executor
}
fun createEnvironment(): Environment {
try {
return Class.forName(AndroidEnvironmentClass).newInstance() as Environment
} catch(exception: ClassNotFoundException) {... | mit | Kotlin |
6eb62ae6a7db0c9e16ffe6d82f702671cfe18009 | Remove ignored test | intellij-purescript/intellij-purescript,intellij-purescript/intellij-purescript | src/test/java/org/purescript/psi/var/ReferenceTest.kt | src/test/java/org/purescript/psi/var/ReferenceTest.kt | package org.purescript.psi.`var`
import org.purescript.file.PSFile
import org.purescript.parser.PSLanguageParserTestBase
import org.purescript.psi.PSValueDeclaration
import org.purescript.psi.PSVarBinderImpl
class ReferenceTest : PSLanguageParserTestBase("parser") {
fun testFindTopLevelValueDeclarationWithName() ... | package org.purescript.psi.`var`
import com.intellij.psi.PsiNamedElement
import com.intellij.psi.util.PsiTreeUtil
import org.purescript.file.PSFile
import org.purescript.parser.PSLanguageParserTestBase
import org.purescript.psi.data.PSDataDeclaration
import org.purescript.psi.PSIdentifier
import org.purescript.psi.PSV... | bsd-3-clause | Kotlin |
0f35eebade63cda8e90881e97eb58cbb09640ac2 | Optimize imports | dmeybohm/chocolate-cakephp,dmeybohm/chocolate-cakephp,dmeybohm/chocolate-cakephp | src/com/daveme/intellij/chocolateCakePHP/completion/completionFunctions.kt | src/com/daveme/intellij/chocolateCakePHP/completion/completionFunctions.kt | package com.daveme.intellij.chocolateCakePHP.completion
import com.daveme.intellij.chocolateCakePHP.util.chopFromEnd
import com.intellij.codeInsight.completion.CompletionResultSet
import com.intellij.codeInsight.completion.InsertHandler
import com.intellij.codeInsight.lookup.LookupElement
import com.intellij.codeInsig... | package com.daveme.intellij.chocolateCakePHP.completion
import com.daveme.intellij.chocolateCakePHP.util.chopFromEnd
import com.intellij.codeInsight.completion.CompletionResultSet
import com.intellij.codeInsight.completion.InsertHandler
import com.intellij.codeInsight.lookup.LookupElement
import com.intellij.codeInsig... | mit | Kotlin |
fb677fea2f36cbb1e8c7ca7fb41ca3699d8165f1 | add return type | emoji-gen/Emoji-Android | lib.emoji/src/main/java/moe/pine/emoji/lib/emoji/JsonSerializer.kt | lib.emoji/src/main/java/moe/pine/emoji/lib/emoji/JsonSerializer.kt | package moe.pine.emoji.lib.emoji
import com.google.gson.Gson
import com.google.gson.reflect.TypeToken
import moe.pine.emoji.lib.emoji.model.Font
/**
* Created by pine on May 7, 2017.
*/
object JsonSerializer {
private val gson: Gson by lazy { Gson() }
fun fontsToJson(fonts: List<Font>): String = this.gson.... | package moe.pine.emoji.lib.emoji
import com.google.gson.Gson
import com.google.gson.reflect.TypeToken
import moe.pine.emoji.lib.emoji.model.Font
/**
* Created by pine on May 7, 2017.
*/
object JsonSerializer {
private val gson: Gson by lazy { Gson() }
fun fontsToJson(fonts: List<Font>) = this.gson.toJson(f... | mit | Kotlin |
54092018b8361749443b262130c7783e4cae30b7 | Add missing FirebaseService file from previous commit | MarkNKamau/JustJava-Android | app/src/main/java/com/marknkamau/justjava/data/network/FirebaseService.kt | app/src/main/java/com/marknkamau/justjava/data/network/FirebaseService.kt | package com.marknkamau.justjava.data.network
import com.google.firebase.iid.FirebaseInstanceId
import kotlinx.coroutines.tasks.await
interface FirebaseService {
suspend fun getFcmToken(): String
}
class AppFirebaseService : FirebaseService {
private val firebaseInstanceId by lazy { FirebaseInstanceId.getInst... | apache-2.0 | Kotlin | |
60eeaf9ccef272e202ff0dfb07dc21f83d231556 | Make Tooltips immutable | Doist/TodoistModels,Doist/TodoistPojos | src/main/java/com/todoist/pojo/Tooltips.kt | src/main/java/com/todoist/pojo/Tooltips.kt | package com.todoist.pojo
open class Tooltips(
open val scheduled: Set<String> = emptySet(),
open val seen: Set<String> = emptySet()
)
| package com.todoist.pojo
open class Tooltips(
open val scheduled: Set<String> = mutableSetOf(),
open val seen: Set<String> = mutableSetOf()
)
| mit | Kotlin |
bee0076b1587f96c55df04d6e9a9fabb2ac3d400 | Add debug logging after successful empty update | fanart-tv/fanarttv-discord-update-bot | src/main/kotlin/tv/fanart/bot/UpdateBot.kt | src/main/kotlin/tv/fanart/bot/UpdateBot.kt | package tv.fanart.bot
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
import mu.KotlinLogging
import tv.fanart.api.FanartApi
import tv.fanart.api.model.ChangeResponse
import tv.fanart.discord.ChangeMapper
import tv.fanart.discord.DiscordWebhookClient
import java.time.Instant
class UpdateBo... | package tv.fanart.bot
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
import mu.KotlinLogging
import tv.fanart.api.FanartApi
import tv.fanart.api.model.ChangeResponse
import tv.fanart.discord.ChangeMapper
import tv.fanart.discord.DiscordWebhookClient
import java.time.Instant
class UpdateBo... | mit | Kotlin |
7ec0d73d850ca26baf795f970e3687775a612c9b | Replace Int labels with SWSLabeler.Label | KotlinNLP/SimpleDNN | src/test/kotlin/deeplearning/sequencelabeling/SWSLFeaturesExtractorSpec.kt | src/test/kotlin/deeplearning/sequencelabeling/SWSLFeaturesExtractorSpec.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 |
fa475084ad7567bf32e414294f02bfebb67add05 | Reformat Exceptions | MarkusAmshove/Kluent,MarkusAmshove/Kluent | src/main/kotlin/org/amshove/kluent/Mocking.kt | src/main/kotlin/org/amshove/kluent/Mocking.kt | package org.amshove.kluent
import org.mockito.Mockito.*
import org.mockito.invocation.InvocationOnMock
import org.mockito.stubbing.OngoingStubbing
import kotlin.reflect.KClass
fun <T : Any> mock(targetClass: KClass<T>): T {
return mock(targetClass.javaObjectType)
}
infix fun <T> VerifyKeyword.on(mock:... | package org.amshove.kluent
import org.mockito.Mockito.*
import org.mockito.invocation.InvocationOnMock
import org.mockito.stubbing.OngoingStubbing
import kotlin.reflect.KClass
fun <T : Any> mock(targetClass: KClass<T>): T {
return mock(targetClass.javaObjectType)
}
infix fun <T> VerifyKeyword.on(mock:... | mit | Kotlin |
ba8501096ca13267877d791f84fed49ba5e52faf | Revert pspdfkit version | Adventech/sabbath-school-android-2,Adventech/sabbath-school-android-2,Adventech/sabbath-school-android-2 | buildSrc/src/main/kotlin/dependencies/Versions.kt | buildSrc/src/main/kotlin/dependencies/Versions.kt | package dependencies
object Versions {
const val COROUTINES = "1.5.2"
const val COMPOSE = "1.0.4"
const val MATERIAL = "1.4.0"
const val ACCOMPANIST = "0.20.0"
object AndroidX {
const val APPCOMPAT = "1.3.1"
const val RECYCLER_VIEW = "1.2.1"
const val LIFECYCLE = "2.3.1"
... | package dependencies
object Versions {
const val COROUTINES = "1.5.2"
const val COMPOSE = "1.0.4"
const val MATERIAL = "1.4.0"
const val ACCOMPANIST = "0.20.0"
object AndroidX {
const val APPCOMPAT = "1.3.1"
const val RECYCLER_VIEW = "1.2.1"
const val LIFECYCLE = "2.3.1"
... | mit | Kotlin |
588f065a01398d8a78810c0ff9a8aebc86b0da4e | mark DiffVirtualFile as VirtualFileWithoutContent | 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/diff-impl/src/com/intellij/diff/editor/DiffVirtualFile.kt | platform/diff-impl/src/com/intellij/diff/editor/DiffVirtualFile.kt | /*
* Copyright 2000-2015 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-2015 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 |
a5d6ad7430b34ed9af2633efd0c58675d17f3ce8 | refactor #606 Convert to expression body. | toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Yobidashi_kt | article/src/main/java/jp/toastkid/article_viewer/article/list/sort/Sort.kt | article/src/main/java/jp/toastkid/article_viewer/article/list/sort/Sort.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 |
d24942a3c2e17a5872d8e5d84c3fcbf839da7d91 | make velocity and angle accessible | AlmasB/FXGL,AlmasB/FXGL,AlmasB/FXGL,AlmasB/FXGL | fxgl/src/main/kotlin/com/almasb/fxgl/dsl/components/RandomMoveComponent.kt | fxgl/src/main/kotlin/com/almasb/fxgl/dsl/components/RandomMoveComponent.kt | /*
* FXGL - JavaFX Game Library. The MIT License (MIT).
* Copyright (c) AlmasB (almaslvl@gmail.com).
* See LICENSE for details.
*/
package com.almasb.fxgl.dsl.components
import com.almasb.fxgl.core.math.FXGLMath.*
import com.almasb.fxgl.core.math.Vec2
import com.almasb.fxgl.dsl.random
import com.almasb.fxgl.entit... | /*
* FXGL - JavaFX Game Library. The MIT License (MIT).
* Copyright (c) AlmasB (almaslvl@gmail.com).
* See LICENSE for details.
*/
package com.almasb.fxgl.dsl.components
import com.almasb.fxgl.core.math.FXGLMath.*
import com.almasb.fxgl.core.math.Vec2
import com.almasb.fxgl.dsl.random
import com.almasb.fxgl.entit... | mit | Kotlin |
0be915581c59aa4cc3341787462b1a9c7c32f7f7 | Adjust memory, remove non-jdk17 option | RoaringBitmap/RoaringBitmap,RoaringBitmap/RoaringBitmap,RoaringBitmap/RoaringBitmap,RoaringBitmap/RoaringBitmap | RoaringBitmap/build.gradle.kts | RoaringBitmap/build.gradle.kts | val deps: Map<String, String> by extra
dependencies {
implementation(project(":shims"))
testImplementation("org.junit.jupiter:junit-jupiter-api:${deps["jupiter"]}")
testImplementation("org.junit.jupiter:junit-jupiter-params:${deps["jupiter"]}")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:$... | val deps: Map<String, String> by extra
dependencies {
implementation(project(":shims"))
testImplementation("org.junit.jupiter:junit-jupiter-api:${deps["jupiter"]}")
testImplementation("org.junit.jupiter:junit-jupiter-params:${deps["jupiter"]}")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:$... | apache-2.0 | Kotlin |
dc9d0356e7570a9334141ad3b66c998af586c3f6 | refactor #431 Add test case. | toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt | barcode/src/test/java/jp/toastkid/barcode/generator/BarcodeGeneratorTest.kt | barcode/src/test/java/jp/toastkid/barcode/generator/BarcodeGeneratorTest.kt | /*
* Copyright (c) 2022 toastkidjp.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompany this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html.
*/
package jp... | /*
* Copyright (c) 2022 toastkidjp.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompany this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html.
*/
package jp... | epl-1.0 | Kotlin |
47db0260fa54b90b30adba6afe30375df9195f4e | refactor #412 Implement DateFormatHolder's unit test. | toastkidjp/Jitte,toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt | app/src/test/java/jp/toastkid/yobidashi/libs/DateFormatHolderTest.kt | app/src/test/java/jp/toastkid/yobidashi/libs/DateFormatHolderTest.kt | /*
* Copyright (c) 2021 toastkidjp.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompany this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html.
*/
package jp... | epl-1.0 | Kotlin | |
51867aefae755e345d5e57e357fd7bb242b2f716 | add LiveDataMerger | NiciDieNase/chaosflix,NiciDieNase/chaosflix,NiciDieNase/chaosflix,NiciDieNase/chaosflix | common/src/main/java/de/nicidienase/chaosflix/common/util/LiveDataMerger.kt | common/src/main/java/de/nicidienase/chaosflix/common/util/LiveDataMerger.kt | package de.nicidienase.chaosflix.common.util
import android.arch.lifecycle.LiveData
import android.arch.lifecycle.MediatorLiveData
class LiveDataMerger<T,U,R> {
fun merge(liveData1: LiveData<T>, liveData2:LiveData<U>, mergeFunction: (T?,U?)-> R): LiveData<R>{
val result = MediatorLiveData<R>()
result.addSource(... | mit | Kotlin | |
80e39710e841758e85a98df0b8551a63416069fd | Remove parsed script file from manager on editor closing | noemus/kotlin-eclipse,noemus/kotlin-eclipse | kotlin-eclipse-ui/src/org/jetbrains/kotlin/ui/editors/KotlinScriptEditor.kt | kotlin-eclipse-ui/src/org/jetbrains/kotlin/ui/editors/KotlinScriptEditor.kt | package org.jetbrains.kotlin.ui.editors
import com.intellij.openapi.util.text.StringUtil
import org.eclipse.core.resources.IFile
import org.eclipse.jdt.core.IJavaProject
import org.eclipse.jdt.core.JavaCore
import org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor
import org.eclipse.jdt.internal.ui.javaedito... | package org.jetbrains.kotlin.ui.editors
import com.intellij.openapi.util.text.StringUtil
import org.eclipse.core.resources.IFile
import org.eclipse.jdt.core.IJavaProject
import org.eclipse.jdt.core.JavaCore
import org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor
import org.eclipse.jdt.internal.ui.javaedito... | apache-2.0 | Kotlin |
1f3ce668d37467ba8d8f312c3b3752fc926eb2d2 | Replace generic with just the Type. | MiniMineCraft/MiniBus | src/main/kotlin/me/camdenorrb/minibus/listener/ListenerFunction.kt | src/main/kotlin/me/camdenorrb/minibus/listener/ListenerFunction.kt | package me.camdenorrb.minibus.listener
import me.camdenorrb.minibus.event.MiniEvent
import kotlin.reflect.KFunction
/**
* Created by camdenorrb on 3/5/17.
*/
class ListenerFunction(val listener: MiniListener, val priority: ListenerPriority, val function: KFunction<*>): Comparable<ListenerFunction> {
operator fun... | package me.camdenorrb.minibus.listener
import me.camdenorrb.minibus.event.MiniEvent
import kotlin.reflect.KFunction
/**
* Created by camdenorrb on 3/5/17.
*/
class ListenerFunction(val listener: MiniListener, val priority: ListenerPriority, val function: KFunction<*>): Comparable<ListenerFunction> {
operator fun... | apache-2.0 | Kotlin |
ad8bf0e340fb69277568ebbfc3c5c56faddb47a9 | Support compression in http server | Le-Chiffre/Yttrium,RimmerM/Yttrium | Server/src/com/rimmer/yttrium/server/http/Server.kt | Server/src/com/rimmer/yttrium/server/http/Server.kt | package com.rimmer.yttrium.server.http
import com.rimmer.yttrium.server.ServerContext
import com.rimmer.yttrium.server.listen
import io.netty.channel.ChannelFutureListener
import io.netty.channel.ChannelHandlerContext
import io.netty.channel.ChannelInboundHandlerAdapter
import io.netty.handler.codec.http.*
import io.n... | package com.rimmer.yttrium.server.http
import com.rimmer.yttrium.server.ServerContext
import com.rimmer.yttrium.server.listen
import io.netty.channel.ChannelFutureListener
import io.netty.channel.ChannelHandlerContext
import io.netty.channel.ChannelInboundHandlerAdapter
import io.netty.handler.codec.http.*
import io.n... | mit | Kotlin |
cd362cef3511e87bd7ec096821572c50b3bda86e | Update TC token | blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,grad... | .teamcity/Gradle_Check/projects/RootProject.kt | .teamcity/Gradle_Check/projects/RootProject.kt | package projects
import configurations.FunctionalTest
import configurations.StagePasses
import jetbrains.buildServer.configs.kotlin.v2018_2.AbsoluteId
import jetbrains.buildServer.configs.kotlin.v2018_2.ParameterDisplay
import jetbrains.buildServer.configs.kotlin.v2018_2.Project
import jetbrains.buildServer.configs.ko... | package projects
import configurations.FunctionalTest
import configurations.StagePasses
import jetbrains.buildServer.configs.kotlin.v2018_2.AbsoluteId
import jetbrains.buildServer.configs.kotlin.v2018_2.ParameterDisplay
import jetbrains.buildServer.configs.kotlin.v2018_2.Project
import jetbrains.buildServer.configs.ko... | apache-2.0 | Kotlin |
fd5d52a70988f3c66345017891ef5a21a64fe072 | Remove confirmation prompt for passive biometric unlock (e.g. iris/face) | CarlosEsco/tachiyomi,inorichi/mangafeed,inorichi/mangafeed,inorichi/tachiyomi,inorichi/tachiyomi | app/src/main/java/eu/kanade/tachiyomi/ui/security/BiometricUnlockActivity.kt | app/src/main/java/eu/kanade/tachiyomi/ui/security/BiometricUnlockActivity.kt | package eu.kanade.tachiyomi.ui.security
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.biometric.BiometricPrompt
import eu.kanade.tachiyomi.R
import eu.kanade.tachiyomi.data.preference.PreferencesHelper
import java.util.Date
import java.util.concurrent.Executors
import uy.kohe... | package eu.kanade.tachiyomi.ui.security
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.biometric.BiometricPrompt
import eu.kanade.tachiyomi.R
import eu.kanade.tachiyomi.data.preference.PreferencesHelper
import java.util.Date
import java.util.concurrent.Executors
import uy.kohe... | apache-2.0 | Kotlin |
aa93609ef1f19e2087fea97c590c4d140a10d40d | Refactor CallLogging to accept configuration, making it possible to log errors only | ktorio/ktor,ktorio/ktor,ktorio/ktor,ktorio/ktor | ktor-core/src/org/jetbrains/ktor/logging/DefaultLoggingInterceptor.kt | ktor-core/src/org/jetbrains/ktor/logging/DefaultLoggingInterceptor.kt | package org.jetbrains.ktor.logging
import org.jetbrains.ktor.application.*
import org.jetbrains.ktor.http.*
import org.jetbrains.ktor.pipeline.*
import org.jetbrains.ktor.request.*
import org.jetbrains.ktor.util.*
class CallLogging(val log: ApplicationLog, val logSuccess: Boolean) {
class Configuration {
... | package org.jetbrains.ktor.logging
import org.jetbrains.ktor.application.*
import org.jetbrains.ktor.http.*
import org.jetbrains.ktor.pipeline.*
import org.jetbrains.ktor.request.*
import org.jetbrains.ktor.util.*
object CallLogging : ApplicationFeature<Application, Unit, Unit> {
override val key: AttributeKey<Un... | apache-2.0 | Kotlin |
40603878cd2a7189ad293aaaf35ac4fdcc7b55bc | refactor #580 Remove useless setTitle(). | toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Jitte,toastkidjp/Yobidashi_kt | app/src/main/java/jp/toastkid/yobidashi/tab/model/ArticleListTab.kt | app/src/main/java/jp/toastkid/yobidashi/tab/model/ArticleListTab.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 |
eae2f37bb76bffec137da388b3a60ae16c9bfea7 | Fix Javadoc language | SpineEventEngine/base,SpineEventEngine/base,SpineEventEngine/base | base/src/main/kotlin/io/spine/code/proto/FileDescriptorSetReader.kt | base/src/main/kotlin/io/spine/code/proto/FileDescriptorSetReader.kt | /*
* Copyright 2021, TeamDev. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Redistribution and use in source... | /*
* Copyright 2021, TeamDev. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Redistribution and use in source... | apache-2.0 | Kotlin |
2ce29370cc3a80723d6f881a4e769ef48d155efd | Fix sample formatting | google/accompanist,google/accompanist,google/accompanist | sample/src/main/java/dev/chrisbanes/accompanist/sample/SampleApplication.kt | sample/src/main/java/dev/chrisbanes/accompanist/sample/SampleApplication.kt | /*
* Copyright 2020 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 applic... | /*
* Copyright 2020 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 applic... | apache-2.0 | Kotlin |
de7210ad7325faf3f5922c81e550a3963b03966a | Improve test | matrix-org/matrix-android-sdk,matrix-org/matrix-android-sdk,matrix-org/matrix-android-sdk | matrix-sdk/src/test/java/org/matrix/androidsdk/util/FileUtilsTest.kt | matrix-sdk/src/test/java/org/matrix/androidsdk/util/FileUtilsTest.kt | /*
* Copyright 2018 New Vector Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | /*
* Copyright 2018 New Vector Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | apache-2.0 | Kotlin |
f7f0fa7483c14b0c2125e5e6abd44d9ad9b17dab | Update problem 2059 | fredyw/leetcode,fredyw/leetcode,fredyw/leetcode,fredyw/leetcode | src/main/java/leetcode/Problem2059.kt | src/main/java/leetcode/Problem2059.kt | package leetcode
/**
* https://leetcode.com/problems/minimum-operations-to-convert-number/
*/
class Problem2059 {
fun minimumOperations(nums: IntArray, start: Int, goal: Int): Int {
TODO()
}
}
fun main() {
val prob = Problem2059()
println(prob.minimumOperations(intArrayOf(2,4,12), 2, 12)) //... | package leetcode
/**
* https://leetcode.com/problems/minimum-operations-to-convert-number/
*/
class Problem2059 {
fun minimumOperations(nums: IntArray, start: Int, goal: Int): Int {
TODO()
}
}
fun main() {
val prob = Problem2059()
println(prob.minimumOperations(intArrayOf(2,4,12), 2, 12)) //... | mit | Kotlin |
469aca67ac9af79f91c07b54920a1c1e539af0a9 | Fix darker blending with wrong color | pyamsoft/pydroid | util/src/main/java/com/pyamsoft/pydroid/util/Color.kt | util/src/main/java/com/pyamsoft/pydroid/util/Color.kt | /*
* Copyright 2019 Peter Kenji Yamanaka
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | /*
* Copyright 2019 Peter Kenji Yamanaka
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | apache-2.0 | Kotlin |
e306eb4c5572c88425487b960c2541332bac49a2 | Add original etcd addressable directory implementation commented for re-implementation and removal. | orbit/orbit,orbit/orbit | src/orbit-etcd/src/main/kotlin/orbit.etcd/EtcdAddressableDirectory.kt | src/orbit-etcd/src/main/kotlin/orbit.etcd/EtcdAddressableDirectory.kt | /*
Copyright (C) 2015 - 2019 Electronic Arts Inc. All rights reserved.
This file is part of the Orbit Project <https://www.orbit.cloud>.
See license in LICENSE.
*/
package orbit.server.etcd
import orbit.server.mesh.AddressableDirectory
import orbit.server.mesh.LeaseDuration
import orbit.shared.addressable.Addres... | bsd-3-clause | Kotlin | |
d9f431618771bc4823eb48cdedfe5b1f050d1e78 | Correct impl targets | square/kotlinpoet,square/kotlinpoet | src/main/java/com/squareup/kotlinpoet/KModifier.kt | src/main/java/com/squareup/kotlinpoet/KModifier.kt | /*
* Copyright (C) 2017 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 agreed to... | /*
* Copyright (C) 2017 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 agreed to... | apache-2.0 | Kotlin |
4bdbf764b3d2595ed83166c770d81bfa2d0372ae | add startWith fucntion for Excludes | arturbosch/detekt,arturbosch/detekt,rock3r/detekt,Mauin/detekt,rock3r/detekt,arturbosch/detekt,Mauin/detekt,Mauin/detekt,rock3r/detekt,Mauin/detekt | detekt-api/src/main/kotlin/io/gitlab/arturbosch/detekt/api/Excludes.kt | detekt-api/src/main/kotlin/io/gitlab/arturbosch/detekt/api/Excludes.kt | package io.gitlab.arturbosch.detekt.api
class Excludes(excludeParameter: String) {
private val excludes = excludeParameter
.split(",")
.map { it.trim() }
.filter { it.isNotBlank() }
.map { it.removeSuffix("*") }
fun contains(value: String?) = excludes.any { value?.contains(it, ignoreCase = true) == true... | package io.gitlab.arturbosch.detekt.api
class Excludes(excludeParameter: String) {
private val excludes = excludeParameter
.split(",")
.map { it.trim() }
.filter { it.isNotBlank() }
.map { it.removeSuffix("*") }
fun contains(value: String?) = excludes.any { value?.contains(it, ignoreCase = true) == true... | apache-2.0 | Kotlin |
5964f2d66938e3ea80183364b18d2812aae7a88a | create observable in onCreate | nonylene/MackerelAgentAndroid,nonylene/MackerelAgentAndroid,nonylene/MackerelAgentAndroid | app/src/main/java/net/nonylene/mackerelagent/service/GatherMetricsService.kt | app/src/main/java/net/nonylene/mackerelagent/service/GatherMetricsService.kt | package net.nonylene.mackerelagent.service
import android.app.Notification
import android.app.PendingIntent
import android.app.Service
import android.content.Intent
import android.os.IBinder
import android.support.v4.content.WakefulBroadcastReceiver
import io.reactivex.Observable
import io.reactivex.disposables.Dispos... | package net.nonylene.mackerelagent.service
import android.app.Notification
import android.app.PendingIntent
import android.app.Service
import android.content.Intent
import android.os.IBinder
import android.support.v4.content.WakefulBroadcastReceiver
import net.nonylene.mackerelagent.MainActivity
import net.nonylene.ma... | mit | Kotlin |
940fcfd79099d64756eb4bff9d0d0c59c1502757 | Fix for null issue with intent | DVT/showcase-android,DVT/showcase-android,DVT/showcase-android | app/src/main/java/za/co/dvt/android/showcase/ui/splash/SplashActivity.kt | app/src/main/java/za/co/dvt/android/showcase/ui/splash/SplashActivity.kt | package za.co.dvt.android.showcase.ui.splash
import android.app.Activity
import android.content.Intent
import android.os.Bundle
import android.os.Handler
import android.support.annotation.MainThread
import android.support.annotation.StringRes
import android.support.design.widget.Snackbar
import android.support.v7.app.... | package za.co.dvt.android.showcase.ui.splash
import android.app.Activity
import android.content.Intent
import android.os.Bundle
import android.os.Handler
import android.support.annotation.MainThread
import android.support.annotation.StringRes
import android.support.design.widget.Snackbar
import android.support.v7.app.... | apache-2.0 | Kotlin |
025d8f698f935d43ba2fc8c9aae2a22ac70ac0a4 | fix sample | hitting1024/IndexedListViewForAndroid | sample/src/main/kotlin/jp/hitting/android/sample/indexedlist/MainActivity.kt | sample/src/main/kotlin/jp/hitting/android/sample/indexedlist/MainActivity.kt | package jp.hitting.android.sample.indexedlist
import android.app.Activity
import android.os.Bundle
import android.widget.ArrayAdapter
import jp.hitting.android.view.IndexedListView
import java.util.*
class MainActivity : Activity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(sav... | package jp.hitting.android.sample.indexedlist
import android.app.Activity
import android.os.Bundle
import android.widget.ArrayAdapter
import jp.hitting.android.view.IndexedListView
import java.util.*
class MainActivity : Activity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(sav... | mit | Kotlin |
a1f28d7b99a7f7e436d76c82b0026a30626164ec | Remove unused import | zielu/GitToolBox,zielu/GitToolBox,zielu/GitToolBox | src/main/kotlin/zielu/gittoolbox/ui/statusbar/GitStatusWidgetLocalGateway.kt | src/main/kotlin/zielu/gittoolbox/ui/statusbar/GitStatusWidgetLocalGateway.kt | package zielu.gittoolbox.ui.statusbar
import com.intellij.openapi.project.Project
import com.intellij.openapi.vfs.VirtualFile
import git4idea.repo.GitRepository
import zielu.gittoolbox.cache.PerRepoInfoCache
import zielu.gittoolbox.cache.RepoInfo
import zielu.gittoolbox.cache.VirtualFileRepoCache
import zielu.gittoolb... | package zielu.gittoolbox.ui.statusbar
import com.intellij.openapi.project.Project
import com.intellij.openapi.vfs.VirtualFile
import git4idea.repo.GitRepository
import zielu.gittoolbox.cache.PerRepoInfoCache
import zielu.gittoolbox.cache.RepoInfo
import zielu.gittoolbox.cache.VirtualFileRepoCache
import zielu.gittoolb... | apache-2.0 | Kotlin |
c9138832a38ecc36ca4a0a11340ec9363cfaf340 | Add Swift path to performance test workers | robinverduijn/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,robinverduijn/gradle,gradle/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradl... | .teamcity/Gradle_Check/configurations/IndividualPerformanceScenarioWorkers.kt | .teamcity/Gradle_Check/configurations/IndividualPerformanceScenarioWorkers.kt | package configurations
import jetbrains.buildServer.configs.kotlin.v10.BuildStep
import jetbrains.buildServer.configs.kotlin.v10.buildSteps.gradle
import jetbrains.buildServer.configs.kotlin.v10.buildSteps.script
import model.CIBuildModel
class IndividualPerformanceScenarioWorkers(model: CIBuildModel) : BaseGradleBui... | package configurations
import jetbrains.buildServer.configs.kotlin.v10.BuildStep
import jetbrains.buildServer.configs.kotlin.v10.buildSteps.gradle
import jetbrains.buildServer.configs.kotlin.v10.buildSteps.script
import model.CIBuildModel
class IndividualPerformanceScenarioWorkers(model: CIBuildModel) : BaseGradleBui... | apache-2.0 | Kotlin |
144f3d488c2becd5e469938face9bafa2ccb4e6b | Update class after refactoring presenter contract. | ramonrabello/Kiphy | app/src/main/kotlin/com/github/ramonrabello/kiphy/trends/TrendingPresenter.kt | app/src/main/kotlin/com/github/ramonrabello/kiphy/trends/TrendingPresenter.kt | package com.github.ramonrabello.kiphy.trends
import com.github.ramonrabello.kiphy.BuildConfig
import com.github.ramonrabello.kiphy.data.GiphyApi
import com.github.ramonrabello.kiphy.trends.model.TrendingResponse
import retrofit2.Call
import retrofit2.Callback
import retrofit2.Response
/**
* Presenter implementation ... | package com.github.ramonrabello.kiphy.trends
import com.github.ramonrabello.kiphy.BuildConfig
import com.github.ramonrabello.kiphy.data.GiphyApi
import com.github.ramonrabello.kiphy.data.model.Trending
import retrofit2.Call
import retrofit2.Callback
import retrofit2.Response
/**
* Presenter implementation for Trendi... | apache-2.0 | Kotlin |
865ba4ccb33019dd7c13595e125857cf00157ea8 | reset realm before after rebbot or update package | nonylene/MackerelAgentAndroid,nonylene/MackerelAgentAndroid,nonylene/MackerelAgentAndroid | app/src/main/java/net/nonylene/mackerelagent/receiver/RebootUpdateReceiver.kt | app/src/main/java/net/nonylene/mackerelagent/receiver/RebootUpdateReceiver.kt | package net.nonylene.mackerelagent.receiver
import android.content.Context
import android.content.Intent
import android.support.v4.content.WakefulBroadcastReceiver
import io.realm.Realm
import net.nonylene.mackerelagent.utils.createGatherMetricsServiceIntent
class RebootUpdateReceiver : WakefulBroadcastReceiver() {
... | package net.nonylene.mackerelagent.receiver
import android.content.Context
import android.content.Intent
import android.support.v4.content.WakefulBroadcastReceiver
import net.nonylene.mackerelagent.service.GatherMetricsService
class RebootUpdateReceiver : WakefulBroadcastReceiver() {
override fun onReceive(conte... | mit | Kotlin |
bae646b36c214a49565872dbb51a678c2db097e9 | Use delegation | SpineEventEngine/core-java,SpineEventEngine/core-java,SpineEventEngine/core-java | server/src/main/kotlin/io/spine/server/event/model/RejectionEnvelope.kt | server/src/main/kotlin/io/spine/server/event/model/RejectionEnvelope.kt | /*
* Copyright 2021, TeamDev. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Redistribution and use in source... | /*
* Copyright 2021, TeamDev. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Redistribution and use in source... | apache-2.0 | Kotlin |
1472ce5a65a9e1e31952525d073468ad1e1769e7 | improve naming | nitram509/intellij-idea-plugin-serializer-toolbox,nitram509/intellij-idea-plugin-serializer-toolbox | src/main/kotlin/de/bitkings/nitram509/serializertoolbox/SelectFieldsDialog.kt | src/main/kotlin/de/bitkings/nitram509/serializertoolbox/SelectFieldsDialog.kt | package de.bitkings.nitram509.serializertoolbox
import com.intellij.ide.util.DefaultPsiElementCellRenderer
import com.intellij.openapi.ui.DialogWrapper
import com.intellij.openapi.ui.LabeledComponent
import com.intellij.psi.PsiClass
import com.intellij.psi.PsiField
import com.intellij.ui.CollectionListModel
import com... | package de.bitkings.nitram509.serializertoolbox
import com.intellij.ide.util.DefaultPsiElementCellRenderer
import com.intellij.openapi.ui.DialogWrapper
import com.intellij.openapi.ui.LabeledComponent
import com.intellij.psi.PsiClass
import com.intellij.psi.PsiField
import com.intellij.ui.CollectionListModel
import com... | mit | Kotlin |
40ffd6f1c6a06da3c37f5d6cc13818c68676ad7f | Allow extensions to be accessed via delegated properties | robinverduijn/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle-script-kotlin,robinver... | src/main/kotlin/org/gradle/script/lang/kotlin/ExtensionContainerExtensions.kt | src/main/kotlin/org/gradle/script/lang/kotlin/ExtensionContainerExtensions.kt | /*
* Copyright 2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | apache-2.0 | Kotlin | |
20fe47c12d770d24b2d48aebf5a7909330f90d51 | fix fast image/video checks | canou/Simple-Commons | commons/src/main/kotlin/com/simplemobiletools/commons/extensions/File.kt | commons/src/main/kotlin/com/simplemobiletools/commons/extensions/File.kt | package com.simplemobiletools.commons.extensions
import android.graphics.BitmapFactory
import android.media.MediaMetadataRetriever
import java.io.File
fun File.isImageVideoGif() = absolutePath.isImageFast() || absolutePath.isVideoFast() || absolutePath.isGif()
fun File.isGif() = absolutePath.endsWith(".gif", true)
fu... | package com.simplemobiletools.commons.extensions
import android.graphics.BitmapFactory
import android.media.MediaMetadataRetriever
import java.io.File
fun File.isImageVideoGif() = absolutePath.isImageFast() || absolutePath.isVideoFast() || absolutePath.isGif()
fun File.isGif() = absolutePath.endsWith(".gif", true)
fu... | apache-2.0 | Kotlin |
2798ec804ee8bdd728e2d8a1baff2875c44622c2 | Add project to module mapping. | jenetics/jenetics,jenetics/jenetics,jenetics/jenetics,jenetics/jenetics,jenetics/jenetics,jenetics/jenetics,jenetics/jenetics | buildSrc/src/main/kotlin/Env.kt | buildSrc/src/main/kotlin/Env.kt | /*
* Java Genetic Algorithm Library (@__identifier__@).
* Copyright (c) @__year__@ Franz Wilhelmstötter
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/... | /*
* Java Genetic Algorithm Library (@__identifier__@).
* Copyright (c) @__year__@ Franz Wilhelmstötter
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/... | apache-2.0 | Kotlin |
66e6ca61aa25d64f6a9ffe5222d6d6f29d83f283 | Drop private_token GET parameter | Commit451/GitLabAndroid,Commit451/LabCoat | app/src/main/java/com/commit451/gitlab/api/AuthenticationRequestInterceptor.kt | app/src/main/java/com/commit451/gitlab/api/AuthenticationRequestInterceptor.kt | package com.commit451.gitlab.api
import com.commit451.gitlab.model.Account
import okhttp3.Interceptor
import okhttp3.Response
import java.io.IOException
/**
* Adds the private token to all requests
*/
class AuthenticationRequestInterceptor(private val account: Account) : Interceptor {
companion object {
... | package com.commit451.gitlab.api
import com.commit451.gitlab.model.Account
import okhttp3.Interceptor
import okhttp3.Response
import java.io.IOException
/**
* Adds the private token to all requests
*/
class AuthenticationRequestInterceptor(private val account: Account) : Interceptor {
companion object {
... | apache-2.0 | Kotlin |
e380b402b583df3dd5d067c013214ef865e786d6 | Add a List.asArrayList() extension method | GDG-Nantes/devfest-android,GDG-Nantes/devfest-android,GDG-Nantes/devfest-android,GDG-Nantes/devfest-android | app/src/main/kotlin/com/gdgnantes/devfest/android/util/CollectionExtensions.kt | app/src/main/kotlin/com/gdgnantes/devfest/android/util/CollectionExtensions.kt | package com.gdgnantes.devfest.android.util
fun <T> List<T>.asArrayList() = if (this is ArrayList) this else ArrayList(this) | apache-2.0 | Kotlin | |
a62c2f5cf0eacbed420d0b660bad80f15753a027 | Add Main Activity Unit Tests (#4171) | domdomegg/apps-android-commons,neslihanturan/apps-android-commons,commons-app/apps-android-commons,commons-app/apps-android-commons,commons-app/apps-android-commons,neslihanturan/apps-android-commons,nicolas-raoul/apps-android-commons,maskaravivek/apps-android-commons,domdomegg/apps-android-commons,neslihanturan/apps-a... | app/src/test/kotlin/fr/free/nrw/commons/contributions/MainActivityUnitTests.kt | app/src/test/kotlin/fr/free/nrw/commons/contributions/MainActivityUnitTests.kt | package fr.free.nrw.commons.contributions
import android.content.Context
import fr.free.nrw.commons.TestCommonsApplication
import fr.free.nrw.commons.navtab.NavTabLayout
import fr.free.nrw.commons.nearby.Place
import fr.free.nrw.commons.nearby.fragments.NearbyParentFragment
import org.junit.Assert
import org.junit.Bef... | apache-2.0 | Kotlin | |
67f24c40b9d5046c33491fa27538877d8fb4f242 | refactor Path | http4k/http4k,http4k/http4k,grover-ws-1/http4k,grover-ws-1/http4k,grover-ws-1/http4k,http4k/http4k,http4k/http4k,grover-ws-1/http4k,http4k/http4k,http4k/http4k,http4k/http4k,grover-ws-1/http4k | http4k-core/src/main/kotlin/org/http4k/lens/Path.kt | http4k-core/src/main/kotlin/org/http4k/lens/Path.kt | package org.http4k.lens
import org.http4k.lens.ParamMeta.BooleanParam
import org.http4k.lens.ParamMeta.NumberParam
import org.http4k.lens.ParamMeta.StringParam
typealias PathLens<T> = Lens<String, T>
/**
* Represents a uni-directional extraction of an entity from a target path segment.
*/
open class PathSpec<out O... | package org.http4k.lens
import org.http4k.lens.ParamMeta.BooleanParam
import org.http4k.lens.ParamMeta.NumberParam
import org.http4k.lens.ParamMeta.StringParam
typealias PathLens<T> = Lens<String, T>
/**
* Represents a uni-directional extraction of an entity from a target path segment.
*/
open class PathSpec<OUT>(... | apache-2.0 | Kotlin |
6b475b239f7e3f11dc797eb35729b6a6ec407652 | configure classloader to handle tyrus impl loading. | 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/space/src/main/kotlin/circlet/components/IdePluginClient.kt | plugins/space/src/main/kotlin/circlet/components/IdePluginClient.kt | package circlet.components
import circlet.client.*
import circlet.protocol.*
import rx.*
import rx.subjects.*
import javax.websocket.*
class IdePluginClient {
private var session: Session? = null
var connection : ModelConnection? = null
fun connect() {
Thread.currentThread().setContextClassLoade... | package circlet.components
import circlet.client.*
import circlet.protocol.*
import rx.*
import rx.subjects.*
import javax.websocket.*
class IdePluginClient {
private var session: Session? = null
var connection : ModelConnection? = null
fun connect(){
session = connectToServer("ws://localhost:80... | apache-2.0 | Kotlin |
039334f58083c102a7922951941cc0c6bb12ff40 | sort method in impl according to the order in the trait | Undin/intellij-rust,Undin/intellij-rust,Undin/intellij-rust,anton-okolelov/intellij-rust,intellij-rust/intellij-rust,intellij-rust/intellij-rust,intellij-rust/intellij-rust,anton-okolelov/intellij-rust,intellij-rust/intellij-rust,Undin/intellij-rust,Undin/intellij-rust,intellij-rust/intellij-rust,anton-okolelov/intelli... | src/main/kotlin/org/rust/ide/intentions/SortImplTraitMethodsIntention.kt | src/main/kotlin/org/rust/ide/intentions/SortImplTraitMethodsIntention.kt | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.ide.intentions
import com.intellij.openapi.editor.Editor
import com.intellij.openapi.project.Project
import com.intellij.psi.PsiElement
import org.rust.lang.core.psi.RsImplItem
import org.rust.l... | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.ide.intentions
import com.intellij.openapi.editor.Editor
import com.intellij.openapi.project.Project
import com.intellij.psi.PsiElement
import org.rust.lang.core.psi.RsImplItem
import org.rust.l... | mit | Kotlin |
e5aabaa547c7b6df3bff2847f6c9cec4f883c293 | test cosmetics | kerubistan/kerub,K0zka/kerub,K0zka/kerub,K0zka/kerub,kerubistan/kerub,kerubistan/kerub | src/test/kotlin/com/github/kerubistan/kerub/planner/steps/UtilsKtTest.kt | src/test/kotlin/com/github/kerubistan/kerub/planner/steps/UtilsKtTest.kt | package com.github.kerubistan.kerub.planner.steps
import org.junit.Test
import kotlin.test.assertTrue
class UtilsKtTest {
@Test
fun factoryFeature() {
assertTrue("disabled features always produce empty list") {
factoryFeature(false) { listOf("a", "b") }.isEmpty()
}
assertTrue("enabled features may produc... | apache-2.0 | Kotlin | |
08cdc7f30147fbb02517f48db97c98b9ba3e55e5 | refactor #485 Enable to inject Dispatcher for fixing unit test. | toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Jitte | app/src/main/java/jp/toastkid/yobidashi/search/url_suggestion/QueryUseCase.kt | app/src/main/java/jp/toastkid/yobidashi/search/url_suggestion/QueryUseCase.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 |
ff7e5290268199f2a6e99890effc1eb36d889294 | Set correct project name | gradle/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,blindp... | .teamcity/Gradle_BuildCacheDeactivated/settings.kts | .teamcity/Gradle_BuildCacheDeactivated/settings.kts | package Gradle_BuildCacheDeactivated
import jetbrains.buildServer.configs.kotlin.v10.project
import jetbrains.buildServer.configs.kotlin.v10.version
import model.CIBuildModel
import model.JvmVersion
import model.OS
import model.Stage
import model.TestCoverage
import model.TestType
import projects.RootProject
/*
The s... | package Gradle_BuildCacheDeactivated
import jetbrains.buildServer.configs.kotlin.v10.project
import jetbrains.buildServer.configs.kotlin.v10.version
import model.CIBuildModel
import model.JvmVersion
import model.OS
import model.Stage
import model.TestCoverage
import model.TestType
import projects.RootProject
/*
The s... | apache-2.0 | Kotlin |
b8d97d2a39f8002c50861f275036182c021c5593 | modify file dir | wmh-demos/Secret,wmh-demos/Secret | src/main/java/me/wayne/Main.kt | src/main/java/me/wayne/Main.kt | package me.wayne
import me.wayne.file.readFileAndReadAsLine
object Main {
@JvmStatic
fun main(args: Array<String>) {
println("Hello IntelliJ!!!")
calculateTotal()
}
private fun calculateTotal() {
var total = 0F
val lines = readFileAndReadAsLine("money.txt")
l... | package me.wayne
import me.wayne.file.readFileAndReadAsLine
object Main {
@JvmStatic
fun main(args: Array<String>) {
println("Hello IntelliJ!!!")
calculateTotal()
}
private fun calculateTotal() {
var total = 0F
val lines = readFileAndReadAsLine("/Users/wayne/workspac... | apache-2.0 | Kotlin |
3096aa1ca6da1b8781bef82808b55dc64df83492 | Delete unused code | cemrich/zapp | app/src/main/java/de/christinecoenen/code/zapp/app/player/PlayerEventHandler.kt | app/src/main/java/de/christinecoenen/code/zapp/app/player/PlayerEventHandler.kt | package de.christinecoenen.code.zapp.app.player
import com.google.android.exoplayer2.PlaybackException
import com.google.android.exoplayer2.Player
import com.google.android.exoplayer2.analytics.AnalyticsListener
import com.google.android.exoplayer2.analytics.AnalyticsListener.EventTime
import com.google.android.exopla... | package de.christinecoenen.code.zapp.app.player
import com.google.android.exoplayer2.PlaybackException
import com.google.android.exoplayer2.Player
import com.google.android.exoplayer2.analytics.AnalyticsListener
import com.google.android.exoplayer2.analytics.AnalyticsListener.EventTime
import com.google.android.exopla... | mit | Kotlin |
b2ccf739c41fcf8e3ba998874ea82913aa986f76 | Correct return type of processor.process | jug6ernaut/auto-stub,jug6ernaut/auto-stub,jug6ernaut/auto-stub | autostub-compiler/src/main/kotlin/io/williamwebb/auto/stub/AutoStubProcessor.kt | autostub-compiler/src/main/kotlin/io/williamwebb/auto/stub/AutoStubProcessor.kt | package io.williamwebb.auto.stub
import com.google.auto.service.AutoService
import java.util.*
import javax.annotation.processing.*
import javax.lang.model.SourceVersion
import javax.lang.model.element.TypeElement
import javax.lang.model.util.Elements
import javax.lang.model.util.Types
/**
* Created by williamwebb o... | package io.williamwebb.auto.stub
import com.google.auto.service.AutoService
import java.util.*
import javax.annotation.processing.*
import javax.lang.model.SourceVersion
import javax.lang.model.element.TypeElement
import javax.lang.model.util.Elements
import javax.lang.model.util.Types
/**
* Created by williamwebb o... | apache-2.0 | Kotlin |
d22a56e83481eb5d1110fc93b33a8821d1ee9cbd | Use degrees as the base in Angle | TeamMeanMachine/meanlib,TeamMeanMachine/meanlib | src/main/kotlin/org/team2471/frc/lib/units/Angle.kt | src/main/kotlin/org/team2471/frc/lib/units/Angle.kt | package org.team2471.frc.lib.units
inline class Angle(val asDegrees: Double) {
operator fun plus(other: Angle) = Angle(asDegrees + other.asDegrees)
operator fun minus(other: Angle) = Angle(asDegrees - other.asDegrees)
operator fun times(factor: Double) = Angle(asDegrees * factor)
operator fun div(fa... | package org.team2471.frc.lib.units
inline class Angle(val asRadians: Double) {
operator fun plus(other: Angle) = Angle(asRadians + other.asRadians)
operator fun minus(other: Angle) = Angle(asRadians - other.asRadians)
operator fun times(factor: Double) = Angle(asRadians * factor)
operator fun div(fa... | unlicense | Kotlin |
127ef8e3b907ef8606c62969baa12439eeb14950 | Add trig methods to Angle | TeamMeanMachine/meanlib,TeamMeanMachine/meanlib | src/main/kotlin/org/team2471/frc/lib/units/Angle.kt | src/main/kotlin/org/team2471/frc/lib/units/Angle.kt | package org.team2471.frc.lib.units
import org.team2471.frc.lib.Unproven
@Unproven
inline class Angle(val asRadians: Double) {
operator fun plus(other: Angle) = Angle(asRadians + other.asRadians)
operator fun minus(other: Angle) = Angle(asRadians - other.asRadians)
operator fun times(factor: Double) = An... | package org.team2471.frc.lib.units
import org.team2471.frc.lib.Unproven
@Unproven
inline class Angle(val asRadians: Double) {
operator fun plus(other: Angle) = Angle(asRadians + other.asRadians)
operator fun minus(other: Angle) = Angle(asRadians - other.asRadians)
operator fun times(factor: Double) = An... | unlicense | Kotlin |
27b145cbaec4c780b771ace46c2aa118eacf5459 | Revert unintended TeamCity configuration change | 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,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpira... | .teamcity/Gradle_Util/Project.kt | .teamcity/Gradle_Util/Project.kt | package Gradle_Util
import jetbrains.buildServer.configs.kotlin.v2018_2.*
import jetbrains.buildServer.configs.kotlin.v2018_2.Project
import jetbrains.buildServer.configs.kotlin.v2018_2.projectFeatures.VersionedSettings
import jetbrains.buildServer.configs.kotlin.v2018_2.projectFeatures.versionedSettings
object Proje... | package Gradle_Util
import jetbrains.buildServer.configs.kotlin.v2018_2.*
import jetbrains.buildServer.configs.kotlin.v2018_2.Project
import jetbrains.buildServer.configs.kotlin.v2018_2.projectFeatures.VersionedSettings
import jetbrains.buildServer.configs.kotlin.v2018_2.projectFeatures.versionedSettings
object Proje... | apache-2.0 | Kotlin |
792dc2c2252fc772db6f33f60fa935a788c780ec | Add site client user agent | djkovrik/YapTalker,djkovrik/YapTalker | app/src/main/java/com/sedsoftware/yaptalker/data/remote/RequestsClientModule.kt | app/src/main/java/com/sedsoftware/yaptalker/data/remote/RequestsClientModule.kt | package com.sedsoftware.yaptalker.data.remote
import com.github.salomonbrys.kodein.Kodein
import com.github.salomonbrys.kodein.bind
import com.github.salomonbrys.kodein.instance
import com.github.salomonbrys.kodein.singleton
import okhttp3.OkHttpClient
val requestsClientModule = Kodein.Module {
// Site requests cl... | package com.sedsoftware.yaptalker.data.remote
import com.github.salomonbrys.kodein.Kodein
import com.github.salomonbrys.kodein.bind
import com.github.salomonbrys.kodein.instance
import com.github.salomonbrys.kodein.singleton
import okhttp3.OkHttpClient
val requestsClientModule = Kodein.Module {
// Site requests cl... | apache-2.0 | Kotlin |
894329e5f1d340415e3be843c0f357fe9c5aee34 | Update format of type parameter in pageable interface | vimeo/vimeo-networking-java,vimeo/vimeo-networking-java,vimeo/vimeo-networking-java | models/src/main/java/com/vimeo/networking2/Pageable.kt | models/src/main/java/com/vimeo/networking2/Pageable.kt | package com.vimeo.networking2
/**
* All lists that can be paged should implement this interface to provide
* paging urls, total number of items returns for each page and the data for each page.
*/
interface Pageable<Data_T> {
/**
* Total number of items returned.
*/
val total: Int?
/**
... | package com.vimeo.networking2
/**
* All lists that can be paged should implement this interface to provide
* paging urls, total number of items returns for each page and the data for each page.
*/
interface Pageable<DATA_T> {
/**
* Total number of items returned.
*/
val total: Int?
/**
... | mit | Kotlin |
169bffbb902bfc965e2d3b523024abc1a71fe6d7 | Bump micrometer-core from 1.7.4 to 1.7.5 (#2648) | ktorio/ktor,ktorio/ktor,ktorio/ktor,ktorio/ktor | ktor-server/ktor-server-plugins/ktor-server-metrics-micrometer/build.gradle.kts | ktor-server/ktor-server-plugins/ktor-server-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 |
15aecb0fa6ac28944e7bc17c94de51dafbef43e2 | add class target to RecordVideo annotation | allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/int... | platform/testGuiFramework/src/com/intellij/testGuiFramework/util/RecordVideo.kt | platform/testGuiFramework/src/com/intellij/testGuiFramework/util/RecordVideo.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.util
// Note: SCREENRECORDER_JAR_DIR env variable must be exported to make video recording work
@Target(AnnotationTarget.FUNCTION, Annotati... | // 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.util
// Note: SCREENRECORDER_JAR_DIR env variable must be exported to make video recording work
@Target(AnnotationTarget.FUNCTION)
@Retenti... | apache-2.0 | Kotlin |
f93822df698d17c4483397cd616145c72bb476d9 | Fix crush whe string is empty | Popalay/Cardme,Popalay/Cardme,Popalay/Cardme | app/src/main/kotlin/com/popalay/cardme/utils/extensions/StringExt.kt | app/src/main/kotlin/com/popalay/cardme/utils/extensions/StringExt.kt | package com.popalay.cardme.utils.extensions
fun String.firstLetters(maxLetters: Int = 2): String {
return if (this.isBlank()) "" else split(" ")
.take(maxLetters)
.map { if (it.isBlank()) "" else it[0].toString() }
.reduce { acc, s -> acc + s }
}
fun String.clean(): String {
... | package com.popalay.cardme.utils.extensions
fun String.firstLetters(maxLetters: Int = 2): String {
return if (this.isBlank()) "" else split(" ")
.take(maxLetters)
.map { it[0].toString() }
.reduce { acc, s -> acc + s }
}
fun String.clean(): String {
return this.trim().repla... | apache-2.0 | Kotlin |
c6c42a75ba35b4a414b43ff598aff5f08790e3bb | refactor #412 Use returns instead of answer. | toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Jitte | app/src/test/java/jp/toastkid/yobidashi/search/clip/SearchWithClipTest.kt | app/src/test/java/jp/toastkid/yobidashi/search/clip/SearchWithClipTest.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 |
3a163148278870fc26c7e1bcdd803a58b0547f32 | Create empty action as example | Reduks/Reduks | src/test/java/com/reduks/reduks/repository/FakeData.kt | src/test/java/com/reduks/reduks/repository/FakeData.kt | package com.reduks.reduks.repository
import com.reduks.reduks.Action
import com.reduks.reduks.Store
class FakeData {
companion object Provider {
var store = Store(
FakeState(0, ""),
{ state, action -> action.action(state) }
)
}
}
data class FakeState(val id: I... | package com.reduks.reduks.repository
import com.reduks.reduks.Action
import com.reduks.reduks.Store
class FakeData {
companion object Provider {
var store = Store(
FakeState(0, ""),
{ state, action -> action.action(state) }
)
}
}
data class FakeState(val id: I... | mit | Kotlin |
235d112e978d0731bd6c32594e9e3fca80f83975 | return if content should be empty | charlesmadere/smash-ranks-android | smash-ranks-android/app/src/main/java/com/garpr/android/views/WinsLossesView.kt | smash-ranks-android/app/src/main/java/com/garpr/android/views/WinsLossesView.kt | package com.garpr.android.views
import android.annotation.TargetApi
import android.content.Context
import android.graphics.Canvas
import android.graphics.RectF
import android.os.Build
import android.support.annotation.AttrRes
import android.support.annotation.StyleableRes
import android.util.AttributeSet
import androi... | package com.garpr.android.views
import android.annotation.TargetApi
import android.content.Context
import android.graphics.Canvas
import android.graphics.RectF
import android.os.Build
import android.support.annotation.AttrRes
import android.support.annotation.StyleableRes
import android.util.AttributeSet
import androi... | unlicense | Kotlin |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.