Dataset Viewer
Auto-converted to Parquet Duplicate
conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "human", "value": "Add distance layer forward test\n" }, { "from": "gpt", "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 of the MPL was not distri...
kotlin
chosen
[ { "from": "human", "value": "Test for the CreateImage state transformation\n\nBug-Url: https://github.com/kerubistan/kerub/issues/23\nSigned-off-by: Laszlo Hornyak <b67b79795179d8ff38e8fa896b513991ab7f1811@gmail.com>\n" }, { "from": "gpt", "value": "package com.github.K0zka.kerub.planner.steps.v...
kotlin
chosen
[ { "from": "system", "value": "Leverage ScriptApi in source-control sample\n" }, { "from": "human", "value": "sourceControl {\n vcsMappings {\n val computeGit = vcs(GitVersionControlSpec::class.java) {\n // A real life example would use a remote git repository\n se...
kotlin
chosen
[ { "from": "system", "value": "Update mid-screen fold backend to use window metrics.\n\nUpdate midscreen fold backend to use window metrics.\n\nBug: 159454816\nTest: manually run the sample app\nChange-Id: Icd25147942dfe0df7c58ad732d59f1b2f2c16295\n" }, { "from": "human", "value": "/*\n * Copyrig...
kotlin
chosen
[ { "from": "system", "value": "Use Java 18 for max version\n\nTesting change before 18 GA, to ensure Gradle is functional with Java 18\n" }, { "from": "human", "value": "/*\n * Copyright 2019 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");...
kotlin
chosen
[ { "from": "system", "value": "Revert \"Error commir for testing CI\"\n\nThis reverts commit 9b00f42ae721660b5ef94e311baa5a7a341434e7.\n" }, { "from": "human", "value": "package fr.montpelliertechhub.abctestchronometer\n\nimport fr.montpelliertechhub.abctestchronometer.models.ABTest\nimport fr.mo...
kotlin
chosen
[ { "from": "system", "value": "Fix rank activity crash due to index\n" }, { "from": "human", "value": "package me.sweetll.tucao.business.rank.viewmodel\n\nimport android.view.View\nimport android.view.ViewGroup\nimport android.widget.CheckedTextView\nimport me.sweetll.tucao.base.BaseViewModel\nim...
kotlin
chosen
[ { "from": "system", "value": "Add property to determine if a ModuleDiff has changes\n" }, { "from": "human", "value": "package com.jakewharton.diffuse.diff\n\nimport com.jakewharton.diffuse.Aab\nimport com.jakewharton.diffuse.report.DiffReport\nimport com.jakewharton.diffuse.report.text.AabDiffT...
kotlin
chosen
[ { "from": "human", "value": "Add color generator from original project ported to kotlin\n" }, { "from": "gpt", "value": "package com.kennyc.textdrawable\n\nimport kotlin.random.Random\n\nclass ColorGenerator private constructor(private val mColors: List<Int>) {\n private val mRandom: Random =...
kotlin
chosen
[ { "from": "human", "value": "Add jal and jalr test\n" }, { "from": "gpt", "value": "package venus.simulator\n\nimport org.junit.Test\nimport kotlin.test.assertEquals\nimport venus.riscv.Instruction\nimport venus.assembler.Assembler\nimport venus.assembler.Linker\n\nclass FunctionCallTest {\n ...
kotlin
chosen
[ { "from": "system", "value": "Fix broken Kotlin sample test.\n" }, { "from": "human", "value": "// tag::apply[]\n// tag::publish[]\nplugins {\n `kotlin-dsl`\n// end::apply[]\n `maven-publish`\n// tag::apply[]\n}\n// end::apply[]\n\ngroup = \"com.myorg.conventions\"\nversion = \"1.0\"\n\npu...
kotlin
chosen
[ { "from": "system", "value": "Add description for publish project\n" }, { "from": "human", "value": "plugins {\n id(\"gradlebuild.distribution.api-java\")\n}\n\ndependencies {\n implementation(project(\":base-services\"))\n implementation(project(\":functional\"))\n implementation(pr...
kotlin
chosen
[ { "from": "system", "value": "Remove members from workspace model\n" }, { "from": "human", "value": "package com.todoist.pojo\n\nopen class Workspace(\n id: Long,\n open var name: String,\n open var description: String?,\n open var logoBig: String?,\n open var logoMedium: String?,...
kotlin
chosen
[ { "from": "system", "value": "Make more idiomatic Kotlin without return\n" }, { "from": "human", "value": "object Series {\n fun Char.toDigitValue() = this.toInt() - '0'.toInt()\n\n fun slices(n: Int, s: String): List<List<Int>> {\n return when {\n (n > s.length) -> throw...
kotlin
chosen
[ { "from": "system", "value": "Apply latest version of plugin on itself.\n\nSigned-off-by: Yahor Berdnikau <65de286607a8090de37d6bb23a427517fd3c474e@gmail.com>\n" }, { "from": "human", "value": "object PluginVersions {\n val kotlin = \"1.3.31\"\n val ktlintPlugin = \"8.0.0\"\n val gradle...
kotlin
chosen
[ { "from": "human", "value": "Add function to create a Channel from LiveData\n" }, { "from": "gpt", "value": "package com.louiscad.splittiessample.extensions.coroutines\n\nimport android.arch.lifecycle.LifecycleOwner\nimport android.arch.lifecycle.LiveData\nimport android.arch.lifecycle.Observer\...
kotlin
chosen
[ { "from": "human", "value": "Create realm configuration detail class\n" }, { "from": "gpt", "value": "package br.com.bloder.migration.internal.detail\n\nimport java.util.*\n\n/**\n * Created by bloder on 24/09/16.\n */\nclass RealmConfigurationDetail {\n\n var name : String = \"default.realm\...
kotlin
chosen
[ { "from": "system", "value": "Make back button have \"< Back\" text.\n" }, { "from": "human", "value": "package client\n\nimport client.component.flaticon\nimport client.component.visible\nimport net.yested.core.properties.*\nimport net.yested.ext.bootstrap3.*\nimport net.yested.ext.bootstrap3.B...
kotlin
chosen
[ { "from": "human", "value": "Add coverage for Gradle API parameter names and kotlin delegation\n\nSigned-off-by: Paul Merlin <a027184a55211cd23e3f3094f1fdc728df5e0500@gradle.com>\n" }, { "from": "gpt", "value": "/*\n * Copyright 2018 the original author or authors.\n *\n * Licensed under the Apa...
kotlin
chosen
[ { "from": "system", "value": "Update to compile sdk 33\n" }, { "from": "human", "value": "object BuildAndroidConfig {\n const val APP_ID = \"com.cryart.sabbathschool\"\n const val KEYSTORE_PROPS_FILE = \"../release/keystore.properties\"\n const val API_KEYS_PROPS_FILE = \"release/ss_pub...
kotlin
chosen
[ { "from": "system", "value": "Use LayoutInflater context in DialogFragment\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 com.example.splitties.preferences.ui\n\nimport android.o...
kotlin
chosen
[ { "from": "system", "value": "Update to fix detekt error\n\nThis is a weird error, checking in this comment to fix it.\n" }, { "from": "human", "value": "@file:JvmName(\"Constants\")\npackage com.designdemo.uaha.util\n\n// Notification Channel constants\n@JvmField val NOTIFICATION_CHANNEL_NAME: ...
kotlin
chosen
[ { "from": "system", "value": "Remove unnecessary kapt/dagger plumbing in retrofitconverters\n" }, { "from": "human", "value": "/*\n * Copyright (c) 2018 Zac Sweers\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with th...
kotlin
chosen
[ { "from": "system", "value": "Remove afterEvaluate in sample project.\n\nSigned-off-by: Yahor Berdnikau <65de286607a8090de37d6bb23a427517fd3c474e@gmail.com>\n" }, { "from": "human", "value": "import org.jlleitschuh.gradle.ktlint.KtlintExtension\nimport org.jlleitschuh.gradle.ktlint.reporter.Repo...
kotlin
chosen
[ { "from": "system", "value": "Update dependency org.slf4j:slf4j-api to v1.7.34\n" }, { "from": "human", "value": "description = \"doma-slf4j\"\n\ndependencies {\n api(\"org.slf4j:slf4j-api:1.7.33\")\n implementation(project(\":doma-core\"))\n testImplementation(\"ch.qos.logback:logback-...
kotlin
chosen
[ { "from": "system", "value": "Implement navigation for qualified expression constructors\n" }, { "from": "human", "value": "package org.purescript.psi.expression\n\nimport com.intellij.codeInspection.LocalQuickFix\nimport com.intellij.codeInspection.LocalQuickFixProvider\nimport com.intellij.psi...
kotlin
chosen
[ { "from": "system", "value": "Add a few helpers to make the getting started experience feel a little more familiar\n\nChange-Id: Icf6f0611fa33361a2620b0a6d847b2f651b391f7\n" }, { "from": "human", "value": "package com.google.r4a\n\nimport android.view.ViewGroup\n\nobject R4a {\n\n private cla...
kotlin
chosen
[ { "from": "system", "value": "Remove code that supports running the build with JDK 8\n\nAddition of version catalog with use of java.util.Optional\nalready required JDK 11 in practice anyway.\nTests can still be run with JDK 8 though.\n" }, { "from": "human", "value": "package local\n\nplugins {...
kotlin
chosen
[ { "from": "system", "value": "Revert \"Fix too many arguments for `public open fun activate(): Unit` defined in `com.intellij.ui.IconManager`\"\n\nThis reverts commit 3dd97a486d9eac09acb9a93651c6b266dde84566.\n" }, { "from": "human", "value": "package cn.yiiguxing.plugin.translate.ui\n\nimport c...
kotlin
chosen
[ { "from": "system", "value": "Update kotlin and test libraries\n" }, { "from": "human", "value": "package dependencies\n\nobject Versions {\n\n const val versionName = \"2.13.1\"\n\n const val targetSdk = 29\n const val minSdk = 9\n const val minSdkWithSupportLibrary = 14\n\n inte...
kotlin
chosen
[ { "from": "human", "value": "Add sample about passing extension function as function parameter\n" }, { "from": "gpt", "value": "package Kotlin101.Functions.ExtensionsAsParameter\n\n\npublic fun main(args : Array<String>){\n //this refers to Robot instance\n var typeA = configurator {\n ...
kotlin
chosen
[ { "from": "system", "value": "Remove @JvmDefault annotation since all controllers are written in Kotlin\n" }, { "from": "human", "value": "package de.bettinggame.adapter\n\nimport de.bettinggame.domain.repository.NewsRepository\nimport de.bettinggame.ui.Navigation\nimport org.springframework.sec...
kotlin
chosen
[ { "from": "system", "value": "Remove component(vararg args: Any?) in favour of Kotlin Extension format method.\n" }, { "from": "human", "value": "/*\n * Copyright 2017 Ali Moghnieh\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in c...
kotlin
chosen
[ { "from": "system", "value": "Add a new ticket type\n" }, { "from": "human", "value": "package mixit.ticket.model\n\nenum class TicketType {\n SPEAKER,\n SPONSOR_STAND,\n SPONSOR_PARTY,\n SPONSOR_PARTNER,\n STAFF,\n MIXTEEN,\n ATTENDEE,\n VOLUNTEER,\n GUEST,\n COMPE...
kotlin
chosen
[ { "from": "system", "value": "Move to using SDK 27 for jetpack branch.\n\nTest: ./gradlew assembleDebug\nChange-Id: I20220a2ce043a4a94527a41ffe2c0b11e9c1ed85\n" }, { "from": "human", "value": "/*\n * Copyright 2017 The Android Open Source Project\n *\n * Licensed under the Apache License, Versio...
kotlin
chosen
[ { "from": "system", "value": "Remove a bunch of imports from the default java paste\n" }, { "from": "human", "value": "/*\n * 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 a...
kotlin
chosen
[ { "from": "system", "value": "Add locale to formatter creator functions\n" }, { "from": "human", "value": "package net.squanchy.support.time\n\nimport org.threeten.bp.format.DateTimeFormatter\n\nfun createShortTimeFormatter(): DateTimeFormatter = DateTimeFormatter.ofPattern(\"h:mm a\")\n\nfun cr...
kotlin
chosen
[ { "from": "system", "value": "Fix bug where an empty list of days would crash the reading from the DB\n" }, { "from": "human", "value": "/*\n * Copyright 2014-2018 Julien Guerinet\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in co...
kotlin
chosen
[ { "from": "system", "value": "Fix oversized check mark when selecting cars\n\nThe checkmark in the manage cars view uses padding while the avatars doesn't.\nSo preserve the padding rather than removing it." }, { "from": "human", "value": "package se.barsk.park.mainui\n\nimport android.content.Co...
kotlin
chosen
[ { "from": "system", "value": "fix: Fix reading the SRTCP index.\n" }, { "from": "human", "value": "/*\n * Copyright @ 2018 - present 8x8, Inc.\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": "system", "value": "Add some View extensions for visibility\n" }, { "from": "human", "value": "/*\n * Copyright (c) 2017 Zac Sweers\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...
kotlin
chosen
[ { "from": "system", "value": "Add line breaker on the last line\n" }, { "from": "human", "value": "package org.wikipedia.views\n\nimport android.annotation.SuppressLint\nimport android.content.Context\nimport android.view.View\nimport android.widget.LinearLayout\nimport androidx.annotation.Drawa...
kotlin
chosen
[ { "from": "system", "value": "Add logging to seek bar\n" }, { "from": "human", "value": "package com.agoda.sample\n\nimport android.content.Intent\nimport android.os.Bundle\nimport android.support.design.widget.Snackbar\nimport android.support.v7.app.AppCompatActivity\nimport android.widget.Butt...
kotlin
chosen
[ { "from": "system", "value": "Fix loop naming and for in indices\n" }, { "from": "human", "value": "\r\npackage Kotlin101.Loops\r\n\r\nfun main(args : Array<String>) {\r\n var presidents = array(\"jfk\", \"nixon\", \"carter\")\r\n\r\n print(\"I love these presidents \")\r\n for (p in pr...
kotlin
chosen
[ { "from": "system", "value": "Reduce the number of projects in the build scan performance test\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 i...
kotlin
chosen
[ { "from": "system", "value": "Refactor Day 13 part 2\n" }, { "from": "human", "value": "package com.nibado.projects.advent.y2020\n\nimport com.nibado.projects.advent.*\n\nobject Day13 : Day {\n private val lines = resourceLines(2020, 13)\n private val timeStamp = lines.first().toInt()\n ...
kotlin
chosen
[ { "from": "system", "value": "Fix biber flag to include resource file\n" }, { "from": "human", "value": "package nl.rubensten.texifyidea.run.compiler\n\nimport com.intellij.openapi.project.Project\nimport nl.rubensten.texifyidea.run.BibtexRunConfiguration\n\n/**\n * @author Thomas Schouten\n */\...
kotlin
chosen
[ { "from": "system", "value": "Use chunked encoding if other kind of encoding or content-length was not specified.\n" }, { "from": "human", "value": "package org.jetbrains.ktor.netty\n\nimport io.netty.channel.*\nimport io.netty.handler.codec.http.*\nimport org.jetbrains.ktor.application.*\nimpor...
kotlin
chosen
[ { "from": "system", "value": "Fix issue with blinking list on infinite scroll data reload\n" }, { "from": "human", "value": "package com.androidmess.helix.discover.view\n\nimport android.support.v7.widget.RecyclerView\nimport android.view.View\nimport android.view.ViewGroup\nimport com.androidme...
kotlin
chosen
[ { "from": "system", "value": "Add all declarations from Prim to BUILTIN_TYPES\n" }, { "from": "human", "value": "package org.purescript\n\nimport com.intellij.lang.Language\n\nclass PSLanguage : Language(\"Purescript\", \"text/purescript\", \"text/x-purescript\", \"application/x-purescript\") {\...
kotlin
chosen
[ { "from": "system", "value": "Handle all errors when getting likes from local storage.\n" }, { "from": "human", "value": "package pl.mg6.likeornot\n\nimport android.content.Context\nimport io.reactivex.Single\nimport java.io.File\n\ntypealias LikableToStatus = Map<String, Status>\n\nfun callLoca...
kotlin
chosen
[ { "from": "system", "value": "Fix comment drawable bounds when adding it from toolbar\n" }, { "from": "human", "value": "package org.wordpress.aztec.spans\n\nimport android.content.Context\nimport android.graphics.drawable.Drawable\n\nclass AztecCommentSpan(context: Context, drawable: Drawable, ...
kotlin
chosen
[ { "from": "system", "value": "Fix naming of generated exception\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 http://mozilla.org/MPL...
kotlin
chosen
[ { "from": "system", "value": "Fix app id field name in live chat configuration\n" }, { "from": "human", "value": "package com.vimeo.networking2\n\nimport com.squareup.moshi.Json\nimport com.squareup.moshi.JsonClass\nimport com.vimeo.networking2.annotations.Internal\n\n/**\n * Live chat configura...
kotlin
chosen
[ { "from": "system", "value": "Remove unresolved Omnipod import after merge\n" }, { "from": "human", "value": "package info.nightscout.androidaps.queue.commands\n\nimport dagger.android.HasAndroidInjector\nimport info.nightscout.androidaps.interfaces.ActivePluginProvider\nimport info.nightscout.a...
kotlin
chosen
[ { "from": "system", "value": "Fix validation on email field\n" }, { "from": "human", "value": "package mil.nga.giat.mage.form.field\n\nimport android.util.Patterns\nimport mil.nga.giat.mage.form.FormField\n\nclass EmailFieldState(definition: FormField<String>) :\n FieldState<String, FieldValue....
kotlin
chosen
[ { "from": "system", "value": "Improve HTTP client engine container documentation\n" }, { "from": "human", "value": "package io.ktor.client\n\nimport io.ktor.client.engine.*\nimport java.util.*\n\n/**\n * Constructs an asynchronous [HttpClient] using optional [block] for configuring this client.\...
kotlin
chosen
[ { "from": "system", "value": "Remove obsolete findAppFolder() extension method\n" }, { "from": "human", "value": "package com.emberjs.utils\n\nimport com.intellij.openapi.vfs.VirtualFile\n\nval VirtualFile.parents: Iterable<VirtualFile>\n get() = object : Iterable<VirtualFile> {\n over...
kotlin
chosen
[ { "from": "system", "value": "Check and create db dir if necessary\n" }, { "from": "human", "value": "package com.github.tslamic.dn\n\nimport android.content.Context\nimport android.content.SharedPreferences\nimport android.database.sqlite.SQLiteDatabase\nimport java.io.File\nimport java.io.Inpu...
kotlin
chosen
[ { "from": "system", "value": "release: Prepare for further development on 4.10.0\n" }, { "from": "human", "value": "plugins {\n id(\"adventure.parent-build-logic\")\n}\n\ngroup = \"net.kyori\"\nversion = \"4.9.1\"\ndescription = \"A user-interface library for Minecraft: Java Edition.\"\n" }, ...
kotlin
chosen
[ { "from": "system", "value": "Replace let if more normal if statement.\n" }, { "from": "human", "value": "package com.s13g.aoc.aoc2020\n\nimport com.s13g.aoc.Result\nimport com.s13g.aoc.Solver\nimport com.s13g.aoc.mul\n\n/**\n * --- Day 1: Report Repair ---\n * https://adventofcode.com/2020/day/...
kotlin
chosen
[ { "from": "human", "value": "Add unit tests for the ManageCarsActivity\n\nJust a start, more things should be tested." }, { "from": "gpt", "value": "package se.barsk.park\n\nimport android.support.design.widget.FloatingActionButton\nimport android.support.v7.widget.RecyclerView\nimport android.v...
kotlin
chosen
[ { "from": "system", "value": "Enable StrictMode early on debug.\n" }, { "from": "human", "value": "package com.pr0gramm.app\n\nimport android.content.Context\nimport android.support.multidex.MultiDex\n\n\nclass DebugApplicationClass : ApplicationClass() {\n override fun attachBaseContext(base...
kotlin
chosen
[ { "from": "human", "value": "Add a new core class to deal with the Result forwarding\n" }, { "from": "gpt", "value": "package org.firezenk.kartographer.library.core\n\nclass Results(val core: Core) {\n\n private lateinit var observer: (Any?) -> Unit\n\n fun <T> sendResult(requestCode: Int,...
kotlin
chosen
[ { "from": "system", "value": "Debug client contract in IntelliJ only\n" }, { "from": "human", "value": "package org.http4k.client\n\nimport org.http4k.server.Http4kServer\nimport org.http4k.server.ServerConfig\nimport org.http4k.server.asServer\nimport org.junit.jupiter.api.AfterEach\nimport org...
kotlin
chosen
[ { "from": "system", "value": "Fix reference to JVM random code in common\n" }, { "from": "human", "value": "/*\n * Copyright 2017 Nicholas Bilyk\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 ...
kotlin
chosen
[ { "from": "system", "value": "Use remote config to allow disabling persistence\n" }, { "from": "human", "value": "package net.squanchy.service.firebase.injection\n\nimport com.google.firebase.auth.FirebaseAuth\nimport com.google.firebase.firestore.FirebaseFirestore\nimport com.google.firebase.fi...
kotlin
chosen
[ { "from": "system", "value": "Upgrade Kotlin DSL to 1.0-rc-7\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 v...
kotlin
chosen
[ { "from": "system", "value": "Remove butterknife from error activity\n" }, { "from": "human", "value": "/**\n * Copyright 2019 Carl-Philipp Harmant\n *\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": "Add ge.gradle.org credentials to promotion jobs\n" }, { "from": "human", "value": "/*\n * Copyright 2019 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...
kotlin
chosen
[ { "from": "system", "value": "(IDX): Reset `RustImplIndex` on every test run\n" }, { "from": "human", "value": "package org.rust.ide.annotator\n\nimport com.intellij.testFramework.LightProjectDescriptor\nimport org.junit.experimental.categories.Category\nimport org.rust.Performance\nimport org.r...
kotlin
chosen
[ { "from": "system", "value": "Initialize properties on construction in Spanner testing AutoCloseables.\n\nThis more closely follows common AutoCloseable semantics.\n\nChange-Id: I0fb47cf30ac2c17340791f4cc4572b706a816fa9\n" }, { "from": "human", "value": "// Copyright 2020 The Measurement System ...
kotlin
chosen
[ { "from": "system", "value": "Create the directory for --init.\n" }, { "from": "human", "value": "package com.beust.kobalt.app\n\nimport com.beust.kobalt.Args\nimport com.beust.kobalt.internal.ActorUtils\nimport com.beust.kobalt.internal.PluginInfo\nimport com.beust.kobalt.misc.log\nimport com.g...
kotlin
chosen
[ { "from": "human", "value": "Add AndroidX migration Kotlin script\n" }, { "from": "gpt", "value": "import java.io.File\n\nprintln(\"Let's migrate this Android project from support libraries to AndroidX.\")\nval dir = File(\".\")\nval androidXClassMappingCsvFile = File(dir, \"androidx-class-mappi...
kotlin
chosen
[ { "from": "system", "value": "Make endJson to encode any object to JSON\n" }, { "from": "human", "value": "package com.github.inikolaev.vertx.web.kotlin\n\nimport io.vertx.core.http.HttpServerResponse\nimport io.vertx.core.json.JsonArray\nimport io.vertx.core.json.JsonObject\n\nfun HttpServerRes...
kotlin
chosen
[ { "from": "system", "value": "Revert \"replace suspendCoroutine with suspendCancellableCoroutine\"\n\nThis reverts commit c0dce31d\n\nGitOrigin-RevId: 136338f5b0b135a7d72b2b6f224156cb43fbc663" }, { "from": "human", "value": "package circlet.auth\n\nimport circlet.platform.api.oauth.*\nimport cir...
kotlin
chosen
[ { "from": "system", "value": "Fix documentation error in ColorResource\n\nBug: 154601507\nTest: N/A\nChange-Id: I7afcf1a209b707c89ef9509fe323f8613c046d24\n" }, { "from": "human", "value": "/*\n * Copyright 2019 The Android Open Source Project\n *\n * Licensed under the Apache License, Version 2....
kotlin
chosen
[ { "from": "system", "value": "Update meanlib to fix deadband scaling\n" }, { "from": "human", "value": "package org.team2471.frc.lib.util\n\nimport edu.wpi.first.wpilibj.Timer\n\n/**\n * Executes the given block and returns elapsed time in seconds.\n */\nfun measureTimeFPGA(body: () -> Unit): Do...
kotlin
chosen
[ { "from": "system", "value": "Fix Toolbar tinting animation on release build\n" }, { "from": "human", "value": "/*\n * Copyright 2018 Google, Inc.\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 * Yo...
kotlin
chosen
[ { "from": "system", "value": "Make the CLI a fat jar.\n\nSave users and AGP the trouble of finding all the other jars to put on\nthe classpath.\n" }, { "from": "human", "value": "/*\n * Copyright 2019 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you ma...
kotlin
chosen
[ { "from": "system", "value": "Rewrite MutableList.sortWith to suppress warning instead of error\n\nUse available naturalOrder comparator in MutableList.sort()\n" }, { "from": "human", "value": "/*\n * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 lice...
kotlin
chosen
[ { "from": "human", "value": "Add tests for new extension methods\n" }, { "from": "gpt", "value": "/*\n * Copyright 2021, TeamDev. All rights reserved.\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": "Update Spring Kotlin plugin in sample\n" }, { "from": "human", "value": "import org.jetbrains.kotlin.gradle.tasks.KotlinCompile\n\nplugins {\n id(\"io.spring.convention.spring-sample-boot\")\n kotlin(\"jvm\")\n kotlin(\"plugin.spring\") version \"1.3.61\"\n...
kotlin
chosen
[ { "from": "system", "value": "Refactor CircletPage to get all necessary data before rendering content (reduces number of promiseComponents quite significantly)\n\nGitOrigin-RevId: e4d736564fdfb58b3d39ce501086cf21559c82d6" }, { "from": "human", "value": "package circlet.actions\n\nimport circlet....
kotlin
chosen
[ { "from": "system", "value": "Rename the template for consistency.\n" }, { "from": "human", "value": "package com.beust.kobalt.app\n\nimport com.beust.kobalt.api.ITemplateContributor\nimport com.beust.kobalt.api.JarTemplate\nimport com.beust.kobalt.plugin.KobaltPlugin\n\n/**\n * Template that ge...
kotlin
chosen
[ { "from": "system", "value": "Fix logging of query parameters\n" }, { "from": "human", "value": "package org.jetbrains.ktor.application\n\nimport java.util.*\n\n/** Current executing application\n */\npublic open class Application(val config: ApplicationConfig) {\n\n private val interceptors ...
kotlin
chosen
[ { "from": "system", "value": "Update tree values position when tree repainted\n" }, { "from": "human", "value": "package com.intellij.debugger.streams.ui.impl\n\nimport com.intellij.debugger.engine.evaluation.EvaluationContextImpl\nimport com.intellij.debugger.streams.ui.ValueWithPosition\nimpor...
kotlin
chosen
[ { "from": "system", "value": "Add workaround to align mapping pane with collection views\n" }, { "from": "human", "value": "package com.intellij.debugger.streams.ui.impl\n\nimport com.intellij.debugger.streams.ui.LinkedValuesMapping\nimport com.intellij.debugger.streams.ui.ValueWithPosition\nimp...
kotlin
chosen
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
7