conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Fix error in query parameter.\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.hibernate.repositories;\n\nimport com.codeup.movies.Movie;\nimport com...
java
chosen
[ { "from": "system", "value": "Mark article read as it comes into view, rather than when it leaves\n\nThe last article in a feed was difficult to mark as read\n" }, { "from": "human", "value": "package net.elprespufferfish.rssreader;\n\nimport android.support.v4.view.ViewPager;\n\n/**\n * Handles...
java
chosen
[ { "from": "system", "value": "Include version 2.5.0 in PhantomJs test for versions\n" }, { "from": "human", "value": "/*\n * (C) Copyright 2016 Boni Garcia (http://bonigarcia.github.io/)\n *\n * All rights reserved. This program and the accompanying materials\n * are made available under the ter...
java
chosen
[ { "from": "system", "value": "Add new abstract methods: getTerms() and getArity(). Also, there is a bit\nmodification to the class description.\n" }, { "from": "human", "value": "package org.obda.query.domain;\n\n/**\n * This class defines a type of {@link Term} in which it expresses a relation\...
java
chosen
[ { "from": "system", "value": "Discard supplier after it's used\n" }, { "from": "human", "value": "package editor.util;\n\nimport java.util.function.Supplier;\n\n/**\n * This class \"lazily\" supplies a value by not evaluating it until the first time\n * it is requested. Then that function's res...
java
chosen
[ { "from": "system", "value": "Use nicer \"Processing succeeded\" message\n" }, { "from": "human", "value": "package controllers.crawlers;\n\nimport play.db.jpa.Transactional;\nimport play.mvc.Controller;\nimport play.mvc.Result;\n\nimport java.io.IOException;\nimport java.security.GeneralSecurit...
java
chosen
[ { "from": "system", "value": "Make default OpTimer serializable and fix build\n" }, { "from": "human", "value": "package me.prettyprint.cassandra.connection;\n\npublic class NullOpTimer implements HOpTimer {\n\n @Override\n public Object start() {\n return this;\n }\n\n @Override\n publi...
java
chosen
[ { "from": "system", "value": "Remove tree layout, use default layout instead.\n" }, { "from": "human", "value": "package nl.tudelft.dnainator.ui;\n\nimport nl.tudelft.dnainator.graph.DNAGraph;\nimport nl.tudelft.dnainator.graph.DNALayout;\n\nimport org.graphstream.graph.Graph;\nimport org.graphs...
java
chosen
[ { "from": "system", "value": "Fix bounds element touch area incorrect issue.\n" }, { "from": "human", "value": "package com.mocircle.cidrawing.element;\n\nimport android.graphics.Matrix;\nimport android.graphics.Path;\nimport android.graphics.RectF;\n\n/**\n * A kind of element which is surround...
java
chosen
[ { "from": "system", "value": "Make exception mapper more accurate on jax-rs internal error\n" }, { "from": "human", "value": "package fr.insee.pogues.webservice.rest;\n\nimport javax.ws.rs.core.MediaType;\nimport javax.ws.rs.core.Response;\nimport javax.ws.rs.ext.ExceptionMapper;\nimport javax.w...
java
chosen
[ { "from": "system", "value": "Move sound initialization up before showing the window.\n" }, { "from": "human", "value": "package hypernova;\n\nimport javax.swing.JFrame;\n\nimport org.apache.log4j.Level;\nimport org.apache.log4j.Logger;\nimport org.apache.log4j.BasicConfigurator;\n\nimport hyper...
java
chosen
[ { "from": "system", "value": "Remove unused registry for the event bus" }, { "from": "human", "value": "package info.u_team.u_team_test.enchantment;\n\nimport info.u_team.u_team_core.enchantment.UEnchantment;\nimport net.minecraft.enchantment.EnchantmentType;\nimport net.minecraft.inventory.Equi...
java
chosen
[ { "from": "system", "value": "Improve utils function for xslt exception\n" }, { "from": "human", "value": "package fr.insee.eno.exception;\n\nimport net.sf.saxon.trans.XPathException;\n\npublic class Utils {\n\n public static String getErrorLocation(String styleSheet, Exception e){\n S...
java
chosen
[ { "from": "system", "value": "Make rethrow chain a Function" }, { "from": "human", "value": "package throwing.bridge;\n\nimport java.util.Optional;\nimport java.util.function.Function;\n\n@FunctionalInterface\ninterface RethrowChain<X extends Throwable, Y extends Throwable> {\n public static ...
java
chosen
[ { "from": "system", "value": "Add hashCode and equals to actor model, since a show holds all actors in a HashSet\n" }, { "from": "human", "value": "package models;\n\nimport play.data.validation.Constraints;\nimport play.db.ebean.Model;\n\nimport javax.persistence.Column;\nimport javax.persisten...
java
chosen
[ { "from": "system", "value": "Test for sequential auto redeployment." }, { "from": "human", "value": "package com.irgat.rest;\n\nimport org.springframework.web.bind.annotation.RequestMapping;\nimport org.springframework.web.bind.annotation.RestController;\n\n@RestController\npublic class HelloWo...
java
chosen
[ { "from": "system", "value": "Fix proxy variable that was not adjusted\n" }, { "from": "human", "value": "package info.u_team.u_team_core;\n\nimport org.apache.logging.log4j.*;\n\nimport info.u_team.u_team_core.api.IModProxy;\nimport info.u_team.u_team_core.intern.proxy.*;\nimport net.minecraftf...
java
chosen
[ { "from": "system", "value": "Fix recur bug: Not working when floating task is added\n" }, { "from": "human", "value": "package seedu.ezdo.commons.util;\n\nimport seedu.ezdo.model.todo.ReadOnlyTask;\n\n//@@author A0139177W\n/**\n * Utility method for Recur\n */\npublic class RecurUtil {\n\n /...
java
chosen
[ { "from": "system", "value": "Add method to format lists of tasks for commandResult" }, { "from": "human", "value": "package tars.logic.commands;\n\n/**\n * Represents the result of a command execution.\n */\npublic class CommandResult {\n\n public final String feedbackToUser;\n\n public C...
java
chosen
[ { "from": "system", "value": "Fix players being able to /kill after restart to leave with gm1\n" }, { "from": "human", "value": "package org.c4k3.Events;\n\nimport org.bukkit.event.EventHandler;\nimport org.bukkit.event.EventPriority;\nimport org.bukkit.event.Listener;\nimport org.bukkit.event.e...
java
chosen
[ { "from": "system", "value": "Change Silly for Smart in comments and title\n" }, { "from": "human", "value": "package com.axelmonroy;\n\nimport javax.swing.*;\n\n/**\n * Silly Tic-Tac-Toe - By Axel!\n *\n */\npublic class App \n{\n public static void main(String[] args) {\n JFrame fra...
java
chosen
[ { "from": "system", "value": "Adjust message code in exception\n" }, { "from": "human", "value": "package de.innoaccel.wamp.server.converter;\n\nimport com.fasterxml.jackson.core.JsonProcessingException;\nimport com.fasterxml.jackson.databind.JsonNode;\nimport de.innoaccel.wamp.server.Websocket;...
java
chosen
[ { "from": "system", "value": "Fix dimension id read from login packet. This was working only because\nof pure luck, but that explains problems with players logging in non in\noverworld dimension." }, { "from": "human", "value": "package protocolsupport.protocol.packet.middle.clientbound.play;\n\...
java
chosen
[ { "from": "system", "value": "Support for access type for entity and sub entity\n" }, { "from": "human", "value": "package model;\n\nimport java.util.Set;\nimport javax.persistence.Entity;\nimport javax.persistence.OneToMany;\n\n/**\n * @author Emmanuel Bernard\n */\n@Entity\npublic class Custom...
java
chosen
[ { "from": "system", "value": "Fix classes with no copyright\n" }, { "from": "human", "value": "package org.dbflute.intro.app.logic.exception;\n\n/**\n * @author prprmurakami\n */\npublic class DirNotFoundException extends Exception {\n\n private static final long serialVersionUID = 1L;\n\n ...
java
chosen
[ { "from": "system", "value": "Change test to check for contents instead of full string\n" }, { "from": "human", "value": "package bjohnson.ResponseHandlers;\n\nimport bjohnson.Request;\nimport org.junit.Before;\nimport org.junit.Test;\n\nimport static org.junit.Assert.*;\n\npublic class HTMLDire...
java
chosen
[ { "from": "system", "value": "Normalize type before switching on it\n" }, { "from": "human", "value": "package tours.compiler;\n\nimport tours.grammar.ToursParser;\n\npublic class Type {\n public static final Type BOOLEAN = new Type(ToursParser.BOOLEAN);\n public static final Type CHARACTE...
java
chosen
[ { "from": "system", "value": "Fix demos to use readTokenXxx()\n" }, { "from": "human", "value": "/*\n * Copyright 2015 Ivan Pribela\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": "Stop PE server only if it was running" }, { "from": "human", "value": "package protocolsupport;\n\nimport java.util.logging.Level;\n\nimport net.md_5.bungee.api.ProxyServer;\nimport net.md_5.bungee.api.plugin.Plugin;\nimport protocolsupport.injector.BungeeNettyChann...
java
chosen
[ { "from": "system", "value": "Implement BUZZ matcher and all tests in green :)\n" }, { "from": "human", "value": "package com.pedro.fizzbuzz;\n\n/**\n *\n * Matcher implementation created to return the \"Fizz\" value if the value passed as argument in the evaluate method\n * is 5 or multiple of ...
java
chosen
[ { "from": "system", "value": "Remove code from start up\n" }, { "from": "human", "value": "package com.vite;\n\nimport com.vite.service.ViteClient;\nimport org.apache.log4j.Logger;\nimport org.springframework.boot.SpringApplication;\nimport org.springframework.boot.autoconfigure.SpringBootApplic...
java
chosen
[ { "from": "system", "value": "Add Code Example with Schema Mapping.\n" }, { "from": "human", "value": "package ch.hood;\n\nimport static ch.hood.jooq.schema1.Tables.A;\nimport static ch.hood.jooq.schema2.Tables.B;\nimport static org.jooq.impl.DSL.select;\n\npublic class App {\n\tpublic static vo...
java
chosen
[ { "from": "system", "value": "Android: Fix localStorage access from js.\n" }, { "from": "human", "value": "package com.rhomobile.rhodes.webview;\n\nimport android.content.Context;\nimport android.webkit.WebSettings;\nimport android.webkit.WebView;\n\npublic class RhoWebSettingsNew implements Rho...
java
chosen
[ { "from": "system", "value": "Improve Double Checked Locking Javadoc\n" }, { "from": "human", "value": "package com.iluwatar.doublechecked.locking;\n\nimport java.util.concurrent.ExecutorService;\nimport java.util.concurrent.Executors;\n\n/**\n * \n * In {@link Inventory} we store the items with...
java
chosen
[ { "from": "system", "value": "Return empty list instead of null\n\nSigned-off-by: Karsten Thoms <dec0ef9b050f1aa68d12b8ac7c21dd1e6ea132c8@itemis.de>" }, { "from": "human", "value": "/*******************************************************************************\n * Copyright (c) 2010 itemis AG ...
java
chosen
[ { "from": "system", "value": "Test coverage for poly tables conversion\n" }, { "from": "human", "value": "package com.unidev.polydata;\n\nimport com.unidev.polydata.domain.BasicPoly;\nimport com.unidev.polydata.domain.Poly;\nimport org.junit.Test;\nimport static org.hamcrest.MatcherAssert.assert...
java
chosen
[ { "from": "system", "value": "Remove unnecessary properties from index\n" }, { "from": "human", "value": "package io.georocket.index.generic;\n\nimport java.util.HashMap;\nimport java.util.Map;\n\nimport io.georocket.index.xml.MetaIndexer;\nimport io.georocket.storage.ChunkMeta;\nimport io.georo...
java
chosen
[ { "from": "system", "value": "Check the type of the IndexInput rather than the Directory to detect\nnative implementation. This is a simpler and more correct test. It\nalso permits the Directory to return a mixture of native and\nnon-native IndexInput implementations.\n\n\ngit-svn-id: 4c5078813df38efa5697...
java
chosen
[ { "from": "system", "value": "Remove some dead code from test suite\n" }, { "from": "human", "value": "package given.a.spec.with.constructor.parameters;\n\nclass Fixture {\n\n public static Class<?> getSpecThatRequiresAConstructorParameter() {\n class Spec {\n @SuppressWarnings(\"unused...
java
chosen
[ { "from": "system", "value": "Support reading input scripts that are gzipped\n" }, { "from": "human", "value": "package com.granveaud.mysql2h2converter.converter;\n\nimport com.granveaud.mysql2h2converter.parser.ParseException;\nimport com.granveaud.mysql2h2converter.parser.SQLParserManager;\nim...
java
chosen
[ { "from": "system", "value": "Add name field for reference list\n" }, { "from": "human", "value": "package ohtuhatut.domain;\n\nimport org.springframework.data.jpa.domain.AbstractPersistable;\n\nimport javax.persistence.Entity;\nimport javax.persistence.FetchType;\nimport javax.persistence.OneTo...
java
chosen
[ { "from": "system", "value": "Add construct binary tree from inOrder and preOrder" }, { "from": "human", "value": "package com.geeks;\n\npublic class BinarySearchTree {\n\tpublic static void main(String[] args) {\n\n\t}\n\n\tprivate static class TreeNode<T> {\n\t\tTreeNode<T> left;\n\t\tTreeNode...
java
chosen
[ { "from": "system", "value": "Work on laying out timeout service resolution\n" }, { "from": "human", "value": "/*\n * Copyright 2015 Timothy Brooks\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 * Y...
java
chosen
[ { "from": "system", "value": "Improve javadoc of temporary allowed application status\n" }, { "from": "human", "value": "package org.synyx.urlaubsverwaltung.application.domain;\n\n/**\n * Enum describing which states an {@link Application} may have.\n */\npublic enum ApplicationStatus {\n\n /...
java
chosen
[ { "from": "system", "value": "Replace deprecate code in JUnit call\n\nSummary:\nTo make code compatible with JUnit 4.13 (following diff).\n\n`createTestClass` function is deprecated, javadoc suggest replacing a call with a constructor, which is what I did.\n\nNote this is a buck-self-test-only change.\n\nRe...
java
chosen
[ { "from": "system", "value": "Fix Multiplication operation in new SQL executor\n" }, { "from": "human", "value": "/* Generated By:JJTree: Do not edit this line. OMultExpression.java Version 4.3 */\n/* JavaCCOptions:MULTI=true,NODE_USES_PARSER=false,VISITOR=true,TRACK_TOKENS=true,NODE_PREFIX=O,NO...
java
chosen
[ { "from": "system", "value": "Add attributes to capture status code and response body in custom exception\n" }, { "from": "human", "value": "package net.interfax.rest.client.exception;\n\npublic class UnsuccessfulStatusCodeException extends Exception {\n\n\n public UnsuccessfulStatusCodeExcep...
java
chosen
[ { "from": "system", "value": "Add some docs on the filewatcher contract.\n\n+review REVIEW-5498\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 may not use this file except ...
java
chosen
[ { "from": "system", "value": "Add Camera and Light class. Refact.\n" }, { "from": "human", "value": "package com.gmail.jiangyang5157.cardboard.scene.projection;\n\nimport android.util.ArrayMap;\nimport android.util.Log;\n\n/**\n * @author Yang\n * @since 4/12/2016.\n */\npublic class IcosphereBu...
java
chosen
[ { "from": "system", "value": "Fix reviewer suggestions when suggestFrom > 0\n\nRemoteSuggestOracle runs exactly one call to the\nSuggestAfterTypingNCharsOracle then waits until\nthat completes. If SuggestAfterTypingNCharsOracle\ndoesn't want to send this query, it must finish\nwith no results to allow Remot...
java
chosen
[ { "from": "system", "value": "Remove un-needed field in epoch serializer.\n\ngit-svn-id: 4b387fe5ada7764508e2ca96c335714e4c1692c6@2115 0d517254-b314-0410-acde-c619094fa49f\n" }, { "from": "human", "value": "package edu.northwestern.bioinformatics.studycalendar.xml.writers;\n\nimport edu.northwes...
java
chosen
[ { "from": "system", "value": "[improve] Split the parameter on the next line\n" }, { "from": "human", "value": "package net.safedata.springboot.training.d03.s01.handler;\n\nimport org.springframework.security.core.Authentication;\nimport org.springframework.security.web.authentication.logout.Log...
java
chosen
[ { "from": "system", "value": "Fix timeouts on non-responsive API\n" }, { "from": "human", "value": "/*******************************************************************************\r\n * Copyright (c) 2012 Symplectic Ltd. All rights reserved.\r\n * This Source Code Form is subject to the terms o...
java
chosen
[ { "from": "system", "value": "Remove code for staging environment.\n" }, { "from": "human", "value": "/**\n * \n */\npackage com.gengo.client;\n\n/**\n * @author hiroyu-n@inter-plug.co.jp\n *\n */\npublic final class GengoConstants {\n\tprotected static String BASE_URL_STANDARD = \"http://api.ge...
java
chosen
[ { "from": "system", "value": "Return null on parse errors as per specification; Do not throw Exception" }, { "from": "human", "value": "package org.crygier.graphql;\n\nimport java.math.BigInteger;\nimport java.text.DateFormat;\nimport java.text.ParseException;\nimport java.util.Date;\n\nimport g...
java
chosen
[ { "from": "system", "value": "Add javadoc comments. See ticket:56.\n\nSigned-off-by: Raymond Audet <281aa2b19aab01efe2941a7da076ec0616a9b992@gmail.com>\nSigned-off-by: Etienne M. Gagnon <bf06ec0eb40152cd863534753d026b021022c851@j-meg.com>\n" }, { "from": "human", "value": "/* This file is part o...
java
chosen
[ { "from": "system", "value": "Change the Class to final Class" }, { "from": "human", "value": "package wang.cloudfinger.printing.utils;\n\npublic class Constants {\n\n\tpublic static final String IMAGE_CACHE_PATH = \"imageLoader/cache\";\n\n\tpublic final static int NEWS_TYPE_REGISTER = 0;\n\tpu...
java
chosen
[ { "from": "system", "value": "Add result handling to the adapter -- now for real, actually.\n" }, { "from": "human", "value": "package org.lapanen.stealth.si.process;\n\nimport java.util.concurrent.ExecutorService;\n\nimport org.springframework.integration.context.IntegrationObjectSupport;\nimpo...
java
chosen
[ { "from": "system", "value": "Remove ProviderInstanceBinding as it also captures @Provides methods\n" }, { "from": "human", "value": "package com.netflix.governator.visitors;\n\nimport com.google.inject.Binding;\nimport com.google.inject.spi.DefaultBindingTargetVisitor;\nimport com.google.inject...
java
chosen
[ { "from": "system", "value": "Change to use boxed type" }, { "from": "human", "value": "/*-\n * Copyright 2016 Diamond Light Source Ltd.\n *\n * All rights reserved. This program and the accompanying materials\n * are made available under the terms of the Eclipse Public License v1.0\n * which ac...
java
chosen
[ { "from": "system", "value": "Print some diagnostic information when setting up the logging configuration.\n" }, { "from": "human", "value": "package org.metaborg.spoofax.eclipse.logging;\n\nimport java.io.InputStream;\n\nimport org.slf4j.ILoggerFactory;\nimport org.slf4j.impl.StaticLoggerBinder...
java
chosen
[ { "from": "system", "value": "Add better sync queue example\n" }, { "from": "human", "value": "package codesample.java_se_api.concurency.collections;\n\nimport java.io.IOException;\nimport java.util.concurrent.SynchronousQueue;\n\n/**\n * SynchronousQueue provides a powerful concurrency mechanis...
java
chosen
[ { "from": "system", "value": "Add new method to delete file\n" }, { "from": "human", "value": "package uk.ac.ebi.spot.goci.curation.service.batchloader;\n\nimport org.apache.poi.openxml4j.exceptions.InvalidFormatException;\nimport uk.ac.ebi.spot.goci.curation.model.BatchUploadError;\nimport uk.a...
java
chosen
[ { "from": "system", "value": "Make sure the *.lp file extension is registered (testsuite)\n" }, { "from": "human", "value": "package org.muml.psm.allocation.algorithm.ilp.lpsolve.tests;\n\nimport org.junit.runner.RunWith;\nimport org.junit.runners.Suite;\nimport org.junit.runners.Suite.SuiteClas...
java
chosen
[ { "from": "system", "value": "Fix license header violations in sal-common-api\n\nChange-Id: I58fdef120495514ef94f2e9681790786ba4e0841\nSigned-off-by: Thanh Ha <09ea4d3a79c8bee41a16519f6a431f6bc0fd8d6f@linuxfoundation.org>\n" }, { "from": "human", "value": "package org.opendaylight.controller.md....
java
chosen
[ { "from": "system", "value": "Allow expecting a different status code.\n" }, { "from": "human", "value": "package ciir.jfoley.chai;\n\nimport ciir.jfoley.chai.io.Streams;\nimport ciir.jfoley.chai.string.StrUtil;\n\nimport java.io.IOException;\nimport java.util.Arrays;\n\n/**\n * Interface to Jav...
java
chosen
[ { "from": "system", "value": "Remove the restriction on cube element on the expression builder when\ncreating a derived measure." }, { "from": "human", "value": "/*******************************************************************************\n * Copyright (c) 2004 Actuate Corporation.\n * All r...
java
chosen
[ { "from": "system", "value": "Remove all instances of Prepend\n\nPrepend was removed because it does not strictly contribute to the\ncreation of Pids; instead it is added to turn Pids into a URL specific\nto the organization that created them.\n" }, { "from": "human", "value": "package com.hida....
java
chosen
[ { "from": "system", "value": "Fix issue with TLV frame decoder\n" }, { "from": "human", "value": "/*\n * Copyright 2017 - 2018 Anton Tananaev (anton@traccar.org)\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the ...
java
chosen
[ { "from": "system", "value": "Add comment about number weights\n\nSigned-off-by: Eli Skeggs <9586c285e7eef0e86d45536fe84e916128618137@wpi.edu>\n" }, { "from": "human", "value": "package controller;\n\nimport boundary.BuilderApplication;\nimport javax.swing.JSlider;\nimport javax.swing.event.Chan...
java
chosen
[ { "from": "system", "value": "Use the correct host name\n" }, { "from": "human", "value": "package com.example.config;\n\nimport org.springframework.web.servlet.HandlerInterceptor;\nimport org.springframework.web.servlet.ModelAndView;\n\nimport javax.servlet.*;\nimport javax.servlet.http.HttpSer...
java
chosen
[ { "from": "system", "value": "Fix thread interruption. Wrong thread was interrupted." }, { "from": "human", "value": "package de.mklinger.commons.exec;\r\n\r\npublic class PingRunnable extends ErrorHandlingRunnable {\r\n\tprivate final Pingable pingable;\r\n\r\n\tpublic PingRunnable(final Pingab...
java
chosen
[ { "from": "system", "value": "Debug update continued:\nRemoved the cost of mesh position to ints.\n" }, { "from": "human", "value": "package net.piemaster.jario.systems;\r\n\r\nimport net.piemaster.jario.components.CollisionMesh;\r\nimport net.piemaster.jario.components.Transform;\r\n\r\nimport ...
java
chosen
[ { "from": "system", "value": "Change the datatype of length to int\n" }, { "from": "human", "value": "package Controllers;\n\nimport java.io.FileInputStream;\nimport java.io.FileNotFoundException;\nimport java.io.InputStream;\n\npublic class Image\n{\n private String filename;\n private Lo...
java
chosen
[ { "from": "system", "value": "Add test case to check inOrder when tree is empty. Throws NoSuchElement exception\n" }, { "from": "human", "value": "package binary_search_tree;\n\nimport binary_search_tree.Bst;\t// My implementation of Binary Search Tree in package binary_search_tree\n\n/*\n\tClas...
java
chosen
[ { "from": "system", "value": "Fix initialization on the test case\n" }, { "from": "human", "value": "package com.xrtb.tests;\n\nimport static org.junit.Assert.*;\n\nimport org.junit.Test;\n\nimport redis.clients.jedis.Jedis;\n\nimport com.xrtb.bidder.DeadmanSwitch;\nimport com.xrtb.common.Config...
java
chosen
[ { "from": "system", "value": "Add output of running commands to SmartDashboard" }, { "from": "human", "value": "package org.usfirst.frc2832.Robot_2016;\r\n\r\nimport edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;\r\n\r\npublic class DashboardOutput {\r\n\r\n\t//This method is invoked in te...
java
chosen
[ { "from": "system", "value": "Change division symbol from ÷ to :\n" }, { "from": "human", "value": "package net.emteeware;\n\n/**\n * Created by Merlin Thomas on 2017-01-21.\n *  Copyright 2017 eMTeeWare\n */\npublic enum Operation {\n ADDITION(\"+\"),\n SUBTRACTION(\"-\"),\n MULTIPLICA...
java
chosen
[ { "from": "system", "value": "Set EOL style to Native.\nRemove tab characters.\n\ngit-svn-id: 306be505b4acf4ccace778b4b2465237cc9581ba@581081 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "human", "value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * cont...
java
chosen
[ { "from": "system", "value": "Write tests for special cases.\n" }, { "from": "human", "value": "package org.nwapw.abacus.tests;\n\nimport org.junit.Assert;\nimport org.junit.Test;\nimport org.nwapw.abacus.lexing.Lexer;\nimport org.nwapw.abacus.lexing.pattern.Match;\n\nimport java.util.List;\n\np...
java
chosen
[ { "from": "system", "value": "Update offline bat cache after adding a bat\n" }, { "from": "human", "value": "package peergos.server;\n\nimport peergos.server.storage.auth.*;\nimport peergos.shared.storage.auth.*;\nimport peergos.shared.util.*;\n\nimport java.util.*;\nimport java.util.concurrent....
java
chosen
[ { "from": "system", "value": "Add line separator -- it is used in many places, so it is sensible\nto make it a constant.\n" }, { "from": "human", "value": "/*\n * This file is part of Mapyrus.\n *\n * Mapyrus is free software; you can redistribute it and/or modify\n * it under the terms of the G...
java
chosen
[ { "from": "system", "value": "Add toString for better logging/output" }, { "from": "human", "value": "package com.fundynamic.d2tm.game.math;\n\npublic class Vector2D<T extends Number> {\n\n private final T x, y;\n\n public static Vector2D zero() {\n return new Vector2D(0, 0);\n }...
java
chosen
[ { "from": "system", "value": "Support changing the image in a texture\n" }, { "from": "human", "value": "package jmini3d;\n\npublic class Texture {\n\tpublic String image;\n\tpublic int status = 0;\n\n\tpublic Texture(String image) {\n\t\tthis.image = image;\n\t}\n}\n" }, { "from": "gpt"...
java
chosen
[ { "from": "system", "value": "XWIKI-2054: Add Utility API to remove all non alpha numeric chartacters from some text\nUse unicode escapes to properly use accented characters in the test.\n\n\ngit-svn-id: cfa2b40e478804c47c05d0f328c574ec5aa2b82e@7277 f329d543-caf0-0310-9063-dda96c69346f\n" }, { "from...
java
chosen
[ { "from": "system", "value": "Add enum for map type\n" }, { "from": "human", "value": "package fi.hallo.mapgen;\n\npublic class HexMap {\n private int height, width = 0;\n private Hex[][] map;\n\n public HexMap(int height, int width) {\n this.height = height;\n this.width ...
java
chosen
[ { "from": "system", "value": "Add Example for Cancel Upload" }, { "from": "human", "value": "package surc.test;\r\n\r\nimport java.io.IOException;\r\nimport java.io.PrintWriter;\r\n\r\nimport javax.servlet.ServletException;\r\nimport javax.servlet.annotation.WebServlet;\r\nimport javax.servlet.h...
java
chosen
[ { "from": "system", "value": "Update template for RoboVM 0.0.11\n" }, { "from": "human", "value": "package {{package}};\n\nimport clojure.lang.RT;\nimport clojure.lang.Symbol;\n\nimport com.badlogic.gdx.backends.iosrobovm.IOSApplication;\nimport com.badlogic.gdx.backends.iosrobovm.IOSApplication...
java
chosen
[ { "from": "system", "value": "Fix for loading SiteMap entry on Spring 2.x\n" }, { "from": "human", "value": "/*\r\n * Created on 11-Jan-2006\r\n */\r\npackage uk.org.ponder.rsf.test.sitemap;\r\n\r\nimport java.util.HashMap;\r\n\r\nimport uk.org.ponder.rsf.bare.junit.PlainRSFTests;\r\nimport uk.o...
java
chosen
[ { "from": "system", "value": "Send envelope in solr task to right topic\n" }, { "from": "human", "value": "package com.bloomberg.bask.task;\n\nimport com.bloomberg.bask.system.Envelope;\nimport com.bloomberg.bask.system.SystemProducer;\n\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;...
java
chosen
[ { "from": "system", "value": "Return EOF token when no more tokens available. Required for antlr 3.3+.\n" }, { "from": "human", "value": "package com.joestelmach.natty;\n\nimport java.util.List;\n\nimport org.antlr.runtime.Token;\nimport org.antlr.runtime.TokenSource;\n\npublic class NattyToken...
java
chosen
[ { "from": "system", "value": "Add test for reading XML with UTF8 BOM\n" }, { "from": "human", "value": "package org.zwobble.mammoth.tests;\n\nimport org.junit.Test;\nimport org.zwobble.mammoth.Mammoth;\nimport org.zwobble.mammoth.results.Result;\n\nimport java.io.File;\n\nimport static org.hamcr...
java
chosen
[ { "from": "system", "value": "Change XSLT import to use plugin URI scheme\n\nSigned-off-by: Jarno Elovirta <0f1ab0ac7dffd9db21aa539af2fd4bb04abc3ad4@elovirta.com>\n" }, { "from": "human", "value": "/*\n * This file is part of the DITA Open Toolkit project.\n *\n * Copyright 2008 IBM Corporation\...
java
chosen
[ { "from": "system", "value": "[Event] Change toString method in event\n" }, { "from": "human", "value": "//@@author A0147984L\npackage seedu.address.model.task;\n\npublic interface ReadOnlyEvent extends ReadOnlyTask {\n\n TaskDate getStartDate();\n TaskTime getStartTime();\n\n /**\n ...
java
chosen
[ { "from": "system", "value": "Remove unused inventory id constant\n" }, { "from": "human", "value": "package org.achacha.test;\n\n/**\n * Well known constants populated into the database\n */\npublic class TestDataConstants {\n // login\n public static final long JUNIT_USER_LOGINID = 2;\n ...
java
chosen
[ { "from": "system", "value": "Remove test files after test execution\n\ngit-svn-id: 7acc490bd371dbc82047a939b87dc892fdc31f59@23716 76a6fc44-f60b-0410-a9a8-e67b0e8fc65c\n" }, { "from": "human", "value": "package tlc2.tool.queue;\n\nimport java.io.File;\n\nimport tlc2.tool.TLCState;\n\npublic clas...
java
chosen
[ { "from": "system", "value": "Add link to AdapterFactory class(inside javadoc)\n" }, { "from": "human", "value": "package io.github.tcdl.adapters;\n\nimport io.github.tcdl.exception.AdapterInitializationException;\n\nimport io.github.tcdl.config.MsbConfigurations;\n\n/**\n * AdapterFactory creat...
java
chosen
[ { "from": "system", "value": "Fix bug saving script more than once\n" }, { "from": "human", "value": "package io.pivotal.cdm.model;\n\nimport javax.persistence.Entity;\nimport javax.persistence.GeneratedValue;\nimport javax.persistence.GenerationType;\nimport javax.persistence.Id;\n\n@Entity\npu...
java
chosen
[ { "from": "system", "value": "Remove options menu from tinker activity\n" }, { "from": "human", "value": "package mozilla.org.webmaker.activity;\n\nimport android.app.ActionBar;\nimport android.content.res.Resources;\nimport android.graphics.Color;\nimport android.graphics.drawable.ColorDrawable...
java
chosen
[ { "from": "system", "value": "Add incomplete category into showcommand\n" }, { "from": "human", "value": "package seedu.tasklist.logic.commands;\n\n/**\n * Shows all tasks that fulfill the category keyword.\n * Keyword matching is case insensitive.\n */\npublic class ShowCommand extends Command ...
java
chosen