conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Add missing license header to test\n" }, { "from": "human", "value": "package org.lable.oss.dynamicconfig.core;\n\nimport org.junit.Test;\n\nimport static org.hamcrest.Matchers.nullValue;\nimport static org.hamcrest.core.Is.is;\nimport static org.junit.Assert.assert...
java
chosen
[ { "from": "system", "value": "Set default log level to WARN, to avoid excessive INFO log from ZK\n" }, { "from": "human", "value": "// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\npackage com.yahoo.vespa.zookeeper.cli;\n\nimport com.yahoo...
java
chosen
[ { "from": "system", "value": "Extend base class to reduce boilerplate code\n" }, { "from": "human", "value": "package org.fxmisc.richtext.demo.richtext;\n\nimport java.util.Optional;\n\nimport org.fxmisc.richtext.model.SegmentOps;\n\npublic class LinkedImageOps<S> implements SegmentOps<LinkedIma...
java
chosen
[ { "from": "system", "value": "Add test for the main\n" }, { "from": "human", "value": "\nimport static org.junit.Assert.*;\nimport org.junit.Test;\n\nimport static org.junit.Assert.assertEquals;\n\npublic class TetrisTest\n{\n @Test\n public void shouldReturnTwo()\n {\n //assertE...
java
chosen
[ { "from": "system", "value": "Load build config from correct class loader\n" }, { "from": "human", "value": "package io.quarkus.runtime.configuration;\n\nimport java.io.IOError;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.InputStreamReader;\nimport java.nio.charset....
java
chosen
[ { "from": "system", "value": "Add tag with style and improve linktag for xml encoder\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 ope...
java
chosen
[ { "from": "system", "value": "Revert the type check and add a clarifying comment for its non-obviousness\n\nFixes #5\n" }, { "from": "human", "value": "// Copyright © 2011-2018, Esko Luontola <www.orfjackal.net>\n// This software is released under the Apache License 2.0.\n// The license text is ...
java
chosen
[ { "from": "system", "value": "Fix use of raw generics\n" }, { "from": "human", "value": "/*\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 copy of the License at\n *\n * http://ww...
java
chosen
[ { "from": "system", "value": "Update game constants in Java starter kit\n" }, { "from": "human", "value": "public class Constants {\n public static final int PLANETS_PER_PLAYER = 6;\n public static final int EXTRA_PLANETS = 4;\n\n public static final int DRAG = 3;\n public static fin...
java
chosen
[ { "from": "system", "value": "Change location of Open Data Folder action to @user.home/Documents/Archi\n" }, { "from": "human", "value": "/**\r\n * This program and the accompanying materials\r\n * are made available under the terms of the License\r\n * which accompanies this distribution in the...
java
chosen
[ { "from": "system", "value": "Add TODO when PAX CDI will support global interceptors\n" }, { "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 additiona...
java
chosen
[ { "from": "system", "value": "Set type for general datatype." }, { "from": "human", "value": "package de.uni_stuttgart.vis.vowl.owl2vowl.model.nodes.datatypes;\n\nimport de.uni_stuttgart.vis.vowl.owl2vowl.export.JsonGeneratorVisitor;\nimport de.uni_stuttgart.vis.vowl.owl2vowl.model.nodes.BaseNod...
java
chosen
[ { "from": "system", "value": "Cover the legacy-style parameter resolution with tests\n" }, { "from": "human", "value": "package com.codicesoftware.plugins.hudson.util;\n\nimport hudson.model.BooleanParameterValue;\nimport hudson.model.ParameterValue;\nimport hudson.model.StringParameterValue;\ni...
java
chosen
[ { "from": "system", "value": "Make locks tables begin with _locks_, not just _locks\n" }, { "from": "human", "value": "/**\n * Copyright 2016 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 *...
java
chosen
[ { "from": "system", "value": "Include Chromium in the browser enum for conditional disabling\n" }, { "from": "human", "value": "/*\n * (C) Copyright 2021 Boni Garcia (http://bonigarcia.github.io/)\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this ...
java
chosen
[ { "from": "system", "value": "Remove hard coded version from package JavaDoc\n\ngit-svn-id: 0504523afcbcb96d4685eab89810948fa7b5e19d@1786656 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "human", "value": "/**\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * cont...
java
chosen
[ { "from": "system", "value": "Test for Commit, testing message initialization\n" }, { "from": "human", "value": "package de.fau.osr.core.vcs.base;\n\nimport org.junit.Test;\n\nimport static org.junit.Assert.*;\n\n/**\n * Created by Rajab Kaoneka on 18.05.2015.\n */\npublic class CommitTest {\n\n...
java
chosen
[ { "from": "system", "value": "Set stage to maximized screen\n" }, { "from": "human", "value": "package GUI;\n\nimport javafx.application.Application;\nimport javafx.fxml.FXMLLoader;\nimport javafx.scene.Scene;\nimport javafx.scene.layout.AnchorPane;\nimport javafx.stage.Stage;\n\nimport java.io....
java
chosen
[ { "from": "system", "value": "Revert D6139620: [redex] Fix line_map tests\n\nSummary:\nThis reverts commit 120d0731995f10ef4969d06cd9109c0585107ac2\n\nbypass-lint\n\nDifferential Revision: D6139620\n\nfbshipit-source-id: 59ed38a5e980f7684ad413d8d77bf89a0f180070\n" }, { "from": "human", "value": ...
java
chosen
[ { "from": "system", "value": "Revert to original solution for vcf type determination\n" }, { "from": "human", "value": "package com.hartwig.healthchecks.nesbit.extractor;\n\nimport com.hartwig.healthchecks.nesbit.model.VCFType;\n\nimport org.jetbrains.annotations.NotNull;\n\nfinal class VCFExtra...
java
chosen
[ { "from": "system", "value": "Allow root access for mock jdk in introduce variable test\n" }, { "from": "human", "value": "package org.jetbrains.plugins.scala.refactoring.introduceVariable;\n\nimport com.intellij.openapi.module.Module;\nimport com.intellij.openapi.module.ModuleManager;\nimport c...
java
chosen
[ { "from": "system", "value": "Fix xml tags for ingredients\n" }, { "from": "human", "value": "// SPDX-License-Identifier: MIT\n\npackage mealplaner.io.xml.model.v3;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\nimport javax.xml.bind.annotation.XmlAccessType;\nimport javax.xml.bind.an...
java
chosen
[ { "from": "system", "value": "Fix typo in method name" }, { "from": "human", "value": "\npublic class ShipMarket extends Market {\n\tList<Ship> ships;\n\tpublic void dissassembleShip() {\n\t\t\n\t}\n\tpublic void buyShip(Ship selectedShip) {\n\t\t\n\t}\n}\n" }, { "from": "gpt", "valu...
java
chosen
[ { "from": "system", "value": "Add player name to log about portal disabling\n" }, { "from": "human", "value": "package net.simpvp.Portals;\n\nimport java.util.ArrayList;\n\nimport org.bukkit.Material;\nimport org.bukkit.block.Block;\nimport org.bukkit.event.EventHandler;\nimport org.bukkit.event...
java
chosen
[ { "from": "system", "value": "Make a correction to how the event link is created\n" }, { "from": "human", "value": "// 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 copy of the License a...
java
chosen
[ { "from": "system", "value": "Update the Operator with the new Classe ConversionOperatos\n" }, { "from": "human", "value": "package org.javamoney.moneybook.chapter.three;\n\nimport org.javamoney.moneta.Money;\nimport org.javamoney.moneta.function.MonetaryOperators;\n\nimport javax.money.Currency...
java
chosen
[ { "from": "system", "value": "Modify DynamoDBMapperFactory to return PUT configured mappers\n\nThe default behavior now throws a DynamoDBMappingException on DEFAULT\nSaveBehavior. Update the integration tests to run against PUT instead.\n" }, { "from": "human", "value": "/*\n * Copyright 2015 Am...
java
chosen
[ { "from": "system", "value": "Add end of line character" }, { "from": "human", "value": "/**\n * Copyright (c) 2018, RTE (http://www.rte-france.com)\n * This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n *...
java
chosen
[ { "from": "system", "value": "fix(date): Update date for new study year\n" }, { "from": "human", "value": "package com.ssu.schedule.model;\n\npublic class Day {\n private String start = \"01.09.2016\";\n private String end = \"01.07.2017\";\n private int weekday;\n\n private int week...
java
chosen
[ { "from": "system", "value": "Fix incorrect specialized type parameter\n" }, { "from": "human", "value": "package org.spoofax.jsglr2.imploder;\n\nimport org.spoofax.interpreter.terms.IStrategoTerm;\nimport org.spoofax.jsglr2.parseforest.hybrid.HybridParseForest;\n\npublic class NullParseForestSt...
java
chosen
[ { "from": "system", "value": "Add Subscriber dependency to droninit\n" }, { "from": "human", "value": "package org.inaetics.dronessimulator.drone.droneinit;\n\nimport org.apache.felix.dm.DependencyActivatorBase;\nimport org.apache.felix.dm.DependencyManager;\nimport org.inaetics.dronessimulator....
java
chosen
[ { "from": "system", "value": "Update src to read top level metatags for android\n" }, { "from": "human", "value": "package org.apache.cordova.appsettings;\n\nimport java.util.Locale;\n\nimport org.apache.cordova.CallbackContext;\nimport org.apache.cordova.CordovaPlugin;\nimport org.json.JSONArra...
java
chosen
[ { "from": "system", "value": "Change ordinal from 150 to 270 in Vault config source\n" }, { "from": "human", "value": "package io.quarkus.vault.runtime.config;\n\nimport java.util.Arrays;\n\nimport org.eclipse.microprofile.config.spi.ConfigSource;\nimport org.eclipse.microprofile.config.spi.Conf...
java
chosen
[ { "from": "system", "value": "Fix a bug in cancel order request.\n" }, { "from": "human", "value": "package com.xeiam.xchange.cointrader.dto.trade;\n\nimport com.fasterxml.jackson.annotation.JsonProperty;\nimport com.fasterxml.jackson.databind.annotation.JsonSerialize;\nimport com.fasterxml.jack...
java
chosen
[ { "from": "system", "value": "Fix SpongeAnvilGUI so that it actually extends a calss that exists.\n" }, { "from": "human", "value": "package io.musician101.musicianlibrary.java.minecraft.sponge.gui.anvil;\n\nimport io.musician101.musicianlibrary.java.minecraft.config.AbstractConfig;\nimport io.m...
java
chosen
[ { "from": "system", "value": "Use thenShowInternal on action condition to avoid visibility colision\n" }, { "from": "human", "value": "package fr.openwide.core.wicket.more.markup.html.template.js.jquery.plugins.bootstrap.confirm.component;\n\nimport org.apache.wicket.model.IModel;\n\nimport fr.o...
java
chosen
[ { "from": "system", "value": "Remove trailing newline as it seems to break the ossifier\n" }, { "from": "human", "value": "/*\n * Copyright 2010-2020 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...
java
chosen
[ { "from": "system", "value": "Fix copy constructor of SharedLinkBoxSession\n" }, { "from": "human", "value": "package com.box.androidsdk.content.models;\n\nimport android.content.Context;\n\nimport java.util.ArrayList;\n\n/**\n * Session created from a shared link.\n */\npublic class BoxSharedLi...
java
chosen
[ { "from": "system", "value": "Make this a subclass of Thread.\n\n\ngit-svn-id: fcb33a7ee5ec38b96370833547f088a4e742b712@969 c76caeb1-94fd-44dd-870f-0c9d92034fc1\n" }, { "from": "human", "value": "// Copyright (c) 1999 Brian Wellington (bwelling@xbill.org)\n// Portions Copyright (c) 1999 Network ...
java
chosen
[ { "from": "system", "value": "Use the DObjectFactory to move DObjects over the wire.\n\n\ngit-svn-id: a1a4b28b82a3276cc491891159dd9963a0a72fae@7 542714f4-19e9-0310-aa3c-eee0fc999fb1\n" }, { "from": "human", "value": "//\n// $Id: ObjectResponse.java,v 1.2 2001/05/23 04:03:40 mdb Exp $\n\npackage ...
java
chosen
[ { "from": "system", "value": "Add Mongo host info to info endpoint\n" }, { "from": "human", "value": "package com.example.voter;\n\nimport org.springframework.boot.actuate.info.Info;\nimport org.springframework.boot.actuate.info.InfoContributor;\nimport org.springframework.stereotype.Component;\...
java
chosen
[ { "from": "system", "value": "Test commit: correct username now?" }, { "from": "human", "value": "package hello;\r\n\r\nimport javax.persistence.Entity;\r\nimport javax.persistence.GeneratedValue;\r\nimport javax.persistence.Id;\r\n\r\nimport org.hibernate.annotations.GenericGenerator;\r\n\r\n@E...
java
chosen
[ { "from": "system", "value": "Use the correct main for cancel job\n" }, { "from": "human", "value": "package com.ibm.streamsx.rest;\n\nimport java.io.IOException;\nimport java.math.BigInteger;\n\nimport com.ibm.streamsx.topology.internal.streams.InvokeCancel;\n\nclass StreamsConnectionImpl exten...
java
chosen
[ { "from": "system", "value": "Make sql validators private static\n" }, { "from": "human", "value": "package com.yahoo.squidb.data;\n\nimport android.database.Cursor;\nimport android.database.sqlite.SQLiteDatabase;\nimport android.os.Build.VERSION;\nimport android.os.Build.VERSION_CODES;\n\nimpor...
java
chosen
[ { "from": "system", "value": "Remove the not needed import" }, { "from": "human", "value": "package com.esotericsoftware.kryo.pool;\n\nimport java.lang.ref.SoftReference;\nimport java.util.Queue;\n\nimport com.esotericsoftware.kryo.Kryo;\n\n/**\n * A simple {@link Queue} based {@link KryoPool} i...
java
chosen
[ { "from": "system", "value": "Add statuses according to APIS-238\n" }, { "from": "human", "value": "package com.youcruit.onfido.api.webhook;\n\nimport com.google.gson.annotations.SerializedName;\n\npublic enum Status {\n @SerializedName(\"completed\")\n COMPLETED;\n}\n" }, { "from"...
java
chosen
[ { "from": "system", "value": "Change key attribute to private after Jongo version changes\n" }, { "from": "human", "value": "/*\n * Copyright 2013 - Elian ORIOU\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the L...
java
chosen
[ { "from": "system", "value": "Update module descriptor for in-module testing\n" }, { "from": "human", "value": "open /*test*/ module com.github.sormuras.bach {\n exports com.github.sormuras.bach;\n exports com.github.sormuras.bach.module;\n exports com.github.sormuras.bach.tool;\n\n requires...
java
chosen
[ { "from": "system", "value": "Add test de some de vetores" }, { "from": "human", "value": "package test;\n\nimport static org.junit.Assert.assertEquals;\n\nimport java.util.HashMap;\nimport java.util.Map;\n\nimport org.junit.After;\nimport org.junit.Before;\nimport org.junit.Test;\n\nimport proc...
java
chosen
[ { "from": "system", "value": "Fix the bug that allowed to type more than one period in a float number.\n" }, { "from": "human", "value": "package gui_elements;\n\nimport javafx.scene.control.TextField;\nimport javafx.scene.input.KeyEvent;\n\n\n/**\n *\n */\npublic class FloatField extends TextFi...
java
chosen
[ { "from": "system", "value": "Add regex expression for food truck query so that admin servlet can be reached on dev server.\n" }, { "from": "human", "value": "package foodtruck.server;\n\nimport com.google.inject.Provides;\nimport com.google.inject.name.Named;\nimport com.google.inject.servlet.S...
java
chosen
[ { "from": "system", "value": "Remove incorrect check for LCL\n" }, { "from": "human", "value": "package me.nallar.modpatcher;\n\nimport me.nallar.javatransformer.api.JavaTransformer;\n\nclass ModPatcherLoadHook {\n\tprivate static final int API_VERSION = 0; //Keep in sync with version in ModPatc...
java
chosen
[ { "from": "system", "value": "Add in test for MultipleIndexCommandUtil\n" }, { "from": "human", "value": "package seedu.ezdo.commons.core;\n\nimport static org.junit.Assert.assertNotNull;\n\nimport org.junit.Test;\n\nimport seedu.ezdo.commons.util.CollectionUtil;\nimport seedu.ezdo.commons.util....
java
chosen
[ { "from": "system", "value": "Set the max cores/max procs per job to a reasonable value.\n" }, { "from": "human", "value": "package com.breakersoft.plow.dispatcher;\n\nimport java.util.concurrent.atomic.AtomicBoolean;\n\npublic class DispatchConfig {\n\n /*\n * Maximum number of processes...
java
chosen
[ { "from": "system", "value": "Fix nullptr exception when input to filter is null\n\nIt is allowed for some fields to be left empty. And to allow\nsmooth handling of input we should silently ignore null fields\nwhen we try to escape. The real input check is done elsewhere.\n" }, { "from": "human", ...
java
chosen
[ { "from": "system", "value": "Use out with out, err with err.\n" }, { "from": "human", "value": "/**\n * Copyright 2010 The PlayN Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not\n * use this file except in compliance with the License. You may obtain ...
java
chosen
[ { "from": "system", "value": "Add statements for round 4\n" }, { "from": "human", "value": "/**\n * This package contains <i>GD-team</i> solutions (up-solvings) for the forth round of Open Cup 2013 autumn-session.\n * <p/>\n * The whole schedule of 2013 autumn-session is here:\n * <a href=\"http...
java
chosen
[ { "from": "system", "value": "Add /op to spam-prevented commands\n" }, { "from": "human", "value": "package org.c4k3.NoSpam;\r\n\r\nimport org.bukkit.entity.Player;\r\nimport org.bukkit.event.EventHandler;\r\nimport org.bukkit.event.EventPriority;\r\nimport org.bukkit.event.Listener;\r\nimport o...
java
chosen
[ { "from": "system", "value": "Convert anonymous class to lambda\n" }, { "from": "human", "value": "/*\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 copy of the License at\n *\n * ...
java
chosen
[ { "from": "system", "value": "Add temporary fix to shallow copy bug\n\nThis results in an unsafe environment, as you will have write access when requesting read only\nAdded TODO\n" }, { "from": "human", "value": "package transaction;\n\npublic class ShallowLock<T> extends Lock<T> {\n\n\tpublic S...
java
chosen
[ { "from": "system", "value": "Select querry implementation with meta data\n" }, { "from": "human", "value": "import java.sql.Connection;\nimport java.sql.PreparedStatement;\nimport java.sql.ResultSet;\nimport java.sql.ResultSetMetaData;\nimport java.sql.SQLException;\n\npublic class SelectValues...
java
chosen
[ { "from": "system", "value": "Reformat and correct keyPress call\n" }, { "from": "human", "value": "package com.opera.core.systems;\n\nimport java.util.List;\n\nimport org.junit.Test;\n\nimport com.opera.core.systems.scope.protos.SystemInputProtos.ModifierPressed;\n\npublic class QuickWidgetTest...
java
chosen
[ { "from": "system", "value": "Use the system default LAF.\n" }, { "from": "human", "value": "package gui;\n\nimport gui.window.listener.GraphyWindowListener;\n\nimport java.awt.BorderLayout;\n\nimport javax.swing.ImageIcon;\nimport javax.swing.JFrame;\n\npublic class MainWindow extends JFrame\n{...
java
chosen
[ { "from": "system", "value": "Save date and name to CSV output\n" }, { "from": "human", "value": "import java.io.*;\n\n\npublic class Stat {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\t//Test\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System...
java
chosen
[ { "from": "system", "value": "Test for max of franke function\n" }, { "from": "human", "value": "package com.sigopt.example;\n\nimport org.junit.Test;\n\nimport static org.junit.Assert.assertTrue;\n\npublic class FrankeTest {\n @Test\n public void evaluate() throws Exception {\n assertTrue(...
java
chosen
[ { "from": "system", "value": "Throw an exception if a bad level cap was passed.\n" }, { "from": "human", "value": "package dnss.model;\n\npublic class SP {\n private int[] sp;\n\n public int[] getSp() {\n return sp;\n }\n\n public void setSp(int[] sp) {\n this.sp = sp;\...
java
chosen
[ { "from": "system", "value": "Comment out tests unitil we get them to work with SSL\n\n\nSVN-Revision: 2967\n" }, { "from": "human", "value": "package web.alltests;\n\nimport web.*;\nimport web.allwebtests.*;\nimport junit.framework.Test;\nimport junit.framework.TestCase;\nimport junit.framework...
java
chosen
[ { "from": "system", "value": "Revert \"Throw FilterException instead of ApplicationException when allocated sequence counter is starved\"\n\nThis reverts commit 82c7964ae1abb805a63aeed677afa2979f573137.\n" }, { "from": "human", "value": "package org.bricolages.streaming.filter;\n\nimport org.bri...
java
chosen
[ { "from": "system", "value": "Set layers default project to null (same way as addon's Vaadin 6 version works)\n" }, { "from": "human", "value": "package org.vaadin.vol.client;\n\nimport com.vaadin.shared.AbstractComponentState;\nimport com.vaadin.shared.annotations.DelegateToWidget;\n\npublic cl...
java
chosen
[ { "from": "system", "value": "Correct indentation for application configuration\n" }, { "from": "human", "value": "package com.pm.server;\n\nimport org.springframework.boot.SpringApplication;\nimport org.springframework.boot.autoconfigure.SpringBootApplication;\nimport org.springframework.boot.b...
java
chosen
[ { "from": "system", "value": "Add Util class\nAdd main class\nAdd BlockListener class\n" }, { "from": "human", "value": "package com.rdalambic.libertyprivate;\n\nimport org.bukkit.plugin.java.JavaPlugin;\n\npublic final class LibertyPrivate extends JavaPlugin {\n\n}\n" }, { "from": "gpt"...
java
chosen
[ { "from": "system", "value": "Make abstract or it run\n" }, { "from": "human", "value": "/**\n * \n */\npackage org.javacc;\n\nimport junit.framework.TestCase;\n\n/**\n * An ancestor class to enable transition to a different directory structure.\n * \n * @author timp\n * @since 2 Nov 2007\n *\n ...
java
chosen
[ { "from": "system", "value": "Fix a bug in problem 4\n\nI guess I'm not a software engineer after all :)\n" }, { "from": "human", "value": "package programmertest;\n\nimport java.util.Arrays;\nimport java.util.Collections;\nimport java.util.List;\nimport java.util.stream.Collectors;\n\npublic cl...
java
chosen
[ { "from": "system", "value": "Use \"NO_PROXY\" for urls that are not proxied.\n" }, { "from": "human", "value": "package com.pr0gramm.app;\n\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\n\nimport java.io.IOException;\nimport java.net.InetSocketAddress;\nimport java.net.Proxy;\nimpo...
java
chosen
[ { "from": "system", "value": "Replace @Data by @Getter and @Setter\n" }, { "from": "human", "value": "package nl.homeserver.energie;\n\nimport java.math.BigDecimal;\n\nimport lombok.Data;\n\n@Data\npublic class VerbruikKostenOverzicht {\n\n private BigDecimal stroomVerbruikDal;\n private B...
java
chosen
[ { "from": "system", "value": "Update user repository to match removal of user approval logic.\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 th...
java
chosen
[ { "from": "system", "value": "Add constants for sound synthesis.\n" }, { "from": "human", "value": "package framework;\n\nimport java.util.ArrayList;\nimport framework.editors.SoundEditor;\n\n/**\n * Represents a sound entity.\n *\n * A sound is represented basically by a frequency and a duratio...
java
chosen
[ { "from": "system", "value": "Remove smurf naming in BreakBlockEvent\n\nSigned-off-by: Jadon Fowler <4c6f3310c854e278fcc8fd2569105b3ac7d05f0e@gmail.com>\n" }, { "from": "human", "value": "package org.fountainmc.api.event.world;\n\nimport org.fountainmc.api.event.CancellableBase;\nimport org.foun...
java
chosen
[ { "from": "system", "value": "Set stresstest flag to false\n" }, { "from": "human", "value": "package io.bitsquare.app;\n\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\n\npublic class DevFlags {\n private static final Logger log = LoggerFactory.getLogger(DevFlags.class);\n\n p...
java
chosen
[ { "from": "system", "value": "Make API urls public constants\n" }, { "from": "human", "value": "package com.simplenote.android;\n\n\npublic class Constants {\n\tpublic static final String PREFS_NAME = \"SimpleNotePrefs\";\n\tpublic static final String TAG = \"SimpleNote:\";\n\tpublic static fina...
java
chosen
[ { "from": "system", "value": "Update tests ControlModule and InputData\n" }, { "from": "human", "value": "package control;\n\nimport static org.junit.Assert.*;\n\nimport org.junit.Before;\nimport org.junit.Test;\n\nimport com.health.control.*;\n\npublic class ControlModuleTest {\n\tprivate Contr...
java
chosen
[ { "from": "system", "value": "Fix bug in start a thread more than one time\n" }, { "from": "human", "value": "import javax.mail.MessagingException;\nimport javax.mail.Store;\nimport java.util.concurrent.TimeoutException;\n\n/**\n * Created by yiwen on 6/6/16.\n */\npublic abstract class TimeoutC...
java
chosen
[ { "from": "system", "value": "Add territory_id property to organizations\n\nCloses #74\n\nChange-Id: I17379659d8fbc274ce9d824c08b9b92cc6b54ae3\n" }, { "from": "human", "value": "package oasis.model.directory;\n\nimport javax.annotation.Nonnull;\n\nimport com.fasterxml.jackson.annotation.JsonProp...
java
chosen
[ { "from": "system", "value": "Rename result file of a replay from `result.replay` to `replay.result`\n" }, { "from": "human", "value": "package de.retest.recheck;\n\nimport java.util.Set;\n\nimport de.retest.ui.DefaultValueFinder;\nimport de.retest.ui.descriptors.RootElement;\n\n/**\n * Interfac...
java
chosen
[ { "from": "system", "value": "Remove the old config register call" }, { "from": "human", "value": "package info.u_team.u_team_core;\n\nimport org.apache.logging.log4j.*;\n\nimport info.u_team.u_team_core.intern.config.ClientConfig;\nimport info.u_team.u_team_core.util.annotation.AnnotationManage...
java
chosen
[ { "from": "system", "value": "Add ability to update the votes for an answer in the poll\n\nThis is needed by the app so we can update poll results after voting without needing to redownload the whole page\n" }, { "from": "human", "value": "package api.forum.thread;\n\n/**\n * The Class Answer.\n...
java
chosen
[ { "from": "system", "value": "Use single Executor for all tests\n\n... so it doesn't leak for every test." }, { "from": "human", "value": "/**\n * Copyright 2014 Netflix, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not\n * use this file except in compli...
java
chosen
[ { "from": "system", "value": "Add default DateTimeFormat to parse/format DateTimes in UTC (ISO8601)\n" }, { "from": "human", "value": "package com.vnadgir.hal;\n\nimport com.theoryinpractise.halbuilder.api.RepresentationFactory;\nimport com.theoryinpractise.halbuilder.standard.StandardRepresenta...
java
chosen
[ { "from": "system", "value": "Add test case for proxy bug.\n" }, { "from": "human", "value": "package com.thoughtworks.acceptance;\n\nimport com.thoughtworks.acceptance.objects.SampleDynamicProxy;\n\npublic class DynamicProxyTest extends AbstractAcceptanceTest {\n\n public void testDynamicPro...
java
chosen
[ { "from": "system", "value": "Fix update \"WHERE WHERE\" bug.\n" }, { "from": "human", "value": "package ollie.internal;\n\nimport android.content.ContentValues;\nimport android.database.Cursor;\nimport android.database.sqlite.SQLiteDatabase;\nimport android.provider.BaseColumns;\nimport ollie.M...
java
chosen
[ { "from": "system", "value": "Modify custom_entrypoint Java app to listen to PORT env var\n\nPiperOrigin-RevId: 300161239\nChange-Id: I1c2fb380fc0b615a653107f0b612910c949d244c\n" }, { "from": "human", "value": "// Copyright 2020 Google LLC\n//\n// Licensed under the Apache License, Version 2.0 (...
java
chosen
[ { "from": "system", "value": "Make walletextension non-mandatory for now since it's not in use.\n" }, { "from": "human", "value": "package fi.bittiraha.walletd;\n\nimport org.bitcoinj.core.*;\nimport org.bitcoinj.kits.WalletAppKit;\nimport net.minidev.json.*;\nimport com.google.common.collect.Im...
java
chosen
[ { "from": "system", "value": "Remove IOException from execute() and query()\n" }, { "from": "human", "value": "package io.sigpipe.sing.query;\n\nimport java.io.IOException;\nimport java.util.List;\nimport java.util.Set;\n\nimport io.sigpipe.sing.dataset.feature.FeatureType;\nimport io.sigpipe.si...
java
chosen
[ { "from": "system", "value": "Fix total number of values printed\n" }, { "from": "human", "value": "// ****************************************************************\n// PowersOf2.java\n//\n// Print out as many powers of 2 as the user requests\n// \n// ****************************...
java
chosen
[ { "from": "system", "value": "Add shortcut method for obtaining the error\n" }, { "from": "human", "value": "/*\n * Copyright 2020, TeamDev. All rights reserved.\n *\n * Redistribution and use in source and/or binary forms, with or without\n * modification, must retain the above copyright notice...
java
chosen
[ { "from": "system", "value": "Use compact style java hash solution.\n" }, { "from": "human", "value": "/*\n * Problem: https://leetcode.com/problems/two-sum/\n *\n * @param {number[]} nums\n * @param {number} target\n * @return {number[]}\n */\npublic int[] twoSum(int[] numbers, int target) {\n ...
java
chosen
[ { "from": "system", "value": "Change door open/close detection to use trigger colliders\n" }, { "from": "human", "value": "package com.ezardlabs.lostsector.objects.environment;\n\nimport com.ezardlabs.dethsquare.Script;\nimport com.ezardlabs.lostsector.objects.Player;\n\npublic class Door extend...
java
chosen
[ { "from": "system", "value": "Implement basic put and get" }, { "from": "human", "value": "package com.darcycasselman.cachedemo;\n\npublic class LruCacheImpl implements LruCache {\n\n\t@Override\n\tpublic Object get(Object key) {\n\t\t// TODO Auto-generated method stub\n\t\treturn null;\n\t}\n\n...
java
chosen
[ { "from": "system", "value": "Increase delay between vomits from 1 to 2 seconds.\n" }, { "from": "human", "value": "/*\n * To change this template, choose Tools | Templates\n * and open the template in the editor.\n */\npackage edu.stuy.commands;\n\nimport edu.wpi.first.wpilibj.command.CommandGr...
java
chosen
[ { "from": "system", "value": "Add code that reads in an image, and converts the image into a grayscale BufferedImage.\n" }, { "from": "human", "value": "package hawaii.edu;\n\npublic class DoorDetector {\n\n}\n" }, { "from": "gpt", "value": "package hawaii.edu;\n\nimport java.awt.Col...
java
chosen