conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Change implementation to make a new release\n" }, { "from": "human", "value": "import org.mockito.releasetools.example.SomeApi;\n\n/*\n * This Java source file was generated by the Gradle 'init' task.\n */\npublic class Library implements SomeApi {\n public boole...
java
chosen
[ { "from": "system", "value": "Improve message in version command when it cannot get server version\n" }, { "from": "human", "value": "package io.digdag.cli.client;\n\nimport io.digdag.cli.SystemExitException;\nimport io.digdag.client.DigdagClient;\n\nimport java.util.Map;\n\nimport static io.dig...
java
chosen
[ { "from": "system", "value": "Rename method setSliderManager to setSlider\n" }, { "from": "human", "value": "/**\n Copyright 2017 John Kester (Jack Kester)\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 Y...
java
chosen
[ { "from": "system", "value": "Javadoc: Correct typo and add missing return description\n\ngit-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1776143 13f79535-47bb-0310-9956-ffa450edef68\n\nFormer-commit-id: cd0402100b64b469e5e64c92fc87013f44cb1a3c" }, { "from": "human", "value": "/*\n * L...
java
chosen
[ { "from": "system", "value": "Add method to get dbevent service-queue-name given service-enum\n" }, { "from": "human", "value": "package org.apache.airavata.common.utils;\n\n/**\n * Created by Ajinkya on 3/22/17.\n */\npublic class DBEventManagerConstants {\n\n public static final String DB_E...
java
chosen
[ { "from": "system", "value": "Allow 'Y' and 'N' (upper case) as a response for a yes/no question.\n" }, { "from": "human", "value": "package net.rubygrapefruit.platform.prompts;\n\nclass YesNoListener extends AbstractListener {\n private final boolean defaultValue;\n private Boolean select...
java
chosen
[ { "from": "system", "value": "Use the deferred register now for items (tools and armor do not work\ncurrently)" }, { "from": "human", "value": "package info.u_team.u_team_test.init;\n\nimport info.u_team.u_team_core.item.armor.*;\nimport info.u_team.u_team_core.item.tool.*;\nimport info.u_team.u...
java
chosen
[ { "from": "system", "value": "Allow subscribing multiple clients to uncaught exceptions\n" }, { "from": "human", "value": "package com.bugsnag.android;\n\nimport java.lang.Thread.UncaughtExceptionHandler;\n\nclass ExceptionHandler implements UncaughtExceptionHandler {\n private UncaughtExcept...
java
chosen
[ { "from": "system", "value": "Rename generic names to single letter\n" }, { "from": "human", "value": "<%#\n Copyright 2013-2017 the original author or authors from the JHipster project.\n\n This file is part of the JHipster project, see https://jhipster.github.io/\n for more information.\n\n Li...
java
chosen
[ { "from": "system", "value": "[Java] Disable the printing of env information.\n" }, { "from": "human", "value": "package io.aeron;\n\nimport org.junit.jupiter.api.Test;\n\nclass PrintEnvInfo\n{\n @Test\n void test()\n {\n System.out.println(\"=========================\");\n ...
java
chosen
[ { "from": "system", "value": "Use the right entity object\n" }, { "from": "human", "value": "package org.frustra.featherweight.commands;\n\nimport org.frustra.featherweight.Command;\nimport org.frustra.featherweight.Entity;\n\npublic class TestCommand extends Command {\n\n\tpublic String getName...
java
chosen
[ { "from": "system", "value": "fix(js): Fix messages binding date boxing\n" }, { "from": "human", "value": "package im.actor.core.js.entity;\n\nimport com.google.gwt.core.client.JavaScriptObject;\nimport com.google.gwt.core.client.JsArray;\n\nimport org.timepedia.exporter.client.Export;\nimport o...
java
chosen
[ { "from": "system", "value": "Remove public in interface methods\n" }, { "from": "human", "value": "/**\n * JBoss, Home of Professional Open Source\n * Copyright Red Hat, Inc., and individual contributors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not ...
java
chosen
[ { "from": "system", "value": "Adjust in test, for to cover my last change." }, { "from": "human", "value": "/**\n * LocationFinderImplTest\n *\n * @author ${author}\n * @since 29-May-2016\n */\npackage uk.co.sleonard.unison.input;\n\nimport java.net.URL;\n\nimport org.junit.Assert;\nimport org.j...
java
chosen
[ { "from": "system", "value": "Include simple type in bottom descrption\n" }, { "from": "human", "value": "package io.quarkus.annotation.processor.generate_doc;\n\nimport java.util.List;\n\nclass DescriptiveDocFormatter implements DocFormatter {\n private static final String ENTRY_END = \"\\n\...
java
chosen
[ { "from": "system", "value": "Add Box2D filter flag constants\n" }, { "from": "human", "value": "package com.pqbyte.coherence;\n\npublic final class Constants {\n public static final int WORLD_WIDTH = 160;\n public static final int WORLD_HEIGHT = 90;\n}\n" }, { "from": "gpt", "valu...
java
chosen
[ { "from": "system", "value": "Store last world dimension and compare with current to determine if world changed. If so update the time offset.\n" }, { "from": "human", "value": "package tld.testmod.common.animation;\n\nimport net.minecraft.world.World;\nimport net.minecraftforge.client.model.ani...
java
chosen
[ { "from": "system", "value": "Use constants in processing type\n" }, { "from": "human", "value": "package org.verapdf.gui.tools;\n\n/**\n * @author Evgeniy Muravitskiy\n */\npublic enum ProcessingType {\n\n\tVALIDATING(\"Validation\"),\n\n\tFEATURES(\"Features\"),\n\n\tVALIDATING_AND_FEATURES(\"...
java
chosen
[ { "from": "system", "value": "Add more special characters to the sample project\n" }, { "from": "human", "value": "/*\n * Copyright 2016 Michael Rozumyanskiy\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the Lice...
java
chosen
[ { "from": "system", "value": "Remove unnecessary Handler in splash\n" }, { "from": "human", "value": "package com.github.charmasaur.alpsinsects.ui;\n\nimport android.content.Intent;\nimport android.os.Bundle;\nimport android.os.Handler;\nimport android.support.v7.app.AppCompatActivity;\nimport a...
java
chosen
[ { "from": "system", "value": "Mark Cache class as abstract as it is not intended to be instatiated\n" }, { "from": "human", "value": "package com.ksoichiro.task.constant;\n\npublic class Caches {\n public static final String TASK_COUNT = \"taskCount\";\n}\n" }, { "from": "gpt", "v...
java
chosen
[ { "from": "system", "value": "Add methods for graph algorithms and documentation.\n" }, { "from": "human", "value": "package com.stephenramthun.datastructures;\n\nimport java.util.HashSet;\n\npublic class Vertex<V extends Comparable> implements Comparable {\n V value;\n HashSet<Vertex> edg...
java
chosen
[ { "from": "system", "value": "Fix bug in integer matrix\n" }, { "from": "human", "value": "/*\n * Copyright 2010-2015 Allette Systems (Australia)\n * http://www.allette.com.au\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compli...
java
chosen
[ { "from": "system", "value": "Change occurrence of Person to Task in the string literals and constants\n" }, { "from": "human", "value": "package seedu.address.logic.commands;\n\nimport java.util.Set;\n\n/**\n * Finds and lists all persons in address book whose name contains any of the argument ...
java
chosen
[ { "from": "system", "value": "Revert \"Resolve trailing white spaces\"\n\nThis reverts commit 71880cb672c87ddd0b5c76120a1308ba24253d99.\n" }, { "from": "human", "value": "package savvytodo.model.task;\n\nimport savvytodo.commons.exceptions.IllegalValueException;\n\n/**\n * Represents a Task's pr...
java
chosen
[ { "from": "system", "value": "Add max Memory to statitic collector\n" }, { "from": "human", "value": "package org.csstudio.platform.statistic;\n\nimport org.csstudio.platform.logging.CentralLogger;\n\npublic class BackgroundCollectorThread extends Thread{\n\t\n\tprivate int\ttimeout\t= 0;\n\tpri...
java
chosen
[ { "from": "system", "value": "Fix up webcam texture now that it works" }, { "from": "human", "value": "package com.haxademic.app.haxmapper.textures;\n\nimport processing.opengl.PShader;\nimport processing.video.Capture;\n\nimport com.haxademic.core.app.P;\nimport com.haxademic.core.debug.DebugUt...
java
chosen
[ { "from": "system", "value": "Add underscore to TAG for easier filtering\n" }, { "from": "human", "value": "package com.gmail.alexellingsen.namelesswol.utils;\n\npublic class Common {\n\n public static String INTENT_EXTRA_DEVICE_ID = \"wake_device_id\";\n public static String TAG = \"Namel...
java
chosen
[ { "from": "system", "value": "Refactor to flatten if statements" }, { "from": "human", "value": "package com.nickww.finitefield;\r\n\r\nimport static com.nickww.finitefield.FiniteByteField.*;\r\n\r\nimport java.util.List;\r\n\r\nfinal class XorChecksumVector extends ChecksumVector\r\n{\r\n\t@Ove...
java
chosen
[ { "from": "system", "value": "Allow Authorization header in CORS.\n" }, { "from": "human", "value": "package info.agrueneberg.fhir.filters;\n\nimport java.io.IOException;\nimport javax.servlet.Filter;\nimport javax.servlet.FilterChain;\nimport javax.servlet.FilterConfig;\nimport javax.servlet.Se...
java
chosen
[ { "from": "system", "value": "Add new tenant keys for invoice resources (templates, translations, ..)\n" }, { "from": "human", "value": "/*\n * Copyright 2010-2013 Ning, Inc.\n *\n * Ning licenses this file to you under the Apache License, version 2.0\n * (the \"License\"); you may not use this ...
java
chosen
[ { "from": "system", "value": "Revert \"Work around an issue in vertx where getting remote/client SocketAddress of the request leads to a NPE\"\n" }, { "from": "human", "value": "package io.quarkus.resteasy.runtime.standalone;\n\nimport java.util.Objects;\n\nimport org.jboss.logging.Logger;\n\nim...
java
chosen
[ { "from": "system", "value": "Make console windows not appear in the taskbar.\n" }, { "from": "human", "value": "package org.mcupdater.gui;\n\nimport org.mcupdater.util.MCUpdater;\n\nimport javax.swing.*;\nimport java.awt.*;\nimport java.util.logging.Level;\n\npublic class ConsoleForm {\n\tpriva...
java
chosen
[ { "from": "system", "value": "Update test case to match new AddCommand syntax\n" }, { "from": "human", "value": "package seedu.tache.testutil;\n\nimport seedu.tache.model.tag.UniqueTagList;\nimport seedu.tache.model.task.Name;\nimport seedu.tache.model.task.ReadOnlyTask;\n\n/**\n * A mutable tas...
java
chosen
[ { "from": "system", "value": "Fix for XInclude -- resolving entities with workspace relative path\n" }, { "from": "human", "value": "package org.csstudio.opibuilder.scriptUtil;\n\nimport java.io.File;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.net.URI;\n\nimport org.c...
java
chosen
[ { "from": "system", "value": "Update group name for STUDY_ADMINISTRATOR to match Padmaja's change\n\n" }, { "from": "human", "value": "package edu.northwestern.bioinformatics.studycalendar.utils.accesscontrol;\n\n/**\n * @author Rhett Sutphin\n */\npublic enum StudyCalendarProtectionGroup {\n ...
java
chosen
[ { "from": "system", "value": "Make sure all JPA entities implement equals and hashcode\n" }, { "from": "human", "value": "package ca.intelliware.ihtsdo.mlds.domain;\n\nimport java.sql.Timestamp;\n\nimport javax.persistence.Column;\nimport javax.persistence.DiscriminatorColumn;\nimport javax.pers...
java
chosen
[ { "from": "system", "value": "Fix OS depending unit test failure\n" }, { "from": "human", "value": "package io.toolisticon.annotationprocessortoolkit.tools.generators;\n\nimport io.toolisticon.annotationprocessortoolkit.AbstractAnnotationProcessor;\nimport io.toolisticon.annotationprocessortoolk...
java
chosen
[ { "from": "system", "value": "Support File and Path argument" }, { "from": "human", "value": "/*\n * Copyright 2013-present mklinger GmbH - http://www.mklinger.de\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the...
java
chosen
[ { "from": "system", "value": "Fix a bug of `task.cancel()`, which keeps the task running forever when no exception is thrown\n" }, { "from": "human", "value": "package org.embulk.output.sftp.utils;\n\nimport com.google.common.base.Optional;\nimport org.embulk.spi.Exec;\nimport org.slf4j.Logger;\...
java
chosen
[ { "from": "system", "value": "Remove package, because import is there" }, { "from": "human", "value": "/*\n * (C) Copyright 2013 Uwe Schindler (Generics Policeman) and others.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compli...
java
chosen
[ { "from": "system", "value": "Add config reloading to the reload command.\n" }, { "from": "human", "value": "package com.campmongoose.serversaturday.spigot.command.sscommand;\n\nimport com.campmongoose.serversaturday.common.Reference.Commands;\nimport com.campmongoose.serversaturday.common.Refer...
java
chosen
[ { "from": "system", "value": "feature: Add classes 'Player' and 'Board'\n" }, { "from": "human", "value": "/*\n A game of tic-tac-toe in Java.\n\n Let's move quickly over difficult terrain.\n*/\n\nimport java.io.*;\n\nclass TicTacToeGame {\n public static void main(String[] args) {\n ...
java
chosen
[ { "from": "system", "value": "Fix issue with config wiring\n" }, { "from": "human", "value": "package org.apereo.cas.token.config;\n\nimport org.apereo.cas.configuration.CasConfigurationProperties;\nimport org.springframework.boot.context.properties.EnableConfigurationProperties;\nimport org.spr...
java
chosen
[ { "from": "system", "value": "Add copyright header and URI helper func\n" }, { "from": "human", "value": "package org.yakindu.sct.commons;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\nimport org.eclipse.emf.ecore.EClass;\n\npublic class EMFHelper {\n\tpublic static List<EClass> getA...
java
chosen
[ { "from": "system", "value": "Add 'addSynset' and 'getSynset' method declarations.\n" }, { "from": "human", "value": "package com.github.semres;\n\nimport org.eclipse.rdf4j.repository.Repository;\n\nimport java.lang.reflect.InvocationTargetException;\nimport java.util.ArrayList;\nimport java.uti...
java
chosen
[ { "from": "system", "value": "Remove unused variables and fields\n" }, { "from": "human", "value": "package io.tracee.contextlogger.jaxws.container;\n\nimport io.tracee.Tracee;\nimport io.tracee.TraceeBackend;\nimport io.tracee.TraceeLogger;\nimport io.tracee.jaxws.container.TraceeServerHandler;...
java
chosen
[ { "from": "system", "value": "Fix help topic for `File - New Project` dialog (PY-28831)\n" }, { "from": "human", "value": "/*\n * Copyright 2000-2014 JetBrains s.r.o.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with...
java
chosen
[ { "from": "system", "value": "Make sure we use an accessor rather than a private var for overriding\n" }, { "from": "human", "value": "package ca.uhnresearch.pughlab.tracker.restlets;\n\nimport org.restlet.Context;\nimport org.restlet.Request;\nimport org.restlet.Response;\nimport org.restlet.Re...
java
chosen
[ { "from": "system", "value": "Remove not needed double semicolon\n" }, { "from": "human", "value": "package org.synyx.urlaubsverwaltung.security;\n\nimport org.junit.Before;\nimport org.junit.Test;\nimport org.springframework.test.web.servlet.ResultActions;\nimport org.springframework.test.web.s...
java
chosen
[ { "from": "system", "value": "Tweak some search factors by hand (sorry, ML)\n" }, { "from": "human", "value": "package com.elmakers.mine.bukkit.utility.help;\n\npublic class SearchFactors {\n // HelpTopicMatch\n public static double CONTENT_FACTOR = 1.5;\n public static double TAG_FACTO...
java
chosen
[ { "from": "system", "value": "Add lt and gt method to int object\n" }, { "from": "human", "value": "package org.cafebabepy.runtime.object;\n\nimport org.cafebabepy.runtime.Python;\n\n/**\n * Created by yotchang4s on 2017/06/19.\n */\npublic class PyIntObject extends AbstractPyObjectObject {\n\n ...
java
chosen
[ { "from": "system", "value": "Add another assertion to verify that thread count is incremented by one\n" }, { "from": "human", "value": "package org.webbitserver.netty;\n\nimport java.util.Set;\nimport org.junit.Test;\n\nimport static org.junit.Assert.assertEquals;\n\npublic class NettyWebServer...
java
chosen
[ { "from": "system", "value": "Add missing usage and permissions assignments.\n" }, { "from": "human", "value": "package com.campmongoose.serversaturday.spigot.command.sscommand.submit;\n\nimport com.campmongoose.serversaturday.common.Reference.Commands;\nimport com.campmongoose.serversaturday.co...
java
chosen
[ { "from": "system", "value": "Set h1 to null if no headings are present\n" }, { "from": "human", "value": "package bamboo.task;\n\nimport org.xml.sax.Attributes;\nimport org.xml.sax.SAXException;\nimport org.xml.sax.helpers.DefaultHandler;\n\nimport java.util.regex.Pattern;\n\npublic class Headi...
java
chosen
[ { "from": "system", "value": "Add methods to make main class non-static :)" }, { "from": "human", "value": "\npublic class DatabaseApp {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\n\t}\n\n}\n" }, { "from": "gpt", "value": "\npublic class D...
java
chosen
[ { "from": "system", "value": "Fix bean getter/setter type mismatch\n\nMismatch was causing failures on Travis CI because the getter and setter types did not match:\n\n Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'noUserSelectionAction' defined in URL ...
java
chosen
[ { "from": "system", "value": "Add constant fo result block title\n" }, { "from": "human", "value": "package com.codenvy.ide.ext.datasource.client.sqllauncher;\n\nimport com.google.gwt.i18n.client.LocalizableResource.DefaultLocale;\nimport com.google.gwt.i18n.client.Messages;\n\n@DefaultLocale(\"...
java
chosen
[ { "from": "system", "value": "Set block to air after picking up fluids" }, { "from": "human", "value": "package mariculture.core.handlers;\n\nimport mariculture.core.Core;\nimport mariculture.core.blocks.base.BlockFluid;\nimport mariculture.core.items.ItemBuckets;\nimport net.minecraft.block.Blo...
java
chosen
[ { "from": "system", "value": "Fix compile error in example\n" }, { "from": "human", "value": "package com.emc.example.client;\n\nimport java.io.DataInputStream;\nimport java.io.IOException;\nimport java.net.Socket;\n\nimport com.emc.example.client.dummy.SensorData;\nimport com.emc.example.client...
java
chosen
[ { "from": "system", "value": "Add License header + svn:eol\n\ngit-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1781739 13f79535-47bb-0310-9956-ffa450edef68\n\nFormer-commit-id: 2c92560095e395108900d859cb353be44605aa5b" }, { "from": "human", "value": "package org.apache.jmeter.visualizer...
java
chosen
[ { "from": "system", "value": "Change a swing container layout to the border layout\n" }, { "from": "human", "value": "package org.panda_lang.pandomium.wrapper;\n\nimport org.cef.browser.CefBrowser;\n\nimport javax.swing.*;\nimport java.awt.*;\n\npublic class PandomiumBrowser {\n\n private fin...
java
chosen
[ { "from": "system", "value": "Revert \"Revert \"Revert \"Revert \"Reorder operator\"\"\"\"\n\nThis reverts commit b24a074dde5c29efee87896bd74183330fea1948.\n" }, { "from": "human", "value": "/*\n * To change this license header, choose License Headers in Project Properties.\n * To change this te...
java
chosen
[ { "from": "system", "value": "Use native menubar when using OS X\n" }, { "from": "human", "value": "package nl.tudelft.dnainator;\n\nimport javax.swing.SwingUtilities;\nimport javax.swing.UIManager;\n\nimport nl.tudelft.dnainator.ui.Window;\n\n/**\n * DNAinator's entry point. This class merely s...
java
chosen
[ { "from": "system", "value": "Fix issue in SdlService constructor in hello_sdl_java_ee sample\n" }, { "from": "human", "value": "package com.smartdevicelink;\n\n/**\n * This is a sample of how to get Java EE Bean to work with an SDL application\n * The code can be uncommented out with the proper...
java
chosen
[ { "from": "system", "value": "Add line to save an entity in test\n" }, { "from": "human", "value": "package servers;\n\nimport com.onyx.application.WebDatabaseServer;\nimport entities.SimpleEntity;\n\n/**\n * Created by timothy.osborn on 4/1/15.\n */\npublic class SampleDatabaseServer extends We...
java
chosen
[ { "from": "system", "value": "Update the Entity when it's Wrapper is updated.\n" }, { "from": "human", "value": "/**\n * \n */\npackage authoring.panel;\n\nimport engine.Entity;\nimport javafx.beans.property.SimpleStringProperty;\n\n/**\n * @author Elliott Bolzan\n *\n */\npublic class EntityWra...
java
chosen
[ { "from": "system", "value": "Reduce to 3 the number of days for the method test." }, { "from": "human", "value": "package cl.fatman.capital.fund;\n\nimport static org.hamcrest.Matchers.*;\n\nimport static org.junit.Assert.*;\nimport org.junit.AfterClass;\nimport org.junit.BeforeClass;\nimport o...
java
chosen
[ { "from": "system", "value": "Fix null pointer exception when user has 0 devices associated with account\n" }, { "from": "human", "value": "package com.google.sps.data;\n\nimport com.google.sps.data.ChromeOSDevice;\nimport java.util.ArrayList;\nimport java.util.List;\n\n/*\n * Class representing...
java
chosen
[ { "from": "system", "value": "Return Empty array when annotations are missing\n" }, { "from": "human", "value": "package nl.dykam.dev.reutil.data;\n\nimport nl.dykam.dev.reutil.data.annotations.ApplicableTo;\nimport nl.dykam.dev.reutil.data.annotations.Defaults;\nimport nl.dykam.dev.reutil.data....
java
chosen
[ { "from": "system", "value": "Add right and bottom of area to JSON output" }, { "from": "human", "value": "package technology.tabula.json;\n\nimport java.lang.reflect.Type;\nimport java.util.List;\n\nimport technology.tabula.RectangularTextContainer;\nimport technology.tabula.Table;\n\nimport c...
java
chosen
[ { "from": "system", "value": "Make this protocol version 0.5" }, { "from": "human", "value": "package ch.tkuhn.nanopub.server;\n\npublic class NanopubServerUtils extends org.nanopub.extra.server.NanopubServerUtils {\n\n\t// Version numbers have the form MAJOR.MINOR (for example, 0.12 is a newer ...
java
chosen
[ { "from": "system", "value": "Make the offered quests field public.\n" }, { "from": "human", "value": "/*\n * Copyright 2016 MovingBlocks\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obt...
java
chosen
[ { "from": "system", "value": "Make result final. Perhaps helps with EA?" }, { "from": "human", "value": "package magic.compiler;\n\nimport magic.lang.Context;\n\n/**\n * Class for a combined context + value result\n * @author Mike\n *\n * @param <T>\n */\npublic class Result<T> {\n\n\tprivate Co...
java
chosen
[ { "from": "system", "value": "Fix tests for Help window\n" }, { "from": "human", "value": "package guitests;\n\nimport guitests.guihandles.HelpWindowHandle;\nimport org.junit.Test;\n\nimport static org.junit.Assert.assertTrue;\n\npublic class HelpWindowTest extends TaskManagerGuiTest {\n/*\n ...
java
chosen
[ { "from": "system", "value": "Refactor the Global hooks file\n" }, { "from": "human", "value": "/**\n * Created with IntelliJ IDEA.\n * User: jhasmanyquiroz\n * Date: 11/25/15\n * Time: 12:12 PM\n * To change this template use File | Settings | File Templates.\n */\npackage steps.hooks;\n\nimpor...
java
chosen
[ { "from": "system", "value": "Change the path of \"/console\" to \"Minter/console\"\n\nDone so that it can be more descriptive of what program is accessing\nthe console.\n" }, { "from": "human", "value": "package com.hida.configuration;\n\nimport org.springframework.context.annotation.ComponentS...
java
chosen
[ { "from": "system", "value": "Use partially synchronized map in Event hasAnnotation cache.\n\nSigned-off-by: Ross Allan <ca2c77e14df1e7ee673215c1ef658354e220f471@gmail.com>\n" }, { "from": "human", "value": "package nallar.patched.forge;\r\n\r\nimport java.util.concurrent.ConcurrentHashMap;\r\n\...
java
chosen
[ { "from": "system", "value": "Add length guard around native SG aligner input." }, { "from": "human", "value": "package abra;\n\nimport abra.SemiGlobalAligner.Result;\n\npublic class NativeSemiGlobalAligner {\n\n\tprivate native String align(String seq1, String seq2, int match, int mismatch, int...
java
chosen
[ { "from": "system", "value": "Modify explosion undo API to work better with PreciousStones\n" }, { "from": "human", "value": "package com.elmakers.mine.bukkit.api.block;\n\nimport java.util.List;\n\nimport com.elmakers.mine.bukkit.api.entity.EntityData;\nimport org.bukkit.Location;\nimport org.b...
java
chosen
[ { "from": "system", "value": "Set default port for Android device.\n" }, { "from": "human", "value": "package com.letscode.lcg;\n\nimport java.util.Random;\n\nimport android.os.Bundle;\n\nimport com.badlogic.gdx.backends.android.AndroidApplication;\nimport com.badlogic.gdx.backends.android.Andro...
java
chosen
[ { "from": "system", "value": "Make ball light blink at 10Hz instead of 5Hz when a ball is at top\n" }, { "from": "human", "value": "/*\n * To change this template, choose Tools | Templates\n * and open the template in the editor.\n */\npackage edu.stuy.commands;\n\nimport edu.wpi.first.wpilibj.T...
java
chosen
[ { "from": "system", "value": "Replace method instead of replacing return value\n\nCloses #1\n" }, { "from": "human", "value": "package io.gavinhungry.xposed.noplaymusicfor;\n\nimport de.robv.android.xposed.XposedBridge;\nimport de.robv.android.xposed.IXposedHookLoadPackage;\nimport de.robv.andro...
java
chosen
[ { "from": "system", "value": "Use logger is method isSorted\n" }, { "from": "human", "value": "package com.alexrnl.commons.utils;\n\nimport java.util.Iterator;\nimport java.util.Objects;\nimport java.util.logging.Logger;\n\n/**\n * Utilities on collections.<br />\n * @author Alex\n */\npublic fi...
java
chosen
[ { "from": "system", "value": "Load RSF should bypass consistency filter\n\nThis commit updates the `ConsistencyFilter` to allow a call to `load-rsf` to bypass it. This is necessary if we need to update the metadata for a register to make it consistent with the environment, as otherwise we are blocked by all...
java
chosen
[ { "from": "system", "value": "Add child layers to layer.\n" }, { "from": "human", "value": "package mil.nga.mapcache.ogc.wms;\n\n/**\n * The layer object within the getCapabilities xml\n */\npublic class Layer {\n\n /**\n * The layer's title.\n */\n private String title;\n\n /**...
java
chosen
[ { "from": "system", "value": "Add methods to get contacts by their subscription status\n" }, { "from": "human", "value": "package ch.hevs.aislab.magpie.debs.retrofit;\n\n\nimport ch.hevs.aislab.magpie.debs.model.MobileClient;\nimport retrofit.http.Body;\nimport retrofit.http.POST;\n\npublic inte...
java
chosen
[ { "from": "system", "value": "Read file batch transfer (I38).\n" }, { "from": "human", "value": "package roart.common.filesystem;\n\nimport java.util.Map;\n\nimport roart.common.inmemory.model.InmemoryMessage;\nimport roart.common.model.FileObject;\n\npublic class FileSystemMessageResult extends...
java
chosen
[ { "from": "system", "value": "Add field for retention policy.\n" }, { "from": "human", "value": "package jannotate.domain;\n\nimport javax.persistence.Entity;\nimport javax.persistence.Id;\n\n@Entity\npublic class Annotation {\n\t@Id\n\tint id;\n\tString name;\n\tString api;\n\tString use;\n\t\n...
java
chosen
[ { "from": "system", "value": "Fix null in admin account\n" }, { "from": "human", "value": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2019 Vladimir\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files...
java
chosen
[ { "from": "system", "value": "Fix equals used in comparable check and null check.\n" }, { "from": "human", "value": "package org.jenkinsci.plugins.p4.scm;\n\nimport jenkins.scm.api.SCMRevision;\nimport org.jenkinsci.plugins.p4.changes.P4Ref;\n\nimport java.util.Objects;\n\npublic class P4Revisio...
java
chosen
[ { "from": "system", "value": "Convert new test to Junit4 style\n" }, { "from": "human", "value": "package org.jfree.chart.axis.junit;\n\nimport junit.framework.Test;\nimport junit.framework.TestCase;\nimport junit.framework.TestSuite;\n\nimport org.jfree.chart.axis.CompassFormat;\n\n/**\n * Test...
java
chosen
[ { "from": "system", "value": "Fix rotation doubles text for free response bug\n" }, { "from": "human", "value": "package org.adaptlab.chpir.android.survey.QuestionFragments;\n\nimport org.adaptlab.chpir.android.survey.QuestionFragment;\nimport org.adaptlab.chpir.android.survey.R;\n\nimport andro...
java
chosen
[ { "from": "system", "value": "Refactor compaction strategy to use snapshot API.\n" }, { "from": "human", "value": "/*\n * Copyright 2014 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 wi...
java
chosen
[ { "from": "system", "value": "Fix checking against null, supposed to be NO_USER\n" }, { "from": "human", "value": "package co.phoenixlab.discord.commands;\n\nimport co.phoenixlab.discord.MessageContext;\nimport co.phoenixlab.discord.api.entities.Channel;\nimport co.phoenixlab.discord.api.entitie...
java
chosen
[ { "from": "system", "value": "Fix missing public decls that were breaking tests\n" }, { "from": "human", "value": "package com.xtremelabs.robolectric.shadows;\n\nimport com.xtremelabs.robolectric.util.Implementation;\nimport com.xtremelabs.robolectric.util.Implements;\n\nimport android.media.Aud...
java
chosen
[ { "from": "system", "value": "Add height modifier to plant render types\n\n" }, { "from": "human", "value": "package com.agricraft.agricore.plant;\n\nimport com.google.gson.annotations.SerializedName;\n\npublic enum AgriRenderType {\n\n @SerializedName(value = \"hash\", alternate = {\"HASH\",...
java
chosen
[ { "from": "system", "value": "Fix wireless transmitter not sending container updates\n" }, { "from": "human", "value": "package refinedstorage.tile;\n\nimport net.minecraft.inventory.Container;\nimport net.minecraft.inventory.IInventory;\nimport net.minecraft.nbt.NBTTagCompound;\nimport refineds...
java
chosen
[ { "from": "system", "value": "Include value of numerical literals in AST dumps.\n" }, { "from": "human", "value": "package polyglot.ext.jl.ast;\n\nimport polyglot.ast.*;\nimport polyglot.types.*;\nimport polyglot.visit.*;\nimport polyglot.util.*;\n\n/**\n * An integer literal: longs, ints, short...
java
chosen
[ { "from": "system", "value": "Disable Edge test (not available in all operating systems in CI)\n" }, { "from": "human", "value": "/*\n * (C) Copyright 2015 Boni Garcia (http://bonigarcia.github.io/)\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use thi...
java
chosen