conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Refactor since & deprecated generation format\n" }, { "from": "human", "value": "{%- if (see is defined and see is not none) or (deprecated is defined and deprecated is not none) or (since is defined and since is not none) %}\n{%- if begin is defined %}\n{{spacing}}...
java
chosen
[ { "from": "system", "value": "Remove bad Javadoc in SCTP classes.\n" }, { "from": "human", "value": "/*\n * Copyright 2011 The Netty Project\n *\n * The Netty Project licenses this file to you under the Apache License,\n * version 2.0 (the \"License\"); you may not use this file except in compli...
java
chosen
[ { "from": "system", "value": "Add more jokes to show and make the returned joke random\n" }, { "from": "human", "value": "package com.jmlb0003.jokes.gradlejokesproject;\n\npublic final class Joker {\n\n private Joker() {\n }\n\n public static String getJoke() {\n return \"This is...
java
chosen
[ { "from": "system", "value": "Make the basicflatmap example be a wordcount example\n" }, { "from": "human", "value": "/**\n * Illustrates a simple flatMap in Java to extract the words\n */\npackage com.oreilly.learningsparkexamples.java;\n\nimport java.util.Arrays;\nimport java.util.List;\n\nimp...
java
chosen
[ { "from": "system", "value": "Fix service date sorting when multiple services / day." }, { "from": "human", "value": "package org.mtransit.parser.mt.data;\n\npublic class MServiceDate implements Comparable<MServiceDate> {\n\n\tpublic String serviceId;\n\tpublic int calendarDate;\n\n\tpublic MSer...
java
chosen
[ { "from": "system", "value": "Move throw statement outside of switch body\n\nThis way static analysis can detect when we're missing a switch case.\n" }, { "from": "human", "value": "package com.fsck.k9.account;\n\n\nimport com.fsck.k9.Account.DeletePolicy;\nimport com.fsck.k9.mail.ConnectionSecu...
java
chosen
[ { "from": "system", "value": "Add new test for all classes\n" }, { "from": "human", "value": "package org.verapdf.model.impl;\n\nimport org.junit.Assert;\nimport org.junit.Test;\nimport org.verapdf.model.ModelHelper;\n\nimport java.net.URISyntaxException;\nimport java.net.URL;\nimport java.nio.f...
java
chosen
[ { "from": "system", "value": "Update pe net server constants" }, { "from": "human", "value": "package protocolsupport.injector.pe;\n\nimport io.netty.channel.Channel;\nimport raknetserver.pipeline.raknet.RakNetPacketConnectionEstablishHandler.PingHandler;\n\npublic class PENetServerConstants {\n...
java
chosen
[ { "from": "system", "value": "Use JUnit QuickCheck in ApiError test\n" }, { "from": "human", "value": "package com.clxcommunications.xms;\n\nimport static org.hamcrest.CoreMatchers.is;\nimport static org.junit.Assert.assertThat;\n\nimport org.apache.commons.lang3.RandomStringUtils;\nimport org.a...
java
chosen
[ { "from": "system", "value": "[LOG4J2-787] Add lookup for JVM arguments. Add missing ctor.\n\ngit-svn-id: de5ce936019686f47409c93bcc5e202a9739563b@1619302 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "human", "value": "package org.apache.logging.log4j.core.lookup;\n\nimport java.lang.man...
java
chosen
[ { "from": "system", "value": "Test grails app with all non-relational services\n" }, { "from": "human", "value": "/*\n * Copyright 2013 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 wit...
java
chosen
[ { "from": "system", "value": "Make stringprep exception extend IOException\n" }, { "from": "human", "value": "/**\n *\n * Copyright © 2014-2015 Florian Schmaus\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the Li...
java
chosen
[ { "from": "system", "value": "Use getDeclaredField to access Unsafe\n\ngetField() only gets public fields :(" }, { "from": "human", "value": "package net.md_5.bungee.event;\n\nimport sun.misc.Unsafe;\n\nimport java.lang.reflect.Field;\n\npublic class UnsafeUtils {\n private UnsafeUtils() {}\n...
java
chosen
[ { "from": "system", "value": "Fix typo in instant replay kepress enum value\n" }, { "from": "human", "value": "package com.jaku.core;\n\npublic enum KeypressKeyValues {\n\tHOME(\"Home\"),\n\tREV(\"Rev\"),\n\tFWD(\"Fwd\"),\n\tPLAY(\"Play\"),\n\tSELECT(\"Select\"),\n\tLEFT(\"Left\"),\n\tRIGHT(\"Ri...
java
chosen
[ { "from": "system", "value": "Call the connect method -of HttpUrlConnection Class- to initiate the connection, catch exceptions, define the package\n" }, { "from": "human", "value": "import java.io.IOException;\nimport java.net.*;\n\npublic class ServerResponse {\n\n\tpublic static void response...
java
chosen
[ { "from": "system", "value": "Change db name to favorite_movies.db\n" }, { "from": "human", "value": "package com.henriquenfaria.popularmovies.data;\n\n\nimport android.content.Context;\nimport android.database.sqlite.SQLiteDatabase;\nimport android.database.sqlite.SQLiteOpenHelper;\n\nimport co...
java
chosen
[ { "from": "system", "value": "Add file link as attribute\n" }, { "from": "human", "value": "package uk.ac.ebi.spot.goci.curation.model;\n\n/**\n * Created by emma on 15/04/2016.\n *\n * @author emma\n * <p>\n * An object to represent details we have about a study file\n */\npubli...
java
chosen
[ { "from": "system", "value": "Stop error messages (from TestPipedRDFIterators) appearing in the console output.\n\ngit-svn-id: bc509ec38c1227b3e85ea1246fda136342965d36@1444626 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "human", "value": "/**\n * Licensed to the Apache Software Foundati...
java
chosen
[ { "from": "system", "value": "Write silly implementation to turn test green.\n" }, { "from": "human", "value": "package cjl_magistri;\n\n/**\n * Created with IntelliJ IDEA.\n * User: larry\n * Date: 6/20/15\n * Time: 5:57 PM\n * To change this template use File | Settings | File Templates.\n */\...
java
chosen
[ { "from": "system", "value": "Add support for truncated grid references" }, { "from": "human", "value": "/******************************************************************\n * File: ValueGeoPoint.java\n * Created by: Dave Reynolds\n * Created on: 1 Dec 2014\n * \n * (c) Copyright 2014,...
java
chosen
[ { "from": "system", "value": "Remove public from MPI test interface\n\ngit-svn-id: 6cb0c57df7a4a7d32342646683f5f1b5f4d88845@2773 9ab3861e-6c05-4e1b-b5ef-99af60850597\n" }, { "from": "human", "value": "package testMPI;\n\nimport integratedtoolkit.types.annotations.Constraints;\nimport integratedt...
java
chosen
[ { "from": "system", "value": "duck: Fix so it actually throws the ducked exception\n\nSigned-off-by: BJ Hargrave <3d26bb3930946e3370762d769a073cece444c2d8@bjhargrave.com>\n" }, { "from": "human", "value": "package aQute.lib.exceptions;\n\npublic class Exceptions {\n\tstatic RuntimeException sing...
java
chosen
[ { "from": "system", "value": "Remove a lot of test output that is useless.\n" }, { "from": "human", "value": "package jpower.core.test;\n\nimport jpower.core.utils.ArrayUtils;\nimport jpower.core.utils.StringUtils;\nimport org.junit.Test;\n\nimport java.util.stream.Stream;\n\nimport static org.j...
java
chosen
[ { "from": "system", "value": "Fix the test dimensions class to register a test dimension for our basic\nmod dimension type" }, { "from": "human", "value": "package info.u_team.u_team_test.init;\n\nimport info.u_team.u_team_test.TestMod;\nimport net.minecraftforge.common.DimensionManager;\nimport...
java
chosen
[ { "from": "system", "value": "Declare add() method in log class as package private\n" }, { "from": "human", "value": "package org.tinylog.core.test;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\nimport org.tinylog.core.Level;\n\n/**\n * Storage for {@link LogEntry LogEntries}.\n */\n...
java
chosen
[ { "from": "system", "value": "Fix comparisons of objects in case insensitive hashmap\n" }, { "from": "human", "value": "package net.md_5.bungee.util;\n\nimport gnu.trove.strategy.HashingStrategy;\n\nclass CaseInsensitiveHashingStrategy implements HashingStrategy\n{\n\n static final CaseInsens...
java
chosen
[ { "from": "system", "value": "Fix up the unit test a bit.\n" }, { "from": "human", "value": "package sample.java.project;\n\nimport junit.framework.TestCase;\n\n/**\n * A sample JUnit test.\n *\n * This test exists as a placeholder for the test unit framework.\n */\npublic class SampleJavaProjec...
java
chosen
[ { "from": "system", "value": "Test sensor JS harvest unit test\n" }, { "from": "human", "value": "package org.n52.sir.harvest;\r\n\r\nimport java.io.File;\r\n\r\nimport org.junit.Test;\r\nimport org.n52.sir.datastructure.SirSensor;\r\n\r\npublic class JSHarvestTest {\r\n\t@Test\r\n\tpublic void ...
java
chosen
[ { "from": "system", "value": "Fix test for loaded package description.\n" }, { "from": "human", "value": "package net.bytebuddy.description.type;\n\npublic class PackageDescriptionForLoadedPackageTest extends AbstractPackageDescriptionTest {\n\n protected PackageDescription describe(Class<?> ...
java
chosen
[ { "from": "system", "value": "[issue-3] Change korean comment to english one\n" }, { "from": "human", "value": "package com.navercorp.utilset.common;\n\nimport java.io.File;\nimport java.io.FileFilter;\nimport java.util.regex.Pattern;\n\nclass ProcessorUtils {\n\t/**\n\thttp://stackoverflow.com/...
java
chosen
[ { "from": "system", "value": "Fix tests that broke with latest change" }, { "from": "human", "value": "package com.hectorlopezfernandez.pebblestripes;\r\n\r\nimport javax.servlet.ServletConfig;\r\n\r\nimport com.mitchellbosecke.pebble.PebbleEngine;\r\nimport com.mitchellbosecke.pebble.loader.Cla...
java
chosen
[ { "from": "system", "value": "ROUT-7: Add new package name after relocation of application runner\n" }, { "from": "human", "value": "import org.springframework.boot.SpringApplication;\nimport org.springframework.boot.autoconfigure.EnableAutoConfiguration;\nimport org.springframework.context.anno...
java
chosen
[ { "from": "system", "value": "Set mode = edit in project activity\n" }, { "from": "human", "value": "package mozilla.org.webmaker.activity;\n\nimport android.view.Menu;\nimport android.view.MenuItem;\n\nimport org.json.JSONException;\n\nimport mozilla.org.webmaker.R;\nimport mozilla.org.webmaker...
java
chosen
[ { "from": "system", "value": "Add logging to see if model is being correctly loaded\n" }, { "from": "human", "value": "package sk.sodik.sample.wro4jBoot;\n\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.util.Properties;\n\nimport org.slf4j.Logger;\nimport org.slf4j.Logger...
java
chosen
[ { "from": "system", "value": "AGF: Add OIS/OOS to constructor and add fields" }, { "from": "human", "value": "package mathsquared.resultswizard2;\n\nimport java.awt.BorderLayout;\n\nimport javax.swing.JFrame;\nimport javax.swing.JPanel;\nimport javax.swing.border.EmptyBorder;\n\n/**\n * Runs the...
java
chosen
[ { "from": "system", "value": "Replace the `sqk-version.txt` with hard coded version.\n" }, { "from": "human", "value": "package com.dropbox.core;\n\nimport com.dropbox.core.util.IOUtil;\nimport com.dropbox.core.util.StringUtil;\n\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimpo...
java
chosen
[ { "from": "system", "value": "Fix farmland blocks being trampled by any entity\n" }, { "from": "human", "value": "package com.ptsmods.morecommands.mixin.compat.compat17.plus;\n\nimport com.ptsmods.morecommands.api.IMoreGameRules;\nimport net.minecraft.block.BlockState;\nimport net.minecraft.bloc...
java
chosen
[ { "from": "system", "value": "Add teacher by id API\n" }, { "from": "human", "value": "package li.l1t.tingo.rest;\n\nimport li.l1t.tingo.model.dto.TeacherDto;\nimport li.l1t.tingo.service.TeacherService;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework....
java
chosen
[ { "from": "system", "value": "Remove unused conditon which cant hold anyway\n" }, { "from": "human", "value": "package name.abuchen.portfolio.util;\n\npublic class Isin\n{\n private static final String CHARACTERS = \"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ\"; //$NON-NLS-1$\n public static fin...
java
chosen
[ { "from": "system", "value": "Fix the test for Type\n" }, { "from": "human", "value": "/*\n * Copyright 2016 Jaakko Hannikainen\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": "Check to make sure the table is loaded\n" }, { "from": "human", "value": "package ca.corefacility.bioinformatics.irida.ria.integration.pages.sequencingRuns;\n\nimport java.util.List;\nimport java.util.stream.Collectors;\n\nimport org.openqa.selenium.By;\nimport org....
java
chosen
[ { "from": "system", "value": "Use log dir from global context instead of hard-coded string.\n" }, { "from": "human", "value": "package bio.terra.cli.command.config.getvalue;\n\nimport bio.terra.cli.context.GlobalContext;\nimport java.util.concurrent.Callable;\nimport org.slf4j.LoggerFactory;\nim...
java
chosen
[ { "from": "system", "value": "Update to turn down logging level of UUID Maven plugin\n" }, { "from": "human", "value": "\npackage info.freelibrary.maven;\n\nimport java.util.UUID;\n\nimport org.apache.maven.plugin.AbstractMojo;\nimport org.apache.maven.plugin.MojoExecutionException;\nimport org....
java
chosen
[ { "from": "system", "value": "Bug-fix: Solve infinite loop causing OutOfMemory or StackOverflow\n\nChange-Id: Ib503a4c513d6edc8418ce60b3dec2c1eaaf7a1f1\n" }, { "from": "human", "value": "package org.kurento.modulecreator.definition;\n\npublic abstract class Type extends NamedElement {\n\n\tprote...
java
chosen
[ { "from": "system", "value": "Throw HTTP error 400 on misformerd URI.\n" }, { "from": "human", "value": "package org.webbitserver.handler;\n\nimport org.webbitserver.HttpControl;\nimport org.webbitserver.HttpHandler;\nimport org.webbitserver.HttpRequest;\nimport org.webbitserver.HttpResponse;\n\...
java
chosen
[ { "from": "system", "value": "Fix vat input also being an output\n" }, { "from": "human", "value": "package xyz.brassgoggledcoders.steamagerevolution.modules.alchemical.multiblocks.vat.tileentities;\n\nimport com.teamacronymcoders.base.multiblock.validation.IMultiblockValidator;\nimport net.mine...
java
chosen
[ { "from": "system", "value": "Switch to the not-ugly native look-and-feel.\n" }, { "from": "human", "value": "package com.nullprogram.chess;\n\nimport com.nullprogram.chess.gui.ChessFrame;\nimport com.nullprogram.chess.boards.StandardBoard;\nimport com.nullprogram.chess.ai.Minimax;\n\n/**\n * Ma...
java
chosen
[ { "from": "system", "value": "Use meaningful name for MockServerConfigurer bean\n\nCloses gh-14512\n" }, { "from": "human", "value": "/*\n * Copyright 2012-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...
java
chosen
[ { "from": "system", "value": "Print out exit code for command line bots\n" }, { "from": "human", "value": "package net.hexid.hexbot.bot.cmd;\n\nimport java.util.ArrayList;\n\npublic abstract class BotCommand implements net.hexid.hexbot.bot.Bot {\n\tprotected ArrayList<String> botArgs;\n\tpublic ...
java
chosen
[ { "from": "system", "value": "Add unit test for config data for rabbitmq.\n" }, { "from": "human", "value": "package rabbit;\n\nimport org.junit.Test;\n\nimport static org.junit.Assert.assertTrue;\n\npublic class RabbitMqConfigTest {\n\n /**\n * Retrieve host.\n */\n @Test\n pub...
java
chosen
[ { "from": "system", "value": "Increase mask size of processed HTML from 0.5Mb to 2Mb\n" }, { "from": "human", "value": "package com.trickl.crawler.protocol.http;\n\nimport org.apache.droids.protocol.http.DroidsHttpClient;\nimport org.apache.http.client.HttpRequestRetryHandler;\n\npublic class Ta...
java
chosen
[ { "from": "system", "value": "Add CDI annotation to allow scan it" }, { "from": "human", "value": "package org.gluu.service.util;\n\nimport java.text.DateFormat;\nimport java.text.SimpleDateFormat;\nimport java.util.Date;\n\nimport javax.ejb.Stateless;\nimport javax.inject.Named;\nimport javax.s...
java
chosen
[ { "from": "system", "value": "Handle unavailable security manager error.\n" }, { "from": "human", "value": "package com.axelor.auth;\n\nimport org.apache.shiro.SecurityUtils;\nimport org.apache.shiro.subject.Subject;\n\nimport com.axelor.auth.db.User;\n\npublic class AuthUtils {\n\t\n\tpublic st...
java
chosen
[ { "from": "system", "value": "Use Lombok for hidden constructor\n" }, { "from": "human", "value": "/*\n * Copyright 2016-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 Lice...
java
chosen
[ { "from": "system", "value": "Synchronize list to avoid race condition\n\nBUG=242327275\nPiperOrigin-RevId: 475630314\nChange-Id: I01ba41cd1d8e998e59adf3746abcc838f0861701\n" }, { "from": "human", "value": "/*\n * Copyright (C) 2019 Google Inc.\n *\n * Licensed under the Apache License, Version ...
java
chosen
[ { "from": "system", "value": "Set username, password and don't set socket timeout\n" }, { "from": "human", "value": "package com.proofpoint.dbpool;\n\nimport com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource;\n\nimport static java.lang.Math.ceil;\nimport static java.util.concurrent.Tim...
java
chosen
[ { "from": "system", "value": "Document using Java 9 because that's what Travis-CI uses.\n" }, { "from": "human", "value": "package edu.pdx.cs410J.grader;\n\nimport jdk.javadoc.doclet.Doclet;\nimport jdk.javadoc.doclet.DocletEnvironment;\nimport jdk.javadoc.doclet.Reporter;\n\nimport javax.lang.m...
java
chosen
[ { "from": "system", "value": "Add WebContentInterceptor in Spring MVC config\n" }, { "from": "human", "value": "package infra.config;\n\nimport org.springframework.context.annotation.Configuration;\nimport org.springframework.web.servlet.config.annotation.EnableWebMvc;\nimport org.springframewor...
java
chosen
[ { "from": "system", "value": "Use FMLClientHandler for consistency's sake, and add missing SideOnly annotation\n" }, { "from": "human", "value": "package info.tehnut.xtones.network;\n\nimport info.tehnut.xtones.client.XtonesClient;\nimport net.minecraft.client.Minecraft;\nimport net.minecraftfor...
java
chosen
[ { "from": "system", "value": "Add additional swagger UI redirects\n\n- cbioportal.org/api/\n- cbioportal.org/api/swagger-ui.html\n" }, { "from": "human", "value": "package org.cbioportal.web;\n\nimport org.springframework.stereotype.Controller;\nimport org.springframework.ui.ModelMap;\nimport or...
java
chosen
[ { "from": "system", "value": "Use imports for services in module information\n" }, { "from": "human", "value": "/*\n * Copyright 2020 Martin Winandy\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with\n * the License. You ...
java
chosen
[ { "from": "system", "value": "Change exception wanted by IntMath test\n" }, { "from": "human", "value": "package ciir.jfoley.chai;\n\nimport org.junit.Test;\n\nimport static org.junit.Assert.assertEquals;\nimport static org.junit.Assert.assertTrue;\nimport static org.junit.Assert.fail;\n\npublic...
java
chosen
[ { "from": "system", "value": "Add back correct lost file" }, { "from": "human", "value": "package seedu.taskman.storage;\n\nimport seedu.taskman.commons.exceptions.IllegalValueException;\nimport seedu.taskman.model.tag.Tag;\n\nimport javax.xml.bind.annotation.XmlValue;\n\n/**\n * JAXB-friendly a...
java
chosen
[ { "from": "system", "value": "Remove Driver after touch test\n" }, { "from": "human", "value": "/*\nCopyright 2012 Selenium committers\nCopyright 2012 Software Freedom Conservancy\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance...
java
chosen
[ { "from": "system", "value": "Remove public from interface method declaration\n" }, { "from": "human", "value": "package com.excelian.mache.events;\n\nimport java.io.Closeable;\nimport java.io.IOException;\nimport javax.jms.JMSException;\n\n/**\n * Type to specify the contract for message queue ...
java
chosen
[ { "from": "system", "value": "Add missing import in unit test file.\n" }, { "from": "human", "value": "package es.tid.ps.mobility.jobs;\n\nimport static org.junit.Assert.assertEquals;\nimport org.junit.Test;\n\nimport es.tid.ps.mobility.data.BaseProtocol.Date;\nimport es.tid.ps.mobility.data.Bas...
java
chosen
[ { "from": "system", "value": "Move to support provided by latest Braincheck\n" }, { "from": "human", "value": "package arez;\n\nimport java.io.File;\nimport javax.annotation.Nonnull;\nimport org.realityforge.braincheck.GuardMessageCollector;\nimport org.testng.ITestContext;\nimport org.testng.IT...
java
chosen
[ { "from": "system", "value": "Add unauthorized exception to CreateAccount api method\n" }, { "from": "human", "value": "package io.github.trevornelson;\n\nimport com.google.api.server.spi.config.Api;\nimport com.google.api.server.spi.config.ApiMethod;\nimport com.google.api.server.spi.config.Api...
java
chosen
[ { "from": "system", "value": "Fix the failure to detect a player that's kicked on join\n" }, { "from": "human", "value": "package com.archivesmc.inter.listeners;\n\nimport com.archivesmc.inter.Plugin;\nimport org.bukkit.event.EventHandler;\nimport org.bukkit.event.EventPriority;\nimport org.bukk...
java
chosen
[ { "from": "system", "value": "Fix current branch being removable\n" }, { "from": "human", "value": "package ee.shy.cli.command.branch;\n\nimport ee.shy.cli.Command;\nimport ee.shy.core.Repository;\n\nimport java.io.IOException;\n\n/**\n * Command for removing branches.\n */\npublic class RemoveC...
java
chosen
[ { "from": "system", "value": "Make stats reading and writing somewhat atomic.\n" }, { "from": "human", "value": "package foodtruck.monitoring;\n\nimport com.google.inject.Inject;\n\nimport org.aopalliance.intercept.MethodInterceptor;\nimport org.aopalliance.intercept.MethodInvocation;\n\nimport ...
java
chosen
[ { "from": "system", "value": "Add tests of semantic analysis of literals\n" }, { "from": "human", "value": "package Test;\n\nimport absyn.Exp;\nimport env.Env;\nimport error.CompilerError;\nimport java_cup.runtime.Symbol;\nimport org.assertj.core.api.JUnitSoftAssertions;\nimport org.junit.Rule;\...
java
chosen
[ { "from": "system", "value": "Add example to clean a broken directory\n" }, { "from": "human", "value": "package peergos.server.tests;\n\nimport org.junit.*;\nimport org.junit.runner.*;\nimport org.junit.runners.*;\nimport peergos.shared.*;\nimport peergos.shared.user.*;\nimport peergos.shared.u...
java
chosen
[ { "from": "system", "value": "Remove cancelled from default status\n" }, { "from": "human", "value": "/*\n * Copyright 2016 Timothy Brooks\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 ob...
java
chosen
[ { "from": "system", "value": "Change format of server header\n" }, { "from": "human", "value": "package au.com.suncorp.helloworld.config;\n\nimport org.springframework.context.annotation.Configuration;\nimport org.springframework.security.config.annotation.web.builders.HttpSecurity;\nimport org....
java
chosen
[ { "from": "system", "value": "Use velocity to bounce players back\n" }, { "from": "human", "value": "package techcable.minecraft.combattag.listeners;\n\nimport org.bukkit.Bukkit;\nimport org.bukkit.event.EventHandler;\nimport org.bukkit.event.Listener;\nimport org.bukkit.event.player.PlayerMoveE...
java
chosen
[ { "from": "system", "value": "Add comments to UI class" }, { "from": "human", "value": "package com.m4gik.presentation;\n\nimport java.util.logging.Logger;\n\nimport javax.servlet.annotation.WebServlet;\n\nimport com.vaadin.annotations.Theme;\nimport com.vaadin.annotations.VaadinServletConfigura...
java
chosen
[ { "from": "system", "value": "Rename and refactor argument tests\n" }, { "from": "human", "value": "package com.hamishrickerby.http_server;\n\nimport junit.framework.TestCase;\n\n/**\n * Created by rickerbh on 15/08/2016.\n */\npublic class AppArgumentsTest extends TestCase {\n public void te...
java
chosen
[ { "from": "system", "value": "Update android src to seralize all metadata\n" }, { "from": "human", "value": "package org.apache.cordova.appsettings;\n\nimport java.util.Locale;\n\nimport android.app.Activity;\n\nimport android.content.pm.ApplicationInfo;\nimport android.content.pm.PackageManager...
java
chosen
[ { "from": "system", "value": "Add note about why we force the media type." }, { "from": "human", "value": "package uk.ac.ox.oucs.vle;\n\nimport java.util.HashMap;\nimport java.util.Map;\n\nimport javax.ws.rs.WebApplicationException;\nimport javax.ws.rs.core.MediaType;\nimport javax.ws.rs.core.Re...
java
chosen
[ { "from": "system", "value": "Change error info when ROM is missing\n" }, { "from": "human", "value": "import vm.VirtualMachine;\n\npublic class Main {\n public static void main(String[] args) {\n if(args.length != 0) {\n VirtualMachine virtualMachine = new VirtualMachine();...
java
chosen
[ { "from": "system", "value": "[179] Rename category image links field\n" }, { "from": "human", "value": "package com.creatubbles.api.model.search;\n\nimport com.creatubbles.api.model.ImageLinks;\nimport com.fasterxml.jackson.annotation.JsonProperty;\n\npublic class SearchCategoryImage {\n @Js...
java
chosen
[ { "from": "system", "value": "Add button to error view\n" }, { "from": "human", "value": "package com.github.neunkasulle.chronocommand.view;\n\nimport com.vaadin.navigator.View;\nimport com.vaadin.navigator.ViewChangeListener;\nimport com.vaadin.ui.Label;\nimport com.vaadin.ui.VerticalLayout;\ni...
java
chosen
[ { "from": "system", "value": "Use StringBuilder instead of StringBuffer\n" }, { "from": "human", "value": "package com.alibaba.fastjson.asm;\n\n/**\n * Created by wenshao on 05/08/2017.\n */\npublic class MethodCollector {\n\n private final int paramCount;\n\n private final int ignoreCount...
java
chosen
[ { "from": "system", "value": "Change the signature of getMessagesHeardBy\n\nThis makes the exercise \"Add a new scenario\" easier, as for those steps\nto work, you need to know the identity of the shouter.\n" }, { "from": "human", "value": "package shouty;\n\nimport java.util.*;\n\npublic class ...
java
chosen
[ { "from": "system", "value": "Add specific handler for ConfigManager exceptions (where logback may not have been initialised)\n" }, { "from": "human", "value": "package org.endeavourhealth.hl7receiver;\n\nimport org.endeavourhealth.hl7receiver.hl7.HL7Service;\nimport org.slf4j.Logger;\nimport or...
java
chosen
[ { "from": "system", "value": "Add new 1.12.2 entity effects to play_entity_effect()\n" }, { "from": "human", "value": "package com.laytonsmith.abstraction.enums;\n\nimport com.laytonsmith.annotations.MEnum;\n\n@MEnum(\"EntityEffect\")\npublic enum MCEntityEffect {\n\tDEATH,\n\tHURT,\n\tSHEEP_EAT...
java
chosen
[ { "from": "system", "value": "Fix attach failing when no workspace is open\n" }, { "from": "human", "value": "package me.coley.recaf.ui.controls;\n\nimport javafx.scene.control.*;\nimport javafx.scene.control.cell.ComboBoxListCell;\nimport javafx.scene.layout.HBox;\nimport me.coley.recaf.control...
java
chosen
[ { "from": "system", "value": "Add constructors and simple getters\n" }, { "from": "human", "value": "package io.sigpipe.sing.stat;\n\npublic class ReservoirSampler {\n}\n" }, { "from": "gpt", "value": "package io.sigpipe.sing.stat;\n\npublic class ReservoirSampler {\n\n private in...
java
chosen
[ { "from": "system", "value": "Return an AsyncProcessor in wrapProcessorInInterceptors to make the Default channel happy\n\ngit-svn-id: 72f01205ed0e830b17124003a563eb3e26365279@243 2ef4527c-bcc6-11de-8784-f7ad4773dbab\n" }, { "from": "human", "value": "/**\n * \n */\npackage camelinaction;\n\nimp...
java
chosen
[ { "from": "system", "value": "Add Box2D walls to map\n" }, { "from": "human", "value": "package com.pqbyte.coherence;\n\nimport com.badlogic.gdx.graphics.Texture;\nimport com.badlogic.gdx.graphics.g2d.Batch;\nimport com.badlogic.gdx.scenes.scene2d.Actor;\n\n/**\n * The map where the game is play...
java
chosen
[ { "from": "system", "value": "Remove IntelliJ generated header comment.\n" }, { "from": "human", "value": "package com.yammer.telemetry.tracing;\n\n/**\n * Created with IntelliJ IDEA.\n * User: rkennedy\n * Date: 8/13/13\n * Time: 10:02 PM\n * To change this template use File | Settings | File T...
java
chosen
[ { "from": "system", "value": "Use varargs for message formatter arguments\n" }, { "from": "human", "value": "/*\n * Copyright 2020 Martin Winandy\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with\n * the License. You may...
java
chosen
[ { "from": "system", "value": "android: Make event naming more flexible\n" }, { "from": "human", "value": "package com.sogilis.ReactNativeBluetooth.events;\n\npublic class EventNames {\n private static final String BASE = EventNames.class.getCanonicalName() + \".EVENT_\";\n\n public static ...
java
chosen
[ { "from": "system", "value": "Remove % character from search results\n" }, { "from": "human", "value": "package edu.cmu.cs.diamond.massfind2;\n\nimport java.awt.Component;\nimport java.awt.image.BufferedImage;\n\nimport javax.swing.BorderFactory;\nimport javax.swing.DefaultListCellRenderer;\nimp...
java
chosen
[ { "from": "system", "value": "Mark ignored test with @Test\n" }, { "from": "human", "value": "package com.hubspot.jinjava;\n\nimport com.hubspot.jinjava.mode.NonRevertingEagerExecutionMode;\nimport org.junit.Before;\nimport org.junit.Ignore;\n\npublic class NonRevertingEagerTest extends EagerTes...
java
chosen
[ { "from": "system", "value": "Add comment of things to do\n" }, { "from": "human", "value": "/*\n * Copyright 2016-2018 Talsma ICT\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 c...
java
chosen
[ { "from": "system", "value": "Make sure tree is properly displayed on missing types" }, { "from": "human", "value": "package com.redhat.ceylon.compiler.model;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class Type extends Model {\n\t\n\tList<Type> typeArguments = new ArrayLi...
java
chosen
[ { "from": "system", "value": "Update problem 55 (still incorrect)\n" }, { "from": "human", "value": "package leetcode;\n\npublic class Problem55 {\n public boolean canJump(int[] nums) {\n for (int i = 0; i < nums.length; i++) {\n }\n return false;\n }\n \n public...
java
chosen
[ { "from": "system", "value": "Fix bug with Jpa error when running all services together (DEV-99)\n" }, { "from": "human", "value": "package sg.ncl.service;\n\nimport org.springframework.boot.SpringApplication;\nimport org.springframework.boot.autoconfigure.SpringBootApplication;\n\n/**\n * @auth...
java
chosen