conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Check if we are running in headless environment\n" }, { "from": "human", "value": "package me.coley.recaf.command.impl;\n\nimport me.coley.recaf.Recaf;\nimport me.coley.recaf.control.Controller;\nimport me.coley.recaf.control.gui.GuiController;\nimport me.coley.reca...
java
chosen
[ { "from": "system", "value": "Fix issue with out of bounds array check in recordable autonomous" }, { "from": "human", "value": "package org.usfirst.frc2832.Robot_2016.HID;\r\n\r\nimport java.util.ArrayList;\r\n\r\npublic class VirtualGamepad {\r\n\tprivate ArrayList<GamepadState> states;\r\n\tp...
java
chosen
[ { "from": "system", "value": "Use .code instead of .name for type references in code bodies " }, { "from": "human", "value": "package de.japkit.roo.japkit.web;\n\nimport org.springframework.format.FormatterRegistrar;\nimport org.springframework.format.FormatterRegistry;\n\nimport de.japkit.annot...
java
chosen
[ { "from": "system", "value": "Add the Unit Test as a Library to the EAR prior to deployment.\n" }, { "from": "human", "value": "/*\n * This file is part of COMPASS. It is subject to the license terms in\n * the LICENSE file found in the top-level directory of this distribution.\n * (Also availab...
java
chosen
[ { "from": "system", "value": "Add argument parser to Scheduler component.\n" }, { "from": "human", "value": "import rabbit.Receiver;\n\npublic class Client {\n\n public static void main(String[] args) {\n Receiver receiver = new Receiver();\n receiver.startReceiving();\n }\n}...
java
chosen
[ { "from": "system", "value": "Add conditional to sample java file\n" }, { "from": "human", "value": "public class BasicArithmatic\n{\n\tprivate static final int constant = 10;\n\n\tpublic static int casualMethod()\n\t{\n\t\treturn 1;\n\t}\n\n\tpublic static void main(String args)\n\t{\n\t\tint a...
java
chosen
[ { "from": "system", "value": "Fix spelling error in playerdata dir\n" }, { "from": "human", "value": "package com.cadyyan.levels.utils;\n\nimport com.cadyyan.levels.Levels;\nimport net.minecraft.server.MinecraftServer;\nimport net.minecraftforge.fml.common.FMLCommonHandler;\n\nimport java.io.Fil...
java
chosen
[ { "from": "system", "value": "Make the promotion map protected and use classes.\n" }, { "from": "human", "value": "package org.nwapw.abacus.plugin;\n\nimport org.nwapw.abacus.number.NumberInterface;\n\nimport java.util.HashMap;\nimport java.util.Map;\nimport java.util.function.Function;\n\npubli...
java
chosen
[ { "from": "system", "value": "Fix IndexOutOfBoundEx for empty numeric values" }, { "from": "human", "value": "package com.axonivy.ivy.process.element.rule.ui.cellEdit;\n\nimport org.apache.commons.lang3.math.NumberUtils;\nimport org.eclipse.swt.events.VerifyEvent;\nimport org.eclipse.swt.events....
java
chosen
[ { "from": "system", "value": "Improve error handling of git process to commit installation of application. Mainly of use in tests\n" }, { "from": "human", "value": "package io.liveoak.container.tenancy.service;\n\nimport java.io.File;\nimport java.util.function.Consumer;\n\nimport org.jboss.msc....
java
chosen
[ { "from": "system", "value": "Add license and header comment\n\n\ngit-svn-id: d69ffe4ccc4861bf06065bd0072b85c931fba7ed@56647 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "human", "value": "package org.apache.geronimo.deployment.plugin.factories;\n\nimport javax.enterprise.deploy.spi.exce...
java
chosen
[ { "from": "system", "value": "Remove redundant stacktrace from the test console\n" }, { "from": "human", "value": "package io.quarkus.reactive.mssql.client;\n\nimport java.net.ConnectException;\nimport java.sql.SQLException;\nimport java.util.concurrent.CompletableFuture;\nimport java.util.concu...
java
chosen
[ { "from": "system", "value": "Change back to close when player closes inventyory\n\n" }, { "from": "human", "value": "package xyz.upperlevel.uppercore.gui;\n\nimport org.bukkit.Bukkit;\nimport org.bukkit.entity.Player;\nimport org.bukkit.event.EventHandler;\nimport org.bukkit.event.Listener;\nim...
java
chosen
[ { "from": "system", "value": "Add log tag temperature controller\n" }, { "from": "human", "value": "package org.openlmis.web.controller.vaccine.inventory;\n\n/**\n * Created by hassan on 5/27/17.\n */\npublic class LogTagTemperatureController {\n}\n" }, { "from": "gpt", "value": "pac...
java
chosen
[ { "from": "system", "value": "Allow for Missing Buildpack Filename\n\nPreviously we assumed that all buildpacks would have an associated filename. It is\npossible to create a buildpack without a filename, therefore this commit removes our\nassumption.\n" }, { "from": "human", "value": "/*\n * Co...
java
chosen
[ { "from": "system", "value": "Reduce the time we keep expired remotes sessions and fix comment\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.vespa.config.server.maintena...
java
chosen
[ { "from": "system", "value": "Revert \"Revert \"CB-14584 triggering ccm upgrade flow through internal call\"\"\n\nThis reverts commit 78c3bf7bf9156941b81e29dcb62720df58498b06.\n" }, { "from": "human", "value": "package com.sequenceiq.cloudbreak.service.upgrade.ccm;\n\nimport org.springframework....
java
chosen
[ { "from": "system", "value": "Fix bug in hasNext when no result for a key is returned\n" }, { "from": "human", "value": "/**\n * This class will instill 'normal' iterator behavior to a ColumnFamilyResult.\n * Simply instantiate this class while passing your ColumnFamilyResult as a \n * construct...
java
chosen
[ { "from": "system", "value": "Fix keyword sequence serialization for Agree." }, { "from": "human", "value": "/*\n * generated by Xtext\n */\npackage com.rockwellcollins.atc.agree.serializer;\n\npublic class AgreeSyntacticSequencer extends AbstractAgreeSyntacticSequencer {\n}\n" }, { "fro...
java
chosen
[ { "from": "system", "value": "Fix regression in Community edition\n" }, { "from": "human", "value": "/*\n * Copyright 2010-2019 Boxfuse GmbH\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 ...
java
chosen
[ { "from": "system", "value": "Remove comments and fix function parameter for generating hash.\n" }, { "from": "human", "value": "package cecs566_tth;\n\n\npublic class Driver \n{\n\tpublic static void main(String [] args)\n\t{\n//\t\tSystem.out.println(Utils.translateTotalToLetters(Utils.compres...
java
chosen
[ { "from": "system", "value": "Use an XQueryCDataSection for the CDataSection PSI.\n" }, { "from": "human", "value": "/*\n * Copyright (C) 2016 Reece H. Dunn\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the Licen...
java
chosen
[ { "from": "system", "value": "Add missing new line at the end of file.\n\ngit-svn-id: b819289d3a0e8888cd070d2ae628b7cf730b797f@420071 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "human", "value": "/*\r\n * Copyright 2000-2005 The Apache Software Foundation\r\n *\r\n * Licensed under t...
java
chosen
[ { "from": "system", "value": "Add fragment class for final date\n" }, { "from": "human", "value": "package de.fau.amos.virtualledger.android.views.savings.add;\n\nimport android.os.Bundle;\nimport android.support.annotation.Nullable;\nimport android.view.LayoutInflater;\nimport android.view.View...
java
chosen
[ { "from": "system", "value": "Add media URL (used to get the current channel)\n" }, { "from": "human", "value": "package fr.bouyguestelecom.tv.openapi.secondscreen.apiutils;\n\n/**\n * @author Pierre-Etienne Cherière PCHERIER@bouyguestelecom.fr\n */\npublic class BboxApiUrl {\n\n public stati...
java
chosen
[ { "from": "system", "value": "Add a new comparison result type for when neither side has it.\n" }, { "from": "human", "value": "/*\n * Copyright 2012 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": "Add SceneController to do command\n" }, { "from": "human", "value": "/**\n * Created by arran on 21/11/2016.\n */\npublic interface Command {\n\n void doCommand();\n}\n" }, { "from": "gpt", "value": "/**\n * Created by arran on 21/11/2016.\n */\npubli...
java
chosen
[ { "from": "system", "value": "Add method to get AttributeReader for specific attribute as well as ability to determine namespaces for a given prefix\n\n\ngit-svn-id: 9326b53cbc4a8f4c3d02979b62b178127d5150fe@888 c7d0bf07-ec0d-0410-b2cc-d48fa9be22ba\n" }, { "from": "human", "value": "package org.c...
java
chosen
[ { "from": "system", "value": "Make sure JMXAgent gets bound\n" }, { "from": "human", "value": "package com.proofpoint.jmx;\n\nimport com.google.inject.Binder;\nimport com.google.inject.Module;\nimport com.proofpoint.configuration.ConfigurationModule;\n\nimport javax.management.MBeanServer;\nimpo...
java
chosen
[ { "from": "system", "value": " Break lines so they don't overstep right margin" }, { "from": "human", "value": "package org.CG.infrastructure;\n\nimport javax.media.opengl.GL;\n\n/**\n *\n * @author ldavid\n */\npublic abstract class Drawing {\n\n protected Point start;\n protected ColorBy...
java
chosen
[ { "from": "system", "value": "Update copyright header of changed files\n" }, { "from": "human", "value": "/*\n * Copyright 2012-2018 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with t...
java
chosen
[ { "from": "system", "value": "Fix: Set the organisation name to avoid to populate a url request having /orgs/null\n" }, { "from": "human", "value": "package org.kohsuke.github;\n\nimport org.junit.Assert;\nimport org.junit.Test;\n\nimport java.io.IOException;\n\npublic class GHDiscussionTest ext...
java
chosen
[ { "from": "system", "value": "Change experiment to 50/50 split\n\nSummary: Moving up to 50/50 since I believe the experiment is lower risk than it was when these values were initially set.\n\nReviewed By: ttsugriy\n\nfbshipit-source-id: 69768de\n" }, { "from": "human", "value": "/*\n * Copyright...
java
chosen
[ { "from": "system", "value": "Make cycle detection atomic. No 2 threads should use getInstance at the same time. The lock is shared for all scopes. This is a problem.\n" }, { "from": "human", "value": "package toothpick;\n\nimport java.util.Stack;\nimport toothpick.config.Binding;\n\nimport stat...
java
chosen
[ { "from": "system", "value": "Fix Eclipse resolution of plugins; this may be different in other IDEs\n" }, { "from": "human", "value": "package uk.co.uwcs.choob.modules;\n\nimport java.io.File;\nimport java.io.FileNotFoundException;\nimport java.io.IOException;\nimport java.net.URL;\nimport java...
java
chosen
[ { "from": "system", "value": "Use LinkedList instead of Array" }, { "from": "human", "value": "package net.megaroid.math;\n\nimport java.util.Scanner;\n\npublic class Factors {\n\t\n\tprivate int mNumber;\n\tprivate int[] mFactors; \n\tprivate int mCount;\n\t\n\tpublic Factors(int number) {\n\t\...
java
chosen
[ { "from": "system", "value": "Make one remaining header consistent with LICENSE\n\nChange-Id: I3184b7251d42cccb1e3b0d7e802a7efb6f2d8a5e\n" }, { "from": "human", "value": "// Copyright 2015 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license t...
java
chosen
[ { "from": "system", "value": "Add request encoding to WMTS source" }, { "from": "human", "value": "/*******************************************************************************\n * Copyright 2014, 2017 gwt-ol3\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you m...
java
chosen
[ { "from": "system", "value": "Add ability to display toasts\n" }, { "from": "human", "value": "package jasenmoloy.wirelesscontrol.helpers;\n\nimport android.widget.Button;\n\n/**\n * Created by jasenmoloy on 5/20/16.\n */\npublic class UIHelper {\n\n /**\n * Visually and functionally enab...
java
chosen
[ { "from": "system", "value": "Make ball bounce off ceiling and floor\n" }, { "from": "human", "value": "package pong;\n\nimport java.awt.Color;\nimport java.awt.Graphics2D;\nimport java.util.Random;\n\npublic class Ball {\n private float x, y;\n private float angle;\n private float size;\n\n ...
java
chosen
[ { "from": "system", "value": "Add method to parse the name of the player\n\n" }, { "from": "human", "value": "package utils;\n\n/**\n * Class containing methods to parse the result lines retrieved from ThingSpeak\n * @author Johan Brunet, Julien Gallego\n *\n */\npublic class Parser {\n\n\t/**\n...
java
chosen
[ { "from": "system", "value": "Add a flag to the PV Logger service to disable periodic logging and only allow on-demand logging.\n" }, { "from": "human", "value": "/*\n * Main.java\n *\n * Created on Wed Jan 14 13:03:12 EST 2004\n *\n * Copyright (c) 2004 Spallation Neutron Source\n * Oak Ridge N...
java
chosen
[ { "from": "system", "value": "Update CORS origin to localhost\n" }, { "from": "human", "value": "package com.awesometickets.config;\n\nimport java.io.IOException;\n\nimport javax.servlet.Filter;\nimport javax.servlet.FilterChain;\nimport javax.servlet.FilterConfig;\nimport javax.servlet.ServletE...
java
chosen
[ { "from": "system", "value": "REFACTORED: Use List<Feature> instead array in constructor." }, { "from": "human", "value": "package org.geojson.object;\n\npublic class FeatureCollection {\n\t\n\tprivate Feature[] features;\n\t\n\tpublic FeatureCollection(Feature[] features) {\n\t\tthis.features =...
java
chosen
[ { "from": "system", "value": "Fix so that close() throws IOException, so that classes which override\nthis method can throw IOException, as specified in the Closeable\ninterface. Also add the Apache license (which must be in every file)\nand add a bit more javadoc.\n\n\ngit-svn-id: 4d48d1092ee340c9ada5711c...
java
chosen
[ { "from": "system", "value": "Solve problem 229 (with O(n) space)\n" }, { "from": "human", "value": "package leetcode;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\n/**\n * https://leetcode.com/problems/majority-element-ii/\n */\npublic class Problem229 {\n public List<Integer> ma...
java
chosen
[ { "from": "system", "value": "Remove auto-parcel dependency from ODK collect.\n\nOnly one class in odkcollect was using AutoParcel. AutoParcel requires\ncode generation ta compile time. Removing this makes it easier to get\nstarted using non-Android Studio IDEs, e.g. Eclipse.\n" }, { "from": "human"...
java
chosen
[ { "from": "system", "value": "Fix null response issue with sitemap\n" }, { "from": "human", "value": "package burp;\n\n\npublic class BHttpRequestResponseFactory {\n\n public static BHttpRequestResponse create(IHttpRequestResponse requestResponse,\n ...
java
chosen
[ { "from": "system", "value": "Fix string index out of bounds\n" }, { "from": "human", "value": "package io.digdag.cli;\n\nimport com.beust.jcommander.IParameterValidator;\nimport com.beust.jcommander.ParameterException;\n\nimport java.util.HashMap;\nimport java.util.List;\nimport java.util.Map;\...
java
chosen
[ { "from": "system", "value": "Allow user-override of pcp config variable like PCP_TMP_DIR.\n\nThis is implemented in the same way that the PCP C code does - if\nthe same-named environment variable is set, use its value (and no\nextra checking added).\n" }, { "from": "human", "value": "package co...
java
chosen
[ { "from": "system", "value": "Rename version attribute to explicitly mark the original version\n" }, { "from": "human", "value": "package io.plumery.core;\n\n/**\n * The role interface representing a command\n */\npublic abstract class Command implements Action {\n public int version;\n}" }...
java
chosen
[ { "from": "system", "value": "Remove unnecessary and incorrect import\n" }, { "from": "human", "value": "package org.amc.servlet.listener;\n\n/**\n * \n * @author Adrian Mclaughlin\n * @version 1\n */\nimport org.apache.log4j.Logger; \n\nimport javax.servlet.ServletContext;\nimport javax.servlet...
java
chosen
[ { "from": "system", "value": "Make use of MarkdownLanguageConfig constants" }, { "from": "human", "value": "package flow.netbeans.markdown;\r\n\r\nimport org.netbeans.api.lexer.InputAttributes;\r\nimport org.netbeans.api.lexer.Language;\r\nimport org.netbeans.api.lexer.LanguagePath;\r\nimport or...
java
chosen
[ { "from": "system", "value": "Add extremely basic GUI setup\n" }, { "from": "human", "value": "package com.beyondtechnicallycorrect.pong;\n\n/**\n * Hello world!\n *\n */\npublic class App \n{\n public static void main( String[] args )\n {\n System.out.println( \"Hello World!\" );\n...
java
chosen
[ { "from": "system", "value": "Add imageBase64: prefix alongside image: for ticket element values\n" }, { "from": "human", "value": "package com.quicktravel.ticket_printer;\n\npublic class TicketElement {\n \n private int x = 0;\n private int y = 0;\n private int fontSize = 10;\n private boo...
java
chosen
[ { "from": "system", "value": "Add id, favorite + rt count to timeline\n" }, { "from": "human", "value": "package com.tmitim.twittercli;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\nimport com.github.rvesse.airline.annotations.Command;\n\nimport twitter4j.Status;\nimport twitter4j.Tw...
java
chosen
[ { "from": "system", "value": "Increment enemy index after getting enemies\n" }, { "from": "human", "value": "package engine.element;\n\nimport java.util.ArrayList;\nimport java.util.List;\nimport engine.Endable;\nimport engine.UpdateAndReturnable;\n\n\n/**\n * This class contains a wave, which i...
java
chosen
[ { "from": "system", "value": "Update VueGWT panel to support Factory\n" }, { "from": "human", "value": "package com.axellience.vuegwt.client.gwtpanel;\n\nimport com.axellience.vuegwt.client.VueGWT;\nimport com.axellience.vuegwt.client.component.VueComponent;\nimport com.axellience.vuegwt.client....
java
chosen
[ { "from": "system", "value": "feat(graphql): Allow unknown properties in GraphQL requests\n" }, { "from": "human", "value": "package com.conveyal.r5.api;\n\n/**\n * Dummy request for GraphQL\n *\n * Since GraphQL request is in JSON Jackson needs this to parse it correctly.\n */\npublic class Gra...
java
chosen
[ { "from": "system", "value": "Add missing function in index info\n" }, { "from": "human", "value": "package hk.ust.comp4321.database;\n\n/**\n * \n * @author Alex Poon\n */\npublic class IndexInfo\n{\n\n //Constants and fields.\n // -------------------------------------------------------------...
java
chosen
[ { "from": "system", "value": "Add enumiration for renderer type." }, { "from": "human", "value": "/* \n * Copyright 2016 iserge.\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": "OAK-112: Refactor ModifiedNodeState and related classes to use type safe iterator utilities\nmissing license header (again, sorry)\n\ngit-svn-id: 67138be12999c61558c3dd34328380c8e4523e73@1342200 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "human", "value": ...
java
chosen
[ { "from": "system", "value": "\tRemove redundant name qualification (which J++ complains about).\n\tRemove constructors. Generally remove verbosity.\n\n\ngit-svn-id: 169764d5f12c41a1cff66b81d896619f3ce5473d@266 5e0a886f-7f45-49c5-bc19-40643649e37f\n" }, { "from": "human", "value": "package kawa...
java
chosen
[ { "from": "system", "value": "Fix previously not occurring bug:The method until(Predicate<WebDriver>) is ambiguous for the type WebDriverWait\n" }, { "from": "human", "value": "package hu.adamsan.selenium.framework.pages;\n\nimport org.openqa.selenium.support.ui.WebDriverWait;\n\nimport hu.adams...
java
chosen
[ { "from": "system", "value": "Rename appContextModule variable to appModule.\n" }, { "from": "human", "value": "/*\n * Copyright (C) 2017 Yaroslav Mytkalyk\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": "KULRICE-9047: Disable term lookup smoke test to avoid any server impact till fixed.\n\ngit-svn-id: 2a5d2b5a02908a0c4ba7967b726d8c4198d1b9ed@37464 7a7aa7f6-c479-11dc-97e2-85a2497f191d\n" }, { "from": "human", "value": "/**\n * Copyright 2005-2011 The Kuali Foundation...
java
chosen
[ { "from": "system", "value": "Store begin and end times as dates\n" }, { "from": "human", "value": "package edu.pdx.cs410J.chances;\n\nimport edu.pdx.cs410J.AbstractAppointment;\n\nimport java.util.Date;\n\npublic class Appointment extends AbstractAppointment {\n private String beginTime;\n pr...
java
chosen
[ { "from": "system", "value": "Fix LOCI common utils compilation.\n\n" }, { "from": "human", "value": "//\n// XsltProc.java\n//\n\nimport java.io.FileReader;\nimport java.io.IOException;\nimport loci.common.XMLTools;\n\nimport java.io.StringWriter;\nimport javax.xml.transform.Templates;\nimport j...
java
chosen
[ { "from": "system", "value": "Fix \"unused import\". It was used, but only by Javadoc.\n" }, { "from": "human", "value": "package com.github.therapi.core.interceptor;\n\nimport java.lang.annotation.Annotation;\nimport java.util.function.Predicate;\n\nimport com.github.therapi.core.MethodDefiniti...
java
chosen
[ { "from": "system", "value": "Return instance from add for chaining. Add constructor that takes a map.\n\nI let the add method return \"this\" soo that we can chain method calls. Like ```new Filter().add(\"some\", \"value\").add(\"another\", \"value\")\r\n\r\nI added a constructor that takes a filter map an...
java
chosen
[ { "from": "system", "value": "Move config.xml parsing into its own Config class\n\nNow the parsing happens very early in the bootstrap process, before\nloadUrl() is called. This enables a future change to put the start page\nin config.xml instead of hardcoding it.\n" }, { "from": "human", "value...
java
chosen
[ { "from": "system", "value": "Fix javadoc summary for Google Java Style\n\nThe summary shouldn't use @return and should use \"Returns\".\n\n[1] https://google.github.io/styleguide/javaguide.html#s7.2-summary-fragment\n\nChange-Id: I631f0be5c048c2f93d62993c41583fb382d714ac\nRelease-Notes: skip\n" }, { ...
java
chosen
[ { "from": "system", "value": "Test commit, magnus tok ikke feil\n" }, { "from": "human", "value": "package models;\r\n\r\nimport java.util.ArrayList;\r\nimport java.util.List;\r\n\r\nimport javax.persistence.CascadeType;\r\nimport javax.persistence.Entity;\r\nimport javax.persistence.Id;\r\nimpo...
java
chosen
[ { "from": "system", "value": "Change return type handling for AcmoTranslator" }, { "from": "human", "value": "package org.agmip.ui.acmoui;\n\nimport org.agmip.acmo.translators.AcmoTranslator;\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\n\n\npublic class TranslateRunner implements ...
java
chosen
[ { "from": "system", "value": "Add application test for “too many arguments”." }, { "from": "human", "value": "package com.skraylabs.poker;\n\nimport static org.hamcrest.CoreMatchers.allOf;\nimport static org.hamcrest.CoreMatchers.containsString;\nimport static org.hamcrest.MatcherAssert.assertTh...
java
chosen
[ { "from": "system", "value": "Fix item transfer happening on all items when an empty filter was given\n\nCloses ##121\n" }, { "from": "human", "value": "package org.cyclops.integratedtunnels.core;\n\nimport net.minecraft.item.ItemStack;\n\nimport javax.annotation.Nonnull;\nimport java.util.funct...
java
chosen
[ { "from": "system", "value": "Rename package to fix compilation issue\n" }, { "from": "human", "value": "/*\r\n * To change this license header, choose License Headers in Project Properties.\r\n * To change this template file, choose Tools | Templates\r\n * and open the template in the editor.\r...
java
chosen
[ { "from": "system", "value": "Allow long domain extensions in email addresses\n" }, { "from": "human", "value": "package utils;\n\npublic class EmailType {\n \n /*\n The local-part of the e-mail address may use any of these ASCII characters:\n - Uppercase and lowercase English lett...
java
chosen
[ { "from": "system", "value": "Reset shield regen timer every time damage is taken, even if the shield isn't damaged\n" }, { "from": "human", "value": "package com.ezardlabs.lostsector.objects;\n\nimport com.ezardlabs.dethsquare.Vector2;\nimport com.ezardlabs.lostsector.Game.DamageType;\n\npublic...
java
chosen
[ { "from": "system", "value": "Fix db link and signIn method" }, { "from": "human", "value": "package biz.plexers.sparrow.db;\r\n\r\nimport java.net.MalformedURLException;\r\n\r\nimport org.ektorp.CouchDbConnector;\r\nimport org.ektorp.CouchDbInstance;\r\nimport org.ektorp.DbAccessException;\r\ni...
java
chosen
[ { "from": "system", "value": "Add workaround code to avoid hanging by skip issue\n" }, { "from": "human", "value": "package org.embulk.decoder;\n\nimport org.embulk.config.Config;\nimport org.embulk.config.ConfigDefault;\nimport org.embulk.config.ConfigInject;\nimport org.embulk.config.ConfigSou...
java
chosen
[ { "from": "system", "value": "Remove test for null result\n" }, { "from": "human", "value": "package com.deuteriumlabs.dendrite.unittest;\n\nimport static org.junit.Assert.assertEquals;\nimport static org.junit.Assert.assertNotNull;\nimport static org.junit.Assert.assertNull;\nimport static org....
java
chosen
[ { "from": "system", "value": "Add value to the exception for debugging.\n" }, { "from": "human", "value": "package pg.hadoop.pig;\n\nimport org.apache.pig.EvalFunc;\nimport org.apache.pig.data.Tuple;\n\nimport java.io.IOException;\n\n/**\n * Returns the hashcode of the given String or Number.\n ...
java
chosen
[ { "from": "system", "value": "Convert info send by server into student objects\n" }, { "from": "human", "value": "package br.com.alura.agenda.firebase;\n\nimport android.util.Log;\n\nimport com.google.firebase.messaging.FirebaseMessagingService;\nimport com.google.firebase.messaging.RemoteMessag...
java
chosen
[ { "from": "system", "value": "Allow exactly specified trees to be represented by type keys\n" }, { "from": "human", "value": "package com.mattunderscore.trees.construction;\n\nimport com.mattunderscore.trees.tree.Tree;\n\nimport java.lang.reflect.ParameterizedType;\n\n/**\n * Type key to support...
java
chosen
[ { "from": "system", "value": "Make component scan more specific\n" }, { "from": "human", "value": "package com.jstanier.tweetscheduler.main;\n\nimport org.springframework.context.annotation.ComponentScan;\nimport org.springframework.context.annotation.Configuration;\n\n@Configuration\n@Component...
java
chosen
[ { "from": "system", "value": "Change copyright in Apache 2 license to 2013\n" }, { "from": "human", "value": "/**\n * Copyright © 2011-2012 EMBL - European Bioinformatics Institute\n * \n * Licensed under the Apache License, Version 2.0 (the \"License\"); \n * you may not use this file except in...
java
chosen
[ { "from": "system", "value": "Add a list of all the system properties that the application need" }, { "from": "human", "value": "import ch.rasc.embeddedtc.EmbeddedTomcat;\n\npublic class Spring4WSStartTomcat {\n\tpublic static void main(String[] args) throws Exception {\n\t\tEmbeddedTomcat.creat...
java
chosen
[ { "from": "system", "value": "Make the class package private" }, { "from": "human", "value": "package info.u_team.u_team_core.data;\n\nimport java.io.IOException;\nimport java.util.Arrays;\n\nimport net.minecraft.resources.*;\nimport net.minecraft.util.ResourceLocation;\nimport net.minecraftforg...
java
chosen
[ { "from": "system", "value": "Update Java doc of the main method.\n" }, { "from": "human", "value": "package google;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.boot.CommandLineRunner;\nimport org.springframework.boot.SpringApplication;\nimport o...
java
chosen
[ { "from": "system", "value": "Change 'goodbye' handler to use proper exit methodology.\n\nSystem.exit() works but is less graceful than asking the server\nto stop.\n" }, { "from": "human", "value": "package com.deweysasser.example.webserver;\r\n\r\nimport java.io.IOException;\r\nimport java.io.O...
java
chosen
[ { "from": "system", "value": "Replace 'assert session != null' with Assert.notnull(Object, String)\n" }, { "from": "human", "value": "/*\n * Copyright 2010 The myBatis Team\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": "Reformat Code and optimize imports\n" }, { "from": "human", "value": "package uk.co.imallan.tuchongdaily.api.data;\n\nimport java.io.Serializable;\nimport java.util.List;\n\nimport uk.co.imallan.tuchongdaily.db.model.Post;\n\n/**\n * Created by allan on 15/1/30.\n *...
java
chosen
[ { "from": "system", "value": "Revert \"add ability to order a domain D by the result of a function F and an Ordering O on the image of F\"\n\nUse guava\n\nThis reverts commit d39b479c87eef9ce0f17d45b1885994f1a9f7fa4.\n" }, { "from": "human", "value": "package com.bbn.bue.common;\n\nimport com.go...
java
chosen
[ { "from": "system", "value": "Remove assertion in favor to correct recover.\n" }, { "from": "human", "value": "package com.intellij.ide;\n\nimport com.intellij.openapi.diagnostic.Logger;\nimport com.intellij.openapi.ui.popup.IdePopup;\nimport com.intellij.ui.popup.StackingPopupDispatcher;\nimpor...
java
chosen
[ { "from": "system", "value": "Update to support FIT 1.4.3-SNAPSHOT" }, { "from": "human", "value": "package org.pitest.cucumber;\n\nimport cucumber.api.junit.Cucumber;\nimport cucumber.runtime.Runtime;\nimport cucumber.runtime.model.CucumberScenario;\nimport gherkin.formatter.Formatter;\nimport ...
java
chosen
[ { "from": "system", "value": "Enhance test for adding movie on save\n\ncleanup, use butterknife, check whether values are correct\n" }, { "from": "human", "value": "package sleepyweasel.purplefluffernutter;\n\nimport android.widget.Button;\n\nimport org.junit.Test;\nimport org.junit.runner.RunWi...
java
chosen
[ { "from": "system", "value": "Fix message generation: when the value contained replacement group for regex it was crashing\n" }, { "from": "human", "value": "package com.bloatit.framework.webprocessor.annotations;\n\npublic class Message {\n public enum What {\n UNKNOWN, NOT_FOUND, CON...
java
chosen
[ { "from": "system", "value": "Fix for duplicat field in Json serialisation." }, { "from": "human", "value": "package com.github.onsdigital.json.release;\n\nimport com.github.onsdigital.json.ContentType;\nimport com.github.onsdigital.json.Reference;\nimport com.github.onsdigital.json.dataset.Data...
java
chosen
[ { "from": "system", "value": "Fix CIPANGO-99: Creating a DiameterServletRequest without specifying the destinationhost field leads to a null pointer exception when sending a the request\n\ngit-svn-id: a3e743b3c7f6e97b9a019791beffa901f5d7f1d1@506 657f710f-be33-0410-a596-71a6d81f68ef\n" }, { "from": "...
java
chosen