conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Add new line at end on file\n" }, { "from": "human", "value": "// Copyright 2019 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// You may obtain a copy of th...
java
chosen
[ { "from": "system", "value": "Remove not yet implemented delegation connector test from test suite." }, { "from": "human", "value": "package tools.vitruv.applications.pcmjava.tests.pojotransformations.pcm2java.system;\n\nimport org.junit.runner.RunWith;\nimport org.junit.runners.Suite;\nimport o...
java
chosen
[ { "from": "system", "value": "Use the same Gson instance\n" }, { "from": "human", "value": "package com.thuytrinh.transactionviewer.app;\n\nimport android.content.Context;\nimport android.content.res.Resources;\nimport android.util.Log;\n\nimport com.google.gson.Gson;\nimport com.thuytrinh.trans...
java
chosen
[ { "from": "system", "value": "Remove unnecessary call to action bar\n" }, { "from": "human", "value": "package de.christinecoenen.code.zapp;\n\nimport android.content.Context;\nimport android.content.Intent;\nimport android.os.Bundle;\nimport android.support.v4.app.Fragment;\nimport android.supp...
java
chosen
[ { "from": "system", "value": "Add seeing loaded cards to payment response\n" }, { "from": "human", "value": "package com.cloudmine.api.rest.response;\n\nimport com.cloudmine.api.rest.response.code.PaymentCode;\nimport org.apache.http.HttpResponse;\n\n/**\n * <br>Copyright CloudMine LLC. All righ...
java
chosen
[ { "from": "system", "value": "Use streams to make the toArray method nicer\n" }, { "from": "human", "value": "package info.u_team.u_team_core.intern.init;\n\nimport info.u_team.u_team_core.UCoreMain;\nimport info.u_team.u_team_core.api.dye.*;\nimport net.minecraft.item.Item;\nimport net.minecraf...
java
chosen
[ { "from": "system", "value": "Update end tag of model4.\n" }, { "from": "human", "value": "package poml.converter.project;\n\nimport poml.Converter;\nimport poml.in.Poml;\nimport poml.out.Xml;\n\npublic class Model4 {\n\n public static class Start implements Converter {\n @Override public St...
java
chosen
[ { "from": "system", "value": "Remove some shadows methods in Color.\n" }, { "from": "human", "value": "package org.robolectric.shadows;\n\nimport android.graphics.Color;\nimport org.robolectric.bytecode.RobolectricInternals;\nimport org.robolectric.annotation.Implementation;\nimport org.robolect...
java
chosen
[ { "from": "system", "value": "Add signature_request_invalid, template_created, and template_error event enum values.\n" }, { "from": "human", "value": "package com.hellosign.sdk.resource.support.types;\n\n/**\n * The MIT License (MIT)\n * \n * Copyright (C) 2014 hellosign.com\n * \n * Permission...
java
chosen
[ { "from": "system", "value": "Print h2 connection info when using -DkeepAlive\n" }, { "from": "human", "value": "package au.gov.ga.geodesy;\n\nimport java.security.Permission;\n\nimport org.testng.IExecutionListener;\n\npublic class TestSuiteListener implements IExecutionListener {\n\n @Suppr...
java
chosen
[ { "from": "system", "value": "Add parameter inspection to actions and ActionSpell\n" }, { "from": "human", "value": "package com.elmakers.mine.bukkit.api.action;\n\nimport com.elmakers.mine.bukkit.api.spell.Spell;\nimport org.bukkit.configuration.ConfigurationSection;\n\npublic interface SpellAc...
java
chosen
[ { "from": "system", "value": "Update test for new interface.\n" }, { "from": "human", "value": "package converter;\n\nimport converters.XmlToJsonConverter;\nimport org.junit.Test;\n\nimport static org.junit.Assert.assertTrue;\n\npublic class XmlToJsonConverterTest {\n\n /**\n * Test conve...
java
chosen
[ { "from": "system", "value": "Fix crash when checking for GPS availability denied on API lower than 21.\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 ...
java
chosen
[ { "from": "system", "value": "Add test case for proxy bug." }, { "from": "human", "value": "package com.thoughtworks.acceptance;\n\nimport com.thoughtworks.acceptance.objects.SampleDynamicProxy;\n\npublic class DynamicProxyTest extends AbstractAcceptanceTest {\n\n public void testDynamicProxy...
java
chosen
[ { "from": "system", "value": "Add END_GATEWAY to teleport causes\n" }, { "from": "human", "value": "package com.laytonsmith.abstraction.enums;\n\nimport com.laytonsmith.annotations.MEnum;\n\n@MEnum(\"TeleportCause\")\npublic enum MCTeleportCause {\n\tCOMMAND,\n\tEND_PORTAL,\n\tENDER_PEARL,\n\tNE...
java
chosen
[ { "from": "system", "value": "Add option to search for llamas\n" }, { "from": "human", "value": "package ml.duncte123.skybot.commands.animals;\n\nimport ml.duncte123.skybot.Command;\nimport ml.duncte123.skybot.utils.AirUtils;\nimport ml.duncte123.skybot.utils.URLConnectionReader;\nimport net.dv8...
java
chosen
[ { "from": "system", "value": "Change Long check for Number\n" }, { "from": "human", "value": "package org.apache.diana.api.reader;\n\n\nimport org.apache.diana.api.ReaderField;\n\nimport java.util.Date;\n\n/**\n * Class to reads and converts Date type\n *\n * @author Daniel Cunha danielsoro@apac...
java
chosen
[ { "from": "system", "value": "Implement method to start service.\n" }, { "from": "human", "value": "package com.github.aureliano.achmed.os.service;\n\nimport org.apache.log4j.Logger;\n\nimport com.github.aureliano.achmed.command.CommandFacade;\nimport com.github.aureliano.achmed.command.CommandR...
java
chosen
[ { "from": "system", "value": "Improve namespace programmatic access in Eclipse debug mode\n" }, { "from": "human", "value": "// NEC Labs America Inc. CONFIDENTIAL\r\n\r\npackage com.necla.am.zwutils;\r\n\r\nimport com.necla.am.zwutils.Misc.Versioning;\r\n\r\n\r\npublic class _Namespace {\r\n\t\r...
java
chosen
[ { "from": "system", "value": "Fix jetty javadocs so jdk8 builds work.\n" }, { "from": "human", "value": "/**\n * Waffle (https://github.com/dblock/waffle)\n *\n * Copyright (c) 2010 - 2014 Application Security, Inc.\n *\n * All rights reserved. This program and the accompanying materials\n * are...
java
chosen
[ { "from": "system", "value": "Add missing match types: data and pillar_exact\n" }, { "from": "human", "value": "package com.suse.salt.netapi.datatypes.target;\n\n/**\n * Possible values for the tgt_type or expr_form parameter in salt netapi calls.\n */\npublic enum TargetType {\n\n GLOB(\"glo...
java
chosen
[ { "from": "system", "value": "Add sendPacket for world players\n" }, { "from": "human", "value": "package net.hexogendev.hexogen.api.network;\n\nimport net.hexogendev.hexogen.api.Server;\nimport net.hexogendev.hexogen.api.entity.alive.player.Player;\nimport net.hexogendev.hexogen.api.world.Posit...
java
chosen
[ { "from": "system", "value": "Add beforeupdate interface to writer\n" }, { "from": "human", "value": "/** \n * License Agreement for Jaeksoft OpenSearchServer\n *\n * Copyright (C) 2011 Emmanuel Keller / Jaeksoft\n * \n * http://www.open-search-server.com\n * \n * This file is part of Jaeksoft...
java
chosen
[ { "from": "system", "value": "Add custom exception messages for the new exceptions created\n" }, { "from": "human", "value": "/*\n * Copyright 2015 Ryan Gilera.\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...
java
chosen
[ { "from": "system", "value": "Add the default case to the documentation\n" }, { "from": "human", "value": "package com.pedro.fizzbuzz;\n\n/**\n *\n * FizzBuzzMachine it's a little piece of software created to return a String value if some of the next conditions\n * occurs.\n *\n * If the integer...
java
chosen
[ { "from": "system", "value": "Add header storage and manipulation methods.\n" }, { "from": "human", "value": "// Copyright 2014, Kevin Ko <kevin@faveset.com>\n\npackage com.faveset.khttp;\n\nclass HttpRequest {\n public enum Method {\n OPTIONS,\n GET,\n HEAD,\n POS...
java
chosen
[ { "from": "system", "value": "Rename variable button1 to normalButton.\n" }, { "from": "human", "value": "package net.stack3.buttonsample;\n\nimport android.os.Bundle;\nimport android.app.Activity;\nimport android.view.View;\nimport android.view.View.OnClickListener;\nimport android.widget.Butto...
java
chosen
[ { "from": "system", "value": "Add null protection for loan records.\n\nIntermittent issue with null loan records being logged." }, { "from": "human", "value": "package bestcoders.library.services.helpers;\n\nimport java.util.stream.Stream;\n\nimport bestcoders.library.Library;\nimport bestcoders...
java
chosen
[ { "from": "system", "value": "Comment out sphinx test. maven is ignoring eanbled=false\n" }, { "from": "human", "value": "package org.sphinx;\n\nimport org.sphinx.api.ISphinxClient;\nimport org.sphinx.api.SphinxResult;\nimport org.sphinx.pool.PooledSphinxDataSource;\nimport org.testng.annotation...
java
chosen
[ { "from": "system", "value": "Remove NotExecutable check, bad on Windows\n" }, { "from": "human", "value": "package se.vandmo.textchecker.maven;\n\nimport static java.util.Arrays.asList;\n\nimport java.io.File;\nimport java.util.Collection;\n\nimport se.vandmo.textchecker.maven.rules.ConsistentL...
java
chosen
[ { "from": "system", "value": "Sunshine/MainActivity: Add a ListView with dummy data.\n" }, { "from": "human", "value": "package com.seoz.sunshine;\n\nimport android.support.v4.app.Fragment;\nimport android.os.Bundle;\nimport android.view.LayoutInflater;\nimport android.view.View;\nimport android...
java
chosen
[ { "from": "system", "value": "Add a bogus method in otherwise empty test, to prevent build breakage\n" }, { "from": "human", "value": "package com.fasterxml.jackson.databind.node;\n\nimport com.fasterxml.jackson.databind.*;\n\npublic class TestJsonPointer\n extends BaseMapTest\n{\n // !!! ...
java
chosen
[ { "from": "system", "value": "Use APIError over ParseError to display proper errors\n" }, { "from": "human", "value": "package com.infonuascape.osrshelper.tracker.rt;\n\nimport com.infonuascape.osrshelper.tracker.TrackerTimeEnum;\nimport com.infonuascape.osrshelper.utils.exceptions.ParserErrorEx...
java
chosen
[ { "from": "system", "value": "Increase version to 0.6.0 beta.\n" }, { "from": "human", "value": "package ch.ethz.scu.obit.common.version;\n\npublic class VersionInfo {\n\n\t// Program version\n\tpublic static final String version = \"0.5.8\";\n\t\n\t// Version status: \"alpha\", \"beta\", or \"\...
java
chosen
[ { "from": "system", "value": "Use smallint for Firebird if tinyint is requested" }, { "from": "human", "value": "package liquibase.datatype.core;\r\n\r\nimport liquibase.database.Database;\r\nimport liquibase.database.core.DerbyDatabase;\r\nimport liquibase.database.core.MSSQLDatabase;\r\nimport...
java
chosen
[ { "from": "system", "value": "Correct an app name reference in an example test\n\nSaid test may or may not be removed in a future commit - haven't figured that out yet\n" }, { "from": "human", "value": "/*\n * Copyright 2016 Philip Cohn-Cort\n *\n * Licensed under the Apache License, Version 2.0...
java
chosen
[ { "from": "system", "value": "Fix issue with Accept-Language header for certain system languages.\n\nThe proper Locale was not being used when calling String.format(), which\nwas causing the resulting HTTP requests to fail.\n\nBug: T118910\nChange-Id: I09e8c57d92eb969de816ed5025ad17f66aec386c\n" }, { ...
java
chosen
[ { "from": "system", "value": "Add response logging for upload of image\n" }, { "from": "human", "value": "package xyz.igorgee.shapejs;\n\nimport java.io.File;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.util.concurrent.TimeUnit;\n\nimport okhttp3.MediaType;\nimport okh...
java
chosen
[ { "from": "system", "value": "Remove leftover from APIv4 migration\n" }, { "from": "human", "value": "package de.xikolo.models;\n\nimport com.squareup.moshi.Json;\n\nimport de.xikolo.models.base.RealmAdapter;\nimport io.realm.RealmObject;\nimport io.realm.annotations.PrimaryKey;\nimport moe.bana...
java
chosen
[ { "from": "system", "value": "Add comments explaining relative date options\n" }, { "from": "human", "value": "package com.kickstarter.libs;\n\nimport android.os.Parcelable;\nimport android.support.annotation.Nullable;\n\nimport org.joda.time.DateTime;\n\nimport auto.parcel.AutoParcel;\n\n@AutoP...
java
chosen
[ { "from": "system", "value": "Prepend 'veyndan_' tag to each Timber log for easy logcat usage\n" }, { "from": "human", "value": "package com.veyndan.redditclient;\n\nimport android.app.Application;\n\nimport com.squareup.leakcanary.LeakCanary;\nimport com.twitter.sdk.android.Twitter;\nimport com...
java
chosen
[ { "from": "system", "value": "Rewrite handler to work with exceptions instead of returned booleans.\n" }, { "from": "human", "value": "package edu.teco.dnd.module.messages.loadStartBlock;\n\nimport java.util.UUID;\n\nimport edu.teco.dnd.module.ModuleApplicationManager;\nimport edu.teco.dnd.netwo...
java
chosen
[ { "from": "system", "value": "Fix recursion issues with spell points\n" }, { "from": "human", "value": "package com.elmakers.mine.bukkit.economy;\n\nimport org.bukkit.configuration.ConfigurationSection;\n\nimport com.elmakers.mine.bukkit.api.magic.CasterProperties;\nimport com.elmakers.mine.bukk...
java
chosen
[ { "from": "system", "value": "Verify binding of private final fields\n" }, { "from": "human", "value": "package org.javersion.object;\n\nimport static org.assertj.core.api.Assertions.*;\n\nimport java.time.Instant;\nimport java.time.LocalDate;\nimport java.time.LocalDateTime;\n\nimport org.junit...
java
chosen
[ { "from": "system", "value": "Add more unit tests for EncryptionListener\n" }, { "from": "human", "value": "package io.smsc.listeners;\n\nimport org.junit.Before;\nimport org.junit.Test;\nimport org.junit.runner.RunWith;\nimport org.mockito.Mock;\nimport org.mockito.runners.MockitoJUnitRunner;\n...
java
chosen
[ { "from": "system", "value": "Remove another reference to kitkat\n" }, { "from": "human", "value": "package com.kickstarter.ui.views;\n\nimport android.content.Context;\nimport android.util.AttributeSet;\nimport android.webkit.WebChromeClient;\nimport android.webkit.WebView;\n\nimport com.kickst...
java
chosen
[ { "from": "system", "value": "Add JavaDoc for deprecated methods\n" }, { "from": "human", "value": "package com.suse.salt.netapi.datatypes.target;\n\n/**\n * Matcher based on salt grains\n */\npublic class Grains extends DictionaryTarget implements Target<String> {\n\n /**\n * Creates a g...
java
chosen
[ { "from": "system", "value": "Fix casting issue and document event bus\n" }, { "from": "human", "value": "package io.github.phantamanta44.shlgl.event;\n\nimport java.util.HashMap;\nimport java.util.Map;\n\n/**\n * Handles the dispatching of events to individual {@link EventStream}s.\n * @author ...
java
chosen
[ { "from": "system", "value": "Add static method to set TimestampingAuthorityFactory\n" }, { "from": "human", "value": "package org.cryptonit.cloud.timestamping;\n\nimport javax.ws.rs.Path;\n\n/**\n * @author Mathias Brossard\n */\n@Path(\"/timestamp\")\npublic class Application {\n\n}\n" }, ...
java
chosen
[ { "from": "system", "value": "Add PromoteUser flag to Event\n" }, { "from": "human", "value": "/*\n * To change this license header, choose License Headers in Project Properties.\n * To change this template file, choose Tools | Templates\n * and open the template in the editor.\n */\npackage com...
java
chosen
[ { "from": "system", "value": "Use code completion in multiple places and compatibility with PyCharm, RubyMine, PhpStorm\n" }, { "from": "human", "value": "package biz.paluch.atsoundtrack;\n\nimport org.jetbrains.annotations.NotNull;\n\nimport com.intellij.codeInsight.completion.CompletionContrib...
java
chosen
[ { "from": "system", "value": "Print BFS Search when you do a BFS Search\n" }, { "from": "human", "value": "//\n// Copyright (C) 2006 United States Government as represented by the\n// Administrator of the National Aeronautics and Space Administration\n// (NASA). All Rights Reserved.\n// \n// Th...
java
chosen
[ { "from": "system", "value": "Change copyright in Apache 2 license to 2013\n" }, { "from": "human", "value": "/**\n * Copyright © 2011-2012 EMBL - European Bioinformatics Institute\n * \n * Licensed under the Apache License, Version 2.0 (the \"License\"); \n * you may not use this file except in...
java
chosen
[ { "from": "system", "value": "Fix cardboard items being unrepairable\n" }, { "from": "human", "value": "package net.mcft.copy.betterstorage.item.cardboard;\n\nimport net.mcft.copy.betterstorage.content.Items;\nimport net.mcft.copy.betterstorage.item.ItemBetterStorage;\nimport net.minecraft.item....
java
chosen
[ { "from": "system", "value": "Remove erroneous @PublicApi on com.yahoo.restapi" }, { "from": "human", "value": "// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\n@ExportPackage\n@PublicApi\npackage com.yahoo.restapi;\n\nimport...
java
chosen
[ { "from": "system", "value": "Use new class-token free streamer registration.\n" }, { "from": "human", "value": "//\n// $Id$\n//\n// Nexus GWTIO - I/O and network services for Nexus built on GWT and WebSockets\n// http://github.com/samskivert/nexus/blob/master/LICENSE\n\npackage com.samskivert.n...
java
chosen
[ { "from": "system", "value": "Add builders for nested classes\n" }, { "from": "human", "value": "package com.kickstarter.services.apiresponses;\n\nimport android.os.Parcelable;\n\nimport com.kickstarter.libs.qualifiers.AutoGson;\nimport com.kickstarter.models.Project;\n\nimport java.util.List;\n...
java
chosen
[ { "from": "system", "value": "Make multiton creation thread safe and fix some code style.\n" }, { "from": "human", "value": "/**\n * @license\n * Copyright 2017 The FOAM Authors. All Rights Reserved.\n * http://www.apache.org/licenses/LICENSE-2.0\n */\n\npackage foam.core;\n\nimport java.util.Ma...
java
chosen
[ { "from": "system", "value": "Sort the games alphabetically in the listing.\n\n" }, { "from": "human", "value": "//\n// $Id$\n\npackage com.threerings.gardens.logic;\n\nimport com.samskivert.servlet.user.User;\nimport com.samskivert.servlet.util.ParameterUtil;\nimport com.samskivert.velocity.Inv...
java
chosen
[ { "from": "system", "value": "Write test case skeleton with mockito and junit\n" }, { "from": "human", "value": "package com.github.cosmo0920.fluentd.flume.plugins;\n\nimport java.nio.charset.StandardCharsets;\n\nimport org.apache.flume.Sink.Status;\nimport org.apache.flume.Channel;\nimport org....
java
chosen
[ { "from": "system", "value": "Add sentence alternative counter in list\n" }, { "from": "human", "value": "package info.puzz.a10000sentences.models;\n\nimport com.activeandroid.Model;\nimport com.activeandroid.annotation.Column;\nimport com.activeandroid.annotation.Table;\n\nimport lombok.Data;\n...
java
chosen
[ { "from": "system", "value": "Fix CondtionalIngredientFactory parsing of fail ingredient.\n" }, { "from": "human", "value": "package codechicken.lib.recipe;\n\nimport com.google.gson.JsonObject;\nimport net.minecraft.item.crafting.Ingredient;\nimport net.minecraft.util.JsonUtils;\nimport net.min...
java
chosen
[ { "from": "system", "value": "Use getMapAsync, original file was renamed\n" }, { "from": "human", "value": "package com.mapzen.android.sample;\n\nimport com.mapzen.android.MapFragment;\nimport com.mapzen.android.MapManager;\nimport com.mapzen.tangram.MapController;\n\nimport android.os.Bundle;\n...
java
chosen
[ { "from": "system", "value": "Add new lines here because they are added by some editors(vim for\nexample)\n" }, { "from": "human", "value": "package com.nikolavp.approval.reporters;\n\nimport com.nikolavp.approval.Approval;\nimport org.junit.Assume;\nimport org.junit.Test;\n\nimport java.awt.*;\...
java
chosen
[ { "from": "system", "value": "Comment out method that put extra string into error message\n" }, { "from": "human", "value": "package com.projectning.service.exceptions;\n\nimport com.projectning.util.ErrorMessage;\n\n@SuppressWarnings(\"serial\")\npublic class NotFoundException extends SdkExcept...
java
chosen
[ { "from": "system", "value": "Add fixed vision tracking point constants to the fixed point command.\n\nThese constants make it possible to centralize the coordinates used\nfor fixed point vision tracking.\n" }, { "from": "human", "value": "package com.edinarobotics.zed.commands;\n\npublic class ...
java
chosen
[ { "from": "system", "value": "Add a \"FIXME\" comment for the disabled test so it shows up as a note in Eclipse (this idea was suggested awhile ago by brozow).\n" }, { "from": "human", "value": "package org.opennms.netmgt.vulnscand;\n\nimport junit.framework.TestCase;\n\nimport org.opennms.core....
java
chosen
[ { "from": "system", "value": "Enable scheduling Completables, not just AnimationCompletables\n" }, { "from": "human", "value": "package com.pspdfkit.vangogh.api;\n\nimport com.pspdfkit.vangogh.rx.AnimationCompletable;\nimport io.reactivex.Completable;\n\n/**\n * Class containing convenient anima...
java
chosen
[ { "from": "system", "value": "Remove method that was removed from interface\n\nSee https://github.com/facebook/react-native/commit/ce6fb337a146e6f261f2afb564aa19363774a7a8#diff-63e621165603dc1a84832d6c400fae31\n" }, { "from": "human", "value": "package com.smooch.rnsmooch;\n\nimport com.facebook...
java
chosen
[ { "from": "system", "value": "messages: Add better Java test for time conversion\n" }, { "from": "human", "value": "package io.cucumber.messages;\n\nimport org.junit.Test;\n\nimport java.time.Duration;\nimport java.time.Instant;\nimport java.time.temporal.TemporalUnit;\n\nimport static io.cucumb...
java
chosen
[ { "from": "system", "value": "Fix mistake in ColorModel from ABGR into ARGB\n" }, { "from": "human", "value": "package pl.edu.uj.JImageStream.model;\n\nimport pl.edu.uj.JImageStream.api.ImageStream;\nimport pl.edu.uj.JImageStream.util.Util;\n\nimport javax.imageio.ImageIO;\nimport java.awt.image...
java
chosen
[ { "from": "system", "value": "Add admin user child class\n" }, { "from": "human", "value": "/*\n * Copyright 2015 Ryan Gilera.\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 obtain a copy ...
java
chosen
[ { "from": "system", "value": "Fix buildfailure by ignoring test on travis.\n\nde.aikiit.fotorenamer.gui.ImageDirectorySelectorTest\n\nperformInit(de.aikiit.fotorenamer.gui.ImageDirectorySelectorTest) Time elapsed: 2.873 sec <<< ERROR!\n\njava.awt.HeadlessException:\n\nNo X11 DISPLAY variable was set, but ...
java
chosen
[ { "from": "system", "value": "Change random for inset color\n" }, { "from": "human", "value": "package com.jpardogo.android.listbuddies.models;\n\nimport android.content.Context;\nimport android.graphics.Color;\n\nimport com.jpardogo.android.listbuddies.R;\nimport com.jpardogo.android.listbuddie...
java
chosen
[ { "from": "system", "value": "Verify if the JDK attach mod is installed\n" }, { "from": "human", "value": "package me.yamakaja.runtimetransformer;\n\nimport java.io.File;\nimport java.lang.reflect.Method;\nimport java.net.URL;\nimport java.net.URLClassLoader;\n\n/**\n * Created by Yamakaja on 19...
java
chosen
[ { "from": "system", "value": "Increase max connections to 300 for mariadb\n" }, { "from": "human", "value": "package org.synyx.urlaubsverwaltung;\n\nimport org.springframework.test.context.DynamicPropertyRegistry;\nimport org.springframework.test.context.DynamicPropertySource;\nimport org.testco...
java
chosen
[ { "from": "system", "value": "PROC-592: Add nonnull for fields in the model\n" }, { "from": "human", "value": "package com.indeed.proctor.store;\n\nimport java.util.Objects;\nimport java.util.Set;\n\n/**\n * Details of a single revision\n */\npublic class RevisionDetails {\n private final Rev...
java
chosen
[ { "from": "system", "value": "Add getter for restapi instance\n" }, { "from": "human", "value": "// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\npackage com.yahoo.restapi;\n\nimport com.yahoo.container.jdisc.HttpRequest;\nimport c...
java
chosen
[ { "from": "system", "value": "Fix build again after merge error in Github.\n" }, { "from": "human", "value": "package rocks.nt.apm.jmeter.config.influxdb;\n\n/**\n * Constants (Tag, Field, Measurement) names for the requests measurement.\n * \n * @author Alexander Wert\n *\n */\npublic interface...
java
chosen
[ { "from": "system", "value": "Test that genericName method is overridden.\n" }, { "from": "human", "value": "package com.openxc.measurements;\n\nimport junit.framework.TestCase;\nimport static org.hamcrest.MatcherAssert.assertThat;\nimport static org.hamcrest.Matchers.equalTo;\n\n\npublic class ...
java
chosen
[ { "from": "system", "value": "Fix crash when Arg \"Enter Number\" field is left empty.\n\n" }, { "from": "human", "value": "package eu.f3rog.blade.sample.arg;\n\nimport android.os.Bundle;\nimport android.support.v7.app.AppCompatActivity;\nimport android.widget.EditText;\n\nimport java.util.Rando...
java
chosen
[ { "from": "system", "value": "Support a persistence file in executable JAR console operation.\n" }, { "from": "human", "value": "package com.michelboudreau.alternator;\n\npublic class AlternatorDBServer\n{\n public static void main(final String[] args) throws Exception\n {\n int por...
java
chosen
[ { "from": "system", "value": "Fix URLs in KB service calls" }, { "from": "human", "value": "package jp.ac.nii.prl.mape.controller.service;\n\nimport java.net.URI;\n\nimport org.springframework.stereotype.Service;\nimport org.springframework.web.client.RestTemplate;\n\nimport jp.ac.nii.prl.mape.c...
java
chosen
[ { "from": "system", "value": "Add additional comment about only matching first value\n" }, { "from": "human", "value": "package eu.livotov.labs.android.d3s;\n\nimport androidx.annotation.NonNull;\nimport androidx.annotation.Nullable;\n\nimport java.util.regex.Matcher;\nimport java.util.regex.Pat...
java
chosen
[ { "from": "system", "value": "Update GDAXProductTicker obj name from bitstampTicker to gdaxTicker\n\nLooks to be a copy paste mistake. Updated the name to reference gdax as opposed to bitstamp in this gdax example." }, { "from": "human", "value": "package org.knowm.xchange.examples.gdax;\n\nimpo...
java
chosen
[ { "from": "system", "value": "Check that params can be null\n" }, { "from": "human", "value": "package com.github.arteam.simplejsonrpc.core.domain;\n\nimport com.fasterxml.jackson.annotation.JsonProperty;\nimport com.fasterxml.jackson.databind.JsonNode;\nimport com.fasterxml.jackson.databind.nod...
java
chosen
[ { "from": "system", "value": "Add method to obtain raw comic price\n" }, { "from": "human", "value": "package org.puller;\n\npublic class Comic {\n private final String title;\n private final String price;\n\n public Comic(final String title, final String price) {\n this.title = ...
java
chosen
[ { "from": "system", "value": "Improve reply handler in pointtopoint examples\n" }, { "from": "human", "value": "package io.vertx.example.core.eventbus.pointtopoint;\n\nimport io.vertx.core.AbstractVerticle;\nimport io.vertx.core.eventbus.EventBus;\nimport io.vertx.example.util.Runner;\n\n/*\n * ...
java
chosen
[ { "from": "system", "value": "Correct extends statement; Renderbuffers, not Framebuffers" }, { "from": "human", "value": "package com.io7m.jcanephora;\n\nimport javax.media.opengl.GLContext;\n\nimport org.junit.After;\nimport org.junit.Before;\n\nimport com.io7m.jaux.Constraints.ConstraintError;...
java
chosen
[ { "from": "system", "value": "Make the Future transient so not serialized\n" }, { "from": "human", "value": "package co.phoenixlab.discord.commands.tempstorage;\n\nimport java.time.Duration;\nimport java.time.Instant;\nimport java.util.concurrent.Future;\n\npublic class ServerTimeout {\n\n pr...
java
chosen
[ { "from": "system", "value": "Fix waila rooty dirt life calculation" }, { "from": "human", "value": "package com.ferreusveritas.dynamictrees.compat;\n\nimport java.util.List;\n\nimport com.ferreusveritas.dynamictrees.blocks.BlockRooty;\n\nimport mcp.mobius.waila.api.IWailaConfigHandler;\nimport ...
java
chosen
[ { "from": "system", "value": "Update PullRequest commits to verification preview\n" }, { "from": "human", "value": "package com.alorma.github.sdk.services.pullrequest;\n\nimport com.alorma.github.sdk.bean.dto.response.Commit;\nimport com.alorma.github.sdk.bean.info.IssueInfo;\nimport com.alorma....
java
chosen
[ { "from": "system", "value": "Fix texture not found exceptions in console when using placeholder texture\n" }, { "from": "human", "value": "package codechicken.lib.render;\n\nimport net.minecraft.client.renderer.texture.TextureAtlasSprite;\nimport net.minecraft.client.resources.IResourceManager;...
java
chosen
[ { "from": "system", "value": "Refactor InputBox example: make DbContext local to method" }, { "from": "human", "value": "package de.abas.examples.inputbox;\r\n\r\nimport de.abas.erp.api.gui.InputBox;\r\nimport de.abas.erp.db.DbContext;\r\nimport de.abas.examples.common.AbstractAjoAccess;\r\n\r\n...
java
chosen
[ { "from": "system", "value": "Add additional log message to Player setState\n" }, { "from": "human", "value": "package com.pm.server.player;\n\nimport org.apache.logging.log4j.LogManager;\nimport org.apache.logging.log4j.Logger;\nimport org.springframework.stereotype.Component;\n\nimport com.pm....
java
chosen
[ { "from": "system", "value": "Use portable way to detect DEBUG mode\n" }, { "from": "human", "value": "package net.rdrei.android.wakimail;\n\nimport org.acra.ACRA;\nimport org.acra.annotation.ReportsCrashes;\n\nimport android.app.Application;\nimport android.os.StrictMode;\n\n/**\n * Sets up set...
java
chosen
[ { "from": "system", "value": "Add trailing slash to Tozny API URL.\n\n- Fixes unit tests on JDK 7.\n" }, { "from": "human", "value": "package com.tozny.sdk;\n\nimport com.google.api.client.http.GenericUrl;\nimport com.google.api.client.util.Key;\n\n/**\n * A parent class for Realm and User API u...
java
chosen
[ { "from": "system", "value": "Fix wrong properties type used" }, { "from": "human", "value": "package protocolsupport.protocol.utils.spoofedata;\n\nimport java.lang.reflect.Type;\nimport java.util.Collection;\nimport java.util.function.Function;\n\nimport org.bukkit.Bukkit;\n\nimport com.destroy...
java
chosen
[ { "from": "system", "value": "Use gwtSetup instead of constructor in gwt test\n" }, { "from": "human", "value": "/*\n * Copyright 2013, The gwtquery team.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not\n * use this file except in compliance with the License...
java
chosen
[ { "from": "system", "value": "Fix client IDs for Web/iOS clients.\n\n- Updated the IOS_CLIENT_ID with its new value.\n- Reverted change to WEB_CLIENT_ID (accidently wrote the iOS client ID here in\n commit 891b02f)\n\nChange-Id: Iac3f79c35386ddd93ce5989e0a9cde1b837f6d8c\n" }, { "from": "human", ...
java
chosen