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 |
|---|---|---|---|---|---|---|---|---|
5edf80ad4fa8bd527578164ddf15f56dc5d3f7cc | add issue description | Mauin/detekt,Mauin/detekt,MyDogTom/detekt,rock3r/detekt,rock3r/detekt,Mauin/detekt,arturbosch/detekt,arturbosch/detekt,Mauin/detekt,arturbosch/detekt,rock3r/detekt | detekt-rules/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/style/UseDataClassRule.kt | detekt-rules/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/style/UseDataClassRule.kt | package io.gitlab.arturbosch.detekt.rules.style
import io.gitlab.arturbosch.detekt.api.CodeSmell
import io.gitlab.arturbosch.detekt.api.Config
import io.gitlab.arturbosch.detekt.api.Entity
import io.gitlab.arturbosch.detekt.api.Issue
import io.gitlab.arturbosch.detekt.api.Rule
import io.gitlab.arturbosch.detekt.api.Se... | package io.gitlab.arturbosch.detekt.rules.style
import io.gitlab.arturbosch.detekt.api.CodeSmell
import io.gitlab.arturbosch.detekt.api.Config
import io.gitlab.arturbosch.detekt.api.Entity
import io.gitlab.arturbosch.detekt.api.Issue
import io.gitlab.arturbosch.detekt.api.Rule
import io.gitlab.arturbosch.detekt.api.Se... | apache-2.0 | Kotlin |
6846506aeca2bea7eea634b005eb122dfcb035e9 | add more tests | rock3r/detekt,arturbosch/detekt,Mauin/detekt,rock3r/detekt,Mauin/detekt,arturbosch/detekt,Mauin/detekt,MyDogTom/detekt,rock3r/detekt,arturbosch/detekt,Mauin/detekt | detekt-rules/src/test/kotlin/io/gitlab/arturbosch/detekt/rules/style/UseDataClassSpec.kt | detekt-rules/src/test/kotlin/io/gitlab/arturbosch/detekt/rules/style/UseDataClassSpec.kt | package io.gitlab.arturbosch.detekt.rules.style
import io.gitlab.arturbosch.detekt.api.Config
import io.gitlab.arturbosch.detekt.test.lint
import org.assertj.core.api.Assertions
import org.jetbrains.spek.api.dsl.it
import org.jetbrains.spek.subject.SubjectSpek
/**
* @author Ivan Balaksha
*/
class UseDataClassSpec :... | package io.gitlab.arturbosch.detekt.rules.style
import io.gitlab.arturbosch.detekt.api.Config
import io.gitlab.arturbosch.detekt.test.lint
import org.assertj.core.api.Assertions
import org.jetbrains.spek.api.dsl.it
import org.jetbrains.spek.subject.SubjectSpek
/**
* @author Ivan Balaksha
*/
class UseDataClassSpec :... | apache-2.0 | Kotlin |
2b85f25c1f5f8b0cc64a7e2cbcce91015a578200 | Use vmstat data | K0zka/kerub,K0zka/kerub,kerubistan/kerub,kerubistan/kerub,kerubistan/kerub,K0zka/kerub | src/main/kotlin/com/github/K0zka/kerub/host/distros/AbstractLinux.kt | src/main/kotlin/com/github/K0zka/kerub/host/distros/AbstractLinux.kt | package com.github.K0zka.kerub.host.distros
import com.github.K0zka.kerub.data.dynamic.HostDynamicDao
import com.github.K0zka.kerub.model.Host
import com.github.K0zka.kerub.model.OperatingSystem
import com.github.K0zka.kerub.model.dynamic.HostDynamic
import com.github.K0zka.kerub.model.dynamic.HostStatus
import com.gi... | package com.github.K0zka.kerub.host.distros
import com.github.K0zka.kerub.data.dynamic.HostDynamicDao
import com.github.K0zka.kerub.model.Host
import com.github.K0zka.kerub.model.OperatingSystem
import com.github.K0zka.kerub.model.dynamic.HostDynamic
import com.github.K0zka.kerub.model.dynamic.HostStatus
import com.gi... | apache-2.0 | Kotlin |
17825776f3f992e8504127db86b3c83c95b806cf | Clean up Archive's code. | toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Jitte | app/src/main/java/jp/toastkid/yobidashi/browser/archive/Archive.kt | app/src/main/java/jp/toastkid/yobidashi/browser/archive/Archive.kt | package jp.toastkid.yobidashi.browser.archive
import android.content.Context
import android.net.Uri
import android.os.Build
import android.webkit.WebView
import jp.toastkid.yobidashi.libs.storage.Storeroom
import java.io.File
import java.io.IOException
/**
* Archive dir.
*
* @author toastkidjp
*/
internal object ... | package jp.toastkid.yobidashi.browser.archive
import android.content.Context
import android.net.Uri
import android.os.Build
import android.webkit.WebView
import jp.toastkid.yobidashi.libs.storage.Storeroom
import java.io.File
import java.io.IOException
/**
* Archive dir.
* @author toastkidjp
*/
object Archive {
... | epl-1.0 | Kotlin |
d30a2d22d82c8be02dd5be2cd733402e38a2967d | rename HealthService to TestService and make it available ONLY in tests and dev-environment | 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/actions/TestCircletAction.kt | plugins/space/src/main/kotlin/circlet/actions/TestCircletAction.kt | package circlet.actions
import circlet.client.*
import circlet.client.api.*
import circlet.components.*
import circlet.utils.*
import com.intellij.notification.*
import com.intellij.notification.Notification
import com.intellij.openapi.actionSystem.*
import klogging.*
import runtime.async.*
private val log = KLoggers... | package circlet.actions
import circlet.client.*
import circlet.client.api.*
import circlet.components.*
import circlet.utils.*
import com.intellij.notification.*
import com.intellij.notification.Notification
import com.intellij.openapi.actionSystem.*
import klogging.*
import runtime.async.*
private val log = KLoggers... | apache-2.0 | Kotlin |
5d7e0a0e397339b7a587f3963eb9440c27d26715 | Use spacing builder and don't have any indentation | intellij-purescript/intellij-purescript,intellij-purescript/intellij-purescript | src/main/kotlin/org/purescript/ide/formatting/PSBlock.kt | src/main/kotlin/org/purescript/ide/formatting/PSBlock.kt | package org.purescript.ide.formatting
import com.intellij.formatting.*
import com.intellij.formatting.Spacing.getReadOnlySpacing
import com.intellij.lang.ASTNode
import com.intellij.psi.TokenType.WHITE_SPACE
import com.intellij.psi.formatter.common.AbstractBlock
class PSBlock(
node: ASTNode,
wrap: Wrap?,
... | package org.purescript.ide.formatting
import com.intellij.formatting.*
import com.intellij.formatting.Spacing.getReadOnlySpacing
import com.intellij.lang.ASTNode
import com.intellij.psi.TokenType.WHITE_SPACE
import com.intellij.psi.formatter.common.AbstractBlock
class PSBlock(
node: ASTNode,
wrap: Wrap?,
... | bsd-3-clause | Kotlin |
6c421260a7c9d52654567bbdcdd0c0783d7c3de1 | Remove unncessary buffer size check | helloworld1/FreeOTPPlus,helloworld1/FreeOTPPlus,helloworld1/FreeOTPPlus | app/src/main/java/org/fedorahosted/freeotp/util/TokenQRCodeDecoder.kt | app/src/main/java/org/fedorahosted/freeotp/util/TokenQRCodeDecoder.kt | package org.fedorahosted.freeotp.util
import android.util.Log
import androidx.camera.core.ImageProxy
import com.google.zxing.BinaryBitmap
import com.google.zxing.ChecksumException
import com.google.zxing.FormatException
import com.google.zxing.NotFoundException
import com.google.zxing.PlanarYUVLuminanceSource
import c... | package org.fedorahosted.freeotp.util
import android.util.Log
import androidx.camera.core.ImageProxy
import com.google.zxing.BinaryBitmap
import com.google.zxing.ChecksumException
import com.google.zxing.FormatException
import com.google.zxing.NotFoundException
import com.google.zxing.PlanarYUVLuminanceSource
import c... | apache-2.0 | Kotlin |
b4bc8b4ad06947eefbfd13642b382542e51665ed | Update docs on AuthService | vimeo/vimeo-networking-java,vimeo/vimeo-networking-java,vimeo/vimeo-networking-java | auth/src/main/java/com/vimeo/networking2/internal/AuthService.kt | auth/src/main/java/com/vimeo/networking2/internal/AuthService.kt | package com.vimeo.networking2.internal
import com.vimeo.networking2.AuthenticatedAccessToken
import com.vimeo.networking2.BasicAccessToken
import retrofit2.http.Body
import retrofit2.http.Header
import retrofit2.http.POST
/**
* All the authentication endpoints.
*/
internal interface AuthService {
/**
* Ge... | package com.vimeo.networking2.internal
import com.vimeo.networking2.AuthenticatedAccessToken
import com.vimeo.networking2.BasicAccessToken
import com.vimeo.networking2.VimeoAccount
import retrofit2.http.Body
import retrofit2.http.Header
import retrofit2.http.POST
/**
* All the authentication endpoints.
*/
internal ... | mit | Kotlin |
c981e3eddb8b6846195cf25c2f7772e5871af943 | Fix this -> it MainFragment | googlecodelabs/android-navigation | app/src/main/java/com/example/android/codelabs/navigation/MainFragment.kt | app/src/main/java/com/example/android/codelabs/navigation/MainFragment.kt | /*
* Copyright (C) 2018 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | /*
* Copyright (C) 2018 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | apache-2.0 | Kotlin |
041d69bdd07939e5d244cc62fdd49213efe18152 | Fix test to not write to console | kvakil/venus,kvakil/venus,kvakil/venus | src/test/kotlin/simulator/Lab3Test.kt | src/test/kotlin/simulator/Lab3Test.kt | package venus.simulator
import org.junit.Test
import kotlin.test.assertEquals
import venus.assembler.Assembler
import venus.linker.Linker
class Lab3Test {
@Test
fun Ex1() {
val prog = Assembler.assemble(
"""
.data
.word 2, 4, 6, 8
n: .word 9
.text
main: add t0, x0,... | package venus.simulator
import org.junit.Test
import kotlin.test.assertEquals
import venus.assembler.Assembler
import venus.linker.Linker
class Lab3Test {
@Test
fun Ex1() {
val prog = Assembler.assemble(
"""
.data
.word 2, 4, 6, 8
n: .word 9
.text
main: add t0, x0,... | mit | Kotlin |
0662504ef51cc0e83f82c1fc8a48601a5b2361d3 | Build targeting JVM 8 | gradle/gradle,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,gradle/gradle,gradle/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle-script-kotlin,gradle/gradle,blindpirate/gradle,blindpirate/gradle,robinverduijn/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,robinverduijn... | buildSrc/src/main/kotlin/plugins/kotlin-library.gradle.kts | buildSrc/src/main/kotlin/plugins/kotlin-library.gradle.kts | /*
* Copyright 2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | /*
* Copyright 2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | apache-2.0 | Kotlin |
3bac4d5a77204918c24f68d101c8a5b28725372e | Update problem 2064 | fredyw/leetcode,fredyw/leetcode,fredyw/leetcode,fredyw/leetcode | src/main/kotlin/leetcode/Problem2064.kt | src/main/kotlin/leetcode/Problem2064.kt | package leetcode
/**
* https://leetcode.com/problems/minimized-maximum-of-products-distributed-to-any-store/
*/
class Problem2064 {
fun minimizedMaximum(n: Int, quantities: IntArray): Int {
TODO()
}
}
fun main() {
val prob = Problem2064()
println(prob.minimizedMaximum(6, intArrayOf(11,6))) /... | package leetcode
/**
* https://leetcode.com/problems/minimized-maximum-of-products-distributed-to-any-store/
*/
class Problem2064 {
fun minimizedMaximum(n: Int, quantities: IntArray): Int {
TODO()
}
}
fun main() {
val prob = Problem2064()
println(prob.minimizedMaximum(6, intArrayOf(11,6))) /... | mit | Kotlin |
36e69e8ff0660bd6ee313b11f8b294dfaed3a8fd | Bump RxJava | fcostaa/kotlin-rxjava-android,fcostaa/kotlin-rxjava-android | buildSrc/src/main/kotlin/Versions.kt | buildSrc/src/main/kotlin/Versions.kt | internal object Kotlin {
const val version = "1.3.10"
}
object Versions {
const val androidGradlePlugin = "3.2.1"
const val dependencyGraphGeneratorPlugin = "0.2.0"
const val androidJunitJacocoPlugin = "0.13.0"
const val detektGradlePlugin = "1.0.0-RC12"
const val compileSdkVersion = 28
co... | internal object Kotlin {
const val version = "1.3.10"
}
object Versions {
const val androidGradlePlugin = "3.2.1"
const val dependencyGraphGeneratorPlugin = "0.2.0"
const val androidJunitJacocoPlugin = "0.13.0"
const val detektGradlePlugin = "1.0.0-RC12"
const val compileSdkVersion = 28
co... | mit | Kotlin |
ae0ff9d73be0d91f27259d5123d59591b6b3cfa3 | Add lambda ViewModelFactory | LouisCAD/Splitties,LouisCAD/Splitties,LouisCAD/Splitties | arch-lifecycle/src/main/java/splitties/arch/lifecycle/ViewModel.kt | arch-lifecycle/src/main/java/splitties/arch/lifecycle/ViewModel.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 |
0c4743f8a4e2c7d87604ac4a4e9c9bdae7f64220 | add yandere command | noud02/Akatsuki | src/main/kotlin/me/noud02/akatsuki/commands/Yandere.kt | src/main/kotlin/me/noud02/akatsuki/commands/Yandere.kt | /*
* Copyright (c) 2017 Noud Kerver
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy, modify, merge... | mit | Kotlin | |
20a888d9ac1f1ab534350a46a80dd20b3c5829e5 | Improve performance of adding date header by caching string for a second. | ktorio/ktor,ktorio/ktor,ktorio/ktor,ktorio/ktor | ktor-core/src/org/jetbrains/ktor/features/http/DefaultHeaders.kt | ktor-core/src/org/jetbrains/ktor/features/http/DefaultHeaders.kt | package org.jetbrains.ktor.features.http
import org.jetbrains.ktor.application.*
import org.jetbrains.ktor.features.*
import org.jetbrains.ktor.http.*
import org.jetbrains.ktor.response.*
import org.jetbrains.ktor.util.*
import java.time.*
class DefaultHeaders {
private val headers = ValuesMapBuilder()
privat... | package org.jetbrains.ktor.features.http
import org.jetbrains.ktor.application.*
import org.jetbrains.ktor.features.*
import org.jetbrains.ktor.http.*
import org.jetbrains.ktor.response.*
import org.jetbrains.ktor.util.*
import java.time.*
object DefaultHeaders : ApplicationFeature<Application, DefaultHeaders> {
... | apache-2.0 | Kotlin |
eab8fc2d318d36d40fbf86837e823669031004d4 | Exclude leakcanary activites | pyamsoft/padlock,pyamsoft/padlock | padlock-base/src/main/java/com/pyamsoft/padlock/base/Excludes.kt | padlock-base/src/main/java/com/pyamsoft/padlock/base/Excludes.kt | /*
* Copyright (C) 2017 Peter Kenji Yamanaka
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.... | /*
* Copyright (C) 2017 Peter Kenji Yamanaka
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.... | apache-2.0 | Kotlin |
72db4700f61f72d24a80e6cce612a909424ba18b | Change color of mapping lines: dark gray -> gray | bibaev/stream-debugger-plugin,bibaev/stream-debugger-plugin | src/main/java/com/intellij/debugger/streams/ui/impl/MappingPane.kt | src/main/java/com/intellij/debugger/streams/ui/impl/MappingPane.kt | package com.intellij.debugger.streams.ui.impl
import com.intellij.debugger.streams.ui.LinkedValuesMapping
import com.intellij.debugger.streams.ui.ValueWithPosition
import com.intellij.ui.JBColor
import com.intellij.ui.components.JBLabel
import java.awt.*
import javax.swing.JPanel
/**
* @author Vitaliy.Bibaev
*/
cla... | package com.intellij.debugger.streams.ui.impl
import com.intellij.debugger.streams.ui.LinkedValuesMapping
import com.intellij.debugger.streams.ui.ValueWithPosition
import com.intellij.ui.JBColor
import com.intellij.ui.components.JBLabel
import java.awt.*
import javax.swing.JPanel
/**
* @author Vitaliy.Bibaev
*/
cla... | apache-2.0 | Kotlin |
dcb6b07a9eda9c7ff172f8f6bb7b3e44e0f2e3c2 | Add a message to pplay | duncte123/SkyBot,duncte123/SkyBot,duncte123/SkyBot,duncte123/SkyBot | src/main/kotlin/ml/duncte123/skybot/commands/music/PPlayCommand.kt | src/main/kotlin/ml/duncte123/skybot/commands/music/PPlayCommand.kt | /*
* Skybot, a multipurpose discord bot
* Copyright (C) 2017 - 2018 Duncan "duncte123" Sterken & Ramid "ramidzkh" Khan & Maurice R S "Sanduhr32"
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free S... | /*
* Skybot, a multipurpose discord bot
* Copyright (C) 2017 - 2018 Duncan "duncte123" Sterken & Ramid "ramidzkh" Khan & Maurice R S "Sanduhr32"
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free S... | agpl-3.0 | Kotlin |
0ae305d8792528d9a50bc7c20ae01cf2221feb0a | use Kotlin UI DSL 2 for extract struct fields dialog | Undin/intellij-rust,intellij-rust/intellij-rust,intellij-rust/intellij-rust,Undin/intellij-rust,Undin/intellij-rust,intellij-rust/intellij-rust,Undin/intellij-rust,intellij-rust/intellij-rust,Undin/intellij-rust,intellij-rust/intellij-rust,intellij-rust/intellij-rust,Undin/intellij-rust | src/main/kotlin/org/rust/ide/refactoring/extractStructFields/ui.kt | src/main/kotlin/org/rust/ide/refactoring/extractStructFields/ui.kt | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.ide.refactoring.extractStructFields
import com.intellij.openapi.project.Project
import com.intellij.openapi.ui.DialogWrapper
import com.intellij.openapi.ui.ValidationInfo
import com.intellij.ui.... | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.ide.refactoring.extractStructFields
import com.intellij.openapi.project.Project
import com.intellij.openapi.ui.DialogWrapper
import com.intellij.openapi.ui.ValidationInfo
import com.intellij.ui.... | mit | Kotlin |
04b567f418c82e96489625183b15ea27cfcf60e4 | refactor #605 Rename test function. | toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Jitte | lib/src/test/java/jp/toastkid/lib/intent/ShareIntentFactoryTest.kt | lib/src/test/java/jp/toastkid/lib/intent/ShareIntentFactoryTest.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 |
b3ef6675c6c0b4bb8529d75f9b98442fbc5f8393 | Set up caller field the Kotlin-way | vyo/twig | src/main/kotlin/io/github/vyo/twig/Logger.kt | src/main/kotlin/io/github/vyo/twig/Logger.kt | package io.github.vyo.twig
import nl.komponents.kovenant.async
import kotlin.concurrent.currentThread
/**
* Created by Manuel Weidmann on 24.11.2015.
*/
class Logger(val caller: Any) {
var threshold: Level
init {
threshold = root.threshold
}
companion object root {
var threshold: ... | package io.github.vyo.twig
import nl.komponents.kovenant.async
import kotlin.concurrent.currentThread
/**
* Created by Manuel Weidmann on 24.11.2015.
*/
class Logger(caller: Any) {
val caller: Any = caller
var threshold: Level
init {
threshold = root.threshold
}
companion object root ... | isc | Kotlin |
4088c46f69ff1aebba8b61a952e0191ceb7d8fb0 | Make Timetable.kt to represent an academic year or different timetable | FarbodSalamat-Zadeh/TimetableApp,FarbodSalamat-Zadeh/TimetableApp | app/src/main/java/com/satsumasoftware/timetable/framework/Timetable.kt | app/src/main/java/com/satsumasoftware/timetable/framework/Timetable.kt | package com.satsumasoftware.timetable.framework
import org.threeten.bp.LocalDate
class Timetable(val id: Int, val name: String, val startDate: LocalDate, val endDate: LocalDate)
| apache-2.0 | Kotlin | |
c76df318a525c73998da586340aecd368557a2fc | Fix IllegalStateException | MGaetan89/ShowsRage | app/src/main/kotlin/com/mgaetan89/showsrage/presenter/ShowPresenter.kt | app/src/main/kotlin/com/mgaetan89/showsrage/presenter/ShowPresenter.kt | package com.mgaetan89.showsrage.presenter
import com.mgaetan89.showsrage.helper.RealmManager
import com.mgaetan89.showsrage.model.Indexer
import com.mgaetan89.showsrage.model.RealmShowStat
import com.mgaetan89.showsrage.model.Show
import com.mgaetan89.showsrage.network.SickRageApi
class ShowPresenter(val show: Show?)... | package com.mgaetan89.showsrage.presenter
import com.mgaetan89.showsrage.helper.RealmManager
import com.mgaetan89.showsrage.model.Indexer
import com.mgaetan89.showsrage.model.RealmShowStat
import com.mgaetan89.showsrage.model.Show
import com.mgaetan89.showsrage.network.SickRageApi
class ShowPresenter(val show: Show?)... | apache-2.0 | Kotlin |
3a9b5234e47b43e2f30614b8332025b0440770c8 | Bump SoLoader to 0.9.0 | facebook/fresco,facebook/fresco,facebook/fresco,facebook/fresco,facebook/fresco,facebook/fresco | buildSrc/src/main/java/com/facebook/fresco/buildsrc/dependencies.kt | buildSrc/src/main/java/com/facebook/fresco/buildsrc/dependencies.kt | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package com.facebook.fresco.buildsrc
object Deps {
const val javaxAnnotation = "javax.annotation:javax.annotation-api:1.2"
... | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package com.facebook.fresco.buildsrc
object Deps {
const val javaxAnnotation = "javax.annotation:javax.annotation-api:1.2"
... | mit | Kotlin |
69d8b2ae3dd4e81597786ed86d36fec757720048 | Create ConfigData to save to file | Homes-MinecraftServerMod/Homes,Homes-MinecraftServerMod/Homes | src/main/kotlin/com/masahirosaito/spigot/homes/datas/ConfigData.kt | src/main/kotlin/com/masahirosaito/spigot/homes/datas/ConfigData.kt | package com.masahirosaito.spigot.homes.datas
import com.google.gson.Gson
import com.google.gson.GsonBuilder
import com.google.gson.annotations.SerializedName
import java.io.File
data class ConfigData(
@SerializedName("Allow showing debug messages")
var onDebug: Boolean = false,
@SerializedNa... | apache-2.0 | Kotlin | |
d23b8c0a9b4709a0e45a95af92c20abbb6ac3b74 | refactor #506 Simplify boolean expression. | toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt | image/src/main/java/jp/toastkid/image/list/BucketLoader.kt | image/src/main/java/jp/toastkid/image/list/BucketLoader.kt | /*
* Copyright (c) 2019 toastkidjp.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompany this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html.
*/
package jp.... | /*
* Copyright (c) 2019 toastkidjp.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompany this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html.
*/
package jp.... | epl-1.0 | Kotlin |
af09fe02065edfb925c3122d1f42f9802d7bfad4 | Revert changes to zip.kt from c281a69c | robinverduijn/gradle,gradle/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,robinverduijn/gradle,gradle/gradle-script-kot... | subprojects/provider/src/main/kotlin/org/gradle/kotlin/dsl/support/zip.kt | subprojects/provider/src/main/kotlin/org/gradle/kotlin/dsl/support/zip.kt | /*
* Copyright 2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | /*
* Copyright 2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | apache-2.0 | Kotlin |
c6715e5370a4457616b0116cec9b1fab105bf7e6 | Remove useless internal constructor | squanchy-dev/squanchy-android,squanchy-dev/squanchy-android,squanchy-dev/squanchy-android | app/src/main/java/net/squanchy/schedule/view/ScheduleDayPageView.kt | app/src/main/java/net/squanchy/schedule/view/ScheduleDayPageView.kt | package net.squanchy.schedule.view
import android.content.Context
import android.support.v7.util.DiffUtil
import android.support.v7.widget.LinearLayoutManager
import android.support.v7.widget.RecyclerView
import android.util.AttributeSet
import net.squanchy.R
import net.squanchy.schedule.domain.view.Event
import net.... | package net.squanchy.schedule.view
import android.content.Context
import android.support.v7.util.DiffUtil
import android.support.v7.widget.LinearLayoutManager
import android.support.v7.widget.RecyclerView
import android.util.AttributeSet
import net.squanchy.R
import net.squanchy.schedule.domain.view.Event
import net.... | apache-2.0 | Kotlin |
9fad5bcf6ca31ed1b5c79ec9b4aaac3d093c24d0 | add TestException equals tests | rovkinmax/RxRetainFragment,rovkinmax/RxRetainFragment | app/src/test/java/com/github/rovkinmax/rxretainexample/UntilTest.kt | app/src/test/java/com/github/rovkinmax/rxretainexample/UntilTest.kt | package com.github.rovkinmax.rxretainexample
import com.github.rovkinmax.rxretainexample.test.TestException
import org.junit.Assert
import org.junit.Test
import org.junit.runner.RunWith
import org.junit.runners.JUnit4
/**
* @author Rovkin Max
*/
@RunWith(JUnit4::class)
class UntilTest {
@Test
fun testEquals... | apache-2.0 | Kotlin | |
fae15bc929dc60d57c168a1904c9088f66b4549d | Change module type of dependency-management project to CORE | blindpirate/gradle,blindpirate/gradle,lsmaira/gradle,lsmaira/gradle,blindpirate/gradle,blindpirate/gradle,lsmaira/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,lsmaira/gradle,blindpirate/gradle,gradle/gradle,lsmaira/gradle,gradle/gradle,lsmaira/gradle,gradle/gradle,robinverduijn/gradle... | subprojects/dependency-management/dependency-management.gradle.kts | subprojects/dependency-management/dependency-management.gradle.kts | import org.gradle.build.ClasspathManifest
import org.gradle.gradlebuild.testing.integrationtests.cleanup.EmptyDirectoryCheck
import org.gradle.gradlebuild.unittestandcompile.ModuleType
plugins {
`java-library`
}
dependencies {
api(project(":core"))
api(project(":versionControl"))
implementation(proje... | import org.gradle.build.ClasspathManifest
import org.gradle.gradlebuild.testing.integrationtests.cleanup.EmptyDirectoryCheck
import org.gradle.gradlebuild.unittestandcompile.ModuleType
plugins {
`java-library`
}
dependencies {
api(project(":core"))
api(project(":versionControl"))
implementation(proje... | apache-2.0 | Kotlin |
10913b8b46c669b185d9ee15ec5a644a966a64b2 | Make batching code more performant. | mg6maciej/fluffy-octo-rotary-phone,mg6maciej/fluffy-octo-rotary-phone,mg6maciej/fluffy-octo-rotary-phone | app/src/main/java/pl/mg6/likeornot/commons/Collections.kt | app/src/main/java/pl/mg6/likeornot/commons/Collections.kt | package pl.mg6.likeornot.commons
fun <T> List<T>.batch(chunkSize: Int): List<List<T>> {
if (chunkSize <= 0) {
throw IllegalArgumentException("chunkSize must be greater than 0")
}
val list = mutableListOf<MutableList<T>>()
for (i in 0 until size) {
if (i % chunkSize == 0) {
l... | package pl.mg6.likeornot.commons
fun <T> List<T>.batch(chunkSize: Int): List<List<T>> {
if (chunkSize <= 0) {
throw IllegalArgumentException("chunkSize must be greater than 0")
}
return mapIndexed { index, item -> IndexedItem(index, item) }
.groupBy { it.index / chunkSize }
... | apache-2.0 | Kotlin |
0247b3e82d9d6560669d4d95a3c121b74d83f57e | add mediaoption class | clappr/clappr-android,clappr/clappr-android | clappr/src/main/kotlin/io/clappr/player/components/MediaOption.kt | clappr/src/main/kotlin/io/clappr/player/components/MediaOption.kt | package io.clappr.player.components
/**
* Created by fernando on 5/15/17.
*/
class MediaOption {
} | bsd-3-clause | Kotlin | |
cfe99078ec0ea9dd68d2322e532aaeee6967749e | Bump modb-anime-planet from 3.1.6 to 3.1.7 | manami-project/manami,manami-project/manami | manami-app/build.gradle.kts | manami-app/build.gradle.kts | dependencies {
api("io.github.manamiproject:modb-core:7.0.2")
api("io.github.manamiproject:modb-db-parser:3.1.1")
api("org.slf4j:slf4j-api:1.7.32")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2-native-mt")
implementation("io.github.manamiproject:modb-anidb:3.0.7")
implemen... | dependencies {
api("io.github.manamiproject:modb-core:7.0.2")
api("io.github.manamiproject:modb-db-parser:3.1.1")
api("org.slf4j:slf4j-api:1.7.32")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2-native-mt")
implementation("io.github.manamiproject:modb-anidb:3.0.7")
implemen... | agpl-3.0 | Kotlin |
078e5b9198fdcf9c2d6a8e3e49a6411fccc3ee6c | Fix GIF example page no content bug | panpf/sketch,panpf/sketch | sample/src/main/java/com/github/panpf/sketch/sample/vm/GiphyGifListViewModel.kt | sample/src/main/java/com/github/panpf/sketch/sample/vm/GiphyGifListViewModel.kt | package com.github.panpf.sketch.sample.vm
import android.app.Application
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.viewModelScope
import androidx.paging.Pager
import androidx.paging.PagingConfig
import androidx.paging.cachedIn
import com.github.panpf.sketch.sample.ds.GiphyGifListPagingSource... | package com.github.panpf.sketch.sample.vm
import android.app.Application
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.viewModelScope
import androidx.paging.Pager
import androidx.paging.PagingConfig
import androidx.paging.cachedIn
import com.github.panpf.sketch.sample.ds.GiphyGifListPagingSource... | apache-2.0 | Kotlin |
473beb29a5c116f40228d4d155062fa9788f7f90 | Test added | clappr/clappr-android,clappr/clappr-android | clappr/src/test/kotlin/io/clappr/player/base/EventTest.kt | clappr/src/test/kotlin/io/clappr/player/base/EventTest.kt | package io.clappr.player.base
import org.junit.Test
import org.junit.runner.RunWith
import org.robolectric.RobolectricTestRunner
import kotlin.test.assertEquals
@RunWith(RobolectricTestRunner::class)
class EventTest {
@Test
fun shouldHaveUniqueValue() {
Event.values().forEach {
assertEqua... | bsd-3-clause | Kotlin | |
289517d80ff905e2cd208ecac7c0d6c6838517ed | reformat code | CORDEA/MackerelClient | app/src/main/kotlin/jp/cordea/mackerelclient/adapter/AlertFragmentPagerAdapter.kt | app/src/main/kotlin/jp/cordea/mackerelclient/adapter/AlertFragmentPagerAdapter.kt | package jp.cordea.mackerelclient.adapter
import android.content.Context
import android.support.v4.app.Fragment
import android.support.v4.app.FragmentManager
import android.support.v4.app.FragmentPagerAdapter
import jp.cordea.mackerelclient.R
import jp.cordea.mackerelclient.fragment.alert.CriticalAlertFragment
import j... | package jp.cordea.mackerelclient.adapter
import android.content.Context
import android.support.v4.app.Fragment
import android.support.v4.app.FragmentManager
import android.support.v4.app.FragmentPagerAdapter
import jp.cordea.mackerelclient.R
import jp.cordea.mackerelclient.fragment.alert.CriticalAlertFragment
import j... | apache-2.0 | Kotlin |
60bcf3711f705f19a2960b2a74e400ea1f44035f | Clean up code. | toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Yobidashi_kt | app/src/main/java/jp/toastkid/yobidashi/barcode/InstantBarcodeGenerator.kt | app/src/main/java/jp/toastkid/yobidashi/barcode/InstantBarcodeGenerator.kt | package jp.toastkid.yobidashi.barcode
import android.content.Context
import android.graphics.drawable.BitmapDrawable
import android.support.v7.app.AlertDialog
import android.widget.EditText
import android.widget.ImageView
import com.google.zxing.BarcodeFormat
import com.google.zxing.WriterException
import com.journey... | package jp.toastkid.yobidashi.barcode
import android.content.Context
import android.graphics.drawable.BitmapDrawable
import android.support.v7.app.AlertDialog
import android.widget.EditText
import android.widget.ImageView
import com.google.zxing.BarcodeFormat
import com.google.zxing.WriterException
import com.journey... | epl-1.0 | Kotlin |
f02f3c9f81569ccc99bd223daa28851ba5f987df | test correct map in ObjectMap.putAll unit test | AlmasB/FXGL,AlmasB/FXGL,AlmasB/FXGL,AlmasB/FXGL | fxgl-core/src/test/kotlin/com/almasb/fxgl/core/collection/ObjectMapTest.kt | fxgl-core/src/test/kotlin/com/almasb/fxgl/core/collection/ObjectMapTest.kt | /*
* FXGL - JavaFX Game Library. The MIT License (MIT).
* Copyright (c) AlmasB (almaslvl@gmail.com).
* See LICENSE for details.
*/
package com.almasb.fxgl.core.collection
import org.hamcrest.MatcherAssert.assertThat
import org.hamcrest.Matchers.`is`
import org.hamcrest.Matchers.hasEntry
import org.junit.jupiter.a... | /*
* FXGL - JavaFX Game Library. The MIT License (MIT).
* Copyright (c) AlmasB (almaslvl@gmail.com).
* See LICENSE for details.
*/
package com.almasb.fxgl.core.collection
import org.hamcrest.MatcherAssert.assertThat
import org.hamcrest.Matchers.`is`
import org.hamcrest.Matchers.hasEntry
import org.junit.jupiter.a... | mit | Kotlin |
ad9f2de18128f3501e6d670654e9e98923f0ec2e | Add better realm configuration class | ingresso-rapido-mobile/better-migrations,ingresso-rapido-mobile/better-migrations | migration/src/main/java/br/com/bloder/migration/configuration/BetterRealmConfiguration.kt | migration/src/main/java/br/com/bloder/migration/configuration/BetterRealmConfiguration.kt | package br.com.bloder.migration.configuration
import android.content.Context
import br.com.bloder.migration.Migration
import br.com.bloder.migration.internal.detail.MigrationDetail
import br.com.bloder.migration.internal.detail.RealmConfigurationDetail
import io.realm.RealmConfiguration
/**
* Get some properties to ... | mit | Kotlin | |
7d8ba8530b1b9be26079a2fb031f05d470d85e91 | Remove integration test for modern cache | Major-/Vicis | modern/src/test/kotlin/rs/emulate/modern/codec/store/JagexFileStoreTest.kt | modern/src/test/kotlin/rs/emulate/modern/codec/store/JagexFileStoreTest.kt | package rs.emulate.modern.codec.store
import com.google.common.io.MoreFiles
import com.google.common.jimfs.Configuration
import com.google.common.jimfs.Jimfs
import org.junit.jupiter.api.Assertions.assertThrows
import org.junit.jupiter.api.Test
import rs.emulate.modern.ModernCache
import java.nio.file.Paths
class Jag... | package rs.emulate.modern.codec.store
import com.google.common.io.MoreFiles
import com.google.common.jimfs.Configuration
import com.google.common.jimfs.Jimfs
import org.junit.jupiter.api.Assertions.assertThrows
import org.junit.jupiter.api.Test
import rs.emulate.modern.ModernCache
import java.nio.file.Paths
class Jag... | isc | Kotlin |
f8b0f60a52399a9fdee463269b4cdbfde5799c06 | Fix test | Zomis/AIScorers,Zomis/AIScorers | src/test/kotlin/net/zomis/scorers/ScorersTest.kt | src/test/kotlin/net/zomis/scorers/ScorersTest.kt | package net.zomis.scorers
import org.junit.jupiter.api.Test
class ScorersTest {
val strings: Array<String> = arrayOf("x", "something", "CAPITAL LETTERS ONLY", "aaaaa")
val scorers = Scorers(this::fieldsToScore, this::canScoreField)
private fun fieldsToScore(param: Int): Iterable<String> {
return... | package net.zomis.scorers
import org.junit.jupiter.api.Test
class ScorersTest {
val strings: Array<String> = arrayOf("x", "something", "CAPITAL LETTERS ONLY", "aaaaa")
val scorers = Scorers(this::fieldsToScore, this::canScoreField)
private fun fieldsToScore(param: Int): Iterable<String> {
return... | mit | Kotlin |
cb1b6351fcf54236a3397afa111da736a258618a | fix estimator name | WonderBeat/suchmarines,WonderBeat/suchmarines | src/main/kotlin/org/wow/learning/categorizers/InOutCategorizer.kt | src/main/kotlin/org/wow/learning/categorizers/InOutCategorizer.kt | package org.wow.learning.categorizers
import org.wow.learning.vectorizers.planet.PlanetTransition
private val estimatorsList = listOf(::planetWasCaptured, ::planetMadeNoMove, ::planetSurroundedByNeutrals,
::planetSurroundedByNoEnemies, ::planetSurroundedByNoFriends,
::planetWasCapturedByCurrentPlanet,... | package org.wow.learning.categorizers
import org.wow.learning.vectorizers.planet.PlanetTransition
private val estimatorsList = listOf(::planetWasCaptured, ::planetMadeNoMove, ::planetSurroundedByNeutrals,
::planetSurroundedByNoEnemies, ::planetSurroundedByNoFriends,
::planetWasCapturedByCurrentPlanet,... | mit | Kotlin |
22a4c75a4210b38b23cb80e89ac553a484cedb09 | Create an interface which is responsible for representing the local storage | fcostaa/kotlin-rxjava-android,fcostaa/kotlin-rxjava-android | app/src/main/kotlin/com.felipecosta.kotlinrxjavasample/data/LocalStorage.kt | app/src/main/kotlin/com.felipecosta.kotlinrxjavasample/data/LocalStorage.kt | package com.felipecosta.kotlinrxjavasample.data
interface LocalStorage {
var storageValue: String
} | mit | Kotlin | |
67fde3be41c440a69943281fa7d22addc5185edc | Change Utils set function | Homes-MinecraftServerMod/Homes,Homes-MinecraftServerMod/Homes | src/test/java/com/masahirosaito/spigot/homes/tests/utils/Utils.kt | src/test/java/com/masahirosaito/spigot/homes/tests/utils/Utils.kt | package com.masahirosaito.spigot.homes.tests.utils
import com.masahirosaito.spigot.homes.tests.Permission
import org.bukkit.Location
import org.bukkit.entity.Player
fun Player.set(vararg permissions: Permission) {
permissions.forEach { MockPlayerFactory.permissions[uniqueId]?.add(it.permission) }
}
fun Player.se... | package com.masahirosaito.spigot.homes.tests.utils
import com.masahirosaito.spigot.homes.tests.Permission
import org.bukkit.Location
import org.bukkit.entity.Player
fun Player.set(permission: Permission) {
MockPlayerFactory.permissions[uniqueId]?.add(permission.permission)
}
fun Player.setOps() {
MockPlayerF... | apache-2.0 | Kotlin |
0368535038a2ab8e45122d9e6c289bad35eddf02 | refactor #232 Rename test function. | toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Jitte,toastkidjp/Yobidashi_kt | app/src/test/java/jp/toastkid/yobidashi/rss/extractor/HtmlApiTest.kt | app/src/test/java/jp/toastkid/yobidashi/rss/extractor/HtmlApiTest.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 |
3657afe43e6e2c6333a11985aa676d9255214222 | change default interpolator | TakuSemba/Spotlight,TakuSemba/Spotlight | spotlight/src/main/java/com/takusemba/spotlight/Target.kt | spotlight/src/main/java/com/takusemba/spotlight/Target.kt | package com.takusemba.spotlight
import android.animation.TimeInterpolator
import android.graphics.PointF
import android.view.View
import android.view.animation.DecelerateInterpolator
import com.takusemba.spotlight.shape.Circle
import com.takusemba.spotlight.shape.Shape
import java.util.concurrent.TimeUnit
class Targe... | package com.takusemba.spotlight
import android.animation.TimeInterpolator
import android.graphics.PointF
import android.view.View
import android.view.animation.LinearInterpolator
import com.takusemba.spotlight.shape.Circle
import com.takusemba.spotlight.shape.Shape
import java.util.concurrent.TimeUnit
class Target(
... | apache-2.0 | Kotlin |
28bf7ad007728a93bd50a6e7b4731dbfff424efc | clean up | YiiGuxing/TranslationPlugin,YiiGuxing/TranslationPlugin | src/main/kotlin/cn/yiiguxing/plugin/translate/Constants.kt | src/main/kotlin/cn/yiiguxing/plugin/translate/Constants.kt | /**
* Constants
*/
@file:Suppress("SpellCheckingInspection")
package cn.yiiguxing.plugin.translate
import java.nio.file.Path
import java.nio.file.Paths
private val USER_HOME_PATH = System.getProperty("user.home")
val TRANSLATION_DIRECTORY: Path = Paths.get(USER_HOME_PATH, ".translation")
const val STORAGE_NAME = ... | /**
* Constants
*/
@file:Suppress("SpellCheckingInspection")
package cn.yiiguxing.plugin.translate
import java.nio.file.Path
import java.nio.file.Paths
private val USER_HOME_PATH = System.getProperty("user.home")
val TRANSLATION_DIRECTORY: Path = Paths.get(USER_HOME_PATH, ".translation")
const val STORAGE_NAME = ... | mit | Kotlin |
51877d252072cde33f37d0579bceba77c7625288 | Remove `withPluginClasspath` from plugins test | gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,robinverduijn/gradle,robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradl... | plugins/src/test/kotlin/org/gradle/kotlin/dsl/plugins/AbstractPluginTest.kt | plugins/src/test/kotlin/org/gradle/kotlin/dsl/plugins/AbstractPluginTest.kt | package org.gradle.kotlin.dsl.plugins
import org.gradle.kotlin.dsl.fixtures.AbstractIntegrationTest
import org.gradle.kotlin.dsl.fixtures.gradleRunnerFor
open class AbstractPluginTest : AbstractIntegrationTest() {
protected
fun buildWithPlugin(vararg arguments: String) =
gradleRunnerFor(projectRoot)... | package org.gradle.kotlin.dsl.plugins
import org.gradle.kotlin.dsl.fixtures.AbstractIntegrationTest
import org.gradle.kotlin.dsl.fixtures.gradleRunnerFor
open class AbstractPluginTest : AbstractIntegrationTest() {
protected
fun buildWithPlugin(vararg arguments: String) =
gradleRunnerFor(projectRoot)... | apache-2.0 | Kotlin |
a0bf140334a5f984670ddf3843bb29f6ac6faf04 | Reorder some lines in settings.gradle.kts | LouisCAD/Splitties,LouisCAD/Splitties,LouisCAD/Splitties | settings.gradle.kts | settings.gradle.kts | @file:Suppress("SpellCheckingInspection")
/*
* Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
*/
arrayOf(
"activities",
"alertdialog",
"alertdialog-appcompat",
"alertdialog-appcompat-coroutines",
"appctx",
"arch-lifecycle",
"arc... | @file:Suppress("SpellCheckingInspection")
/*
* Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
*/
arrayOf(
"activities",
"alertdialog",
"alertdialog-appcompat",
"alertdialog-appcompat-coroutines",
"appctx",
"arch-lifecycle",
"arc... | apache-2.0 | Kotlin |
b902325856ab5fb2ae8fab741f5dace492c9148d | Add NOSUCHCHANNEL | CarrotCodes/Kale,WillowChat/Kale,WillowChat/Kale,CarrotCodes/Kale | src/main/kotlin/chat/willow/kale/irc/message/rfc1459/rpl/NumericRegistry.kt | src/main/kotlin/chat/willow/kale/irc/message/rfc1459/rpl/NumericRegistry.kt | package chat.willow.kale.irc.message.rfc1459.rpl
import chat.willow.kale.generator.SourceTargetChannelContent
import chat.willow.kale.generator.SourceTargetContent
internal object NumericRegistry {
@SourceTargetContent(numeric = "001") object WELCOME
@SourceTargetContent(numeric = "002") object ... | package chat.willow.kale.irc.message.rfc1459.rpl
import chat.willow.kale.generator.SourceTargetChannelContent
import chat.willow.kale.generator.SourceTargetContent
internal object NumericRegistry {
@SourceTargetContent(numeric = "001") object WELCOME
@SourceTargetContent(numeric = "002") object ... | isc | Kotlin |
cf766d2ebf642f13ca70de0f0ede03c8da8bff59 | remove theme default values | fboldog/AnkoMaterialSamples | src/main/kotlin/com/ferencboldog/ankovskotlinx/extensions/AnkoExtensions.kt | src/main/kotlin/com/ferencboldog/ankovskotlinx/extensions/AnkoExtensions.kt | package com.ferencboldog.ankovskotlinx.extensions
import android.content.Context
import android.os.Build
import android.support.annotation.AttrRes
import android.support.annotation.StyleRes
import android.support.design.widget.AppBarLayout
import android.support.design.widget.Snackbar
import android.support.v7.view.Co... | package com.ferencboldog.ankovskotlinx.extensions
import android.content.Context
import android.os.Build
import android.support.annotation.AttrRes
import android.support.annotation.StyleRes
import android.support.design.widget.AppBarLayout
import android.support.design.widget.Snackbar
import android.support.v7.view.Co... | apache-2.0 | Kotlin |
46ba7620917cc651325d56e3b419eb7eabe782f2 | add write to TileGrid | Hexworks/zircon,Hexworks/zircon,Hexworks/zircon | zircon.core/common/src/main/kotlin/org/hexworks/zircon/api/grid/TileGrid.kt | zircon.core/common/src/main/kotlin/org/hexworks/zircon/api/grid/TileGrid.kt | package org.hexworks.zircon.api.grid
import org.hexworks.zircon.api.CharacterTileStrings
import org.hexworks.zircon.api.animation.AnimationHandler
import org.hexworks.zircon.api.behavior.*
import org.hexworks.zircon.api.data.Position
import org.hexworks.zircon.api.graphics.CharacterTileString
import org.hexworks.zirco... | package org.hexworks.zircon.api.grid
import org.hexworks.zircon.api.animation.AnimationHandler
import org.hexworks.zircon.api.behavior.*
import org.hexworks.zircon.api.graphics.DrawSurface
/**
* This is the main grid interface, at the lowest level supported. You can write your own
* implementation of this if you wa... | apache-2.0 | Kotlin |
acd0602767ef46bdd0d1486533f7cfd46b62f521 | Remove DummyDataController from production | BreakOutEvent/breakout-backend,BreakOutEvent/breakout-backend,BreakOutEvent/breakout-backend | src/main/java/backend/controller/DummyDataController.kt | src/main/java/backend/controller/DummyDataController.kt | package backend.controller
import backend.model.event.EventService
import backend.model.misc.Coord
import backend.model.posting.PostingService
import backend.model.user.UserService
import backend.util.Profiles
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.context.annotation.P... | package backend.controller
import backend.model.event.EventService
import backend.model.misc.Coord
import backend.model.posting.PostingService
import backend.model.user.UserService
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.web.bind.annotation.RequestMapping
import org.spr... | agpl-3.0 | Kotlin |
0e4273bb7d63f087b011609e57144bf9032b35cd | Add test code | RettyEng/redux-kt | sample/app/src/test/java/me/retty/reduxkt/sample/TodoReducerTest.kt | sample/app/src/test/java/me/retty/reduxkt/sample/TodoReducerTest.kt | package me.retty.reduxkt.sample
import me.retty.reduxkt.Store
import me.retty.reduxkt.sample.data.Todo
import me.retty.reduxkt.sample.redux.action.TodoAction
import me.retty.reduxkt.sample.redux.reducer.TodoReducerSet
import me.retty.reduxkt.sample.redux.state.ApplicationState
import org.junit.Assert
import org.junit.... | mit | Kotlin | |
7370691f78220e13bb4164d4c9cad0c71dc13eba | add a new resource extension for getting colored drawable | canou/Simple-Commons | commons/src/main/kotlin/com/simplemobiletools/commons/extensions/Resources.kt | commons/src/main/kotlin/com/simplemobiletools/commons/extensions/Resources.kt | package com.simplemobiletools.commons.extensions
import android.content.res.Resources
import android.graphics.*
import android.graphics.drawable.Drawable
fun Resources.getColoredIcon(newColor: Int, resourceId: Int): Bitmap {
val options = BitmapFactory.Options()
options.inMutable = true
val bmp = BitmapFa... | package com.simplemobiletools.commons.extensions
import android.content.res.Resources
import android.graphics.*
fun Resources.getColoredIcon(newColor: Int, resourceId: Int): Bitmap {
val options = BitmapFactory.Options()
options.inMutable = true
val bmp = BitmapFactory.decodeResource(this, resourceId, opt... | apache-2.0 | Kotlin |
2c892ccddc742f8cd9d799bc581346b57e68fb3b | fix androidFileProperties extension | Ekito/koin,Ekito/koin,InsertKoinIO/koin,InsertKoinIO/koin,InsertKoinIO/koin | koin-projects/koin-android/src/main/java/org/koin/android/ext/koin/KoinExt.kt | koin-projects/koin-android/src/main/java/org/koin/android/ext/koin/KoinExt.kt | /*
* Copyright 2017-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | /*
* Copyright 2017-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | apache-2.0 | Kotlin |
2dbd177e54c5edf1de8182f0639bd218a57e557f | Add Feed data model. | google/iosched,google/iosched,google/iosched | shared/src/main/java/com/google/samples/apps/iosched/shared/model/FeedItem.kt | shared/src/main/java/com/google/samples/apps/iosched/shared/model/FeedItem.kt | /*
* Copyright 2018 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | apache-2.0 | Kotlin | |
03ac32030b356fa0e59674b5c911d448ce66a261 | refactor #523 Use property access syntax. | toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt | app/src/test/java/jp/toastkid/yobidashi/browser/webview/DarkModeApplierTest.kt | app/src/test/java/jp/toastkid/yobidashi/browser/webview/DarkModeApplierTest.kt | package jp.toastkid.yobidashi.browser.webview
import android.os.Build
import android.webkit.WebView
import androidx.webkit.WebSettingsCompat
import androidx.webkit.WebViewFeature
import io.mockk.MockKAnnotations
import io.mockk.Runs
import io.mockk.every
import io.mockk.impl.annotations.InjectMockKs
import io.mockk.im... | package jp.toastkid.yobidashi.browser.webview
import android.os.Build
import android.webkit.WebView
import androidx.webkit.WebSettingsCompat
import androidx.webkit.WebViewFeature
import io.mockk.MockKAnnotations
import io.mockk.Runs
import io.mockk.every
import io.mockk.impl.annotations.InjectMockKs
import io.mockk.im... | epl-1.0 | Kotlin |
ef07b941bf25ebf29e9783d66c014754355ea1ab | Change FIXME to TODO (spotless wasn't happy) | android/compose-samples,android/compose-samples | Jetcaster/app/src/main/java/com/example/jetcaster/util/LocalViewModel.kt | Jetcaster/app/src/main/java/com/example/jetcaster/util/LocalViewModel.kt | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | package com.example.jetcaster.util
// FIXME: This is a temporary fix, delete this file and import the dependency from androidx package instead
import androidx.lifecycle.viewmodel.compose.LocalViewModelStoreOwner
import androidx.compose.runtime.Composable
import androidx.lifecycle.ViewModel
import androidx.lifecycle.... | apache-2.0 | Kotlin |
9b2d1b49a38399d986407514157336276b323f43 | Improve layout | SpineEventEngine/core-java,SpineEventEngine/core-java,SpineEventEngine/core-java | server/src/main/kotlin/io/spine/server/entity/TransactionalEntityExtensions.kt | server/src/main/kotlin/io/spine/server/entity/TransactionalEntityExtensions.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 |
bd40c5f5bca73094eca19bed186149cf3d04e7ec | Replace about fragment (#243) | vase4kin/TeamCityApp,vase4kin/TeamCityApp,vase4kin/TeamCityApp | app/src/main/java/com/github/vase4kin/teamcityapp/about/AboutActivity.kt | app/src/main/java/com/github/vase4kin/teamcityapp/about/AboutActivity.kt | /*
* Copyright 2019 Andrey Tolpeev
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | /*
* Copyright 2019 Andrey Tolpeev
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | apache-2.0 | Kotlin |
2fecfbe7e93571d31220ec396c1755315d512fa1 | add text/xml content type - this is used by AWS | http4k/http4k,http4k/http4k,http4k/http4k,grover-ws-1/http4k,grover-ws-1/http4k,http4k/http4k,http4k/http4k,http4k/http4k,grover-ws-1/http4k,http4k/http4k,grover-ws-1/http4k,grover-ws-1/http4k | http4k-core/src/main/kotlin/org/http4k/core/ContentType.kt | http4k-core/src/main/kotlin/org/http4k/core/ContentType.kt | package org.http4k.core
data class ContentType(val value: String) {
companion object {
val APPLICATION_JSON = ContentType("application/json")
val APPLICATION_FORM_URLENCODED = ContentType("application/x-www-form-urlencoded")
val APPLICATION_XML = ContentType("application/xml")
val ... | package org.http4k.core
data class ContentType(val value: String) {
companion object {
val APPLICATION_JSON = ContentType("application/json")
val APPLICATION_FORM_URLENCODED = ContentType("application/x-www-form-urlencoded")
val APPLICATION_XML = ContentType("application/xml")
val ... | apache-2.0 | Kotlin |
390ffd1ebb3da8c17e93aabf136209af9d125e18 | Add a test to ensure that the Kodein configuration is complete. | charleskorn/batect,charleskorn/batect,charleskorn/batect,charleskorn/batect,charleskorn/batect | app/src/test/kotlin/batect/InjectionConfigurationSpec.kt | app/src/test/kotlin/batect/InjectionConfigurationSpec.kt | /*
Copyright 2017-2018 Charles Korn.
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 | |
daf103137cb4d8a1c55083bee8e060e224f792e8 | Add DumyNMSContoroller | Homes-MinecraftServerMod/Homes,Homes-MinecraftServerMod/Homes | src/main/kotlin/com/masahirosaito/spigot/homes/nms/NMSController.kt | src/main/kotlin/com/masahirosaito/spigot/homes/nms/NMSController.kt | package com.masahirosaito.spigot.homes.nms
import com.masahirosaito.spigot.homes.Homes
import com.masahirosaito.spigot.homes.homedata.HomeData
import com.masahirosaito.spigot.homes.nms.v1_10_R1.NMSController_v1_10_R1
import com.masahirosaito.spigot.homes.nms.v1_11_R1.NMSController_v1_11_R1
import org.bukkit.Location
i... | package com.masahirosaito.spigot.homes.nms
import com.masahirosaito.spigot.homes.Homes
import com.masahirosaito.spigot.homes.homedata.HomeData
import com.masahirosaito.spigot.homes.nms.v1_10_R1.NMSController_v1_10_R1
import com.masahirosaito.spigot.homes.nms.v1_11_R1.NMSController_v1_11_R1
import org.bukkit.Location
i... | apache-2.0 | Kotlin |
2da5eb703cd39911fecfdd4be53c7d3577e9e638 | Rename doTest() to classify() | Turbo87/intellij-emberjs,Turbo87/intellij-emberjs,Turbo87/intellij-emberjs,Turbo87/intellij-emberjs | src/test/kotlin/com/emberjs/utils/EmberStringUtilsTest.kt | src/test/kotlin/com/emberjs/utils/EmberStringUtilsTest.kt | package com.emberjs.utils
import org.assertj.core.api.Assertions.assertThat
import org.junit.Test
class EmberStringUtilsTest {
@Test fun `classify normal string`() = classify("my favorite items", "MyFavoriteItems")
@Test fun `classify dasherized string`() = classify("css-class-name", "CssClassName")
@Tes... | package com.emberjs.utils
import org.assertj.core.api.Assertions.assertThat
import org.junit.Test
class EmberStringUtilsTest {
@Test fun `classify normal string`() = doTest("my favorite items", "MyFavoriteItems")
@Test fun `classify dasherized string`() = doTest("css-class-name", "CssClassName")
@Test fu... | apache-2.0 | Kotlin |
17c1ee06f471ea6630a3c7a9c0f42c2a695abc18 | Set version of room to alpha3 am: 334457599f | androidx/androidx,AndroidX/androidx,AndroidX/androidx,androidx/androidx,androidx/androidx,androidx/androidx,AndroidX/androidx,aosp-mirror/platform_frameworks_support,AndroidX/androidx,AndroidX/androidx,AndroidX/androidx,androidx/androidx,AndroidX/androidx,AndroidX/androidx,androidx/androidx,androidx/androidx,aosp-mirro... | buildSrc/src/main/kotlin/android/support/LibraryVersions.kt | buildSrc/src/main/kotlin/android/support/LibraryVersions.kt | /*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | /*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | apache-2.0 | Kotlin |
0e34c2cf9bdcb3edcedceaf9ce96d319f20b3e10 | Add cached value stat documentation | google/ide-perf,google/ide-perf | src/main/java/com/google/idea/perf/cachedvaluetracer/CachedValueStats.kt | src/main/java/com/google/idea/perf/cachedvaluetracer/CachedValueStats.kt | /*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | /*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | apache-2.0 | Kotlin |
f5c791a150242fab1973af6ea5ad3c02e07dbf5f | Bump korte to 2.0.7 (#1773) | Kotlin/dokka,Kotlin/dokka,Kotlin/dokka,Kotlin/dokka,Kotlin/dokka,Kotlin/dokka | plugins/javadoc/build.gradle.kts | plugins/javadoc/build.gradle.kts | import org.jetbrains.registerDokkaArtifactPublication
dependencies {
implementation("com.soywiz.korlibs.korte:korte-jvm:2.0.7")
implementation(project(":plugins:base"))
implementation(project(":plugins:kotlin-as-java"))
testImplementation(project(":plugins:base:base-test-utils"))
val kotlinx_html_... | import org.jetbrains.registerDokkaArtifactPublication
dependencies {
implementation("com.soywiz.korlibs.korte:korte-jvm:1.10.3")
implementation(project(":plugins:base"))
implementation(project(":plugins:kotlin-as-java"))
testImplementation(project(":plugins:base:base-test-utils"))
val kotlinx_html... | apache-2.0 | Kotlin |
74a2297be0f7c286ef2d51f5c72fe83ceaae0d37 | Add docs on pointer move filter. | AndroidX/androidx,androidx/androidx,AndroidX/androidx,AndroidX/androidx,androidx/androidx,AndroidX/androidx,androidx/androidx,androidx/androidx,androidx/androidx,AndroidX/androidx,AndroidX/androidx,androidx/androidx,AndroidX/androidx,androidx/androidx,androidx/androidx,androidx/androidx,AndroidX/androidx,AndroidX/andro... | compose/ui/ui/src/desktopMain/kotlin/androidx/compose/ui/input/pointer/PointerMoveFilter.kt | compose/ui/ui/src/desktopMain/kotlin/androidx/compose/ui/input/pointer/PointerMoveFilter.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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | /*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | apache-2.0 | Kotlin |
c9df40d362e79224e0f881d20c885743a0384a80 | add kotlin templates | seirion/code,seirion/code,seirion/code,seirion/code,seirion/code | kotlin-template/src/main.kt | kotlin-template/src/main.kt | fun main() {
println(": ${toInts()}")
}
fun toInt() = readLine()!!.toInt()
fun toInts() = readLine()!!.split(" ").map { it.toInt() }
fun toLong() = readLine()!!.toLong()
fun toLongs() = readLine()!!.split(" ").map { it.toLong() }
| apache-2.0 | Kotlin | |
dbb4bbba7f682a094f60a9c4b7fabab251b81a61 | Create AlreadyExecuteTeleport Exception | Homes-MinecraftServerMod/Homes,Homes-MinecraftServerMod/Homes | src/main/kotlin/com/masahirosaito/spigot/homes/exceptions/AlreadyExecutTeleportException.kt | src/main/kotlin/com/masahirosaito/spigot/homes/exceptions/AlreadyExecutTeleportException.kt | package com.masahirosaito.spigot.homes.exceptions
import com.masahirosaito.spigot.homes.strings.ErrorStrings
class AlreadyExecutTeleportException : HomesException(ErrorStrings.ALREADY_EXECUTE_TELEPORT())
| apache-2.0 | Kotlin | |
12077cfa578663d6e77c035404affd125cbd2cd5 | Use Mutex in DefaultDeviceIdRepository (#3223) | stripe/stripe-android,stripe/stripe-android,stripe/stripe-android,stripe/stripe-android,stripe/stripe-android | stripe/src/main/java/com/stripe/android/paymentsheet/analytics/DefaultDeviceIdRepository.kt | stripe/src/main/java/com/stripe/android/paymentsheet/analytics/DefaultDeviceIdRepository.kt | package com.stripe.android.paymentsheet.analytics
import android.content.Context
import android.content.SharedPreferences
import androidx.core.content.edit
import kotlinx.coroutines.sync.Mutex
import kotlinx.coroutines.sync.withLock
import kotlinx.coroutines.withContext
import kotlin.coroutines.CoroutineContext
inter... | package com.stripe.android.paymentsheet.analytics
import android.content.Context
import android.content.SharedPreferences
import androidx.core.content.edit
import kotlinx.coroutines.withContext
import kotlin.coroutines.CoroutineContext
internal class DefaultDeviceIdRepository(
private val context: Context,
pr... | mit | Kotlin |
80fa829422f17f211ac52008eafb311db6bcc220 | Make injected dependencies private | lewinskimaciej/planner,lewinskimaciej/planner | app/src/main/java/com/atc/planner/presentation/main/MainPresenter.kt | app/src/main/java/com/atc/planner/presentation/main/MainPresenter.kt | package com.atc.planner.presentation.main
import android.location.Location
import com.atc.planner.R
import com.atc.planner.commons.LocationProvider
import com.atc.planner.commons.StringProvider
import com.atc.planner.presentation.base.BasePresenter
import com.github.ajalt.timberkt.e
import com.google.android.gms.maps.... | package com.atc.planner.presentation.main
import android.location.Location
import com.atc.planner.R
import com.atc.planner.commons.LocationProvider
import com.atc.planner.commons.StringProvider
import com.atc.planner.presentation.base.BasePresenter
import com.github.ajalt.timberkt.e
import com.google.android.gms.maps.... | mit | Kotlin |
45f32909c38b40b57ae1ed0aaa08aea01af62ab8 | Drop Class#getPackageName() call for Java 8 compatibility | CodeIntelligenceTesting/jazzer,CodeIntelligenceTesting/jazzer,CodeIntelligenceTesting/jazzer,CodeIntelligenceTesting/jazzer,CodeIntelligenceTesting/jazzer | agent/src/main/java/com/code_intelligence/jazzer/generated/JavaNoThrowMethods.kt | agent/src/main/java/com/code_intelligence/jazzer/generated/JavaNoThrowMethods.kt | // Copyright 2021 Code Intelligence GmbH
//
// 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 2021 Code Intelligence GmbH
//
// 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 |
95c0328934a5d1b6917eb29bac92fb6b70a2d221 | Update to ktlint 0.34.2 | androidx/androidx,androidx/androidx,AndroidX/androidx,androidx/androidx,AndroidX/androidx,AndroidX/androidx,AndroidX/androidx,AndroidX/androidx,androidx/androidx,androidx/androidx,androidx/androidx,androidx/androidx,AndroidX/androidx,AndroidX/androidx,AndroidX/androidx,AndroidX/androidx,androidx/androidx,androidx/andro... | buildSrc/src/main/kotlin/androidx/build/Ktlint.kt | buildSrc/src/main/kotlin/androidx/build/Ktlint.kt | /*
* Copyright 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | /*
* Copyright 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | apache-2.0 | Kotlin |
3f1831847ada54142e292a9c90972b629dccf708 | Update ActivityExt.kt | yongjhih/kotlin-android-extensions,yongjhih/kotlin-android-extensions,yongjhih/kotlin-extensions,yongjhih/kotlin-extensions | kotlinx-android-activity/src/main/kotlin/kotlinx/android/activity/ActivityExt.kt | kotlinx-android-activity/src/main/kotlin/kotlinx/android/activity/ActivityExt.kt | package kotlinx.android.activity
import android.app.Activity
import android.support.annotation.ColorRes
import android.support.annotation.StringRes
import android.support.v4.app.FragmentActivity
import android.support.v4.app.FragmentTransaction
import android.support.v4.content.ContextCompat
import android.widget.Toas... | package kotlinx.android.activity
import android.app.Activity
import android.support.annotation.ColorRes
import android.support.annotation.StringRes
import android.support.v4.app.FragmentActivity
import android.support.v4.app.FragmentTransaction
import android.support.v4.content.ContextCompat
import android.widget.Toas... | apache-2.0 | Kotlin |
272a2c4c5a22dff5251076f091c8cf01a63bf5af | synchronize close to avoid possible double async context completion | ktorio/ktor,ktorio/ktor,ktorio/ktor,ktorio/ktor | ktor-hosts/ktor-servlet/src/org/jetbrains/ktor/servlet/ServletApplicationCall.kt | ktor-hosts/ktor-servlet/src/org/jetbrains/ktor/servlet/ServletApplicationCall.kt | package org.jetbrains.ktor.servlet
import org.jetbrains.ktor.application.*
import org.jetbrains.ktor.host.*
import org.jetbrains.ktor.util.*
import java.util.concurrent.*
import javax.servlet.*
import javax.servlet.http.*
class ServletApplicationCall(application: Application,
priva... | package org.jetbrains.ktor.servlet
import org.jetbrains.ktor.application.*
import org.jetbrains.ktor.host.*
import org.jetbrains.ktor.util.*
import java.util.concurrent.*
import javax.servlet.*
import javax.servlet.http.*
class ServletApplicationCall(application: Application,
priva... | apache-2.0 | Kotlin |
44fb1534bb245401e32ca730c747bc9595a05d82 | Add bookmark location controller test (#3947) | nicolas-raoul/apps-android-commons,maskaravivek/apps-android-commons,neslihanturan/apps-android-commons,commons-app/apps-android-commons,psh/apps-android-commons,maskaravivek/apps-android-commons,neslihanturan/apps-android-commons,maskaravivek/apps-android-commons,domdomegg/apps-android-commons,commons-app/apps-android... | app/src/test/kotlin/fr/free/nrw/commons/bookmarks/locations/BookmarkLocationControllerTest.kt | app/src/test/kotlin/fr/free/nrw/commons/bookmarks/locations/BookmarkLocationControllerTest.kt | package fr.free.nrw.commons.bookmarks.locations
import android.net.Uri
import com.nhaarman.mockitokotlin2.whenever
import fr.free.nrw.commons.bookmarks.Bookmark
import fr.free.nrw.commons.bookmarks.pictures.BookmarkPicturesDao
import fr.free.nrw.commons.nearby.Place
import org.junit.Assert
import org.junit.Before
impo... | apache-2.0 | Kotlin | |
71fe823ba94384fc153c961983061008132a8815 | Remove some debug code. (#98) | FelixKlauke/mercantor,FelixKlauke/mercantor | server/src/main/kotlin/de/d3adspace/mercantor/server/MercantorServerBootstrap.kt | server/src/main/kotlin/de/d3adspace/mercantor/server/MercantorServerBootstrap.kt | package de.d3adspace.mercantor.server
import com.google.gson.GsonBuilder
import de.d3adspace.mercantor.commons.model.HeartbeatModel
import de.d3adspace.mercantor.commons.model.ServiceModel
import de.d3adspace.mercantor.commons.model.ServiceStatus
import de.d3adspace.mercantor.core.MercantorFactory
import de.d3adspace.... | package de.d3adspace.mercantor.server
import com.google.gson.GsonBuilder
import de.d3adspace.mercantor.commons.model.HeartbeatModel
import de.d3adspace.mercantor.commons.model.ServiceModel
import de.d3adspace.mercantor.commons.model.ServiceStatus
import de.d3adspace.mercantor.core.MercantorFactory
import de.d3adspace.... | mit | Kotlin |
aff95f5b1f0e09e9f79d936a972f83af9973ce2a | Bump `base` | SpineEventEngine/core-java,SpineEventEngine/core-java,SpineEventEngine/core-java | version.gradle.kts | version.gradle.kts | /*
* Copyright 2022, TeamDev. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Redistribution and use in source... | /*
* Copyright 2022, TeamDev. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Redistribution and use in source... | apache-2.0 | Kotlin |
72024380f7eae106ae68d2dd7d06aa6279793a70 | Make ComputeError subclass of MediaEncodableException | emanuelpalm/palm-compute,emanuelpalm/palm-compute,emanuelpalm/palm-compute,emanuelpalm/palm-compute | core/src/main/java/se/ltu/emapal/compute/ComputeError.kt | core/src/main/java/se/ltu/emapal/compute/ComputeError.kt | package se.ltu.emapal.compute
import se.ltu.emapal.compute.util.Result
import se.ltu.emapal.compute.util.media.MediaDecoder
import se.ltu.emapal.compute.util.media.MediaEncodable
import se.ltu.emapal.compute.util.media.MediaEncodableException
import se.ltu.emapal.compute.util.media.MediaEncoder
import se.ltu.emapal.co... | package se.ltu.emapal.compute
import se.ltu.emapal.compute.util.Result
import se.ltu.emapal.compute.util.media.MediaDecoder
import se.ltu.emapal.compute.util.media.MediaEncodable
import se.ltu.emapal.compute.util.media.MediaEncoder
import se.ltu.emapal.compute.util.media.schema.MediaSchema
import se.ltu.emapal.compute... | mit | Kotlin |
9b76f146dc76e4de803ffff52218ef7870c6ac10 | Refactor to use AndroidX packages | ramonrabello/Kiphy | app/src/main/kotlin/com/github/ramonrabello/kiphy/presentation/trends/SpacingItemDecoration.kt | app/src/main/kotlin/com/github/ramonrabello/kiphy/presentation/trends/SpacingItemDecoration.kt | package com.github.ramonrabello.kiphy.presentation.trends
import android.graphics.Rect
import android.view.View
import androidx.recyclerview.widget.RecyclerView
/**
* Spacing item decoration for recycler view.
*/
class SpacingItemDecoration(private val itemOffset:Int) : RecyclerView.ItemDecoration() {
override... | package com.github.ramonrabello.kiphy.presentation.trends
import android.graphics.Rect
import android.support.v7.widget.RecyclerView
import android.view.View
/**
* Spacing item decoration for recycler view.
*/
class SpacingItemDecoration(val itemOffset:Int) : RecyclerView.ItemDecoration() {
override fun getIte... | apache-2.0 | Kotlin |
0bb85713496501b262bdfede1d6095a05374f305 | refactor #727 Divide to use case. | toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Jitte | app/src/main/java/jp/toastkid/yobidashi/about/license/LicenseHtmlLoaderUseCase.kt | app/src/main/java/jp/toastkid/yobidashi/about/license/LicenseHtmlLoaderUseCase.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 | |
1ae4bd23b66650ad3f297a87dc5eec6b5b97204e | clone graph | dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas,dkandalov/katas | kotlin/src/katas/kotlin/leetcode/clone_graph/CloneGraph.kt | kotlin/src/katas/kotlin/leetcode/clone_graph/CloneGraph.kt | package katas.kotlin.leetcode.clone_graph
import kotlincommon.test.shouldEqual
import org.junit.Test
data class GraphNode(var value: Int, var neighbors: MutableList<GraphNode> = ArrayList())
data class UndirectedGraph(val nodes: MutableSet<GraphNode> = LinkedHashSet()) {
fun connect(value1: Int, value2: Int): Un... | package katas.kotlin.leetcode.clone_graph
import kotlincommon.test.shouldEqual
import org.junit.Test
data class GraphNode(var value: Int, var neighbors: MutableList<GraphNode> = ArrayList())
data class UndirectedGraph(val nodes: MutableSet<GraphNode> = LinkedHashSet()) {
fun connect(value1: Int, value2: Int): Un... | unlicense | Kotlin |
3da0786d4a6a2cfab36d74fa930d5f198ba6a6e0 | Fix capabilities JSON adapter generation (#577) | vimeo/vimeo-networking-java,vimeo/vimeo-networking-java,vimeo/vimeo-networking-java | models/src/main/java/com/vimeo/networking2/Capabilities.kt | models/src/main/java/com/vimeo/networking2/Capabilities.kt | package com.vimeo.networking2
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
/**
* User capabilities.
*/
@JsonClass(generateAdapter = true)
data class Capabilities(
/**
* If user has restricted privacy options enabled.
*/
@Json(name = "restricted_privacy_options")
val rest... | package com.vimeo.networking2
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
/**
* User capabilities.
*/
@JsonClass(generateAdapter = true)
class Capabilities {
/**
* If user has restricted privacy options enabled.
*/
@Json(name = "restricted_privacy_options")
val restrict... | mit | Kotlin |
076c46e4aaf69351af9528144cd209baeab0b43e | Simplify lines | shiraji/permissions-dispatcher-plugin,shiraji/permissions-dispatcher-plugin,shiraji/permissions-dispatcher-plugin | src/main/kotlin/com/github/shiraji/permissionsdispatcherplugin/actions/GeneratePMCodeAction.kt | src/main/kotlin/com/github/shiraji/permissionsdispatcherplugin/actions/GeneratePMCodeAction.kt | package com.github.shiraji.permissionsdispatcherplugin.actions
import com.github.shiraji.permissionsdispatcherplugin.handlers.GeneratePMCodeHandler
import com.github.shiraji.permissionsdispatcherplugin.models.GeneratePMCodeModel
import com.github.shiraji.permissionsdispatcherplugin.views.GeneratePMCodeDialog
import co... | package com.github.shiraji.permissionsdispatcherplugin.actions
import com.github.shiraji.permissionsdispatcherplugin.handlers.GeneratePMCodeHandler
import com.github.shiraji.permissionsdispatcherplugin.models.GeneratePMCodeModel
import com.github.shiraji.permissionsdispatcherplugin.views.GeneratePMCodeDialog
import co... | apache-2.0 | Kotlin |
9ff82810b383103c95b43ff277b4c8720894da29 | Add "Lint warnings" config, fix name | storybooks/storybook,storybooks/storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/react-storybook,storybooks/react-storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook,kadirahq/react-storybook | .teamcity/OpenSourceProjects_Storybook/buildTypes/OpenSourceProjects_Storybook_Lint_Warnings.kt | .teamcity/OpenSourceProjects_Storybook/buildTypes/OpenSourceProjects_Storybook_Lint_Warnings.kt | package OpenSourceProjects_Storybook.buildTypes
import jetbrains.buildServer.configs.kotlin.v2017_2.*
import jetbrains.buildServer.configs.kotlin.v2017_2.buildFeatures.commitStatusPublisher
import jetbrains.buildServer.configs.kotlin.v2017_2.buildSteps.script
import jetbrains.buildServer.configs.kotlin.v2017_2.trigger... | package OpenSourceProjects_Storybook.buildTypes
import jetbrains.buildServer.configs.kotlin.v2017_2.*
import jetbrains.buildServer.configs.kotlin.v2017_2.buildFeatures.commitStatusPublisher
import jetbrains.buildServer.configs.kotlin.v2017_2.buildSteps.script
import jetbrains.buildServer.configs.kotlin.v2017_2.trigger... | mit | Kotlin |
b50e5bc4fb124054cfe603ac6494727351260908 | Replace 'apply/let' with 'HashMap.getOrPut' for better readability. | viniciussoares/ribot-android-boilerplate-kotlin,viniciussoares/ribot-android-boilerplate-kotlin | app/src/main/kotlin/uk/co/ribot/androidboilerplate/ui/base/BaseActivity.kt | app/src/main/kotlin/uk/co/ribot/androidboilerplate/ui/base/BaseActivity.kt | package uk.co.ribot.androidboilerplate.ui.base
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import timber.log.Timber
import uk.co.ribot.androidboilerplate.injection.component.ActivityComponent
import uk.co.ribot.androidboilerplate.injection.component.ConfigPersistentComponent
import uk.co.r... | package uk.co.ribot.androidboilerplate.ui.base
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import timber.log.Timber
import uk.co.ribot.androidboilerplate.injection.component.ActivityComponent
import uk.co.ribot.androidboilerplate.injection.component.ConfigPersistentComponent
import uk.co.r... | apache-2.0 | Kotlin |
5e09e29a05ec6f5248d0f6e2c3d0b8850a606ce2 | fix RIDER-53722 | JetBrains/resharper-unity,JetBrains/resharper-unity,JetBrains/resharper-unity | rider/src/main/kotlin/com/jetbrains/rider/plugins/unity/ui/NonUserEditableEditorNotification.kt | rider/src/main/kotlin/com/jetbrains/rider/plugins/unity/ui/NonUserEditableEditorNotification.kt | package com.jetbrains.rider.plugins.unity.ui
import com.intellij.openapi.fileEditor.FileEditor
import com.intellij.openapi.project.DumbAware
import com.intellij.openapi.project.Project
import com.intellij.openapi.util.Key
import com.intellij.openapi.vfs.VirtualFile
import com.intellij.ui.EditorNotificationPanel
import... | package com.jetbrains.rider.plugins.unity.ui
import com.intellij.openapi.fileEditor.FileEditor
import com.intellij.openapi.project.DumbAware
import com.intellij.openapi.project.Project
import com.intellij.openapi.util.Key
import com.intellij.openapi.vfs.VirtualFile
import com.intellij.ui.EditorNotificationPanel
import... | apache-2.0 | Kotlin |
c6eb9ca3a1f334d93a11bcaee1b267ab7960fcb9 | simplify getFormat internal logic | mvmike/min-cal-widget | app/src/main/kotlin/cat/mvmike/minimalcalendarwidget/domain/Format.kt | app/src/main/kotlin/cat/mvmike/minimalcalendarwidget/domain/Format.kt | // Copyright (c) 2016, Miquel Martí <miquelmarti111@gmail.com>
// See LICENSE for licensing information
package cat.mvmike.minimalcalendarwidget.domain
import android.appwidget.AppWidgetManager
import android.content.Context
import android.content.res.Configuration.ORIENTATION_LANDSCAPE
import android.os.Bundle
priva... | // Copyright (c) 2016, Miquel Martí <miquelmarti111@gmail.com>
// See LICENSE for licensing information
package cat.mvmike.minimalcalendarwidget.domain
import android.appwidget.AppWidgetManager
import android.content.Context
import android.content.res.Configuration.ORIENTATION_LANDSCAPE
import android.os.Bundle
priva... | bsd-3-clause | Kotlin |
19ce349123042d999e4161acb6e08dcb417ea5d2 | Refactor Main to Kotlin | scenerygraphics/SciView,scenerygraphics/SciView | src/main/kotlin/sc/iview/Main.kt | src/main/kotlin/sc/iview/Main.kt | /*-
* #%L
* Scenery-backed 3D visualization package for ImageJ.
* %%
* Copyright (C) 2016 - 2020 SciView developers.
* %%
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code mus... | /*-
* #%L
* Scenery-backed 3D visualization package for ImageJ.
* %%
* Copyright (C) 2016 - 2020 SciView developers.
* %%
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code mus... | bsd-2-clause | Kotlin |
4ea0ab732c78fb451f12825dffe97cdb8ac08b9c | Test parsing log entry | rec-framework/rec-core,rec-framework/rec-core,rec-framework/rec-core | src/test/kotlin/net/kimleo/rec/AccessorTest.kt | src/test/kotlin/net/kimleo/rec/AccessorTest.kt | package net.kimleo.rec
import net.kimleo.rec.API.*
import net.kimleo.rec.accessor.lexer.Lexer.buildFieldMapPair
import net.kimleo.rec.record.parser.ParseConfig
import org.junit.Test
import kotlin.test.assertEquals
class AccessorTest {
@Test
fun shouldBuildAccessorMapSuccessfully() {
val (map1, leastCa... | package net.kimleo.rec
import net.kimleo.rec.API.*
import net.kimleo.rec.accessor.lexer.Lexer.buildFieldMapPair
import net.kimleo.rec.record.parser.ParseConfig
import org.junit.Test
import kotlin.test.assertEquals
class AccessorTest {
@Test
fun shouldBuildAccessorMapSuccessfully() {
val (map1, leastCa... | mit | Kotlin |
8c9370a05576abbedfcdd7a73f3449e1ab00da75 | Make wrapInRecyclerView lambda inline | LouisCAD/Splitties,LouisCAD/Splitties,LouisCAD/Splitties | modules/views-dsl-recyclerview/src/main/kotlin/splitties/views/dsl/recyclerview/SrollWrapping.kt | modules/views-dsl-recyclerview/src/main/kotlin/splitties/views/dsl/recyclerview/SrollWrapping.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 |
addb710b7e9d064b19f13e37cfd1e57981392461 | Remove version log from application base | AcornUI/Acorn,AcornUI/Acorn,AcornUI/Acorn | acornui-core/src/commonMain/kotlin/com/acornui/core/ApplicationBase.kt | acornui-core/src/commonMain/kotlin/com/acornui/core/ApplicationBase.kt | /*
* Copyright 2019 Poly Forest, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | /*
* Copyright 2019 Poly Forest, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | apache-2.0 | Kotlin |
34e49aa19ab64dcee701f1efb05d9e7442825e99 | Make SettingsActivity extend BaseActivity | FarbodSalamat-Zadeh/TimetableApp,FarbodSalamat-Zadeh/TimetableApp | app/src/main/java/com/satsumasoftware/timetable/ui/SettingsActivity.kt | app/src/main/java/com/satsumasoftware/timetable/ui/SettingsActivity.kt | package com.satsumasoftware.timetable.ui
import android.os.Bundle
import android.preference.PreferenceFragment
import android.support.design.widget.NavigationView
import android.support.v4.widget.DrawerLayout
import android.support.v7.widget.Toolbar
import com.satsumasoftware.timetable.R
class SettingsActivity : Base... | package com.satsumasoftware.timetable.ui
import android.content.Intent
import android.os.Bundle
import android.preference.PreferenceFragment
import android.support.v7.app.AppCompatActivity
import android.support.v7.widget.Toolbar
import com.satsumasoftware.timetable.R
import com.satsumasoftware.timetable.util.ThemeUti... | apache-2.0 | Kotlin |
50ba9492850cf23e97ae0475f3e18b6ea7ab1003 | Fix crash | MGaetan89/ShowsRage | app/src/main/kotlin/com/mgaetan89/showsrage/fragment/TabbedFragment.kt | app/src/main/kotlin/com/mgaetan89/showsrage/fragment/TabbedFragment.kt | package com.mgaetan89.showsrage.fragment
import android.os.Bundle
import android.support.design.widget.TabLayout
import android.support.v4.app.Fragment
import android.support.v4.view.PagerAdapter
import android.support.v4.view.ViewPager
import android.view.LayoutInflater
import android.view.View
import android.view.Vi... | package com.mgaetan89.showsrage.fragment
import android.os.Bundle
import android.support.design.widget.TabLayout
import android.support.v4.app.Fragment
import android.support.v4.view.PagerAdapter
import android.support.v4.view.ViewPager
import android.view.LayoutInflater
import android.view.View
import android.view.Vi... | apache-2.0 | Kotlin |
27c105fc98716c253df634cb267e808b29d71ce6 | refactor #412 Add comments to TranslationModelLoader. | toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Jitte | app/src/main/java/jp/toastkid/yobidashi/libs/translation/TranslationModelLoader.kt | app/src/main/java/jp/toastkid/yobidashi/libs/translation/TranslationModelLoader.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 |
f4283ee93aed196de3b39665a1b38603e855d6bc | refactor #451 Rename test case. | toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Jitte | app/src/test/java/jp/toastkid/yobidashi/browser/HtmlSourceExtractionUseCaseTest.kt | app/src/test/java/jp/toastkid/yobidashi/browser/HtmlSourceExtractionUseCaseTest.kt | package jp.toastkid.yobidashi.browser
import android.webkit.WebView
import io.mockk.MockKAnnotations
import io.mockk.every
import io.mockk.impl.annotations.MockK
import io.mockk.mockk
import io.mockk.verify
import org.junit.Before
import org.junit.Test
/**
* @author toastkidjp
*/
class HtmlSourceExtractionUseCaseTe... | package jp.toastkid.yobidashi.browser
import android.webkit.WebView
import io.mockk.MockKAnnotations
import io.mockk.every
import io.mockk.impl.annotations.MockK
import io.mockk.mockk
import io.mockk.verify
import org.junit.Before
import org.junit.Test
/**
* @author toastkidjp
*/
class HtmlSourceExtractionUseCaseTe... | epl-1.0 | Kotlin |
026f043c57c8fed9194f3237e582a2470b226a2a | test coroutineContext | hypercube1024/firefly,hypercube1024/firefly,hypercube1024/firefly,hypercube1024/firefly,hypercube1024/firefly | firefly-example/src/test/kotlin/com/firefly/example/kotlin/test/coroutine/CoroutineContextDemo.kt | firefly-example/src/test/kotlin/com/firefly/example/kotlin/test/coroutine/CoroutineContextDemo.kt | package com.firefly.example.kotlin.test.coroutine
import kotlinx.coroutines.CoroutineName
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.launch
import kotlinx.coroutines.runBlocking
/**
* @author Pengtao Qiu
*/
fun main(args: Array<String>) = runBlocking(CoroutineName("main")) {
GlobalScope.lau... | apache-2.0 | Kotlin |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.