conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Allow formatting of error message for null check.\n" }, { "from": "human", "value": "package net.kleinhaneveld.fn.validations;\n\nimport javax.annotation.CheckForNull;\nimport javax.annotation.Nonnull;\n\npublic abstract class Validations {\n public static <T> T ...
java
chosen
[ { "from": "system", "value": "Split metadata specific exception from InitializrException\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...
java
chosen
[ { "from": "system", "value": "Clear all caches after refreshing records\n" }, { "from": "human", "value": "package org.strangeforest.tcb.stats.jobs;\n\nimport org.slf4j.*;\nimport org.springframework.beans.factory.annotation.*;\nimport org.springframework.context.annotation.*;\nimport org.spring...
java
chosen
[ { "from": "system", "value": "Change test to conform version 3 topic encoding\n" }, { "from": "human", "value": "package org.ethereum.net.shh;\n\nimport org.junit.Test;\nimport org.spongycastle.util.encoders.Hex;\n\nimport static org.junit.Assert.assertEquals;\n\npublic class TopicTest {\n\n ...
java
chosen
[ { "from": "system", "value": "Clean up interface for protocol exception\n" }, { "from": "human", "value": "package org.jvirtanen.nassau;\n\nimport java.io.IOException;\n\npublic class ProtocolException extends IOException {\n\n public ProtocolException(String message) {\n super(message...
java
chosen
[ { "from": "system", "value": "Fix issue with href tag\n" }, { "from": "human", "value": "package fr.insee.rmes.utils;\n\npublic class XmlUtils {\n\t\n\tpublic static String encodeXml(String s) {\n\t\t return s.replaceAll(\"&lt;([a-zA-Z]+)&gt;\", \"<$1>\") //xml open tag\n\t\t\t\t .replaceAll(\"&...
java
chosen
[ { "from": "system", "value": "Implement a simple echo server\n" }, { "from": "human", "value": "package net.zephyrizing.http_server;\n\npublic class HttpServer {\n public static void main(String[] args) {\n System.out.println(\"Hello world!\");\n }\n}\n" }, { "from": "gpt", ...
java
chosen
[ { "from": "system", "value": "Remove duplicate assignment of goEvidence.\n" }, { "from": "human", "value": "package uk.ac.ebi.quickgo.annotation.service.converter;\n\nimport uk.ac.ebi.quickgo.annotation.common.document.AnnotationDocument;\nimport uk.ac.ebi.quickgo.annotation.model.Annotation;\n\...
java
chosen
[ { "from": "system", "value": "Add more user repository methods.\n" }, { "from": "human", "value": "/*\n * Copyright 2014 Open mHealth\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": "Fix SingletonTest so we can run other tests\n" }, { "from": "human", "value": "package ca.ualberta.cs.swapmyride;\n\nimport android.test.ActivityInstrumentationTestCase2;\n\n/**\n * Created by adrianomarini on 2015-11-01.\n */\npublic class UserSingletonTest extends...
java
chosen
[ { "from": "system", "value": "Add temporary scrip enabled for lookup services\n" }, { "from": "human", "value": "package eu.bcvsolutions.idm.core.api.rest.lookup;\n\nimport org.springframework.core.GenericTypeResolver;\n\nimport eu.bcvsolutions.idm.core.api.entity.BaseEntity;\n\n/**\n * Lookup s...
java
chosen
[ { "from": "system", "value": "Fix loading stage hiding in preloader\n" }, { "from": "human", "value": "package de.prob2.ui;\n\nimport javafx.scene.Parent;\nimport javafx.scene.Scene;\nimport javafx.scene.image.ImageView;\nimport javafx.scene.layout.BorderPane;\nimport javafx.stage.Stage;\n\npubl...
java
chosen
[ { "from": "system", "value": "Check that mongodb connection is alive or create a new connection\n" }, { "from": "human", "value": "package org.unitedid.jaas;\n\nimport com.mongodb.DB;\nimport com.mongodb.Mongo;\nimport com.mongodb.MongoException;\nimport com.mongodb.ServerAddress;\nimport org.sl...
java
chosen
[ { "from": "system", "value": "Apply class comments and refactor spacing\n" }, { "from": "human", "value": "/* \n * Copyright 2015 Ryan Gilera.\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 ma...
java
chosen
[ { "from": "system", "value": "Add details on Java version, vendor and home when banner is displayed\n" }, { "from": "human", "value": "/*\n * Copyright to the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file excep...
java
chosen
[ { "from": "system", "value": "Fix test module for changed dependency filter API\n\n" }, { "from": "human", "value": "package com.vaadin.test.dependencyrewrite;\n\nimport java.util.List;\n\nimport com.vaadin.server.DependencyFilter;\nimport com.vaadin.server.DeploymentConfiguration;\nimport com.v...
java
chosen
[ { "from": "system", "value": "Add Authenticator for proxy users\n" }, { "from": "human", "value": "/*\n * Copyright 2011, 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 compliance with the Lic...
java
chosen
[ { "from": "system", "value": "Use canonical form of Docker folder when building TAR files\n\nIn BuildImageCmdImpl#buildDockerFolderTar a canonical form of the source\nfiles referenced in the Dockerfile is used. But the Docker folder is\npassed in the given form to the CompressArchiveUtil.\n\nCompressArchive...
java
chosen
[ { "from": "system", "value": "Add SLOW_FALLING and TURTLE_MASTER potion types\n" }, { "from": "human", "value": "package com.laytonsmith.abstraction.enums;\n\nimport com.laytonsmith.annotations.MEnum;\n\n@MEnum(\"PotionType\")\npublic enum MCPotionType {\n\tAWKWARD,\n\tFIRE_RESISTANCE,\n\tINSTAN...
java
chosen
[ { "from": "system", "value": "Change endpoint to match spec\n" }, { "from": "human", "value": "package uk.gov.dvla.services.enquiry;\r\n\r\nimport uk.gov.dvla.domain.Driver;\r\nimport uk.gov.dvla.domain.Person;\r\nimport uk.gov.dvla.services.ManagedService;\r\n\r\npublic interface DriverEnquiry ...
java
chosen
[ { "from": "system", "value": "Remove JUnit 4 rule ExpectedException.none() (deprecated in version 4.13)\n" }, { "from": "human", "value": "/*\n * (C) Copyright 2017 Boni Garcia (http://bonigarcia.github.io/)\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may no...
java
chosen
[ { "from": "system", "value": "Test app now creates dummy id if none is specified.\n" }, { "from": "human", "value": "package com.albin;\n\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\nimport com.albin.mqtt.NettyClient;\n\npublic class NettyMai...
java
chosen
[ { "from": "system", "value": "Add 404 handler for SPA routing\n" }, { "from": "human", "value": "package com.elorating.config;\n\nimport com.elorating.service.PlayerStatsService;\nimport com.elorating.service.PlayerStatsServiceImpl;\nimport org.springframework.context.annotation.Bean;\nimport or...
java
chosen
[ { "from": "system", "value": "Add exception to method signature, and add additional annotation\n" }, { "from": "human", "value": "package uk.ac.ebi.spot.goci.service;\n\nimport org.apache.poi.openxml4j.exceptions.InvalidFormatException;\nimport org.apache.poi.openxml4j.opc.OPCPackage;\nimport or...
java
chosen
[ { "from": "system", "value": "Create a new intent for each launching intent\n" }, { "from": "human", "value": "package com.alexstyl.specialdates.addevent.bottomsheet;\n\nimport android.content.Intent;\nimport android.content.pm.PackageManager;\nimport android.content.pm.ResolveInfo;\nimport andr...
java
chosen
[ { "from": "system", "value": "Adjust serialization artifacts to match RI.\n\nsvn path=/incubator/harmony/enhanced/classlib/trunk/; revision=414445\n" }, { "from": "human", "value": "/*\n * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.\n *\n * Licensed under the...
java
chosen
[ { "from": "system", "value": "Make `let` declarations put their value in the local frame\n" }, { "from": "human", "value": "package org.hummingbirdlang.nodes;\n\nimport com.oracle.truffle.api.frame.VirtualFrame;\n\nimport org.hummingbirdlang.types.TypeException;\nimport org.hummingbirdlang.types...
java
chosen
[ { "from": "system", "value": "Use runUnsafeAction in lazy binding implementation\n" }, { "from": "human", "value": "package org.reactfx;\n\nimport java.util.function.Consumer;\n\n/**\n * Event stream that has one or more sources (most commonly event streams,\n * but not necessarily) to which it ...
java
chosen
[ { "from": "system", "value": "Move back to old way...\n" }, { "from": "human", "value": "package net.darkmist.alib.escape.jsp;\n\nimport java.io.IOException;\n\nimport javax.servlet.jsp.JspTagException;\nimport javax.servlet.jsp.PageContext;\nimport javax.servlet.jsp.tagext.Tag;\n\nimport net.da...
java
chosen
[ { "from": "system", "value": "Update URL paths to be compatible with Retrofit 2.\n" }, { "from": "human", "value": "package com.seatgeek.sixpack;\n\nimport com.seatgeek.sixpack.response.ConvertResponse;\nimport com.seatgeek.sixpack.response.ParticipateResponse;\nimport java.util.List;\n\nimport ...
java
chosen
[ { "from": "system", "value": "Fix mobile test suite was using incorrect desktop image search test.\n" }, { "from": "human", "value": "package pt.fccn.mobile.arquivo.suite;\n\nimport org.junit.runner.RunWith;\nimport org.junit.runners.Suite;\nimport org.junit.runners.Suite.SuiteClasses;\n\nimport...
java
chosen
[ { "from": "system", "value": "Use myria constant for master worker id" }, { "from": "human", "value": "package edu.washington.escience.myria.parallel;\n\nimport edu.washington.escience.myria.TupleBatch;\nimport edu.washington.escience.myria.operator.Operator;\n\n/**\n * The producer part of the ...
java
chosen
[ { "from": "system", "value": "Fix test to work correctly on windows.\n" }, { "from": "human", "value": "package org.wkh.bateman.trade;\n\nimport org.wkh.bateman.trade.Quote;\nimport org.wkh.bateman.trade.GoogleQuoteFetcher;\nimport java.io.File;\nimport java.util.List;\nimport java.util.Scanner;...
java
chosen
[ { "from": "system", "value": "Handle factions >5\nNobody knows what they are and where they come from.\n" }, { "from": "human", "value": "package com.faforever.api.data.domain;\n\nimport com.fasterxml.jackson.annotation.JsonCreator;\nimport com.fasterxml.jackson.annotation.JsonValue;\n\nimport j...
java
chosen
[ { "from": "system", "value": "Refactor the XML-RPC testing class.\n" }, { "from": "human", "value": "package org.jenkinsci.plugins.koji;\n\nimport java.util.Map;\n\npublic class XMLRPCTest {\n\n private KojiClient koji;\n\n public static void main(String[] args) {\n String kojiInsta...
java
chosen
[ { "from": "system", "value": "Fix test case for configTest\n" }, { "from": "human", "value": "package seedu.address.commons.core;\n\nimport org.junit.Rule;\nimport org.junit.Test;\nimport org.junit.rules.ExpectedException;\n\nimport seedu.emeraldo.commons.core.Config;\n\nimport static org.junit....
java
chosen
[ { "from": "system", "value": "Create a skeleton for problem 299\n" }, { "from": "human", "value": "package leetcode;\n\n/**\n * https://leetcode.com/problems/bulls-and-cows/\n */\npublic class Problem299 {\n}\n" }, { "from": "gpt", "value": "package leetcode;\n\n/**\n * https://leetc...
java
chosen
[ { "from": "system", "value": "refactor: Use non deprecated methods to check for connection on APIs 21+\n" }, { "from": "human", "value": "/*\n * Copyright (C) 2016 Mateusz Widuch\n */\npackage eu.redray.trevie.utility;\n\nimport android.content.Context;\nimport android.net.ConnectivityManager;\n...
java
chosen
[ { "from": "system", "value": "Use appendExpr on simple expressions\n" }, { "from": "human", "value": "/*\n * Copyright 2014 gandola.\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...
java
chosen
[ { "from": "system", "value": "Rename value to integration in annotation" }, { "from": "human", "value": "package info.u_team.u_team_core.api.integration;\n\nimport java.lang.annotation.*;\n\n@Retention(RetentionPolicy.RUNTIME)\n@Target(ElementType.TYPE)\npublic @interface Integration {\n\t\n\tSt...
java
chosen
[ { "from": "system", "value": "Delete elasticsearch test data folder after stopping it in tests.\n" }, { "from": "human", "value": "package org.dainst.chronontology.store;\n\nimport org.dainst.chronontology.TestConstants;\nimport org.elasticsearch.common.settings.ImmutableSettings;\nimport org.el...
java
chosen
[ { "from": "system", "value": "Fix collapse file header setting\n" }, { "from": "human", "value": "package intellij.haskell.editor;\n\nimport com.intellij.openapi.components.PersistentStateComponent;\nimport com.intellij.openapi.components.ServiceManager;\nimport com.intellij.openapi.components.S...
java
chosen
[ { "from": "system", "value": "Add test to verify that the console prompts more than once if needed.\n" }, { "from": "human", "value": "/**\n * This source file is subject to the license that is bundled with this package in the file LICENSE.\n */\npackage com.codeup.movies.console;\n\nimport com....
java
chosen
[ { "from": "system", "value": "Check that GreatestCommonDivisor handles large numbers\n" }, { "from": "human", "value": "package se.ericthelin.fractions;\n\nimport org.junit.Test;\n\nimport static org.hamcrest.CoreMatchers.is;\nimport static org.junit.Assert.assertThat;\n\npublic class GreatestCo...
java
chosen
[ { "from": "system", "value": "Fix bug with GH-1 for root-installations.\n\nThe change made in dd0ecf4 fixed the URLs for Confluence\ninstallations in non-root paths (e.g., http://foo.example.com/confluence/*),\nbut that broke root installations, because URI#resolve()\ninterprets \"//foo/bar\" to mean that t...
java
chosen
[ { "from": "system", "value": "Use atomic operation to increment the execution stats values\n" }, { "from": "human", "value": "package uk.ac.ebi.biosamples.model.util;\n\nimport java.util.concurrent.atomic.AtomicInteger;\n\npublic class ExecutionInfo {\n private AtomicInteger submitted;\n p...
java
chosen
[ { "from": "system", "value": "Make drivetrain stop at end of path\n" }, { "from": "human", "value": "package com.thegongoliers.pathFollowing;\n\nimport edu.wpi.first.wpilibj.command.Command;\n\npublic abstract class PathTaskCommand extends Command {\n\n protected SmartDriveTrainSubsystem driv...
java
chosen
[ { "from": "system", "value": "Remove more code from TestCase\nRemove TestResult\nRemove TestSuite\nRemove Test\n\nChange-Id: Ia1465fb99c39232d7450f84020eb9a258f920b10\nReview-Link: https://gwt-review.googlesource.com/#/c/19200/\nPiperOrigin-RevId: 166386367\n" }, { "from": "human", "value": "/*\...
java
chosen
[ { "from": "system", "value": "Test for open github issue\n" }, { "from": "human", "value": "package com.natpryce.worktorule.issues.github;\n\nimport org.junit.Test;\n\nimport java.io.IOException;\n\nimport static org.junit.Assert.assertFalse;\n\npublic class GitHubIssuesTest {\n GitHubIssues ...
java
chosen
[ { "from": "system", "value": "Add two methods for serialize/deserialize lambda in strings" }, { "from": "human", "value": "package org.genericsystem.reactor;\n\npublic class ReactorStatics {\n\n\tpublic static final String BACKGROUND = \"background\";\n\tpublic static final String CHECKED = \"ch...
java
chosen
[ { "from": "system", "value": "Revert another one missed fix" }, { "from": "human", "value": "package com.kiselev.reflection.ui.impl.exception;\n\nimport java.lang.reflect.Executable;\nimport java.lang.reflect.Type;\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class ExceptionUti...
java
chosen
[ { "from": "system", "value": "Allow cross origin POST, DELETE, PUT\n" }, { "from": "human", "value": "package es.tododev.auth.server.provider;\n\nimport java.io.IOException;\n\nimport javax.ws.rs.container.ContainerRequestContext;\nimport javax.ws.rs.container.ContainerResponseContext;\nimport j...
java
chosen
[ { "from": "system", "value": "Clarify error message when item is already locked.\n" }, { "from": "human", "value": "/**\n * Copyright (C) 2009-2013 Simonsoft Nordic AB\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance wit...
java
chosen
[ { "from": "system", "value": "Add more functions to this command.\n\nConfig not supported yet. For now the block will change to WOOL." }, { "from": "human", "value": "package com.herocc.bukkit.core.commands;\n\nimport org.bukkit.command.Command;\nimport org.bukkit.command.CommandExecutor;\nimpor...
java
chosen
[ { "from": "system", "value": "Add comment field to lunchmenuitem\n" }, { "from": "human", "value": "package de.philipp1994.lunch.common;\n\nimport java.io.Serializable;\n\npublic class LunchMenuItem implements Serializable {\n\t\n\tprivate static final long serialVersionUID = -179623150954584661...
java
chosen
[ { "from": "system", "value": "Update Twitter4JClient interface to be public\n\nSee #135 for context" }, { "from": "human", "value": "/**\n * Copyright 2013 Twitter, Inc.\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": "Support sidebar and related articles\n" }, { "from": "human", "value": "package org.mnode.whistlepost.model;\n\nimport org.apache.sling.api.SlingHttpServletRequest;\nimport org.apache.sling.api.resource.Resource;\nimport org.apache.sling.models.annotations.Model;\n\...
java
chosen
[ { "from": "system", "value": "Use the module name as the title\n" }, { "from": "human", "value": "package com.qubling.sidekick;\n\nimport com.qubling.sidekick.metacpan.result.Module;\nimport com.qubling.sidekick.widget.ModuleHelper;\n\nimport android.app.Activity;\nimport android.content.Intent;...
java
chosen
[ { "from": "system", "value": "Fix typo in search listener\n" }, { "from": "human", "value": "package com.uservoice.uservoicesdk.ui;\n\nimport android.widget.SearchView;\n\nimport com.uservoice.uservoicesdk.activity.SearchActivity;\n\npublic class SearchQueryListener implements SearchView.OnQuery...
java
chosen
[ { "from": "system", "value": "Use new css selector to get longUrl attribute for google service call\n" }, { "from": "human", "value": "/**\n * Copyright (C) 2012 Gist Labs, LLC. (http://gistlabs.com)\n *\n * This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0....
java
chosen
[ { "from": "system", "value": "Use public instead of protected, dummy.\n" }, { "from": "human", "value": "package ca.corefacility.bioinformatics.irida.web.controller.test.integration.util;\n\npublic class ITestSystemProperties {\n\tpublic static final String APP_PORT = System.getProperty(\"jetty....
java
chosen
[ { "from": "system", "value": "Disable testcase3 with child node edgecase\n" }, { "from": "human", "value": "package io.apiman.plugins.transformation_policy.transformer;\r\n\r\nimport java.io.IOException;\r\n\r\nimport org.apache.commons.io.IOUtils;\r\nimport org.custommonkey.xmlunit.XMLTestCase;...
java
chosen
[ { "from": "system", "value": "Upgrade testsuite to JUnit 4's @RunWith(Suite.class)\n\nThis is in preparation for j2cl where this will be the norm.\n" }, { "from": "human", "value": "/*\n * Copyright 2007 Google Inc.\n * \n * Licensed under the Apache License, Version 2.0 (the \"License\"); you m...
java
chosen
[ { "from": "system", "value": "Integrate the hashtable Unit testcases.\n\n* tests/AllTests.java (suite): added HashtableTests\n\n\ngit-svn-id: f8a4e5e023278da1e04e203c7fe051e3c4285d88@841026 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "human", "value": "/**\n * ==========================...
java
chosen
[ { "from": "system", "value": "Add parameter documentation to the even emitter\n" }, { "from": "human", "value": "package im.vector;\n\n\nimport android.os.Handler;\nimport android.os.Looper;\n\nimport org.matrix.androidsdk.util.Log;\n\nimport java.util.HashSet;\nimport java.util.Set;\n\npublic c...
java
chosen
[ { "from": "system", "value": "Handle correct timezone when retrieving the daily schedule with a specific time.\n" }, { "from": "human", "value": "package foodtruck.server.resources;\n\nimport javax.ws.rs.GET;\nimport javax.ws.rs.Path;\nimport javax.ws.rs.Produces;\nimport javax.ws.rs.QueryParam;...
java
chosen
[ { "from": "system", "value": "Rename local variable xhtml->html as reviki no longer renders to xhtml\n\nhttps://bugs.corefiling.com/show_bug.cgi?id=40263\n" }, { "from": "human", "value": "/**\n * Copyright 2008 Matthew Hillsdon\n *\n * Licensed under the Apache License, Version 2.0 (the \"Licen...
java
chosen
[ { "from": "system", "value": "Add test condition to GeodesyML unmarshall test.\n" }, { "from": "human", "value": "package au.gov.ga.geodesy.support.moxy;\n\nimport java.io.InputStreamReader;\nimport java.io.Reader;\n\nimport org.testng.annotations.Test;\n\nimport au.gov.xml.icsm.geodesyml.v_0_2_...
java
chosen
[ { "from": "system", "value": "Add a register method for plugins" }, { "from": "human", "value": "package io.github.Cnly.BusyInv.BusyInv;\n\nimport io.github.Cnly.BusyInv.BusyInv.listeners.BusyListener;\n\nimport org.bukkit.Bukkit;\nimport org.bukkit.event.HandlerList;\nimport org.bukkit.plugin.j...
java
chosen
[ { "from": "system", "value": "Return the transport not the channel handler.\n" }, { "from": "human", "value": "/*\n * Copyright 2012-2014 TORCH GmbH\n *\n * This file is part of Graylog2.\n *\n * Graylog2 is free software: you can redistribute it and/or modify\n * it under the terms of the GNU G...
java
chosen
[ { "from": "system", "value": "Change this to use Clock in case people are relying on this function to advance the Clock abstraction\n" }, { "from": "human", "value": "package org.threadly.test.concurrent;\n\n/**\n * Generic tools to be used in unit testing.\n * \n * @author jent - Mike Jensen\n ...
java
chosen
[ { "from": "system", "value": "Add license header to file that needs it\n" }, { "from": "human", "value": "package nom.bdezonia.zorbage.type.algebra;\n\nimport nom.bdezonia.zorbage.type.data.bigdec.HighPrecisionMember;\n\n/**\n * \n * @author Barry DeZonia\n *\n */\npublic interface HighPrecRepre...
java
chosen
[ { "from": "system", "value": "Make sure App Id is not set for test\n" }, { "from": "human", "value": "package com.plnyyanks.tba.apiv2.test;\n\nimport com.plnyyanks.tba.apiv2.APIv2Helper;\nimport com.plnyyanks.tba.apiv2.interfaces.APIv2;\n\nimport org.junit.Before;\nimport org.junit.Test;\n\n/**\...
java
chosen
[ { "from": "system", "value": "Fix typo in FXML file name\n" }, { "from": "human", "value": "package com.gitrekt.resort.controller;\n\nimport java.net.URL;\nimport java.util.ResourceBundle;\nimport javafx.fxml.FXML;\nimport javafx.fxml.Initializable;\nimport javafx.scene.control.Button;\n\n/**\n ...
java
chosen
[ { "from": "system", "value": "Add test to Match class.\n" }, { "from": "human", "value": "package com.arles.swissmanager.test.algorithm;\n\n/**\n * Created by Admin on 04.08.2015.\n */\npublic class MatchTest {\n}\n" }, { "from": "gpt", "value": "package com.arles.swissmanager.test.a...
java
chosen
[ { "from": "system", "value": "Remove junit package (included by mistake)" }, { "from": "human", "value": "package com.jasonlam604.stocktechnicals.indicators;\n\nimport java.util.Arrays;\n\nimport org.junit.Test;\n\nimport com.jasonlam604.stocktechnicals.util.NumberFormatter;\n\n/**\n * Simple Mo...
java
chosen
[ { "from": "system", "value": "Add a sample of setParallaxOffset().\n" }, { "from": "human", "value": "package me.yokeyword.sample.demo_wechat.base;\n\nimport android.support.v7.widget.Toolbar;\nimport android.view.View;\n\nimport me.yokeyword.fragmentation_swipeback.SwipeBackFragment;\nimport me...
java
chosen
[ { "from": "system", "value": "Clean up imports of factory class\n" }, { "from": "human", "value": "/*\n * Copyright 2016-2019 Stefan Kalscheuer\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 m...
java
chosen
[ { "from": "system", "value": "Switch void filters to make them work correcty\n" }, { "from": "human", "value": "package in.twizmwaz.cardinal.module.modules.filter.type;\n\nimport in.twizmwaz.cardinal.GameHandler;\nimport in.twizmwaz.cardinal.module.modules.filter.FilterModule;\nimport in.twizmwa...
java
chosen
[ { "from": "system", "value": "Add a newline to a long error message\n" }, { "from": "human", "value": "package beaform.commands;\n\nimport org.neo4j.graphdb.ConstraintViolationException;\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\n\nimport beaform.dao.FormulaDAO;\nimport beaform....
java
chosen
[ { "from": "system", "value": "Fix some Bugs and revert the PacketManager. Release it now as a different version.\n\nFormer-commit-id: 0ea26aa800e5ea8d05dc5882ecba6158e23f50ec [formerly 0c98ac05766874a1f0bdfd3b9e55afd70c99fa16]\nFormer-commit-id: b2abba01076fed7c368e7ebc8edc06a82ec490ae" }, { "from":...
java
chosen
[ { "from": "system", "value": "Fix bug when creating a cache request responses to convert had failed.\n" }, { "from": "human", "value": "package com.yo1000.vis.component.scheduler;\n\nimport com.yo1000.vis.model.data.RequestHistory;\nimport com.yo1000.vis.model.service.RequestHistoryService;\nimp...
java
chosen
[ { "from": "system", "value": "Set retrofit log level according to build config\n" }, { "from": "human", "value": "package fr.utc.assos.uvweb.api;\n\nimport java.util.List;\n\nimport fr.utc.assos.uvweb.model.Newsfeed;\nimport fr.utc.assos.uvweb.model.UvDetail;\nimport fr.utc.assos.uvweb.model.UvL...
java
chosen
[ { "from": "system", "value": "Add some javadoc. Detect if the limit is a negative number. Extract method for processing the limit value as a numeric.\n" }, { "from": "human", "value": "package uk.ac.ebi.quickgo.ontology.coterms;\n\n/**\n * @author Tony Wardell\n * Date: 29/09/2016\n * Time: 16:0...
java
chosen
[ { "from": "system", "value": "Update namespace quota action test to match new constructor\n" }, { "from": "human", "value": "package com.emc.ecs.managementClient;\n\nimport static org.junit.Assert.*;\n\nimport org.junit.After;\nimport org.junit.Before;\nimport org.junit.Test;\n\nimport com.emc.e...
java
chosen
[ { "from": "system", "value": "Add null check as per request from Joel\n" }, { "from": "human", "value": "/*\n *\n * Copyright (c) 2004 by VASSAL team\n *\n * This library is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Library General Public\n * License ...
java
chosen
[ { "from": "system", "value": "Fix the crash while running web.about module alone\n" }, { "from": "human", "value": "package net.wequick.example.small.web.about;\n\nimport android.support.v7.app.AppCompatActivity;\nimport android.os.Bundle;\n\nimport net.wequick.small.Small;\n\npublic class MainA...
java
chosen
[ { "from": "system", "value": "Reimplement CompositeDocumentationProvider building so that it can be cached\n\nGitOrigin-RevId: 424ed3d9dd2e37601eb808304b2c91db795e9f94" }, { "from": "human", "value": "/*\n * Copyright 2000-2009 JetBrains s.r.o.\n *\n * Licensed under the Apache License, Version ...
java
chosen
[ { "from": "system", "value": "Fix IT Tests : Avoid NPE\n" }, { "from": "human", "value": "package alien4cloud.it;\n\nimport org.junit.Ignore;\nimport org.junit.runner.RunWith;\n\nimport cucumber.api.CucumberOptions;\nimport cucumber.api.junit.Cucumber;\n\n@RunWith(Cucumber.class)\n@CucumberOptio...
java
chosen
[ { "from": "system", "value": "Fix test which didn't compile\n\n\ngit-svn-id: 9326b53cbc4a8f4c3d02979b62b178127d5150fe@1158 c7d0bf07-ec0d-0410-b2cc-d48fa9be22ba\n" }, { "from": "human", "value": "\npackage jsr181.jaxb.globalweather;\n\nimport javax.jws.WebService;\nimport javax.jws.soap.SOAPBindi...
java
chosen
[ { "from": "system", "value": "Make sure JVM doesn't shutdown from command line\n" }, { "from": "human", "value": "package org.obolibrary.robot;\n\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\nimport py4j.GatewayServer;\n\n/**\n * Starts a gateway server for Py4J to execute ROBOT op...
java
chosen
[ { "from": "system", "value": "Add space after copyright symbol in description.\n" }, { "from": "human", "value": "package ru.ming13.muzei.earthview.api;\n\nimport android.support.annotation.NonNull;\nimport android.util.Base64;\n\nimport java.util.Locale;\n\nimport ru.ming13.muzei.earthview.mode...
java
chosen
[ { "from": "system", "value": "Remove unnecessary access modifiers from nested private class\n" }, { "from": "human", "value": "package com.ibm.mil.smartringer;\n\nimport android.content.BroadcastReceiver;\nimport android.content.Context;\nimport android.content.Intent;\nimport android.telephony....
java
chosen
[ { "from": "system", "value": "Revert \"Revert \"Started the sort method\"\"\n\nThis reverts commit 30061f6de74fdec4a7e818ac38712c39e68671a2.\n" }, { "from": "human", "value": "\npublic class Sort {\n\n}\n" }, { "from": "gpt", "value": "\npublic class Sort {\n\tpublic enum DIRECTION {...
java
chosen
[ { "from": "system", "value": "Delete FirebaseApp on server shutdown\n" }, { "from": "human", "value": "package com.google.slurp.servlets;\n\nimport java.io.IOException;\nimport javax.servlet.ServletContextEvent;\nimport javax.servlet.ServletContextListener;\nimport javax.servlet.annotation.WebLi...
java
chosen
[ { "from": "system", "value": "Disable test that calls System.exit\n" }, { "from": "human", "value": "package com.netflix.governator;\n\nimport java.util.concurrent.Executors;\nimport java.util.concurrent.TimeUnit;\nimport java.util.concurrent.atomic.AtomicInteger;\n\nimport javax.annotation.Post...
java
chosen
[ { "from": "system", "value": "Add missing test\nRe-arrange to try and make it easier to see what is what\n\ngit-svn-id: 79cef5a5a257cc9dbe40a45ac190115b4780e2d0@799384 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "human", "value": "package org.apache;\n\nimport org.apache.catalina.ha.ses...
java
chosen
[ { "from": "system", "value": "Fix unused variable and missing end newline\n\nFix a few diffs lost in pre-submission testing shuffle.\n\n-------------\nCreated by MOE: https://github.com/google/moe\nMOE_MIGRATED_REVID=148222135\n" }, { "from": "human", "value": "// Copyright 2017 The Nomulus Auth...
java
chosen
[ { "from": "system", "value": "Add utility method to get attribute value" }, { "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.xdi.ldap.model;\n\nimport j...
java
chosen
[ { "from": "system", "value": "Add missing fields in view.state.values\n" }, { "from": "human", "value": "package com.slack.api.model.view;\n\nimport com.slack.api.model.block.composition.PlainTextObject;\nimport lombok.AllArgsConstructor;\nimport lombok.Builder;\nimport lombok.Data;\nimport lomb...
java
chosen