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
2f3f234cba63862e676136f4bad0c688cd0b5c73
Add ANDROID_HOME on mac agents as well
gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,grad...
.teamcity/Gradle_Check/configurations/FunctionalTest.kt
.teamcity/Gradle_Check/configurations/FunctionalTest.kt
package configurations import common.Os import jetbrains.buildServer.configs.kotlin.v2018_2.AbsoluteId import model.CIBuildModel import model.Stage import model.TestCoverage import model.TestType class FunctionalTest(model: CIBuildModel, uuid: String, name: String, description: String, testCoverage: TestCoverage, sta...
package configurations import common.Os import jetbrains.buildServer.configs.kotlin.v2018_2.AbsoluteId import model.CIBuildModel import model.Stage import model.TestCoverage import model.TestType class FunctionalTest(model: CIBuildModel, uuid: String, name: String, description: String, testCoverage: TestCoverage, sta...
apache-2.0
Kotlin
dc7691dcb1e16b9db47c9a632cd4041024c57cc5
Fix lambda contract
http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k,http4k/http4k
http4k-serverless-lambda/integration-test/src/test/kotlin/org/http4k/serverless/lambda/client/LambdaHttpClientTest.kt
http4k-serverless-lambda/integration-test/src/test/kotlin/org/http4k/serverless/lambda/client/LambdaHttpClientTest.kt
package org.http4k.serverless.lambda.client import org.http4k.client.HttpClientContract import org.http4k.client.JavaHttpClient import org.http4k.cloudnative.env.Environment import org.http4k.core.Filter import org.http4k.core.HttpHandler import org.http4k.core.NoOp import org.http4k.core.Request import org.http4k.cor...
package org.http4k.serverless.lambda.client import org.http4k.client.HttpClientContract import org.http4k.client.JavaHttpClient import org.http4k.cloudnative.env.Environment import org.http4k.core.Filter import org.http4k.core.HttpHandler import org.http4k.core.NoOp import org.http4k.core.Request import org.http4k.cor...
apache-2.0
Kotlin
44605ee474659916db01cc9c6e4f565edfccb5ac
Use Firestore's FirestoreDataConverter
epabst/kotlin-showcase,epabst/kotlin-showcase,epabst/kotlin-showcase,epabst/kotlin-showcase
src/jsMain/kotlin/component/firebase/FirestoreRepositorySync.kt
src/jsMain/kotlin/component/firebase/FirestoreRepositorySync.kt
package component.firebase import component.repository.* import firebase.firestore.* import kotlinx.coroutines.await fun <T : WithID<T>> CollectionReference<T>.doc(id: ID<T>?): DocumentReference<T> { val documentPath = id?.toString() return if (documentPath == null) doc() else doc(documentPath) } suspend fun...
package component.firebase import component.repository.* import firebase.firestore.* import kotlinx.coroutines.await fun <T : WithID<T>> CollectionReference<DocumentData>.doc(id: ID<T>?): DocumentReference<DocumentData> { val documentPath = id?.toString() return if (documentPath == null) doc() else doc(docume...
apache-2.0
Kotlin
87f0fc4210582a847333c16fe9ff6b4f3559dde8
Annotate metalava's classpath as such for Gradle
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/metalava/MetalavaTask.kt
buildSrc/src/main/kotlin/androidx/build/metalava/MetalavaTask.kt
/* * Copyright 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 applica...
/* * Copyright 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 applica...
apache-2.0
Kotlin
11d50638d276b901c44158100aed141fb20e177a
Remove share menu for login page
marverenic/Paper
app/src/main/java/com/marverenic/reader/ui/login/LoginViewModel.kt
app/src/main/java/com/marverenic/reader/ui/login/LoginViewModel.kt
package com.marverenic.reader.ui.login import android.content.Context import android.databinding.BaseObservable import android.net.Uri import android.support.customtabs.CustomTabsIntent import com.marverenic.reader.R import com.marverenic.reader.data.AuthenticationManager import com.marverenic.reader.utils.resolveIntA...
package com.marverenic.reader.ui.login import android.content.Context import android.databinding.BaseObservable import android.net.Uri import android.support.customtabs.CustomTabsIntent import com.marverenic.reader.R import com.marverenic.reader.data.AuthenticationManager import com.marverenic.reader.utils.resolveIntA...
apache-2.0
Kotlin
1a3b5b7d9a789d5236e1db391043e6779b3c7494
Add an Event class
FarbodSalamat-Zadeh/TimetableApp,FarbodSalamat-Zadeh/TimetableApp
app/src/main/java/com/satsumasoftware/timetable/framework/Event.kt
app/src/main/java/com/satsumasoftware/timetable/framework/Event.kt
package com.satsumasoftware.timetable.framework import android.os.Parcel import android.os.Parcelable import org.threeten.bp.LocalDateTime /** * Represents an event that is not part of the usual schedule of the user. * For example, a meeting with a tutor, a sporting event, etc. * * @property id an integer identif...
apache-2.0
Kotlin
4dd37f77835f6aca5b86952c27e74ec40f6c3cb5
Update AndroidPublisher to v3-rev12-1.23.0 (#331)
Triple-T/gradle-play-publisher,Triple-T/gradle-play-publisher,MaTriXy/gradle-play-publisher-1,MaTriXy/gradle-play-publisher-1,Triple-T/gradle-play-publisher,MaTriXy/gradle-play-publisher-1
plugin/build.gradle.kts
plugin/build.gradle.kts
plugins { id("org.jetbrains.kotlin.jvm") id("groovy") id("java-gradle-plugin") id("com.vanniktech.maven.publish") } dependencies { implementation("com.android.tools.build:gradle:3.0.1") implementation("com.google.apis:google-api-services-androidpublisher:v3-rev12-1.23.0") { exclude("com...
plugins { id("org.jetbrains.kotlin.jvm") id("groovy") id("java-gradle-plugin") id("com.vanniktech.maven.publish") } dependencies { implementation("com.android.tools.build:gradle:3.0.1") implementation("com.google.apis:google-api-services-androidpublisher:v3-rev6-1.23.0") { exclude("com....
mit
Kotlin
d9fd8d5e5e46268eefcfbeaee373d98e76b4e5dc
add flip command
noud02/Akatsuki
src/main/kotlin/me/noud02/akatsuki/commands/Flip.kt
src/main/kotlin/me/noud02/akatsuki/commands/Flip.kt
/* * Copyright (c) 2017 Noud Kerver * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, * copy, modify,...
mit
Kotlin
31bfae3006fd4081bf548e3436e78839eb8763c9
Update RThread.kt
WindSekirun/RichUtilsKt,WindSekirun/RichUtilsKt
RichUtils/src/main/java/pyxis/uzuki/live/richutilskt/utils/RThread.kt
RichUtils/src/main/java/pyxis/uzuki/live/richutilskt/utils/RThread.kt
@file:JvmName("Utils") @file:JvmMultifileClass package pyxis.uzuki.live.richutilskt.utils import android.os.Handler import android.os.Looper /** * run code inside of Background Thread * * @param[action] code to execute */ fun runAsync(action: () -> Unit) = Thread(Runnable(action)).start() /** * run code inside...
@file:JvmName("Utils") @file:JvmMultifileClass package pyxis.uzuki.live.richutilskt.utils import android.os.Handler import android.os.Looper /** * run code inside of Background Thread * * @param[action] code to execute */ fun runAsync(action: () -> Unit) = Thread(Runnable(action)).start() /** * run code inside...
apache-2.0
Kotlin
f7c71d026a1ddd427343afee74e817849b689065
Move RxJava error handling to subscriber
chrisbanes/tivi,chrisbanes/tivi
app/src/main/java/me/banes/chris/tivi/util/PaginatedTraktViewModel.kt
app/src/main/java/me/banes/chris/tivi/util/PaginatedTraktViewModel.kt
/* * Copyright 2017 Google, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
/* * Copyright 2017 Google, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
apache-2.0
Kotlin
27cdf3f06834c18fd5e08d1a7c7c447c1c1e8d42
Solve problem 1792
fredyw/leetcode,fredyw/leetcode,fredyw/leetcode,fredyw/leetcode
src/main/kotlin/leetcode/Problem1792.kt
src/main/kotlin/leetcode/Problem1792.kt
package leetcode import java.util.PriorityQueue /** * https://leetcode.com/problems/maximum-average-pass-ratio/ */ class Problem1792 { fun maxAverageRatio(classes: Array<IntArray>, extraStudents: Int): Double { val queue = PriorityQueue<IntArray> { a, b -> val diff1 = ((a[0] + 1).toDouble() ...
package leetcode /** * https://leetcode.com/problems/maximum-average-pass-ratio/ */ class Problem1792 { fun maxAverageRatio(classes: Array<IntArray>, extraStudents: Int): Double { TODO() } } fun main() { val prob = Problem1792() println(prob.maxAverageRatio(arrayOf(intArrayOf(1,2), intArrayO...
mit
Kotlin
74b89d6229644de2028b3dbebd97fc5c28df021d
Solve problem 2224
fredyw/leetcode,fredyw/leetcode,fredyw/leetcode,fredyw/leetcode
src/main/kotlin/leetcode/Problem2224.kt
src/main/kotlin/leetcode/Problem2224.kt
package leetcode /** * https://leetcode.com/problems/minimum-number-of-operations-to-convert-time/ */ class Problem2224 { fun convertTime(current: String, correct: String): Int { var diff = toMinutes(correct) - toMinutes(current) var answer = 0 val minutes = mutableListOf(60, 15, 5, 1) ...
package leetcode /** * https://leetcode.com/problems/minimum-number-of-operations-to-convert-time/ */ class Problem2224 { fun convertTime(current: String, correct: String): Int { TODO() } } fun main() { val prob = Problem2224() println(prob.convertTime("02:30", "04:35")) // 3 println(pro...
mit
Kotlin
c99f604e475aad1cae681911bd1e1aa50373919f
Revert ObserveWatchedShows to RxPagedListBuilder too
chrisbanes/tivi,chrisbanes/tivi
interactors/src/main/java/app/tivi/interactors/ObserveWatchedShows.kt
interactors/src/main/java/app/tivi/interactors/ObserveWatchedShows.kt
/* * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
/* * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
apache-2.0
Kotlin
2f4645ad10da0d9d0b9d726dc9beea453434af6e
Test office view methods invocation order
DroidsOnRoids/DroidsMap,DroidsOnRoids/DroidsMap
app/src/test/java/pl/droidsonroids/droidsmap/OfficePresenterTest.kt
app/src/test/java/pl/droidsonroids/droidsmap/OfficePresenterTest.kt
package pl.droidsonroids.droidsmap import com.nhaarman.mockito_kotlin.* import org.junit.Before import org.junit.Test import pl.droidsonroids.droidsmap.feature.office.business_logic.OfficeEntity import pl.droidsonroids.droidsmap.feature.office.business_logic.OfficeFeatureBoundary import pl.droidsonroids.droidsmap.feat...
package pl.droidsonroids.droidsmap import com.nhaarman.mockito_kotlin.any import com.nhaarman.mockito_kotlin.mock import com.nhaarman.mockito_kotlin.verify import com.nhaarman.mockito_kotlin.whenever import org.junit.Before import org.junit.Test import pl.droidsonroids.droidsmap.feature.office.business_logic.OfficeEnt...
mit
Kotlin
a1d2f1ede57e50ab0f3004a1ce1af367029a768e
bump spring-web from 5.3.13 to 5.3.20 (via #746)
allure-framework/allure-java,allure-framework/allure-java
allure-spring-web/build.gradle.kts
allure-spring-web/build.gradle.kts
description = "Allure Spring Web Integration" val springWebVersion = "5.3.20" dependencies { api(project(":allure-attachments")) implementation("org.springframework:spring-web:$springWebVersion") testImplementation("com.github.tomakehurst:wiremock") testImplementation("org.assertj:assertj-core") t...
description = "Allure Spring Web Integration" val springWebVersion = "5.3.13" dependencies { api(project(":allure-attachments")) implementation("org.springframework:spring-web:$springWebVersion") testImplementation("com.github.tomakehurst:wiremock") testImplementation("org.assertj:assertj-core") t...
apache-2.0
Kotlin
5f9d9833af4e0c63aa970525dabd60c7cf1f3c59
Upgrade dependencies
traintracker/traintracker,traintracker/traintracker,traintracker/traintracker
build.gradle.kts
build.gradle.kts
plugins { java checkstyle id("com.github.ben-manes.versions") version "0.20.0" id("com.gorylenko.gradle-git-properties") version "2.0.0-beta1" id("io.spring.dependency-management") version "1.0.6.RELEASE" id("org.springframework.boot") version "2.1.0.RELEASE" } java { sourceCompatibility = ...
plugins { java checkstyle id("com.github.ben-manes.versions") version "0.20.0" id("com.gorylenko.gradle-git-properties") version "1.5.2" id("io.spring.dependency-management") version "1.0.6.RELEASE" id("org.springframework.boot") version "2.1.0.RELEASE" } java { sourceCompatibility = JavaVe...
apache-2.0
Kotlin
a60ad29a9292662ef4da8a5196e13ccab0fde036
Bump annotations from 22.0.0 to 23.0.0
gesellix/docker-client,gesellix/docker-client,gesellix/docker-client
build.gradle.kts
build.gradle.kts
plugins { id("maven-publish") id("com.github.ben-manes.versions") version "0.39.0" id("net.ossindex.audit") version "0.4.11" id("io.freefair.maven-central.validate-poms") version "6.2.0" id("io.github.gradle-nexus.publish-plugin") version "1.1.0" } val dependencyVersions = listOf( "org.codehaus.groovy:groo...
plugins { id("maven-publish") id("com.github.ben-manes.versions") version "0.39.0" id("net.ossindex.audit") version "0.4.11" id("io.freefair.maven-central.validate-poms") version "6.2.0" id("io.github.gradle-nexus.publish-plugin") version "1.1.0" } val dependencyVersions = listOf( "org.codehaus.groovy:groo...
mit
Kotlin
1ebfa2d86c592586f8a3eb5ab9dc547de6b3aa1c
remove junit 4.13.2 and keep 4.12
divinespear/jpa-schema-gradle-plugin,divinespear/jpa-schema-gradle-plugin
build.gradle.kts
build.gradle.kts
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
apache-2.0
Kotlin
433bf15b9f7163455e4723cf8c9bcc4e0f3278a1
Update TestCallback.kt class literals
cloudbearings/contentful-management.java,contentful/contentful-management.java,contentful/contentful-management.java,cloudbearings/contentful-management.java,contentful/contentful-management.java,cloudbearings/contentful-management.java
src/test/kotlin/com/contentful/java/cma/lib/TestCallback.kt
src/test/kotlin/com/contentful/java/cma/lib/TestCallback.kt
/* * Copyright (C) 2014 Contentful 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 agreed...
/* * Copyright (C) 2014 Contentful 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 agreed...
apache-2.0
Kotlin
5c961d123297ef6745c0b352c8bf7502603b9be1
Remove SingleThreadExecutor
android/architecture-components-samples,android/architecture-components-samples,android/architecture-components-samples
WorkManagerSample/app/src/main/java/com/example/background/App.kt
WorkManagerSample/app/src/main/java/com/example/background/App.kt
/* * Copyright 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 applica...
/* * Copyright 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 applica...
apache-2.0
Kotlin
77a79b429fbe369e4134f215b1a34c9c599ccb90
Remove unnecessary nulls
lzanita09/KotlinHackerNews,lzanita09/KotlinHackerNews
app/src/main/java/com/reindeercrafts/hackernews/CommentAdapter.kt
app/src/main/java/com/reindeercrafts/hackernews/CommentAdapter.kt
package com.reindeercrafts.hackernews import android.support.v7.widget.RecyclerView import android.text.Html import android.text.format.DateUtils import android.text.method.LinkMovementMethod import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.TextView import...
package com.reindeercrafts.hackernews import android.support.v7.widget.RecyclerView import android.text.Html import android.text.format.DateUtils import android.text.method.LinkMovementMethod import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.TextView import...
mit
Kotlin
db8d0d684fc8216d52bd089b7cc9ad8b849c40e9
Bump com.gradle.enterprise from 3.11.1 to 3.11.2 (#522)
open-telemetry/opentelemetry-java-contrib,open-telemetry/opentelemetry-java-contrib,open-telemetry/opentelemetry-java-contrib
settings.gradle.kts
settings.gradle.kts
pluginManagement { plugins { id("com.github.ben-manes.versions") version "0.42.0" id("com.github.johnrengelman.shadow") version "7.1.2" id("com.gradle.enterprise") version "3.11.2" id("io.github.gradle-nexus.publish-plugin") version "1.1.0" } } plugins { id("com.gradle.enterprise") } dependencyR...
pluginManagement { plugins { id("com.github.ben-manes.versions") version "0.42.0" id("com.github.johnrengelman.shadow") version "7.1.2" id("com.gradle.enterprise") version "3.11.1" id("io.github.gradle-nexus.publish-plugin") version "1.1.0" } } plugins { id("com.gradle.enterprise") } dependencyR...
apache-2.0
Kotlin
433904f55025e6e4b2479d188254465f0b18d85c
Fix loading counter sometimes not removing loaders
chrisbanes/tivi,chrisbanes/tivi
common-ui-view/src/main/java/app/tivi/util/ObservableLoadingCounter.kt
common-ui-view/src/main/java/app/tivi/util/ObservableLoadingCounter.kt
/* * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
/* * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
apache-2.0
Kotlin
d497722bf3b28c408e72c642e8e14b5fa7db257c
remove LeakCanary from roboelectric
GabrielCastro/open_otp,GabrielCastro/open_otp
app/src/debug/kotlin/ca/gabrielcastro/openotp/app/DebugInitilizer.kt
app/src/debug/kotlin/ca/gabrielcastro/openotp/app/DebugInitilizer.kt
package ca.gabrielcastro.openotp.app import android.os.Build import com.facebook.stetho.Stetho import com.squareup.leakcanary.LeakCanary import dagger.Module import dagger.Provides private fun isRoboUnitTest() : Boolean { return "robolectric".equals(Build.FINGERPRINT); } class DebugInitializer : Initializer { ...
package ca.gabrielcastro.openotp.app import com.facebook.stetho.Stetho import com.squareup.leakcanary.LeakCanary import dagger.Module import dagger.Provides class DebugInitializer : Initializer { override fun init(app: App) { LeakCanary.install(app) Stetho.initializeWithDefaults(app) } } @Mod...
mit
Kotlin
e47f4832c9b7da008b60b36aca870a7c8aed2f02
remove log
fan123199/V2ex-simple,fan123199/V2ex-simple
app/src/main/java/im/fdx/v2ex/network/cookie/SharedPrefsPersistor.kt
app/src/main/java/im/fdx/v2ex/network/cookie/SharedPrefsPersistor.kt
package im.fdx.v2ex.network.cookie import android.content.Context import android.content.SharedPreferences import im.fdx.v2ex.network.NetManager import okhttp3.Cookie import java.util.* /** * Created by fdx on 2017/3/16. * 保存cookie 到 preference */ class SharedPrefsPersistor : CookiePersistor { private var s...
package im.fdx.v2ex.network.cookie import android.content.Context import android.content.SharedPreferences import im.fdx.v2ex.network.NetManager import im.fdx.v2ex.utils.extensions.d import okhttp3.Cookie import java.util.* /** * Created by fdx on 2017/3/16. * 保存cookie 到 preference */ class SharedPrefsPersistor ...
apache-2.0
Kotlin
7f0673c935bc5ad5a7fb5fb6ab4f3aa2ec8c5a5b
refactor #442 Delete unused function.
toastkidjp/Jitte,toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt
app/src/main/java/jp/toastkid/yobidashi/search/history/ViewHolder.kt
app/src/main/java/jp/toastkid/yobidashi/search/history/ViewHolder.kt
package jp.toastkid.yobidashi.search.history import android.view.View import android.view.ViewGroup import androidx.annotation.DrawableRes import androidx.core.view.isVisible import androidx.core.view.updateMargins import androidx.recyclerview.widget.RecyclerView import jp.toastkid.yobidashi.R import jp.toastkid.yobid...
package jp.toastkid.yobidashi.search.history import android.view.View import android.view.ViewGroup import androidx.annotation.DrawableRes import androidx.core.view.isVisible import androidx.core.view.updateMargins import androidx.recyclerview.widget.RecyclerView import jp.toastkid.yobidashi.R import jp.toastkid.yobid...
epl-1.0
Kotlin
3b64269efe732624b73b2ff86d1fe1bc8f3cd48f
refactor #442 Modify usage of line separator.
toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Jitte
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 android.widget.EditText import androidx.databinding.DataBindingUtil import androidx.recyclerview.widget.RecyclerView import jp.toastkid...
package jp.toastkid.yobidashi.search.suggestion import android.annotation.SuppressLint import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.EditText import androidx.databinding.DataBindingUtil import androidx.recyclerview.widget.RecyclerView import jp.toastkid...
epl-1.0
Kotlin
f1917544b1b2d18760cf941dfebc47c1d21b4973
fix `NoClassDefFoundError` for `kotlinx/collections/immutable/ExtensionsKt`
YiiGuxing/TranslationPlugin,YiiGuxing/TranslationPlugin
src/main/kotlin/cn/yiiguxing/plugin/translate/trans/LanguageAdapter.kt
src/main/kotlin/cn/yiiguxing/plugin/translate/trans/LanguageAdapter.kt
package cn.yiiguxing.plugin.translate.trans /** * Interface for language adapter. */ interface LanguageAdapter { /** * Returns the [language][Lang] corresponding to the given [code]. */ fun getLanguage(code: String): Lang = Lang[code] /** * Returns the code corresponding to the given [la...
package cn.yiiguxing.plugin.translate.trans import kotlinx.collections.immutable.toImmutableMap /** * Interface for language adapter. */ interface LanguageAdapter { /** * Returns the [language][Lang] corresponding to the given [code]. */ fun getLanguage(code: String): Lang = Lang[code] /** ...
mit
Kotlin
ff37a64544129b86a4db88d34d19a0790be83529
Add template healthcheck
doomspork/kotlin-dropwizard
src/main/kotlin/com/doomspork/helloworld/health/TemplateHealthCheck.kt
src/main/kotlin/com/doomspork/helloworld/health/TemplateHealthCheck.kt
package com.doomspork.helloworld.health import com.codahale.metrics.health.HealthCheck import com.codahale.metrics.health.HealthCheck.Result class TemplateHealthCheck(val template: String) : HealthCheck() { override fun check() : Result { val saying = java.lang.String.format(template, "TEST") if (...
mit
Kotlin
42c2dcecb9b5f07e3d93d210a63bd6b6c7e6f678
Edit bintray config to allow override
LouisCAD/Splitties,LouisCAD/Splitties,LouisCAD/Splitties
buildSrc/src/main/kotlin/publishing/BintrayUpload.kt
buildSrc/src/main/kotlin/publishing/BintrayUpload.kt
/* * Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license. */ @file:Suppress("PackageDirectoryMismatch") import com.android.build.gradle.internal.tasks.factory.dependsOn import com.jfrog.bintray.gradle.BintrayExtension import org.codehaus.groovy.runtime.ProcessGr...
/* * Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license. */ @file:Suppress("PackageDirectoryMismatch") import com.android.build.gradle.internal.tasks.factory.dependsOn import com.jfrog.bintray.gradle.BintrayExtension import org.codehaus.groovy.runtime.ProcessGr...
apache-2.0
Kotlin
333a300d167c8898af19d225655d9421c849ce6a
Clear backing set after use
pyamsoft/padlock,pyamsoft/padlock
padlock/src/main/java/com/pyamsoft/padlock/helper/_ViewExtensions.kt
padlock/src/main/java/com/pyamsoft/padlock/helper/_ViewExtensions.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
60e6df7b86b39b106642be56b5fd204c89138955
fix toggleKeyboard isn't working
WindSekirun/RichUtilsKt,WindSekirun/RichUtilsKt
RichUtils/src/main/java/pyxis/uzuki/live/richutilskt/utils/RKeyboard.kt
RichUtils/src/main/java/pyxis/uzuki/live/richutilskt/utils/RKeyboard.kt
@file:JvmName("RichUtils") @file:JvmMultifileClass package pyxis.uzuki.live.richutilskt.utils import android.app.Activity import android.app.Dialog import android.content.Context import android.view.inputmethod.InputMethodManager /** * hide keyboard */ fun Activity.hideKeyboard() { this.currentFocus?.let { ...
@file:JvmName("RichUtils") @file:JvmMultifileClass package pyxis.uzuki.live.richutilskt.utils import android.app.Activity import android.app.Dialog import android.content.Context import android.view.inputmethod.InputMethodManager /** * hide keyboard */ fun Activity.hideKeyboard() { this.currentFocus?.let { ...
apache-2.0
Kotlin
1bd436aa7453c848e497c7c0b8c3917a5d088f10
Add parameter type
sys1yagi/garage-android,sys1yagi/garage-android
garage-core/src/main/java/com/sys1yagi/android/garage/Parameter.kt
garage-core/src/main/java/com/sys1yagi/android/garage/Parameter.kt
package com.sys1yagi.android.garage import java.util.* class Parameter { private val parameters = ArrayList<Pair<String, String>>() fun append(key: String, value: String): Parameter { parameters.add(Pair(key, value)) return this } fun append(key: String, value: Int): Parameter = app...
package com.sys1yagi.android.garage import java.util.* class Parameter { private val parameters = ArrayList<Pair<String, String>>() fun append(key: String, value: String): Parameter { parameters.add(Pair(key, value)) return this } fun build(): String = parameters ...
mit
Kotlin
53745bb310afe2ad7ded9ce67844ef9430d66399
Remove empty line
SpineEventEngine/base,SpineEventEngine/base,SpineEventEngine/base
settings.gradle.kts
settings.gradle.kts
/* * Copyright 2021, TeamDev. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Redistribution and use in source...
/* * Copyright 2021, TeamDev. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Redistribution and use in source...
apache-2.0
Kotlin
e844a06c87aa7a78e0d86bb1011d35fefbc4d539
Update to Gradle Enterprise plugin 3.2.1
britter/bean-validators,britter/bean-validators
settings.gradle.kts
settings.gradle.kts
rootProject.name = "bean-validators" plugins { id("com.gradle.enterprise") version "3.2.1" } gradleEnterprise { buildScan { val isCi = !System.getenv("GITHUB_WORKFLOW").isNullOrEmpty() if(isCi || file("gradle/.build-scans-tos-agree").exists()) { termsOfServiceUrl = "https://gradle....
rootProject.name = "bean-validators" plugins { id("com.gradle.enterprise") version "3.1.1" } gradleEnterprise { buildScan { val isCi = !System.getenv("GITHUB_WORKFLOW").isNullOrEmpty() if(isCi || file("gradle/.build-scans-tos-agree").exists()) { termsOfServiceUrl = "https://gradle....
apache-2.0
Kotlin
cea25c29a74f689d1bf310475c17cad1fa0fe854
Fix file select permission check
Jakeler/UT61E-Toolkit,Jakeler/UT61E-Toolkit
Application/src/main/java/jk/ut61eTool/FileSelectActivity.kt
Application/src/main/java/jk/ut61eTool/FileSelectActivity.kt
package jk.ut61eTool import android.Manifest import android.app.Activity import android.content.Intent import android.content.pm.PackageManager import android.os.Bundle import android.os.Environment import android.support.v4.app.ActivityCompat import android.support.v4.content.ContextCompat import android.util.Log imp...
package jk.ut61eTool import android.Manifest import android.app.Activity import android.content.Intent import android.content.pm.PackageManager import android.os.Bundle import android.os.Environment import android.support.v4.app.ActivityCompat import android.support.v4.content.ContextCompat import android.util.Log imp...
apache-2.0
Kotlin
75e7673748dcf791759c222645fe8ba0f6664b35
add do while
dodyg/Kotlin101,mewebstudio/Kotlin101
src/Loops.kt
src/Loops.kt
package Kotlin101.Loops fun main(args : Array<String>) { var presidents = array("jfk", "nixon", "carter") print("I love these presidents ") for (p in presidents) { print ("$p,") } println("") print("I loath these presidents ") var loop = presidents.size while (l...
package Kotlin101.Loops fun main(args : Array<String>) { var presidents = array("jfk", "nixon", "carter") print("I love these presidents ") for (p in presidents) { print ("$p,") } println("") print("I loath these presidents ") var loop = presidents.size while (l...
bsd-3-clause
Kotlin
fbd62900131039b0d6480eaca7eb0184719b3eab
bump org.jetbrains.kotlin.jvm in /code_samples/kotlin_demo (#863)
JetBrains/intellij-sdk-docs,JetBrains/intellij-sdk-docs,JetBrains/intellij-sdk-docs
code_samples/kotlin_demo/build.gradle.kts
code_samples/kotlin_demo/build.gradle.kts
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. plugins { id("java") id("org.jetbrains.intellij") version "1.9.0" id("org.jetbrains.kotlin.jvm") version "1.7.20" } group = "org.intellij.sdk" version = "2.0.0" repositories { mavenCentral...
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. plugins { id("java") id("org.jetbrains.intellij") version "1.9.0" id("org.jetbrains.kotlin.jvm") version "1.7.10" } group = "org.intellij.sdk" version = "2.0.0" repositories { mavenCentral...
apache-2.0
Kotlin
ad87c2cb07b896ad0703064e163a0e41c0b3705c
reduce password length from 8 to 6 at least
litecoin-foundation/loafwallet-android,litecoin-foundation/loafwallet-android
app/src/main/java/com/breadwallet/presenter/spend/FieldValidator.kt
app/src/main/java/com/breadwallet/presenter/spend/FieldValidator.kt
package com.breadwallet.presenter.spend import java.util.regex.Pattern /** Litewallet * Created by Mohamed Barry on 8/3/20 * email: mosadialiou@gmail.com * Copyright © 2020 Litecoin Foundation. All rights reserved. */ val emailRegex: Pattern = Pattern.compile( "[a-zA-Z0-9\\+\\.\\_\\%\\-\\+]{1,256}" + ...
package com.breadwallet.presenter.spend import java.util.regex.Pattern /** Litewallet * Created by Mohamed Barry on 8/3/20 * email: mosadialiou@gmail.com * Copyright © 2020 Litecoin Foundation. All rights reserved. */ val emailRegex: Pattern = Pattern.compile( "[a-zA-Z0-9\\+\\.\\_\\%\\-\\+]{1,256}" + ...
mit
Kotlin
3ecc134cd4992e8bee129658a19dba62916c2eb9
Upgrade Kotlin DSL version to 2020.1
adammurdoch/native-platform,adammurdoch/native-platform,adammurdoch/native-platform,adammurdoch/native-platform
.teamcity/settings.kts
.teamcity/settings.kts
import jetbrains.buildServer.configs.kotlin.v2019_2.project import jetbrains.buildServer.configs.kotlin.v2019_2.version /* The settings script is an entry point for defining a TeamCity project hierarchy. The script should contain a single call to the project() function with a Project instance or an init function as a...
import jetbrains.buildServer.configs.kotlin.v2019_2.project import jetbrains.buildServer.configs.kotlin.v2019_2.version /* The settings script is an entry point for defining a TeamCity project hierarchy. The script should contain a single call to the project() function with a Project instance or an init function as a...
apache-2.0
Kotlin
3f797be5c81fd95745f82a27e8fcee776ff14194
Fix features reading
KotlinNLP/SimpleDNN
examples/utils/JsonIteratorExtensions.kt
examples/utils/JsonIteratorExtensions.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
b1c9487215f830ec991c4e07b8899503f354826c
Implement KTypeImpl.toString()
JetBrains/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,wiltonlazary/kotlin-native,JetBrains/kotlin-native,wiltonlazary/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,wiltonlazary/kotlin-native,wiltonlazary/kotlin-native,JetBrains/kotlin-native,JetBrains/kotlin-native,wiltonlazary/kotlin-...
runtime/src/main/kotlin/kotlin/native/internal/KTypeImpl.kt
runtime/src/main/kotlin/kotlin/native/internal/KTypeImpl.kt
/* * Copyright 2010-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 kotlin.native.internal import kotlin.reflect.* internal class KTypeImpl( override val classifier: KClassifier?, override val arguments: List<K...
/* * Copyright 2010-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 kotlin.native.internal import kotlin.reflect.* internal class KTypeImpl( override val classifier: KClassifier?, override val arguments: List<K...
apache-2.0
Kotlin
11a8b4807eb7c589fb112905e2d514a66fb62cb7
Bump gradle intellij plugin version
JetBrains/resharper-unity,JetBrains/resharper-unity,JetBrains/resharper-unity
rider/buildSrc/build.gradle.kts
rider/buildSrc/build.gradle.kts
// Note: The `buildscript` block affects the dependencies ONLY for the build scripts of the buildSrc projects // (i.e. buildSrc/build.gradle.kts et al) // Use top level `repositories` and `dependencies` for the buildSrc project itself. Also note that the dependencies of // the buildSrc project become dependencies for t...
// Note: The `buildscript` block affects the dependencies ONLY for the build scripts of the buildSrc projects // (i.e. buildSrc/build.gradle.kts et al) // Use top level `repositories` and `dependencies` for the buildSrc project itself. Also note that the dependencies of // the buildSrc project become dependencies for t...
apache-2.0
Kotlin
4dcf929d98d445f10d61314adfd138b62b9e3d29
set debaggable false for release
gen0083/AdbFriendly,gen0083/AdbFriendly
src/main/java/jp/gcreate/plugins/adbfriendly/Util/Logger.kt
src/main/java/jp/gcreate/plugins/adbfriendly/Util/Logger.kt
/* * ADB Friendly * Copyright 2016 gen0083 * * 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 o...
/* * ADB Friendly * Copyright 2016 gen0083 * * 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 o...
apache-2.0
Kotlin
1e143b49f153560659347400f36358e9d7e1c834
remove old code
jitsi/jitsi-videobridge,jitsi/jitsi-videobridge,jitsi/jitsi-videobridge,jitsi/jitsi-videobridge,jitsi/jitsi-videobridge,jitsi/jitsi-videobridge,jitsi/jitsi-videobridge
src/main/kotlin/org/jitsi/nlj/transform/node/DemuxerNode.kt
src/main/kotlin/org/jitsi/nlj/transform/node/DemuxerNode.kt
/* * Copyright @ 2018 Atlassian Pty Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
/* * Copyright @ 2018 Atlassian Pty Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
apache-2.0
Kotlin
4a9331fb9cc994cc0325dab3b12857256a204686
Revert "Update google-api-client [1.34.1 -> 2.0.0], http-client [1.41.8 -> 1.42.2]"
UweTrottmann/SeriesGuide,UweTrottmann/SeriesGuide
backend/build.gradle.kts
backend/build.gradle.kts
plugins { id("com.android.library") id("org.jetbrains.kotlin.android") id("com.google.cloud.tools.endpoints-framework-client") } val sgCompileSdk: Int by rootProject.extra val sgMinSdk: Int by rootProject.extra val sgTargetSdk: Int by rootProject.extra android { namespace = "com.uwetrottmann.seriesgui...
plugins { id("com.android.library") id("org.jetbrains.kotlin.android") id("com.google.cloud.tools.endpoints-framework-client") } val sgCompileSdk: Int by rootProject.extra val sgMinSdk: Int by rootProject.extra val sgTargetSdk: Int by rootProject.extra android { namespace = "com.uwetrottmann.seriesgui...
apache-2.0
Kotlin
9cef261b2ce72101fc8c24ceea26e83c1e015fbf
disable because the test is wrongly configured yet.
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...
java/java-tests/testSrc/com/intellij/util/indexing/SharedIndexesTest.kt
java/java-tests/testSrc/com/intellij/util/indexing/SharedIndexesTest.kt
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.util.indexing import com.intellij.openapi.application.ApplicationManager import com.intellij.openapi.application.PathManager import com.intellij.openapi.prog...
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.util.indexing import com.intellij.openapi.application.ApplicationManager import com.intellij.openapi.application.PathManager import com.intellij.openapi.prog...
apache-2.0
Kotlin
48ee7ca7d7efb27d504addac126cd4a94b8c355b
Test for host key verification
K0zka/kerub,kerubistan/kerub,K0zka/kerub,kerubistan/kerub,kerubistan/kerub,K0zka/kerub
src/test/kotlin/com/github/K0zka/kerub/host/SshClientServiceImplTest.kt
src/test/kotlin/com/github/K0zka/kerub/host/SshClientServiceImplTest.kt
package com.github.K0zka.kerub.host import com.github.K0zka.kerub.eq import com.github.K0zka.kerub.expect import com.github.K0zka.kerub.getTestKey import org.apache.sshd.ClientSession import org.apache.sshd.SshClient import org.apache.sshd.client.SftpClient import org.apache.sshd.common.KeyExchange import org.apache.s...
package com.github.K0zka.kerub.host import com.github.K0zka.kerub.eq import com.github.K0zka.kerub.getTestKey import org.apache.sshd.ClientSession import org.apache.sshd.SshClient import org.apache.sshd.client.SftpClient import org.hamcrest.CoreMatchers import org.junit.Assert import org.junit.Before import org.junit....
apache-2.0
Kotlin
c1203c35c8503b396e27c5d816ea4dd07bcf0423
Add more dump data to show the chat list with DM, Channels and Private rooms (just a sample).
RocketChat/Rocket.Chat.Android.Lily,RocketChat/Rocket.Chat.Android,RocketChat/Rocket.Chat.Android,RocketChat/Rocket.Chat.Android.Lily
app/src/main/java/chat/rocket/android/app/chatlist/ChatListFragment.kt
app/src/main/java/chat/rocket/android/app/chatlist/ChatListFragment.kt
package chat.rocket.android.app.chatlist import android.app.Fragment import android.os.Bundle import android.support.v7.widget.DividerItemDecoration import android.support.v7.widget.LinearLayoutManager import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import chat.rocket.android....
package chat.rocket.android.app.chatlist import android.app.Fragment import android.os.Bundle import android.support.v7.widget.DividerItemDecoration import android.support.v7.widget.LinearLayoutManager import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import chat.rocket.android....
mit
Kotlin
5ad4e8f29a1bc883f562acbe63d1eae5f9fcf6ec
Create kotlin validation class
bloder/Blorm
blormlib/src/main/java/br/com/bloder/blormlib/validation/Validation.kt
blormlib/src/main/java/br/com/bloder/blormlib/validation/Validation.kt
package br.com.bloder.blormlib.validation import android.view.View /** * Created by bloder on 03/09/16. */ abstract class Validation { var field: View? = null var errorMessage: String? = null abstract fun validate() : Validate }
mit
Kotlin
adcaf0f7b694394e55f4bf9a634f9623dd53752c
Add ApiAction<R>.editRequest {}
NephyProject/Penicillin
src/main/kotlin/jp/nephy/penicillin/extensions/RequestMutability.kt
src/main/kotlin/jp/nephy/penicillin/extensions/RequestMutability.kt
/* * The MIT License (MIT) * * Copyright (c) 2017-2019 Nephy Project Team * * 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 ri...
mit
Kotlin
756e86a2472c11363fe4b611d6a8027b179e0e17
add util for check internet connection
StepicOrg/stepik-android,StepicOrg/stepic-android,StepicOrg/stepic-android,StepicOrg/stepik-android,StepicOrg/stepik-android,StepicOrg/stepic-android
app/src/main/java/org/stepic/droid/util/StepicUtil.kt
app/src/main/java/org/stepic/droid/util/StepicUtil.kt
package org.stepic.droid.util import android.content.Context import android.net.ConnectivityManager import org.stepic.droid.base.MainApplication object StepicUtil { fun isInternetAvailable(): Boolean { val connectivityManager = MainApplication.getAppContext().getSystemService(Context.CONNECTIVITY_SERVICE)...
apache-2.0
Kotlin
ce93be4988973d865ed943617b54e418f09ea83c
Fix test
dya-tel/TSU-Schedule
src/test/kotlin/ru/dyatel/tsuschedule/updater/ReleaseTest.kt
src/test/kotlin/ru/dyatel/tsuschedule/updater/ReleaseTest.kt
package ru.dyatel.tsuschedule.updater import org.junit.Test import kotlin.test.assertEquals import kotlin.test.assertTrue class ReleaseTest { private fun release(version: String) = Release(version) @Test fun testBuildVersionName() { Release.CURRENT } @Test fun testEqualRelease() { a...
package ru.dyatel.tsuschedule.updater import org.junit.Test import kotlin.test.assertEquals import kotlin.test.assertTrue class ReleaseTest { private fun release(version: String) = Release(version, "") @Test fun testBuildVersionName() { Release.CURRENT } @Test fun testEqualRelease() { ...
mit
Kotlin
c5ef4882c3a29372692e4750d583ed3e7f6c5b78
Bump kotlin-stdlib-common from 1.6.20 to 1.6.21
gesellix/gradle-docker-plugin,gesellix/gradle-docker-plugin
build.gradle.kts
build.gradle.kts
plugins { id("maven-publish") id("com.github.ben-manes.versions") version "0.42.0" id("net.ossindex.audit") version "0.4.11" id("com.gradle.plugin-publish") version "0.21.0" apply false id("io.freefair.maven-central.validate-poms") version "6.4.3" id("io.github.gradle-nexus.publish-plugin") version "1.1.0" ...
plugins { id("maven-publish") id("com.github.ben-manes.versions") version "0.42.0" id("net.ossindex.audit") version "0.4.11" id("com.gradle.plugin-publish") version "0.21.0" apply false id("io.freefair.maven-central.validate-poms") version "6.4.3" id("io.github.gradle-nexus.publish-plugin") version "1.1.0" ...
mit
Kotlin
93619de0508b449d99e505afbecf9ddf77d79945
Update kotlin and meanlib
TeamMeanMachine/meanlib,TeamMeanMachine/meanlib
build.gradle.kts
build.gradle.kts
import com.sun.org.apache.bcel.internal.Repository import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { java kotlin("jvm") } group = "org.team2471.lib" version = "2019" repositories { mavenCentral() maven { setUrl("http://first.wpi.edu/FRC/roborio/maven/release") } maven { setUrl("htt...
import com.sun.org.apache.bcel.internal.Repository import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { java kotlin("jvm") version "1.3.0" } group = "org.team2471.lib" version = "2019" repositories { mavenCentral() maven { setUrl("http://first.wpi.edu/FRC/roborio/maven/release") } mav...
unlicense
Kotlin
0586d29ee5fff3ab6f18edaa765a2f61454f9913
Remove now-unused dependency `org.apache.commons:commons-text:1.9`
chimbori/crux,chimbori/crux
build.gradle.kts
build.gradle.kts
import org.jetbrains.kotlin.gradle.dsl.ExplicitApiMode.Strict import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { kotlin("jvm") version "1.6.20" id("com.vanniktech.maven.publish") version "0.19.0" id("com.github.ben-manes.versions") version "0.42.0" } repositories { mavenCentral() } buildscript ...
import org.jetbrains.kotlin.gradle.dsl.ExplicitApiMode.Strict import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { kotlin("jvm") version "1.6.20" id("com.vanniktech.maven.publish") version "0.19.0" id("com.github.ben-manes.versions") version "0.42.0" } repositories { mavenCentral() } buildscript ...
apache-2.0
Kotlin
f7175aad829e2f79bb22bfdf1cf2356bdf377f88
Update ancestor(class) too.
ftomassetti/kolasu,ftomassetti/kolasu
src/main/kotlin/com/strumenta/kolasu/model/Navigation.kt
src/main/kotlin/com/strumenta/kolasu/model/Navigation.kt
package com.strumenta.kolasu.model /** * @return the nearest ancestor of this node that is an instance of klass. */ fun <T : Node> Node.ancestor(klass: Class<T>): T? { return walkAncestors().filterIsInstance(klass).firstOrNull() }
package com.strumenta.kolasu.model /** * @return the nearest ancestor of this node that is an instance of klass. */ fun <T : Node> Node.ancestor(klass: Class<T>): T? { if (this.parent != null) { if (klass.isInstance(this.parent)) { return this.parent as T } return this.parent!...
apache-2.0
Kotlin
2ccf060b18db1c994e4710fdb46802d0d3e6c0b1
Build fix
Cognifide/gradle-aem-plugin,Cognifide/gradle-aem-plugin
src/main/kotlin/com/cognifide/gradle/aem/tooling/tasks/Vlt.kt
src/main/kotlin/com/cognifide/gradle/aem/tooling/tasks/Vlt.kt
package com.cognifide.gradle.aem.tooling.tasks import com.cognifide.gradle.aem.common.AemDefaultTask import com.cognifide.gradle.aem.tooling.vlt.VltRunner import org.gradle.api.tasks.Internal import org.gradle.api.tasks.TaskAction open class Vlt : AemDefaultTask() { init { description = "Execute any Vaul...
package com.cognifide.gradle.aem.tooling.tasks import com.cognifide.gradle.aem.common.AemDefaultTask import com.cognifide.gradle.aem.tooling.vlt.VltRunner import org.gradle.api.tasks.Internal import org.gradle.api.tasks.TaskAction open class Vlt : AemDefaultTask() { init { description = "Execute any Vaul...
apache-2.0
Kotlin
1bd3cdda9851df76d22ecad096e63e8a9a1ccbbe
Add `Result`'s property extensions
qoncept/kaja
src/jp/co/qoncept/kaja/Result.kt
src/jp/co/qoncept/kaja/Result.kt
package jp.co.qoncept.kaja import jp.co.qoncept.util.Result import jp.co.qoncept.util.flatMap operator fun Result<Json, JsonException>.get(key: String): Result<Json, JsonException> { return flatMap { it[key] } } val Result<Json, JsonException>.boolean: Result<Boolean, JsonException> get() = flatMap { it.bool...
package jp.co.qoncept.kaja import jp.co.qoncept.util.Result import jp.co.qoncept.util.flatMap operator fun Result<Json, JsonException>.get(key: String): Result<Json, JsonException> { return flatMap { it[key] } } val Result<Json, JsonException>.boolean: Result<Boolean, JsonException> get() = flatMap { it.bool...
mit
Kotlin
c0085531279e5d377978af9353cf89d81de0b430
Update TC constants
JetBrains/ideavim,JetBrains/ideavim
.teamcity/_Self/Constants.kt
.teamcity/_Self/Constants.kt
package _Self object Constants { const val DEFAULT_CHANNEL = "default" const val EAP_CHANNEL = "eap" const val DEV_CHANNEL = "Dev" const val VERSION = "1.11.0" const val DEV_VERSION = "1.12.0" const val GITHUB_TESTS = "LATEST-EAP-SNAPSHOT" const val NVIM_TESTS = "LATEST-EAP-SNAPSHOT" const val PROPER...
package _Self object Constants { const val DEFAULT_CHANNEL = "default" const val EAP_CHANNEL = "eap" const val DEV_CHANNEL = "Dev" const val VERSION = "1.10.3" const val DEV_VERSION = "1.11.0" const val GITHUB_TESTS = "LATEST-EAP-SNAPSHOT" const val NVIM_TESTS = "LATEST-EAP-SNAPSHOT" const val PROPER...
mit
Kotlin
0fbe29914944800bc8ba02a612bae96d075916a4
Add null-safety api to Config.
rabitarochan/konfig
src/main/kotlin/konfig/konfig.kt
src/main/kotlin/konfig/konfig.kt
package com.typesafe.config import java.time.Duration import java.util.concurrent.TimeUnit fun Config.any(path: String): Any? { if (hasPath(path)) return getAnyRef(path) else return null } fun Config.anyList(path: String): List<Any>? { if (hasPath(path)) return getAnyRefList(path) else ...
apache-2.0
Kotlin
b8c1a24e5b6103fb93b91db40c752b8704d9913e
Add data structures for resolved KTX elements
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/r4a-cli/src/org/jetbrains/kotlin/r4a/ResolvedKtxElementCall.kt
compose/r4a-cli/src/org/jetbrains/kotlin/r4a/ResolvedKtxElementCall.kt
package org.jetbrains.kotlin.r4a.ast import org.jetbrains.kotlin.descriptors.DeclarationDescriptor import org.jetbrains.kotlin.psi.KtExpression import org.jetbrains.kotlin.psi.KtxElement import org.jetbrains.kotlin.resolve.calls.model.ResolvedCall import org.jetbrains.kotlin.types.KotlinType class AttributeNode( ...
apache-2.0
Kotlin
b953812b1b9f47bdf53dc878a29f750311b5fdbb
Update to Android-Components 103.0.20220620190107.
mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android
buildSrc/src/main/java/AndroidComponents.kt
buildSrc/src/main/java/AndroidComponents.kt
/* 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/. */ object AndroidComponents { const val VERSION = "103.0.20220620190107" }
/* 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/. */ object AndroidComponents { const val VERSION = "103.0.20220619143131" }
mpl-2.0
Kotlin
5ff03bebfbe39c912a567a984262a8e1c02e3a8e
Update to Android-Components 109.0.20221116192746.
mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android
buildSrc/src/main/java/AndroidComponents.kt
buildSrc/src/main/java/AndroidComponents.kt
/* 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/. */ object AndroidComponents { const val VERSION = "109.0.20221116192746" }
/* 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/. */ object AndroidComponents { const val VERSION = "109.0.20221116143121" }
mpl-2.0
Kotlin
018d6c68d08c6a2fb0f904bde1f2d41c3ba034ff
Update to Android-Components 98.0.20220202190137.
mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android
buildSrc/src/main/java/AndroidComponents.kt
buildSrc/src/main/java/AndroidComponents.kt
/* 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/. */ object AndroidComponents { const val VERSION = "98.0.20220202190137" }
/* 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/. */ object AndroidComponents { const val VERSION = "98.0.20220202143123" }
mpl-2.0
Kotlin
3887ed020c61b1589470338c8c436fdc707fc443
Update to Android-Components 98.0.20220203190435.
mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android
buildSrc/src/main/java/AndroidComponents.kt
buildSrc/src/main/java/AndroidComponents.kt
/* 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/. */ object AndroidComponents { const val VERSION = "98.0.20220203190435" }
/* 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/. */ object AndroidComponents { const val VERSION = "98.0.20220203143209" }
mpl-2.0
Kotlin
fc14ba05c34396ba8f851c5d5eaf758691230907
Update to Android-Components 102.0.20220525143101.
mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android
buildSrc/src/main/java/AndroidComponents.kt
buildSrc/src/main/java/AndroidComponents.kt
/* 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/. */ object AndroidComponents { const val VERSION = "102.0.20220525143101" }
/* 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/. */ object AndroidComponents { const val VERSION = "102.0.20220524143152" }
mpl-2.0
Kotlin
09a71b684538751b8ac15894a18353e14854e459
Update to Android-Components 104.0.20220713143043.
mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-android
buildSrc/src/main/java/AndroidComponents.kt
buildSrc/src/main/java/AndroidComponents.kt
/* 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/. */ object AndroidComponents { const val VERSION = "104.0.20220713143043" }
/* 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/. */ object AndroidComponents { const val VERSION = "104.0.20220712190117" }
mpl-2.0
Kotlin
b9bd89f5e4e8096b13d34ddcfa2a89b459e2a15e
test for 674
arnaudroger/SimpleFlatMapper,arnaudroger/SimpleFlatMapper,arnaudroger/SimpleFlatMapper
sfm-test-kotlin/src/test/kotlin/test/Issue674Test.kt
sfm-test-kotlin/src/test/kotlin/test/Issue674Test.kt
import org.junit.Test import org.simpleflatmapper.csv.CsvParser import org.simpleflatmapper.jdbc.JdbcMapperFactory import org.simpleflatmapper.map.getter.ContextualGetter import org.simpleflatmapper.tuple.Tuple2 import org.simpleflatmapper.util.TypeReference import test.CsvLine import java.sql.ResultSet import kotlin....
import org.junit.Test import org.simpleflatmapper.csv.CsvParser import org.simpleflatmapper.tuple.Tuple2 import org.simpleflatmapper.util.TypeReference import test.CsvLine import kotlin.test.assertEquals class Issue674Test { @Test fun test() { val pair = CsvParser.mapTo(object: TypeReference<Pair<In...
mit
Kotlin
99c60509ba3407fe67df09f1a716d207ecef5590
Modify Nini-Reibun screen to display Chinese and English.
chrhsmt/Sishen,chrhsmt/Sishen
app/src/main/java/com/chrhsmt/sisheng/NiniReibunViewAdapterForTab.kt
app/src/main/java/com/chrhsmt/sisheng/NiniReibunViewAdapterForTab.kt
package com.chrhsmt.sisheng import android.support.v7.widget.RecyclerView import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.TextView import com.chrhsmt.sisheng.NiniReibunFragmentForTab.OnListFragmentInteractionListener import kotlinx.android.synthetic.main...
package com.chrhsmt.sisheng import android.content.Context import android.support.v7.widget.RecyclerView import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.TextView import com.chrhsmt.sisheng.NiniReibunFragmentForTab.OnListFragmentInteractionListener impo...
mit
Kotlin
b72474c872469043589e55bec620a8faccda2463
Fix wrong register order
kvakil/venus,kvakil/venus,kvakil/venus
src/test/kotlin/simulator/impl/ADDTest.kt
src/test/kotlin/simulator/impl/ADDTest.kt
package venus.simulator.impl import org.junit.Test import kotlin.test.assertEquals import venus.riscv.Instruction import venus.riscv.InstructionField import venus.simulator.SimulatorState import venus.simulator.DispatchTest import venus.simulator.FieldTest import venus.simulator.InstructionImplementation class ADDTes...
package venus.simulator.impl import org.junit.Test import kotlin.test.assertEquals import venus.riscv.Instruction import venus.riscv.InstructionField import venus.simulator.SimulatorState import venus.simulator.DispatchTest import venus.simulator.FieldTest import venus.simulator.InstructionImplementation class ADDTes...
mit
Kotlin
81f9fb61a2eb14b2d1e0b22e87ee0f89cdc35af0
Add a test for grouping by "usage type" in the Find window
intellij-rust/intellij-rust,Undin/intellij-rust,Undin/intellij-rust,intellij-rust/intellij-rust,Undin/intellij-rust,Undin/intellij-rust,Undin/intellij-rust,intellij-rust/intellij-rust,intellij-rust/intellij-rust,intellij-rust/intellij-rust,intellij-rust/intellij-rust,Undin/intellij-rust
src/183/test/kotlin/org/rust/ide/search/RsUsageViewTreeTest.kt
src/183/test/kotlin/org/rust/ide/search/RsUsageViewTreeTest.kt
/* * Use of this source code is governed by the MIT license that can be * found in the LICENSE file. */ package org.rust.ide.search import com.intellij.usages.UsageViewSettings import com.intellij.util.xmlb.XmlSerializerUtil import org.intellij.lang.annotations.Language import org.rust.RsTestBase import org.rust.l...
mit
Kotlin
26906ab14507e7443534e17fcd62208e85453bbf
Replace else if with when
intellij-purescript/intellij-purescript,intellij-purescript/intellij-purescript
src/main/java/org/purescript/highlighting/PSSyntaxHighlightAnnotator.kt
src/main/java/org/purescript/highlighting/PSSyntaxHighlightAnnotator.kt
package org.purescript.highlighting import com.intellij.lang.annotation.AnnotationHolder import com.intellij.lang.annotation.Annotator import com.intellij.lang.annotation.HighlightSeverity import com.intellij.psi.PsiElement import org.purescript.parser.PSElements class PSSyntaxHighlightAnnotator : Annotator { ove...
package org.purescript.highlighting import com.intellij.lang.annotation.AnnotationHolder import com.intellij.lang.annotation.Annotator import com.intellij.lang.annotation.HighlightSeverity import com.intellij.psi.PsiElement import org.purescript.parser.PSElements class PSSyntaxHighlightAnnotator : Annotator { ove...
bsd-3-clause
Kotlin
e1f71b752a6afe10ae4369922c074c5b0aa8353f
Use mockito v.2.25.0.
EventFahrplan/EventFahrplan,EventFahrplan/EventFahrplan
buildSrc/src/main/kotlin/nerd/tuxmobil/fahrplan/congress/Dependencies.kt
buildSrc/src/main/kotlin/nerd/tuxmobil/fahrplan/congress/Dependencies.kt
@file:Suppress("MayBeConstant", "unused") package nerd.tuxmobil.fahrplan.congress object Versions { val androidGradle = "3.2.1" val assertjAndroid = "1.2.0" val emailIntentBuilder = "1.0.0" val espresso = "3.0.2" val gradleVersions = "0.21.0" val junit = "4.12" val kotlin = "1.2.51" va...
@file:Suppress("MayBeConstant", "unused") package nerd.tuxmobil.fahrplan.congress object Versions { val androidGradle = "3.2.1" val assertjAndroid = "1.2.0" val emailIntentBuilder = "1.0.0" val espresso = "3.0.2" val gradleVersions = "0.21.0" val junit = "4.12" val kotlin = "1.2.51" va...
apache-2.0
Kotlin
8b5b002213865080b92fcd90647781ee4c023426
use tagged version of Creatonix NVM. Using v0.7.0 fix #46
johnnonolan/TeamCity.Node,matt-richardson/TeamCity.Node,jonnyzzz/TeamCity.Node,johnnonolan/TeamCity.Node,jonnyzzz/TeamCity.Node,matt-richardson/TeamCity.Node
common/src/com/jonnyzzz/teamcity/plugins/node/common/NVMBean.kt
common/src/com/jonnyzzz/teamcity/plugins/node/common/NVMBean.kt
/* * Copyright 2013-2013 Eugene Petrenko * * 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 2013-2013 Eugene Petrenko * * 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
44b56198dff16df4dd90462dc165e3181aaf6b0f
Work on macros for external types
eugeis/ee,eugeis/ee
ee-lang_item/src/main/kotlin/ee/lang/gen/LangItemKotlinUtils.kt
ee-lang_item/src/main/kotlin/ee/lang/gen/LangItemKotlinUtils.kt
package ee.lang.gen import ee.common.ext.then import ee.lang.* open class KotlinContextBuilder<M>(name: String, val scope: String, macroController: MacroController, builder: M.() -> KotlinContext) : ContextBuilder<M>(name, macroController, builder) open class KotlinContext : Genera...
package ee.lang.gen import ee.common.ext.then import ee.lang.* open class KotlinContextBuilder<M>(name: String, val scope: String, macroController: MacroController, builder: M.() -> KotlinContext) : ContextBuilder<M>(name, macroController, builder) open class KotlinContext : Genera...
apache-2.0
Kotlin
f671856ad3e07093bef46cb660f0a6943fdbefa9
add .log extension to generated log files
AlmasB/FXGL,AlmasB/FXGL,AlmasB/FXGL,AlmasB/FXGL
fxgl/src/main/kotlin/com/almasb/fxgl/core/logging/FileOutput.kt
fxgl/src/main/kotlin/com/almasb/fxgl/core/logging/FileOutput.kt
package com.almasb.fxgl.core.logging import java.nio.file.Files import java.nio.file.Path import java.nio.file.Paths import java.time.LocalDateTime import java.time.format.DateTimeFormatter import java.util.stream.Collectors /** * @author Almas Baimagambetov (almaslvl@gmail.com) */ class FileOutput @JvmOverloads co...
package com.almasb.fxgl.core.logging import java.nio.file.Files import java.nio.file.Path import java.nio.file.Paths import java.time.LocalDateTime import java.time.format.DateTimeFormatter import java.util.stream.Collectors /** * @author Almas Baimagambetov (almaslvl@gmail.com) */ class FileOutput @JvmOverloads co...
mit
Kotlin
d8ee2fb56cd1001462e2f7f7e90999a6907e0171
Stop stripping constraints when processing Spanner schema definitions. (world-federation-of-advertisers/cross-media-measurement#83)
world-federation-of-advertisers/common-jvm,world-federation-of-advertisers/common-jvm
src/main/kotlin/org/wfanet/measurement/gcloud/spanner/SpannerDatabase.kt
src/main/kotlin/org/wfanet/measurement/gcloud/spanner/SpannerDatabase.kt
// Copyright 2020 The Cross-Media Measurement Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applic...
// Copyright 2020 The Cross-Media Measurement Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applic...
apache-2.0
Kotlin
4615fbc42e95fa3df95a2df6747f409d830260b1
Create Kotlin PsiElement extensions.
rhdunn/xquery-intellij-plugin,rhdunn/xquery-intellij-plugin
src/main/java/uk/co/reecedunn/intellij/plugin/core/extensions/PsiElement.kt
src/main/java/uk/co/reecedunn/intellij/plugin/core/extensions/PsiElement.kt
/* * Copyright (C) 2016-2017 Reece H. Dunn * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
apache-2.0
Kotlin
87e593ca6eecfff7357d1a6de568adc21f90b3df
fix name
Ekito/koin,InsertKoinIO/koin,Ekito/koin,InsertKoinIO/koin,InsertKoinIO/koin
samples/sparkjava-sampleapp/src/main/kotlin/org/koin/sample/util/Spark.kt
samples/sparkjava-sampleapp/src/main/kotlin/org/koin/sample/util/Spark.kt
package org.koin.sample.util import spark.Spark import spark.kotlin.after fun start(port: Int = 4567, controllersInit: () -> Unit): Int { spark.kotlin.port(port) // Logging filter after("*") { println(request.requestMethod() + " " + request.pathInfo() + " - " + response.raw().status) } ...
package org.koin.sample.util import spark.Spark import spark.kotlin.after fun start(port: Int = 4567, launcher: () -> Unit): Int { spark.kotlin.port(port) // Logging filter after("*") { println(request.requestMethod() + " " + request.pathInfo() + " - " + response.raw().status) } // laun...
apache-2.0
Kotlin
9594f9e1ad05a46de9c1e2f82bd07673e954c52e
Replace async with launch
fabioCollini/ArchitectureComponentsDemo
viewlib/src/main/java/it/codingjam/github/util/Coroutines.kt
viewlib/src/main/java/it/codingjam/github/util/Coroutines.kt
package it.codingjam.github.util import kotlinx.coroutines.experimental.CommonPool import kotlinx.coroutines.experimental.Job import kotlinx.coroutines.experimental.launch import kotlinx.coroutines.experimental.runBlocking interface Coroutines { operator fun invoke(f: suspend () -> Unit) fun cancel() } clas...
package it.codingjam.github.util import kotlinx.coroutines.experimental.Job import kotlinx.coroutines.experimental.android.UI import kotlinx.coroutines.experimental.async import kotlinx.coroutines.experimental.runBlocking interface Coroutines { operator fun invoke(f: suspend () -> Unit) fun cancel() } class...
apache-2.0
Kotlin
f23b8c1eb2bb9b4f0a1214ad34ccceacd9a9bf79
Fix hanging of content queue for TLS connections that doesn't automatically read first content.
ktorio/ktor,ktorio/ktor,ktorio/ktor,ktorio/ktor
ktor-hosts/ktor-netty/src/org/jetbrains/ktor/netty/NettyHostHttpHandler.kt
ktor-hosts/ktor-netty/src/org/jetbrains/ktor/netty/NettyHostHttpHandler.kt
package org.jetbrains.ktor.netty import io.netty.channel.* import io.netty.handler.codec.http.* import io.netty.util.* import kotlinx.coroutines.experimental.future.* import org.jetbrains.ktor.application.* import org.jetbrains.ktor.host.* @ChannelHandler.Sharable class NettyHostHttp1Handler(private val host: NettyAp...
package org.jetbrains.ktor.netty import io.netty.channel.* import io.netty.handler.codec.http.* import io.netty.util.* import kotlinx.coroutines.experimental.* import kotlinx.coroutines.experimental.future.* import org.jetbrains.ktor.application.* import org.jetbrains.ktor.host.* @ChannelHandler.Sharable class NettyH...
apache-2.0
Kotlin
949f6703fe087ac8a28032e88ae9c91bc85384e8
refactor #523 Fix unit test.
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.every import io.mockk.impl.annotations.MockK import io.mockk.mockk import io.mockk.mockkSta...
package jp.toastkid.yobidashi.browser.webview import android.webkit.WebView import androidx.webkit.WebSettingsCompat import androidx.webkit.WebViewFeature import io.mockk.MockKAnnotations import io.mockk.every import io.mockk.impl.annotations.MockK import io.mockk.mockk import io.mockk.mockkStatic import io.mockk.unmo...
epl-1.0
Kotlin
e6c80e584aa4eaf4e3727e7144588f6fe7094ad5
Remove dead functions
PtrTeixeira/cookbook,PtrTeixeira/cookbook,PtrTeixeira/cookbook,PtrTeixeira/cookbook,PtrTeixeira/cookbook,PtrTeixeira/cookbook,PtrTeixeira/cookbook-backend
src/main/kotlin/com/github/ptrteixeira/cookbook/data/Recipes.kt
src/main/kotlin/com/github/ptrteixeira/cookbook/data/Recipes.kt
package com.github.ptrteixeira.cookbook.data import com.github.ptrteixeira.cookbook.model.Recipe import com.github.ptrteixeira.cookbook.model.RecipeEgg import org.elasticsearch.client.transport.TransportClient import java.util.* val MOCK_RECIPE = Recipe( name = "Chocolate Chip Cookies", ingredients = listOf("...
package com.github.ptrteixeira.cookbook.data import com.github.ptrteixeira.cookbook.model.Recipe import com.github.ptrteixeira.cookbook.model.RecipeEgg import org.elasticsearch.client.transport.TransportClient import java.util.* val MOCK_RECIPE = Recipe( name = "Chocolate Chip Cookies", ingredients = listOf("...
mit
Kotlin
c53173e12bb5b94ef348a059c6e6d06ef288a1e7
handle div tag
StepicOrg/stepik-android,StepicOrg/stepic-android,StepicOrg/stepik-android,StepicOrg/stepic-android,StepicOrg/stepic-android,StepicOrg/stepik-android
app/src/main/java/org/stepik/android/domain/latex/model/block/WebScriptBlock.kt
app/src/main/java/org/stepik/android/domain/latex/model/block/WebScriptBlock.kt
package org.stepik.android.domain.latex.model.block class WebScriptBlock : ContentBlock { override fun isEnabled(content: String): Boolean = "wysiwyg-" in content || "<h1" in content || "<h2" in content || "<h3" in content || "<h4" in content || "<h5" in content || ...
package org.stepik.android.domain.latex.model.block class WebScriptBlock : ContentBlock { override fun isEnabled(content: String): Boolean = "wysiwyg-" in content || "<h1" in content || "<h2" in content || "<h3" in content || "<h4" in content || "<h5" in content || ...
apache-2.0
Kotlin
bfe44e5bef5f5b72a31fb4deacc6afa97fab8784
Add an additional test case
ansman/kotshi
tests/src/main/kotlin/se/ansman/kotshi/ClassWithBoundGeneric.kt
tests/src/main/kotlin/se/ansman/kotshi/ClassWithBoundGeneric.kt
package se.ansman.kotshi @JsonSerializable data class ClassWithBoundGeneric<out Data>(val data: List<Data>) @JsonSerializable data class ParameterizedModel<out Data>(val data: Data) @JsonSerializable data class TripleParameterizedModel<out Data, out T : CharSequence, out E : Any>( val e: E, val data:...
package se.ansman.kotshi @JsonSerializable data class ClassWithBoundGeneric<out Data>(val data: List<Data>)
apache-2.0
Kotlin
416cd4d9ff43df6793d0595a67d7cbe11cd3fb59
Fix compilation after merging bindings refactoring. Why it wasn't detected via Presubmit-Verified?
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...
ui/port/src/main/java/androidx/ui/widgets/binding/WidgetsFlutterBinding.kt
ui/port/src/main/java/androidx/ui/widgets/binding/WidgetsFlutterBinding.kt
package androidx.ui.widgets.binding // / A concrete binding for applications based on the Widgets framework. // / This is the glue that binds the framework to the Flutter engine. class WidgetsFlutterBinding { // TODO(Migration/Filip): extends BindingBase with GestureBinding, ServicesBinding, SchedulerBinding, Painting...
package androidx.ui.widgets.binding // / A concrete binding for applications based on the Widgets framework. // / This is the glue that binds the framework to the Flutter engine. class WidgetsFlutterBinding { // TODO(Migration/Filip): extends BindingBase with GestureBinding, ServicesBinding, SchedulerBinding, Painting...
apache-2.0
Kotlin
45f8dc2daaa6e93eeb7f207546fdedd0edc59313
ADD layout utils
costular/kotlin-android-utils,costular/kotlin-android-utils
kotlin-utils/src/main/java/com/costular/kotlin_utils/layout/LayoutExtensions.kt
kotlin-utils/src/main/java/com/costular/kotlin_utils/layout/LayoutExtensions.kt
package com.costular.kotlin_utils.layout import android.content.Context import android.view.LayoutInflater import android.view.ViewGroup /** * Created by costular on 15/08/17. */ fun Context.inflate(layoutResource: Int, parent: ViewGroup? = null, attachToRoot: Boolean = false) { LayoutInflater.from(this).infla...
apache-2.0
Kotlin
1c92681ec71d3d7045faa9d024ecdc4385ae8e04
Add tests
Kotlin/kotlinx.coroutines,Kotlin/kotlinx.coroutines,Kotlin/kotlinx.coroutines,Kotlin/kotlinx.coroutines,Kotlin/kotlinx.coroutines
kotlinx-coroutines-core/common/test/CoroutineDispatcherOperatorFunInvokeTest.kt
kotlinx-coroutines-core/common/test/CoroutineDispatcherOperatorFunInvokeTest.kt
/* * Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. */ package kotlinx.coroutines import kotlin.coroutines.ContinuationInterceptor import kotlin.coroutines.CoroutineContext import kotlin.test.* class CoroutineDispatcherOperatorFunInvokeTest : TestBase() { /...
apache-2.0
Kotlin
bd86cc3da3b46231160d7291e2bf7e45c5762c71
Make session cookie unavailable from JavaScript by default (#1089)
ktorio/ktor,ktorio/ktor,ktorio/ktor,ktorio/ktor
ktor-server/ktor-server-core/jvm/src/io/ktor/sessions/SessionTransportCookie.kt
ktor-server/ktor-server-core/jvm/src/io/ktor/sessions/SessionTransportCookie.kt
/* * Copyright 2014-2019 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license. */ package io.ktor.sessions import io.ktor.application.* import io.ktor.http.* import io.ktor.util.date.* import java.time.* import java.time.temporal.* import java.util.concurrent.* /** * Ses...
/* * Copyright 2014-2019 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license. */ package io.ktor.sessions import io.ktor.application.* import io.ktor.http.* import io.ktor.util.date.* import java.time.* import java.time.temporal.* import java.util.concurrent.* /** * Ses...
apache-2.0
Kotlin
daaa1e454e8308033d467338ae2a6badd488740a
make 2 vals immediate values
android/user-interface-samples,android/user-interface-samples
BubblesKotlin/app/src/main/java/com/example/android/bubbles/data/Contact.kt
BubblesKotlin/app/src/main/java/com/example/android/bubbles/data/Contact.kt
/* * Copyright (C) 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 appli...
/* * Copyright (C) 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 appli...
apache-2.0
Kotlin
1fbdc81475fdb9f19920ecfa8842935bc1f2e883
refactor #433 Modify constructor for writeable unit test.
toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt,toastkidjp/Jitte
app/src/main/java/jp/toastkid/yobidashi/wikipedia/random/RandomWikipedia.kt
app/src/main/java/jp/toastkid/yobidashi/wikipedia/random/RandomWikipedia.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
1d744f362c0f02c55824441ff7708a4fb07b9170
Add AssertUtilTest.
kobakei/conference-app-2017,kikuchy/conference-app-2017,kitwtnb/conference-app-2017,shaunkawano/conference-app-2017,kitwtnb/conference-app-2017,u-nation/conference-app-2017,chibatching/conference-app-2017,kobakei/conference-app-2017,horie1024/conference-app-2017,DroidKaigi/conference-app-2017,eyedol/conference-app-2017...
app/src/test/java/io/github/droidkaigi/confsched2017/util/AssetsUtilTest.kt
app/src/test/java/io/github/droidkaigi/confsched2017/util/AssetsUtilTest.kt
package io.github.droidkaigi.confsched2017.util import org.junit.Assert.fail import org.junit.Test import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner import java.lang.reflect.InvocationTargetException @RunWith(RobolectricTestRunner::class) class AssetsUtilTest { @Test @Throws(Excepti...
apache-2.0
Kotlin
c33a9470ec7bad8e0c4e7f05642511c30a4af5c1
fix LicenseAdapter usage
yshrsmz/monotweety
app/src/main/java/net/yslibrary/monotweety/data/license/LicenseRepositoryImpl.kt
app/src/main/java/net/yslibrary/monotweety/data/license/LicenseRepositoryImpl.kt
package net.yslibrary.monotweety.data.license import net.yslibrary.licenseadapter.Library import net.yslibrary.licenseadapter.Licenses import net.yslibrary.monotweety.base.di.UserScope import rx.Single import java.util.* import javax.inject.Inject @UserScope class LicenseRepositoryImpl @Inject constructor() : License...
package net.yslibrary.monotweety.data.license import net.yslibrary.licenseadapter.Library import net.yslibrary.licenseadapter.Licenses import net.yslibrary.monotweety.base.di.UserScope import rx.Single import java.util.* import javax.inject.Inject @UserScope class LicenseRepositoryImpl @Inject constructor() : License...
apache-2.0
Kotlin
16e110147ea7b5589f75e4bcc498b77beb4ab74e
Use real ids in OnIdTest
elpassion/android-commons,elpassion/android-commons,elpassion/android-commons
espresso/src/androidTest/java/com/elpassion/android/commons/espresso/OnIdTest.kt
espresso/src/androidTest/java/com/elpassion/android/commons/espresso/OnIdTest.kt
package com.elpassion.android.commons.espresso import android.os.Bundle import android.support.test.rule.ActivityTestRule import android.widget.Button import android.widget.FrameLayout import com.elpassion.android.commons.espresso.test.R import org.junit.Rule import org.junit.Test class OnIdTest { @JvmField @Ru...
package com.elpassion.android.commons.espresso import android.os.Bundle import android.support.test.rule.ActivityTestRule import android.widget.Button import android.widget.FrameLayout import org.junit.Rule import org.junit.Test class OnIdTest { @JvmField @Rule val activityRule = ActivityTestRule(Activity::c...
apache-2.0
Kotlin
e9abcc8a0cd61f02c95a104978395feea62a5cc5
Bump jteVersion from 2.0.2 to 2.0.3
ktorio/ktor,ktorio/ktor,ktorio/ktor,ktorio/ktor
ktor-server/ktor-server-plugins/ktor-server-jte/build.gradle.kts
ktor-server/ktor-server-plugins/ktor-server-jte/build.gradle.kts
/* * Copyright 2014-2022 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license. */ kotlin.sourceSets { val jteVersion = "2.0.3" val jvmMain by getting { dependencies { api("gg.jte:jte:$jteVersion") } } val jvmTest by getting { ...
/* * Copyright 2014-2022 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license. */ kotlin.sourceSets { val jteVersion = "2.0.2" val jvmMain by getting { dependencies { api("gg.jte:jte:$jteVersion") } } val jvmTest by getting { ...
apache-2.0
Kotlin
f4f5e7dac0106160b5287643abde9033a5a1730c
Update build.gradle.kts
awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,a...
kotlin/services/s3/build.gradle.kts
kotlin/services/s3/build.gradle.kts
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { kotlin("jvm") version "1.5.31" application } group = "me.scmacdon" version = "1.0-SNAPSHOT" repositories { mavenCentral() } dependencies { implementation("aws.sdk.kotlin:s3:0.9.4-beta") testImplementation("org.junit.jupiter:junit-j...
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { kotlin("jvm") version "1.5.31" application } group = "me.scmacdon" version = "1.0-SNAPSHOT" repositories { mavenCentral() } dependencies { implementation("aws.sdk.kotlin:s3:0.9.0-alpha") testImplementation("org.junit.jupiter:junit-...
apache-2.0
Kotlin
1a814adc41f3a5069134cf8e3852162878a98914
Remove private notes.
Cognifide/gradle-aem-plugin,Cognifide/gradle-aem-plugin
src/main/kotlin/com/cognifide/gradle/aem/pkg/deploy/CriticalInstallationError.kt
src/main/kotlin/com/cognifide/gradle/aem/pkg/deploy/CriticalInstallationError.kt
package com.cognifide.gradle.aem.pkg.deploy enum class CriticalInstallationError(val className: String) { CONSTRAINT_VIOLATION_EXCEPTION("javax.jcr.nodetype.ConstraintViolationException"), DEPENDENCY_EXCEPTION("org.apache.jackrabbit.vault.packaging.DependencyException"); companion object { fun fin...
package com.cognifide.gradle.aem.pkg.deploy enum class CriticalInstallationError(val className: String) { CONSTRAINT_VIOLATION_EXCEPTION("javax.jcr.nodetype.ConstraintViolationException"), DEPENDENCY_EXCEPTION("org.apache.jackrabbit.vault.packaging.DependencyException"); companion object { fun fin...
apache-2.0
Kotlin
b7e4935e68f467de90d11790ec0c109c4ee81a5b
use typesafe from() method in manifest example instead of closure-based one
lsmaira/gradle,robinverduijn/gradle,lsmaira/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,lsmaira/gradle,robinverduijn/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,lsmaira/gradle,robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate...
subprojects/docs/src/samples/userguide/tutorial/manifest/kotlin/build.gradle.kts
subprojects/docs/src/samples/userguide/tutorial/manifest/kotlin/build.gradle.kts
plugins { java } version = "1.0" // tag::add-to-manifest[] tasks.getByName<Jar>("jar") { manifest { attributes( "Implementation-Title" to "Gradle", "Implementation-Version" to version ) } } // end::add-to-manifest[] // tag::custom-manifest[] val sharedManifest = the...
plugins { java } version = "1.0" // tag::add-to-manifest[] tasks.getByName<Jar>("jar") { manifest { attributes( "Implementation-Title" to "Gradle", "Implementation-Version" to version ) } } // end::add-to-manifest[] // tag::custom-manifest[] val sharedManifest = the...
apache-2.0
Kotlin
74fe323c35ec810b44ed73913c0c9a25bff2d4bd
Use ListItemBinding instead of ViewDataBinding for bind function.
android/sunflower
app/src/main/java/com/google/samples/apps/sunflower/adapters/PlantAdapter.kt
app/src/main/java/com/google/samples/apps/sunflower/adapters/PlantAdapter.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 ...
/* * 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