conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Add logic tests for CdCommand\n" }, { "from": "human", "value": "package tars.logic;\n\nimport org.junit.Test;\n\nimport tars.logic.commands.CdCommand;\n\n/**\n * Logic command test for cd\n * \n * @@author A0124333U\n */\npublic class CdLogicCommandTest extends Log...
java
chosen
[ { "from": "system", "value": "Comment so it can compile for testing" }, { "from": "human", "value": "package info.u_team.u_team_test.data.provider;\n\nimport info.u_team.u_team_core.data.*;\nimport info.u_team.u_team_test.init.*;\n\npublic class TestItemModelsProvider extends CommonItemModelsPro...
java
chosen
[ { "from": "system", "value": "Remove unnecessary generic - does it help to compile?\n\ngit-svn-id: a3fb842d882947c797cf684233f17bdc7f2c8277@248 049c2a90-bdf1-4f83-8191-3719d539f8e0\n" }, { "from": "human", "value": "package swift.crdt.interfaces;\n\nimport swift.clocks.CausalityClock;\nimport sw...
java
chosen
[ { "from": "system", "value": "Make it apply only to variation databases\n" }, { "from": "human", "value": "package org.ensembl.healthcheck.testcase.eg_core;\n\nimport java.sql.Connection;\n\nimport org.ensembl.healthcheck.DatabaseType;\nimport org.ensembl.healthcheck.Team;\n\n/**\n * @author mnu...
java
chosen
[ { "from": "system", "value": "Add Content-Type to allowed default headers\n" }, { "from": "human", "value": "package org.col.dw.cors;\n\nimport org.hibernate.validator.constraints.NotEmpty;\n\npublic class CorsConfiguration {\n public static final String ANY_ORIGIN = \"*\";\n \n @NotEmpty\n ...
java
chosen
[ { "from": "system", "value": "Add last seen parameter to nation overview card DTO\n" }, { "from": "human", "value": "package com.lloydtorres.stately.dto;\n\n/**\n * Created by Lloyd on 2016-07-24.\n * A holder for data in the main nation overview card.\n */\npublic class NationOverviewCardData {...
java
chosen
[ { "from": "system", "value": "Set instance load in instance creation" }, { "from": "human", "value": "package jp.ac.nii.prl.mape.autoscaling.model;\n\nimport jp.ac.nii.prl.mape.autoscaling.model.dto.InstanceDTO;\n\npublic class InstanceFactory {\n\t\n\tpublic static Instance createInstance(Insta...
java
chosen
[ { "from": "system", "value": "Replace log4j reference with Logback." }, { "from": "human", "value": "package com.yammer.dropwizard.json;\n\nimport ch.qos.logback.classic.Level;\nimport org.codehaus.jackson.JsonParser;\nimport org.codehaus.jackson.Version;\nimport org.codehaus.jackson.map.*;\nimp...
java
chosen
[ { "from": "system", "value": "Fix hierarchical/inherit issue with styles for Tooltip\n" }, { "from": "human", "value": "package io.bisq.gui.components;\n\nimport de.jensd.fx.fontawesome.AwesomeDude;\nimport de.jensd.fx.fontawesome.AwesomeIcon;\nimport javafx.scene.control.ContentDisplay;\nimport...
java
chosen
[ { "from": "system", "value": "Add new exporter with method for direct integration in other projects.\n" }, { "from": "human", "value": "/*\n * ReturnExporter.java\n *\n */\n\npackage de.uni_stuttgart.vis.vowl.owl2vowl.export.types;\n\n/**\n * Simple exporter that saves the\n */\npublic class Bac...
java
chosen
[ { "from": "system", "value": "Print error list in exception case.\n\ngit-svn-id: https://svn.sable.mcgill.ca/mclab/Project@70 89b902b4-d83f-0410-b942-89f7a419ffdb\n\nMigrated from Sable/mclab@9a207c32906b6562aa0561a839effebf28d29b0b\n" }, { "from": "human", "value": "package natlab;\n\nimport ja...
java
chosen
[ { "from": "system", "value": "Make close() idempotent and implement Closable rather than AutoClosable" }, { "from": "human", "value": "package org.purl.wf4ever.robundle;\n\nimport java.io.IOException;\nimport java.nio.file.FileSystem;\nimport java.nio.file.Files;\nimport java.nio.file.Path;\n\ni...
java
chosen
[ { "from": "system", "value": "Set delete expense action as HTTP Put\n" }, { "from": "human", "value": "package agoodfriendalwayspayshisdebts.web.actions.expense;\n\nimport agoodfriendalwayspayshisdebts.command.expense.DeleteExpenseCommand;\nimport com.vter.command.CommandBus;\nimport com.vter.in...
java
chosen
[ { "from": "system", "value": "Remove unnecessary cast left over from netty 4 conversion.\n" }, { "from": "human", "value": "package org.apollo.net.codec.game;\n\nimport io.netty.channel.ChannelHandlerContext;\nimport io.netty.handler.codec.MessageToMessageDecoder;\n\nimport java.util.List;\n\nim...
java
chosen
[ { "from": "system", "value": "Check to make sure created file actually exists.\n" }, { "from": "human", "value": "package com.miguelgaeta.media_picker;\n\nimport android.os.Environment;\n\nimport java.io.File;\nimport java.io.IOException;\nimport java.util.UUID;\n\n@SuppressWarnings(\"UnusedDecl...
java
chosen
[ { "from": "system", "value": "Make redirect to https do the same thing as google.com\n" }, { "from": "human", "value": "package peergos.server.net;\n\nimport com.sun.net.httpserver.*;\n\nimport java.io.*;\n\npublic class RedirectHandler implements HttpHandler\n{\n private final String target;...
java
chosen
[ { "from": "system", "value": "Set action set's for Kotlin perspective: open type, launch configurations\n" }, { "from": "human", "value": "/*******************************************************************************\n * Copyright 2000-2014 JetBrains s.r.o.\n *\n * Licensed under the Apache L...
java
chosen
[ { "from": "system", "value": "Disable toasts for network broadcast events.\n" }, { "from": "human", "value": "package com.github.tuxdude.yani.network;\n\nimport android.content.BroadcastReceiver;\nimport android.content.Context;\nimport android.content.Intent;\nimport android.net.wifi.WifiManage...
java
chosen
[ { "from": "system", "value": "Remove holder item as not used anymore\n" }, { "from": "human", "value": "package flickr.demo.qvdev.com.flickrdemo;\n\nimport android.support.v7.widget.RecyclerView;\nimport android.view.LayoutInflater;\nimport android.view.View;\nimport android.view.ViewGroup;\n\ni...
java
chosen
[ { "from": "system", "value": "Fix that first recovery iterations have quota\n" }, { "from": "human", "value": "package org.spoofax.jsglr2.recovery;\n\nimport org.spoofax.jsglr2.parser.Position;\n\npublic class RecoveryJob {\n\n public Position position;\n public int iteration;\n public ...
java
chosen
[ { "from": "system", "value": "Fix crash bug with new semicolon semantics.\n" }, { "from": "human", "value": "package orc.runtime.regions;\n\nimport orc.runtime.Token;\n\npublic class SemiRegion extends Region {\n\n\tRegion parent;\n\tToken t;\n\t\n\t/* Create a new group region with the given pa...
java
chosen
[ { "from": "system", "value": "Add .verbose() for Travis logging" }, { "from": "human", "value": "package io.github.classgraph.issues;\n\nimport static org.assertj.core.api.Assertions.assertThat;\n\nimport java.io.File;\nimport java.util.List;\n\nimport org.junit.Test;\n\nimport io.github.classgr...
java
chosen
[ { "from": "system", "value": "Fix typo (filesytem --> filesystem).\n\nRELNOTES: None.\nPiperOrigin-RevId: 216337432\n" }, { "from": "human", "value": "// Copyright 2014 The Bazel Authors. All rights reserved.\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may n...
java
chosen
[ { "from": "system", "value": "Add a test case for instanceof expressions\n" }, { "from": "human", "value": "// fails\n// TYPE_NOT_FOUND\n// TYPE_NOT_FOUND\n// TYPE_NOT_FOUND\n// NAME_NOT_FOUND\n// TYPE_MISMATCH\n\npackage java.util;\n\n// import java.lang.*;\nimport java.io.File;\nimport java.io...
java
chosen
[ { "from": "system", "value": "Test Class Update: Change UIScope => VaadinUIScope\n" }, { "from": "human", "value": "package org.vaadin.spring.mvp.explicit;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.context.annotation.Bean;\nimport org.springfra...
java
chosen
[ { "from": "system", "value": "Add the use of Natty in every date input\n" }, { "from": "human", "value": "package seedu.ezdo.model.todo;\n\n/**\n * Represents the date associated with tasks.\n */\npublic abstract class TaskDate {\n\n public final String value;\n\n public static final Strin...
java
chosen
[ { "from": "system", "value": "Increase waiting time for MapR standalone\n" }, { "from": "human", "value": "package com.splicemachine.test;\n\nimport com.splicemachine.concurrent.Threads;\n\nimport java.io.IOException;\nimport java.net.Socket;\nimport java.util.concurrent.TimeUnit;\n\nimport stat...
java
chosen
[ { "from": "system", "value": "Fix bug where it was impossible to plant seeds on crop sticks\n\n" }, { "from": "human", "value": "package com.infinityraider.agricraft.plugins.minecraft;\n\nimport com.infinityraider.agricraft.api.v1.adapter.IAgriAdapter;\nimport com.infinityraider.agricraft.api.v1...
java
chosen
[ { "from": "system", "value": "Implement onClick for Start Quiz button.\n\n\nChange-Id: I7e65190731894b8069db68958b4663697e473190\nSigned-off-by: Chris Sinjakli <711c73f64afdce07b7e38039a96d2224209e9a6c@sinjakli.co.uk>\n" }, { "from": "human", "value": "/*\n * Copyright 2010 Chris Sinjakli\n *...
java
chosen
[ { "from": "system", "value": "Add agent proxy operation to end the negotiation\n" }, { "from": "human", "value": "package cas.ypsiliform.mediator.negotiation;\n\nimport java.util.ArrayList;\n\nimport cas.ypsiliform.mediator.async.Thenable;\nimport cas.ypsiliform.messages.AgentResponse;\n\npublic...
java
chosen
[ { "from": "system", "value": "Check notification setting before displaying notification.\n" }, { "from": "human", "value": "/*\n * Copyright (C) 2016 Simon Vig Therkildsen\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance...
java
chosen
[ { "from": "system", "value": "Add a searchFilter field to ad resource\n" }, { "from": "human", "value": "/*\n * Copyright 2019 EPAM Systems\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 o...
java
chosen
[ { "from": "system", "value": "Fix integration test to run the BeforeClass method for all groups\n" }, { "from": "human", "value": "package dk.statsbiblioteket.medieplatform.newspaper.editionRecords;\n\nimport org.testng.annotations.BeforeClass;\nimport org.testng.annotations.Test;\n\nimport dk.s...
java
chosen
[ { "from": "system", "value": "Rename old class name of kvs-schema\n" }, { "from": "human", "value": "package io.github.droidkaigi.confsched.util;\n\nimport android.content.Context;\nimport android.support.test.InstrumentationRegistry;\nimport android.support.test.runner.AndroidJUnit4;\n\nimport ...
java
chosen
[ { "from": "system", "value": "Make worker executor to FixedThreadPoolExecutor.\n" }, { "from": "human", "value": "package com.amebame.triton.server;\n\nimport java.util.concurrent.ExecutorService;\nimport java.util.concurrent.LinkedBlockingQueue;\nimport java.util.concurrent.ThreadPoolExecutor;\...
java
chosen
[ { "from": "system", "value": "Make invisible arrow actually invisible" }, { "from": "human", "value": "package pokefenn.totemic.client.renderer.entity;\n\nimport net.minecraft.client.renderer.entity.ArrowRenderer;\nimport net.minecraft.client.renderer.entity.EntityRendererProvider.Context;\nimpo...
java
chosen
[ { "from": "system", "value": "Add Introduction class for Team Treehouse example\n" }, { "from": "human", "value": "/**\n * @file Introductions.java\n * @author Valery Samovich\n * @version 1\n * @date 2015/04/07\n */\n\n/**\n * TeamTreehouse. Java Basics.\n */\npackage com.samovich.basics.introd...
java
chosen
[ { "from": "system", "value": "Update to support PIT 1.4.3" }, { "from": "human", "value": "package org.pitest.cucumber;\n\n\nimport org.pitest.junit.CompoundTestUnitFinder;\nimport org.pitest.junit.JUnitCompatibleConfiguration;\nimport org.pitest.testapi.TestGroupConfig;\nimport org.pitest.testa...
java
chosen
[ { "from": "system", "value": "Fix warning in core test" }, { "from": "human", "value": "package net.tomp2p.utils;\n\nimport java.util.ArrayList;\nimport java.util.Collection;\n\nimport junit.framework.Assert;\n\nimport org.junit.Test;\n\npublic class TestUtils {\n @SuppressWarnings(\"unchecke...
java
chosen
[ { "from": "system", "value": "Add .cgeo to search directories for map files" }, { "from": "human", "value": "package cgeo.geocaching;\n\nimport cgeo.geocaching.files.FileList;\n\nimport android.content.Intent;\nimport android.os.Bundle;\nimport android.os.Environment;\n\nimport java.io.File;\nim...
java
chosen
[ { "from": "system", "value": "Fix quarkus.test.arg-line multiple args handling\n\nThe split is intended to happen on a whitespace character,\nnot the comma character used by properties\n\nFixes: #19623\n" }, { "from": "human", "value": "package io.quarkus.test.junit.launcher;\n\nimport static io...
java
chosen
[ { "from": "system", "value": "Make method non-final (not allowed for CDI beans)\n" }, { "from": "human", "value": "package org.zanata.webtrans.server.rpc;\n\nimport net.customware.gwt.dispatch.server.ActionHandler;\nimport net.customware.gwt.dispatch.shared.Action;\nimport net.customware.gwt.dis...
java
chosen
[ { "from": "system", "value": "Add final modifier to charTypeSequence field\n" }, { "from": "human", "value": "package jacz.util.id;\n\nimport jacz.util.string.AlphanumericString;\n\n/**\n * Created by Alberto on 17/03/2016.\n */\npublic class AlphaNumFactory extends IdFactory<String> {\n\n pr...
java
chosen
[ { "from": "system", "value": "Revert those silly Intellij change\n" }, { "from": "human", "value": "package nl.yacht.lakesideresort;\n\nimport nl.yacht.lakesideresort.domain.Trip;\n\npublic class Main {\n public static void main(String[] args) {\n\n /// Create nl.yacht.lakesideresort.d...
java
chosen
[ { "from": "system", "value": "Add documentation and tidy up a bit\n\ngit-svn-id: 52ad764cdf1b64a6e804f4e5ad13917d3c4b2253@349151 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "human", "value": "/*\n * Copyright 2001-2005 The Apache Software Foundation.\n *\n * Licensed under the Apache Li...
java
chosen
[ { "from": "system", "value": "Change access specifiers for sleep times\n" }, { "from": "human", "value": "package guitests.guihandles;\n\npublic class GuiHandleSetting {\n static final int COMMAND_RUN_TIME = 80;\n static final int SLEEP_LENGTH = 50;\n static final int LONG_SLEEP_LENGTH ...
java
chosen
[ { "from": "system", "value": "[misc] Mark new role as unstable API\n" }, { "from": "human", "value": "/*\n * See the NOTICE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This program is free software: you can redistribute it and/or modify\n...
java
chosen
[ { "from": "system", "value": "Simplify initialiazing a datagram by use source port 0 and letting OS\nfind an available port" }, { "from": "human", "value": "package org.graylog2;\n\nimport java.io.IOException;\nimport java.net.*;\nimport java.util.List;\n\npublic class GelfSender {\n\n privat...
java
chosen
[ { "from": "system", "value": "Add javadoc to text object operators\n" }, { "from": "human", "value": "package org.verapdf.model.impl.pb.operator.textobject;\n\nimport org.apache.pdfbox.cos.COSBase;\nimport org.verapdf.model.impl.pb.operator.base.PBOperator;\nimport org.verapdf.model.operator.OpT...
java
chosen
[ { "from": "system", "value": "[V0.5RC][Test] Update deleteCommandParser to pass the test\n" }, { "from": "human", "value": "//@@author A0138474X\npackage seedu.address.logic.parser;\n\nimport static seedu.address.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT;\nimport static seedu.address....
java
chosen
[ { "from": "system", "value": "Change the declaration of Equal method's wiht Money " }, { "from": "human", "value": "package com.sibisoft.faizaniftikhartdd;\r\n\r\npublic class Franc extends Money \r\n{\r\n\tpublic Franc() \r\n\t{\r\n\t\t\r\n\t}\r\n\tpublic Franc(int amount)\r\n\t{\r\n\t\tthis.am...
java
chosen
[ { "from": "system", "value": "Include the dates when a component is available.\nThis is because we now aren't agregaring components." }, { "from": "human", "value": "package uk.ac.ox.oucs.vle;\n\npublic interface CourseComponent {\n\n\tpublic String getId();\n\t\n\tpublic String getTitle();\n\t\...
java
chosen
[ { "from": "system", "value": "Revert \"Increase JVM heap for logserver-container\"\n" }, { "from": "human", "value": "// Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\npackage com.yahoo.vespa.model.admin;\n\nimport com.yahoo.config....
java
chosen
[ { "from": "system", "value": "Call the bus register to the recipe serializers now" }, { "from": "human", "value": "package info.u_team.u_team_core.intern.init;\n\nimport info.u_team.u_team_core.util.registry.BusRegister;\n\npublic class UCoreCommonBusRegister {\n\t\n\tpublic static void register...
java
chosen
[ { "from": "system", "value": "Improve JVM launch time message\n" }, { "from": "human", "value": "/*\n * Copyright (c) 2015-2019 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 License.\n * You may obta...
java
chosen
[ { "from": "system", "value": "Complete test coverage for JsonApi.Errors class\n" }, { "from": "human", "value": "package com.digistratum.microhost.RestServer.JsonApi;\n\nimport org.junit.jupiter.api.BeforeEach;\nimport org.junit.jupiter.api.Test;\n\nimport static org.junit.jupiter.api.Assertions...
java
chosen
[ { "from": "system", "value": "Put a space to the right of all right-aligned numbers in tables.\nStrings are left-aligned, and when the two are next to each other it can\nlook bad.\n\n\ngit-svn-id: 64ebf368729f38804935acb7146e017e0f909c6b@1725 6335cc39-0255-0410-8fd6-9bcaacd3b74c\n" }, { "from": "hum...
java
chosen
[ { "from": "system", "value": "Set API version to v2.0.M1.\n" }, { "from": "human", "value": "/*\n * Copyright 2014 Open mHealth\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy...
java
chosen
[ { "from": "system", "value": "Mark hentaiImage test as flaky\n" }, { "from": "human", "value": "package com.rarchives.ripme.tst.ripper.rippers;\n\nimport java.io.IOException;\nimport java.net.URL;\n\nimport com.rarchives.ripme.ripper.rippers.HentaiimageRipper;\n\npublic class HentaiimageRipperTe...
java
chosen
[ { "from": "system", "value": "Add state saving to Tally\n" }, { "from": "human", "value": "package com.stevescodingblog.androidapps.tally;\n\nimport android.app.Activity;\nimport android.os.Bundle;\nimport android.view.View;\nimport android.widget.Button;\nimport android.widget.TextView;\n\npubl...
java
chosen
[ { "from": "system", "value": "Enable access to bean for FormRunner\n" }, { "from": "human", "value": "package jwebform.integration.bean2form;\n\nimport java.util.Optional;\nimport jwebform.FormResult;\nimport jwebform.field.structure.Field;\nimport jwebform.field.structure.FieldResult;\nimport j...
java
chosen
[ { "from": "system", "value": "Improve diagnostics for testLoadContexts failures\n" }, { "from": "human", "value": "// Copyright (c) Microsoft. All rights reserved.\n// Licensed under the MIT license. See License.txt in the project root.\n\npackage com.microsoft.alm.plugin.idea.common.ui.common.m...
java
chosen
[ { "from": "system", "value": "Make getter and setter of the value field synchronized\n" }, { "from": "human", "value": "package ru.nsu.ccfit.bogush.view;\n\nimport javax.swing.*;\n\npublic class LabeledValue extends JPanel {\n\tprivate JLabel valueLabel;\n\tprivate JLabel label;\n\tprivate JPane...
java
chosen
[ { "from": "system", "value": "Remove unnecessary override of getById\n\ngit-svn-id: 4b387fe5ada7764508e2ca96c335714e4c1692c6@1275 0d517254-b314-0410-acde-c619094fa49f\n" }, { "from": "human", "value": "package edu.northwestern.bioinformatics.studycalendar.dao;\n\nimport org.springframework.trans...
java
chosen
[ { "from": "system", "value": "Add name getter/setter to media object\n\nCloses #1.\n" }, { "from": "human", "value": "package scratchlib.objects.user.media;\n\nimport scratchlib.objects.fixed.data.ScratchObjectUtf8;\nimport scratchlib.objects.user.ScratchUserClassObject;\n\n\n/**\n * Base class ...
java
chosen
[ { "from": "system", "value": "Check multiple connected networks if API >= 21\n" }, { "from": "human", "value": "package cl.monsoon.s1next.util;\n\nimport android.content.Context;\nimport android.net.ConnectivityManager;\nimport android.net.NetworkInfo;\n\npublic final class NetworkUtil {\n\n ...
java
chosen
[ { "from": "system", "value": "Handle number format exception: building port\n" }, { "from": "human", "value": "package fortiss.gui.listeners.textfield;\n\nimport fortiss.gui.listeners.helper.InsertionVerifier;\n\npublic class BPortListener extends TextFieldListener {\n\n\tpublic BPortListener() ...
java
chosen
[ { "from": "system", "value": "Add aspect and ontologyType to list of queryable fields.\n" }, { "from": "human", "value": "package uk.ac.ebi.quickgo.rest.controller.search;\n\nimport org.springframework.stereotype.Component;\n\n/**\n * Checks if a given value is a searchable field\n */\n@Componen...
java
chosen
[ { "from": "system", "value": "Add persistent API key for easier testing.\n" }, { "from": "human", "value": "package com.uwetrottmann.tmdb;\n\nimport junit.framework.TestCase;\n\npublic abstract class BaseTestCase extends TestCase {\n\n protected static final String API_KEY = \"<FILL-ME-IN>\";...
java
chosen
[ { "from": "system", "value": "Remove legacy/deprecated code and cleanup.\n" }, { "from": "human", "value": "package org.metaborg.meta.lang.spt.testrunner.cmd;\n\nimport org.metaborg.core.editor.IEditorRegistry;\nimport org.metaborg.core.editor.NullEditorRegistry;\nimport org.metaborg.core.projec...
java
chosen
[ { "from": "system", "value": "Fix so that onClick in adapters get the correct item\n" }, { "from": "human", "value": "package io.blushine.android.ui.list;\n\nimport android.support.v7.widget.RecyclerView;\nimport android.view.View;\n\n/**\n * Edit an item by long clicking on it\n */\nclass Click...
java
chosen
[ { "from": "system", "value": "Enable bluetooth before location service bootstrap.\n" }, { "from": "human", "value": "package no.nordicsemi;\n\nimport android.bluetooth.BluetoothAdapter;\n\nimport com.radiusnetworks.ibeacon.Region;\nimport com.radiusnetworks.proximity.ibeacon.startup.RegionBootst...
java
chosen
[ { "from": "system", "value": "Add abstract clear() method to filters\n\nImplementers should wipe out their active filter data\n" }, { "from": "human", "value": "package org.azavea.otm.filters;\n\nimport android.view.View;\n\npublic abstract class BaseFilter {\n\t/**\n\t * The key for the filter ...
java
chosen
[ { "from": "system", "value": "Add stress http server testing\n" }, { "from": "human", "value": "import org.hcjf.log.Log;\nimport org.hcjf.properties.SystemProperties;\n\n/**\n * Created by javaito on 15/1/2016.\n */\npublic class Main {\n\n public static void main(String[] args) throws Except...
java
chosen
[ { "from": "system", "value": "Fix test for extra mouse manifest\n" }, { "from": "human", "value": "/*\n * Copyright (c) 2014. Real Time Genomics Limited.\n *\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provid...
java
chosen
[ { "from": "system", "value": "Make it a functional interface to enable lambda syntax" }, { "from": "human", "value": "/*******************************************************************************\n * Copyright (c) 2012 Pivotal Software, Inc.\n * All rights reserved. This program and the accom...
java
chosen
[ { "from": "system", "value": "Test modified according to refactorings\n" }, { "from": "human", "value": "package org.jlib.core.collection;\n\nimport java.util.HashMap;\nimport java.util.Map;\n\nimport org.junit.Test;\n\npublic class CachingMapTest {\n\n @Test\n public void performance() {\...
java
chosen
[ { "from": "system", "value": "Add getField method to abstract model\n\nMy future implementation of a Field class will depend on getting\nplot data by field key, rather than through the model. This opens\naccess to the underlaying JSON representation with keys identified\nin the configuration details.\n" ...
java
chosen
[ { "from": "system", "value": "Refactor search code, enforce type parameter\n" }, { "from": "human", "value": "package com.jaku.api;\n\nimport java.io.IOException;\n\nimport com.jaku.core.JakuRequest;\nimport com.jaku.request.SearchRequest;\n\npublic class SearchRequests {\n\n\tprivate SearchRequ...
java
chosen
[ { "from": "system", "value": "Change to user Collection instead of List" }, { "from": "human", "value": "/*\n * Copyright 2003 - 2017 The eFaps Team\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 * ...
java
chosen
[ { "from": "system", "value": "Clean up and switch distribution\n" }, { "from": "human", "value": "package fruit.g4;\n\npublic class FruitGenerator implements fruit.sim.FruitGenerator\n{\n\tprivate int[] dist;\n\t\n public int[] generate(int nplayers, int bowlsize) {\n int nfruits = npl...
java
chosen
[ { "from": "system", "value": "Disable block dropping for destroyBlock().\n" }, { "from": "human", "value": "package de.craften.plugins.educraft.luaapi.functions;\n\nimport de.craften.plugins.educraft.environment.LivingArmorStandBehavior;\nimport de.craften.plugins.educraft.luaapi.EduCraftApiFunc...
java
chosen
[ { "from": "system", "value": "Send vote count to interface\n" }, { "from": "human", "value": "package ch.ethz.geco.bass.audio.gson;\n\nimport ch.ethz.geco.bass.audio.util.AudioTrackMetaData;\nimport com.google.gson.*;\nimport com.sedmelluq.discord.lavaplayer.track.AudioTrack;\nimport com.sedmell...
java
chosen
[ { "from": "system", "value": "Remove duplication in test code\n" }, { "from": "human", "value": "package fi.evident.apina.spring.java.model;\n\nimport org.junit.Test;\n\nimport static org.hamcrest.CoreMatchers.is;\nimport static org.junit.Assert.assertThat;\n\npublic class JavaAnnotationTest {\n...
java
chosen
[ { "from": "system", "value": "Remove not needed bean declaration\n" }, { "from": "human", "value": "/*\n * MIT Licence\n * Copyright (c) 2017 Simon Frankenberger\n *\n * Please see LICENCE.md for complete licence text.\n */\npackage eu.fraho.spring.example;\n\nimport eu.fraho.spring.securityJwt....
java
chosen
[ { "from": "system", "value": "Make precompiled script plugin sample backwards compatible with JDK8\n" }, { "from": "human", "value": "package com.example;\n\nimport org.gradle.api.DefaultTask;\nimport org.gradle.api.file.RegularFileProperty;\nimport org.gradle.api.provider.ListProperty;\nimport ...
java
chosen
[ { "from": "system", "value": "Add user’s commands to chat\n" }, { "from": "human", "value": "package seedu.task.logic;\n\nimport java.util.logging.Logger;\n\nimport javafx.collections.ObservableList;\nimport seedu.task.commons.core.ComponentManager;\nimport seedu.task.commons.core.LogsCenter;\ni...
java
chosen
[ { "from": "system", "value": "Add expandable extension factory to application\n" }, { "from": "human", "value": "package com.mikepenz.fastadapter.app;\n\nimport com.mikepenz.fastadapter.extensions.ExtensionsFactories;\nimport com.mikepenz.fastadapter.select.SelectExtensionFactory;\n\nimport andr...
java
chosen
[ { "from": "system", "value": "Add missing negation to documentation.\n" }, { "from": "human", "value": "package com.bbn.bue.common.evaluation;\n\nimport java.io.File;\nimport java.io.IOException;\n\n/**\n * An object which records scoring events of objects where the expected (gold) item is of ty...
java
chosen
[ { "from": "system", "value": "Make the access check code a bit more readable.\n\ngit-svn-id: ed609ce04ec9e3c0bc25e071e87814dd6d976548@383 c7a0535c-eda6-11de-83d8-6d5adf01d787\n" }, { "from": "human", "value": "/* \n * Mutability Detector\n *\n * Copyright 2009 Graham Allan\n * \n * Licensed unde...
java
chosen
[ { "from": "system", "value": "Reset OCCI_CORE_SCHEME to its previous value." }, { "from": "human", "value": "/*******************************************************************************\n * Copyright (c) 2017 Inria\n * All rights reserved. This program and the accompanying materials\n * are ...
java
chosen
[ { "from": "system", "value": "Add test for inserting maven dependency by smart completion\n" }, { "from": "human", "value": "package org.jetbrains.idea.maven.dom;\n\nimport java.io.IOException;\n\n/**\n * @author Sergey Evdokimov\n */\npublic class MavenDependencyCompletionTest extends MavenDomW...
java
chosen
[ { "from": "system", "value": "Isolate pops and pushes through function objects so that they can be manipulated\n\nIt gets really weird, but it will become clearer\n" }, { "from": "human", "value": "package monads;\n\nimport static org.junit.Assert.assertEquals;\nimport static monads.Stack.*;\nim...
java
chosen
[ { "from": "system", "value": "Change from resourceId to id\n" }, { "from": "human", "value": "package model.job.metadata;\n\nimport java.util.List;\n\nimport org.joda.time.DateTime;\n\nimport com.fasterxml.jackson.annotation.JsonIgnore;\nimport com.fasterxml.jackson.annotation.JsonInclude;\nimpo...
java
chosen
[ { "from": "system", "value": "Change makeAMove signature for different types of field.\n" }, { "from": "human", "value": "package common.behaviour;\n\npublic interface FieldMethods {\n public void makeAMove();\n}\n" }, { "from": "gpt", "value": "package common.behaviour;\n\nimport...
java
chosen
[ { "from": "system", "value": "Fix wrong posters beeing displayed\n" }, { "from": "human", "value": "package com.jonasgerdes.schauburgr.network.image;\n\nimport com.jonasgerdes.schauburgr.model.Movie;\n\n/**\n * Created by jonas on 07.03.2017.\n */\n\npublic class SchauburgImageUrlCreator impleme...
java
chosen
[ { "from": "system", "value": "Test double call to DisposableSubscription.unsubscribe()\n" }, { "from": "human", "value": "package com.artemzin.qualitymatters.other;\n\nimport org.junit.Before;\nimport org.junit.Test;\n\nimport rx.functions.Action0;\n\nimport static org.assertj.core.api.Assertion...
java
chosen
[ { "from": "system", "value": "Read predicate and find one solution or return UNSATISFIABLE\n" }, { "from": "human", "value": "package de.bmoth.app;\n\n/**\n * Created by jessy on 19.05.17.\n */\npublic class ReplController {\n}\n" }, { "from": "gpt", "value": "package de.bmoth.app;\n...
java
chosen
[ { "from": "system", "value": "Test should only use a single root\n\ngit-svn-id: 79cef5a5a257cc9dbe40a45ac190115b4780e2d0@1704735 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "human", "value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor licen...
java
chosen
[ { "from": "system", "value": "Modify main to pass in application context uri that points to the sprint file via a property\n" }, { "from": "human", "value": "package com.boundary.sdk.event;\nimport org.apache.camel.spring.Main;\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\n\npublic...
java
chosen