conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Cut off support for Java 7\n"
},
{
"from": "human",
"value": "import com.github.kamatama41.gradle.gitrelease.GitReleaseExtension\n\nbuildscript {\n val kotlinVersion = \"1.2.31\"\n extra[\"kotlinVersion\"] = kotlinVersion\n repositories {\n jcenter()... | kotlin | chosen |
[
{
"from": "system",
"value": "Add missing dependency to `buildSrc/uber-plugins`\n\nThe implementation dependency on `project(\":buildquality\")` is\nrequired because the script plugin `java-projects.gradle.kts` applies\nthe `gradlebuild.incubation-report` plugin defined on it.\n"
},
{
"from": "human... | kotlin | chosen |
[
{
"from": "system",
"value": "Change beaconViewModel to save per minor id\n"
},
{
"from": "human",
"value": "package com.xamoom.android.xamoomsdk\n\nimport androidx.lifecycle.LiveData\nimport androidx.lifecycle.MutableLiveData\nimport androidx.lifecycle.ViewModel\nimport org.altbeacon.beacon.Bea... | kotlin | chosen |
[
{
"from": "system",
"value": "Create api method to get ScheduleDay\n"
},
{
"from": "human",
"value": "package com.nilhcem.devoxxfr.scraper.api\n\nimport com.nilhcem.devoxxfr.scraper.model.devoxx.Speaker\nimport com.squareup.moshi.Moshi\nimport okhttp3.OkHttpClient\nimport retrofit2.Call\nimport ... | kotlin | chosen |
[
{
"from": "system",
"value": "Add method to encodeRLP a SignedTransaction()\n"
},
{
"from": "human",
"value": "package org.kethereum.functions\n\nimport org.kethereum.functions.rlp.RLPList\nimport org.kethereum.functions.rlp.encode\nimport org.kethereum.functions.rlp.toRLP\nimport org.kethereum.... | kotlin | chosen |
[
{
"from": "system",
"value": "Update dependency ch.qos.logback:logback-classic to v1.2.6\n"
},
{
"from": "human",
"value": "description = \"doma-slf4j\"\n\ndependencies {\n api(\"org.slf4j:slf4j-api:1.7.32\")\n implementation(project(\":doma-core\"))\n testImplementation(\"ch.qos.logbac... | kotlin | chosen |
[
{
"from": "system",
"value": "Update regex to support escaped quotes with \"\n"
},
{
"from": "human",
"value": "package me.mrkirby153.KirBot.command.args.elements\n\nimport me.mrkirby153.KirBot.command.args.ArgumentList\nimport me.mrkirby153.KirBot.command.args.ArgumentParseException\nimport me.... | kotlin | chosen |
[
{
"from": "system",
"value": "Fix test resource file path in TestRunner\n"
},
{
"from": "human",
"value": "package com.chibatching.kotpref\n\nimport org.robolectric.RobolectricGradleTestRunner\nimport org.robolectric.annotation.Config\nimport org.robolectric.manifest.AndroidManifest\nimport org.... | kotlin | chosen |
[
{
"from": "system",
"value": "Change \"Implement methods\" to \"Implement members\"\n"
},
{
"from": "human",
"value": "/*\n * Use of this source code is governed by the MIT license that can be\n * found in the LICENSE file.\n */\n\npackage org.rust.ide.annotator.fixes\n\nimport com.intellij.code... | kotlin | chosen |
[
{
"from": "system",
"value": "Add more descriptive message to context exceptions.\n"
},
{
"from": "human",
"value": "package org.nwapw.abacus.context\n\nimport org.nwapw.abacus.exception.ContextException\nimport kotlin.reflect.KProperty\n\n/**\n * A delegate to search a hierarchy made up of [Eva... | kotlin | chosen |
[
{
"from": "system",
"value": "Use playground agnostic way of determining project.rootDir\n\nPlayground is currently failing due to the copy task failing to locate\nthe public res file since the rootDir isn't frameworks/support for\nplayground projects, but is instead the library group folder itself.\n\nTest... | kotlin | chosen |
[
{
"from": "system",
"value": "Use named type rather than string in Kotlin DSL\n"
},
{
"from": "human",
"value": "import org.asciidoctor.gradle.jvm.pdf.AsciidoctorPdfTask\nimport org.asciidoctor.gradle.jvm.ProcessMode\n\n// tag::using-two-plugins-three-backends[]\nplugins {\n id(\"org.asciidoc... | kotlin | chosen |
[
{
"from": "system",
"value": "Check body type in backend response\n"
},
{
"from": "human",
"value": "package io.ktor.client\n\nimport io.ktor.client.backend.*\nimport io.ktor.client.call.*\nimport io.ktor.client.features.*\nimport io.ktor.client.request.*\nimport io.ktor.client.response.*\nimpor... | kotlin | chosen |
[
{
"from": "human",
"value": "Add attribute class for easier element manipulation\n"
},
{
"from": "gpt",
"value": "package org.wordpress.aztec\n\nimport org.xml.sax.Attributes\nimport org.xml.sax.helpers.AttributesImpl\n\nclass AztecAttributes(attributes: Attributes = AttributesImpl()) : Attribut... | kotlin | chosen |
[
{
"from": "human",
"value": "Create a class to obtain texts wrapping the Android SDK\n"
},
{
"from": "gpt",
"value": "package com.wilderpereira.lmgtfygen.utils\n\nimport android.content.res.Resources\nimport android.support.annotation.StringRes\nimport javax.inject.Inject\n\nclass TextProvider @... | kotlin | chosen |
[
{
"from": "system",
"value": "fix: Fix xml coverage report name\n"
},
{
"from": "human",
"value": "plugins {\n jacoco\n}\n\nafterEvaluate {\n tasks.withType<JacocoReport> {\n dependsOn(tasks.getByName(\"test\"))\n reports {\n xml.isEnabled = true\n xml.d... | kotlin | chosen |
[
{
"from": "system",
"value": "Simplify RegEx to recognize URLs\n\nBecause the current expression leads to an infinite loop for some\ninputs. For example, this string was reported to make the app crash:\ncom.taobao.arthas.boot.ProcessUtils.findJavaHome(ProcessUtils.java:222)\n\nThe problem seems to be someho... | kotlin | chosen |
[
{
"from": "system",
"value": "Test and fix bugs with loot tables\n"
},
{
"from": "human",
"value": "package api.item\n\nimport api.predef.*\nimport io.luna.game.model.item.Item\n\n/**\n * A model representing a loot table. Loot tables are collections of items that can select items to be picked b... | kotlin | chosen |
[
{
"from": "system",
"value": "Add contracts to view visibility scope extensions\n"
},
{
"from": "human",
"value": "package com.louiscad.splittiessample.extensions\n\nimport android.view.View\nimport androidx.core.view.isInvisible\nimport androidx.core.view.isVisible\n\ninline fun <R> View.visibl... | kotlin | chosen |
[
{
"from": "system",
"value": "Add stubs for RV64 support\n"
},
{
"from": "human",
"value": "package venus.riscv.insts.dsl\n\nimport venus.riscv.insts.dsl.formats.ITypeFormat\nimport venus.riscv.insts.dsl.impls.ITypeImplementation32\nimport venus.riscv.insts.dsl.impls.NoImplementation\nimport ven... | kotlin | chosen |
[
{
"from": "system",
"value": "Disable metadata for android publications\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.\n */\n\n@file:Suppress(\"PackageDirectoryMismatch\")\n\nimport org.jetbrain... | kotlin | chosen |
[
{
"from": "system",
"value": "Refactor clean task and remove debug println\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2019 PolyForest\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 ma... | kotlin | chosen |
[
{
"from": "human",
"value": "Add missing custom command file\n\nIssue: TW-54562\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 * See LICENSE in the project root for license information.\n */... | kotlin | chosen |
[
{
"from": "human",
"value": "Add ReceiveChannel.doOnEach(…) in sample sources\n"
},
{
"from": "gpt",
"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 ... | kotlin | chosen |
[
{
"from": "system",
"value": "Remove the JetBrains repo (which contains snapshots).\n"
},
{
"from": "human",
"value": "package com.beust.kobalt\n\nimport com.beust.kobalt.misc.KFiles\n\nobject Constants {\n const val LOG_DEFAULT_LEVEL = 1\n const val LOG_MAX_LEVEL = 3\n val BUILD_FILE_N... | kotlin | chosen |
[
{
"from": "human",
"value": "Add a base Fragment that does not use Bridge\n"
},
{
"from": "gpt",
"value": "package com.livefront.bridgesample.base\n\nimport android.os.Bundle\nimport android.support.v4.app.Fragment\nimport com.evernote.android.state.StateSaver\n\nopen class NonBridgeBaseFragment... | kotlin | chosen |
[
{
"from": "system",
"value": "Support windows msg for notifications\n"
},
{
"from": "human",
"value": "package io.gitlab.arturbosch.tinbo.api.config\n\nimport org.apache.log4j.LogManager\nimport java.io.IOException\n\n/**\n * @author artur\n */\nobject Notification {\n\n\tprivate val logger = Lo... | kotlin | chosen |
[
{
"from": "system",
"value": "Use non deprecated api in update-app\n"
},
{
"from": "human",
"value": "plugins {\n java\n}\n\ndependencies {\n repositories {\n mavenCentral()\n }\n\n implementation(Lib.commons_io)\n implementation(Lib.annimon)\n implementation(Lib.univoci... | kotlin | chosen |
[
{
"from": "system",
"value": "Allow workshops to be favourited\n"
},
{
"from": "human",
"value": "package net.squanchy.eventdetails.widget\n\nimport android.content.Context\nimport android.support.design.widget.CoordinatorLayout\nimport android.util.AttributeSet\nimport android.view.View\nimport... | kotlin | chosen |
[
{
"from": "system",
"value": "Fix code style: `override` on same line\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2017 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 compliance with the Lic... | kotlin | chosen |
[
{
"from": "system",
"value": "Remove specific reference to IRC from general config\n"
},
{
"from": "human",
"value": "package engineer.carrot.warren.thump.config\n\nimport net.minecraftforge.common.config.Configuration\n\nclass GeneralConfiguration(configuration: Configuration) {\n var obfusc... | kotlin | chosen |
[
{
"from": "system",
"value": "Change Kotlin API to use asObservable\n\nFunction extensions don't replace existing signatures\n"
},
{
"from": "human",
"value": "package io.sweers.rxpalette\n\nimport android.graphics.Bitmap\nimport android.support.v7.graphics.Palette\nimport rx.Observable\n\n/**\n... | kotlin | chosen |
[
{
"from": "system",
"value": "Fix set hour of reminder alarm\n"
},
{
"from": "human",
"value": "package fr.o80.featurereminder\n\nimport android.app.AlarmManager\nimport android.app.PendingIntent\nimport android.content.Context\nimport androidx.core.content.systemService\nimport java.util.Calend... | kotlin | chosen |
[
{
"from": "system",
"value": "Switch to beta socket for jpop\n"
},
{
"from": "human",
"value": "package me.echeung.moemoekyun.client.api.library\n\nclass Jpop private constructor() : Library(\n NAME,\n \"wss://listen.moe/gateway\",\n \"https://listen.moe/fallback\") {\n c... | kotlin | chosen |
[
{
"from": "human",
"value": "Create a local storage implementation based on SharedPreferences\n"
},
{
"from": "gpt",
"value": "package com.felipecosta.kotlinrxjavasample.data\n\nimport android.content.SharedPreferences\n\nclass SharedPreferencesStorage(private val key: String,\n ... | kotlin | chosen |
[
{
"from": "system",
"value": "Fix load from local empty data store\n"
},
{
"from": "human",
"value": "package cz.inventi.inventiskeleton.data.post\n\nimport android.content.SharedPreferences\nimport com.f2prateek.rx.preferences2.RxSharedPreferences\nimport com.google.gson.Gson\nimport com.google... | kotlin | chosen |
[
{
"from": "system",
"value": "Store settings in IDEA in separate file\n\nGitOrigin-RevId: 5ff267c6d69c07638bedac97e603a1603e81e22e"
},
{
"from": "human",
"value": "package circlet.settings\n\nimport circlet.utils.*\nimport com.intellij.openapi.components.*\nimport com.intellij.openapi.project.*\... | kotlin | chosen |
[
{
"from": "system",
"value": "Add email count to SpyMailService\n"
},
{
"from": "human",
"value": "package backend.services.mail\n\nimport backend.model.misc.Email\nimport backend.model.misc.EmailRepository\nimport backend.util.Profiles.DEVELOPMENT\nimport backend.util.Profiles.STAGING\nimport b... | kotlin | chosen |
[
{
"from": "human",
"value": "Add JsonArrayAction<Status>.untilLast() to simulate cursor operation\nFor example, favorites/list does not support cursoring. This handles maxId automatically and returns all of the favorites.\n\nSigned-off-by: Slash Nephy <bee20638eef97e5b5614ed172b3372271af9f5d3@nephy.jp>\n"
... | kotlin | chosen |
[
{
"from": "human",
"value": "Add Highway Neural Network preset\n"
},
{
"from": "gpt",
"value": "package com.kotlinnlp.simplednn.core.neuralnetwork.preset\n\nimport com.kotlinnlp.simplednn.core.functionalities.activations.ActivationFunction\nimport com.kotlinnlp.simplednn.core.functionalities.ini... | kotlin | chosen |
[
{
"from": "system",
"value": "Update build tools to 30.0.0, update compileSdk and targetSdk to API 30.\n"
},
{
"from": "human",
"value": "@file:Suppress(\"ClassName\")\n\npackage reactivecircus.flowbinding\n\nobject androidSdk {\n const val minSdk = 14\n const val testMinSdk = 21\n cons... | kotlin | chosen |
[
{
"from": "system",
"value": "Remove custom header in login controller\n"
},
{
"from": "human",
"value": "package org.jetbrains.teamcity.aad\n\nimport jetbrains.buildServer.controllers.AuthorizationInterceptor\nimport jetbrains.buildServer.controllers.BaseController\nimport jetbrains.buildServer... | kotlin | chosen |
[
{
"from": "system",
"value": "Remove labelFor() because it requires Android SDK 17\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2016 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 Licen... | kotlin | chosen |
[
{
"from": "system",
"value": "Remove visited courses from courses table upon migration\n"
},
{
"from": "human",
"value": "package org.stepic.droid.storage.migration\n\nimport androidx.room.migration.Migration\nimport androidx.sqlite.db.SupportSQLiteDatabase\nimport org.stepic.droid.storage.struc... | kotlin | chosen |
[
{
"from": "system",
"value": "Remove feature envy for current M7 build 1\n"
},
{
"from": "human",
"value": "package io.gitlab.arturbosch.detekt.rules.providers\n\nimport io.gitlab.arturbosch.detekt.api.Config\nimport io.gitlab.arturbosch.detekt.api.RuleSet\nimport io.gitlab.arturbosch.detekt.api... | kotlin | chosen |
[
{
"from": "system",
"value": "Remove includeGroup since now it is in separated packages com.soywiz.korlibs.*\n"
},
{
"from": "human",
"value": "package com.soywiz.korge.gradle\n\nimport org.gradle.api.Project\nimport java.net.URI\n\nfun Project.configureRepositories() {\n\trepositories.apply {\n... | kotlin | chosen |
[
{
"from": "human",
"value": "Add get current activity utility function\n"
},
{
"from": "gpt",
"value": "package com.livefront.bridgesample.util\n\nimport android.app.Activity\nimport androidx.test.platform.app.InstrumentationRegistry\nimport androidx.test.runner.lifecycle.ActivityLifecycleMonito... | kotlin | chosen |
[
{
"from": "system",
"value": "Use idea's convertion of line separations when unnormalizing code\n"
},
{
"from": "human",
"value": "package io.gitlab.arturbosch.detekt.core\n\nimport org.jetbrains.kotlin.com.intellij.openapi.util.text.StringUtilRt\nimport org.jetbrains.kotlin.fileClasses.javaFile... | kotlin | chosen |
[
{
"from": "system",
"value": "Clean Retry after timeout management\n"
},
{
"from": "human",
"value": "package com.barista_v.debug_artist.utils\n\n\nimport rx.Observable\nimport rx.functions.Func1\nimport java.net.SocketTimeoutException\nimport java.util.concurrent.TimeUnit\n\n/**\n * Retry obser... | kotlin | chosen |
[
{
"from": "human",
"value": "Add tree height of btree\n"
},
{
"from": "gpt",
"value": "/**\n * https://www.hackerrank.com/challenges/tree-height-of-a-binary-tree/problem\n */\npackage com.raphaelnegrisoli.hackerrank.trees\n\nimport kotlin.math.max\n\ndata class Node(\n val data: Int,\n ... | kotlin | chosen |
[
{
"from": "human",
"value": "Add a mergeWith() extension function to Map\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": "system",
"value": "Align samples better by simplifying Kotlin code\n"
},
{
"from": "human",
"value": "val sharedConfiguration: Configuration by configurations.creating {\n isCanBeConsumed = false\n isCanBeResolved = true\n}\n\ndependencies {\n sharedConfiguration(project(path... | kotlin | chosen |
[
{
"from": "system",
"value": "Add test for more than one filter for compiler\n"
},
{
"from": "human",
"value": "package io.gitlab.arturbosch.detekt.core\n\nimport org.jetbrains.spek.api.Spek\nimport org.jetbrains.spek.api.dsl.describe\nimport org.jetbrains.spek.api.dsl.it\nimport kotlin.test.ass... | kotlin | chosen |
[
{
"from": "system",
"value": "Set `prepareKotlinBuildScriptModel` task group explicitly\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2016 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 compl... | kotlin | chosen |
[
{
"from": "system",
"value": "Mark frontend extension properties as input\n"
},
{
"from": "human",
"value": "package org.jetbrains.kotlin.gradle.frontend\n\nopen class KotlinFrontendExtension {\n var sourceMaps: Boolean = false\n var moduleName: String = \"\"\n}"
},
{
"from": "gpt"... | kotlin | chosen |
[
{
"from": "system",
"value": "Bump guava from 30.1.1-jre to 31.1-jre in /__tests__/samples/kotlin-dsl\n\nBumps [guava](https://github.com/google/guava) from 30.1.1-jre to 31.1-jre.\n- [Release notes](https://github.com/google/guava/releases)\n- [Commits](https://github.com/google/guava/commits)\n\n---\nupda... | kotlin | chosen |
[
{
"from": "system",
"value": "Add KDoc for repeatWhileActive overload\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.\n */\n\npackage splitties.coroutines\n\nimport kotlinx.coroutines.Cancellatio... | kotlin | chosen |
[
{
"from": "system",
"value": "Reorder test statements for clarity\n"
},
{
"from": "human",
"value": "package org.gradle.kotlin.dsl.integration\n\nimport org.gradle.kotlin.dsl.fixtures.AbstractIntegrationTest\nimport org.gradle.kotlin.dsl.fixtures.DeepThought\nimport org.junit.Test\n\n\nclass Kot... | kotlin | chosen |
[
{
"from": "human",
"value": "Add extensions to show DialogFragments safely\n"
},
{
"from": "gpt",
"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... | kotlin | chosen |
[
{
"from": "system",
"value": "Clean up old folders from the content model store\n"
},
{
"from": "human",
"value": "package com.jetbrains.rider.plugins.unity.workspace\n\nimport com.intellij.ide.util.PropertiesComponent\nimport com.jetbrains.rdclient.util.idea.toVirtualFile\nimport com.jetbrains.... | kotlin | chosen |
[
{
"from": "system",
"value": "Add meProp parameter and update recurrentWeights type\n"
},
{
"from": "human",
"value": "/* Copyright 2016-present The KotlinNLP Authors. All Rights Reserved.\n *\n * This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy ... | kotlin | chosen |
[
{
"from": "human",
"value": "Add a test for generic 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 may obt... | kotlin | chosen |
[
{
"from": "system",
"value": "Add token filter message when the token is invalid or not found\n"
},
{
"from": "human",
"value": "package org.triplesic.kotlin.boilerplate.security\n\nimport org.springframework.web.filter.OncePerRequestFilter\nimport javax.servlet.FilterChain\nimport javax.servlet... | kotlin | chosen |
[
{
"from": "system",
"value": "Convert a function to expression body\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 Lice... | kotlin | chosen |
[
{
"from": "system",
"value": "Fix incorrect module search scope\n"
},
{
"from": "human",
"value": "/*\n * Use of this source code is governed by the MIT license that can be\n * found in the LICENSE file.\n */\n\npackage org.rust.lang.core.resolve.ref\n\nimport com.intellij.openapi.application.Qu... | kotlin | chosen |
[
{
"from": "system",
"value": "Simplify Netty processing of incoming HttpMessages\n"
},
{
"from": "human",
"value": "package org.jetbrains.ktor.netty\n\nimport io.netty.channel.*\nimport io.netty.handler.codec.http.*\nimport io.netty.handler.codec.http.HttpResponseStatus.*\nimport io.netty.handle... | kotlin | chosen |
[
{
"from": "human",
"value": "Add base fragment with viewBinding\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (c) 2021. Adventech <info@adventech.io>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (... | kotlin | chosen |
[
{
"from": "system",
"value": "Enable native target and tests (works on ubuntu after installing libtinfo5 package)\n"
},
{
"from": "human",
"value": "plugins {\n kotlin(\"multiplatform\")\n `maven-publish`\n}\n\ngroup = \"com.github.langara.uspek\"\nversion = \"0.0.12\"\n\nrepositories {\n ... | kotlin | chosen |
[
{
"from": "system",
"value": "Make new test green (green)\n"
},
{
"from": "human",
"value": "package money\n\nclass Dollar(val amount: Int) {\n\n fun times(multiplier: Int): Dollar {\n return Dollar(amount * multiplier)\n }\n}\n"
},
{
"from": "gpt",
"value": "package mon... | kotlin | chosen |
[
{
"from": "system",
"value": "Add deflate interceptor to support Accept-Encoding: gzip as an example\n"
},
{
"from": "human",
"value": "package org.jetbrains.ktor.samples.json\n\nimport com.google.gson.*\nimport org.jetbrains.ktor.application.*\nimport org.jetbrains.ktor.http.*\nimport org.jetbr... | kotlin | chosen |
[
{
"from": "system",
"value": "Fix warning in ch 2 ex 26\n"
},
{
"from": "human",
"value": "package iii_conventions\n\ndata class MyDate(val year: Int, val month: Int, val dayOfMonth: Int) : Comparable<MyDate> {\n override fun compareTo(other: MyDate): Int {\n return when {\n ... | kotlin | chosen |
[
{
"from": "human",
"value": "Add high priority text formatting UI tests\n"
},
{
"from": "gpt",
"value": "package org.wordpress.aztec.demo.tests\n\nimport android.support.test.rule.ActivityTestRule\nimport org.junit.Rule\nimport org.junit.Test\nimport org.wordpress.aztec.demo.BaseTest\nimport org... | kotlin | chosen |
[
{
"from": "system",
"value": "Make AacPlabackFactory deprecation a warning\n"
},
{
"from": "human",
"value": "package net.bjoernpetersen.musicbot.spi.plugin.predefined\n\nimport net.bjoernpetersen.musicbot.api.plugin.Base\n\n/**\n * PlaybackFactory capable of playing `.aac` and `.m4a` files.\n *... | kotlin | chosen |
[
{
"from": "human",
"value": "Add project component to manage supported libraries/languages\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 wit... | kotlin | chosen |
[
{
"from": "system",
"value": "Remove syso in naming convention test\n"
},
{
"from": "human",
"value": "package io.gitlab.arturbosch.detekt.rules\n\nimport com.natpryce.hamkrest.assertion.assertThat\nimport com.natpryce.hamkrest.equalTo\nimport com.natpryce.hamkrest.hasSize\nimport org.jetbrains.... | kotlin | chosen |
[
{
"from": "human",
"value": "Add coroutines racing extensions in sample sources\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.\n */\n\npackage com.louiscad.splittiessample.extensions.coroutines\n\... | kotlin | chosen |
[
{
"from": "system",
"value": "Print stacktraces if exception is thrown inside of tests\n"
},
{
"from": "human",
"value": "package org.jetbrains.spek.engine\n\n/**\n * @author Ranie Jade Ramiso\n */\nclass ThrowableCollector {\n private var throwable: Throwable? = null\n\n fun add(throwable... | kotlin | chosen |
[
{
"from": "system",
"value": "Remove the @ApplicationLifecycle from Firestore\n\nWe don't need it; we were doing it because we assumed that was the\nissue causing the crash, but it isn't.\n"
},
{
"from": "human",
"value": "package net.squanchy.service.firestore.injection\n\nimport com.google.fir... | kotlin | chosen |
[
{
"from": "system",
"value": "Change API of RiderPackageJsonConfiguratorHandler to ThreeState (plugin part)\n"
},
{
"from": "human",
"value": "package com.jetbrains.rider.plugins.unity.javascript\n\nimport com.intellij.openapi.project.Project\nimport com.intellij.openapi.vfs.VirtualFile\nimport ... | kotlin | chosen |
[
{
"from": "system",
"value": "Switch away from Github Packages.\n"
},
{
"from": "human",
"value": "plugins {\n java\n kotlin(\"jvm\") version \"1.3.61\"\n}\n\ngroup = \"org.example\"\nversion = \"1.0-SNAPSHOT\"\n\nrepositories {\n mavenCentral()\n maven {\n url = uri(\"https:/... | kotlin | chosen |
[
{
"from": "system",
"value": "Make test compatible with Gradle 6\n"
},
{
"from": "human",
"value": "import org.jetbrains.kotlin.gradle.tasks.KotlinCompile\n\nplugins {\n\tkotlin(\"jvm\") version \"1.3.10\"\n}\n\nrepositories {\n\tmavenLocal()\n\tmavenCentral()\n\tmaven { url = uri(\"https://oss.... | kotlin | chosen |
[
{
"from": "human",
"value": "Add kotlin operators for MonetaryAmount\n"
},
{
"from": "gpt",
"value": "package org.javamoney.shelter.kotlin\n\nimport javax.money.MonetaryAmount\n\n// Unaries\noperator fun MonetaryAmount.unaryPlus() = this.plus()\noperator fun MonetaryAmount.unaryMinus() = this.ne... | kotlin | chosen |
[
{
"from": "system",
"value": "Set snapshot base to 4.3.0\n"
},
{
"from": "human",
"value": "object Ci {\n\n // this is the version used for building snapshots\n // .buildnumber-snapshot will be appended\n private const val snapshotBase = \"4.2.0\"\n\n private val githubBuildNumber = Syst... | kotlin | chosen |
[
{
"from": "system",
"value": "Update plugin com.diffplug.spotless to v6.0.2\n"
},
{
"from": "human",
"value": "pluginManagement {\n repositories {\n gradlePluginPortal()\n }\n plugins {\n id(\"com.diffplug.eclipse.apt\") version \"3.33.3\"\n id(\"com.diffplug.spotle... | kotlin | chosen |
[
{
"from": "system",
"value": "Add maven repo to fix temporary jcenter sync issues\n"
},
{
"from": "human",
"value": "plugins {\n val kotlinVersion = \"1.3.70\"\n kotlin(\"js\") version kotlinVersion apply false\n kotlin(\"jvm\") version kotlinVersion apply false\n kotlin(\"multiplatf... | kotlin | chosen |
[
{
"from": "system",
"value": "Bump spigot-api from 1.18.2-R0.1-SNAPSHOT to 1.19-R0.1-SNAPSHOT\n\nBumps spigot-api from 1.18.2-R0.1-SNAPSHOT to 1.19-R0.1-SNAPSHOT.\n\n---\nupdated-dependencies:\n- dependency-name: org.spigotmc:spigot-api\n dependency-type: direct:production\n...\n\nSigned-off-by: dependabot... | kotlin | chosen |
[
{
"from": "system",
"value": "Fix name and warning on Gradle 6.\n"
},
{
"from": "human",
"value": "rootProject.name = \"sdf\"\n\npluginManagement {\n repositories {\n maven(\"https://artifacts.metaborg.org/content/groups/public/\")\n }\n}\n\nenableFeaturePreview(\"GRADLE_METADATA\")\n\nfun ... | kotlin | chosen |
[
{
"from": "system",
"value": "Update IpGettertest to fix the test\n"
},
{
"from": "human",
"value": "package com.brunodles.ipgetter\n\nimport com.brunodles.oleaster.suiterunner.OleasterSuiteRunner\nimport com.brunodles.test.helper.context\nimport com.brunodles.test.helper.given\nimport com.bruno... | kotlin | chosen |
[
{
"from": "human",
"value": "Add utility method for counting lines of file\n"
},
{
"from": "gpt",
"value": "package utils\n\nimport java.io.File\nimport java.nio.file.Path\n\nfun Path.countLines(): Int =\n toFile().countLines()\n\nfun File.countLines(): Int =\n useLines { it.count() }\n"
... | kotlin | chosen |
[
{
"from": "system",
"value": "Update plugin com.diffplug.spotless to v6.5.1\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.spotle... | kotlin | chosen |
[
{
"from": "system",
"value": "Update an experimental annotation KDoc\n"
},
{
"from": "human",
"value": "package splitties.lifecycle.coroutines\n\n/**\n * Symbols having this annotation may get deprecated, then removed **if** an alternative or similar\n * API makes it into AndroidX (likely in And... | kotlin | chosen |
[
{
"from": "system",
"value": "Format .kts files with ktfmt\n\nReviewed By: zertosh\n\nDifferential Revision: D36967010\n\nfbshipit-source-id: a83f3facbb5f30b935b69fc70a5588e4da5996b2\n"
},
{
"from": "human",
"value": "/*\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source ... | kotlin | chosen |
[
{
"from": "system",
"value": "Update Spotless and Kotlin versions\n"
},
{
"from": "human",
"value": "object Plugin {\n const val SPOTLESS = \"3.23.0\"\n\n const val VERSIONS = \"0.21.0\"\n\n const val KOTLIN = \"1.3.31\"\n const val DOKKA = \"0.9.17\"\n}\n"
},
{
"from": "gpt"... | kotlin | chosen |
[
{
"from": "system",
"value": "Update AGP for Android Studio Bumblebee | 2021.1.1 Patch 1\n"
},
{
"from": "human",
"value": "object BuildPluginsVersion {\n const val AGP = \"7.1.0\"\n const val KOTLIN = \"1.6.10\"\n const val KOTLINTER = \"3.6.0\"\n const val VERSIONS_PLUGIN = \"0.42.... | kotlin | chosen |
[
{
"from": "human",
"value": "Add simple test for kotlin\n"
},
{
"from": "gpt",
"value": "import java.util.stream.Stream\n\nfun main(args: Array<String>) {\n // Breakpoint!\n val toArray = Stream.of(1, 2, 3, 4).map { it % 2 == 0 }.toArray()\n}"
}
] | kotlin | chosen |
[
{
"from": "human",
"value": "Rename ScheduledReportConfig to ReportConfigSchedule for consistency\n\nChange-Id: I2158ae18d6932a09cd60f6cc08370cf3c4b29d53\n"
},
{
"from": "gpt",
"value": "package org.wfanet.measurement.common\n\nimport io.grpc.Status\nimport io.grpc.StatusRuntimeException\n\n/**\... | kotlin | chosen |
[
{
"from": "system",
"value": "Use latest rc of stutter\n"
},
{
"from": "human",
"value": "pluginManagement {\n plugins {\n id(\"com.gradle.plugin-publish\") version \"0.20.0\"\n\n id(\"org.ajoberstar.grgit\") version \"4.1.1\"\n id(\"org.ajoberstar.reckon\") version \"0.13.1\"\n id(... | kotlin | chosen |
[
{
"from": "system",
"value": "Update plugin com.diffplug.spotless to v6.3.0\n"
},
{
"from": "human",
"value": "pluginManagement {\n repositories {\n gradlePluginPortal()\n }\n plugins {\n id(\"com.diffplug.eclipse.apt\") version \"3.35.0\"\n id(\"com.diffplug.spotle... | kotlin | chosen |
[
{
"from": "system",
"value": "Rename sizeDp to sizeInPx and return a Float\n"
},
{
"from": "human",
"value": "package nl.dionsegijn.konfetti.models\n\nimport android.content.res.Resources\n\n/**\n * Created by dionsegijn on 3/26/17.\n * [sizeInDp] the size of the confetti in dip\n * [mass] each ... | kotlin | chosen |
[
{
"from": "human",
"value": "Introduce a new Uri.getIntQueryParameter extension method\n"
},
{
"from": "gpt",
"value": "package com.gdgnantes.devfest.android.net\n\nimport android.net.Uri\n\nfun Uri.getIntQueryParameter(key: String, defaultValue: Int = 0): Int = getQueryParameter(key)?.toIntOrNu... | kotlin | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.