conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Fea: Add rest api for download openbatonrc file\n" }, { "from": "human", "value": "package org.openbaton.nfvo.api;\n\nimport org.springframework.http.MediaType;\nimport org.springframework.web.bind.annotation.RequestMapping;\nimport org.springframework.web.bind.anno...
java
chosen
[ { "from": "system", "value": "Set main method to also run gui for testing." }, { "from": "human", "value": "\r\nimport ClassLibrary.CmdRepl;\r\nimport GUI.ConcordanatorWindow;\r\nimport java.io.IOException;\r\nimport java.util.logging.Level;\r\nimport java.util.logging.Logger;\r\n\r\npublic clas...
java
chosen
[ { "from": "system", "value": "Test for unquote in parameter vector" }, { "from": "human", "value": "package magic.core;\n\nimport static org.junit.Assert.*;\n\nimport org.junit.Test;\n\nimport magic.Core;\n\npublic class TestEdgeCases {\n\t@SuppressWarnings(\"unchecked\")\n\tprivate <T> T exec(S...
java
chosen
[ { "from": "system", "value": "Test reset on scatter pipe.\n" }, { "from": "human", "value": "package com.tinkerpop.pipes.util;\n\nimport com.tinkerpop.pipes.BaseTest;\nimport com.tinkerpop.pipes.Pipe;\n\nimport java.util.Arrays;\n\n/**\n * @author Marko A. Rodriguez (http://markorodriguez.com)\n...
java
chosen
[ { "from": "system", "value": "Fix Java loading the wrong DLL\n" }, { "from": "human", "value": "/**\n * Created by Marco on 2016-09-08.\n */\npublic class ModdingApi {\n // Java keeps its own copy of the shared library, so its state is invalid\n // until we copy our state to it\n static...
java
chosen
[ { "from": "system", "value": "Support ktfmt dropbox style in maven plugin" }, { "from": "human", "value": "/*\n * Copyright 2016 DiffPlug\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 obt...
java
chosen
[ { "from": "system", "value": "Handle null returns from client constructor\n" }, { "from": "human", "value": "package com.yubico.client.v2;\n\n/**\n * Created by IntelliJ IDEA.\n * User: lwid\n * Date: 1/28/11\n * Time: 2:07 PM\n * To change this template use File | Settings | File Templates.\n *...
java
chosen
[ { "from": "system", "value": "Use top hoop for autonsettin6 instead of two-point shot\n" }, { "from": "human", "value": "/*\n * To change this template, choose Tools | Templates\n * and open the template in the editor.\n */\npackage edu.stuy.commands;\n\n/**\n * Shoots from key at 2 point hoop\n...
java
chosen
[ { "from": "system", "value": "Add command line mode and debug mode" }, { "from": "human", "value": "package com.codeski.nbt;\n\nimport java.io.File;\nimport java.io.FileNotFoundException;\nimport java.io.IOException;\n\nimport com.codeski.nbt.tags.NBTCompound;\n\npublic class Main\n{\n\tpublic s...
java
chosen
[ { "from": "system", "value": "Use parser class to process the program arguments.\n" }, { "from": "human", "value": "package webserver;\n\nimport org.slf4j.MDC;\nimport org.springframework.boot.SpringApplication;\nimport org.springframework.boot.autoconfigure.SpringBootApplication;\n\n@SpringBoot...
java
chosen
[ { "from": "system", "value": "Make message be default the empty string.\n" }, { "from": "human", "value": "package water.api;\n\nimport com.google.gson.JsonObject;\nimport water.util.Log;\n\npublic class LogAndEcho extends Request {\n @Override public RequestServer.API_VERSION[] supportedVersio...
java
chosen
[ { "from": "system", "value": "Add minimal set of drawing primitives." }, { "from": "human", "value": "package org.notimetoplay.voxeldesc;\n\nimport java.util.TreeMap;\nimport java.awt.Color;\n\npublic class VoxelScene {\n\tprivate TreeMap<Point3D, Color> voxels = new TreeMap<Point3D, Color>();\n...
java
chosen
[ { "from": "system", "value": "Make getContainer and getPackagesToScan public.\n3rd party component finder strategies living in different packages can now use\nthose functions.\n" }, { "from": "human", "value": "package com.structurizr.componentfinder;\n\nimport com.structurizr.model.Component;\n...
java
chosen
[ { "from": "system", "value": "Fix misc errors, add some input parsing\n" }, { "from": "human", "value": "package net.otfeg.itemedit;\n\nimport org.bukkit.command.Command;\nimport org.bukkit.command.CommandExecutor;\nimport org.bukkit.command.CommandSender;\nimport org.bukkit.enchantments.Enchant...
java
chosen
[ { "from": "system", "value": "Update tests to new SimpleProps\n" }, { "from": "human", "value": "package dev.kkorolyov.sqlob;\n\nimport java.io.IOException;\nimport java.io.UncheckedIOException;\n\nimport dev.kkorolyov.simpleprops.Properties;\n\n@SuppressWarnings(\"javadoc\")\npublic class TestA...
java
chosen
[ { "from": "system", "value": "Rename null description test case\n" }, { "from": "human", "value": "package edu.pdx.cs410J.chances;\n\nimport org.junit.Test;\n\nimport static org.hamcrest.CoreMatchers.*;\nimport static org.hamcrest.MatcherAssert.assertThat;\n\n/**\n * Unit tests for the {@link Ap...
java
chosen
[ { "from": "system", "value": "Fix commander fragment using wrong fragment manager\n" }, { "from": "human", "value": "package fr.corenting.edcompanion.fragments;\n\nimport android.os.Bundle;\nimport android.support.design.widget.TabLayout;\nimport android.support.v4.app.Fragment;\nimport android....
java
chosen
[ { "from": "system", "value": "Add TestCase to encrypt text " }, { "from": "human", "value": "package com.sec.ax.restful.crypt.aes;\r\n\r\nimport org.apache.log4j.Level;\r\nimport org.apache.log4j.Logger;\r\n\r\nimport com.sec.ax.restful.crypt.AxCryptException;\r\n\r\nimport junit.framework.TestC...
java
chosen
[ { "from": "system", "value": "Allow the marker to return the opponent Player or null for NONE\n" }, { "from": "human", "value": "package de.fesere.tictactoe;\n\npublic enum Marker {\n X,\n O,\n NONE;\n\n public boolean isNone() {\n return this == NONE;\n }\n\n public boo...
java
chosen
[ { "from": "system", "value": "Update the comment spelling :-p" }, { "from": "human", "value": "package org.jsmpp.session;\n\nimport org.jsmpp.bean.DeliverSm;\nimport org.jsmpp.extra.ProcessMessageException;\n\n/**\n * This listener will listen to every incomming short message, recognized by\n * ...
java
chosen
[ { "from": "system", "value": "Fix trigger pixel for saddlebags\n" }, { "from": "human", "value": "package com.minelittlepony.pony.data;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic enum PonyWearable implements ITriggerPixelMapped<PonyWearable> {\n NONE(0),\n SADDLE_BAGS...
java
chosen
[ { "from": "system", "value": "Remove superflous information from Javadoc\n" }, { "from": "human", "value": "/*\n * Copyright (C) 2012 The Cat Hive Developers.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the Lic...
java
chosen
[ { "from": "system", "value": "Add method to convert Bouncy Castle key pairs to Java's KeyPair object.\n" }, { "from": "human", "value": "package uk.ac.cam.gpe21.droidssl.mitm.cert;\n\nimport org.bouncycastle.crypto.AsymmetricCipherKeyPair;\nimport org.bouncycastle.crypto.generators.RSAKeyPairGen...
java
chosen
[ { "from": "system", "value": "Update REST API for LVAP handoffs\n" }, { "from": "human", "value": "package net.floodlightcontroller.odin.master;\n\nimport java.io.IOException;\nimport java.net.InetAddress;\nimport java.util.HashMap;\n\nimport net.floodlightcontroller.util.MACAddress;\n\nimport o...
java
chosen
[ { "from": "system", "value": "Remove ID from the base class to support semantic ids per related aggregate root\n" }, { "from": "human", "value": "package io.plumery.core;\n\n/**\n * The role interface representing a command\n */\npublic abstract class Command implements Action {\n public int ...
java
chosen
[ { "from": "system", "value": "Clean up form handling some more\n" }, { "from": "human", "value": "package controllers.application;\n\nimport play.mvc.*;\nimport play.data.Form;\nimport static play.data.Form.*;\n\nimport views.formdata.*;\n\n\npublic class Section0 extends Controller {\n priva...
java
chosen
[ { "from": "system", "value": "Update default dict path to /usr/local/share/tokenizer/dicts\n" }, { "from": "human", "value": "package org.elasticsearch.analysis;\n\nimport org.elasticsearch.common.settings.Settings;\n\npublic class VietnameseConfig {\n public static final String DEFAULT_DICT_...
java
chosen
[ { "from": "system", "value": "Update to new naming: using double-underscore prefix instead of dollar\n" }, { "from": "human", "value": "package net.ltgt.cookietests;\n\npublic interface Constants {\n String TEST_COOKIE_NAME = \"$Secure-Foo\";\n String TEST_COOKIE_VALUE = \"value\";\n\n String...
java
chosen
[ { "from": "system", "value": "Add a comment in the file\n" }, { "from": "human", "value": "import java.io.*;\nimport java.util.*;\nimport java.text.*;\nimport java.math.*;\nimport java.util.regex.*;\n\npublic class Solution {\n\n\n static int solveMeFirst(int a, int b) {\n return a+b; \n...
java
chosen
[ { "from": "system", "value": "Add path to XML schema\n" }, { "from": "human", "value": "/*\n * PerfClispe\n * \n *\n * Copyright (c) 2014 Jakub Knetl\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": "Add comments to JPEG message\n" }, { "from": "human", "value": "package drones.messages;\n\nimport java.io.Serializable;\n\n/**\n * Created by brecht on 4/20/15.\n */\npublic class JPEGFrameMessage implements Serializable {\n\n private String imageData;\n\n pu...
java
chosen
[ { "from": "system", "value": "Change return type as per 5d74d94b...\n" }, { "from": "human", "value": "package powerups.core.boardpowerup;\n\nimport models.Club;\nimport powerups.Powerup;\n\nimport javax.xml.transform.Result;\n\npublic class Board extends Powerup {\n\n public Board(Club club)...
java
chosen
[ { "from": "system", "value": "Change project ITWeddingv2016.05. Add function for load content\n" }, { "from": "human", "value": "package ua.uagames.itwedding.v201605;\n\nimport android.support.v7.app.AppCompatActivity;\nimport android.os.Bundle;\n\npublic class MainActivity extends AppCompatActi...
java
chosen
[ { "from": "system", "value": "Set different on corner case\n" }, { "from": "human", "value": "package com.google.rolecall.authentication;\n\nimport java.io.IOException;\nimport javax.servlet.Filter;\nimport javax.servlet.FilterChain;\nimport javax.servlet.FilterConfig;\nimport javax.servlet.Serv...
java
chosen
[ { "from": "system", "value": "Make methods begin with lowercase\n\nToo much golang lately\n" }, { "from": "human", "value": "package org.kelcecil.globalgiving;\n\nimport org.kelcecil.globalgiving.action.GetThemes;\nimport org.kelcecil.globalgiving.model.Theme;\n\nimport java.util.List;\n\n/**\n ...
java
chosen
[ { "from": "system", "value": "[JENKINS-52818] Add the missing @since\n- avoid git-archeology to find when the interface was added\n" }, { "from": "human", "value": "package hudson.model;\n\nimport javax.annotation.PostConstruct;\n\n/**\n * Marker interface for Descriptors which use xml persisten...
java
chosen
[ { "from": "system", "value": "Add icon to primary stage\n" }, { "from": "human", "value": "/* *\\\n** SICU Stress Measurement System **\n** Project P04 | C380 Team A ...
java
chosen
[ { "from": "system", "value": "Fix annotation retention for reflect usage\n" }, { "from": "human", "value": "package butterknife;\n\nimport android.support.annotation.ArrayRes;\nimport java.lang.annotation.Retention;\nimport java.lang.annotation.Target;\n\nimport static java.lang.annotation.Eleme...
java
chosen
[ { "from": "system", "value": "Prepare version number for upcoming release\n\n(2nd try)" }, { "from": "human", "value": "package cgeo.geocaching.utils;\n\nimport cgeo.geocaching.BuildConfig;\n\npublic class BranchDetectionHelper {\n\n // should contain the version name of the last feature rele...
java
chosen
[ { "from": "system", "value": "Disable Airlift admin servlet in Proxy\n\nSame as e9c217ae4a3e1a3c73be5bcd417bb5cf1384eaca, this time for Presto\nProxy.\n" }, { "from": "human", "value": "/*\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 Documented, Retention and Target annotations" }, { "from": "human", "value": "package net.aeten.core.spi;\n\n/**\n *\n * @author Thomas Pérennou\n */\npublic @interface Configurations {\n\tConfiguration[] value();\n}\n" }, { "from": "gpt", "value": "...
java
chosen
[ { "from": "system", "value": "Add error 08 & 09\n" }, { "from": "human", "value": "public final class Constants{\n private Constants() {}\n \n public static String getErrInfoString(String errCode){\n switch(errCode){\n //Sent by conversion server.\n case \"E...
java
chosen
[ { "from": "system", "value": "Use the Platform MBeanServer. This ensures that application MBeans are registered in the same MBeanServer as the platform MBeans.\n" }, { "from": "human", "value": "/*\n * Copyright (c) 2010, Rickard Öberg. All Rights Reserved.\n *\n * Licensed under the Apache Lice...
java
chosen
[ { "from": "system", "value": "Change content type when execute command" }, { "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.HttpServletR...
java
chosen
[ { "from": "system", "value": "Add colors to peer graph\n" }, { "from": "human", "value": "package nl.tudelft.ti2306.blockchain;\n\nimport java.io.File;\nimport java.io.FileNotFoundException;\nimport java.io.PrintWriter;\n\nimport nl.tudelft.ti2306.blockchain.datastructure.PeerGraph;\n\npublic cl...
java
chosen
[ { "from": "system", "value": "Reduce custom build program to an one-liner\n" }, { "from": "human", "value": "// default package\n\n/** Custom build program using {@code Bach.java} API. */\nclass Build {\n\n public static void main(String... args) {\n // Bach.main(args); // Delegate to Bach.j...
java
chosen
[ { "from": "system", "value": "Allow up to 4K credential data\n" }, { "from": "human", "value": "/*\n * Licensed under MIT (https://github.com/ligoj/ligoj/blob/master/LICENSE)\n */\npackage org.ligoj.app.resource.security;\n\nimport javax.validation.constraints.NotBlank;\nimport javax.validation....
java
chosen
[ { "from": "system", "value": "Fix tool bug using old interface\n" }, { "from": "human", "value": "/**\n * Copyright (c) 2016, All partners of the iTesla project (http://www.itesla-project.eu/consortium)\n * This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. ...
java
chosen
[ { "from": "system", "value": "Work on DrawBoard and DrawElement\n" }, { "from": "human", "value": "package reversi.models;\n\nimport base.models.Board;\n\npublic class ReversiBoard extends Board<ReversiPiece>{\n\n\t//TODO: Implement board\n\t\n\t//TODO: Create function that shows the board in AS...
java
chosen
[ { "from": "system", "value": "Remove single char args, this is not an interactive tool.\n" }, { "from": "human", "value": "package com.vaguehope.morrigan;\n\nimport org.kohsuke.args4j.Option;\n\npublic class Args {\n\n\t@Option(name = \"-d\", aliases = { \"--dlna\" }, usage = \"Enable DLNA.\") p...
java
chosen
[ { "from": "system", "value": "Move TODO to Vespa 9 (was previously moved to 8 from 7)\n" }, { "from": "human", "value": "// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\n// TODO: Remove this package on Vespa 8\n@ExportPackage\npackage com....
java
chosen
[ { "from": "system", "value": "Revert \"Revert \"fixed pen styling bug\"\"\n\nThis reverts commit d262982255df13839daae4fec30accd9617ed157.\n" }, { "from": "human", "value": "package application.Actions;\n\nimport javafx.geometry.Point2D;\nimport application.SLogoCanvas;\nimport application.Turtl...
java
chosen
[ { "from": "system", "value": "Fix timezone in submitted data\n\nSimpleDateFormat uses the system's default time zone by default.\n" }, { "from": "human", "value": "package org.mozilla.mozstumbler;\n\nimport android.annotation.SuppressLint;\n\nimport java.util.Date;\nimport java.text.DateFormat;\...
java
chosen
[ { "from": "system", "value": "Add privilegedUser and catch IllegalArgumentException\n" }, { "from": "human", "value": "/**\n * Copyright (C) 2000 - 2011 Silverpeas\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public...
java
chosen
[ { "from": "system", "value": "Make the toolbar optional for the default XAL window.\n" }, { "from": "human", "value": "//\n// DefaultXalWindow.java\n// xal\n//\n// Created by Thomas Pelaia on 7/18/06.\n// Copyright 2006 Oak Ridge National Lab. All rights reserved.\n//\n\npackage xal.applicat...
java
chosen
[ { "from": "system", "value": "Add new fields to hashtag model\n" }, { "from": "human", "value": "package com.creatubbles.api.model.hashtag;\n\nimport android.support.annotation.NonNull;\nimport android.support.annotation.Nullable;\n\nimport com.fasterxml.jackson.annotation.JsonProperty;\nimport ...
java
chosen
[ { "from": "system", "value": "Refactor queue tests to store temporary files until target. Migrate some tests from Queue to Queue Enterprise.\n" }, { "from": "human", "value": "/*\n * Copyright 2016 higherfrequencytrading.com\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\"...
java
chosen
[ { "from": "system", "value": "Update unit test of time-out closer\n" }, { "from": "human", "value": "package org.embulk.output.sftp.utils;\n\nimport org.embulk.EmbulkTestRuntime;\nimport org.junit.Rule;\nimport org.junit.Test;\n\nimport java.io.Closeable;\n\nimport static junit.framework.TestCas...
java
chosen
[ { "from": "system", "value": "Fix failing runtime compiler tests\n" }, { "from": "human", "value": "package org.twig.compiler;\n\nimport org.junit.Assert;\nimport org.junit.Test;\nimport org.twig.Environment;\nimport org.twig.exception.TwigRuntimeException;\nimport org.twig.template.Template;\n\...
java
chosen
[ { "from": "system", "value": "Add back in violations to make things more interesting\n" }, { "from": "human", "value": "package training.taylor.timetracker.core;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.stereotype.Component;\nimport training.t...
java
chosen
[ { "from": "system", "value": "Create a custom exception type: Change service method signature for own exception class\n" }, { "from": "human", "value": "package com.logicify.d2g.services;\n\nimport com.logicify.d2g.domain.User;\nimport com.logicify.d2g.dtos.incomingdtos.UserCreateIncomingDto;\ni...
java
chosen
[ { "from": "system", "value": "Add click for map activity test\n" }, { "from": "human", "value": "package moe.akagi.chibaproject.card;\n\nimport android.content.Context;\nimport android.view.View;\nimport android.view.ViewGroup;\n\nimport it.gmariotti.cardslib.library.internal.Card;\nimport moe.a...
java
chosen
[ { "from": "system", "value": "Allow registered classes to be in any order\n" }, { "from": "human", "value": "/*\n * Copyright 2016-2017 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 in compliance wit...
java
chosen
[ { "from": "system", "value": "Add some basic scaffolding for scanning input relations\n" }, { "from": "human", "value": "package edu.washington.escience.myria.operator;\n\nimport edu.washington.escience.myria.Schema;\nimport edu.washington.escience.myria.TupleBatch;\n\n/**\n * Implementation of ...
java
chosen
[ { "from": "system", "value": "Swap places the annotations to allow them to read together.\n" }, { "from": "human", "value": "/*\n * Copyright 2020, TeamDev. All rights reserved.\n *\n * Redistribution and use in source and/or binary forms, with or without\n * modification, must retain the above ...
java
chosen
[ { "from": "system", "value": "Add compare method from com.thaiopensource.relaxng.output.common.\n\ngit-svn-id: ca8e9bb6f3f9b50a093b443c23951d3c25ca0913@1968 369101cc-9a96-11dd-8e58-870c635edf7a\n" }, { "from": "human", "value": "package com.thaiopensource.xml.util;\n\npublic final class Name {\n...
java
chosen
[ { "from": "system", "value": "Remove the noisy \"Ignored line\" messages for stats that are not used\n" }, { "from": "human", "value": "package com.holmsted.gerrit;\n\nimport org.json.JSONException;\nimport org.json.JSONObject;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\nimport com...
java
chosen
[ { "from": "system", "value": "Remove select from command list.\n" }, { "from": "human", "value": "package com.csforge.sstable;\n\nimport com.google.common.base.Strings;\n\nimport java.io.File;\nimport java.util.Arrays;\n\npublic class Driver {\n public static void main(String ... args) {\n ...
java
chosen
[ { "from": "system", "value": "Remove unnecessary set time to calendar.\n\n" }, { "from": "human", "value": "package bj.pranie.util;\n\nimport java.text.ParseException;\nimport java.text.SimpleDateFormat;\nimport java.util.Calendar;\nimport java.util.Date;\nimport java.util.TimeZone;\n\n/**\n * C...
java
chosen
[ { "from": "system", "value": "Fix to fix to fix a fix.\n" }, { "from": "human", "value": "package com.letscode.lcg;\n\nimport java.util.Random;\n\nimport com.badlogic.gdx.backends.lwjgl.LwjglApplication;\nimport com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration;\n\npublic class Main ...
java
chosen
[ { "from": "system", "value": "Return the Game object from the factory as we need it to be able to guess phrases\n" }, { "from": "human", "value": "package com.mssngvwls;\n\nimport org.springframework.stereotype.Service;\n\n@Service\npublic class GameFactory {\n\n private final GamePhraseSelec...
java
chosen
[ { "from": "system", "value": "Support explicit adding of file names." }, { "from": "human", "value": "package org.reldb.dbrowser.hooks;\n\nimport java.util.ArrayList;\n\nimport org.eclipse.swt.widgets.Event;\nimport org.eclipse.swt.widgets.Listener;\nimport org.reldb.dbrowser.DBrowser;\n\npublic...
java
chosen
[ { "from": "system", "value": "Solve small issue with ifs\n" }, { "from": "human", "value": "package model.solvers.problems;\n\nimport model.population.Population;\nimport model.population.PopulationFactory;\nimport model.solvers.fitness.Fitness;\n\npublic class MultiplexProblem extends Problem {...
java
chosen
[ { "from": "system", "value": "Implement accessor and modifier for persisted conference data\n" }, { "from": "human", "value": "package mn.devfest.persistence;\n\nimport android.content.Context;\nimport android.content.SharedPreferences;\nimport android.preference.PreferenceManager;\nimport andro...
java
chosen
[ { "from": "system", "value": "Add unit tests for update with a parameter.\n" }, { "from": "human", "value": "/**\n * Copyright (C) 2011 Akiban Technologies Inc.\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public Licens...
java
chosen
[ { "from": "system", "value": "Make test smaller so it runs faster\n" }, { "from": "human", "value": "package net.kotek.jdbm;\n\nimport java.io.File;\nimport java.io.IOException;\nimport java.util.Set;\n\npublic class StorageZipTest extends TestCaseWithTestFile {\n\n public void test_archive_c...
java
chosen
[ { "from": "system", "value": "Update with systemout to verify that the getters/setters are used.\n" }, { "from": "human", "value": "package com.darrenforsythe.jackson.ignore.model;\n\nimport java.util.Date;\n\nimport com.fasterxml.jackson.annotation.JsonProperty;\n\npublic class MyObject {\n\n\t...
java
chosen
[ { "from": "system", "value": "Add sorting state to the binder\n" }, { "from": "human", "value": "package fr.nelaupe.spreadsheetlib;\n\nimport java.util.Collections;\nimport java.util.Comparator;\nimport java.util.List;\n\n/**\n * Created by lucas34990 on 16/2/16.\n */\npublic abstract class Fiel...
java
chosen
[ { "from": "system", "value": "Add support for a setup phase which is not recorded.\n" }, { "from": "human", "value": "package net.openhft.chronicle.wire;\n\nimport org.junit.Test;\n\nimport java.io.IOException;\n\nimport static org.junit.Assert.assertEquals;\n\n/**\n * Created by peter on 17/05/...
java
chosen
[ { "from": "system", "value": "Rename parameter \"value\" to \"element\" for consistency\n\ngit-svn-id: d9b8539636d91aff9cd33ed5cd52a0cf73394897@1183040 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "human", "value": "// Copyright 2010 The Apache Software Foundation\n//\n// Licensed under ...
java
chosen
[ { "from": "system", "value": "Drop unnecessary reference to popped elements to allow finalization through GC (XSTR-264).\n\ngit-svn-id: fe6d842192ccfb78748eb71580d1ce65f168b559@649 9830eeb5-ddf4-0310-9ef7-f4b9a3e3227e\n" }, { "from": "human", "value": "package com.thoughtworks.xstream.core.util;...
java
chosen
[ { "from": "system", "value": "Extend MOP for RayTracer depth sorting.\n" }, { "from": "human", "value": "package codechicken.lib.raytracer;\n\nimport net.minecraft.entity.Entity;\nimport net.minecraft.util.MovingObjectPosition;\nimport net.minecraft.util.Vec3;\n\npublic class ExtendedMOP extends...
java
chosen
[ { "from": "system", "value": "Add null in invalid path test\n" }, { "from": "human", "value": "//@@author A0162266E\npackage guitests;\n\nimport java.io.File;\nimport java.io.IOException;\n\nimport org.junit.Test;\n\nimport werkbook.task.logic.commands.SaveCommand;\n\npublic class SaveCommandTes...
java
chosen
[ { "from": "system", "value": "Switch to web integration test\n" }, { "from": "human", "value": "package integration;\n\nimport hello.Application;\nimport org.fluentlenium.adapter.FluentTest;\nimport org.junit.Test;\nimport org.junit.runner.RunWith;\nimport org.openqa.selenium.WebDriver;\nimport ...
java
chosen
[ { "from": "system", "value": "Remove hand cursor from ErrorsLabel\n\nthere is changing background is used hover indication now\n\nGitOrigin-RevId: 65ebd0b94c8d306b27d306020b10115637f1827e\n" }, { "from": "human", "value": "// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is govern...
java
chosen
[ { "from": "system", "value": "Change interface to only load/save a collection of properties." }, { "from": "human", "value": "package evercookie;\n\npublic interface EvercookieBackend {\n\n\tboolean initialize();\n\n\tvoid set(String name, String value);\n\n\tvoid get(String name);\n\n\tboolean ...
java
chosen
[ { "from": "system", "value": "Fix to ensure that temp deffered file will be deleted by JVM even if shared streams are improperly closed\n\ngit-svn-id: 22ec8cfea0672d04b2346d96717164b900bedbad@229 d4f6eda6-38e6-11de-8fef-1f5ae417a2df\n" }, { "from": "human", "value": "package org.subethamail.smtp...
java
chosen
[ { "from": "system", "value": "Prepare FOREIGN_KEY as ALTER TABLE\n" }, { "from": "human", "value": "package nl.myndocs.database.migrator.definition;\n\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Collection;\nimport java.util.Optional;\n\npublic class Constraint {\n ...
java
chosen
[ { "from": "system", "value": "Add reminder to clean up code later.\n\nThis used to be revision r3211.\n" }, { "from": "human", "value": "package imagej.legacy.patches;\n\npublic class FunctionsMethods {\n\t\n\tpublic static int InsideBatchDrawing = 0;\n\t\n\tpublic static void beforeBatchDraw() ...
java
chosen
[ { "from": "system", "value": "Fix JUnit test due to default config change\n" }, { "from": "human", "value": "package seedu.taskmanager.commons.core;\n\nimport static org.junit.Assert.assertEquals;\nimport static org.junit.Assert.assertNotNull;\nimport static org.junit.Assert.assertTrue;\n\nimpor...
java
chosen
[ { "from": "system", "value": "Allow configuration of reviewers on project info screen\n\nChange-Id: Ib529ce8b2593daba58a2c8f737a932323b2f9220\n" }, { "from": "human", "value": "// Copyright (C) 2013 The Android Open Source Project\n//\n// Licensed under the Apache License, Version 2.0 (the \"Lic...
java
chosen
[ { "from": "system", "value": "Make the tweak tools actually useful. Fix always returning false because the Tweaks list is empty.\n" }, { "from": "human", "value": "package mnm.mods.util;\n\nimport java.util.Iterator;\nimport java.util.List;\n\nimport net.minecraft.launchwrapper.ITweaker;\nimport...
java
chosen
[ { "from": "system", "value": "Modify PriorityQueue constructor call to be compliant with JDK 7.\n\nWas using a JDK 8 only constructor." }, { "from": "human", "value": "package aima.core.search.framework;\r\n\r\nimport java.util.Collections;\r\nimport java.util.Comparator;\r\nimport java.util.Lin...
java
chosen
[ { "from": "system", "value": "Integrate the hashtable Unit testcases.\n\n* tests/AllTests.java (suite): added HashtableTests\n\n\ngit-svn-id: f8a4e5e023278da1e04e203c7fe051e3c4285d88@841027 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "human", "value": "package org.tigris.subversion.lib;...
java
chosen
[ { "from": "system", "value": "Add the iWantTwo and iWantZero functions ?" }, { "from": "human", "value": "package es.softwareprocess.fillercreep;\n\npublic class AIMaximum implements AI {\n\n public FundamentalStuff evaluate(int playernumber, FillerCreep fillerCreep) {\n FundamentalStu...
java
chosen
[ { "from": "system", "value": "Fix failed when compile with java 1.6\n" }, { "from": "human", "value": "package com.race604.react.view;\n\nimport com.facebook.react.ReactPackage;\nimport com.facebook.react.bridge.JavaScriptModule;\nimport com.facebook.react.bridge.NativeModule;\nimport com.facebo...
java
chosen
[ { "from": "system", "value": "Change fieldName for user in AIDRTrainerAPI\n" }, { "from": "human", "value": "package qa.qcri.aidr.trainer.api.entity;\n\nimport javax.persistence.Column;\nimport javax.persistence.Entity;\nimport javax.persistence.Id;\nimport javax.persistence.Table;\n\nimport org...
java
chosen
[ { "from": "system", "value": "Fix bug with duplicated filters in config\nChange ArrayList container to HashSet container\n" }, { "from": "human", "value": "package loc;\n\nimport loc.filter.Filter;\nimport loc.filter.FilterFactory;\n\nimport java.io.BufferedReader;\nimport java.io.FileReader;\ni...
java
chosen
[ { "from": "system", "value": "Add tests for AuthInfo value class\n" }, { "from": "human", "value": "package com.google.sps.tests;\n\nimport org.junit.Assert;\nimport org.junit.Test;\nimport org.junit.runner.RunWith;\nimport org.junit.runners.JUnit4;\n\n@RunWith(JUnit4.class)\npublic final class ...
java
chosen
[ { "from": "system", "value": "Add method that asserts invariants\n" }, { "from": "human", "value": "package org.realityforge.arez.api2;\n\nimport javax.annotation.Nonnull;\n\npublic class Derivation\n extends Node\n{\n /**\n * The stalest state of the associated observables that are also der...
java
chosen