conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Use the `@Timed` annotation on SQLObjects\n\nLooks more reasonable to me this way instead logging everything by default.\n" }, { "from": "human", "value": "package com.github.arteam.jdbi3;\n\nimport com.codahale.metrics.annotation.Timed;\nimport com.google.common.co...
java
chosen
[ { "from": "system", "value": "Reduce visibility where `public` is not required\n" }, { "from": "human", "value": "/*\n * Copyright 2019, 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 n...
java
chosen
[ { "from": "system", "value": "Fix typo in resource file path\n" }, { "from": "human", "value": "package com.redhat.victims;\n\npublic class Resources {\n\tpublic static final String JAR_FILE = \"testdata/junit-4.11/junit-4.11.jar\";\n\tpublic static final String JAR_SHA1 = JAR_FILE + \".sha1\";\...
java
chosen
[ { "from": "system", "value": "Fix FeatureBrowser Accordion example tab captions\n\n\nsvn changeset:8011/svn branch:6.0\n" }, { "from": "human", "value": "package com.vaadin.demo.featurebrowser;\n\nimport com.vaadin.ui.Accordion;\nimport com.vaadin.ui.CustomComponent;\nimport com.vaadin.ui.Label;...
java
chosen
[ { "from": "system", "value": "Add new message for invalid date\n" }, { "from": "human", "value": "package tars.commons.core;\n\n/**\n * Container for user visible messages.\n */\npublic class Messages {\n\n public static final String MESSAGE_UNKNOWN_COMMAND = \"Unknown command\";\n public ...
java
chosen
[ { "from": "system", "value": "Work on refactoring the thredds.catalog package.\n" }, { "from": "human", "value": "package thredds.catalog2;\n\nimport thredds.catalog.ServiceType;\n\nimport java.util.List;\n\n/**\n * _more_\n *\n * @author edavis\n * @since 4.0\n */\npublic interface Dataset exte...
java
chosen
[ { "from": "system", "value": "Add some debugging for circle\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;\nimport java.ni...
java
chosen
[ { "from": "system", "value": "Make static PYISH_OBJECT_WRITER public so it can be used in PyishSerializable overrides\n" }, { "from": "human", "value": "package com.hubspot.jinjava.objects.serialization;\n\nimport com.fasterxml.jackson.core.JsonProcessingException;\nimport com.fasterxml.jackson....
java
chosen
[ { "from": "system", "value": "Add longDescription and exampleStringValue to sleep\n" }, { "from": "human", "value": "package org.cytoscape.commandDialog.internal.tasks;\n\nimport org.cytoscape.work.AbstractTask;\nimport org.cytoscape.work.ProvidesTitle;\nimport org.cytoscape.work.TaskMonitor;\ni...
java
chosen
[ { "from": "system", "value": "Revert \"Updated What Im Working On File\"\n\nThis reverts commit 51a8e6d27f762fa131da4ad94b8bdf409409f6c6, reversing\nchanges made to 40cc2cc801557622af48530c37c15a25403e44a2.\n" }, { "from": "human", "value": "package com.allforfunmc.easyoreapi;\n\nimport cpw.mods...
java
chosen
[ { "from": "system", "value": "Handle path separator differences in AntLoader\nDAT-4036\n" }, { "from": "human", "value": "package liquibase.integration.ant;\n\nimport liquibase.resource.FileSystemResourceAccessor;\nimport liquibase.util.StringUtil;\nimport org.apache.tools.ant.AntClassLoader;\n\...
java
chosen
[ { "from": "system", "value": "Order by prio then lower(name)\n" }, { "from": "human", "value": "package data;\n\nimport java.io.Serializable;\nimport java.util.List;\n\nimport javax.enterprise.context.SessionScoped;\nimport javax.enterprise.inject.Default;\nimport javax.inject.Named;\n\nimport o...
java
chosen
[ { "from": "system", "value": "Add testcase to Acronym test for single letter word\n" }, { "from": "human", "value": "import org.junit.Test;\n\nimport static org.junit.Assert.assertEquals;\n\npublic class AcronymTest {\n\n @Test\n public void fromTitleCasedPhrases() {\n final String ...
java
chosen
[ { "from": "system", "value": "Add /r and /m to muted commands\n" }, { "from": "human", "value": "package net.simpvp.NoSpam;\n\nimport org.bukkit.entity.Player;\nimport org.bukkit.event.EventHandler;\nimport org.bukkit.event.EventPriority;\nimport org.bukkit.event.Listener;\nimport org.bukkit.eve...
java
chosen
[ { "from": "system", "value": "Test confirming spring boot test runner loads external JARs\n" }, { "from": "human", "value": "package integration;\n\nimport hello.Application;\nimport org.fluentlenium.adapter.FluentTest;\nimport org.junit.Test;\nimport org.junit.runner.RunWith;\nimport org.openqa...
java
chosen
[ { "from": "system", "value": "Support opening repositories from create events" }, { "from": "human", "value": "package com.github.mobile.android.core.repo;\n\nimport static org.eclipse.egit.github.core.event.Event.TYPE_FORK;\n\nimport org.eclipse.egit.github.core.Repository;\nimport org.eclipse....
java
chosen
[ { "from": "system", "value": "Import: Use @RunWith(Suite.class) for emul test suites.\n\n...and update J2CL AllTests accordingly.\n\nI will delete duplicated J2CL suites in another CL.\n\ncommit 032e49ff8d12170b00ac3232174f365df0182f4e\nAuthor: Goktug Gokdogan <goktug@google.com>\nDate: Wed Apr 12 20:06:3...
java
chosen
[ { "from": "system", "value": "Add swap method to base class\n" }, { "from": "human", "value": "package me.gowdru.notes.sort;\n\nimport java.util.Comparator;\n\n/**\n * Defines contract for Sorter algorithm implementations\n */\npublic interface Sorter<T> {\n\n /**\n * sorts {@code items}i...
java
chosen
[ { "from": "system", "value": "Add error return strings to the NHS number validator\n" }, { "from": "human", "value": "package uk.ac.ox.ndm.grails.utils.validator;\n\nimport com.google.common.base.Strings;\n\n/**\n * @since 14/08/2015\n */\npublic class NhsNumberValidator implements Validator<Str...
java
chosen
[ { "from": "system", "value": "Remove .png (automatically added now)\n" }, { "from": "human", "value": "package example;\n\nimport ethanjones.cubes.block.Block;\n\npublic class MyBlock extends Block {\n \n public MyBlock() {\n super(\"MyMod:block/texture.png\");\n }\n}\n" }, { "from...
java
chosen
[ { "from": "system", "value": "Add registration of world + protection cmds\n\nSigned-off-by: Ollie <caf5c3fc6dbe0c347eab97fff2fea94d86d406b9@live.co.uk>" }, { "from": "human", "value": "package com.volumetricpixels.vitals.main;\r\n\r\nimport org.spout.api.command.annotated.AnnotatedCommandRegistr...
java
chosen
[ { "from": "system", "value": "Remove extended default value, should pass null instead.\n" }, { "from": "human", "value": "package com.uwetrottmann.trakt5.enums;\n\n/**\n * By default, all methods will return minimal info for movies, shows, episodes, and users. Minimal info is typically\n * all y...
java
chosen
[ { "from": "system", "value": "Update test code to compare with real type rather than string value." }, { "from": "human", "value": "package net.folab.fo.runtime;\n\nimport static org.junit.Assert.*;\nimport static org.hamcrest.CoreMatchers.*;\n\nimport java.lang.reflect.Field;\n\nimport org.juni...
java
chosen
[ { "from": "system", "value": "Add negative test for StreamUtils.getStreamContents\n" }, { "from": "human", "value": "package org.scribe.utils;\n\nimport java.io.ByteArrayInputStream;\nimport java.io.InputStream;\n\nimport org.junit.Test;\n\nimport static org.junit.Assert.*;\n\npublic class Strea...
java
chosen
[ { "from": "system", "value": "Add timestamp type to time property for oracle\n\ngit-svn-id: 4b387fe5ada7764508e2ca96c335714e4c1692c6@947 0d517254-b314-0410-acde-c619094fa49f\n" }, { "from": "human", "value": "package edu.northwestern.bioinformatics.studycalendar.domain.auditing;\n\nimport java.u...
java
chosen
[ { "from": "system", "value": "Fix ComponentBuilder order in registry\n" }, { "from": "human", "value": "/*\n * Copyright 2014 Red Hat, Inc. and/or its affiliates.\n *\n * Licensed under the Eclipse Public License version 1.0, available at\n * http://www.eclipse.org/legal/epl-v10.html\n */\npacka...
java
chosen
[ { "from": "system", "value": "Use a scroll pane for the scroll bar test." }, { "from": "human", "value": "package com.seaglasslookandfeel.demo;\n\nimport java.awt.BorderLayout;\nimport java.awt.Dimension;\n\nimport javax.swing.JFrame;\nimport javax.swing.JPanel;\nimport javax.swing.JScrollBar;\n...
java
chosen
[ { "from": "system", "value": "Make timeout value optional in flow verification request\n" }, { "from": "human", "value": "/* Copyright 2018 Telstra Open Source\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": "Fix to long decimal places\n" }, { "from": "human", "value": "package net.izenith.Commands;\n\nimport org.bukkit.Bukkit;\nimport org.bukkit.command.Command;\nimport org.bukkit.command.CommandSender;\nimport org.bukkit.permissions.Permission;\n\nimport net.izenith.Ma...
java
chosen
[ { "from": "system", "value": "Make sure we don't miss \"low\" confidence warnings\n\ngit-svn-id: e7d6bde23f017c9ff4efd468d79d66def666766b@14961 eae3c2d3-9b19-0410-a86e-396b6ccb6ab3\n" }, { "from": "human", "value": "package sfBugsNew;\n\nimport edu.umd.cs.findbugs.annotations.Confidence;\nimport...
java
chosen
[ { "from": "system", "value": "Allow extension to primitive Java types\n" }, { "from": "human", "value": "package ceylon;\n\npublic final class Boolean extends Object {\n private final boolean value;\n\n private Boolean(boolean b) {\n value = b;\n }\n\n public static ceylon.Boo...
java
chosen
[ { "from": "system", "value": "Improve the top bar for the error messages.\n" }, { "from": "human", "value": "package com.sb.elsinore.html;\n\nimport java.io.IOException;\n\nimport org.rendersnake.HtmlCanvas;\nimport org.rendersnake.Renderable;\n\nimport com.sb.elsinore.LaunchControl;\n\nimport s...
java
chosen
[ { "from": "system", "value": "Check if debug file exists" }, { "from": "human", "value": "package fr.minepod.bootstrap;\r\n\r\nimport java.awt.HeadlessException;\r\nimport java.io.IOException;\r\n\r\npublic class CrashReport {\r\n\tpublic static String DebugFilePath = Config.DebugFilePath;\r\n\t...
java
chosen
[ { "from": "system", "value": "Fix: Add attribute observation in measures table\n" }, { "from": "human", "value": "package sizebay.catalog.client.model;\n\nimport java.util.*;\nimport com.fasterxml.jackson.annotation.JsonValue;\nimport lombok.*;\n\n@Getter\n@Setter\npublic class Modeling {\n \...
java
chosen
[ { "from": "human", "value": "Add to item55 with a quote from the book\n" }, { "from": "gpt", "value": "public class item55_optimize_judiciously {\r\n public static void main(String[] args) {\r\n System.out.println(\"do not strive to write fast programs—strive to write good ones; speed ...
java
chosen
[ { "from": "system", "value": "Remove unused log message param\n" }, { "from": "human", "value": "package com.nelsonjrodrigues.pchud;\n\nimport java.io.IOException;\n\nimport com.nelsonjrodrigues.pchud.net.MessageListener;\nimport com.nelsonjrodrigues.pchud.net.NetThread;\nimport com.nelsonjrodri...
java
chosen
[ { "from": "system", "value": "Change the example module fixing scroll problem.\n" }, { "from": "human", "value": "package com.padakeji.android.ui.autowraplayoutmanager.example;\n\nimport android.content.Context;\nimport android.util.AttributeSet;\nimport android.view.MotionEvent;\nimport android...
java
chosen
[ { "from": "system", "value": "Remove unused Entry from mint import\n" }, { "from": "human", "value": "package uk.gov.register.core;\n\nimport uk.gov.register.core.Entry;\nimport uk.gov.mint.Item;\n\npublic class FatEntry {\n public final Entry entry;\n public final Item item;\n\n public...
java
chosen
[ { "from": "system", "value": "Add label and text field with application code\n" }, { "from": "human", "value": "/**\n * Part of Employ\n */\n\nimport java.awt.*;\nimport java.awt.event.*;\nimport javax.swing.*;\n\npublic class DashboardFrame extends CommonFrame implements ActionListener {\n\n /...
java
chosen
[ { "from": "system", "value": "Create button event with method\n\nChange variable name to be better described.\nOptimize output flow by disable its editable.\nRemove unnecessary color changer.\n" }, { "from": "human", "value": "/**\n * Part of Employ\n */\n\nimport java.awt.*;\nimport java.awt.ev...
java
chosen
[ { "from": "system", "value": "Allow a safe scroll pane to be constructed without its viewport view\n(which should be set later via setViewportView()).\n\n\ngit-svn-id: a1a4b28b82a3276cc491891159dd9963a0a72fae@1783 542714f4-19e9-0310-aa3c-eee0fc999fb1\n" }, { "from": "human", "value": "//\n// $Id...
java
chosen
[ { "from": "system", "value": "Update to use new strategy pattern\n" }, { "from": "human", "value": "/*******************************************************************************\n * Copyright (c) 2010, 2013 Sonatype, Inc.\n * All rights reserved. This program and the accompanying materials\n ...
java
chosen
[ { "from": "system", "value": "Add method to get all saved timetables\n" }, { "from": "human", "value": "package com.mick88.dittimetable;\n\nimport java.util.List;\n\nimport android.content.Context;\nimport android.util.Log;\n\nimport com.michaldabski.msqlite.MSQLiteOpenHelper;\nimport com.mick88...
java
chosen
[ { "from": "system", "value": "Index 7 appears to be models. Am able to view them in rsmv.\n" }, { "from": "human", "value": "package net.runelite.cache;\n\npublic enum IndexType\n{\n\tTWO(2),\n\tSPRITE(8);\n\n\tprivate int id;\n\t\n\tIndexType(int id)\n\t{\n\t\tthis.id = id;\n\t}\n\t\n\tpublic i...
java
chosen
[ { "from": "system", "value": "Fix Industrial Foregoing Compat crash\n\n" }, { "from": "human", "value": "package com.infinityraider.agricraft.plugins.industrialforegoing;\n\nimport com.buuz135.industrial.api.plant.PlantRecollectable;\nimport com.google.common.collect.Lists;\nimport com.infinityr...
java
chosen
[ { "from": "system", "value": "Allow entities with dots in their names in the player selector pattern\n" }, { "from": "human", "value": "package net.earthcomputer.easyeditors.api;\n\nimport java.util.regex.Pattern;\n\n/**\n * A class containing a number of {@link Pattern}s useful to Easy Editors....
java
chosen
[ { "from": "system", "value": "Set `canRetransform` flag to `false` in instrumentation.\n\nWe do not need to retransform classes once they are loaded.\nAll instrumentation byte-code is pushed at loading time.\n\nThis fixes a problem with Java 7 that was failing to add\na transformer because we did not declar...
java
chosen
[ { "from": "system", "value": "Add a method that always throws an unhandled exception.\n\n\ngit-svn-id: e7d6bde23f017c9ff4efd468d79d66def666766b@1679 eae3c2d3-9b19-0410-a86e-396b6ccb6ab3\n" }, { "from": "human", "value": "public class Ex {\n\n\tpublic void frotz(Object o, int y) {\n\t\tif (y == 6...
java
chosen
[ { "from": "system", "value": "Add test for circle geometry" }, { "from": "human", "value": "package ol.geom;\n\nimport ol.BaseTestCase;\nimport ol.Coordinate;\nimport ol.OLFactory;\n\n/**\n * A test case for {@link Circle}.\n *\n * @author Tino Desjardins\n */\npublic class CircleTest extends Ba...
java
chosen
[ { "from": "system", "value": "Create a method which contains URL as argument and create an Image variable\n" }, { "from": "human", "value": " public class MediaCheck {\n }\n" }, { "from": "gpt", "value": "import java.awt.Image;\nimport java.net.URL;\n\npublic class MediaCheck {\n\n ...
java
chosen
[ { "from": "system", "value": "Clean up; use ModelMap not Model; only GET method.\n" }, { "from": "human", "value": "package com.darwinsys.springbootdemo;\r\n\r\nimport org.springframework.stereotype.Controller;\r\nimport org.springframework.ui.Model;\r\nimport org.springframework.web.bind.annota...
java
chosen
[ { "from": "system", "value": "Add fail option to testing harness\n" }, { "from": "human", "value": "package net.teamio.blockunit;\n\n/**\n * Created by oliver on 2017-07-03.\n */\npublic class TestingHarness {\n\tpublic void assertEquals(int a, int b) {\n\t\tif (a != b) {\n\t\t\tthrow new TestAs...
java
chosen
[ { "from": "system", "value": "Test di verifica di aggiornamento" }, { "from": "human", "value": "\r\npublic class Prova {\r\n\r\n\tpublic static void main(String[] args) {\r\n\t\tSystem.out.println(42);\r\n\t}\r\n\r\n}\r\n" }, { "from": "gpt", "value": "\r\npublic class Prova {\r\n\r...
java
chosen
[ { "from": "system", "value": "Remove the concept of a DNA terminator\n" }, { "from": "human", "value": "package org.nusco.swimmers.creature.genetics;\n\n\nclass OrganParser {\n\n\tprivate final int[] genes;\n\tprivate int index_in_genes = 0;\n\t\n\tpublic OrganParser(DNA dna) {\n\t\tgenes = dna....
java
chosen
[ { "from": "system", "value": "Make the shots a little more interesting.\n" }, { "from": "human", "value": "package spacefront;\n\nimport java.awt.Color;\nimport java.awt.Graphics2D;\nimport java.awt.Shape;\nimport java.awt.geom.AffineTransform;\nimport java.awt.geom.Ellipse2D;\nimport java.util....
java
chosen
[ { "from": "system", "value": "Use findLabel on tag itself instead of parent\n" }, { "from": "human", "value": "package com.sensia.tools.client.swetools.editors.sensorml.renderer.editor.panels.gml;\n\nimport com.sensia.relaxNG.RNGElement;\nimport com.sensia.tools.client.swetools.editors.sensorml....
java
chosen
[ { "from": "system", "value": "Rename variable to javascriptExecutor in unit test\n" }, { "from": "human", "value": "package com.saucelabs.common;\n\nimport org.junit.Before;\nimport org.junit.Test;\n\nimport static org.junit.Assert.assertEquals;\nimport static org.mockito.Mockito.*;\n\n\npublic ...
java
chosen
[ { "from": "system", "value": "Update test case for 3062023 to reflect actual bug being reported\n\ngit-svn-id: e7d6bde23f017c9ff4efd468d79d66def666766b@12584 eae3c2d3-9b19-0410-a86e-396b6ccb6ab3\n" }, { "from": "human", "value": "package sfBugs;\r\n\r\nimport edu.umd.cs.findbugs.annotations.Desi...
java
chosen
[ { "from": "system", "value": "Fix where multidex is installed.\n" }, { "from": "human", "value": "package com.dglogik.common;\n\nimport android.app.Application;\nimport android.support.multidex.MultiDex;\n\nimport org.acra.ACRA;\nimport org.acra.ReportingInteractionMode;\nimport org.acra.annotat...
java
chosen
[ { "from": "system", "value": "Allow to format a module name with a case\n" }, { "from": "human", "value": "package io.vertx.codegen;\n\n/**\n * Describes a module.\n *\n * @author <a href=\"mailto:julien@julienviet.com\">Julien Viet</a>\n */\npublic class ModuleInfo {\n\n private final String f...
java
chosen
[ { "from": "system", "value": "Remove AWS credentioals from build cache config\n\nThe plugin uses the AWS CLI default credentials chain to find\nthe necessary AWS access and secret keys.\n" }, { "from": "human", "value": "/*\n * Copyright 2017 the original author or authors.\n *\n * Licensed unde...
java
chosen
[ { "from": "system", "value": "Add endpoints variables to reuse values among fragments" }, { "from": "human", "value": "package com.rcarrillocruz.android.openstackdroid;\n\nimport android.app.Application;\n\npublic class OpenstackdroidApplication extends Application {\n\tprivate String token;\n\t...
java
chosen
[ { "from": "system", "value": "Fix a schema warning in split frame\n" }, { "from": "human", "value": "package water.api;\n\nimport hex.SplitFrame;\nimport water.Key;\nimport water.fvec.Frame;\n\npublic class SplitFrameV2 extends JobV2<SplitFrame, SplitFrameV2> {\n @API(help=\"dataset\")\n publi...
java
chosen
[ { "from": "system", "value": "Fix test, the expected number was wrong.\n" }, { "from": "human", "value": "package uk.ac.ebi.quickgo.annotation.service.statistics;\n\nimport java.util.ArrayList;\nimport java.util.List;\nimport org.junit.Test;\n\nimport static org.hamcrest.MatcherAssert.assertThat...
java
chosen
[ { "from": "system", "value": "Change integral division to double division.\n" }, { "from": "human", "value": "package utils;\n\npublic class Benchmark {\n\tpublic static long getTime() {\n\t\treturn System.nanoTime();\n\t}\n\n\tpublic static long getMemory() {\n\t\treturn Runtime.getRuntime().to...
java
chosen
[ { "from": "system", "value": "FIx scenario: Step editMeetingSteps change the attendee value in create meeting with api\n" }, { "from": "human", "value": "package org.fundacionjala.automation.scenario.steps.tablet.editMeeting;\n\nimport org.fundacionjala.automation.framework.utils.api.managers.M...
java
chosen
[ { "from": "system", "value": "Fix nullPointerException on \"edit\" command\n" }, { "from": "human", "value": "package seedu.task.model.task;\n\nimport seedu.task.commons.exceptions.IllegalValueException;\n\n/**\n * Represents a Task's name in the task manager.\n * Guarantees: immutable; is valid...
java
chosen
[ { "from": "system", "value": "Introduce ViewHolder pattern into ArrayAdapter\n" }, { "from": "human", "value": "package coderefactory.net.popmovies;\n\nimport android.app.Activity;\nimport android.support.annotation.NonNull;\nimport android.view.LayoutInflater;\nimport android.view.View;\nimport...
java
chosen
[ { "from": "system", "value": "Change order that fields are updated\n" }, { "from": "human", "value": "package io.undertow.server.handlers;\n\nimport java.util.Date;\n\nimport io.undertow.server.HttpHandler;\nimport io.undertow.server.HttpServerExchange;\nimport io.undertow.util.DateUtils;\nimpor...
java
chosen
[ { "from": "system", "value": "Add exit command to the help text\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 couple of special symbols to vocabulary\n" }, { "from": "human", "value": "package io.qala.datagen;\n\npublic class Vocabulary {\n /** Can be globally overwritten for your particular project. */\n public static String SPECIAL_SYMBOLS = \"!@#$%^&*()_+{}[]'\...
java
chosen
[ { "from": "system", "value": "Change name to improve comprehension\n" }, { "from": "human", "value": "package shared;\n/**\n * \n */\n\n/**\n * \n * @author David Lecoconnier david.lecoconnier@gmail.com\n * @author Jean-Luc Amitousa-Mankoy jeanluc.amitousa.mankoy@gmail.com\n * @version 1.0\n */\...
java
chosen
[ { "from": "system", "value": "Fix NPE on item despawn or destroy.\n" }, { "from": "human", "value": "package me.jjm_223.pt;\n\nimport me.jjm_223.pt.listeners.EggClick;\nimport me.jjm_223.pt.listeners.EggHit;\nimport me.jjm_223.pt.listeners.ItemDespawn;\nimport me.jjm_223.pt.utils.DataStorage;\ni...
java
chosen
[ { "from": "system", "value": "Fix payment processor test failures\n" }, { "from": "human", "value": "package appstore;\n\nimport static org.junit.Assert.*;\n\nimport org.junit.Ignore;\nimport org.junit.Test;\n\npublic class TestThisWillFailAbunch {\n @Test\n public void aFailingTest() {\n ...
java
chosen
[ { "from": "system", "value": "Rename \"[in]valid name\" to \"[in]valid title\"\n" }, { "from": "human", "value": "package seedu.geekeep.model.task;\n\nimport static org.junit.Assert.assertFalse;\nimport static org.junit.Assert.assertTrue;\n\nimport org.junit.Test;\n\npublic class TitleTest {\n\n...
java
chosen
[ { "from": "system", "value": "Introduce hashcode and equals property." }, { "from": "human", "value": "/**\n * Copyright (c) 2012-2012 Malhar, Inc.\n * All rights reserved.\n */\npackage com.malhartech.util;\n\nimport java.io.Serializable;\n\npublic class Pair<F, S> implements Serializable {\n ...
java
chosen
[ { "from": "system", "value": "Fix versione nel Frame della gui" }, { "from": "human", "value": "/*\nCopyright 2011-2015 Stefano Cappa\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of t...
java
chosen
[ { "from": "system", "value": "Test Commit. Attempt to fix username." }, { "from": "human", "value": "package mazegenerator;\n\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport util.MathUtil;\n\n/**\n *\n * @author mallory\n */\npublic class MazeGenerator {\n\n public static void ...
java
chosen
[ { "from": "system", "value": "Make test coverage to 100%.\n" }, { "from": "human", "value": "package cn.hjmao.dao.minor;\n\nimport org.testng.annotations.Test;\n\nimport static org.testng.Assert.*;\n\n/**\n * Created by hjmao on 3/24/16.\n */\npublic class MainTest {\n\n @Test\n public void te...
java
chosen
[ { "from": "system", "value": "Replace <> operator to make code compatible with JDK 1.6\n" }, { "from": "human", "value": "package org.apache.cordova.firebase;\n\nimport com.google.firebase.messaging.RemoteMessage;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class FirebasePlu...
java
chosen
[ { "from": "system", "value": "Determine Version and hash of Build on startup" }, { "from": "human", "value": "package de.swm.nis.logicaldecoding;\n\nimport org.springframework.stereotype.Component;\n\n@Component\npublic class VersionHelper {\n\t\n\tpublic String determineVersion() {\n\t\treturn ...
java
chosen
[ { "from": "system", "value": "Update list command to use the keyword list all\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 static final Strin...
java
chosen
[ { "from": "system", "value": "Add support for rocket and eyes reactions.\n" }, { "from": "human", "value": "package org.kohsuke.github;\n\nimport com.fasterxml.jackson.annotation.JsonCreator;\nimport com.fasterxml.jackson.annotation.JsonValue;\n\n/**\n * Content of reactions.\n *\n * @author Koh...
java
chosen
[ { "from": "system", "value": "Remove check for \"availability\" command because this case is treated separately.\n" }, { "from": "human", "value": "package rabbit;\n\npublic class CommandCreator {\n\n public String createCommand(String userCommand) {\n String[] tokens = userCommand.sp...
java
chosen
[ { "from": "system", "value": "Fix naming in authentication filter.\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.auth.filters;\n\nimport javax.servlet.*;\nimport javax.servlet....
java
chosen
[ { "from": "system", "value": "Change read-write flow to use ReadKey\n" }, { "from": "human", "value": "package SimpleWriteAndRead;\n\nimport com.continuuity.api.data.*;\nimport com.continuuity.api.flow.flowlet.*;\nimport com.continuuity.api.flow.flowlet.builders.*;\n\npublic class ReaderFlowlet ...
java
chosen
[ { "from": "system", "value": "Remove trailing slash b/c invite ID has leading one\n" }, { "from": "human", "value": "package co.phoenixlab.discord.api;\n\n/**\n * Contains various useful API URLs and paths\n */\npublic class ApiConst {\n\n /**\n * Utility class\n */\n private ApiCo...
java
chosen
[ { "from": "system", "value": "Remove unused dependency in application class\n" }, { "from": "human", "value": "package cms.qermit.prototype;\n\nimport cms.qermit.prototype.mongo.TokenRepository;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.boot.Spri...
java
chosen
[ { "from": "system", "value": "Trim argument for sort command\n" }, { "from": "human", "value": "package seedu.doit.logic.parser;\n\nimport static seedu.doit.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT;\n\nimport seedu.doit.logic.commands.Command;\nimport seedu.doit.logic.commands.Incorr...
java
chosen
[ { "from": "system", "value": "Change qurl.org for tinyurl.com as URL shortener service\n" }, { "from": "human", "value": "package com.github.NewsBotIRC;\n\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.net.HttpURLConnection;\nimport j...
java
chosen
[ { "from": "system", "value": "Add method to extract command name 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 public static void main(String[] args) {\n }\n }\n" }, ...
java
chosen
[ { "from": "system", "value": "Use a more randomly made number for the system\n" }, { "from": "human", "value": "package com.skelril.aurora.util;\n\nimport java.util.Random;\n\n/**\n * @author Turtle9598\n */\npublic class ChanceUtil {\n\n private static Random r = new Random(8888);\n\n pub...
java
chosen
[ { "from": "system", "value": "Clean paths containing double /" }, { "from": "human", "value": "package tests;\n\nimport static org.fest.assertions.Assertions.assertThat;\n\nimport org.fest.assertions.GenericAssert;\nimport org.kercoin.magrit.Configuration;\nimport org.kercoin.magrit.Configuratio...
java
chosen
[ { "from": "system", "value": "Remove package from test Java file\n" }, { "from": "human", "value": "package smowton;\n\npublic class Test {\n\n private String field;\n\n public Test fluentNoop() {\n return this;\n }\n\n public Test indirectlyFluentNoop() {\n return this.fluentNoop();\n...
java
chosen
[ { "from": "system", "value": "Fix automatic update for the 'created' and 'updated' fields\n" }, { "from": "human", "value": "package com.lyubenblagoev.postfixrest.entity;\n\nimport java.util.Date;\n\nimport javax.persistence.GeneratedValue;\nimport javax.persistence.GenerationType;\nimport javax...
java
chosen
[ { "from": "system", "value": "Use app.apruve.com as the prod environment URL" }, { "from": "human", "value": "package com.apruve;\n\nimport static org.junit.Assert.*;\n\nimport org.junit.Test;\n\npublic class ApruveEnvironmentTest {\n\n\t@Test\n\tpublic void testBaseUrl() {\n\t\tassertEquals(\"h...
java
chosen
[ { "from": "system", "value": "Add message to test failure\n" }, { "from": "human", "value": "/*\n * Copyright 2007 Russell Harmon\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 ob...
java
chosen
[ { "from": "system", "value": "Comment out test. (Can't compile)\n" }, { "from": "human", "value": "package org.embulk.input;\n\nimport com.google.common.base.Optional;\nimport org.embulk.EmbulkTestRuntime;\nimport org.embulk.config.ConfigSource;\nimport org.embulk.spi.Exec;\nimport org.junit.Rul...
java
chosen
[ { "from": "system", "value": "Add Extension .pot for powerpoint\n" }, { "from": "human", "value": "package org.dstadler.commoncrawl;\n\n/**\n * Which extensions we are interested in.\n *\n * @author dominik.stadler\n */\npublic class Extensions {\n\n private static final String[] EXTENSIONS =...
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