conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "[Misc] Work around bad design so that our component checker doesn't fail the build\n" }, { "from": "human", "value": "/*\n * See the NOTICE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; y...
java
chosen
[ { "from": "system", "value": "Add Pacman to Player names\n" }, { "from": "human", "value": "package com.pm.server.player;\n\npublic enum PlayerName {\n\n\tBlinky,\n\tInky,\n\tPinky,\n\tClyde\n\n}\n" }, { "from": "gpt", "value": "package com.pm.server.player;\n\npublic enum PlayerName...
java
chosen
[ { "from": "system", "value": "Update test block with new method references" }, { "from": "human", "value": "package info.u_team.u_team_test.init;\n\nimport info.u_team.u_team_core.util.registry.*;\nimport info.u_team.u_team_test.TestMod;\nimport info.u_team.u_team_test.block.*;\nimport net.minec...
java
chosen
[ { "from": "system", "value": "Rename \"long names\" to \"long title\"\n" }, { "from": "human", "value": "package seedu.geekeep.model.task;\n\nimport static org.junit.Assert.assertFalse;\nimport static org.junit.Assert.assertTrue;\n\nimport org.junit.Test;\n\npublic class TitleTest {\n\n @Test...
java
chosen
[ { "from": "system", "value": "Update test that is built directly in test.\n" }, { "from": "human", "value": "// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\n\nimport com.yahoo.jrt.*;\n\npublic class MockupInvoke {\n\n public static voi...
java
chosen
[ { "from": "system", "value": "Use a hint for the suggested text\n" }, { "from": "human", "value": "package com.google.code.quandary;\r\n\r\nimport android.app.Activity;\r\nimport android.content.Intent;\r\nimport android.os.Bundle;\r\nimport android.view.View;\r\nimport android.view.View.OnClick...
java
chosen
[ { "from": "system", "value": "Mark some datamembers as private\n" }, { "from": "human", "value": "package beaform.gui;\n\nimport beaform.entities.Formula;\n\npublic class TreeViewFormula {\n\tFormula form;\n\tString metadata;\n\n\tpublic TreeViewFormula(Formula form, String metadata) {\n\t\tthis...
java
chosen
[ { "from": "system", "value": "Remove stacktrace when adding unknown commands args\n" }, { "from": "human", "value": "package com.tmitim.twittercli;\n\nimport com.github.rvesse.airline.annotations.Cli;\nimport com.github.rvesse.airline.help.Help;\nimport com.tmitim.twittercli.commands.DirectMessa...
java
chosen
[ { "from": "system", "value": "Set thread context class loader in thread factories\n\nCapture thread context class loader during factory creation and\nset this class loader on threads created by the factory\n" }, { "from": "human", "value": "package io.airlift.concurrent;\n\nimport com.google.com...
java
chosen
[ { "from": "system", "value": "Add casino code from master\n" }, { "from": "human", "value": "\npublic class Casino {\n\n}\n" }, { "from": "gpt", "value": "package Engine;\n\n/**\n * User: AnubhawArya\n * Date: 9/13/13\n * Time: 3:21 PM\n */\npublic class Casino {\n\n private int n...
java
chosen
[ { "from": "system", "value": "Use a checked entity instead of an unchecked one\n" }, { "from": "human", "value": "package cgeo.geocaching.connector.trackable;\n\nimport cgeo.geocaching.Trackable;\nimport cgeo.geocaching.connector.UserAction;\n\nimport org.eclipse.jdt.annotation.NonNull;\nimport ...
java
chosen
[ { "from": "system", "value": "Disable integration test on Linux\n\nSee gh-19836\n" }, { "from": "human", "value": "/*\n * Copyright 2012-2020 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 complian...
java
chosen
[ { "from": "system", "value": "Fix XML recipe oredict ingredients not adhering to stacksizes\n" }, { "from": "human", "value": "package org.cyclops.cyclopscore.recipe.xml;\n\nimport net.minecraft.item.crafting.Ingredient;\nimport net.minecraftforge.oredict.OreIngredient;\nimport org.cyclops.cyclo...
java
chosen
[ { "from": "system", "value": "Add back navigation to commit history activity.\n" }, { "from": "human", "value": "package com.gh4a.activities;\n\nimport android.os.Bundle;\nimport android.support.v4.app.FragmentManager;\nimport android.support.v7.app.ActionBar;\n\nimport com.gh4a.BaseActivity;\ni...
java
chosen
[ { "from": "system", "value": "Make methods static where possible\n" }, { "from": "human", "value": "package beaform.entities;\n\nimport org.junit.Test;\n\nimport junit.framework.TestCase;\n\n/**\n * Test for the formula tag.\n * @author Steven Post\n *\n */\npublic class FormulaTagTest extends T...
java
chosen
[ { "from": "system", "value": "Add documentation for SoupBinTCP exception\n" }, { "from": "human", "value": "package org.jvirtanen.nassau.soupbintcp;\n\nimport org.jvirtanen.nassau.ProtocolException;\n\npublic class SoupBinTCPException extends ProtocolException {\n\n public SoupBinTCPException...
java
chosen
[ { "from": "system", "value": "Add deferred register to potions as they crash the game cuz of the\neffects" }, { "from": "human", "value": "package info.u_team.u_team_test.init;\n\nimport info.u_team.u_team_core.util.registry.BaseRegistryUtil;\nimport info.u_team.u_team_test.TestMod;\nimport info...
java
chosen
[ { "from": "system", "value": "Cover `org.gradle.api.execution` with nullability annotations\n" }, { "from": "human", "value": "/*\n * Copyright 2007-2008 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...
java
chosen
[ { "from": "system", "value": "Add Vert.x stule factory method and javadocs" }, { "from": "human", "value": "package tech.greenfield.vertx.irked;\n\nimport io.vertx.core.Handler;\nimport io.vertx.core.Vertx;\nimport io.vertx.core.http.HttpServerRequest;\nimport tech.greenfield.vertx.irked.excepti...
java
chosen
[ { "from": "system", "value": "Hide the fact that we're using a ctor for side effects\n" }, { "from": "human", "value": "package rxbroadcast;\n\nimport nl.jqno.equalsverifier.EqualsVerifier;\nimport org.junit.Test;\n\n@SuppressWarnings({\"checkstyle:MagicNumber\"})\npublic final class VectorTimes...
java
chosen
[ { "from": "system", "value": "Fix assertion in JUnit test.\n" }, { "from": "human", "value": "package com.tal.clienttext.junit;\n\nimport static org.junit.Assert.*;\n\nimport org.junit.After;\nimport org.junit.Before;\nimport org.junit.Test;\n\nimport java.io.IOException;\n\nimport com.tal.socke...
java
chosen
[ { "from": "system", "value": "Make corrections in task 3.3\n" }, { "from": "human", "value": "package ru.job4j.maximum;\n\n/**\n* Max class.\n* @author Yury Chuksin (chuksin.yury@gmail.com)\n* @since 18.01.2017\n*/\npublic class Max {\n\n\t/**\n\t* maxFromTwo method compare two variables and tak...
java
chosen
[ { "from": "system", "value": "Change the usage sentence to be EN" }, { "from": "human", "value": "import org.apache.hadoop.fs.Path;\nimport org.apache.hadoop.io.IntWritable;\nimport org.apache.hadoop.io.Text;\nimport org.apache.hadoop.mapreduce.lib.input.FileInputFormat;\nimport org.apache.hadoo...
java
chosen
[ { "from": "system", "value": "Add collision detection for Obstacle\n" }, { "from": "human", "value": "package com.pqbyte.coherence;\n\n\nimport com.badlogic.gdx.physics.box2d.Contact;\nimport com.badlogic.gdx.physics.box2d.ContactImpulse;\nimport com.badlogic.gdx.physics.box2d.ContactListener;\n...
java
chosen
[ { "from": "system", "value": "Revert accidentally changes test case\n" }, { "from": "human", "value": "package com.maxmind.geoip;\n\n/* CityLookupTest.java */\n\nimport static org.junit.Assert.assertEquals;\n\nimport java.io.IOException;\n\nimport org.junit.Test;\n\npublic class CityLookupIdxTes...
java
chosen
[ { "from": "system", "value": "Remove arguments from createIslands method" }, { "from": "human", "value": "\r\npublic class IslandManager {\r\n\t\r\n\tprivate List<Island> islands;\r\n\t\r\n\tpublic void createIslands(List<Island> islands){\r\n\t\t\r\n\t}\r\n\r\n}\r\n" }, { "from": "gpt",...
java
chosen
[ { "from": "system", "value": "Clear out our body's location when we log off because with the new client\nreference counting thing, we can't rely on a user's object being destroyed\nimmediately after they log off. Better to ensure that their location will\nalways be cleared so that location interested entiti...
java
chosen
[ { "from": "system", "value": "Add trailing slash for INVITE_ENDPOINT\n" }, { "from": "human", "value": "package co.phoenixlab.discord.api;\n\n/**\n * Contains various useful API URLs and paths\n */\npublic class ApiConst {\n\n /**\n * Utility class\n */\n private ApiConst() {\n ...
java
chosen
[ { "from": "system", "value": "Make the broadcast module more versatile.\n" }, { "from": "human", "value": "package com.skcraft.plume.module;\n\nimport com.sk89q.intake.Command;\nimport com.sk89q.intake.Require;\nimport com.sk89q.intake.parametric.annotation.Switch;\nimport com.sk89q.intake.param...
java
chosen
[ { "from": "system", "value": "Add unrate action to rating.\n" }, { "from": "human", "value": "package com.jakewharton.trakt.enumerations;\n\nimport java.util.HashMap;\nimport java.util.Map;\nimport com.jakewharton.trakt.TraktEnumeration;\n\npublic enum Rating implements TraktEnumeration {\n L...
java
chosen
[ { "from": "system", "value": "Enable debug mode in tests.\n" }, { "from": "human", "value": "package com.jakewharton.trakt;\n\nimport junit.framework.TestCase;\n\npublic abstract class BaseTestCase extends TestCase {\n protected static final String API_KEY = \"5abdaea0246b840cb7c709f8e1788fed...
java
chosen
[ { "from": "system", "value": "Change parameter name to prevent mistakes\n" }, { "from": "human", "value": "package openmods.api;\n\nimport net.minecraft.block.Block;\nimport net.minecraft.util.math.BlockPos;\n\npublic interface INeighbourAwareTile {\n\n\tpublic void onNeighbourChanged(BlockPos p...
java
chosen
[ { "from": "system", "value": "Refactor mocked DOB to constants\n" }, { "from": "human", "value": "package com.springapp.batch;\n\nimport com.springapp.batch.bo.BookEntry;\nimport org.joda.time.DateTime;\nimport org.junit.Assert;\nimport org.junit.Test;\nimport org.junit.runner.RunWith;\nimport o...
java
chosen
[ { "from": "system", "value": "Fix test mod for latest mappings\n" }, { "from": "human", "value": "/*\n * Copyright 2016 FabricMC\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 cop...
java
chosen
[ { "from": "system", "value": "Update RF API to fix @API issues" }, { "from": "human", "value": "/**\n * (C) 2014 Team CoFH / CoFH / Cult of the Full Hub\n * http://www.teamcofh.com\n */\n@API(apiVersion = \"1.7.2R1.0.0\", owner = \"CoFHAPI\", provides = \"CoFHAPI|energy\")\npackage cofh.api.ener...
java
chosen
[ { "from": "system", "value": "Update to test phrase checker" }, { "from": "human", "value": "package hk.ust.comp4321.test;\n\nimport java.io.IOException;\n\nimport hk.ust.comp4321.engine.PageRank;\n\npublic class TestPageRank\n{\n public static void main(String[] args) throws IOException\n {\n...
java
chosen
[ { "from": "system", "value": "Add dismissed courses to student entity to persist feedback\n\n" }, { "from": "human", "value": "package at.ac.tuwien.inso.entity;\n\nimport static java.util.Arrays.asList;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\nimport javax.persistence.CascadeTyp...
java
chosen
[ { "from": "system", "value": "Add time to peek command." }, { "from": "human", "value": "package io.arkeus.fatebot.commands.impl;\n\nimport org.jibble.pircbot.Colors;\n\nimport io.arkeus.fatebot.commands.Command;\nimport io.arkeus.fatebot.commands.CommandException;\nimport io.arkeus.fatebot.hand...
java
chosen
[ { "from": "system", "value": "Fix test to reflect current defaults\n" }, { "from": "human", "value": "package arez.integration;\n\nimport arez.annotations.ArezComponent;\nimport arez.annotations.ComponentId;\nimport arez.component.Identifiable;\nimport org.testng.annotations.Test;\nimport static...
java
chosen
[ { "from": "system", "value": "Fix breaking change in RN 47\n\n" }, { "from": "human", "value": "package io.palette;\n\nimport java.util.Arrays;\nimport java.util.Collections;\nimport java.util.List;\n\nimport com.facebook.react.ReactPackage;\nimport com.facebook.react.bridge.JavaScriptModule;\ni...
java
chosen
[ { "from": "system", "value": "Fix permission problems for running scripts via sh binary\n" }, { "from": "human", "value": "package x1125io.initdlight;\n\nimport android.content.BroadcastReceiver;\nimport android.content.Context;\nimport android.content.Intent;\nimport android.util.Log;\n\npublic...
java
chosen
[ { "from": "system", "value": "Improve formatting in failfast test\n" }, { "from": "human", "value": "/*\n * Copyright 2016 Google Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain...
java
chosen
[ { "from": "system", "value": "Add factory method for Checker instance with default set of checks.\n" }, { "from": "human", "value": "package net.sf.clirr.core;\n\nimport net.sf.clirr.core.internal.ClassChangeCheck;\nimport net.sf.clirr.core.Checker;\n\n/**\n * Provides a way for check tests to c...
java
chosen
[ { "from": "system", "value": "Switch to a singleton NOOP. With proper variance, this can be used everywhere.\n\nProper variance is useful in general. When you want to use it, define your\nservice methods thusly:\n\n void detonateBombs (int targetId, Callback<? super String> onResult);\n\nThen you can pass ...
java
chosen
[ { "from": "system", "value": "Use assumption to simplify test." }, { "from": "human", "value": "package com.googlecode.jslint4java.cli;\n\nimport static org.hamcrest.CoreMatchers.*;\nimport static org.junit.Assert.*;\n\nimport java.nio.charset.Charset;\nimport java.nio.charset.UnsupportedCharset...
java
chosen
[ { "from": "system", "value": "Add render and update test\n" }, { "from": "human", "value": "package com.betato.testgame;\n\nimport java.awt.Graphics;\n\nimport com.betato.gamedisplay.Frame;\nimport com.betato.gamedisplay.GameLoop;\nimport com.betato.gamedisplay.GameWindow;\n\npublic class TestGa...
java
chosen
[ { "from": "system", "value": "Fix warning when generating javadoc ; Add class description\n" }, { "from": "human", "value": "package com.boundary.sdk.event;\n\nimport java.io.File;\nimport java.io.FileNotFoundException;\nimport java.io.FileReader;\nimport java.net.URL;\n\nimport org.slf4j.Logger...
java
chosen
[ { "from": "system", "value": "Clarify language to avoid confusing between form accepted charset and form encoding type\n" }, { "from": "human", "value": "package com.vtence.molecule.testing;\n\nimport com.vtence.molecule.helpers.Charsets;\nimport com.vtence.molecule.helpers.Joiner;\n\nimport jav...
java
chosen
[ { "from": "system", "value": "Use ResourceStream instead of NIO File access\n" }, { "from": "human", "value": "package org.utplsql.api;\n\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.InputStreamReader;\nimport java.net.URISyntaxException;\nimport java.nio.charset.Cha...
java
chosen
[ { "from": "system", "value": "Add closing of socket server on app exit\n" }, { "from": "human", "value": "package com.hamishrickerby.http_server;\n\n/**\n * Created by rickerbh on 15/08/2016.\n */\npublic class App {\n public static void main(String[] args) {\n AppArguments arguments =...
java
chosen
[ { "from": "system", "value": "Use simpler test API for performing actions\n" }, { "from": "human", "value": "/*\n * Copyright 2000-2013 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 the License.\...
java
chosen
[ { "from": "system", "value": "Add support for navigating to Twitter profile and external URL\n" }, { "from": "human", "value": "package net.squanchy.navigation;\n\nimport android.content.Context;\nimport android.content.Intent;\n\nimport net.squanchy.eventdetails.EventDetailsActivity;\nimport ne...
java
chosen
[ { "from": "system", "value": "Put new sentence in Javadoc on new line\n" }, { "from": "human", "value": "/*\n * Copyright 2019 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the Lic...
java
chosen
[ { "from": "system", "value": "Write stub test to check that Travis CI runs it.\n" }, { "from": "human", "value": "package access;\n\nimport io.restassured.http.ContentType;\nimport org.testng.annotations.Test;\n\nimport static io.restassured.RestAssured.get;\n\n/**\n * Created by Vladyslav Dovho...
java
chosen
[ { "from": "system", "value": "Add a test case for very large sparse matrix\n" }, { "from": "human", "value": "/*\n * Copyright 2011-2013, by Vladimir Kostyukov and Contributors.\n * \n * This file is part of la4j project (http://la4j.org)\n * \n * Licensed under the Apache License, Version 2.0 (...
java
chosen
[ { "from": "system", "value": "Add unit tests for Raven\n" }, { "from": "human", "value": "package net.kencochrane.raven;\n\nimport net.kencochrane.raven.connection.Connection;\nimport net.kencochrane.raven.event.Event;\nimport org.junit.Before;\nimport org.junit.Test;\nimport org.mockito.Mock;\n...
java
chosen
[ { "from": "system", "value": "Fix problem with a build error.\n\nError with Gradle at task 'licenseMain': \"Missing header in: src\\main\\java\\org\\mcphoton\\impl\\command\\ListCommand.java\"\r\n\r\nIt's a fix." }, { "from": "human", "value": "package org.mcphoton.impl.command;\n\nimport org.mc...
java
chosen
[ { "from": "system", "value": "Add top level element to io exception\n" }, { "from": "human", "value": "package org.realityforge.arez.processor;\n\nimport com.squareup.javapoet.JavaFile;\nimport com.squareup.javapoet.TypeSpec;\nimport java.io.IOException;\nimport java.util.Set;\nimport javax.anno...
java
chosen
[ { "from": "system", "value": "Add counter Static example plus non Static\n" }, { "from": "human", "value": "/**\n * @file Counter.java\n * @author Valery Samovich\n * @version 1\n * @date 2015/01/05\n */\n\npackage com.valerysamovich.java.oop.staticex.counter;\n\npublic class Counter {\n\n No...
java
chosen
[ { "from": "system", "value": "Add license to controller file.\n" }, { "from": "human", "value": "package com.fatwire.gst.foundation.controller;\n\nimport javax.servlet.ServletContext;\n\nimport com.fatwire.assetapi.data.BaseController;\nimport com.fatwire.gst.foundation.controller.action.Injecto...
java
chosen
[ { "from": "system", "value": "Check for the Future interface instead of the custom Promise class\n\nFixes #5\n" }, { "from": "human", "value": "// Copyright © 2011-2015, Esko Luontola <www.orfjackal.net>\n// This software is released under the Apache License 2.0.\n// The license text is at http:...
java
chosen
[ { "from": "system", "value": "Fix Tap constructor, pass start and end time via command line arguments." }, { "from": "human", "value": "\n// this needs to be modified to work with the new java 7 date class\n\npackage tap.sample;\n\nimport tap.*;\nimport quantbench.Candle;\n\npublic class Subscri...
java
chosen
[ { "from": "system", "value": "Make test output show natural sw.\n" }, { "from": "human", "value": "package cz.crcs.ectester.reader.output;\n\nimport cz.crcs.ectester.common.util.CardUtil;\nimport cz.crcs.ectester.reader.response.Response;\n\nimport java.io.PrintStream;\n\n/**\n * @author Jan Jan...
java
chosen
[ { "from": "system", "value": "Write login action for User controller\n" }, { "from": "human", "value": "package Controllers;\r\n\r\nimport java.util.List;\r\n\r\nimport javax.persistence.EntityManager;\r\n\r\nimport flexjson.JSONSerializer;\r\nimport MVC.Controller;\r\n\r\n/**\r\n * @author Alex...
java
chosen
[ { "from": "system", "value": "Rename speed to segmentSpeeds & dwell to dwellTime" }, { "from": "human", "value": "package com.conveyal.taui.models;\n\nimport java.util.List;\n\n/**\n * Created by matthewc on 3/28/16.\n */\npublic class Reroute extends Modification {\n public String name;\n\n ...
java
chosen
[ { "from": "system", "value": "Make colours carry color codes.\n" }, { "from": "human", "value": "package eic.beike.projectx.util;\n\n/**\n * Created by Simon on 2015-10-06.\n */\npublic enum Colour {\n GREEN,\n BLUE,\n RED;\n\n\n public static Colour colour(int val) {\n if (val ==...
java
chosen
[ { "from": "system", "value": "Test commit : remove CR\n" }, { "from": "human", "value": "package com.gettyimages.connectsdk;\n\nimport java.util.Dictionary;\nimport java.util.Hashtable;\nimport java.util.Map;\n\npublic class Download {\n private String MustSpecifyAtLeastOneImageIdMessage = \"...
java
chosen
[ { "from": "system", "value": "Rename DebuggerDef to RubyDebugger for more consistency with core (missed in previous commit)\n\ngit-svn-id: 8850203dacb018657321cab25f9d8751b6efacda@315 81809f3d-796b-46d8-ad85-64d9ccf65f30\n" }, { "from": "human", "value": "import java.io.IOException;\nimport org....
java
chosen
[ { "from": "system", "value": "Change the constraints for dateTime class\n" }, { "from": "human", "value": "package seedu.emeraldo.model.task;\n\n\nimport seedu.emeraldo.commons.exceptions.IllegalValueException;\n\n/**\n * Represents a Task's date and time in Emeraldo.\n * Guarantees: immutable; ...
java
chosen
[ { "from": "system", "value": "Make sock_read return the number of bytes read (value in )\n" }, { "from": "human", "value": "package mars.mips.instructions.syscalls;\nimport mars.util.*;\nimport mars.mips.hardware.*;\nimport mars.simulator.*;\nimport mars.*;\n\nimport java.net.Socket;\nimport jav...
java
chosen
[ { "from": "system", "value": "Replace LDAP enum with DB\n" }, { "from": "human", "value": "/*\n * oxCore is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text.\n *\n * Copyright (c) 2014, Gluu\n */\n\npackage org.gluu.model;\n\nimport java.util.HashMap;\...
java
chosen
[ { "from": "system", "value": "Add an additional property assayStr\n\n\nSVN-Revision: 609\n" }, { "from": "human", "value": "package gov.nih.nci.calab.dto.workflow;\n\npublic class AssayBean {\n\t\n\tprivate String assayId;\n\tprivate String assayName;\n\tprivate String assayType;\n\t\n\tpublic A...
java
chosen
[ { "from": "system", "value": "Remove redundant public from interface constructor\n" }, { "from": "human", "value": "/**\n * Date Modified: $Date: 2010-01-18 10:22:16 +1100 (Mon, 18 Jan 2010) $\n * Version: $Revision: 288 $\n *\n * Copyright 2008 The Australian National University (ANU)\n *\n * L...
java
chosen
[ { "from": "system", "value": "Add License header + svn:eol\n\ngit-svn-id: 5ccfe34f605a6c2f9041ff2965ab60012c62539a@1781739 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "human", "value": "package org.apache.jmeter.visualizers.backend;\n\nimport java.io.Serializable;\n\n/**\n * Identifies ...
java
chosen
[ { "from": "system", "value": "Test triangle commit from console\n" }, { "from": "human", "value": "/**\n * Created with IntelliJ IDEA.\n * User: andrey\n * Date: 2014-03-18\n * Time: 8:53 PM\n * To change this template use File | Settings | File Templates.\n */\npublic class Main {\n\n\n\n ...
java
chosen
[ { "from": "system", "value": "Make domain - alias/account mapping bidirectional cascade remove operations\n" }, { "from": "human", "value": "package com.lyubenblagoev.postfixrest.entity;\n\nimport javax.persistence.Entity;\nimport javax.persistence.Table;\n\n@Entity\n@Table(name=\"domains\")\npu...
java
chosen
[ { "from": "system", "value": "Use constant instead of new instance." }, { "from": "human", "value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information regard...
java
chosen
[ { "from": "system", "value": "Add client IP address to MDC for logging. PL-11395.\n" }, { "from": "human", "value": "package com.amee.restlet;\n\nimport org.restlet.Filter;\nimport org.restlet.data.Request;\nimport org.restlet.data.Response;\n\n/**\n * Filter to manage {@link RequestContext}s. W...
java
chosen
[ { "from": "system", "value": "Allow warning message to accept text formatting codes\n" }, { "from": "human", "value": "package in.twizmwaz.cardinal.util;\n\nimport org.bukkit.ChatColor;\nimport org.bukkit.entity.Player;\n\npublic class ChatUtils {\n\n public static void sendWarningMessage(Pla...
java
chosen
[ { "from": "system", "value": "Extend AbstractArezTest otherwise invariant checking state is not controlled and thus some tests may fail\n" }, { "from": "human", "value": "package org.realityforge.arez;\n\nimport org.testng.annotations.Test;\nimport static org.testng.Assert.*;\n\npublic class Dis...
java
chosen
[ { "from": "system", "value": "Add tests for new node utility methods\n" }, { "from": "human", "value": "package moe.tristan.easyfxml.util;\n\nimport org.junit.Test;\nimport org.testfx.framework.junit.ApplicationTest;\n\nimport javafx.scene.Scene;\nimport javafx.scene.control.Button;\nimport java...
java
chosen
[ { "from": "system", "value": "Enable animateScreenLights only for devices running 4.2+\nanimateScreenLights is needed for CRT effect which is not currently\navailable for 4.1 devices, anyway...\nThis fixes some weird display on/off issues on these devices.\n" }, { "from": "human", "value": "pack...
java
chosen
[ { "from": "system", "value": "Update taxonomyUrl to machine readable XML endpoint\n" }, { "from": "human", "value": "package no.geonorge.nedlasting.data;\n\nimport org.apache.cayenne.Cayenne;\nimport org.apache.cayenne.ObjectContext;\n\nimport no.geonorge.nedlasting.data.auto._Projection;\n\npub...
java
chosen
[ { "from": "system", "value": "Remove additional unused method declaration\n" }, { "from": "human", "value": "/**\n * Copyright 2015 Palantir Technologies\n *\n * Licensed under the BSD-3 License (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may o...
java
chosen
[ { "from": "system", "value": "Package name of configuration changed\n" }, { "from": "human", "value": "/*\n * Copyright 2014 The original 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 License.\n * You...
java
chosen
[ { "from": "system", "value": "Remove 3 - to make it look better with the info from testmod\n" }, { "from": "human", "value": "package info.u_team.u_team_test2;\n\nimport org.apache.logging.log4j.*;\n\nimport info.u_team.u_team_core.util.verify.JarSignVerifier;\nimport net.minecraftforge.fml.comm...
java
chosen
[ { "from": "system", "value": "Add \"hurt\" flag to Bleed effect\n\nSo you can use the effect without the hurt part.\n" }, { "from": "human", "value": "package de.slikey.effectlib.effect;\n\nimport org.bukkit.Effect;\nimport org.bukkit.Location;\nimport org.bukkit.entity.Entity;\n\nimport de.slik...
java
chosen
[ { "from": "system", "value": "Fix binding of stomp endpoints\n" }, { "from": "human", "value": "package no.dusken.momus.config;\n\nimport java.util.List;\nimport no.dusken.momus.mapper.HibernateAwareObjectMapper;\nimport org.springframework.context.annotation.Configuration;\nimport org.springfra...
java
chosen
[ { "from": "system", "value": "Test to change before filling-out test coverage\n" }, { "from": "human", "value": "package com.github.benashford.jresp;\n\nimport com.github.benashford.jresp.protocol.Ary;\nimport com.github.benashford.jresp.protocol.BulkStr;\nimport org.junit.Test;\n\nimport java.u...
java
chosen
[ { "from": "system", "value": "Clear easy mode on /cto\n\nWhy are we clearing bypass mode but not easy mode?" }, { "from": "human", "value": "package vg.civcraft.mc.citadel.command.commands;\n\nimport org.bukkit.ChatColor;\nimport org.bukkit.command.CommandSender;\nimport org.bukkit.entity.Player...
java
chosen
[ { "from": "system", "value": "Remove 'public' for interface methods\n\n+ fix formatting issues\n" }, { "from": "human", "value": "// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\n/**\n * This is the interface for controlling ...
java
chosen
[ { "from": "system", "value": "Add missing INTEGRATION_INSTALLATION_REPOSITORIES github event\n" }, { "from": "human", "value": "package org.kohsuke.github;\n\nimport java.util.Locale;\n\n/**\n * Hook event type.\n *\n * @author Kohsuke Kawaguchi\n * @see GHEventInfo\n * @see <a href=\"https://de...
java
chosen
[ { "from": "system", "value": "Add Android Virtual Device IP\n" }, { "from": "human", "value": "package com.example.todocloud.app;\n\npublic class AppConfig {\n\n private static String prefix = \"http://192.168.1.100/todo_cloud/\"; // LAN IP\n /*private static String prefix = \"http://192.168....
java
chosen
[ { "from": "system", "value": "Fix exception when access is not specified\n" }, { "from": "human", "value": "package com.github.dump247.jenkins.plugins.dockerjob.slaves;\n\nimport java.util.regex.Matcher;\nimport java.util.regex.Pattern;\n\nimport static com.google.common.base.Preconditions.check...
java
chosen
[ { "from": "system", "value": "Allow to select working dir via program args\n" }, { "from": "human", "value": "package openmods.depcheck;\n\nimport java.io.File;\nimport java.util.List;\n\npublic class DependencyChecker {\n\n public static void main(String[] args) {\n final File topDir ...
java
chosen
[ { "from": "system", "value": "Remove null for empty set\n\n" }, { "from": "human", "value": "package stream.flarebot.flarebot.commands;\n\nimport net.dv8tion.jda.core.Permission;\nimport net.dv8tion.jda.core.entities.*;\nimport stream.flarebot.flarebot.FlareBot;\nimport stream.flarebot.flarebot....
java
chosen
[ { "from": "system", "value": "Fix issue with CJ query\n" }, { "from": "human", "value": "package fr.insee.rmes.api.codes.cj;\n\nimport fr.insee.rmes.api.Configuration;\n\npublic class CJQueries {\n\n\tpublic static String getCategorieJuridiqueNiveauIII(String code) {\n\t\treturn \"SELECT ?uri ?i...
java
chosen
[ { "from": "system", "value": "Throw exception in to be injected method\n\n+review REVIEW-6467\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...
java
chosen
[ { "from": "system", "value": "Remove AIOOBE assertion on scanSomeArchTest\n\nhas been fixed in Lead.java\n" }, { "from": "human", "value": "package org.freecompany.redline;\n\nimport java.io.File;\nimport org.junit.Test;\n\npublic class ScannerTest extends TestBase\n{\n\n @Test\n public vo...
java
chosen
[ { "from": "system", "value": "Fix removing scrolls from equipment inventory\n" }, { "from": "human", "value": "package net.wayward_realms.waywardcharacters;\n\nimport org.bukkit.ChatColor;\nimport org.bukkit.Material;\nimport org.bukkit.event.EventHandler;\nimport org.bukkit.event.Listener;\nimp...
java
chosen