conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Change EnumEntry extension method to use XElement.\n\nEnumEntry extends XElement, but currently the extension method is\nattached to XTypeElement. Thus, the extension method can only be\ncalled from XTypeElement instances, which isn't very useful since\nthat will always return ... | kotlin | chosen |
[
{
"from": "system",
"value": "Update plugin com.diffplug.spotless to v6.0.5\n"
},
{
"from": "human",
"value": "pluginManagement {\n repositories {\n gradlePluginPortal()\n }\n plugins {\n id(\"com.diffplug.eclipse.apt\") version \"3.34.0\"\n id(\"com.diffplug.spotle... | kotlin | chosen |
[
{
"from": "system",
"value": "Use latest release of plugin on itself.\n\nSigned-off-by: Yahor Berdnikau <65de286607a8090de37d6bb23a427517fd3c474e@gmail.com>\n"
},
{
"from": "human",
"value": "object PluginVersions {\n val kotlin = \"1.2.71\"\n val ktlintPlugin = \"6.1.0\"\n val gradlePu... | kotlin | chosen |
[
{
"from": "system",
"value": "Add page from old yested framework.\n"
},
{
"from": "human",
"value": "package net.yested.ext.bootstrap3\n\nimport net.yested.core.html.div\nimport org.w3c.dom.HTMLElement\n\nenum class ContainerWidth(val code: String) {\n Fixed(\"container\"),\n Fluid(\"conta... | kotlin | chosen |
[
{
"from": "human",
"value": "Create recycler item click listener\n\n"
},
{
"from": "gpt",
"value": "package net.yuzumone.bergamio.view\n\nimport android.content.Context\nimport android.support.v7.widget.RecyclerView\nimport android.view.GestureDetector\nimport android.view.MotionEvent\nimport an... | kotlin | chosen |
[
{
"from": "human",
"value": "Add unit tests to ensure `includedModules` are been included correctly\n"
},
{
"from": "gpt",
"value": "package org.koin.test.android\n\nimport org.junit.Test\nimport org.koin.core.qualifier.named\nimport org.koin.dsl.koinApplication\nimport org.koin.dsl.module\n\ncl... | kotlin | chosen |
[
{
"from": "system",
"value": "Change alarm sound for medium and high levels\n"
},
{
"from": "human",
"value": "package no.nordicsemi.android.prx.repository\n\nimport android.content.Context\nimport android.media.RingtoneManager\nimport android.os.Build\nimport dagger.hilt.android.qualifiers.Appl... | kotlin | chosen |
[
{
"from": "system",
"value": "Remove redundant declaration of testFixturesImplementation\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2018 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in comp... | kotlin | chosen |
[
{
"from": "system",
"value": "Add replacing '@p' to catcher's name on executing catch commands\n"
},
{
"from": "human",
"value": "package me.elsiff.morefish.fishing.catchhandler\n\nimport me.elsiff.morefish.fishing.Fish\nimport org.bukkit.entity.Player\n\n/**\n * Created by elsiff on 2019-01-13.... | kotlin | chosen |
[
{
"from": "system",
"value": "Add `clean` target to `copy` sample\n"
},
{
"from": "human",
"value": "import org.gradle.api.tasks.*\nimport org.gradle.script.lang.kotlin.*\n\n// TODO: ReplaceTokens\n//for Ant filter\n//import org.apache.tools.ant.filters.*\n\n//for including in the copy task\nval... | kotlin | chosen |
[
{
"from": "system",
"value": "Make client tests retry server startup if failed\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2014-2019 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.\n */\n\npackage io.ktor.client.tests.utils\n\nimport ch.qo... | kotlin | chosen |
[
{
"from": "system",
"value": "Use intersects instead of contains operation to check that tree element is visible\n"
},
{
"from": "human",
"value": "package com.intellij.debugger.streams.ui.impl\n\nimport com.intellij.debugger.engine.evaluation.EvaluationContextImpl\nimport com.intellij.debugger.... | kotlin | chosen |
[
{
"from": "human",
"value": "Create person view to get url for a person\n"
},
{
"from": "gpt",
"value": "package views\n\nimport models.Person\nimport views.BaseView.baseUrl\n\n/**\n * Created by allen on 5/17/17.\n */\nobject PersonView {\n fun urlForPerson(person: Person): String{\n ... | kotlin | chosen |
[
{
"from": "human",
"value": "Add 'test' for where clauses\n"
},
{
"from": "gpt",
"value": "package io.polymorphicpanda.speck\n\n/**\n * @author Ranie Jade Ramiso\n */\nclass WhereSpec: Speck({\n Given(\"any number\") {\n When(\"multiplied with 1\") { i: Int ->\n Then(\"resul... | kotlin | chosen |
[
{
"from": "system",
"value": "Add test to try and diagnose why format string isn't being honored.\n"
},
{
"from": "human",
"value": "package net.yested.ext.bootstrap3\n\nimport net.yested.core.properties.Property\nimport net.yested.core.properties.toProperty\nimport net.yested.ext.bootstrap3.uti... | kotlin | chosen |
[
{
"from": "system",
"value": "Generalize test to support more then one reference type\n"
},
{
"from": "human",
"value": "package org.purescript.psi\n\nimport com.intellij.psi.util.findDescendantOfType\nimport junit.framework.TestCase\nimport org.purescript.file.PSFile\nimport org.purescript.pars... | kotlin | chosen |
[
{
"from": "human",
"value": "Add a unit test for injector injection\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2016 Michael Rozumyanskiy\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You m... | kotlin | chosen |
[
{
"from": "system",
"value": "Add features that find if the class is Activity or Fragment\n"
},
{
"from": "human",
"value": "package com.github.shiraji.permissionsdispatcherplugin.models\n\nimport com.intellij.openapi.project.Project\nimport com.intellij.psi.JavaPsiFacade\nimport com.intellij.ps... | kotlin | chosen |
[
{
"from": "system",
"value": "Use latest Cloud Trace GA API\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2020, TeamDev. All rights reserved.\n *\n * Redistribution and use in source and/or binary forms, with or without\n * modification, must retain the above copyright notice and the follo... | kotlin | chosen |
[
{
"from": "system",
"value": "Upgrade auto-value to 1.6.2 in hello-kapt sample\n\nnote that this didn't fix the sample yet but is a step forward\nsee #959\n\nSigned-off-by: Paul Merlin <a027184a55211cd23e3f3094f1fdc728df5e0500@gradle.com>\n"
},
{
"from": "human",
"value": "plugins {\n applica... | kotlin | chosen |
[
{
"from": "system",
"value": "Simplify population of consumer configuration\n"
},
{
"from": "human",
"value": "val sharedConfiguration: Configuration by configurations.creating {\n isCanBeConsumed = false\n isCanBeResolved = true\n}\n\ndependencies {\n add(sharedConfiguration.name, proj... | kotlin | chosen |
[
{
"from": "system",
"value": "Use lenient dependency verification for EC2 warmup builds\n\nWe run a `resolveAllDependencies` build to warm up the EC2 agent image.\nHowever, sometimes the build fails with dependency verification failures,\nwhich is not required because we just want to download all artifacts.... | kotlin | chosen |
[
{
"from": "system",
"value": "Update to MockConsumerActorBase to actually implement ConsumerActor (add arg \"scope\" to function createWorker).\n"
},
{
"from": "human",
"value": "package franz.engine.mock\n\nimport franz.JobStateException\nimport franz.JobStatus\nimport franz.Message\nimport fra... | kotlin | chosen |
[
{
"from": "system",
"value": "[FEATURE] Add readonly to handlebars autocompletion\n\nAdd `readonly` helper to autocompletion."
},
{
"from": "human",
"value": "package com.emberjs.hbs\n\nimport com.emberjs.hbs.HbsPatterns.BLOCK_MUSTACHE_NAME_ID\nimport com.emberjs.hbs.HbsPatterns.SIMPLE_MUSTACHE_... | kotlin | chosen |
[
{
"from": "system",
"value": "Update plugin com.diffplug.spotless to v6.1.0\n"
},
{
"from": "human",
"value": "pluginManagement {\n repositories {\n gradlePluginPortal()\n }\n plugins {\n id(\"com.diffplug.eclipse.apt\") version \"3.34.0\"\n id(\"com.diffplug.spotle... | kotlin | chosen |
[
{
"from": "human",
"value": "Fix Fraudulent Activity Notifications even case\n"
},
{
"from": "gpt",
"value": "import java.lang.StringBuilder\n\nprivate fun IntArray.toNiceString(): String {\n\n val sb = StringBuilder().append(\"[\")\n this.forEach { sb.append(it).append(\",\") }\n if (s... | kotlin | chosen |
[
{
"from": "system",
"value": "Make use of shared fullGradleRuntimeClasspath in arch test project\n"
},
{
"from": "human",
"value": "import org.gradle.gradlebuild.PublicApi\n\nplugins {\n gradlebuild.internal.java\n}\n\ndependencies {\n testImplementation(project(\":baseServices\"))\n te... | kotlin | chosen |
[
{
"from": "human",
"value": "Add extension to bind disposable to lifecycle\n"
},
{
"from": "gpt",
"value": "package com.pyamsoft.pydroid.core\n\nimport androidx.lifecycle.Lifecycle\nimport androidx.lifecycle.Lifecycle.Event.ON_DESTROY\nimport androidx.lifecycle.Lifecycle.Event.ON_PAUSE\nimport a... | kotlin | chosen |
[
{
"from": "system",
"value": "Add working Javadoc link to gitbook site\n"
},
{
"from": "human",
"value": "package net.dean.jraw.docs\n\nclass DocLinkGenerator {\n fun generate(name: String): String {\n val clazz = ProjectTypeFinder.from(name) ?:\n throw IllegalArgumentExcept... | kotlin | chosen |
[
{
"from": "system",
"value": "Use coroutine in Kotlin file\n"
},
{
"from": "human",
"value": "package org.wikipedia.page\n\nimport android.annotation.SuppressLint\nimport io.reactivex.Observable\nimport io.reactivex.android.schedulers.AndroidSchedulers\nimport io.reactivex.schedulers.Schedulers\... | kotlin | chosen |
[
{
"from": "system",
"value": "[TC] Remove linting checks on GH\n"
},
{
"from": "human",
"value": "package _Self.subprojects\n\nimport _Self.buildTypes.GithubLint\nimport _Self.buildTypes.GithubTests\nimport jetbrains.buildServer.configs.kotlin.v2019_2.Project\n\nobject GitHub : Project({\n name... | kotlin | chosen |
[
{
"from": "system",
"value": "Allow dummy logger to produce messages with just printlns\n"
},
{
"from": "human",
"value": "package org.jetbrains.kotlin.konan.util\n\nimport kotlin.system.exitProcess\n\ninterface Logger {\n fun log(message: String)\n fun error(message: String)\n fun warn... | kotlin | chosen |
[
{
"from": "system",
"value": "Add documentation to the comment handler plugin\n"
},
{
"from": "human",
"value": "package org.wordpress.aztec.plugins\n\nimport android.annotation.SuppressLint\nimport android.content.Context\nimport android.text.Editable\nimport android.text.Spanned\nimport androi... | kotlin | chosen |
[
{
"from": "system",
"value": "Remove println in problem 1954\n"
},
{
"from": "human",
"value": "package leetcode\n\n/**\n * https://leetcode.com/problems/minimum-garden-perimeter-to-collect-enough-apples/\n */\nclass Problem1954 {\n fun minimumPerimeter(neededApples: Long): Long {\n va... | kotlin | chosen |
[
{
"from": "system",
"value": "Improve they way contact is printed\n"
},
{
"from": "human",
"value": "package com.antonioleiva.kataagenda.ui\n\nimport com.antonioleiva.kataagenda.domain.Contact\n\nclass SysOutContactsListView : ContactsListPresenter.View {\n\n override fun showWelcomeMessage()... | kotlin | chosen |
[
{
"from": "system",
"value": "Allow instanceRef to be null\n\nPiperOrigin-RevId: 396710599\n"
},
{
"from": "human",
"value": "/*\n * Copyright (C) 2021 The Android Open Source Project\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except i... | kotlin | chosen |
[
{
"from": "system",
"value": "Create up and down functions logic\n"
},
{
"from": "human",
"value": "package br.com.bloder.migration\n\nimport br.com.bloder.migration.internal.InternalMigration\nimport io.realm.DynamicRealm\nimport io.realm.RealmMigration\n\n/**\n * Created by bloder on 24/09/16.... | kotlin | chosen |
[
{
"from": "system",
"value": "Optimize show word of the day action\n"
},
{
"from": "human",
"value": "@file:Suppress(\"InvalidBundleOrProperty\")\n\npackage cn.yiiguxing.plugin.translate.action\n\nimport cn.yiiguxing.plugin.translate.message\nimport cn.yiiguxing.plugin.translate.util.*\nimport c... | kotlin | chosen |
[
{
"from": "system",
"value": "Fix bug causing incorrect parsing of inputs with negative signs.\n"
},
{
"from": "human",
"value": "package org.nwapw.abacus.plugin.standard.operator\n\nimport org.nwapw.abacus.context.PluginEvaluationContext\nimport org.nwapw.abacus.function.OperatorAssociativity\n... | kotlin | chosen |
[
{
"from": "system",
"value": "[vcs] Use DelegatingProgressIndicator instead of kotlin's delegation to properly implement StandardProgressIndicator\n\nGitOrigin-RevId: ef59cf70c02668e62b5f26541a470c738ba8d520"
},
{
"from": "human",
"value": "// Copyright 2000-2020 JetBrains s.r.o. Use of this sou... | kotlin | chosen |
[
{
"from": "human",
"value": "Create an operator overloading that enables adding a Disposable into CompositeDisposable with +=\n"
},
{
"from": "gpt",
"value": "package com.felipecosta.kotlinrxjavasample.rx\n\nimport io.reactivex.disposables.CompositeDisposable\nimport io.reactivex.disposables.Dis... | kotlin | chosen |
[
{
"from": "system",
"value": "Fix listener in repo list adapter\n"
},
{
"from": "human",
"value": "package com.khmelenko.lab.varis.repositories\n\nimport android.support.v7.widget.RecyclerView\nimport android.view.LayoutInflater\nimport android.view.ViewGroup\nimport com.khmelenko.lab.varis.R\ni... | kotlin | chosen |
[
{
"from": "system",
"value": "Add verification status property to user object\n\nThis is used to know if a user has verified their email or not.\n"
},
{
"from": "human",
"value": "package com.todoist.pojo\n\nopen class User<T : TzInfo, F : Features>(\n id: Long,\n email: String,\n fullN... | kotlin | chosen |
[
{
"from": "system",
"value": "Fix events drawable code format\n"
},
{
"from": "human",
"value": "package com.tomclaw.drawa.play\n\nimport com.tomclaw.drawa.draw.DrawHost\nimport com.tomclaw.drawa.draw.Event\nimport com.tomclaw.drawa.util.StreamDrawable\n\nclass EventsDrawable(\n drawHost:... | kotlin | chosen |
[
{
"from": "system",
"value": "Update the android gradle plugin version to 4.2.1\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * Y... | kotlin | chosen |
[
{
"from": "system",
"value": "Upgrade Kotlin DSL to 0.19.2\n"
},
{
"from": "human",
"value": "package org.gradle.gradlebuild\n\nimport org.gradle.api.JavaVersion\nimport org.gradle.internal.os.OperatingSystem\n\n\nobject BuildEnvironment {\n val isCiServer = \"CI\" in System.getenv()\n val... | kotlin | chosen |
[
{
"from": "system",
"value": "Upgrade Kotlin DSL `0.19.5 => 1.0-rc-1`\n"
},
{
"from": "human",
"value": "package org.gradle.gradlebuild\n\nimport org.gradle.api.JavaVersion\nimport org.gradle.internal.os.OperatingSystem\n\n\nobject BuildEnvironment {\n val isCiServer = \"CI\" in System.getenv... | kotlin | chosen |
[
{
"from": "system",
"value": "Use JUnit 5 platform version\n"
},
{
"from": "human",
"value": "plugins {\n id(\"org.metaborg.gradle.config.java-library\")\n id(\"org.metaborg.gradle.config.junit-testing\")\n}\n\ndependencies {\n api(platform(\"org.metaborg:parent:$version\"))\n\n api(\"org.ap... | kotlin | chosen |
[
{
"from": "human",
"value": "Fix navigation-animation tests when sharding\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2021 The Android Open Source Project\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the L... | kotlin | chosen |
[
{
"from": "system",
"value": "Sort members by name for output.\n"
},
{
"from": "human",
"value": "package org.jetbrains.dokka\n\npublic class ConsoleGenerator(val signatureGenerator : SignatureGenerator) {\n val IndentStep = \" \"\n\n public fun generate(node: DocumentationNode, indent: S... | kotlin | chosen |
[
{
"from": "system",
"value": "Fix the test for MaxWhite\n"
},
{
"from": "human",
"value": "package net.devromik.bw\n\nimport org.junit.Assert.*\nimport org.junit.Test\n\n/**\n * @author Shulnyaev Roman\n */\nclass MaxWhiteTest {\n\n val TREE_SIZE = 10\n\n // ****************************** ... | kotlin | chosen |
[
{
"from": "system",
"value": "Add scope provider ext property for Controller\n"
},
{
"from": "human",
"value": "package com.sedsoftware.yaptalker.commons.extensions\n\nimport android.widget.Toast\nimport com.bluelinelabs.conductor.Controller\nimport es.dmoral.toasty.Toasty\n\nfun Controller.toas... | kotlin | chosen |
[
{
"from": "system",
"value": "Support for running Fragment directly\n"
},
{
"from": "human",
"value": "package no.tornado.tornadofx.idea.configurations\n\nimport com.intellij.execution.lineMarker.ExecutorAction\nimport com.intellij.execution.lineMarker.RunLineMarkerContributor\nimport com.intell... | kotlin | chosen |
[
{
"from": "system",
"value": "Add Kakao Screen for Alerd Dialog\n"
},
{
"from": "human",
"value": "package com.agoda.sample.screen\n\nimport com.agoda.kakao.common.views.KView\nimport com.agoda.kakao.picker.date.KDatePickerDialog\nimport com.agoda.kakao.picker.time.KTimePickerDialog\n\nimport co... | kotlin | chosen |
[
{
"from": "system",
"value": "Fix specifying the service name to store the query processor credentials in.\n"
},
{
"from": "human",
"value": "/*\n * Copyright (C) 2018 Reece H. Dunn\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in ... | kotlin | chosen |
[
{
"from": "human",
"value": "Add base class language-independent handlers\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2000-2017 JetBrains s.r.o.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n ... | kotlin | chosen |
[
{
"from": "human",
"value": "Implement a logger using actors\n\n"
},
{
"from": "gpt",
"value": "import kotlinx.coroutines.CompletableDeferred\nimport kotlinx.coroutines.CoroutineScope\nimport kotlinx.coroutines.Dispatchers\nimport kotlinx.coroutines.GlobalScope\nimport kotlinx.coroutines.asCorou... | kotlin | chosen |
[
{
"from": "system",
"value": "Update AGP for Android Studio 4.1\n"
},
{
"from": "human",
"value": "object BuildPluginsVersion {\n const val AGP = \"4.0.2\"\n const val KOTLIN = \"1.4.10\"\n const val KOTLINTER = \"3.0.2\"\n const val VERSIONS_PLUGIN = \"0.33.0\"\n}\n"
},
{
"f... | kotlin | chosen |
[
{
"from": "system",
"value": "Use explicit classloader when loading installed CoroutineExceptionHandler impls\n\nFixes #530\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.\n */\n\npackage kotlinx.corout... | kotlin | chosen |
[
{
"from": "system",
"value": "Upgrade Kotlin runtime to 1.3.21.\n"
},
{
"from": "human",
"value": "@file:Suppress(\"unused\")\n\nobject BuildConfig {\n const val kotlinVersion = \"1.2.41\"\n const val gradleIntellijPluginVersion = \"0.3.1\"\n const val intellijVersion = \"IC-2016.1\"\n ... | kotlin | chosen |
[
{
"from": "system",
"value": "Remove init block in PreferenceView\n"
},
{
"from": "human",
"value": "package ru.dyatel.tsuschedule.screens\n\nimport android.app.FragmentManager\nimport android.content.Context\nimport android.view.View\nimport com.wealthfront.magellan.BaseScreenView\nimport com.w... | kotlin | chosen |
[
{
"from": "system",
"value": "Update Android Components version to 93.0.20210818143126\n"
},
{
"from": "human",
"value": "/* This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at... | kotlin | chosen |
[
{
"from": "system",
"value": "Fix logging in the callback.\n"
},
{
"from": "human",
"value": "package com.oomvelt.oomvelt.io\n\nimport raticator.RatState\nimport raticator.StateChangeCallback\n\n\nclass DroidBehaviourCallback : StateChangeCallback {\n\n override fun StateChanged(newState: Rat... | kotlin | chosen |
[
{
"from": "system",
"value": "Edit base url for url for image function\n"
},
{
"from": "human",
"value": "package views\n\nimport models.Image\n\n/**\n * Created by allen on 3/30/17.\n */\n\nclass ImageView{\n fun urlForImage(image: Image?): String{\n if(image != null){\n re... | kotlin | chosen |
[
{
"from": "system",
"value": "Add an optional charset to respondWrite\n"
},
{
"from": "human",
"value": "package org.jetbrains.ktor.application\n\nimport org.jetbrains.ktor.content.*\nimport org.jetbrains.ktor.host.*\nimport org.jetbrains.ktor.http.*\nimport org.jetbrains.ktor.nio.*\nimport org.... | kotlin | chosen |
[
{
"from": "system",
"value": "Fix for Windows / props dialog\n"
},
{
"from": "human",
"value": "repositories {\n mavenLocal()\n jcenter()\n gradlePluginPortal()\n}\n\ndependencies {\n implementation(\"org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.72\")\n implementation(\"com.neva.... | kotlin | chosen |
[
{
"from": "system",
"value": "Configure bintray publishing for kotlin-as-java plugin\n"
},
{
"from": "human",
"value": "publishing {\n publications {\n register<MavenPublication>(\"kotlin-as-java-plugin\") {\n artifactId = \"kotlin-as-java-plugin\"\n from(componen... | kotlin | chosen |
[
{
"from": "system",
"value": ":+1: Make RxComamnd canExecute true as default\n"
},
{
"from": "human",
"value": "package com.wada811.rxviewmodel.commands\n\nimport android.databinding.ObservableBoolean\nimport io.reactivex.Flowable\nimport io.reactivex.Observable\nimport io.reactivex.disposables.... | kotlin | chosen |
[
{
"from": "system",
"value": "Fix issue where game sequence is played after game is over.\n"
},
{
"from": "human",
"value": "package com.chidurala.rahul.simonsays.Service\n\nimport com.chidurala.rahul.simonsays.Delegate.UserInputDelegate\n\n/**\n * Created by Rahul Chidurala on 10/8/2017.\n */\n... | kotlin | chosen |
[
{
"from": "human",
"value": "Add test to validate task configuration avoidance.\n\nValidates plugin does not create any tasks on configuration phase.\n"
},
{
"from": "gpt",
"value": "package org.jlleitschuh.gradle.ktlint\n\nimport org.jlleitschuh.gradle.ktlint.tasks.GenerateReportsTask\nimport o... | kotlin | chosen |
[
{
"from": "system",
"value": "Update plugin com.diffplug.eclipse.apt to v3.37.0\n"
},
{
"from": "human",
"value": "pluginManagement {\n repositories {\n gradlePluginPortal()\n }\n plugins {\n id(\"com.diffplug.eclipse.apt\") version \"3.36.2\"\n id(\"com.diffplug.sp... | kotlin | chosen |
[
{
"from": "system",
"value": "Use lateinit for autowired variables\n\nAccording to the Kotlin docs, this seems to be the preferred way to handle dependency\ninjected instance variables.\n\nSee: https://kotlinlang.org/docs/reference/properties.html#late-initialized-properties\n"
},
{
"from": "human",... | kotlin | chosen |
[
{
"from": "system",
"value": "Make sure build-logic precompiled plugins are formatted/checked\n"
},
{
"from": "human",
"value": "plugins {\n `kotlin-dsl`\n id(\"com.diffplug.spotless\") version \"6.3.0\"\n}\nbuildscript {\n dependencyLocking {\n lockAllConfigurations()\n }\n}\... | kotlin | chosen |
[
{
"from": "system",
"value": "Update CORS for PUT request\n"
},
{
"from": "human",
"value": "package prat\n\nimport org.springframework.stereotype.Component\nimport java.io.IOException\nimport javax.servlet.*\nimport javax.servlet.http.HttpServletResponse\n\n/**\n * Created by pt2121 on 12/10/15... | kotlin | chosen |
[
{
"from": "system",
"value": "Add test extension method to completable\n"
},
{
"from": "human",
"value": "package com.elpassion.android.commons.rxjavatest\n\nimport org.mockito.stubbing.OngoingStubbing\nimport rx.Completable\n\nfun OngoingStubbing<Completable>.thenNeverending() = thenReturn(Comp... | kotlin | chosen |
[
{
"from": "system",
"value": "Migrate the mockk test sample to JUnit 5\n"
},
{
"from": "human",
"value": "package com.felipecosta.microservice.app.notes.frontcontroller\n\nimport com.felipecosta.microservice.server.Request\nimport com.felipecosta.microservice.server.Response\nimport com.felipeco... | kotlin | chosen |
[
{
"from": "system",
"value": "Rollback file list, as simplest way to keep links in order\n"
},
{
"from": "human",
"value": "package link.kotlin.scripts\n\nimport kotlinx.coroutines.runBlocking\nimport link.kotlin.scripts.scripting.ScriptEvaluator\nimport link.kotlin.scripts.scripting.default\nim... | kotlin | chosen |
[
{
"from": "system",
"value": "Remove unnecessary test runtime dependency declarations\n\nThese are now provided through the dependency on the distribuition.\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2020 the original author or authors.\n *\n * Licensed under the Apache License, Version... | kotlin | chosen |
[
{
"from": "system",
"value": "Add extension functions for units\n"
},
{
"from": "human",
"value": "package com.glucose.device\n\nimport android.content.Context\n\nobject Units {\n\n /**\n * Convert density points to pixels.\n */\n fun dpToPx(ctx: Context, dp: Float): Float {\n ... | kotlin | chosen |
[
{
"from": "human",
"value": "Add unit tests for KeuralManager\n"
},
{
"from": "gpt",
"value": "package br.com.germanno.keural\n\nimport br.com.germanno.keural.activation_functions.HyperbolicTangent\nimport org.junit.Assert\nimport org.junit.Test\n\n/**\n * @author Germanno Domingues - germanno.d... | kotlin | chosen |
[
{
"from": "system",
"value": "Create saves directory if not exist\n"
},
{
"from": "human",
"value": "package com.seancheey.game\n\nimport java.io.FileOutputStream\nimport java.io.ObjectOutputStream\nimport java.io.Serializable\n\n/**\n * Created by Seancheey on 26/05/2017.\n * GitHub: https://gi... | kotlin | chosen |
[
{
"from": "system",
"value": "Use @PropertyName for FirestoreTrack fields which use snake_case on the DB\n"
},
{
"from": "human",
"value": "package net.squanchy.service.firestore.model.schedule\n\nimport java.util.Date\n\nclass FirestoreSchedulePage {\n lateinit var day: FirestoreDay\n var... | kotlin | chosen |
[
{
"from": "system",
"value": "Delete blank line from store\n"
},
{
"from": "human",
"value": "package com.reduks.reduks\n\nimport com.reduks.reduks.subscription.Subscriber\nimport com.reduks.reduks.subscription.Subscription\n\nclass Store<out State>(initialState: State, initialReducer: (state: S... | kotlin | chosen |
[
{
"from": "system",
"value": "Use identity hash code on K/N for debug strings\n\nFixes #1237\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.\n */\n\npackage kotlinx.coroutines\n\nprivate var counter = 0... | kotlin | chosen |
[
{
"from": "system",
"value": "Use '==' instead of 'equals'.\n"
},
{
"from": "human",
"value": "package org.klips.engine\n\nimport java.util.concurrent.atomic.AtomicLong\n\n\nsealed class Modification<T> (val arg:T) {\n\n companion object {\n val clock = AtomicLong(0)\n }\n\n val ... | kotlin | chosen |
[
{
"from": "system",
"value": "Add ktlint task dependencies in root project\n"
},
{
"from": "human",
"value": "buildscript {\n repositories {\n jcenter()\n google()\n maven(\"https://dl.bintray.com/jetbrains/kotlin-native-dependencies\")\n }\n\n dependencies {\n ... | kotlin | chosen |
[
{
"from": "system",
"value": "Fix wrong git pull option IDEA-243078\n\nGitOrigin-RevId: ec361f8ef403bb8efc187947e06274eae4848cc9"
},
{
"from": "human",
"value": "// 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... | kotlin | chosen |
[
{
"from": "system",
"value": "Add KDoc to start and startActivity\n"
},
{
"from": "human",
"value": "/*\n * Copyright (c) 2018. Louis Cognault Ayeva Derman\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the Licens... | kotlin | chosen |
[
{
"from": "system",
"value": "Use startActivity instead of resolveActivity\n"
},
{
"from": "human",
"value": "package org.stepik.android.view.base.routing\n\nimport android.content.ActivityNotFoundException\nimport android.content.Context\nimport android.content.Intent\nimport android.net.Uri\ni... | kotlin | chosen |
[
{
"from": "human",
"value": "Add a model object that represents a component\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2016 Michael Rozumyanskiy\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n... | kotlin | chosen |
[
{
"from": "human",
"value": "Test hasSecurity method with Kotlin\n"
},
{
"from": "gpt",
"value": "package com.filestack\n\nimport org.junit.Assert\nimport org.junit.Assert.*\nimport org.junit.Test\n\nclass ConfigTest {\n\n @Test\n fun `verifies security`() {\n var config = Config(\"... | kotlin | chosen |
[
{
"from": "human",
"value": "Solve Average 2 in kotlin\n"
},
{
"from": "gpt",
"value": "import java.util.*\n\nfun main(args: Array<String>) {\n val sc = Scanner(System.`in`);\n\n val a: String = sc.next();\n val b: String = sc.next();\n val c: String = sc.next();\n\n println(\n ... | kotlin | chosen |
[
{
"from": "system",
"value": "Improve consistency of java/kotlin buildSrc\n\nUse same version of Java across both.\n"
},
{
"from": "human",
"value": "plugins {\n `kotlin-dsl`\n}\n\nrepositories {\n mavenCentral()\n}\n\ndependencies {\n implementation(\"com.diffplug.spotless:spotless-plugin-gr... | kotlin | chosen |
[
{
"from": "human",
"value": "Add command to backup the database\n"
},
{
"from": "gpt",
"value": "package me.mrkirby153.KirBot.command.executors.admin\n\nimport me.mrkirby153.KirBot.Bot\nimport me.mrkirby153.KirBot.command.BaseCommand\nimport me.mrkirby153.KirBot.command.Command\nimport me.mrkirb... | kotlin | chosen |
[
{
"from": "human",
"value": "Add a mergeWithSelf_producesNoChanges fuzz test for CrdtSingleton.\n\nPiperOrigin-RevId: 355563032\n"
},
{
"from": "gpt",
"value": "package arcs.core.crdt\n\nimport arcs.core.crdt.testutil.ReferencableGenerator\nimport arcs.core.crdt.testutil.SingleActorVersionMapGen... | kotlin | chosen |
[
{
"from": "system",
"value": "Apply themed colors to text selection handle / background\n"
},
{
"from": "human",
"value": "/* Copyright 2022 Braden Farmer\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License... | kotlin | chosen |
[
{
"from": "system",
"value": "Use setDefaultNightMode in place of setLocalNightMode\n\nThis fixes black screen when resuming DialogFragment after night mode\nwas enabled.\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by ... | kotlin | chosen |
[
{
"from": "system",
"value": "[89] Return empty result when no changes in ui\n"
},
{
"from": "human",
"value": "package com.elpassion.intelijidea.action.configure.selector\n\nimport com.elpassion.android.commons.rxjavatest.thenJust\nimport com.intellij.testFramework.fixtures.LightPlatformCodeIns... | kotlin | chosen |
[
{
"from": "system",
"value": "Use `kotlin` method in plugins scope for Android example\n\nSigned-off-by: Mike Kobit <6b5be85140a72f835339fc5384eb248e653d0103@gmail.com>\n"
},
{
"from": "human",
"value": "import org.jetbrains.kotlin.config.KotlinCompilerVersion\n\nplugins {\n id(\"com.android.... | kotlin | chosen |
[
{
"from": "system",
"value": "Use Action instead of Closure\n"
},
{
"from": "human",
"value": "import org.gradle.plugins.ide.eclipse.model.Classpath\nimport org.gradle.plugins.ide.eclipse.model.ProjectDependency\n\ndescription = \"JUnit Jupiter API\"\n\ndependencies {\n\tapi(\"org.opentest4j:ope... | kotlin | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.