conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Replace ZeroDurationPeriod with use of Optional i.e. don't mix returning Period instances and nulls.\n" }, { "from": "human", "value": "package uk.ac.ebi.quickgo.rest.period;\n\n/**\n * Interface for classes that interpret a String as a period definition.\n * @autho...
java
chosen
[ { "from": "system", "value": "Convert to fluent interface to make use easier and less verbose\n" }, { "from": "human", "value": "package org.jcodegen.html.util;\n\nimport java.util.HashSet;\nimport java.util.Set;\n\n/**\n * ...\n */\npublic class CssClasses {\n\n private final Set<String> cla...
java
chosen
[ { "from": "system", "value": "Add patch for Processing 2.0-2.0.1 TAB keyboard input" }, { "from": "human", "value": "package com.haxademic.core.system;\n\nimport processing.core.PApplet;\n\nimport com.haxademic.core.app.P;\n\npublic class SystemUtil {\n\t\n\tpublic static String getJavaVersion()...
java
chosen
[ { "from": "system", "value": "Fix the unit test by making the returned time the same on all calls (which was the whole point)\n" }, { "from": "human", "value": "package beaform.events;\n\nimport static org.junit.Assert.assertEquals;\n\nimport java.text.SimpleDateFormat;\nimport java.util.Date;\n...
java
chosen
[ { "from": "system", "value": "Remove checking of null in compareTo method\n" }, { "from": "human", "value": "package org.zanata.webtrans.shared.model;\n\nimport java.io.Serializable;\n\nimport com.google.gwt.user.client.rpc.IsSerializable;\n\n//@Immutable\npublic class DocumentId implements Iden...
java
chosen
[ { "from": "system", "value": "Use ApplyAll instead of AbstractVisitor" }, { "from": "human", "value": "package boa.datagen.util;\n\nimport org.eclipse.php.internal.core.ast.nodes.ASTError;\nimport org.eclipse.php.internal.core.ast.nodes.ASTNode;\nimport org.eclipse.php.internal.core.ast.visitor....
java
chosen
[ { "from": "system", "value": "Add recipes for rifle and ammo\n" }, { "from": "human", "value": "package se.jereq.testmod.init;\n\nimport net.minecraft.item.ItemStack;\nimport net.minecraftforge.fml.common.registry.GameRegistry;\n\npublic class ModRecipes {\n\tpublic static void addRecipes() {\n\...
java
chosen
[ { "from": "system", "value": "Test now checks that transformer returned includes source if called before source added then after\n" }, { "from": "human", "value": "package me.nallar.mixin.internal;\n\nimport lombok.val;\nimport me.nallar.mixin.internal.mixinsource.MixinSource;\nimport org.junit....
java
chosen
[ { "from": "system", "value": "Add missed widget type to the validator\n" }, { "from": "human", "value": "package com.epam.ta.reportportal.ws.model.widget;\n\nimport javax.annotation.Nullable;\nimport java.util.Arrays;\nimport java.util.Optional;\n\n/**\n * @author <a href=\"mailto:pavel_bortnik@...
java
chosen
[ { "from": "system", "value": "Test for the immutable result\n\nSigned-off-by: Fabio José <34f3a7e4e4d9fe971c99ebc4af947a5309eca653@gmail.com>\n" }, { "from": "human", "value": "package io.cloudevents.format;\n\nimport static org.junit.Assert.assertEquals;\nimport static org.junit.Assert.assertFa...
java
chosen
[ { "from": "system", "value": "Migrate away from deprecated behavior annotation\n\nPiperOrigin-RevId: 271439031\n" }, { "from": "human", "value": "/*\n * Copyright (C) 2016 The Android Open Source Project\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not us...
java
chosen
[ { "from": "system", "value": "Make picture for 'next' grayscale\n" }, { "from": "human", "value": "package de.fu_berlin.cdv.chasingpictures;\n\nimport android.app.Activity;\nimport android.os.Bundle;\n\n\npublic class Menu extends Activity {\n\n @Override\n protected void onCreate(Bundle s...
java
chosen
[ { "from": "system", "value": "Fix invisibility potions and cloaking device\n" }, { "from": "human", "value": "package techreborn.events;\n\nimport cpw.mods.fml.common.eventhandler.EventPriority;\nimport cpw.mods.fml.common.eventhandler.SubscribeEvent;\nimport cpw.mods.fml.common.gameevent.TickEv...
java
chosen
[ { "from": "system", "value": "Fix foam.core.XFactory cannot be converted to boolean\n" }, { "from": "human", "value": "/**\n * @license\n * Copyright 2017 The FOAM Authors. All Rights Reserved.\n * http://www.apache.org/licenses/LICENSE-2.0\n */\n\npackage foam.core;\n\npublic class SingletonFa...
java
chosen
[ { "from": "system", "value": "Delete old sqlite db before running tests.\n" }, { "from": "human", "value": "package com.example.ollie;\n\nimport com.example.ollie.model.Note;\nimport com.example.ollie.shadows.PersistentShadowSQLiteOpenHelper;\nimport ollie.Ollie;\nimport org.junit.Before;\nimpor...
java
chosen
[ { "from": "system", "value": "Remove method not belonging to interface\n" }, { "from": "human", "value": "/*\n * Copyright 2016 Red Hat Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may ...
java
chosen
[ { "from": "system", "value": "Remove Dupe Code and Add More Error Checking\n\nAgain need to test this." }, { "from": "human", "value": "package com.crystalcraftmc.allyouneed.Commands;\n\nimport org.bukkit.command.Command;\nimport org.bukkit.command.CommandExecutor;\nimport org.bukkit.command.Com...
java
chosen
[ { "from": "system", "value": "Add tentative fix to isFinished using magnitudes rather than the pos/neg values\n" }, { "from": "human", "value": "package edu.stuy.commands;\n\nimport edu.stuy.Robot;\nimport edu.wpi.first.wpilibj.command.Command;\n\n/**\n * Rotates the Robot without PID values\n *...
java
chosen
[ { "from": "system", "value": "Resolve getter e setter para isObrigatorio\n" }, { "from": "human", "value": "package br.fameg.edu.domain.model;\n\nimport java.math.BigDecimal;\nimport java.sql.Date;\n\nimport javax.persistence.*;\n\n@Entity\npublic class Trabalho {\n\n @Id \n @GeneratedValu...
java
chosen
[ { "from": "system", "value": "Add explaination to selection of retrying status codes\n" }, { "from": "human", "value": "package io.tus.java.client;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\n\n/**\n * This exception is thrown if the server sends a request with an unexpec...
java
chosen
[ { "from": "system", "value": "Add method to ID Generator\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:/...
java
chosen
[ { "from": "system", "value": "Remove editor template for class\n" }, { "from": "human", "value": "/*\n * To change this template, choose Tools | Templates\n * and open the template in the editor.\n */\npackage org.synyx.urlaubsverwaltung.core.application.service;\n\nimport org.springframework.be...
java
chosen
[ { "from": "system", "value": "Add more unit test cases\n" }, { "from": "human", "value": "package org.pdxfinder.services.constants;\n\nimport org.junit.Test;\nimport org.pdxfinder.BaseTest;\n\nimport static org.junit.Assert.assertEquals;\nimport static org.junit.Assert.assertTrue;\n\npublic clas...
java
chosen
[ { "from": "system", "value": "Change for table columns comparator to put empty string at the end\n" }, { "from": "human", "value": "package pl.aetas.bakspad.presentation;\n\nimport java.text.Collator;\nimport java.util.Comparator;\nimport java.util.Locale;\n\npublic class LocaleAwareStringCompar...
java
chosen
[ { "from": "system", "value": "Improve existing methods, add new ones for packing longs\n" }, { "from": "human", "value": "package org.bouncycastle.crypto.util;\n\npublic abstract class Pack\n{\n public static int bigEndianToInt(byte[] bs, int off)\n {\n int n = bs[off++] << 24;\n ...
java
chosen
[ { "from": "system", "value": "Test added doesn't work in headless. Will need to figure something out. Otherwise SWT module will remain untestable.\n\ngit-svn-id: d976a3fa9fd96fa05fb374ae920b691bf85e82cb@730 aadc08cf-1350-0410-9b51-cf97fce99a1b\n" }, { "from": "human", "value": "package edu.umd.c...
java
chosen
[ { "from": "system", "value": "Fix check style line length failure\n\nOriginal commit: elastic/x-pack-elasticsearch@d37595db2b6ff7c6ffabbb2648d201008932158e\n" }, { "from": "human", "value": "/*\n * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one\n * or more contribut...
java
chosen
[ { "from": "system", "value": "Add sum aggregation as a supported function in QuickGO.\n\n See issue: https://www.ebi.ac.uk/panda/jira/browse/GOA-2413\n" }, { "from": "human", "value": "package uk.ac.ebi.quickgo.rest.search;\n\n/**\n * Enumerates the aggregation functions supported by the domain....
java
chosen
[ { "from": "system", "value": "Use List instead of Set to make sure that the returned order is preserved\n" }, { "from": "human", "value": "package org.osiam.client.query;\n/*\n * for licensing see the file license.txt.\n */\n\nimport org.codehaus.jackson.annotate.JsonProperty;\nimport org.codeha...
java
chosen
[ { "from": "system", "value": "Remove xml declaration which is added while formatting the content.\n" }, { "from": "human", "value": "package org.springframework.data.rest.shell.formatter;\r\n\r\nimport java.io.ByteArrayInputStream;\r\nimport java.io.ByteArrayOutputStream;\r\nimport java.util.Arr...
java
chosen
[ { "from": "system", "value": "Fix char to int convesion\n" }, { "from": "human", "value": "package com.vrachieru.cnp4j;\n\npublic class CnpUtil {\n\n public static final int CNP_LENGTH = 13;\n\n public static final int[] WEIGHTS = new int[]{2, 7, 9, 1, 4, 6, 3, 5, 8, 2, 7, 9};\n\n publi...
java
chosen
[ { "from": "system", "value": "Remove view model in presenter\n" }, { "from": "human", "value": "package lib.morkim.mfw.ui;\n\nimport android.annotation.SuppressLint;\nimport android.app.Activity;\nimport android.os.Bundle;\nimport android.preference.PreferenceFragment;\n\nimport lib.morkim.mfw.a...
java
chosen
[ { "from": "system", "value": "Remove unused/untested methods; deprecate & de-support getStudyById because that field's about to disappear\n\ngit-svn-id: 4b387fe5ada7764508e2ca96c335714e4c1692c6@1279 0d517254-b314-0410-acde-c619094fa49f\n" }, { "from": "human", "value": "package edu.northwestern....
java
chosen
[ { "from": "system", "value": "Add BLOCK pipeline definition to the default pipelines\n" }, { "from": "human", "value": "/*\n * Copyright (c) 2015-2017 Dzikoysk\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the Li...
java
chosen
[ { "from": "system", "value": "Increase Core and Maximum ThreadPool Size\n" }, { "from": "human", "value": "package sg.ncl;\n\nimport nz.net.ultraq.thymeleaf.LayoutDialect;\nimport org.springframework.boot.autoconfigure.web.ErrorAttributes;\nimport org.springframework.context.annotation.Bean;\nim...
java
chosen
[ { "from": "system", "value": "Add a string representation for the coords.\n" }, { "from": "human", "value": "package org.goplayer.util;\n\npublic class Coord {\n\tprivate final int row;\n\tprivate final int col;\n\n\tpublic Coord(int row, int col) {\n\t\tthis.row = row;\n\t\tthis.col = col;\n\t}...
java
chosen
[ { "from": "system", "value": "Remove bad import of sun.NotImplementedException\n" }, { "from": "human", "value": "package com.codingchili.core.storage;\r\n\r\nimport io.vertx.core.AsyncResult;\r\nimport io.vertx.core.Handler;\r\nimport sun.reflect.generics.reflectiveObjects.NotImplementedExcepti...
java
chosen
[ { "from": "system", "value": "Improve handling of point regions\n" }, { "from": "human", "value": "package in.twizmwaz.cardinal.module.modules.regions.type;\n\nimport in.twizmwaz.cardinal.GameHandler;\nimport in.twizmwaz.cardinal.module.modules.regions.parsers.PointParser;\nimport org.bukkit.blo...
java
chosen
[ { "from": "system", "value": "Use existing console for Ant build log\n" }, { "from": "human", "value": "package org.metaborg.spoofax.eclipse.meta.ant;\n\nimport java.io.PrintStream;\n\nimport org.apache.tools.ant.DefaultLogger;\nimport org.eclipse.ui.console.MessageConsole;\nimport org.metaborg....
java
chosen
[ { "from": "system", "value": "Make log event format more readable\n" }, { "from": "human", "value": "/*\n * Copyright 2018, EnMasse authors.\n * License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).\n */\npackage io.enmasse.k8s.api;\n\nimport org.slf4...
java
chosen
[ { "from": "system", "value": "Remove unused import and add type converter.\n" }, { "from": "human", "value": "package org.csveed.bean;\n\nimport org.csveed.bean.conversion.Converter;\nimport org.csveed.test.converters.BeanSimpleConverter;\nimport org.csveed.test.model.BeanSimple;\nimport org.csv...
java
chosen
[ { "from": "system", "value": "Fix an issue in isEmulator\n" }, { "from": "human", "value": "package com.smartdevicelink.test.util;\n\nimport android.os.Build;\n\npublic class DeviceUtil {\n public static boolean isEmulator() {\n return Build.FINGERPRINT.startsWith(\"generic\")\n ...
java
chosen
[ { "from": "system", "value": "Allow other packages to use `out` (for example the intelliJ plugin)" }, { "from": "human", "value": "package com.redhat.ceylon.compiler.typechecker.treegen;\n\npublic class Util {\n \n static java.io.PrintStream out = System.out;\n\n public static String cl...
java
chosen
[ { "from": "system", "value": "Add helper methods for block helper class\n" }, { "from": "human", "value": "package net.shadowfacts.foodies.block;\n\n/**\n * Helper class for registering blocks.\n * @author shadowfacts\n */\npublic class FBlocks {\n}\n" }, { "from": "gpt", "value": "p...
java
chosen
[ { "from": "system", "value": "Add LEFT and RIGHT enums\n" }, { "from": "human", "value": "package org.robockets.stronghold.robot.intake;\n\npublic enum Direction {\n\tFORWARD,\n\tBACKWARD,\n\tSTOP;\n}\n" }, { "from": "gpt", "value": "package org.robockets.stronghold.robot.intake;\n\n...
java
chosen
[ { "from": "system", "value": "Use Locale.UK while parsing dates.\n" }, { "from": "human", "value": "/* Copyright (c) 2014 Andrea Zoli. All rights reserved.\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file. */\n\npackage it.inaf.android;\n\n...
java
chosen
[ { "from": "system", "value": "Add sample code to create FhirEngine in the reference app.\n" }, { "from": "human", "value": "package com.google.fhirengine;\n\nimport android.app.Activity;\nimport android.os.Bundle;\n\npublic class MainActivity extends Activity {\n\n @Override\n protected vo...
java
chosen
[ { "from": "system", "value": "Improve error messages when parsing --failure-level parameter\n" }, { "from": "human", "value": "package org.asciidoctor.jruby.cli;\n\nimport com.beust.jcommander.IStringConverter;\nimport org.asciidoctor.SafeMode;\nimport org.asciidoctor.log.Severity;\n\npublic cla...
java
chosen
[ { "from": "system", "value": "Fix crash on killed app restore on android\n" }, { "from": "human", "value": "package com.utopia.pxview;\n\nimport android.os.Bundle;\nimport com.facebook.react.ReactActivity;\nimport com.facebook.react.ReactActivityDelegate;\nimport com.facebook.react.ReactRootView...
java
chosen
[ { "from": "system", "value": "Set loginRequired to false. For users without login, this is required for \"back\" link on some pages to function.\n\n\nSVN-Revision: 3990\n" }, { "from": "human", "value": "/*\n The caLAB Software License, Version 0.5\n\n Copyright 2006 SAIC. This software was deve...
java
chosen
[ { "from": "system", "value": "Use more readable version for checking the final modifier is present.\n\ngit-svn-id: ed609ce04ec9e3c0bc25e071e87814dd6d976548@374 c7a0535c-eda6-11de-83d8-6d5adf01d787\n" }, { "from": "human", "value": "/* \n * Mutability Detector\n *\n * Copyright 2009 Graham Allan\...
java
chosen
[ { "from": "system", "value": "Fix nn_freemsg SIGSEGV on NULL\n\nnn_freemsg does not accept NULL argument (unlike libc free) and triggers\nSIGSEGV.\n" }, { "from": "human", "value": "package nanomsg;\n\nimport com.google.common.base.Preconditions;\nimport com.sun.jna.Pointer;\n\nimport java.nio.B...
java
chosen
[ { "from": "system", "value": "Use the new safeRunForDist method" }, { "from": "human", "value": "package info.u_team.u_team_core;\n\nimport org.apache.logging.log4j.*;\n\nimport info.u_team.u_team_core.api.IModProxy;\nimport info.u_team.u_team_core.intern.proxy.*;\nimport info.u_team.u_team_core...
java
chosen
[ { "from": "system", "value": "Fix unread count in notifications (again)" }, { "from": "human", "value": "package com.fsck.k9.helper;\n\nimport android.app.Notification;\nimport android.content.Context;\nimport android.os.Build;\nimport android.support.v4.app.NotificationCompat;\n\n/**\n * Notifi...
java
chosen
[ { "from": "system", "value": "Fix broken Canoe servlet example.\n" }, { "from": "human", "value": "package com.webkreator.canoe.demo;\r\n\r\nimport javax.servlet.ServletException;\r\n\r\nimport com.webkreator.qlue.QlueApplication;\r\nimport com.webkreator.qlue.QlueServlet;\r\n\r\npublic class Ca...
java
chosen
[ { "from": "system", "value": "Change documentation for directory build cache default location\n\n+review REVIEW-6480\n" }, { "from": "human", "value": "/*\n * Copyright 2017 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not ...
java
chosen
[ { "from": "system", "value": "Remove diamond usage. IntelliJ plugins needs java 6 and this feature is not supported\n" }, { "from": "human", "value": "package com.github.pedrovgs.androidwifiadb.adb;\n\nimport com.github.pedrovgs.androidwifiadb.Device;\nimport java.util.LinkedList;\nimport java.u...
java
chosen
[ { "from": "system", "value": "Add more tests for Source\n" }, { "from": "human", "value": "/*\n * To change this license header, choose License Headers in Project Properties.\n * To change this template file, choose Tools | Templates\n * and open the template in the editor.\n */\npackage fi.jgke...
java
chosen
[ { "from": "system", "value": "Add method to accept stream\n" }, { "from": "human", "value": "package org.commcare.modern.parse;\n\nimport org.commcare.core.interfaces.UserSandbox;\nimport org.commcare.core.parse.ParseUtils;\nimport org.javarosa.xml.util.InvalidStructureException;\nimport org.jav...
java
chosen
[ { "from": "system", "value": "Fix NPE because deltaValue can be null\n" }, { "from": "human", "value": "package org.hiero.sketch.dataset.api;\n\nimport java.io.Serializable;\n\n/**\n * A partial result always describes a DELTA between the previous partial result\n * and the current one.\n * @par...
java
chosen
[ { "from": "system", "value": "Add connect menu item to file menu.\n" }, { "from": "human", "value": "package com.github.aureliano.edocs.app.gui.menu.file;\n\nimport javax.swing.JMenu;\nimport javax.swing.JSeparator;\n\nimport com.github.aureliano.edocs.common.locale.EdocsLocale;\n\npublic class ...
java
chosen
[ { "from": "system", "value": "Use a stateful funcion handler if checkpointing is enabled\n" }, { "from": "human", "value": "package com.ibm.streamsx.topology.internal.functional.ops;\n\nimport com.ibm.streams.operator.OperatorContext;\nimport com.ibm.streamsx.topology.function.FunctionContext;\n...
java
chosen
[ { "from": "system", "value": "Fix logic for operator pad\n" }, { "from": "human", "value": "package edu.stuy.commands;\n\nimport edu.stuy.Robot;\nimport edu.wpi.first.wpilibj.command.Command;\n\n/**\n *\n */\npublic class LiftControlCommand extends Command {\n\n public LiftControlCommand() {\...
java
chosen
[ { "from": "system", "value": "Add shot range indication while driving manually." }, { "from": "human", "value": "/*\n * To change this license header, choose License Headers in Project Properties.\n * To change this template file, choose Tools | Templates\n * and open the template in the editor....
java
chosen
[ { "from": "system", "value": "Update JSON serialization date format\n" }, { "from": "human", "value": "/*\n * Copyright 2015 Anton Tananaev (anton.tananaev@gmail.com)\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with...
java
chosen
[ { "from": "system", "value": "Implement the rest of the methods\n" }, { "from": "human", "value": "package pl.komunikator.komunikator;\n\nimport android.support.v7.widget.RecyclerView;\nimport android.view.View;\nimport android.view.ViewGroup;\nimport android.widget.ImageView;\nimport android.wi...
java
chosen
[ { "from": "system", "value": "Use CoreMatchers.anything where it makes sense\n" }, { "from": "human", "value": "package rxbroadcast;\n\nimport nl.jqno.equalsverifier.EqualsVerifier;\nimport org.hamcrest.CoreMatchers;\nimport org.junit.Assert;\nimport org.junit.Test;\n\n@SuppressWarnings({\"check...
java
chosen
[ { "from": "system", "value": "Return status code and body for HTTP request.\n" }, { "from": "human", "value": "package rabbit;\n\nimport org.springframework.http.HttpStatus;\nimport org.springframework.http.ResponseEntity;\nimport org.springframework.web.client.RestTemplate;\n\npublic class Appl...
java
chosen
[ { "from": "system", "value": "Check that a position and an orientation are always immediately available\n" }, { "from": "human", "value": "package cgeo.geocaching.sensors;\n\nimport static org.assertj.core.api.Assertions.assertThat;\n\nimport cgeo.geocaching.MainActivity;\nimport cgeo.geocaching...
java
chosen
[ { "from": "system", "value": "Add add/delete starred requests methods to UserSettings, add userId, fix deps\n" }, { "from": "human", "value": "package com.hubspot.singularity;\n\nimport java.util.Objects;\nimport java.util.Set;\n\nimport com.fasterxml.jackson.annotation.JsonCreator;\nimport com....
java
chosen
[ { "from": "system", "value": "Support double quotes in strings.\n" }, { "from": "human", "value": "/*\n * Copyright 2011 Matthew Avery, mavery@advancedpwr.com\n * \n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the Li...
java
chosen
[ { "from": "system", "value": "Return result and whitespace fixes.\n" }, { "from": "human", "value": "package interdroid.vdb.persistence.ui;\n\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\n\nimport interdroid.vdb.R;\n\nimport android.os.Bundle;\nimport android.preference.PreferenceA...
java
chosen
[ { "from": "system", "value": "Add method to extract parameters from command line args.\n" }, { "from": "human", "value": "package com.maddenabbott.jenny;\n\n/**\n * The main entry point for Jenny.\n */\npublic class Application {\n private static final String defaultCommand = \"help\";\n\n pub...
java
chosen
[ { "from": "system", "value": "Replace characters { and } for html entities\n" }, { "from": "human", "value": "package failchat.core;\n\nimport java.util.logging.Logger;\nimport java.util.regex.Matcher;\nimport java.util.regex.Pattern;\n\npublic class MessageObjectCleaner implements MessageHandle...
java
chosen
[ { "from": "system", "value": "Remove methods implementation that must be do in subclasses.\n\n" }, { "from": "human", "value": "package org.codehaus.modello.metadata;\n\n/*\n * LICENSE\n */\n\nimport org.codehaus.modello.AbstractLogEnabled;\nimport org.codehaus.modello.Model;\nimport org.codehau...
java
chosen
[ { "from": "system", "value": "Solve problem with test, method need to throws unchecked exception\n" }, { "from": "human", "value": "package es.ganchix.morphia.utils;\n\nimport org.junit.Test;\nimport org.junit.runner.RunWith;\nimport org.mockito.BDDMockito;\nimport org.mongodb.morphia.utils.Refl...
java
chosen
[ { "from": "system", "value": "Update exception msg and add suiteName hint\n" }, { "from": "human", "value": "package de.retest.recheck.persistence;\n\nimport de.retest.recheck.TestCaseFinder;\n\n/**\n * The default implementation that derives test suite and test case name from the test class and...
java
chosen
[ { "from": "system", "value": "Add Ubuntu operating system family.\n" }, { "from": "human", "value": "package com.github.aureliano.achmed.resources.types;\n\npublic enum OperatingSystemFamily {\n\n\tDEBIAN,\n\tRPM,\n\tAPP\n}" }, { "from": "gpt", "value": "package com.github.aureliano....
java
chosen
[ { "from": "system", "value": "Expand message on incorrect Spring version to suggest checking the classpath for unwanted jars.\n" }, { "from": "human", "value": "package org.springframework.security.core;\n\nimport org.apache.commons.logging.Log;\nimport org.apache.commons.logging.LogFactory;\nim...
java
chosen
[ { "from": "system", "value": "Revert \"Fixed typo in javadoc\"\n\nThis reverts commit b95fda354b618a5fa75b57f0400719e47cb7f91f.\n" }, { "from": "human", "value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n ...
java
chosen
[ { "from": "system", "value": "Change to meta 1 (iron) for creative tab icon" }, { "from": "human", "value": "package link.infra.simpleprocessors;\n\nimport link.infra.simpleprocessors.items.DuctTape;\nimport link.infra.simpleprocessors.items.SolderingIron;\nimport link.infra.simpleprocessors.ite...
java
chosen
[ { "from": "system", "value": "Add missing license header in dlux-web\n\nChange-Id: I50ee01654cb01028b6541d9f80203ca1f803820a\nSigned-off-by: Thanh Ha <09ea4d3a79c8bee41a16519f6a431f6bc0fd8d6f@linuxfoundation.org>\n" }, { "from": "human", "value": "package org.opendaylight.dlux.web;\n\nimport org...
java
chosen
[ { "from": "system", "value": "Add link to issue regarding loading defaults via Launcher.initialize().\n" }, { "from": "human", "value": "/*\n * Copyright (c) 2015 Google, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compli...
java
chosen
[ { "from": "system", "value": "Fix VTFMS protocol unit tests\n" }, { "from": "human", "value": "package org.traccar.protocol;\n\nimport org.junit.Test;\nimport org.traccar.ProtocolTest;\n\npublic class VtfmsProtocolDecoderTest extends ProtocolTest {\n\n @Test\n public void testDecode() thro...
java
chosen
[ { "from": "system", "value": "Add dot also to env prefix" }, { "from": "human", "value": "package com.coding4people.mosquitoreport.api.factories;\n\nimport java.util.Optional;\n\nimport javax.inject.Inject;\n\nimport org.glassfish.hk2.api.Factory;\n\nimport com.amazonaws.services.dynamodbv2.Amaz...
java
chosen
[ { "from": "system", "value": "Initialize strict mode before anything else\n" }, { "from": "human", "value": "package de.markusfisch.android.shadereditor.app;\n\nimport de.markusfisch.android.shadereditor.database.DataSource;\nimport de.markusfisch.android.shadereditor.preference.Preferences;\nim...
java
chosen
[ { "from": "system", "value": "Change database in test because Travis was failing\n" }, { "from": "human", "value": "package com.mijecu25.sqlplus.compiler.core.statement;\n\nimport java.sql.SQLException;\n\nimport org.junit.AfterClass;\nimport org.junit.Assert;\nimport org.junit.BeforeClass;\nimp...
java
chosen
[ { "from": "system", "value": "Revert \"IDEA-228014 updated test data: all non implicitly written fields are preselected\"\n\nThis reverts commit 4fae1e04\n\nGitOrigin-RevId: 602735cfed173e4071b12065cceb49453845eba2" }, { "from": "human", "value": "class Test {\n private int a;\n private fi...
java
chosen
[ { "from": "system", "value": "Add scenarios for jasmine 1, 2\n" }, { "from": "human", "value": "package com.karateca.ddescriber.model;\n\nimport com.intellij.find.FindResult;\nimport com.karateca.ddescriber.BaseTestCase;\n\nimport junit.framework.Assert;\n\nimport java.util.List;\n\n/**\n * @aut...
java
chosen
[ { "from": "system", "value": "Test changing tab complete list\n" }, { "from": "human", "value": "package io.github.lasercar.simplemention;\n\nimport org.bukkit.Bukkit;\nimport org.bukkit.entity.Player;\nimport org.bukkit.event.EventHandler;\nimport org.bukkit.event.Listener;\nimport org.bukkit.e...
java
chosen
[ { "from": "system", "value": "Set Fastpass Import provider ID to 'Fastpass'\n" }, { "from": "human", "value": "// Copyright 2020 Pants project contributors (see CONTRIBUTORS.md).\n// Licensed under the Apache License, Version 2.0 (see LICENSE).\n\npackage com.twitter.intellij.pants.service.proje...
java
chosen
[ { "from": "system", "value": "Declare ModelBiinder as FunctionalInterface Java 8 style programming\n" }, { "from": "human", "value": "package htmlflow;\n\nimport java.io.PrintStream;\n\npublic interface ModelBinder<T>{\n\tvoid bind(PrintStream out, T model);\n}\n" }, { "from": "gpt", ...
java
chosen
[ { "from": "system", "value": "Move generic from class to method\n" }, { "from": "human", "value": "package com.vaadin.polymer.elemental;\n\nimport com.google.gwt.core.client.js.JsProperty;\nimport com.google.gwt.core.client.js.JsType;\n\n@JsType\npublic interface NodeList<T> {\n\n @JsProperty...
java
chosen
[ { "from": "system", "value": "Set property in case it has been set wrong previously\n" }, { "from": "human", "value": "package org.jaxen.javabean;\n\nimport junit.framework.TestCase;\n\npublic class DocumentNavigatorTest\n extends TestCase\n{\n\n public void testNothing()\n throws E...
java
chosen
[ { "from": "system", "value": "Refactor response page to say project title.\n" }, { "from": "human", "value": "package com.johnstarich.moviematcher;\n\nimport javax.servlet.ServletException;\nimport javax.servlet.http.HttpServlet;\nimport javax.servlet.http.HttpServletRequest;\nimport javax.servl...
java
chosen
[ { "from": "system", "value": "Correct List command to display \"tasks\" instead of \"persons\"\n" }, { "from": "human", "value": "package seedu.address.logic.commands;\n\n\n/**\n * Lists all persons in the address book to the user.\n */\npublic class ListCommand extends Command {\n\n public s...
java
chosen
[ { "from": "system", "value": "Fix a failing test case in stripe-java's build\n\nThis test case seems to have been trying to fetch zero items of a\ncollection and then comparing against the returned `data`'s count.\nUnfortunately for our build's reliability, for one the parameter is\nactually called `limit`,...
java
chosen
[ { "from": "system", "value": "Check the test repo is created correctly\n" }, { "from": "human", "value": "package pro.cucumber;\n\nimport org.junit.Before;\nimport org.junit.Test;\nimport pro.cucumber.gitcli.GitCliRevisionProvider;\n\nimport java.io.IOException;\nimport java.nio.file.Files;\nimp...
java
chosen
[ { "from": "system", "value": "Add concurrent library to it .\n" }, { "from": "human", "value": "package mklib.hosseini.com.vinci.Main;\n\nimport android.content.Context;\nimport android.graphics.Bitmap;\nimport android.graphics.BitmapFactory;\nimport android.graphics.drawable.BitmapDrawable;\nim...
java
chosen
[ { "from": "system", "value": "Change 2d id to south 2d id.\n\nFixes < 1.8 crashing when seeing item frames with unsupported\ndirections." }, { "from": "human", "value": "package protocolsupport.protocol.types;\n\nimport protocolsupport.protocol.utils.EnumConstantLookups;\n\npublic enum BlockDire...
java
chosen