conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Fix imports in test sounds" }, { "from": "human", "value": "package info.u_team.u_team_test.init;\n\nimport info.u_team.u_team_core.util.registry.CommonDeferredRegister;\nimport info.u_team.u_team_test.TestMod;\nimport net.minecraft.util.*;\nimport net.minecraftforg...
java
chosen
[ { "from": "system", "value": "Enable cross origin for development\n" }, { "from": "human", "value": "package edu.vse.configuration;\n\nimport edu.vse.filters.LoggingContextFilter;\nimport edu.vse.filters.RequestLoggingFilter;\nimport org.springframework.boot.web.servlet.FilterRegistrationBean;\n...
java
chosen
[ { "from": "system", "value": "Fix checkstyle violation: add missing period to javadoc\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 * See the NOTICE file distribut...
java
chosen
[ { "from": "system", "value": "Add method to match effectively immutable.\n\ngit-svn-id: ed609ce04ec9e3c0bc25e071e87814dd6d976548@393 c7a0535c-eda6-11de-83d8-6d5adf01d787\n" }, { "from": "human", "value": "/*\n * Mutability Detector\n *\n * Licensed under the Apache License, Version 2.0 (the \"Li...
java
chosen
[ { "from": "system", "value": "Fix for naming collections in Rascal metrics\n" }, { "from": "human", "value": "package org.ossmeter.metricprovider.rascal.trans.model;\n\nimport com.googlecode.pongo.runtime.*;\nimport com.mongodb.*;\n// protected region custom-imports on begin\n// protected region...
java
chosen
[ { "from": "system", "value": "Use new IShapedRecipe for more compatible width detection (alongside the fallback)\n\n#348\n" }, { "from": "human", "value": "package net.blay09.mods.cookingforblockheads.registry.recipe;\n\nimport com.google.common.collect.Lists;\nimport net.blay09.mods.cookingforb...
java
chosen
[ { "from": "system", "value": "Implement build method of ReadInstructionBuilder\n" }, { "from": "human", "value": "package scheduler;\n\nimport os.OperatingSystem;\nimport readinstruction.ReadInstruction;\n\nimport java.util.LinkedList;\nimport java.util.Queue;\n\n/**\n * Created by Karol on 2017...
java
chosen
[ { "from": "system", "value": "Clean up names of commands\n\nRemove the hyphen, this is horrible to read in the web UI. Rename\n\"Repo Download\" to \"repo\", matching the old style used before these\nwere ejected to a plugin.\n\nChange-Id: I1a4a02b0ab39e8249f3d3dc3d42b88fe893a93f4\n" }, { "from": "...
java
chosen
[ { "from": "system", "value": "Fix comment relating HTTP to be more generic.\n" }, { "from": "human", "value": "package net.morimekta.providence.util;\n\nimport net.morimekta.providence.PServiceCall;\n\nimport javax.annotation.Nullable;\nimport java.util.concurrent.TimeUnit;\n\n/**\n * Interface ...
java
chosen
[ { "from": "system", "value": "Fix code style. Add blank line.\n" }, { "from": "human", "value": "package com.google.heartrate.wearos.app.gatt.attributes;\n\nimport java.util.UUID;\n\n/**\n * {@link GattAttribute} is an interface for all GATT (ATT) protocol attributes.\n * According to GATT, all ...
java
chosen
[ { "from": "system", "value": "Add documentation for side in order book reconstruction\n" }, { "from": "human", "value": "package org.jvirtanen.parity.top;\n\npublic enum Side {\n BUY,\n SELL\n}\n" }, { "from": "gpt", "value": "package org.jvirtanen.parity.top;\n\n/**\n * The or...
java
chosen
[ { "from": "system", "value": "Add Exception for new created interface.\n" }, { "from": "human", "value": "/*\n * Copyright (c) 2021, WSO2 Inc. (http://www.wso2.org).\n *\n * WSO2 Inc. licenses this file to you under the Apache License,\n * Version 2.0 (the \"License\"); you may not use this file...
java
chosen
[ { "from": "system", "value": "Configure RmiProxy Bean for Product and Brand\n\nOPEN - task 20: Create a working item module workflow \nhttp://github.com/DevOpsDistilled/OpERP/issues/issue/20" }, { "from": "human", "value": "package devopsdistilled.operp.client.context;\n\nimport org.springframew...
java
chosen
[ { "from": "system", "value": "Sort results in minibatch mode\n" }, { "from": "human", "value": "package sssj;\n\nimport com.google.common.base.Preconditions;\nimport com.google.common.collect.ForwardingTable;\nimport com.google.common.collect.HashBasedTable;\nimport com.google.common.collect.Tab...
java
chosen
[ { "from": "system", "value": "Add a few asserts to the test\n\ngit-svn-id: c55cfc7c8893d43c3333f2d886128b43c8520716@380472 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "human", "value": "package org.xbean.jmx;\r\n\r\nimport junit.framework.TestCase;\r\nimport org.xbean.spring.context.Cla...
java
chosen
[ { "from": "system", "value": "Update interface for check if plan is billed\n" }, { "from": "human", "value": "// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\npackage com.yahoo.vespa.hosted.controller.api.integration.billing;\n\n/*...
java
chosen
[ { "from": "system", "value": "Fix for problem with tags\n" }, { "from": "human", "value": "package com.xamoom.android.xamoomsdk.Utils;\n\nimport java.util.List;\n\n/**\n * ListUtil to join lists of string.\n * (Because TextUtil gets mocked in tests)\n */\npublic class ListUtil {\n /**\n * Wil...
java
chosen
[ { "from": "system", "value": "Enable Bluetooth if not already enabled\n" }, { "from": "human", "value": "package com.example.mwismer.mobproto_finalproject;\n\nimport android.app.Fragment;\nimport android.os.Bundle;\nimport android.view.LayoutInflater;\nimport android.view.View;\nimport android.v...
java
chosen
[ { "from": "system", "value": "Fix name not containing the e" }, { "from": "human", "value": "package info.u_team.u_team_test.init;\n\nimport info.u_team.u_team_test.TestMod;\nimport info.u_team.u_team_test.potion.RadiationPotion;\nimport net.minecraft.potion.Potion;\nimport net.minecraftforge.ev...
java
chosen
[ { "from": "system", "value": "Remove the import since they are in the same package.\n\nSigned-off-by: TheDoctorsLife <5f15c2f87d000932be98132f8483e055af19d725@gmail.com>\n" }, { "from": "human", "value": "/**\n * @author benjamin.hoffmeyer\n */\n// package\npackage com.thedoctorslife.hello;\n\ni...
java
chosen
[ { "from": "system", "value": "Use logback to print job messages\n" }, { "from": "human", "value": "package org.daisy.maven.xproc.pipeline;\n\nimport com.google.common.eventbus.Subscribe;\n\nimport org.daisy.common.messaging.Message;\nimport org.daisy.pipeline.event.EventBusProvider;\n\nimport or...
java
chosen
[ { "from": "system", "value": "Make testing_log_file_path optional for now.\n\n\n\n\n\n" }, { "from": "human", "value": "package com.twitter.mesos.scheduler.log.testing;\n\nimport java.io.File;\n\nimport com.google.inject.PrivateModule;\nimport com.google.inject.Singleton;\n\nimport com.twitter.c...
java
chosen
[ { "from": "system", "value": "Add pod name to payload\n" }, { "from": "human", "value": "package enmasse.config.service.podsense;\n\nimport enmasse.config.service.openshift.MessageEncoder;\nimport io.fabric8.kubernetes.api.model.Pod;\nimport org.apache.qpid.proton.amqp.messaging.AmqpSequence;\ni...
java
chosen
[ { "from": "system", "value": "Fix missing serialized name annotation\n" }, { "from": "human", "value": "package co.phoenixlab.discord.api.entities;\n\nimport com.google.gson.annotations.SerializedName;\n\npublic class ReadyMessage {\n\n @SerializedName(\"v\")\n private int version;\n\n ...
java
chosen
[ { "from": "system", "value": "Use configId for the host, not the container.\n" }, { "from": "human", "value": "/*\n * Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\n */\n\npackage com.yahoo.vespa.model.admin.metricsproxy;\n\nimport ...
java
chosen
[ { "from": "system", "value": "engine: Remove visibility modifier from interface\n\nChange-Id: I45dd381b9a4e9d4a0e9f23bff0e4c3bee3f5a6c5\nSigned-off-by: Moti Asayag <da1debb83a8e12b6e8822edf2c275f55cc51b720@redhat.com>\n" }, { "from": "human", "value": "package org.ovirt.engine.core.bll;\n\npubli...
java
chosen
[ { "from": "system", "value": "Put the bundle set value in a new while loop.\n" }, { "from": "human", "value": "package com.brg.dao;\n\n\nimport com.brg.ServiceProvider;\nimport com.brg.domain.RuleValueBundle;\n\nimport java.sql.ResultSet;\nimport java.sql.Statement;\nimport java.util.ArrayList;\...
java
chosen
[ { "from": "system", "value": "Change /hello to respond to POST requests" }, { "from": "human", "value": "package com.twilio.starter;\n\nimport com.twilio.Twilio;\nimport com.twilio.starter.controller.CallController;\nimport com.twilio.starter.controller.MessageController;\nimport com.twilio.star...
java
chosen
[ { "from": "system", "value": "Choose set background method by API\n" }, { "from": "human", "value": "package edu.rutgers.css.Rutgers.fragments;\n\nimport android.content.res.Configuration;\nimport android.graphics.Bitmap;\nimport android.graphics.BitmapFactory;\nimport android.graphics.drawable....
java
chosen
[ { "from": "system", "value": "Use decimal value instead of octal one\n" }, { "from": "human", "value": "package com.nilhcem.droidcontn.data.app.model;\n\nimport android.os.Build;\nimport android.os.Parcel;\n\nimport com.nilhcem.droidcontn.BuildConfig;\n\nimport org.junit.Test;\nimport org.junit....
java
chosen
[ { "from": "system", "value": "Clean left over data migration after removal of TrackingIds table\n\n9f4de526dd3fec0400f6df53628956a4bf0d9033 removed TrackingIds table.\n766e4415b0f004a4e53c93d256624361072c67c4 tries to swap primary key from\ntracking_id to tracking_key in data migration method.\n\nBut becaus...
java
chosen
[ { "from": "system", "value": "PLFM-6278: Fix failing test due changes in library\n" }, { "from": "human", "value": "package org.sagebionetworks.repo.manager.oauth;\n\nimport java.util.Date;\n\nimport org.sagebionetworks.repo.model.oauth.OIDCClaimName;\n\nimport io.jsonwebtoken.impl.DefaultClaims...
java
chosen
[ { "from": "system", "value": "Add test for too short isin\n" }, { "from": "human", "value": "package name.abuchen.portfolio.util;\n\nimport static org.junit.Assert.assertFalse;\nimport static org.junit.Assert.assertTrue;\n\nimport org.junit.Test;\n\npublic class IsinTest\n{\n @Test\n publi...
java
chosen
[ { "from": "system", "value": "Fix first upper case problem." }, { "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 org.n...
java
chosen
[ { "from": "system", "value": "Fix license headers\nFix notice file\n\ngit-svn-id: 477788cc2a8229a747c5b8073e47c1d0f6ec0604@24364 f5dbab47-78f9-eb45-b975-e544023573eb\n" }, { "from": "human", "value": "package org.jasig.portal.portlets.iframe;\n\nimport javax.portlet.RenderRequest;\nimport javax....
java
chosen
[ { "from": "system", "value": "Add support GridLayoutManager for itemSpace\n" }, { "from": "human", "value": "package com.omega_r.libs.omegarecyclerview.item_decoration;\n\nimport android.graphics.Rect;\nimport androidx.annotation.NonNull;\nimport androidx.recyclerview.widget.RecyclerView;\n\nimp...
java
chosen
[ { "from": "system", "value": "Fix an inconsistency of line separator in RunWithAnnotationIntegrationTest.\n\nSummary: In `ParametrizedTest` `\\n` should be explicitly printed instead of\n`println` in order to match string pattern defined in `RunWithAnnotationIntegrationTest`.\n\nTest Plan: Unit tests.\n" ...
java
chosen
[ { "from": "system", "value": "Use a while loop rather than a c-style for loop\n" }, { "from": "human", "value": "package com.maxmind.geoip2.record;\n\nimport java.util.*;\nimport org.json.*;\n\npublic abstract class RecordWithNames {\n\n private HashMap<String, String> names;\n private Int...
java
chosen
[ { "from": "system", "value": "Remove redundant declaration of getFailures() that is already defined in the super interface\n" }, { "from": "human", "value": "/*\n * Copyright 2015 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you ma...
java
chosen
[ { "from": "system", "value": "Mask ctms-common's commons-logging logger with an slf4j logger\n\ngit-svn-id: 4b387fe5ada7764508e2ca96c335714e4c1692c6@1296 0d517254-b314-0410-acde-c619094fa49f\n" }, { "from": "human", "value": "package edu.northwestern.bioinformatics.studycalendar.dao;\n\nimport g...
java
chosen
[ { "from": "system", "value": "Add new test case to AllTests" }, { "from": "human", "value": "package net.ssehub.kernel_haven.fe_analysis.pcs;\n\nimport org.junit.runner.RunWith;\nimport org.junit.runners.Suite;\nimport org.junit.runners.Suite.SuiteClasses;\n\n/**\n * Tests suite to load tests sp...
java
chosen
[ { "from": "system", "value": "Add and pass tests for gardenLocation\n" }, { "from": "human", "value": "package umm3601.plant;\n\nimport com.google.gson.Gson;\nimport org.junit.Before;\nimport org.junit.Test;\nimport umm3601.digitalDisplayGarden.Plant;\nimport umm3601.digitalDisplayGarden.PlantCo...
java
chosen
[ { "from": "system", "value": "Change window title. Forbid resizing.\n" }, { "from": "human", "value": "package uni.projects.javafxcrud;\n\nimport javafx.application.Application;\nimport javafx.fxml.FXMLLoader;\nimport javafx.scene.Parent;\nimport javafx.scene.Scene;\nimport javafx.stage.Stage;\n...
java
chosen
[ { "from": "system", "value": "Update due to API change" }, { "from": "human", "value": "\npackage org.gemoc.sample.tfsm.xdsml.api.impl;\n\nimport java.lang.reflect.Method;\nimport java.util.List;\n\nimport org.gemoc.execution.engine.trace.gemoc_execution_trace.MSEOccurrence;\nimport org.gemoc.ge...
java
chosen
[ { "from": "system", "value": "Reduce poll time to 10ms.\n" }, { "from": "human", "value": "package com.tinkerpop.gremlin.driver;\n\nimport com.tinkerpop.gremlin.driver.message.ResponseMessage;\n\nimport java.util.concurrent.LinkedBlockingQueue;\nimport java.util.concurrent.TimeUnit;\n\n/**\n * A...
java
chosen
[ { "from": "system", "value": "Update 2 achievement types, add goal amount to type + accessor method\n" }, { "from": "human", "value": "package com.stefanhoth.ropasclisp.achievements;\n\nimport android.content.Context;\nimport android.support.annotation.StringRes;\n\nimport com.stefanhoth.ropascl...
java
chosen
[ { "from": "system", "value": "Allow prop file to be missing.\n" }, { "from": "human", "value": "package io.muoncore.spring.boot;\n\nimport io.muoncore.spring.annotations.EnableMuonControllers;\nimport io.muoncore.spring.repository.DefaultMuonEventStoreRepository;\nimport io.muoncore.spring.repos...
java
chosen
[ { "from": "system", "value": "Add more comments and example of use.\n" }, { "from": "human", "value": "package com.google.instrumentation.common;\n\nimport java.io.Closeable;\n\n/**\n * An {@link Closeable} which cannot throw a checked exception.\n */\npublic interface NonThrowingCloseable exten...
java
chosen
[ { "from": "system", "value": "Fix regression in test due to vert.x update\n" }, { "from": "human", "value": "package com.gentics.mesh.etc;\n\nimport static org.mockito.Mockito.mock;\nimport static org.mockito.Mockito.when;\n\nimport org.junit.Test;\nimport io.vertx.core.http.HttpMethod;\nimport ...
java
chosen
[ { "from": "system", "value": "Add in the \"metadata\" field to be consistent with the specification\n" }, { "from": "human", "value": "package edu.berkeley.eecs.cfc_tracker.wrapper;\n\n/**\n * Created by shankari on 7/5/15.\n */\npublic class Metadata {\n public long getWrite_ts() {\n ...
java
chosen
[ { "from": "system", "value": "Refactor magic port number into constant.\n\ngit-svn-id: c455d203a03ec41bf444183aad31e7cce55db786@1349874 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "human", "value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributo...
java
chosen
[ { "from": "system", "value": "Fix up missing newlines at eof\n" }, { "from": "human", "value": "/* Copyright (c) 2012 Google 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 obtain a co...
java
chosen
[ { "from": "system", "value": "Use \"private\" for fields in struct-like classes\n" }, { "from": "human", "value": "package jauter;\n\npublic class Pattern<T> {\n protected final String path;\n protected final String[] tokens;\n protected final T target;\n\n public static String remo...
java
chosen
[ { "from": "system", "value": "Enable AutoConfiguration and removed default controller to CustomerAdaptor\n" }, { "from": "human", "value": "package com.tesco.bootcamp.orderreview.adaptor;\n\nimport com.tesco.bootcamp.orderreview.representations.Customer;\nimport org.springframework.beans.factory...
java
chosen
[ { "from": "system", "value": "Make corrections in task 3.3 again\n" }, { "from": "human", "value": "package ru.job4j.maximum;\n\n/**\n* Max class.\n* @author Yury Chuksin (chuksin.yury@gmail.com)\n* @since 18.01.2017\n*/\npublic class Max {\n\n\t/**\n\t* maxFromTwo method compare two variables a...
java
chosen
[ { "from": "system", "value": "Revert test servlet to /test location\n" }, { "from": "human", "value": "// Copyright 2019 Google LLC\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a ...
java
chosen
[ { "from": "system", "value": "Make Nodes use TextLayoutBuilder's LayoutMeasureUtil\n\nSummary:\nMake Nodes use TextLayoutBuilder's LayoutMeasureUtil.\nThis cuts down a dependency.\n\nReviewed By: ahmedre\n\nDifferential Revision: D4151599\n" }, { "from": "human", "value": "/**\n * Copyright (c) ...
java
chosen
[ { "from": "system", "value": "Add comment explaining how we capture form contents\n" }, { "from": "human", "value": "package com.kickstarter.libs;\n\nimport android.webkit.JavascriptInterface;\n\nimport com.kickstarter.services.KickstarterWebViewClient;\n\npublic class WebViewJavascriptInterface...
java
chosen
[ { "from": "system", "value": "Use default Deserializer for object-type\n\n- Use default Deserializer for object-type instead of map each field\n" }, { "from": "human", "value": "package ch.viascom.hipchat.api.deserializer;\n\nimport ch.viascom.hipchat.api.models.message.MessageFrom;\nimport com....
java
chosen
[ { "from": "system", "value": "Fix non-ASCII characters that are problematic when building with ant in Ubuntu\n" }, { "from": "human", "value": "package net.floodlightcontroller.core;\n\nimport org.projectfloodlight.openflow.protocol.OFMessage;\n\n/**\n * Copyright (c) 2014, NetIDE Consortium (Cr...
java
chosen
[ { "from": "system", "value": "[MySQL] Use NUMERIC as a string generation strategy\n" }, { "from": "human", "value": "package sqlancer.dbms;\n\nimport static org.junit.jupiter.api.Assertions.assertEquals;\nimport static org.junit.jupiter.api.Assumptions.assumeTrue;\n\nimport org.junit.jupiter.api...
java
chosen
[ { "from": "system", "value": "Handle newlines when building 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 t...
java
chosen
[ { "from": "system", "value": "Fix motion blur for Processing 3" }, { "from": "human", "value": "package com.haxademic.core.image;\n\nimport java.util.ArrayList;\n\nimport processing.core.PGraphics;\nimport processing.core.PImage;\n\nimport com.haxademic.core.draw.util.DrawUtil;\n\npublic class M...
java
chosen
[ { "from": "system", "value": "Allow persistent locale-based formatting for DateFormat" }, { "from": "human", "value": "package com.xfyre.tapestry5.xtensions.components;\n\nimport java.text.DateFormat;\nimport java.text.SimpleDateFormat;\nimport java.util.Date;\n\nimport org.apache.tapestry5.Bind...
java
chosen
[ { "from": "system", "value": "Add update and delete methods.\n" }, { "from": "human", "value": "/*\n * Copyright 2016, Frederik Boster\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain...
java
chosen
[ { "from": "system", "value": "Add missing license header to fix failing build\n\nRB=606120\nG=pinot-dev-reviewers\nR=kgopalak,jfim,ssubrama,mshrivas\nA=mshrivas\n" }, { "from": "human", "value": "package com.linkedin.pinot.common.metrics;\n\nimport com.yammer.metrics.core.MetricsRegistry;\n\n\n/...
java
chosen
[ { "from": "system", "value": "Make class serializable so that it'll work with the session stuff\n\n" }, { "from": "human", "value": "/*\n * Copyright 2007 The Kuali Foundation.\n * \n * Licensed under the Educational Community License, Version 1.0 (the \"License\");\n * you may not use this file...
java
chosen
[ { "from": "system", "value": "Correct iterator so it doesn't skip the last device\n" }, { "from": "human", "value": "/*\n * Copyright (C) 2013 Klaus Reimer <k@ailis.de>\n * See LICENSE.md for licensing information.\n */\n\npackage de.ailis.usb4java.libusb;\n\nimport java.util.Iterator;\n\n/**\n ...
java
chosen
[ { "from": "system", "value": "Add convenience method for EventManager access." }, { "from": "human", "value": "/**\n * This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. \n * If a copy of the MPL was not distributed with this file, You can obtain one at \n * htt...
java
chosen
[ { "from": "system", "value": "Fix test, get username etc from env vars\n" }, { "from": "human", "value": "package fi.helsinki.cs.tmc.cli.tmcstuff;\n\nimport static org.junit.Assert.assertNotNull;\nimport static org.junit.Assert.assertNull;\n\nimport fi.helsinki.cs.tmc.cli.Application;\n\nimport ...
java
chosen
[ { "from": "system", "value": "Add helper method for creating needed field mappings\n" }, { "from": "human", "value": "package age;\n\nimport java.io.IOException;\nimport java.nio.file.Files;\nimport java.nio.file.Path;\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class CSVReade...
java
chosen
[ { "from": "system", "value": "Make proper code for c const strings required for fixup in hotspot\n" }, { "from": "human", "value": "package com.oracle.graal.lir.sparc;\n\nimport static com.oracle.graal.lir.LIRInstruction.OperandFlag.*;\n\nimport com.oracle.graal.api.code.CompilationResult.RawDat...
java
chosen
[ { "from": "system", "value": "Fix in ModuleRegistry to properly disable module without unloading them" }, { "from": "human", "value": "/***************************** BEGIN LICENSE BLOCK ***************************\r\n\r\nThe contents of this file are subject to the Mozilla Public License, v. 2.0...
java
chosen
[ { "from": "system", "value": "Change camera angle from 115 to 125 degrees.\n" }, { "from": "human", "value": "/*\n * To change this template, choose Tools | Templates\n * and open the template in the editor.\n */\npackage edu.stuy.subsystems;\n\nimport edu.stuy.RobotMap;\nimport edu.wpi.first.wp...
java
chosen
[ { "from": "system", "value": "Remove catch in wait fixture.\n" }, { "from": "human", "value": "package fitnesse.testutil;\n\n\npublic class WaitFixture {\n\n public WaitFixture() {\n try {\n Thread.sleep(2000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\...
java
chosen
[ { "from": "system", "value": "Add the other two types of cargo\n" }, { "from": "human", "value": "package uk.co.alynn.games.suchrobot;\n\npublic enum CargoType {\n NOTHING,\n WATER;\n}\n" }, { "from": "gpt", "value": "package uk.co.alynn.games.suchrobot;\n\npublic enum CargoTyp...
java
chosen
[ { "from": "system", "value": "Stop catching Espresso Intents exception\n" }, { "from": "human", "value": "package com.braintreepayments.testutils;\n\nimport android.app.Activity;\nimport android.app.KeyguardManager;\nimport android.content.Context;\nimport android.support.test.espresso.intent.In...
java
chosen
[ { "from": "system", "value": "Clean up analyzer unit test\n" }, { "from": "human", "value": "package com.jivesoftware.os.miru.plugin.query;\n\nimport com.google.common.collect.Lists;\nimport org.apache.lucene.analysis.Analyzer;\nimport org.testng.annotations.Test;\n\nimport java.util.List;\n\nim...
java
chosen
[ { "from": "system", "value": "Add dimension variable and make control points protected.\n" }, { "from": "human", "value": "package com.github.klane.parc;\n\nimport org.jblas.DoubleMatrix;\n\npublic abstract class BasisCurve implements ParametricCurve {\n\n protected final int n;\n private ...
java
chosen
[ { "from": "system", "value": "Fix worst bug with not execution of testcases in case of @OrinteerRule\n" }, { "from": "human", "value": "package org.orienteer.junit;\n\nimport org.junit.rules.MethodRule;\nimport org.junit.runners.model.FrameworkMethod;\nimport org.junit.runners.model.Statement;\n...
java
chosen
[ { "from": "system", "value": "Clarify variables for Google Play credentials\n" }, { "from": "human", "value": "package org.linuxguy.MarketBot;\n\nimport org.linuxguy.MarketBot.FlowdockNotifier.FlowdockNotificationType;\n\npublic class MarketBot { \n public static void main(String[] args) thro...
java
chosen
[ { "from": "system", "value": "Add working controller. XML IMPORTER DONE not tested yet\n" }, { "from": "human", "value": "package nl.avansc1.facturatie.api.controller;\n\nimport org.springframework.stereotype.Controller;\nimport org.springframework.web.bind.annotation.RequestMapping;\n\n/**\n * ...
java
chosen
[ { "from": "system", "value": "Add response to commander executor" }, { "from": "human", "value": "package com.decker.Essentials;\r\n\r\nimport java.io.IOException;\r\nimport java.io.OutputStream;\r\n\r\nimport javax.servlet.http.HttpServletRequest;\r\nimport javax.servlet.http.HttpServletRespons...
java
chosen
[ { "from": "system", "value": "Fix potential issue when parsing text content charset\n" }, { "from": "human", "value": "package com.vtence.molecule.testing.http;\n\nimport com.vtence.molecule.http.ContentType;\n\nimport java.io.IOException;\nimport java.io.OutputStream;\nimport java.nio.charset.C...
java
chosen
[ { "from": "system", "value": "Revert to returning the exportUrl as String since a relative href is not a valid Java URL.\n" }, { "from": "human", "value": "/**\n * Copyright (C) 2009-2016 Simonsoft Nordic AB\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may no...
java
chosen
[ { "from": "system", "value": "Delete several commented out lines.\n" }, { "from": "human", "value": "package com.biotronisis.pettplant.communication.transfer;\n\nimport java.io.Serializable;\n\npublic abstract class AbstractResponse implements Serializable {\n private static final long serial...
java
chosen
[ { "from": "system", "value": "Add a requirement on annotations\n\nDo not rely to get these transitively, add a requires static.\n\nChange-Id: Ibf06934bcdf808e1bdc47cdb8097adc9d5650606\nSigned-off-by: Robert Varga <91ae5aa8c7a9f7e57b701db766e23e544aaa6ae9@pantheon.tech>\n" }, { "from": "human", "...
java
chosen
[ { "from": "system", "value": "Add support for visiting fragments in QueryVisitior. PR feedback\n" }, { "from": "human", "value": "package graphql.analysis;\n\nimport graphql.Internal;\nimport graphql.language.FragmentDefinition;\nimport graphql.language.Node;\nimport graphql.util.TraverserContex...
java
chosen
[ { "from": "system", "value": "Fix minor formatting things, remove debug message\n" }, { "from": "human", "value": "package org.usfirst.frc4915.debuggersystem;\n\nimport java.util.logging.*;\npublic class CustomFormatter extends Formatter\n{\n \n public CustomFormatter()\n {\n sup...
java
chosen
[ { "from": "system", "value": "Add starting coordinates to config\n" }, { "from": "human", "value": "package net.alcuria.umbracraft.definitions.config;\n\nimport net.alcuria.umbracraft.annotations.Tooltip;\nimport net.alcuria.umbracraft.definitions.Definition;\n\nimport com.badlogic.gdx.utils.Arr...
java
chosen
[ { "from": "system", "value": "Fix a bug where the chat was closed on teleport\n" }, { "from": "human", "value": "package com.Acrobot.ChestShop.Listeners.Player;\n\nimport org.bukkit.event.EventHandler;\nimport org.bukkit.event.Listener;\nimport org.bukkit.event.player.PlayerTeleportEvent;\n\n/**...
java
chosen
[ { "from": "system", "value": "Fix forgotten registration of BeanDefinitionParser for <management:jms-caching-connection-factory>\n" }, { "from": "human", "value": "/*\n * Copyright 2008-2010 Xebia and the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"L...
java
chosen
[ { "from": "system", "value": "Remove money, bugfixing, added typecheckertests\n" }, { "from": "human", "value": "package org.uva.sea.ql.gui.widget;\r\n\r\nimport java.awt.event.ActionEvent;\r\nimport java.awt.event.ActionListener;\r\n\r\nimport javax.swing.JComponent;\r\nimport javax.swing.JText...
java
chosen
[ { "from": "system", "value": "Fix round trip for testing JdkInflate / JdkDeflate\n\nThe Inflater and Deflater calls need to be aligned on whether or not\nthe compressed output includes the ZLIB header and checksum fields.\n" }, { "from": "human", "value": "/*\n * Licensed under the Apache Licens...
java
chosen
[ { "from": "system", "value": "Add comment re: send IP of controller for test.\n" }, { "from": "human", "value": "package org.bitbucket.openkilda.atdd;\n\nimport cucumber.api.PendingException;\nimport cucumber.api.java.en.Given;\nimport cucumber.api.java.en.Then;\nimport cucumber.api.java.en.When...
java
chosen
[ { "from": "system", "value": "Add support for drawing the interpreted segments into a data collector.\n\ngit-svn-id: a0d2519504059b70a86a1ce51b726c2279190bad@24833 6e01202a-0783-4428-890a-84243c50cc2b\n" }, { "from": "human", "value": "package org.concord.datagraph.analysis;\n\nimport java.awt.C...
java
chosen
[ { "from": "system", "value": "Use activity context not application context\n" }, { "from": "human", "value": "package com.fedorvlasov.lazylist;\n\nimport android.app.Activity;\nimport android.content.Context;\nimport android.view.LayoutInflater;\nimport android.view.View;\nimport android.view.Vi...
java
chosen
[ { "from": "system", "value": "Read file batch transfer (I38).\n" }, { "from": "human", "value": "package roart.common.filesystem;\n\nimport java.util.Map;\n\nimport roart.common.inmemory.model.InmemoryMessage;\nimport roart.common.model.FileObject;\n\npublic class FileSystemMessageResult {\n ...
java
chosen
[ { "from": "system", "value": "Write syntax test on LocalDataSource which supports writes.\n" }, { "from": "human", "value": "/*\n * Copyright 2008-2010 Brookhaven National Laboratory\n * All rights reserved. Use is subject to license terms.\n */\n\npackage org.epics.pvmanager;\n\nimport org.juni...
java
chosen
[ { "from": "system", "value": "Test findDoStatement method for loop-hoisting\n" }, { "from": "human", "value": "/*\n * This file is released under terms of BSD license\n * See LICENSE file for more information\n */\n\npackage cx2x.xcodeml.xelement;\n\nimport cx2x.xcodeml.exception.IllegalTransfor...
java
chosen