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
5c5a528c92959790bba1487897fcce578fdf8a0a
Add InProcessKingdomAndDuchyIntegrationTest.
world-federation-of-advertisers/common-jvm,world-federation-of-advertisers/common-jvm
src/main/kotlin/org/wfanet/measurement/common/identity/testing/DuchyIdSetter.kt
src/main/kotlin/org/wfanet/measurement/common/identity/testing/DuchyIdSetter.kt
package org.wfanet.measurement.common.identity.testing import org.junit.rules.TestRule import org.junit.runner.Description import org.junit.runners.model.Statement import org.wfanet.measurement.common.identity.DuchyIds /** * JUnit rule that sets the global list of all valid Duchy ids to [duchyIds]. */ class DuchyId...
package org.wfanet.measurement.common.identity.testing import org.junit.rules.TestRule import org.junit.runner.Description import org.junit.runners.model.Statement import org.wfanet.measurement.common.identity.DuchyIds /** * JUnit rule that sets the global list of all valid Duchy ids to [duchyIds]. */ class DuchyId...
apache-2.0
Kotlin
7390dc266ebb669e3776806756d07d14d7e7d0c1
Fix DataSource package import
wakim/kotlin-mvp-starter
app/src/main/kotlin/br/com/wakim/mvp_starter/injection/module/PresenterModule.kt
app/src/main/kotlin/br/com/wakim/mvp_starter/injection/module/PresenterModule.kt
package br.com.wakim.mvp_starter.injection.module import br.com.wakim.mvp_starter.data.PostDataSource import br.com.wakim.mvp_starter.injection.ConfigPersistent import br.com.wakim.mvp_starter.ui.DefaultScheduler import br.com.wakim.mvp_starter.ui.posts_list.PostListContract import br.com.wakim.mvp_starter.ui.posts_li...
package br.com.wakim.mvp_starter.injection.module import br.com.wakim.mvp_starter.data.remote.PostDataSource import br.com.wakim.mvp_starter.injection.ConfigPersistent import br.com.wakim.mvp_starter.ui.DefaultScheduler import br.com.wakim.mvp_starter.ui.posts_list.PostListContract import br.com.wakim.mvp_starter.ui.p...
apache-2.0
Kotlin
afcaf96f6dbd9c3195fa5871e84485fe02f4d0cb
Convert 'Migrations' to Kotlin
cketti/k-9,cketti/k-9,cketti/k-9,k9mail/k-9,k9mail/k-9,cketti/k-9,k9mail/k-9
app/storage/src/main/java/com/fsck/k9/storage/migrations/Migrations.kt
app/storage/src/main/java/com/fsck/k9/storage/migrations/Migrations.kt
package com.fsck.k9.storage.migrations import android.database.sqlite.SQLiteDatabase import com.fsck.k9.mailstore.MigrationsHelper object Migrations { @JvmStatic fun upgradeDatabase(db: SQLiteDatabase, migrationsHelper: MigrationsHelper) { val oldVersion = db.version if (oldVersion < 62) Migr...
package com.fsck.k9.storage.migrations; import android.database.sqlite.SQLiteDatabase; import com.fsck.k9.mailstore.LocalStore; import com.fsck.k9.mailstore.MigrationsHelper; public class Migrations { @SuppressWarnings("fallthrough") public static void upgradeDatabase(SQLiteDatabase db, MigrationsHelper mi...
apache-2.0
Kotlin
9edf4e8537a863670e8baa2521aa0e5a7eb747d2
Add missing file.
dbrant/apps-android-wikipedia,dbrant/apps-android-wikipedia,dbrant/apps-android-wikipedia,dbrant/apps-android-wikipedia,wikimedia/apps-android-wikipedia,wikimedia/apps-android-wikipedia,wikimedia/apps-android-wikipedia,wikimedia/apps-android-wikipedia,dbrant/apps-android-wikipedia
app/src/main/java/org/wikipedia/views/PositionAwareFragmentStateAdapter.kt
app/src/main/java/org/wikipedia/views/PositionAwareFragmentStateAdapter.kt
package org.wikipedia.views import androidx.fragment.app.Fragment import androidx.fragment.app.FragmentActivity import androidx.fragment.app.FragmentManager import androidx.viewpager2.adapter.FragmentStateAdapter abstract class PositionAwareFragmentStateAdapter: FragmentStateAdapter { private val fragmentManager:...
apache-2.0
Kotlin
7a5f7a6a2373bb40fc63aea51f1b404f4b8b4651
refactor #496 Rename test case.
toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Jitte
app/src/test/java/jp/toastkid/yobidashi/main/usecase/MusicPlayerUseCaseTest.kt
app/src/test/java/jp/toastkid/yobidashi/main/usecase/MusicPlayerUseCaseTest.kt
/* * Copyright (c) 2022 toastkidjp. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompany this distribution. * The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html. */ package jp...
/* * Copyright (c) 2022 toastkidjp. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompany this distribution. * The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html. */ package jp...
epl-1.0
Kotlin
a73cffea7e1e7a0aca4f978ceaa042db10274d81
Make publicResourcesStub registration compatible with playground
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/resources/PublicResourcesStubHelper.kt
buildSrc/src/main/kotlin/androidx/build/resources/PublicResourcesStubHelper.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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
/* * 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
apache-2.0
Kotlin
e1bc75d955a56349ae849d8559d1015db9b00c7b
Simplify casting to not-null
allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/int...
platform/projectModel-api/src/com/intellij/openapi/application/actions.kt
platform/projectModel-api/src/com/intellij/openapi/application/actions.kt
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.openapi.application import com.intellij.openapi.command.CommandProcessor import com.intellij.openapi.util.Computable import java.lang.reflect.InvocationTarge...
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.openapi.application import com.intellij.openapi.command.CommandProcessor import com.intellij.openapi.util.Computable import java.lang.reflect.InvocationTarge...
apache-2.0
Kotlin
da465f5c3dd666bda06e37f799352f17a1e5ca6f
Implement Full Text 1.0 (A.1) [158] FTPosFilter.
rhdunn/xquery-intellij-plugin,rhdunn/xquery-intellij-plugin
src/main/java/uk/co/reecedunn/intellij/plugin/xquery/ast/full/text/FTPosFilter.kt
src/main/java/uk/co/reecedunn/intellij/plugin/xquery/ast/full/text/FTPosFilter.kt
/* * Copyright (C) 2017 Reece H. Dunn * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
apache-2.0
Kotlin
257c2860fe8b08bcaeb96bb0e448b7b90a10c285
Add unit test for attached inner messages
k9mail/k-9,cketti/k-9,cketti/k-9,cketti/k-9,k9mail/k-9,k9mail/k-9,philipwhiuk/k-9,cketti/k-9,philipwhiuk/k-9
k9mail/src/test/java/com/fsck/k9/mailstore/MimePartStreamParserTest.kt
k9mail/src/test/java/com/fsck/k9/mailstore/MimePartStreamParserTest.kt
package com.fsck.k9.mailstore import java.io.ByteArrayInputStream import com.fsck.k9.mail.internet.MimeBodyPart import com.fsck.k9.mail.internet.MimeMessage import com.fsck.k9.mail.internet.MimeMultipart import org.junit.Test import org.junit.Assert.* class MimePartStreamParserTest { @Test fun innerMessag...
apache-2.0
Kotlin
de95806a27b136b56973001a194b0c0969f7c0a2
Make parts of the agent reusable without the driver
CodeIntelligenceTesting/jazzer,CodeIntelligenceTesting/jazzer,CodeIntelligenceTesting/jazzer,CodeIntelligenceTesting/jazzer,CodeIntelligenceTesting/jazzer
agent/src/main/java/com/code_intelligence/jazzer/instrumentor/ClassInstrumentor.kt
agent/src/main/java/com/code_intelligence/jazzer/instrumentor/ClassInstrumentor.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
48f7557f76742c701f75b9232bc9c180bf02c7de
Use the class reference and .java extension
prt2121/json2pojo
src/main/kotlin/com/prt2121/pojo/PojoApplication.kt
src/main/kotlin/com/prt2121/pojo/PojoApplication.kt
package com.prt2121.pojo import javafx.application.Application import javafx.fxml.FXMLLoader import javafx.scene.Parent import javafx.scene.Scene import javafx.stage.Stage class PojoApplication : Application() { override fun start(primaryStage: Stage) { val root = FXMLLoader.load<Parent>(javaClass.getResource(...
package com.prt2121.pojo import javafx.application.Application import javafx.fxml.FXMLLoader import javafx.scene.Parent import javafx.scene.Scene import javafx.stage.Stage class PojoApplication : Application() { override fun start(primaryStage: Stage) { val root = FXMLLoader.load<Parent>(javaClass.getResource(...
apache-2.0
Kotlin
9b94c04a8832899577068379d2c4663c5763ae2f
Remove displaying info about executing task
elpassion/mainframer-intellij-plugin,elpassion/mainframer-intellij-plugin,elpassion/mainframer-intellij-plugin
src/main/kotlin/com/elpassion/intelijidea/task/MFBeforeRunTaskProvider.kt
src/main/kotlin/com/elpassion/intelijidea/task/MFBeforeRunTaskProvider.kt
package com.elpassion.intelijidea.task import com.elpassion.intelijidea.common.mfCommandLineProvider import com.elpassion.intelijidea.task.edit.MFBeforeRunTaskDialog import com.elpassion.intelijidea.util.MFIcons import com.elpassion.intelijidea.util.showError import com.elpassion.intelijidea.util.showInfo import com.i...
package com.elpassion.intelijidea.task import com.elpassion.intelijidea.common.mfCommandLineProvider import com.elpassion.intelijidea.task.edit.MFBeforeRunTaskDialog import com.elpassion.intelijidea.util.MFIcons import com.elpassion.intelijidea.util.showError import com.elpassion.intelijidea.util.showInfo import com.i...
apache-2.0
Kotlin
48f23ec383a8a7a26ad7d12abd136d0d00813d89
Add 'sizes' property, in case of Merge layers
KotlinNLP/SimpleDNN
src/main/kotlin/com/kotlinnlp/simplednn/core/layers/LayerConfiguration.kt
src/main/kotlin/com/kotlinnlp/simplednn/core/layers/LayerConfiguration.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
d6bfed2f0817204067f99b43801d8356d94d06cc
Fix saved games time
StephaneBg/ScoreIt
app/src/main/kotlin/com/sbgapps/scoreit/app/ui/saved/SavedGamesActivity.kt
app/src/main/kotlin/com/sbgapps/scoreit/app/ui/saved/SavedGamesActivity.kt
/* * Copyright 2019 Stéphane Baiget * * 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 2019 Stéphane Baiget * * 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
690dade7e03622b070ede90edb35619ac2169388
fix tests
holisticon/ranked,holisticon/ranked,holisticon/ranked,holisticon/ranked,holisticon/ranked
backend/views/leaderboard/src/test/kotlin/PlayerRankingByEloHandlerSpec.kt
backend/views/leaderboard/src/test/kotlin/PlayerRankingByEloHandlerSpec.kt
package de.holisticon.ranked.view.leaderboard import de.holisticon.ranked.model.UserName import de.holisticon.ranked.model.event.PlayerRankingChanged import org.assertj.core.api.Assertions.assertThat import org.junit.Before import org.junit.Test import java.time.Instant import java.util.* class PlayerRankingByEloHand...
package de.holisticon.ranked.view.leaderboard import de.holisticon.ranked.model.UserName import de.holisticon.ranked.model.event.PlayerRankingChanged import org.assertj.core.api.Assertions.assertThat import org.junit.Before import org.junit.Test import java.util.* class PlayerRankingByEloHandlerSpec { private val ...
bsd-3-clause
Kotlin
967bf2c40ce73cb59bbd0fd502fa9b59b1bdb7b2
Fix nullable issues
GabrielCastro/open_otp,GabrielCastro/open_otp
app/src/main/kotlin/ca/gabrielcastro/openotp/ui/detail/OtpDetailPresenterImpl.kt
app/src/main/kotlin/ca/gabrielcastro/openotp/ui/detail/OtpDetailPresenterImpl.kt
package ca.gabrielcastro.openotp.ui.detail import ca.gabrielcastro.openotp.db.Database import ca.gabrielcastro.openotp.model.observeCodeString import ca.gabrielcastro.openotp.rx.ioAndMain import rx.Observable import rx.Subscription import rx.plugins.RxJavaObservableExecutionHook import rx.plugins.RxJavaPlugins import ...
package ca.gabrielcastro.openotp.ui.detail import ca.gabrielcastro.openotp.db.Database import ca.gabrielcastro.openotp.model.observeCodeString import ca.gabrielcastro.openotp.rx.ioAndMain import rx.Subscription import rx.plugins.RxJavaObservableExecutionHook import rx.plugins.RxJavaPlugins import javax.inject.Inject ...
mit
Kotlin
c1f1a23db2f258617854f2ff267167cc7436a73b
fix go to super for the empty file.
himikof/intellij-rust,himikof/intellij-rust,anton-okolelov/intellij-rust,Undin/intellij-rust,d9n/intellij-rust,d9n/intellij-rust,Undin/intellij-rust,d9n/intellij-rust,anton-okolelov/intellij-rust,alygin/intellij-rust,anton-okolelov/intellij-rust,intellij-rust/intellij-rust,Undin/intellij-rust,anton-okolelov/intellij-ru...
src/main/kotlin/org/rust/ide/navigation/goto/RustGotoSuperHandler.kt
src/main/kotlin/org/rust/ide/navigation/goto/RustGotoSuperHandler.kt
package org.rust.ide.navigation.goto import com.intellij.lang.LanguageCodeInsightActionHandler import com.intellij.openapi.editor.Editor import com.intellij.openapi.project.Project import com.intellij.psi.PsiFile import org.rust.lang.core.psi.RustMod import org.rust.lang.core.psi.impl.RustFile import org.rust.lang.cor...
package org.rust.ide.navigation.goto import com.intellij.lang.LanguageCodeInsightActionHandler import com.intellij.openapi.editor.Editor import com.intellij.openapi.project.Project import com.intellij.psi.PsiFile import org.rust.lang.core.psi.RustMod import org.rust.lang.core.psi.impl.RustFile import org.rust.lang.cor...
mit
Kotlin
380f8ae3c9593bbd16668716d7150c4ab5ed808a
Remove commented out code in favor of the #344 issue
SpineEventEngine/SpineEventEngine.github.io,SpineEventEngine/SpineEventEngine.github.io,SpineEventEngine/SpineEventEngine.github.io,SpineEventEngine/SpineEventEngine.github.io,SpineEventEngine/SpineEventEngine.github.io,SpineEventEngine/SpineEventEngine.github.io
settings.gradle.kts
settings.gradle.kts
/* * Copyright 2020, TeamDev. All rights reserved. * * Redistribution and use in source and/or binary forms, with or without * modification, must retain the above copyright notice and the following * disclaimer. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR...
/* * Copyright 2020, TeamDev. All rights reserved. * * Redistribution and use in source and/or binary forms, with or without * modification, must retain the above copyright notice and the following * disclaimer. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR...
apache-2.0
Kotlin
4919dea84afc215b22c0ac6e562727ba2993907c
Change version type to long
ingresso-rapido-mobile/better-migrations,ingresso-rapido-mobile/better-migrations
migration/src/main/java/br/com/bloder/migration/internal/detail/MigrationDetail.kt
migration/src/main/java/br/com/bloder/migration/internal/detail/MigrationDetail.kt
package br.com.bloder.migration.internal.detail import br.com.bloder.migration.Migration /** * Better migrations properties */ class MigrationDetail { var migration : Migration? = null var version : Long = 0 }
package br.com.bloder.migration.internal.detail import br.com.bloder.migration.Migration /** * Created by bloder on 24/09/16. */ class MigrationDetail { var migration : Migration? = null var version : Int = 0 }
mit
Kotlin
e5bfd73137fa8a0c08223370c6a5a445100b46c1
refactor #559 Replace with Kotlin functions.
toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Jitte
app/src/main/java/jp/toastkid/yobidashi/libs/view/SlidingTapListener.kt
app/src/main/java/jp/toastkid/yobidashi/libs/view/SlidingTapListener.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
dd5a607ad014cdf2e280e68bb7991e77ba5b061f
Update to Android-Components 101.0.20220417190159.
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 = "101.0.20220417190159" }
/* 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 = "101.0.20220417143202" }
mpl-2.0
Kotlin
3fc6e70458ed65bec406ba4a2d4eb8073673be67
Update to Android-Components 98.0.20220119214955.
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.20220119214955" }
/* 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.20220119190122" }
mpl-2.0
Kotlin
32b11b7c12301f1642f69331060903796fc16d89
Update to Android-Components 97.0.20211224190059.
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 = "97.0.20211224190059" }
/* 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 = "97.0.20211224143444" }
mpl-2.0
Kotlin
be40176aafa7b7335e196c37116f068b437321bc
add starter DefaultClientTest.kt
auth0/Auth0.Android,auth0/Auth0.Android
auth0/src/test/java/com/auth0/android/request/kt/DefaultClientTest.kt
auth0/src/test/java/com/auth0/android/request/kt/DefaultClientTest.kt
package com.auth0.android.request.kt import com.google.gson.Gson import com.google.gson.reflect.TypeToken import com.squareup.okhttp.mockwebserver.MockResponse import com.squareup.okhttp.mockwebserver.MockWebServer import com.squareup.okhttp.mockwebserver.RecordedRequest import org.hamcrest.CoreMatchers.equalTo import...
mit
Kotlin
750c6b23bb456e738b3a8603204b961cd060cbd0
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/firehose/build.gradle.kts
kotlin/services/firehose/build.gradle.kts
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { kotlin("jvm") version "1.5.31" id("io.gitlab.arturbosch.detekt").version("1.16.0-RC1") application } group = "me.scmacdon" version = "1.0-SNAPSHOT" buildscript { repositories { jcenter() } } repositories { mavenCentral()...
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { kotlin("jvm") version "1.5.31" id("io.gitlab.arturbosch.detekt").version("1.16.0-RC1") application } group = "me.scmacdon" version = "1.0-SNAPSHOT" buildscript { repositories { jcenter() } } repositories { mavenCentral()...
apache-2.0
Kotlin
5ce756b21235196fe856e06caf7d0e7c9377ceea
Use onlyIf to disable metadata generation for Android artifacts
LouisCAD/Splitties,LouisCAD/Splitties,LouisCAD/Splitties
buildSrc/src/main/kotlin/publishing/KotlinTargetsMavenPublications.kt
buildSrc/src/main/kotlin/publishing/KotlinTargetsMavenPublications.kt
/* * Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license. */ @file:Suppress("PackageDirectoryMismatch") import org.jetbrains.kotlin.gradle.plugin.KotlinPlatformType.androidJvm import org.jetbrains.kotlin.gradle.plugin.KotlinPlatformType.common import org.jetbrai...
/* * Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license. */ @file:Suppress("PackageDirectoryMismatch") import org.jetbrains.kotlin.gradle.plugin.KotlinPlatformType.androidJvm import org.jetbrains.kotlin.gradle.plugin.KotlinPlatformType.common import org.jetbrai...
apache-2.0
Kotlin
929af30ec6d62bef570fe3ff2bf7183455fc0ee0
Add docs to GcpCredentials
androidx/gcp-gradle-build-cache
gcpbuildcache/src/main/kotlin/androidx/build/gradle/gcpbuildcache/GcpCredentials.kt
gcpbuildcache/src/main/kotlin/androidx/build/gradle/gcpbuildcache/GcpCredentials.kt
/* * Copyright 2022 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
/* * Copyright 2022 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
apache-2.0
Kotlin
21c734dd93a743c354c7ed48a1497ad8b6170831
Add unit tests for JClassDescriptor
vbauer/jackdaw,vbauer/jackdaw
jackdaw-sample/src/test/kotlin/com/github/vbauer/jackdaw/JClassDescriptorTest.kt
jackdaw-sample/src/test/kotlin/com/github/vbauer/jackdaw/JClassDescriptorTest.kt
package com.github.vbauer.jackdaw import com.github.vbauer.jackdaw.base.BaseTest import org.hamcrest.Matchers.equalTo import org.junit.Assert.assertThat import org.junit.Test /** * @author Vladislav Bauer */ class JClassDescriptorTest : BaseTest() { @Test fun testCompanyFactoryConstructor() { chec...
package com.github.vbauer.jackdaw import com.github.vbauer.jackdaw.base.BaseTest import org.hamcrest.Matchers.equalTo import org.junit.Assert.assertThat import org.junit.Test /** * @author Vladislav Bauer */ class JClassDescriptorTest : BaseTest() { @Test fun testCompanyFactoryConstructor() { chec...
apache-2.0
Kotlin
82d6faa54fc4ec44bb10629b03e3736921ef5f45
Debug md5.
evanchooly/kobalt,ethauvin/kobalt,cbeust/kobalt,cbeust/kobalt,ethauvin/kobalt,ethauvin/kobalt,evanchooly/kobalt,evanchooly/kobalt,evanchooly/kobalt,ethauvin/kobalt,cbeust/kobalt
modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/maven/Md5.kt
modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/maven/Md5.kt
package com.beust.kobalt.maven import com.beust.kobalt.misc.KFiles import com.beust.kobalt.misc.log import java.io.File import java.security.MessageDigest import javax.xml.bind.DatatypeConverter public class Md5 { companion object { // private fun md5(file: File) : String { // val md5 = MessageD...
package com.beust.kobalt.maven import com.beust.kobalt.misc.KFiles import com.beust.kobalt.misc.log import java.io.File import java.security.MessageDigest import javax.xml.bind.DatatypeConverter public class Md5 { companion object { fun toMd5Directories(directories: List<File>) : String { Mess...
apache-2.0
Kotlin
daadf8725589f6adc90177243fdf532d08ffcf1c
Fix MockPsiProject constructor
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...
python/python-analysis-tool/src/com/intellij/openapi/project/impl/MockPsiProject.kt
python/python-analysis-tool/src/com/intellij/openapi/project/impl/MockPsiProject.kt
package com.intellij.openapi.project.impl import com.intellij.ide.plugins.ContainerDescriptor import com.intellij.ide.plugins.IdeaPluginDescriptorImpl import com.intellij.openapi.Disposable import com.intellij.openapi.application.Application import com.intellij.openapi.project.Project import com.intellij.openapi.util....
package com.intellij.openapi.project.impl import com.intellij.ide.plugins.ContainerDescriptor import com.intellij.ide.plugins.IdeaPluginDescriptorImpl import com.intellij.openapi.Disposable import com.intellij.openapi.application.Application import com.intellij.openapi.application.ApplicationManager import com.intelli...
apache-2.0
Kotlin
bd327f2fe843958720f215be0b7c2e3859d92fc0
Add RANNeuralNetwork
KotlinNLP/SimpleDNN
src/kotlin/com/kotlinnlp/simplednn/core/neuralnetwork/preset/RANNeuralNetwork.kt
src/kotlin/com/kotlinnlp/simplednn/core/neuralnetwork/preset/RANNeuralNetwork.kt
/* Copyright 2016-present The KotlinNLP Authors. All Rights Reserved. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, you can obtain one at http://mozilla.org/MPL/2.0/. * ------------------------------------------...
mpl-2.0
Kotlin
77be309d2079329f33d95adc886fb6eedfad1d65
Use EmberName class
Turbo87/intellij-emberjs,Turbo87/intellij-emberjs,Turbo87/intellij-emberjs,Turbo87/intellij-emberjs
src/main/kotlin/com/emberjs/index/EmberIndexBase.kt
src/main/kotlin/com/emberjs/index/EmberIndexBase.kt
package com.emberjs.index import com.emberjs.resolver.EmberName import com.emberjs.utils.VoidHelper import com.emberjs.utils.parents import com.intellij.openapi.project.ProjectLocator import com.intellij.openapi.vfs.VirtualFile import com.intellij.util.indexing.* import com.intellij.util.io.EnumeratorStringDescriptor ...
package com.emberjs.index import com.emberjs.utils.VoidHelper import com.emberjs.utils.append import com.emberjs.utils.classify import com.emberjs.utils.parents import com.intellij.openapi.vfs.VirtualFile import com.intellij.util.indexing.* import com.intellij.util.io.EnumeratorStringDescriptor abstract class EmberIn...
apache-2.0
Kotlin
c5d4e71373d650f57203916b1b392d22a0b4ff47
Add isAdded() method to FileRegistry
MichaelRocks/lightsaber,MichaelRocks/lightsaber
processor/src/main/kotlin/io/michaelrocks/lightsaber/processor/files/FileRegistry.kt
processor/src/main/kotlin/io/michaelrocks/lightsaber/processor/files/FileRegistry.kt
/* * Copyright 2015 Michael Rozumyanskiy * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
/* * Copyright 2015 Michael Rozumyanskiy * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
apache-2.0
Kotlin
65f5a8955024fb2bd8e64108ef2dfcb4a6d65b1c
Remove unneccessary types.
googlemaps/android-places-demos,googlemaps/android-places-demos
snippets/app/src/main/java/com/google/places/kotlin/PlaceDetailsActivity.kt
snippets/app/src/main/java/com/google/places/kotlin/PlaceDetailsActivity.kt
package com.google.places.kotlin import android.util.Log import androidx.appcompat.app.AppCompatActivity import com.google.android.gms.common.api.ApiException import com.google.android.libraries.places.api.model.Place import com.google.android.libraries.places.api.net.FetchPlaceRequest import com.google.android.librar...
package com.google.places.kotlin import android.util.Log import androidx.appcompat.app.AppCompatActivity import com.google.android.gms.common.api.ApiException import com.google.android.libraries.places.api.model.Place import com.google.android.libraries.places.api.net.FetchPlaceRequest import com.google.android.librar...
apache-2.0
Kotlin
8e395785761853b6d03e0f437502a248d58ed711
Create CreateCrawler.kt
awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,a...
.kotlin_alpha/services/glue/src/main/kotlin/com/kotlin/glue/CreateCrawler.kt
.kotlin_alpha/services/glue/src/main/kotlin/com/kotlin/glue/CreateCrawler.kt
//snippet-sourcedescription:[CreateCrawler.kt demonstrates how to create an AWS Glue crawler.] //snippet-keyword:[AWS SDK for Kotlin] //snippet-keyword:[Code Sample] //snippet-keyword:[AWS Glue] //snippet-sourcetype:[full-example] //snippet-sourcedate:[6/4/2021] //snippet-sourceauthor:[scmacdon AWS] /* Copyright Ama...
apache-2.0
Kotlin
c5bb27375e8695d0cd279342b65af3a79d24ff22
refactor #511 Add test case.
toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Jitte
app/src/test/java/jp/toastkid/yobidashi/editor/EditorContextMenuInitializerTest.kt
app/src/test/java/jp/toastkid/yobidashi/editor/EditorContextMenuInitializerTest.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
169092d953f3440b15c81fad361de218887c7e3a
refactor #462 Rename test function.
toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt
app/src/test/java/jp/toastkid/yobidashi/notification/widget/IconInitializerTest.kt
app/src/test/java/jp/toastkid/yobidashi/notification/widget/IconInitializerTest.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
01c190e1abfd96e901eecaab0f3e9d8cfcbfa5ed
Add ListOrNullSerializer
AcornUI/Acorn,AcornUI/Acorn,AcornUI/Acorn
acornui-core/src/main/kotlin/com/acornui/serialization/serializationUtils.kt
acornui-core/src/main/kotlin/com/acornui/serialization/serializationUtils.kt
/* * Copyright 2020 Poly Forest, LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
apache-2.0
Kotlin
76c6347bd6028a7402965de8995384cf63e60ea7
Add test for link parser
djkovrik/YapTalker,djkovrik/YapTalker
app/src/test/java/com/sedsoftware/yaptalker/commons/VideoLinkParserKtTest.kt
app/src/test/java/com/sedsoftware/yaptalker/commons/VideoLinkParserKtTest.kt
package com.sedsoftware.yaptalker.commons import com.sedsoftware.yaptalker.data.model.video.VideoTypes import com.winterbe.expekt.should import org.junit.Test class VideoLinkParserKtTest { companion object { val coubLink = "//coub.com/embed/vtt0g" val coubId = "vtt0g" val youtubeLink = "//www.youtube.c...
apache-2.0
Kotlin
c517a75337624a791e8ceeb1647c7f019fdded45
Fix formatting and add flags
jonalmeida/focus-android,ekager/focus-android,jonalmeida/focus-android,ekager/focus-android,jonalmeida/focus-android,ekager/focus-android,ekager/focus-android,mozilla-mobile/focus-android,jonalmeida/focus-android,mozilla-mobile/focus-android,jonalmeida/focus-android,mozilla-mobile/focus-android,mozilla-mobile/focus-and...
app/src/main/java/org/mozilla/focus/activity/EraseAndOpenShortcutActivity.kt
app/src/main/java/org/mozilla/focus/activity/EraseAndOpenShortcutActivity.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/. */ package org.mozilla.focus.activity import android.app.Activity import android.content.Intent import android.os.Bu...
package org.mozilla.focus.activity import android.app.Activity import android.content.Intent import android.os.Bundle import org.mozilla.focus.ext.components import org.mozilla.focus.telemetry.TelemetryWrapper class EraseAndOpenShortcutActivity: Activity(){ override fun onCreate(savedInstanceState: Bundle?) { ...
mpl-2.0
Kotlin
38f3eda65f64de006001bf4703963df396cdb99d
Fix JustJavaStaff koin initialization
MarkNKamau/JustJava-Android
justjavastaff/src/main/java/com/marknkamau/justjavastaff/JustJavaStaffApp.kt
justjavastaff/src/main/java/com/marknkamau/justjavastaff/JustJavaStaffApp.kt
package com.marknkamau.justjavastaff import android.app.Application import com.marknjunge.core.auth.AuthService import com.marknjunge.core.data.firebase.OrderService import com.marknjunge.core.data.firebase.PaymentService import com.marknjunge.core.data.firebase.UserService import com.marknjunge.core.di.authModule imp...
package com.marknkamau.justjavastaff import android.app.Application import com.marknjunge.core.auth.AuthService import com.marknjunge.core.data.firebase.OrderService import com.marknjunge.core.data.firebase.PaymentService import com.marknjunge.core.data.firebase.UserService import com.marknjunge.core.di.authModule imp...
apache-2.0
Kotlin
53d4ed68212eb7224c18ca4256acb6fc91c22eff
Fix new servers breaking the command whitelist system
mrkirby153/KirBot
src/main/kotlin/me/mrkirby153/KirBot/database/models/guild/ServerSettings.kt
src/main/kotlin/me/mrkirby153/KirBot/database/models/guild/ServerSettings.kt
package me.mrkirby153.KirBot.database.models.guild import com.mrkirby153.bfs.annotations.Column import com.mrkirby153.bfs.annotations.PrimaryKey import com.mrkirby153.bfs.annotations.Table import com.mrkirby153.bfs.model.Model import me.mrkirby153.KirBot.realname.RealnameSetting import me.mrkirby153.KirBot.utils.toTyp...
package me.mrkirby153.KirBot.database.models.guild import com.mrkirby153.bfs.annotations.Column import com.mrkirby153.bfs.annotations.PrimaryKey import com.mrkirby153.bfs.annotations.Table import com.mrkirby153.bfs.model.Model import me.mrkirby153.KirBot.realname.RealnameSetting import me.mrkirby153.KirBot.utils.toTyp...
mit
Kotlin
dfc1e850f90c6b3e0c281ff60574fd4b9af01110
Modify English resource.
MaTriXy/PermissionsDispatcher,MaTriXy/PermissionsDispatcher,hotchemi/PermissionsDispatcher,MaTriXy/PermissionsDispatcher,permissions-dispatcher/PermissionsDispatcher,hotchemi/PermissionsDispatcher,permissions-dispatcher/PermissionsDispatcher,hotchemi/PermissionsDispatcher
processor/src/main/kotlin/permissions/dispatcher/processor/util/Constants.kt
processor/src/main/kotlin/permissions/dispatcher/processor/util/Constants.kt
package permissions.dispatcher.processor.util const val DEPRECATED_MESSAGE = "android.app.Fragment was deprecated in Android P." const val FILE_COMMENT = "This file was generated by PermissionsDispatcher. Do not modify!" const val GEN_CLASS_SUFFIX = "PermissionsDispatcher" const val GEN_REQUEST_CODE_PREFIX = "REQUEST_...
package permissions.dispatcher.processor.util const val DEPRECATED_MESSAGE = "android.app.Fragment became deprecated in Android P." const val FILE_COMMENT = "This file was generated by PermissionsDispatcher. Do not modify!" const val GEN_CLASS_SUFFIX = "PermissionsDispatcher" const val GEN_REQUEST_CODE_PREFIX = "REQUE...
apache-2.0
Kotlin
deb483ded94623bd435bae270a5ae3665af7bf18
Add getOpenChatRooms and sortChatRooms functions.
RocketChat/Rocket.Chat.Android.Lily,RocketChat/Rocket.Chat.Android.Lily,RocketChat/Rocket.Chat.Android,RocketChat/Rocket.Chat.Android
app/src/main/java/chat/rocket/android/chatrooms/presentation/ChatRoomsPresenter.kt
app/src/main/java/chat/rocket/android/chatrooms/presentation/ChatRoomsPresenter.kt
package chat.rocket.android.chatrooms.presentation import chat.rocket.android.core.lifecycle.CancelStrategy import chat.rocket.android.util.launchUI import chat.rocket.core.RocketChatClient import chat.rocket.core.internal.rest.chatRooms import chat.rocket.core.model.ChatRoom import javax.inject.Inject class ChatRoom...
package chat.rocket.android.chatrooms.presentation import chat.rocket.android.core.lifecycle.CancelStrategy import chat.rocket.android.util.launchUI import chat.rocket.core.RocketChatClient import chat.rocket.core.internal.rest.chatRooms import javax.inject.Inject class ChatRoomsPresenter @Inject constructor(private ...
mit
Kotlin
0c4fb6d7a765b8869fae999aa0fce4c0ab70265a
Fix Alert window scroll
AcornUI/Acorn,AcornUI/Acorn,AcornUI/Acorn
acornui-core/src/commonMain/kotlin/com/acornui/core/popup/AlertWindow.kt
acornui-core/src/commonMain/kotlin/com/acornui/core/popup/AlertWindow.kt
/* * Copyright 2018 Nicholas Bilyk * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
/* * Copyright 2018 Nicholas Bilyk * * 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
46ac85edd78e44d6f55fa0605761b5332c5a56e9
Remove hardcoded agent version (#392)
open-telemetry/opentelemetry-java-contrib,open-telemetry/opentelemetry-java-contrib,open-telemetry/opentelemetry-java-contrib
runtime-attach/runtime-attach/build.gradle.kts
runtime-attach/runtime-attach/build.gradle.kts
plugins { id("otel.java-conventions") id("otel.publish-conventions") } description = "To runtime attach the OpenTelemetry Java Instrumentation agent" val agent: Configuration by configurations.creating { isCanBeResolved = true isCanBeConsumed = false } dependencies { implementation(project(":runtime-attach...
plugins { id("otel.java-conventions") id("otel.publish-conventions") } description = "To runtime attach the OpenTelemetry Java Instrumentation agent" val agent: Configuration by configurations.creating dependencies { implementation(project(":runtime-attach:runtime-attach-core")) agent("io.opentelemetry.javaa...
apache-2.0
Kotlin
227c299d37beb8596256e24a15fe611cc70f0780
Add Toast Search FederateCompute policies
google/private-compute-services,google/private-compute-services
src/com/google/android/as/oss/assets/federatedcompute/SearchPolicy_FederatedCompute.kt
src/com/google/android/as/oss/assets/federatedcompute/SearchPolicy_FederatedCompute.kt
/* * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
apache-2.0
Kotlin
5eab142c0f1a07881ec6f616ed429fa9ec2199eb
Remove id in the policy
google/private-compute-services,google/private-compute-services
src/com/google/android/as/oss/assets/federatedcompute/SearchPolicy_FederatedCompute.kt
src/com/google/android/as/oss/assets/federatedcompute/SearchPolicy_FederatedCompute.kt
/* * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
/* * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
apache-2.0
Kotlin
f0827eaafda35e7d8a8c7c3c4fb8572146c27704
refactor #283 Remove unused parameter in bookmark/ViewHolder.kt.
toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt,toastkidjp/Jitte
app/src/main/java/jp/toastkid/yobidashi/browser/bookmark/ViewHolder.kt
app/src/main/java/jp/toastkid/yobidashi/browser/bookmark/ViewHolder.kt
package jp.toastkid.yobidashi.browser.bookmark import android.graphics.Bitmap import android.net.Uri import android.support.annotation.DrawableRes import android.support.v7.widget.RecyclerView import io.reactivex.Single import io.reactivex.android.schedulers.AndroidSchedulers import io.reactivex.disposables.Disposable...
package jp.toastkid.yobidashi.browser.bookmark import android.graphics.Bitmap import android.net.Uri import android.support.annotation.DrawableRes import android.support.v7.widget.RecyclerView import io.reactivex.Single import io.reactivex.android.schedulers.AndroidSchedulers import io.reactivex.disposables.Disposable...
epl-1.0
Kotlin
23296a882e06845b15068fecb86779a611231588
remove duplicates from sorted array
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/remove_duplicates_from_array/RemoveDuplicatesFromSortedArray.kt
kotlin/src/katas/kotlin/remove_duplicates_from_array/RemoveDuplicatesFromSortedArray.kt
package katas.kotlin.remove_duplicates_from_array import kotlincommon.test.shouldEqual import org.junit.Test class RemoveDuplicatesFromSortedArrayTests { @Test fun `remove the duplicates in-place such that each element appear only once`() { intArrayOf().removeDuplicatesToList() shouldEqual emptyList() ...
package katas.kotlin.remove_duplicates_from_array import kotlincommon.test.shouldEqual import org.junit.Test class RemoveDuplicatesFromSortedArrayTests { @Test fun `remove the duplicates in-place such that each element appear only once`() { intArrayOf().removeDuplicatesToList() shouldEqual emptyList() ...
unlicense
Kotlin
bd2bfc2a942bed462cd8c461e93e1ba7c5646a6a
Add an exception for invalid response (#4662)
stripe/stripe-android,stripe/stripe-android,stripe/stripe-android,stripe/stripe-android,stripe/stripe-android
stripe-core/src/main/java/com/stripe/android/core/exception/InvalidResponseException.kt
stripe-core/src/main/java/com/stripe/android/core/exception/InvalidResponseException.kt
package com.stripe.android.core.exception import androidx.annotation.RestrictTo import com.stripe.android.core.StripeError /** * A [StripeException] indicating that invalid parameters were used in a response. E.g when the * response contains a null field that shouldn't be null, or contains an unknown Enum value tha...
mit
Kotlin
ed9630445c289249b923e6b6372993b7cad6529b
check if listFiles() is null
Qase/KotlinLogger,Qase/KotlinLogger
kotlinlog/src/main/kotlin/quanti/com/kotlinlog/migration/KotlinLogMigrator.kt
kotlinlog/src/main/kotlin/quanti/com/kotlinlog/migration/KotlinLogMigrator.kt
package quanti.com.kotlinlog.migration import android.content.Context import quanti.com.kotlinlog.BuildConfig import quanti.com.kotlinlog.utils.logFilesDir import java.io.File internal class KotlinLogMigrator(val context: Context) { companion object { private const val PREF_FILE_NAME = "quanti.com.kotlinl...
package quanti.com.kotlinlog.migration import android.content.Context import quanti.com.kotlinlog.BuildConfig import quanti.com.kotlinlog.utils.logFilesDir import java.io.File internal class KotlinLogMigrator(val context: Context) { companion object { private const val PREF_FILE_NAME = "quanti.com.kotlinl...
mit
Kotlin
e76468b6c9959546f7d63ac1f7a1b20d8a71a69d
Fix bad name prefix and suffix
andimage/PCBridge
src/main/kotlin/com/projectcitybuild/spigot/modules/chat/listeners/ChatListener.kt
src/main/kotlin/com/projectcitybuild/spigot/modules/chat/listeners/ChatListener.kt
package com.projectcitybuild.spigot.modules.chat.listeners import com.projectcitybuild.core.contracts.EnvironmentProvider import com.projectcitybuild.core.contracts.Listenable import org.bukkit.event.EventHandler import org.bukkit.event.EventPriority import org.bukkit.event.player.AsyncPlayerChatEvent class ChatListe...
package com.projectcitybuild.spigot.modules.chat.listeners import com.projectcitybuild.core.contracts.EnvironmentProvider import com.projectcitybuild.core.contracts.Listenable import org.bukkit.event.EventHandler import org.bukkit.event.EventPriority import org.bukkit.event.player.AsyncPlayerChatEvent class ChatListe...
mit
Kotlin
54b3878316921997cf1f848c93d3a8645168c4d2
Return forced UTF-8 charset for .editorconfig
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/editorconfig/src/org/editorconfig/language/filetype/EditorConfigFileType.kt
plugins/editorconfig/src/org/editorconfig/language/filetype/EditorConfigFileType.kt
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package org.editorconfig.language.filetype import com.intellij.icons.AllIcons import com.intellij.openapi.fileTypes.FileType import com.intellij.openapi.fileTypes.LanguageFileTyp...
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package org.editorconfig.language.filetype import com.intellij.icons.AllIcons import com.intellij.openapi.fileTypes.LanguageFileType import org.editorconfig.language.EditorConfig...
apache-2.0
Kotlin
11373a3dfd758a2c8d7c89c71e72d8bf1d9d3d04
Remove unneeded Android library config
LouisCAD/Splitties,LouisCAD/Splitties,LouisCAD/Splitties
buildSrc/src/main/kotlin/config/AndroidLibraryConfig.kt
buildSrc/src/main/kotlin/config/AndroidLibraryConfig.kt
/* * Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license. */ @file:Suppress("PackageDirectoryMismatch") import org.gradle.api.Action import com.android.build.gradle.LibraryExtension as AndroidLibraryExtension fun AndroidLibraryExtension.setDefaults() { comp...
/* * Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license. */ @file:Suppress("PackageDirectoryMismatch") import org.gradle.api.Action import com.android.build.gradle.LibraryExtension as AndroidLibraryExtension fun AndroidLibraryExtension.setDefaults() { comp...
apache-2.0
Kotlin
33b8f0f4a702cffeda0fc0c1296644a2567cae69
Simplify Maven publishing configuration
gwtproject/gwt-window,gwtproject/gwt-window
buildSrc/src/main/kotlin/local/maven-publish.gradle.kts
buildSrc/src/main/kotlin/local/maven-publish.gradle.kts
package local plugins { `java-base` `maven-publish` signing } java { withJavadocJar() withSourcesJar() } val sonatypeRepository = publishing.repositories.maven { name = "sonatype" setUrl( provider { if (isSnapshot) { uri("https://oss.sonatype.org/conten...
package local plugins { `maven-publish` signing } val javadoc by tasks val javadocJar by tasks.creating(Jar::class) { archiveClassifier.set("javadoc") from(javadoc) } val sourcesJar by tasks.creating(Jar::class) { archiveClassifier.set("sources") from(sourceSets["main"].allSource) } val sona...
apache-2.0
Kotlin
8a1f57f7e4d52859c21a5d62efe251b05a97814c
Enhance ReportsSpec
arturbosch/detekt,rock3r/detekt,arturbosch/detekt,rock3r/detekt,rock3r/detekt,arturbosch/detekt
detekt-cli/src/test/kotlin/io/gitlab/arturbosch/detekt/cli/out/ReportsSpec.kt
detekt-cli/src/test/kotlin/io/gitlab/arturbosch/detekt/cli/out/ReportsSpec.kt
package io.gitlab.arturbosch.detekt.cli.out import io.gitlab.arturbosch.detekt.api.Detektion import io.gitlab.arturbosch.detekt.api.OutputReport import io.gitlab.arturbosch.detekt.cli.CliArgs import io.gitlab.arturbosch.detekt.cli.ReportLocator import io.gitlab.arturbosch.detekt.cli.parseArguments import io.gitlab.art...
package io.gitlab.arturbosch.detekt.cli.out import io.gitlab.arturbosch.detekt.api.Detektion import io.gitlab.arturbosch.detekt.api.OutputReport import io.gitlab.arturbosch.detekt.cli.CliArgs import io.gitlab.arturbosch.detekt.cli.ReportLocator import io.gitlab.arturbosch.detekt.cli.parseArguments import io.gitlab.art...
apache-2.0
Kotlin
777ab13749b00e4e277fbb5a053138e01e744ab9
Initialize transformer field in the constructor
allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/int...
plugins/stats-collector/src/com/intellij/sorting/MLCompletionSorter.kt
plugins/stats-collector/src/com/intellij/sorting/MLCompletionSorter.kt
/* * Copyright 2000-2017 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
/* * Copyright 2000-2017 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
apache-2.0
Kotlin
da0cc09f3411a701df4ef0d510599a0cfd7b76e3
refactor #506 Implement ImageViewFactory's unit test.
toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Jitte,toastkidjp/Yobidashi_kt
app/src/test/java/jp/toastkid/yobidashi/media/image/preview/ImageViewFactoryTest.kt
app/src/test/java/jp/toastkid/yobidashi/media/image/preview/ImageViewFactoryTest.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
2caa406ac6e49175f4061d16a6240c162d3a2065
Create SetCommandData
Homes-MinecraftServerMod/Homes,Homes-MinecraftServerMod/Homes
src/test/java/com/masahirosaito/spigot/homes/tests/commands/SetCommandData.kt
src/test/java/com/masahirosaito/spigot/homes/tests/commands/SetCommandData.kt
package com.masahirosaito.spigot.homes.tests.commands object SetCommandData : CommandData { override fun name(): String = "set" override fun usages(): List<Pair<String, String>> = listOf( "/home set" to "Set your location to your default home", "/home set <home_name>" to "Set your loc...
apache-2.0
Kotlin
d3902c81131b2663d058c1f8ad846c18410503a2
fix null cursor handling
StepicOrg/stepik-android,StepicOrg/stepik-android,StepicOrg/stepik-android,StepicOrg/stepic-android,StepicOrg/stepic-android,StepicOrg/stepic-android
app/src/main/java/org/stepic/droid/persistence/storage/dao/SystemDownloadsDaoImpl.kt
app/src/main/java/org/stepic/droid/persistence/storage/dao/SystemDownloadsDaoImpl.kt
package org.stepic.droid.persistence.storage.dao import android.app.DownloadManager import io.reactivex.Observable import org.stepic.droid.persistence.di.PersistenceScope import org.stepic.droid.persistence.model.SystemDownloadRecord import javax.inject.Inject @PersistenceScope class SystemDownloadsDaoImpl @Inject co...
package org.stepic.droid.persistence.storage.dao import android.app.DownloadManager import io.reactivex.Observable import org.stepic.droid.persistence.di.PersistenceScope import org.stepic.droid.persistence.model.SystemDownloadRecord import javax.inject.Inject @PersistenceScope class SystemDownloadsDaoImpl @Inject co...
apache-2.0
Kotlin
85a763e3f007a6479c9be36aa18dffe24ea16bfa
Introduce proper Width and Height abstractions
nfrankel/kaadin,nfrankel/kaadin,nfrankel/kaadin
kaadin-core/src/main/kotlin/ch/frankel/kaadin/Common.kt
kaadin-core/src/main/kotlin/ch/frankel/kaadin/Common.kt
package ch.frankel.kaadin import com.vaadin.server.* fun Sizeable.height(height: String) = setHeight(height) fun Sizeable.height(height: Float, unit: Sizeable.Unit) = setHeight(height, unit) fun Sizeable.height(height: Height) = setHeight(height.size, height.unit) fun Sizeable.heightUndefined() = setHeightUndefined()...
package ch.frankel.kaadin import com.vaadin.server.* fun Sizeable.height(height: String) = setHeight(height) fun Sizeable.height(height: Float, unit: Sizeable.Unit) = setHeight(height, unit) fun Sizeable.heightUndefined() = setHeightUndefined() fun Sizeable.width(width: String) = setWidth(width) fun Sizeable.width(wi...
apache-2.0
Kotlin
d2394f6f280f6d63f6265f6c197320d6520a5efa
Add failing command completion tests
Ruben-Sten/TeXiFy-IDEA,Ruben-Sten/TeXiFy-IDEA,Ruben-Sten/TeXiFy-IDEA,Ruben-Sten/TeXiFy-IDEA
test/nl/hannahsten/texifyidea/completion/LatexCommandCompletionTest.kt
test/nl/hannahsten/texifyidea/completion/LatexCommandCompletionTest.kt
package nl.hannahsten.texifyidea.completion import com.intellij.testFramework.fixtures.BasePlatformTestCase import nl.hannahsten.texifyidea.file.LatexFileType import org.junit.Test /** * Add completion of commands. */ class LatexCommandCompletionTest : BasePlatformTestCase() { @Throws(Exception::class) over...
mit
Kotlin
69561b23e19dc7362769392553959fc0fdc70b8e
Change positionestimator to use Utility.getFPGATime
TeamMeanMachine/meanlib,TeamMeanMachine/meanlib
src/main/kotlin/org/team2471/frc/lib/control/localization/PositionEstimator.kt
src/main/kotlin/org/team2471/frc/lib/control/localization/PositionEstimator.kt
package org.team2471.frc.lib.control.localization import edu.wpi.first.wpilibj.Utility import org.team2471.frc.lib.math.Point import org.team2471.frc.lib.math.average import java.lang.Math.* class PositionEstimator(private var position: Point, private var heading: Double, time: Long = Utility....
package org.team2471.frc.lib.control.localization import edu.wpi.first.wpilibj.Timer import org.team2471.frc.lib.math.Point import org.team2471.frc.lib.math.average import java.lang.Math.* class PositionEstimator(private var position: Point, private var heading: Double, time: Double = Timer.ge...
unlicense
Kotlin
109727143ba366d2243bcb057f5d541f6ab46945
Remove printlns.
cbeust/klaxon,cbeust/klaxon,cbeust/klaxon
klaxon/src/test/kotlin/com/beust/klaxon/Issue167Test.kt
klaxon/src/test/kotlin/com/beust/klaxon/Issue167Test.kt
package com.beust.klaxon import org.testng.annotations.Test data class TestObject( val a: Int, @Json(name = "filed_b") val b: String, val c: Float) @Test class Issue167Test { fun issue167() { val aJsonObject = json { obj("a" to 1, "b" to "value") } val anArray...
package com.beust.klaxon import org.testng.annotations.Test data class TestObject( val a: Int, @Json(name = "filed_b") val b: String, val c: Float) @Test class Issue167Test { fun issue167() { val aJsonObject = json { obj("a" to 1, "b" to "value") } println("Jso...
apache-2.0
Kotlin
f6aa2534580c7a2ded7dfa459a6e111701035094
add private access test
uchuhimo/kotlin-playground,uchuhimo/kotlin-playground
lang/src/main/kotlin/com/uchuhimo/privateAccess/Play.kt
lang/src/main/kotlin/com/uchuhimo/privateAccess/Play.kt
package com.uchuhimo.privateAccess class A(private val a: Int) { fun accessOtherA(otherA: A) { println(otherA.a) } } class B<out T : Number>(private var b: T) { fun accessOtherB(otherB: B<Int>) { // `b` is private to `this` since variance // otherB.b println(otherB.getB()) ...
apache-2.0
Kotlin
e2b8f24fb8fad86feaac46cc477a14c58490d316
refactor #412 Rename test function.
toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Jitte
app/src/test/java/jp/toastkid/yobidashi/search/history/SearchHistoryInsertionTest.kt
app/src/test/java/jp/toastkid/yobidashi/search/history/SearchHistoryInsertionTest.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
384bd65ba3c17c796f5bb02abd24eb66499c85c3
Clean up build.gradle.kts file
androidx/gcp-gradle-build-cache
gcpbuildcache/build.gradle.kts
gcpbuildcache/build.gradle.kts
plugins { id("java-gradle-plugin") id("maven-publish") id("com.gradle.plugin-publish") version "1.0.0-rc-1" id("org.jetbrains.kotlin.jvm") version "1.6.20" } repositories { mavenCentral() } dependencies { implementation(platform("org.jetbrains.kotlin:kotlin-bom")) implementation("org.jetbr...
plugins { id("java-gradle-plugin") id("maven-publish") id("com.gradle.plugin-publish") version "1.0.0-rc-1" id("org.jetbrains.kotlin.jvm") version "1.6.20" } repositories { mavenCentral() } dependencies { implementation(platform("org.jetbrains.kotlin:kotlin-bom")) implementation("org.jetbr...
apache-2.0
Kotlin
4859ad4c0990185cbdfde92b54d2b0d09edcec39
Break out methods
bmuschko/gradle-docker-plugin,bmuschko/gradle-docker-plugin,bmuschko/gradle-docker-plugin
buildSrc/src/main/kotlin/com/bmuschko/gradle/docker/StaticCodeAnalysisPlugin.kt
buildSrc/src/main/kotlin/com/bmuschko/gradle/docker/StaticCodeAnalysisPlugin.kt
package com.bmuschko.gradle.docker import org.gradle.api.Plugin import org.gradle.api.Project import org.gradle.api.plugins.quality.CodeNarc import org.gradle.api.plugins.quality.CodeNarcExtension import org.gradle.api.plugins.quality.CodeNarcPlugin import org.gradle.kotlin.dsl.* class StaticCodeAnalysisPlugin : Plug...
package com.bmuschko.gradle.docker import org.gradle.api.Plugin import org.gradle.api.Project import org.gradle.api.plugins.quality.CodeNarc import org.gradle.api.plugins.quality.CodeNarcExtension import org.gradle.api.plugins.quality.CodeNarcPlugin import org.gradle.kotlin.dsl.* class StaticCodeAnalysisPlugin : Plug...
apache-2.0
Kotlin
b3087e8dbdd728c2c19f0addcb928743aaadd667
improve LateinitUsage issue description
Mauin/detekt,rock3r/detekt,Mauin/detekt,MyDogTom/detekt,arturbosch/detekt,rock3r/detekt,arturbosch/detekt,rock3r/detekt,arturbosch/detekt,Mauin/detekt,Mauin/detekt
detekt-rules/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/bugs/LateinitUsage.kt
detekt-rules/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/bugs/LateinitUsage.kt
package io.gitlab.arturbosch.detekt.rules.bugs import io.gitlab.arturbosch.detekt.api.* import org.jetbrains.kotlin.psi.KtProperty import org.jetbrains.kotlin.psi.psiUtil.allChildren class LateinitUsage(config: Config = Config.empty) : Rule(config) { override val issue = Issue(javaClass.simpleName, Severity.Style, ...
package io.gitlab.arturbosch.detekt.rules.bugs import io.gitlab.arturbosch.detekt.api.* import org.jetbrains.kotlin.psi.KtProperty import org.jetbrains.kotlin.psi.psiUtil.allChildren class LateinitUsage(config: Config = Config.empty) : Rule(config) { override val issue = Issue(javaClass.simpleName, Severity.Style, ...
apache-2.0
Kotlin
6fa5bc2088305e70c2cee0d14d96e47ccf605b76
refactor #451 Make 'script' 'const'.
toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Yobidashi_kt
app/src/main/java/jp/toastkid/yobidashi/browser/HtmlSourceExtractionUseCase.kt
app/src/main/java/jp/toastkid/yobidashi/browser/HtmlSourceExtractionUseCase.kt
package jp.toastkid.yobidashi.browser import android.os.Build import android.webkit.ValueCallback import android.webkit.WebView import androidx.annotation.RequiresApi import androidx.annotation.UiThread class HtmlSourceExtractionUseCase { @UiThread @RequiresApi(Build.VERSION_CODES.KITKAT) operator fun in...
package jp.toastkid.yobidashi.browser import android.os.Build import android.webkit.ValueCallback import android.webkit.WebView import androidx.annotation.RequiresApi import androidx.annotation.UiThread class HtmlSourceExtractionUseCase { @UiThread @RequiresApi(Build.VERSION_CODES.KITKAT) operator fun in...
epl-1.0
Kotlin
9f1835513cd3808cb34991b73cac9ade374b6e5c
refactor #431 Rename to correct name.
toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt
barcode/src/main/java/jp/toastkid/barcode/generator/BarcodeGenerator.kt
barcode/src/main/java/jp/toastkid/barcode/generator/BarcodeGenerator.kt
/* * Copyright (c) 2022 toastkidjp. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompany this distribution. * The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html. */ package jp...
/* * Copyright (c) 2022 toastkidjp. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompany this distribution. * The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html. */ package jp...
epl-1.0
Kotlin
1908e1182b5ac0316bd476c3830c7eeeaca3e5fe
reformat Suppressible KtAnnotated#isSuppressedBy function
arturbosch/detekt,rock3r/detekt,Mauin/detekt,Mauin/detekt,Mauin/detekt,rock3r/detekt,arturbosch/detekt,arturbosch/detekt,rock3r/detekt,Mauin/detekt
detekt-api/src/main/kotlin/io/gitlab/arturbosch/detekt/api/Suppressible.kt
detekt-api/src/main/kotlin/io/gitlab/arturbosch/detekt/api/Suppressible.kt
package io.gitlab.arturbosch.detekt.api import org.jetbrains.kotlin.com.intellij.psi.util.PsiTreeUtil import org.jetbrains.kotlin.preprocessor.typeReferenceName import org.jetbrains.kotlin.psi.KtAnnotated import org.jetbrains.kotlin.psi.KtElement import org.jetbrains.kotlin.psi.KtFile /** * @author Artur Bosch */ ...
package io.gitlab.arturbosch.detekt.api import org.jetbrains.kotlin.com.intellij.psi.util.PsiTreeUtil import org.jetbrains.kotlin.preprocessor.typeReferenceName import org.jetbrains.kotlin.psi.KtAnnotated import org.jetbrains.kotlin.psi.KtElement import org.jetbrains.kotlin.psi.KtFile /** * @author Artur Bosch */ ...
apache-2.0
Kotlin
7b808c8aa7933cc4ed5c284475ad347448bc1cc5
Fix one more method
dmeybohm/chocolate-cakephp,dmeybohm/chocolate-cakephp,dmeybohm/chocolate-cakephp
src/com/daveme/intellij/chocolateCakePHP/typeProvider/ViewHelperInViewTypeProvider.kt
src/com/daveme/intellij/chocolateCakePHP/typeProvider/ViewHelperInViewTypeProvider.kt
package com.daveme.intellij.chocolateCakePHP.typeProvider import com.daveme.intellij.chocolateCakePHP.cake.isCakeTemplate import com.daveme.intellij.chocolateCakePHP.util.startsWithUppercaseCharacter import com.intellij.openapi.project.Project import com.intellij.psi.PsiElement import com.jetbrains.php.lang.psi.elemen...
package com.daveme.intellij.chocolateCakePHP.typeProvider import com.daveme.intellij.chocolateCakePHP.cake.isCakeTemplate import com.daveme.intellij.chocolateCakePHP.util.startsWithUppercaseCharacter import com.intellij.openapi.project.Project import com.intellij.psi.PsiElement import com.jetbrains.php.lang.psi.elemen...
mit
Kotlin
135c6f28f692581d2d10f61a0458f93b29728cf1
Create paging DTO
vimeo/vimeo-networking-java,vimeo/vimeo-networking-java,vimeo/vimeo-networking-java
models/src/main/java/com/vimeo/networking2/Paging.kt
models/src/main/java/com/vimeo/networking2/Paging.kt
package com.vimeo.networking2 /** * Paging urls for next, previous, fist and last pages. */ data class Paging( /** * Next page's url. */ val next: String? = null, /** * Previous page's url. */ val previous: String? = null, /** * First page's url. */ val first:...
mit
Kotlin
e2fe7909018c459b9eacbd6a0ef621f47a30ed92
Correct link
shaeberling/euler,shaeberling/euler,shaeberling/euler,shaeberling/euler
kotlin/src/com/s13g/aoc/aoc2019/Day7.kt
kotlin/src/com/s13g/aoc/aoc2019/Day7.kt
package com.s13g.aoc.aoc2019 import com.s13g.aoc.Result import com.s13g.aoc.Solver import java.lang.Integer.max /** https://adventofcode.com/2019/day/7 */ class Day7 : Solver { override fun solve(lines: List<String>): Result { val input = lines[0].split(",").map { it.toInt() } var maxThrusterA = 0 for (...
package com.s13g.aoc.aoc2019 import com.s13g.aoc.Result import com.s13g.aoc.Solver import java.lang.Integer.max /** https://adventofcode.com/2019/day/5 */ class Day7 : Solver { override fun solve(lines: List<String>): Result { val input = lines[0].split(",").map { it.toInt() } var maxThrusterA = 0 for (...
apache-2.0
Kotlin
0028da27c5804864c4d0d094a6cc1b7c7c29e085
Remove qualifiers
opencredo/concourse,opencredo/concursus,opencredo/concursus
concursus-kotlin/src/test/java/com/opencredo/concursus/kotlin/LightbulbEvents.kt
concursus-kotlin/src/test/java/com/opencredo/concursus/kotlin/LightbulbEvents.kt
package com.opencredo.concursus.kotlin import com.opencredo.concursus.domain.events.dispatching.EventBus import com.opencredo.concursus.domain.events.processing.EventBatchProcessor import com.opencredo.concursus.domain.events.sourcing.EventSource import com.opencredo.concursus.domain.events.storage.InMemoryEventStore ...
package com.opencredo.concursus.kotlin import com.opencredo.concursus.domain.events.dispatching.EventBus import com.opencredo.concursus.domain.events.processing.EventBatchProcessor import com.opencredo.concursus.domain.events.sourcing.EventSource import com.opencredo.concursus.domain.events.storage.InMemoryEventStore ...
mit
Kotlin
534a306fee6bb2b0e3a413c55eeb5e618c7ab043
support debug option
tikivn/android-template,tikivn/android-template,tikivn/android-template,tikivn/android-template
redux/src/main/java/vn/tiki/architecture/redux/Redux.kt
redux/src/main/java/vn/tiki/architecture/redux/Redux.kt
package vn.tiki.architecture.redux import io.reactivex.Flowable import io.reactivex.Observable import io.reactivex.disposables.CompositeDisposable import io.reactivex.processors.BehaviorProcessor import io.reactivex.subjects.PublishSubject interface Store<State> { fun getState(): Flowable<State> fun dispatch(acti...
package vn.tiki.architecture.redux import io.reactivex.Flowable import io.reactivex.Observable import io.reactivex.disposables.Disposable import io.reactivex.processors.BehaviorProcessor import io.reactivex.subjects.PublishSubject interface Store<State> { fun getState(): Flowable<State> fun dispatch(action: Any) ...
apache-2.0
Kotlin
8dd5d789a89d696cfb03830bceabffb7c09aedb5
refactor #523 Add test case.
toastkidjp/Yobidashi_kt,toastkidjp/Yobidashi_kt
lib/src/test/java/jp/toastkid/lib/view/HidingFloatingActionButtonBehaviorTest.kt
lib/src/test/java/jp/toastkid/lib/view/HidingFloatingActionButtonBehaviorTest.kt
/* * Copyright (c) 2022 toastkidjp. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompany this distribution. * The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html. */ package jp...
/* * Copyright (c) 2022 toastkidjp. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompany this distribution. * The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html. */ package jp...
epl-1.0
Kotlin
f9fcdb1670971781c356be0d6d8fa3699459e333
Add Huawei AppGallery Installer ID enum
javiersantos/PiracyChecker,javiersantos/PiracyChecker
library/src/main/java/com/github/javiersantos/piracychecker/enums/InstallerID.kt
library/src/main/java/com/github/javiersantos/piracychecker/enums/InstallerID.kt
package com.github.javiersantos.piracychecker.enums import java.util.ArrayList import java.util.Arrays enum class InstallerID(private val text: String) { GOOGLE_PLAY("com.android.vending|com.google.android.feedback"), AMAZON_APP_STORE("com.amazon.venezia"), GALAXY_APPS("com.sec.android.app.samsungapps"); ...
package com.github.javiersantos.piracychecker.enums import java.util.ArrayList import java.util.Arrays enum class InstallerID(private val text: String) { GOOGLE_PLAY("com.android.vending|com.google.android.feedback"), AMAZON_APP_STORE("com.amazon.venezia"), GALAXY_APPS("com.sec.android.app.samsungapps"); ...
apache-2.0
Kotlin
7c0c011bb45ec6693716ad35ce631a5b24c5d2b8
Improve Imgflip url regex
veyndan/paper-for-reddit,veyndan/reddit-client,veyndan/paper-for-reddit
app/src/main/java/com/veyndan/paper/reddit/post/media/mutator/ImgflipMutatorFactory.kt
app/src/main/java/com/veyndan/paper/reddit/post/media/mutator/ImgflipMutatorFactory.kt
package com.veyndan.paper.reddit.post.media.mutator import com.veyndan.paper.reddit.post.media.model.Image import com.veyndan.paper.reddit.post.model.Post import io.reactivex.Maybe import io.reactivex.Observable import io.reactivex.Single import java.util.regex.Matcher import java.util.regex.Pattern class ImgflipMuta...
package com.veyndan.paper.reddit.post.media.mutator import com.veyndan.paper.reddit.post.media.model.Image import com.veyndan.paper.reddit.post.model.Post import io.reactivex.Maybe import io.reactivex.Observable import io.reactivex.Single import java.util.regex.Matcher import java.util.regex.Pattern class ImgflipMuta...
mit
Kotlin
97b818c1b1978a9d85bddc46e08906cfaf247457
Modify default bookmark.
toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Yobidashi_kt
app/src/main/java/jp/toastkid/yobidashi/browser/bookmark/BookmarkInitializer.kt
app/src/main/java/jp/toastkid/yobidashi/browser/bookmark/BookmarkInitializer.kt
package jp.toastkid.yobidashi.browser.bookmark import android.content.Context import android.net.Uri import jp.toastkid.yobidashi.libs.storage.FilesDir import java.util.* /** * @author toastkidjp */ object BookmarkInitializer { private val DEFAULT_BOOKMARKS: Map<String, String> = mapOf( "Google Tra...
package jp.toastkid.yobidashi.browser.bookmark import android.content.Context import android.net.Uri import jp.toastkid.yobidashi.libs.storage.FilesDir import java.util.* /** * @author toastkidjp */ object BookmarkInitializer { private val DEFAULT_BOOKMARKS: Map<String, String> = mapOf( "Google Tra...
epl-1.0
Kotlin
b63a46819f4fdb404c5d9d6a6eea82847226b50a
Update Utils
Homes-MinecraftServerMod/Homes,Homes-MinecraftServerMod/Homes
src/main/kotlin/com/masahirosaito/spigot/homes/Utils.kt
src/main/kotlin/com/masahirosaito/spigot/homes/Utils.kt
package com.masahirosaito.spigot.homes import com.google.gson.Gson import com.google.gson.GsonBuilder import com.masahirosaito.spigot.homes.exceptions.CanNotFindOfflinePlayerException import com.masahirosaito.spigot.homes.exceptions.CanNotFindOnlinePlayerException import com.masahirosaito.spigot.homes.homedata.Locatio...
package com.masahirosaito.spigot.homes import com.masahirosaito.spigot.homes.exceptions.CanNotFindOfflinePlayerException import com.masahirosaito.spigot.homes.exceptions.CanNotFindOnlinePlayerException import com.masahirosaito.spigot.homes.homedata.LocationData import org.bukkit.Bukkit import org.bukkit.Location impor...
apache-2.0
Kotlin
0959367fe44b57fb0c037923695d547ff0e684d8
add loggerFor inline fun
ojacquemart/spring-euro-bets,ojacquemart/spring-kotlin-euro-bets,ojacquemart/spring-kotlin-euro-bets,ojacquemart/spring-kotlin-euro-bets,ojacquemart/spring-euro-bets
src/main/kotlin/org/ojacquemart/eurobets/lang/Logger.kt
src/main/kotlin/org/ojacquemart/eurobets/lang/Logger.kt
package org.ojacquemart.eurobets.lang import org.slf4j.LoggerFactory inline fun <reified T : Any> loggerFor() = LoggerFactory.getLogger(T::class.java)
unlicense
Kotlin
aff414a71fd68e23e2864db9fb8caf4252db5487
Delete properties and fix method
KotlinNLP/SimpleDNN
src/kotlin/com/kotlinnlp/simplednn/core/neuralprocessor/recurrent/NNSequence.kt
src/kotlin/com/kotlinnlp/simplednn/core/neuralprocessor/recurrent/NNSequence.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
bbb296b3369d4d4f942ca877cb60556580851c85
Create CreateContainer.kt
awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,awsdocs/aws-doc-sdk-examples,a...
.kotlin_alpha/services/mediastore/src/main/kotlin/com/kotlin/mediastore/CreateContainer.kt
.kotlin_alpha/services/mediastore/src/main/kotlin/com/kotlin/mediastore/CreateContainer.kt
//snippet-sourcedescription:[CreateContainer.kt demonstrates how to delete a given AWS Elemental MediaStore container.] //snippet-keyword:[AWS SDK for Kotlin] //snippet-keyword:[Code Sample] //snippet-service:[AWS Elemental MediaStore] //snippet-sourcetype:[full-example] //snippet-sourcedate:[11/05/2020] //snippet-sour...
apache-2.0
Kotlin
87c9a7ffc97c762c8752303a7997075bd129bda0
prepend "https://" to login url if protocol not specified
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/settings/CircletSettingsPanels.kt
plugins/space/src/main/kotlin/circlet/settings/CircletSettingsPanels.kt
package circlet.settings import com.intellij.openapi.ui.* import com.intellij.openapi.ui.panel.ComponentPanelBuilder.* import com.intellij.ui.* import com.intellij.ui.components.* import com.intellij.ui.layout.* import com.intellij.util.ui.* import javax.swing.* internal fun buildLoginPanel(st: CircletLoginState.Disc...
package circlet.settings import com.intellij.openapi.ui.* import com.intellij.openapi.ui.panel.ComponentPanelBuilder.* import com.intellij.ui.* import com.intellij.ui.components.* import com.intellij.ui.layout.* import com.intellij.util.ui.* import javax.swing.* internal fun buildLoginPanel(st: CircletLoginState.Disc...
apache-2.0
Kotlin
64c4ea3bc8da3729179b18d1eff867222961055e
prepare for new version
wuan/bo-android
app/src/test/java/org/blitzortung/android/app/components/VersionComponentTest.kt
app/src/test/java/org/blitzortung/android/app/components/VersionComponentTest.kt
package org.blitzortung.android.app.components import android.content.Context import org.assertj.core.api.KotlinAssertions.assertThat import org.junit.Before import org.junit.Test import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner import org.robolectric.RuntimeEnvironment import org.robolectr...
package org.blitzortung.android.app.components import android.content.Context import org.assertj.core.api.KotlinAssertions.assertThat import org.junit.Before import org.junit.Test import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner import org.robolectric.RuntimeEnvironment import org.robolectr...
apache-2.0
Kotlin
b40866aea0a7d72e7eabb96bf7cec5d6288cdfc7
Add invalid session id cleanup
ktorio/ktor,ktorio/ktor,ktorio/ktor,ktorio/ktor
ktor-server/ktor-server-core/jvm/src/io/ktor/sessions/SessionTrackerById.kt
ktor-server/ktor-server-core/jvm/src/io/ktor/sessions/SessionTrackerById.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.util.* import io.ktor.utils.io.* import kotlin.reflect.* /** * [SessionTracker] that transfers a Session Id generated by...
/* * 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.util.* import io.ktor.utils.io.* import kotlin.reflect.* /** * [SessionTracker] that transfers a Session Id generated by...
apache-2.0
Kotlin
4e31d9d1ff31384bc5d86630924885d74c918776
Fix deprecation warning in BitmapBenchmark
android/performance-samples,android/performance-samples,android/performance-samples
BenchmarkSample/benchmark/src/androidTest/java/com/example/benchmark/BitmapBenchmark.kt
BenchmarkSample/benchmark/src/androidTest/java/com/example/benchmark/BitmapBenchmark.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
8318a4a277547208bedf974bdaddad733066e59b
Convert some test classes to kotlin
vase4kin/TeamCityApp,vase4kin/TeamCityApp,vase4kin/TeamCityApp
app/src/test/java/com/github/vase4kin/teamcityapp/agents/data/AgentDataModelImplTest.kt
app/src/test/java/com/github/vase4kin/teamcityapp/agents/data/AgentDataModelImplTest.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
9ecedeee2b6b0e8c2fdf20cfa1d46860ee12a6ca
Remove redundant Javadoc (#2127)
rock3r/detekt,rock3r/detekt,arturbosch/detekt,arturbosch/detekt,arturbosch/detekt,rock3r/detekt
detekt-test/src/main/kotlin/io/gitlab/arturbosch/detekt/test/KotlinScriptEngine.kt
detekt-test/src/main/kotlin/io/gitlab/arturbosch/detekt/test/KotlinScriptEngine.kt
package io.gitlab.arturbosch.detekt.test import org.intellij.lang.annotations.Language import javax.script.ScriptException /** * The object to use the Kotlin script engine for code compilation. */ object KotlinScriptEngine { /** * Compiles a given code string with the Jsr223 script engine. * If a com...
package io.gitlab.arturbosch.detekt.test import org.intellij.lang.annotations.Language import javax.script.ScriptException /** * The object to use the Kotlin script engine for code compilation. */ object KotlinScriptEngine { /** * Compiles a given code string with the Jsr223 script engine. * If a com...
apache-2.0
Kotlin
5511191c53d5f749d5f9b7891e948485ce6efae9
clean imports
Ekito/koin,InsertKoinIO/koin,Ekito/koin,InsertKoinIO/koin,InsertKoinIO/koin
koin-projects/examples/coffee-maker/src/test/kotlin/org/koin/example/CoffeeMakerTest.kt
koin-projects/examples/coffee-maker/src/test/kotlin/org/koin/example/CoffeeMakerTest.kt
package org.koin.example import org.junit.After import org.junit.Before import org.junit.Test import org.koin.standalone.StandAloneContext.startKoin import org.koin.standalone.StandAloneContext.stopKoin import org.koin.standalone.inject import org.koin.test.KoinTest import org.koin.test.declareMock import org.mockito....
package org.koin.example import org.junit.After import org.junit.Before import org.junit.Test import org.koin.log.EmptyLogger import org.koin.log.PrintLogger import org.koin.standalone.StandAloneContext.startKoin import org.koin.standalone.StandAloneContext.stopKoin import org.koin.standalone.inject import org.koin.te...
apache-2.0
Kotlin
a46010262af7d879b71e5f7afed07bf7227a1c6f
remove duplicates from sorted array
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/remove_duplicates_from_array/RemoveDuplicatesFromSortedArray.kt
kotlin/src/katas/kotlin/remove_duplicates_from_array/RemoveDuplicatesFromSortedArray.kt
package katas.kotlin.remove_duplicates_from_array import kotlincommon.test.shouldEqual import org.junit.Test class RemoveDuplicatesFromSortedArrayTests { @Test fun `remove the duplicates in-place such that each element appear only once`() { intArrayOf().removeDuplicatesToList() shouldEqual emptyList() ...
package katas.kotlin.remove_duplicates_from_array import kotlincommon.test.shouldEqual import org.junit.Test class RemoveDuplicatesFromSortedArrayTests { @Test fun `remove the duplicates in-place such that each element appear only once`() { intArrayOf().removeDuplicatesToList() shouldEqual emptyList() ...
unlicense
Kotlin
84424972018b0b94befddd2e1dec652bf4ea0223
Simplify PsiElementReversibleSequence.
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...
/* * 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
f1d5ce6813aadee8f1ecf89db8e9a5ce0b8bcc63
refactor #431 Extract layout ID.
toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Yobidashi_kt
app/src/main/java/jp/toastkid/yobidashi/barcode/BarcodeReaderActivity.kt
app/src/main/java/jp/toastkid/yobidashi/barcode/BarcodeReaderActivity.kt
package jp.toastkid.yobidashi.barcode import android.content.Context import android.content.Intent import android.os.Bundle import androidx.annotation.LayoutRes import androidx.appcompat.app.AppCompatActivity import jp.toastkid.yobidashi.R /** * Barcode reader activity. * * @author toastkidjp */ class BarcodeRead...
package jp.toastkid.yobidashi.barcode import android.content.Context import android.content.Intent import android.os.Bundle import androidx.appcompat.app.AppCompatActivity import jp.toastkid.yobidashi.R /** * Barcode reader activity. * * @author toastkidjp */ class BarcodeReaderActivity : AppCompatActivity() { ...
epl-1.0
Kotlin
7030a599b94b3310dc472b29e3485db174be1013
Fix program info showing up delayed in detail view
cemrich/zapp
app/src/main/java/de/christinecoenen/code/zapp/app/livestream/ui/ProgramInfoViewModel.kt
app/src/main/java/de/christinecoenen/code/zapp/app/livestream/ui/ProgramInfoViewModel.kt
package de.christinecoenen.code.zapp.app.livestream.ui import android.app.Application import android.text.format.DateUtils import androidx.lifecycle.AndroidViewModel import androidx.lifecycle.asLiveData import androidx.lifecycle.viewModelScope import de.christinecoenen.code.zapp.R import de.christinecoenen.code.zapp.a...
package de.christinecoenen.code.zapp.app.livestream.ui import android.app.Application import android.text.format.DateUtils import androidx.lifecycle.AndroidViewModel import androidx.lifecycle.asLiveData import androidx.lifecycle.viewModelScope import de.christinecoenen.code.zapp.R import de.christinecoenen.code.zapp.a...
mit
Kotlin
e7b2f80f84f949eb89aa2ebafd75de1467e9e40c
refactor #754 Extract key to constant.
toastkidjp/Jitte,toastkidjp/Yobidashi_kt,toastkidjp/Jitte,toastkidjp/Yobidashi_kt
app/src/main/java/jp/toastkid/yobidashi/search/favorite/ClearFavoriteSearchDialogFragment.kt
app/src/main/java/jp/toastkid/yobidashi/search/favorite/ClearFavoriteSearchDialogFragment.kt
/* * Copyright (c) 2018 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) 2018 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
85c478b1c402fe1f31e33e5cb7f6cbf5b0615037
handle stop button in player activity
StepicOrg/stepic-android,StepicOrg/stepic-android,StepicOrg/stepik-android,StepicOrg/stepik-android,StepicOrg/stepic-android,StepicOrg/stepik-android
app/src/main/java/org/stepik/android/view/video_player/ui/activity/VideoPlayerActivity.kt
app/src/main/java/org/stepik/android/view/video_player/ui/activity/VideoPlayerActivity.kt
package org.stepik.android.view.video_player.ui.activity import android.content.ComponentName import android.content.Context import android.content.Intent import android.content.ServiceConnection import android.os.Bundle import android.os.IBinder import android.support.v7.app.AppCompatActivity import com.google.androi...
package org.stepik.android.view.video_player.ui.activity import android.content.ComponentName import android.content.Context import android.content.Intent import android.content.ServiceConnection import android.os.Bundle import android.os.IBinder import android.support.v7.app.AppCompatActivity import com.google.androi...
apache-2.0
Kotlin
ac2d54f2dec8800d1afad02d73a107debfac741f
Add authorized user info parsing
djkovrik/YapTalker,djkovrik/YapTalker
app/src/main/java/com/sedsoftware/yaptalker/data/model/AuthorizedUserInfo.kt
app/src/main/java/com/sedsoftware/yaptalker/data/model/AuthorizedUserInfo.kt
package com.sedsoftware.yaptalker.data.model import pl.droidsonroids.jspoon.annotation.Selector class AuthorizedUserInfo { @Selector("div.user-name > a", defValue = "Guest") lateinit var nickname: String @Selector("div.user-title", defValue = "") lateinit var title: String @Selector("span.user-rank", defVal...
apache-2.0
Kotlin