conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "DEBUG should usually be set to true" }, { "from": "human", "value": "package de.danoeh.antennapod;\n\npublic final class AppConfig {\n public final static boolean DEBUG = false;\n}\n" }, { "from": "gpt", "value": "package de.danoeh.antennapod;\n\npubl...
java
chosen
[ { "from": "system", "value": "Make RoutesEntry static incase servlet is instianted for each request.\n" }, { "from": "human", "value": "package org.baswell.routes;\n\nimport javax.servlet.ServletConfig;\nimport javax.servlet.ServletException;\nimport javax.servlet.http.HttpServlet;\nimport javax...
java
chosen
[ { "from": "system", "value": "Use local port for now.\n" }, { "from": "human", "value": "package ca.islandora.sync.routes;\n\nimport org.apache.camel.builder.RouteBuilder;\nimport org.fcrepo.camel.JmsHeaders;\nimport org.fcrepo.camel.RdfNamespaces;\nimport ca.islandora.sync.processors.DrupalNode...
java
chosen
[ { "from": "system", "value": "Change return type of getView() and getPresenter() for Dialogs.\n" }, { "from": "human", "value": "package com.philliphsu.bottomsheetpickers.view.numberpad;\n\nimport com.philliphsu.bottomsheetpickers.view.LocaleModel;\n\npublic class NumberPadTimePickerDialogPresen...
java
chosen
[ { "from": "system", "value": "Swap order of private and final keywords\n" }, { "from": "human", "value": "package com.veyndan.redditclient;\n\nimport com.veyndan.redditclient.api.reddit.network.QueryBuilder;\nimport com.veyndan.redditclient.api.reddit.network.Sort;\n\npublic class SubredditFilte...
java
chosen
[ { "from": "system", "value": "Implement method to check whether service is running.\n" }, { "from": "human", "value": "package com.github.aureliano.achmed.os.service;\n\nimport com.github.aureliano.achmed.command.CommandResponse;\n\npublic class RedHatService extends LinuxService {\n\n\tpublic R...
java
chosen
[ { "from": "system", "value": "Use paths instead of toString\n" }, { "from": "human", "value": "package me.deftware.mixin.mixins.item;\n\nimport me.deftware.client.framework.registry.ItemRegistry;\nimport net.minecraft.item.Item;\nimport net.minecraft.item.Items;\nimport net.minecraft.util.Identi...
java
chosen
[ { "from": "system", "value": "Change to how test suite is built.\n" }, { "from": "human", "value": "package com.spireofbabel.raknet4j;\n\nimport com.spireofbabel.raknet4j.ReplicaManager3.ReplicaManager3Test;\nimport junit.framework.Test;\nimport junit.framework.TestSuite;\n\npublic class AllTest...
java
chosen
[ { "from": "system", "value": "Disable cluster node Integration tests for travis build.\n" }, { "from": "human", "value": "package com.codingchili.core.protocol;\n\nimport io.vertx.core.Vertx;\nimport io.vertx.core.VertxOptions;\nimport io.vertx.ext.unit.Async;\nimport io.vertx.ext.unit.TestConte...
java
chosen
[ { "from": "system", "value": "Update determine association type method\n" }, { "from": "human", "value": "package uk.ac.ebi.spot.goci.service;\n\nimport uk.ac.ebi.spot.goci.model.Association;\nimport uk.ac.ebi.spot.goci.model.ValidationError;\n\nimport java.util.Collection;\n\n/**\n * Created by...
java
chosen
[ { "from": "system", "value": "Add factory for mock responses with entity\n" }, { "from": "human", "value": "package io.github.pyranja.hamcrest.jaxrs;\n\nimport org.mockito.Mockito;\n\nimport javax.ws.rs.core.MediaType;\nimport javax.ws.rs.core.Response;\n\nimport static org.mockito.Mockito.when;...
java
chosen
[ { "from": "system", "value": "Support older apache httpclient libs\n" }, { "from": "human", "value": "package com.akamai.edgegrid.signer.apachehttpclient;\n\n\n\nimport com.akamai.edgegrid.signer.ClientCredential;\nimport com.akamai.edgegrid.signer.ClientCredentialProvider;\nimport com.akamai.ed...
java
chosen
[ { "from": "system", "value": "Fix incorrect bundle name in messages class.\n" }, { "from": "human", "value": "package org.tigris.subversion.subclipse.tools.usage.tracker.internal;\n\nimport org.eclipse.osgi.util.NLS;\n\npublic class TrackerMessages extends NLS {\n\tprivate static final String BU...
java
chosen
[ { "from": "system", "value": "Fix bug in last commit that caused block to not break.\n" }, { "from": "human", "value": "package net.minecraftforge.event.entity.player;\n\nimport net.minecraft.src.Block;\nimport net.minecraft.src.Entity;\nimport net.minecraft.src.EntityPlayer;\nimport net.minecra...
java
chosen
[ { "from": "system", "value": "Fix GraphQl if search is not configured\n" }, { "from": "human", "value": "package com.gentics.mesh.util;\n\nimport com.gentics.mesh.core.rest.MeshEvent;\nimport com.gentics.mesh.etc.config.MeshOptions;\nimport com.gentics.mesh.event.MeshEventSender;\nimport com.gen...
java
chosen
[ { "from": "system", "value": "Exit quickly to avoid side effects" }, { "from": "human", "value": "/*\n * To change this template, choose Tools | Templates\n * and open the template in the editor.\n */\npackage edu.wpi.first.wpilibj.templates.commands;\n\nimport edu.wpi.first.wpilibj.buttons.Joys...
java
chosen
[ { "from": "system", "value": "IFS-5827: Hide button for single applicant\n" }, { "from": "human", "value": "package org.innovateuk.ifs.application.overview.viewmodel;\n\nimport org.innovateuk.ifs.application.viewmodel.AssignButtonsViewModel;\n\nimport java.util.Optional;\n\n/**\n * View model fo...
java
chosen
[ { "from": "system", "value": "Java: Add stream example methods using wildcards.\n" }, { "from": "human", "value": "package p;\n\nimport java.util.function.*;\nimport java.util.Iterator;\nimport java.util.stream.Collector;\n\npublic class Stream<T> {\n\n public Iterator<T> iterator() {\n ...
java
chosen
[ { "from": "system", "value": "Add ability to override the port grizzly server starts on.\n" }, { "from": "human", "value": "package com.fenixinfotech.grizzly.framework.playpen;\n\nimport com.fenixinfotech.web.common.FrameworkServerBase;\nimport org.glassfish.grizzly.http.server.HttpHandler;\nimp...
java
chosen
[ { "from": "system", "value": "Add \"name\" for filter shop tokens\n" }, { "from": "human", "value": "package com.satispay.protocore.dh;\n\nimport com.satispay.protocore.dh.beans.*;\nimport retrofit2.http.*;\nimport rx.Observable;\n\n/**\n * This interface describes the API exposed for the DH net...
java
chosen
[ { "from": "system", "value": "Add a more informative error message when Dockerfile is unavailable during s2i\n" }, { "from": "human", "value": "\npackage io.quarkus.container.image.openshift.deployment;\n\nimport java.io.FileInputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\...
java
chosen
[ { "from": "system", "value": "Add new concrete MultiValuedMap implementation.\n\ngit-svn-id: 53f0c1087cb9b05f99ff63ab1f4d1687a227fef1@1633229 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "human", "value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * cont...
java
chosen
[ { "from": "system", "value": "Add 'SHA256withECDSA' as signature algorithm\n" }, { "from": "human", "value": "// Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\npackage com.yahoo.security;\n\n/**\n * @author bjorncs\n */\npubli...
java
chosen
[ { "from": "system", "value": "Update benchmark for setting fields of this type.\n\ngit-svn-id: ed609ce04ec9e3c0bc25e071e87814dd6d976548@269 c7a0535c-eda6-11de-83d8-6d5adf01d787\n" }, { "from": "human", "value": "/*\n * Mutability Detector\n *\n * Licensed under the Apache License, Version 2.0 (t...
java
chosen
[ { "from": "system", "value": "Remove ontology path from request IRI correctly\n" }, { "from": "human", "value": "package de.linkvt.bachelor.config;\n\nimport de.linkvt.bachelor.web.GeneratorController;\n\nimport org.apache.commons.lang3.StringUtils;\nimport org.springframework.stereotype.Compone...
java
chosen
[ { "from": "system", "value": "Add a description to the extension\n" }, { "from": "human", "value": "package net.sf.openrocket.example;\n\nimport net.sf.openrocket.simulation.SimulationConditions;\nimport net.sf.openrocket.simulation.exception.SimulationException;\nimport net.sf.openrocket.simula...
java
chosen
[ { "from": "system", "value": "Add a method to get the biggest block id\n\nNecessary to set the number of bits per block used in the ChunkSection implementation, and in the ChunkData packet." }, { "from": "human", "value": "package org.mcphoton.impl.block;\n\nimport com.electronwill.utils.IndexMa...
java
chosen
[ { "from": "system", "value": "Add an accessor for easy access to lookups\n" }, { "from": "human", "value": "package com.googlecode.totallylazy.xml;\n\nimport com.googlecode.totallylazy.Callable1;\nimport com.googlecode.totallylazy.Mapper;\nimport com.googlecode.totallylazy.Xml;\nimport org.w3c.d...
java
chosen
[ { "from": "system", "value": "Fix: Add attribute observation in measures table\n" }, { "from": "human", "value": "package sizebay.catalog.client.model;\n\nimport java.util.*;\nimport com.fasterxml.jackson.annotation.JsonValue;\nimport lombok.*;\n\n@Getter\n@Setter\npublic class Modeling {\n \...
java
chosen
[ { "from": "system", "value": "Fix problem with action buttons without killOnRelease not starting again\n" }, { "from": "human", "value": "package org.robockets.buttonmanager.buttons;\n\nimport org.robockets.buttonmanager.Button;\n\nimport edu.wpi.first.wpilibj.command.Command;\n\n/**\n * The bas...
java
chosen
[ { "from": "system", "value": "SimonStewart: Convert the https test that we never run to use junit.\n\ngit-svn-id: aa1aa1384423cb28c2b1e29129bb3a91de1d9196@17194 07704840-8298-11de-bf8c-fd130f914ac9\n" }, { "from": "human", "value": "/*\nCopyright 2012 Selenium committers\nCopyright 2012 Software...
java
chosen
[ { "from": "system", "value": "Add comments about valid length usages.\n" }, { "from": "human", "value": "class ArrayLengthExpressionTest {\n public static void main(String[] args) {\n int i;\n int[] ia;\n long l;\n long[] la;\n boolean b;\n A cA;\n ...
java
chosen
[ { "from": "system", "value": "Comment out game render hooks\n" }, { "from": "human", "value": "package reborncore.mixin.client;\n\nimport net.minecraft.client.render.GameRenderer;\nimport org.spongepowered.asm.mixin.Mixin;\nimport org.spongepowered.asm.mixin.injection.At;\nimport org.spongepower...
java
chosen
[ { "from": "system", "value": "Change response from \"true\" to 204 no content\n" }, { "from": "human", "value": "/**\n * Copyright (C) 2012 Ness Computing, 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 L...
java
chosen
[ { "from": "system", "value": "Fix encoding issue with extended character set\n" }, { "from": "human", "value": "package io.github.jacobmarshall.meloooncensor.lang;\n\nimport io.github.jacobmarshall.meloooncensor.config.Configuration;\n\nimport java.io.IOException;\nimport java.io.InputStream;\ni...
java
chosen
[ { "from": "system", "value": "Load data when displaying results.\n" }, { "from": "human", "value": "\npackage com.uwetrottmann.shopr.ui;\n\nimport android.app.Activity;\nimport android.os.Bundle;\nimport android.view.Menu;\n\nimport com.uwetrottmann.shopr.R;\n\npublic class ResultsActivity exten...
java
chosen
[ { "from": "system", "value": "Add use_eye_location parameter to effects\n" }, { "from": "human", "value": "package com.elmakers.mine.bukkit.api.effect;\n\nimport org.bukkit.Color;\nimport org.bukkit.Effect;\nimport org.bukkit.Location;\nimport org.bukkit.Sound;\nimport org.bukkit.block.Block;\n\...
java
chosen
[ { "from": "system", "value": "Add copyright to the first project java file\n" }, { "from": "human", "value": "package com.github.pedrovgs.sample;\n\nimport android.os.Bundle;\nimport android.support.v7.app.ActionBarActivity;\n\npublic class MainActivity extends ActionBarActivity {\n\n @Override...
java
chosen
[ { "from": "system", "value": "Make GUI Factory class static\n" }, { "from": "human", "value": "package de.errorcraftlp.cryingobsidian.config;\n\nimport java.util.Set;\n\nimport net.minecraft.client.Minecraft;\nimport net.minecraft.client.gui.GuiScreen;\nimport net.minecraftforge.common.config.Co...
java
chosen
[ { "from": "system", "value": "Fix crash at startup due to null player when Minecraft caches tooltips\n" }, { "from": "human", "value": "package squeek.applecore.example;\n\nimport net.minecraft.init.Items;\nimport net.minecraftforge.fml.common.eventhandler.SubscribeEvent;\nimport squeek.applecor...
java
chosen
[ { "from": "system", "value": "Change response object to have private fields\n" }, { "from": "human", "value": "package com.pm.server.response;\n\nimport com.pm.server.datatype.Player;\n\npublic class PlayerNameAndPlayerStateResponse {\n\n\tpublic Player.Name name;\n\n\tpublic Player.State state;...
java
chosen
[ { "from": "system", "value": "Adjust to new endpoint method in connector 1.8\n" }, { "from": "human", "value": "package org.osiam.addons.administration.config;\n\nimport org.osiam.client.OsiamConnector;\nimport org.springframework.beans.factory.annotation.Value;\nimport org.springframework.conte...
java
chosen
[ { "from": "system", "value": "Add test varDecl without value\n" }, { "from": "human", "value": "/*\n * This file is released under terms of BSD license\n * See LICENSE file for more information\n */\n\npackage cx2x.xcodeml.xelement;\n\nimport helper.XmlHelper;\nimport org.junit.Test;\nimport sta...
java
chosen
[ { "from": "system", "value": "Load custom changes from custom classpath\n" }, { "from": "human", "value": "package org.liquibase.grails;\r\n\r\nimport liquibase.FileOpener;\r\n\r\nimport java.io.InputStream;\r\nimport java.io.IOException;\r\nimport java.net.URL;\r\nimport java.util.Enumeration;\...
java
chosen
[ { "from": "system", "value": "Add changes requested in PR.\n" }, { "from": "human", "value": "/*\n * Copyright 2016, TeamDev Ltd. All rights reserved.\n *\n * Redistribution and use in source and/or binary forms, with or without\n * modification, must retain the above copyright notice and the f...
java
chosen
[ { "from": "system", "value": "Update to AceQL HTTP Main 8.0 - new try" }, { "from": "human", "value": "/*\n * This file is part of AceQL HTTP.\n * AceQL HTTP: SQL Over HTTP \n * Copyright (C) 2021, KawanSoft SAS\n * (http://www.kawansoft.com). All rights rese...
java
chosen
[ { "from": "system", "value": "Add method to use client_assertion in UMA 2.0 for authorization" }, { "from": "human", "value": "package org.xdi.oxauth.client.uma;\n\nimport org.xdi.oxauth.model.uma.UmaConstants;\nimport org.xdi.oxauth.model.uma.UmaTokenResponse;\n\nimport javax.ws.rs.*;\n\n/**\n ...
java
chosen
[ { "from": "system", "value": "Fix unit tests for build ant script\n" }, { "from": "human", "value": "package org.xblackcat.sjpu.storage.typemap;\r\n\r\nimport javassist.ClassPool;\r\nimport org.xblackcat.sjpu.storage.UriTypeMap;\r\n\r\n/**\r\n * 25.04.2014 14:52\r\n *\r\n * @author xBlackCat\r\n...
java
chosen
[ { "from": "system", "value": "Remove @Override annotation for Java5 compatibility\n" }, { "from": "human", "value": "/*--------------------------------------------------------------------------\r\n * Copyright 2011 Taro L. Saito\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \...
java
chosen
[ { "from": "system", "value": "Fix NewlineAtEndOfFile in boundary package info\n" }, { "from": "human", "value": "/**\n * Boundary classes which convert API, domain, and persistence entities as they traverse layer boundaries\n */\npackage org.coner.boundary;" }, { "from": "gpt", "val...
java
chosen
[ { "from": "system", "value": "Allow empty properties in Property action.\n" }, { "from": "human", "value": "/*******************************************************************************\n * Copyright 2014 Rafael Garcia Moreno.\n * \n * Licensed under the Apache License, Version 2.0 (the \"Lic...
java
chosen
[ { "from": "system", "value": "Allow normal user create disk offering. picked from Yaoning Li.\n" }, { "from": "human", "value": "package org.zstack.header.configuration;\n\nimport org.zstack.header.identity.rbac.RBACDescription;\n\npublic class RBACInfo implements RBACDescription {\n @Overrid...
java
chosen
[ { "from": "system", "value": "Check that InvalidFractionFormatException remembers text\n" }, { "from": "human", "value": "package se.ericthelin.fractions;\n\nimport org.junit.Test;\n\nimport static org.hamcrest.CoreMatchers.is;\nimport static org.junit.Assert.assertThat;\n\npublic class InvalidF...
java
chosen
[ { "from": "system", "value": "Add unit test 0.1 + 0.2 = 0.3.\n\n" }, { "from": "human", "value": "package com.github.verylargenumber;\n\nimport org.junit.Test;\n\nimport static org.junit.Assert.assertEquals;\nimport static com.github.verylargenumber.VeryLargeNumber.add;\n\npublic class AddUnitTe...
java
chosen
[ { "from": "system", "value": "Add /h2-console to security ADMIN role\n\n- /h2-console was inadvertently shut out when security was added\n" }, { "from": "human", "value": "package io.github.jordao76.quotes.web;\n\nimport static org.springframework.http.HttpMethod.*;\n\nimport org.springframework...
java
chosen
[ { "from": "system", "value": "Clean up test framework configuration\n" }, { "from": "human", "value": "/* Copyright 2014 The Johns Hopkins University Applied Physics Laboratory\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in...
java
chosen
[ { "from": "system", "value": "Change method name from make to apply.\n" }, { "from": "human", "value": "package com.github.aureliano.achmed.resources;\n\nimport com.github.aureliano.achmed.resources.properties.IResourceProperties;\n\npublic interface IResource {\n\n\tpublic abstract void make(IR...
java
chosen
[ { "from": "system", "value": "Fix password character escaping issue\n" }, { "from": "human", "value": "package com.migibert.kheo.core;\n\nimport java.io.IOException;\n\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\n\nimport com.migibert.kheo.client.SshClient;\n\npublic abstract clas...
java
chosen
[ { "from": "system", "value": "Fix addGhost not properly checking for existing id\n" }, { "from": "human", "value": "package com.pm.server.player;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\nimport org.apache.logging.log4j.Logger;\nimport org.apache.logging.log4j.LogManager;\nimport...
java
chosen
[ { "from": "system", "value": "Use multiple args for identifying the entry\n" }, { "from": "human", "value": "package aQute.bnd.service;\n\nimport java.util.*;\n\n/**\n * An interface to allow bnd to provide commands on selected entries. Primary\n * use case is the repository that provides comman...
java
chosen
[ { "from": "system", "value": "Add minio support. Add base URL for image REST access\n" }, { "from": "human", "value": "package org.udg.pds.simpleapp_javaee.util;\n\n\nimport javax.annotation.PostConstruct;\nimport javax.ejb.Singleton;\nimport javax.ejb.Startup;\n\n@Singleton\n@Startup\npublic cl...
java
chosen
[ { "from": "system", "value": "Set subscribe button image based on Subscription in OrgInfo\n" }, { "from": "human", "value": "package edu.deanza.calendar.activities;\n\nimport android.content.Intent;\nimport android.os.Bundle;\nimport android.support.design.widget.FloatingActionButton;\nimport an...
java
chosen
[ { "from": "system", "value": "Allow using consul index from a single response when polling for health\n" }, { "from": "human", "value": "package com.outbrain.ob1k.consul;\n\nimport com.outbrain.ob1k.Service;\nimport com.outbrain.ob1k.concurrent.ComposableFuture;\n\nimport java.util.List;\n\n/**\...
java
chosen
[ { "from": "system", "value": "Add an empty IdSelector utility\n" }, { "from": "human", "value": "package io.jasonsparc.chemistry.util;\n\n/**\n * Created by Jason on 19/08/2016.\n */\n@UtilityClass\npublic final class IdSelectors {\n\n\t// Factories\n\n\t// Utilities\n\n}\n" }, { "from":...
java
chosen
[ { "from": "system", "value": "Remove unnecessary interface getter method\n" }, { "from": "human", "value": "\npackage forager.events;\n\nimport java.io.IOException;\n\nimport galileo.event.Event;\nimport galileo.event.EventTypeMap;\nimport galileo.serialization.SerializationInputStream;\nimport ...
java
chosen
[ { "from": "system", "value": "Fix instrumentation dependency from mandatory -> optional\n" }, { "from": "human", "value": "package gql.ratpack;\n\nimport javax.inject.Inject;\nimport javax.inject.Provider;\n\nimport graphql.GraphQL;\nimport graphql.execution.instrumentation.Instrumentation;\nimp...
java
chosen
[ { "from": "system", "value": "Make the Module set ordered and keep it sorted\n" }, { "from": "human", "value": "package com.demonwav.mcdev.toolwindow;\n\nimport com.demonwav.mcdev.platform.MinecraftModule;\n\nimport com.intellij.openapi.module.Module;\nimport com.intellij.openapi.module.ModuleMa...
java
chosen
[ { "from": "system", "value": "Update PreferenceActivity to keep the state through configuration changes\n" }, { "from": "human", "value": "package com.negusoft.holoaccent.example;\n\nimport android.os.Bundle;\nimport android.preference.PreferenceFragment;\n\nimport com.negusoft.holoaccent.activi...
java
chosen
[ { "from": "system", "value": "Set the version to 0.3.1\n" }, { "from": "human", "value": "/*******************************************************************************\n * Copyright 2012-present Pixate, Inc.\n * \n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you ma...
java
chosen
[ { "from": "system", "value": "Add support for producing/consuming Java nulls in a scope.\n\nSigned-off-by: Jakob Brandsborg Ehmsen <387ed33cc9ebf98b733caa2520baacd616b28aa5@gmail.com>" }, { "from": "human", "value": "package dynamake.commands;\n\nimport java.io.Serializable;\nimport java.util.Ar...
java
chosen
[ { "from": "system", "value": "Change timeout to one hour.\n" }, { "from": "human", "value": "package ru.ifmo.nds.jmh;\n\nimport java.util.concurrent.TimeUnit;\n\nimport org.openjdk.jmh.annotations.*;\n\nimport ru.ifmo.nds.IdCollection;\nimport ru.ifmo.nds.NonDominatedSorting;\nimport ru.ifmo.nds...
java
chosen
[ { "from": "system", "value": "Increase the code black max height\n" }, { "from": "human", "value": "/* \n * Copyright 2016 OpenMarket Ltd\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": "Add extraction of URIs from ACTION_SEND\n" }, { "from": "human", "value": "package com.stackallocated.imageupload;\n\nimport android.app.Activity;\nimport android.content.Intent;\nimport android.os.Bundle;\nimport android.util.Log;\nimport android.widget.Toast;\n\np...
java
chosen
[ { "from": "system", "value": "Rename method sign-> isClockwise, simplify contains method body.\n" }, { "from": "human", "value": "package com.sdsmdg.kd.trianglify.models;\n\n\nimport android.graphics.Point;\n\npublic class Triangle {\n public Point a;\n public Point b;\n public Point c;...
java
chosen
[ { "from": "system", "value": "Add default values for config\n" }, { "from": "human", "value": "package co.phoenixlab.discord;\n\nimport java.util.HashSet;\nimport java.util.Set;\n\npublic class Configuration {\n\n private String email;\n private String password;\n private String command...
java
chosen
[ { "from": "system", "value": "Fix issue with \"password\" grant type, fix map order\n" }, { "from": "human", "value": "package lv.ctco.cukes.oauth;\n\nimport lv.ctco.cukes.core.internal.context.GlobalWorldFacade;\n\nimport java.util.HashMap;\nimport java.util.Map;\n\npublic enum GrantType {\n\n ...
java
chosen
[ { "from": "system", "value": "Allow a user id in the modified file, so we can force-update their wand and notify them\n" }, { "from": "human", "value": "package com.elmakers.mine.bukkit.magic;\n\nimport java.io.File;\n\nimport org.bukkit.Bukkit;\n\npublic class ConfigCheckTask implements Runnabl...
java
chosen
[ { "from": "system", "value": "Add Javadoc for factory methods.\n" }, { "from": "human", "value": "package org.hamcrest.text;\n\nimport java.util.regex.Pattern;\n\nimport org.hamcrest.Description;\nimport org.hamcrest.Factory;\nimport org.hamcrest.Matcher;\nimport org.hamcrest.TypeSafeMatcher;\n\...
java
chosen
[ { "from": "system", "value": "Fix definition of web client builder.\n" }, { "from": "human", "value": "package io.pivotal.web.config;\n\nimport org.springframework.cloud.client.loadbalancer.reactive.LoadBalancerExchangeFilterFunction;\nimport org.springframework.context.annotation.Bean;\nimport ...
java
chosen
[ { "from": "system", "value": "Increase max password size so it works with the default Heroku-generated password of 64 characters\n" }, { "from": "human", "value": "package io.github.jhipster.registry.web.rest.dto;\n\nimport javax.validation.constraints.*;\n\n/**\n * A DTO representing a user's c...
java
chosen
[ { "from": "system", "value": "Update documentation for bulk generate of communication" }, { "from": "human", "value": "package modules.admin.Communication.actions;\n\nimport modules.admin.Communication.CommunicationUtil;\nimport modules.admin.domain.Communication;\nimport modules.admin.domain.Co...
java
chosen
[ { "from": "system", "value": "Fix unit test as this is overwritten by user's local config\n" }, { "from": "human", "value": "package org.sagebionetworks.dashboard.config;\n\nimport static org.junit.Assert.assertEquals;\nimport static org.junit.Assert.assertNotNull;\n\nimport org.junit.Test;\nimp...
java
chosen
[ { "from": "system", "value": "Allow use of Entity for anonymous inner classes within build templates.\n" }, { "from": "human", "value": "package com.punchline.javalib.entities.templates;\n\nimport com.badlogic.gdx.utils.Disposable;\nimport com.punchline.javalib.entities.Entity;\nimport com.punch...
java
chosen
[ { "from": "system", "value": "Add iterative solution to problem31\n" }, { "from": "human", "value": "/*\n * Copyright (C) 2014 Pedro Vicente Gómez Sánchez.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the Licens...
java
chosen
[ { "from": "system", "value": "Allow access to the homepage if authorization is inactive\n" }, { "from": "human", "value": "/*\nApache2 License Notice\nCopyright 2017 Alex Barry\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance wi...
java
chosen
[ { "from": "system", "value": "Fix indentation and remove trailing whitespaces\n" }, { "from": "human", "value": "package <%=packageName%>.web.rest;\n\nimport java.io.IOException;\nimport java.nio.charset.Charset;\n\nimport org.springframework.http.MediaType;\n\nimport com.fasterxml.jackson.annot...
java
chosen
[ { "from": "system", "value": "Enforce unique to column categoryName\n\nOPEN - task 54: Create Category CRUD packages \nhttp://github.com/DevOpsDistilled/OpERP/issues/issue/54" }, { "from": "human", "value": "package devopsdistilled.operp.server.data.entity.items;\n\nimport java.io.Serializable;\...
java
chosen
[ { "from": "system", "value": "Fix to ensure that temp deffered file will be deleted by JVM even if shared streams are improperly closed\n" }, { "from": "human", "value": "package org.subethamail.smtp.server.io;\r\n\r\nimport java.io.File;\r\nimport java.io.IOException;\r\n\r\nimport javax.mail.u...
java
chosen
[ { "from": "system", "value": "Add compare method from com.thaiopensource.relaxng.output.common." }, { "from": "human", "value": "package com.thaiopensource.xml.util;\n\npublic final class Name {\n final private String namespaceUri;\n final private String localName;\n final private int hc;\n ...
java
chosen
[ { "from": "system", "value": "Add missing license header on the new class\n" }, { "from": "human", "value": "package org.torpedoquery.jpa;\n\nimport static org.junit.Assert.assertEquals;\nimport static org.torpedoquery.jpa.Torpedo.from;\nimport static org.torpedoquery.jpa.Torpedo.select;\nimport...
java
chosen
[ { "from": "system", "value": "Remove transition labels on converting PN to STG." }, { "from": "human", "value": "package org.workcraft.plugins.stg.tools;\n\nimport java.util.Map;\n\nimport org.workcraft.dom.math.MathNode;\nimport org.workcraft.gui.graph.tools.DefaultModelConverter;\nimport org.w...
java
chosen
[ { "from": "system", "value": "Make testGlob tolerate unclean target directory\n\nHDFsToolsTest#testGlob no longer relies on JUnit test execution order\nand FileSystem.globStatus(...) return array element order to pass.\n" }, { "from": "human", "value": "package com.thinkaurelius.titan.hadoop.hdf...
java
chosen
[ { "from": "system", "value": "Fix Creative Jetpack Air Time\n" }, { "from": "human", "value": "package ictrobot.gems.magnetic.armor;\n\nimport cpw.mods.fml.relauncher.Side;\nimport cpw.mods.fml.relauncher.SideOnly;\nimport net.minecraft.client.renderer.texture.IconRegister;\nimport net.minecraft...
java
chosen
[ { "from": "system", "value": "Remove IOException from MessagePack signatures\n" }, { "from": "human", "value": "package org.msgpack.jruby;\n\n\nimport java.io.IOException;\n\nimport org.jruby.Ruby;\nimport org.jruby.RubyModule;\nimport org.jruby.RubyClass;\nimport org.jruby.RubyString;\nimport o...
java
chosen
[ { "from": "system", "value": "Revert \"Document the issued events\"\n\nThis reverts commit 34b9a76472d45d3fcf7337a46d8942007d32da28.\n" }, { "from": "human", "value": "/*\n * Copyright 2015 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\...
java
chosen
[ { "from": "system", "value": "Use suggestedType instead of value.getClass()" }, { "from": "human", "value": "package com.github.ferstl.depgraph.graph.style;\n\nimport com.fasterxml.jackson.annotation.JsonTypeInfo.Id;\nimport com.fasterxml.jackson.databind.DatabindContext;\nimport com.fasterxml.j...
java
chosen
[ { "from": "system", "value": "Use ITestResult attributes instead of a LoadingCache\n" }, { "from": "human", "value": "package io.github.mfulton26.ctrl4testng;\n\nimport com.google.common.base.Function;\nimport com.google.common.cache.CacheBuilder;\nimport com.google.common.cache.CacheLoader;\nim...
java
chosen
[ { "from": "system", "value": "Fix the bad packets! Naughty naughty packets!\n" }, { "from": "human", "value": "package net.md_5.bungee.protocol.packet;\n\nimport io.netty.buffer.ByteBuf;\nimport lombok.EqualsAndHashCode;\nimport lombok.Getter;\nimport lombok.ToString;\n\n@Getter\n@ToString\n@Equ...
java
chosen
[ { "from": "system", "value": "Add basic item slots and fluid tanks to the basic fluid inventory te" }, { "from": "human", "value": "package info.u_team.u_team_test.tileentity;\n\nimport info.u_team.u_team_core.tileentity.UTickableTileEntity;\nimport info.u_team.u_team_test.init.TestTileEntityTyp...
java
chosen
[ { "from": "system", "value": "Use Stream instead of StringUtils\n" }, { "from": "human", "value": "package org.kepennar.aproc.complicatebusiness;\n\nimport static java.util.stream.Collectors.toList;\n\nimport java.util.List;\n\nimport javax.inject.Inject;\n\nimport org.kepennar.aproc.tasks.Task;...
java
chosen