conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Fix ./activator dist for the scaladoc\n" }, { "from": "human", "value": "package controllers;\n\nimport play.mvc.Controller;\nimport services.configuration.ConfigurationService;\nimport utils.json.JsonHelper;\n\nimport com.google.inject.Singleton;\n\n@Singleton\npub...
java
chosen
[ { "from": "system", "value": "Support for new failure_reason attribute\n" }, { "from": "human", "value": "package com.stripe.model;\n\npublic final class SourceRedirectFlow extends StripeObject {\n\tString url;\n\tString returnUrl;\n\tString status;\n\n\tpublic String getURL() {\n\t\treturn url;...
java
chosen
[ { "from": "system", "value": "Fix enemy factory since world is now using vector2\n" }, { "from": "human", "value": "package revert.Entities;\n\nimport java.awt.Point;\n\nimport revert.AI.EnemyAi;\nimport revert.MainScene.World;\n\n\npublic class EnemyFactory {\n\n\tPoint[] spawnPoints;\n\tWorld ...
java
chosen
[ { "from": "system", "value": "Fix text by requiring the current year to be present in output\n" }, { "from": "human", "value": "package cgeo.geocaching;\n\nimport junit.framework.TestCase;\n\npublic class LogTemplateProviderTest extends TestCase {\n\n public static void testApplyTemplates() {...
java
chosen
[ { "from": "system", "value": "Add descriptions for the new Config API\n" }, { "from": "human", "value": "package us.myles.ViaVersion.api;\n\n/**\n * Created by Hugo on 22/03/2016.\n */\npublic interface ViaVersionConfig {\n\n /**\n * Obtain if global debug is enabled\n *\n * @retu...
java
chosen
[ { "from": "system", "value": "Change world size to 100x100\n" }, { "from": "human", "value": "package com.pqbyte.coherence;\n\npublic final class Constants {\n private static final boolean DEBUG = true;\n\n public static boolean isDebug() {\n return DEBUG;\n }\n\n public static final int ...
java
chosen
[ { "from": "system", "value": "Set value to annotation @WebAppConfiguration in tests.\n" }, { "from": "human", "value": "package access;\n\nimport config.MvcConfiguration;\nimport org.junit.Before;\nimport org.junit.Test;\nimport org.junit.runner.RunWith;\nimport org.springframework.beans.factory...
java
chosen
[ { "from": "system", "value": "Add scopes to test framework\n\nReview URL: http://codereview.chromium.org/211045\n\n\ngit-svn-id: 1dc80909446f7a7ee3e21dd4d1b8517df524e9ee@238 fc8a088e-31da-11de-8fef-1f5ae417a2df\n" }, { "from": "human", "value": "// Copyright (c) 2009 The Chromium Authors. All ri...
java
chosen
[ { "from": "system", "value": "Load box2d library in JNI\n" }, { "from": "human", "value": "package org.cocos2dx.breakout;\r\nimport org.cocos2dx.lib.Cocos2dxActivity;\r\nimport org.cocos2dx.lib.Cocos2dxGLSurfaceView;\r\n\r\nimport android.os.Bundle;\r\nimport android.widget.EditText;\r\n\r\npubl...
java
chosen
[ { "from": "system", "value": "Add exception in strategy from not enought args\n" }, { "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....
java
chosen
[ { "from": "system", "value": "Test printing book list with author and publish year\n" }, { "from": "human", "value": "package com.twu.biblioteca;\n\n\nimport org.junit.Test;\nimport static org.junit.Assert.assertEquals;\nimport java.io.ByteArrayOutputStream;\nimport java.io.PrintStream;\nimport ...
java
chosen
[ { "from": "system", "value": "Make the test window bigger in Java.\n" }, { "from": "human", "value": "/**\n * Copyright 2010 The PlayN Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not\n * use this file except in compliance with the License. You may ob...
java
chosen
[ { "from": "system", "value": "Increase rate of random sounds with broken earmuffs\n" }, { "from": "human", "value": "package dmillerw.sound.core.item;\n\nimport dmillerw.sound.client.sound.SoundHelper;\nimport dmillerw.sound.client.sound.SoundReplaced;\nimport net.minecraft.client.audio.ISound;\...
java
chosen
[ { "from": "system", "value": "Replace array of glyphs with a single string and split\n" }, { "from": "human", "value": "package com.aragaer.jtt;\n\npublic class JTTHour {\n public static final String Glyphs[] = { \"酉\", \"戌\", \"亥\", \"子\", \"丑\", \"寅\", \"卯\",\n \"辰\", \"巳\", \"午\...
java
chosen
[ { "from": "system", "value": "Create skript-mirror data folder by default\n" }, { "from": "human", "value": "package com.btk5h.skriptmirror;\n\nimport ch.njol.skript.Skript;\n\nimport java.io.IOException;\nimport java.net.URL;\nimport java.net.URLClassLoader;\nimport java.nio.file.*;\nimport jav...
java
chosen
[ { "from": "system", "value": "Document needed imports before the app starts\n" }, { "from": "human", "value": "package com.vaadin.components.gwt.polymer.client;\n\nimport com.google.gwt.core.client.EntryPoint;\nimport com.google.gwt.user.client.ui.RootPanel;\nimport com.vaadin.components.gwt.pol...
java
chosen
[ { "from": "system", "value": "Improve implementation: add returns a boolean" }, { "from": "human", "value": "package de.gurkenlabs.litiengine;\n\nimport java.util.Collections;\nimport java.util.Set;\nimport java.util.concurrent.ConcurrentHashMap;\nimport java.util.logging.Level;\nimport java.uti...
java
chosen
[ { "from": "system", "value": "Add total load time to cache debug options\n" }, { "from": "human", "value": "package com.tisawesomeness.minecord.debug;\n\nimport com.google.common.cache.CacheStats;\nimport lombok.NonNull;\n\n/**\n * Debugs a Guava {@link com.google.common.cache.LoadingCache}.\n *...
java
chosen
[ { "from": "system", "value": "Insert new files, Alura, Projeto de Algoritmos 1, Aula 10\n" }, { "from": "human", "value": "public class TestaMenorPreco {\n\n public static void main(String[] args) {\n\n Produto produtos[] = new Produto[5];\n produtos[0] = new Produto(\"Lamborghini\", 1000...
java
chosen
[ { "from": "system", "value": "Use constant to generate Boolean\n" }, { "from": "human", "value": "/*\r\n * Created on Nov 11, 2005\r\n */\r\npackage uk.org.ponder.rsf.uitype;\r\n\r\npublic class BooleanUIType implements UIType {\r\n public static final BooleanUIType instance = new BooleanUIType...
java
chosen
[ { "from": "system", "value": "Rename _type to type according naming conventions.\n" }, { "from": "human", "value": "package parrot;\n\npublic class Parrot {\n\n private ParrotTypeEnum type;\n private int numberOfCoconuts;\n private double voltage;\n private boolean isNailed;\n\n p...
java
chosen
[ { "from": "system", "value": "Add getter and setter for \"value\"" }, { "from": "human", "value": "package de.gymnew.sudoku.model;\r\n\r\nimport java.util.Set;\r\n\r\npublic class Field {\r\n\r\n\tprivate byte value; // 0 = undefined\r\n\tprivate Set<Byte> notes;\r\n\tprivate Row row;\r\n\tpriva...
java
chosen
[ { "from": "system", "value": "Reduce geckodriver logs to INFO\n" }, { "from": "human", "value": "package com.frameworkium.core.ui.driver.drivers;\n\nimport com.frameworkium.core.common.properties.Property;\nimport com.frameworkium.core.ui.driver.AbstractDriver;\nimport org.openqa.selenium.Capabi...
java
chosen
[ { "from": "system", "value": "Enable strict mode after setting default preferences values.\n\nTechnically this is already our first strict mode violation - reading the preferences\nwill require reading data from the disk and we are on the main thread here. However\ncurrently the following code requires that...
java
chosen
[ { "from": "system", "value": "Remove unnecessary visibility modifiers in interface\n" }, { "from": "human", "value": "package im.delight.android.ddp;\n\n/*\n * Copyright (c) delight.im <info@delight.im>\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use...
java
chosen
[ { "from": "system", "value": "Fix initializing logger in wizards plugin\n" }, { "from": "human", "value": "package org.perfclipse.wizards;\n\nimport org.eclipse.ui.plugin.AbstractUIPlugin;\nimport org.osgi.framework.BundleContext;\nimport org.perfclipse.core.logging.Logger;\n\n/**\n * The activa...
java
chosen
[ { "from": "system", "value": "Add note about screen blank killing drawing\n\nSigned-off-by: Tim Serong <179776560e3cc6916f9eda0b631970b6e8e82669@suse.com>\n" }, { "from": "human", "value": "package org.opensuse.tserong.geeko;\n\nimport android.app.Activity;\nimport android.os.Bundle;\n\npublic c...
java
chosen
[ { "from": "system", "value": "Update field \"authkey\" to \"key\"\n" }, { "from": "human", "value": "package pro.beam.api.resource.tetris;\n\nimport java.net.InetSocketAddress;\n\npublic class RobotInfo {\n public InetSocketAddress address;\n public String authkey;\n}\n" }, { "from...
java
chosen
[ { "from": "system", "value": "Remove type in toString, the name says the type already\n" }, { "from": "human", "value": "package br.usp.each.saeg.jaguar.model;\n\nimport javax.xml.bind.annotation.XmlRootElement;\n\n/**\n * This class represents the Line Requirement.\n *\n * Created by henrique o...
java
chosen
[ { "from": "system", "value": "Add \"available_translations\" property to base entities.\n" }, { "from": "human", "value": "package com.uwetrottmann.trakt.v2.entities;\n\npublic abstract class BaseEntity {\n\n public String title;\n public Images images;\n\n}\n" }, { "from": "gpt", ...
java
chosen
[ { "from": "system", "value": "Upgrade gradle-node-plugin dependcy to 1.2.0\n\nTo fix class not found exception during installation as gradle-node-plugin has repackage NpmSetupTask & NpmTask into pkg com.moowork.gradle.node.npm after 1.x.x" }, { "from": "human", "value": "package de.infonautika.p...
java
chosen
[ { "from": "system", "value": "Allow for error reporting back to the plugin on a plugin to plugin basis, for use for remote error reporting.\n" }, { "from": "human", "value": "package com.ingotpowered.api.plugins;\n\nimport java.io.File;\n\npublic abstract class Plugin {\n\n private String nam...
java
chosen
[ { "from": "system", "value": "Update setListener() warning for iOS.\n" }, { "from": "human", "value": "/**\n * Copyright 2012 The PlayN Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not\n * use this file except in compliance with the License. You may o...
java
chosen
[ { "from": "system", "value": "Add documentation for protocol exception in network protocols\n" }, { "from": "human", "value": "package org.jvirtanen.parity.net;\n\nimport java.io.IOException;\n\npublic class ProtocolException extends IOException {\n\n public ProtocolException(String message) ...
java
chosen
[ { "from": "system", "value": "Use non-blank string values as demo arguments\n\nPrior to this commit the demo tree showed empty and multi-line\ndisplay names:\n\n+-- ExternalMethodSourceDemo [OK]\n| '-- testWithExternalMethodSource(String) [OK]\n| +-- [1] [OK]\n| +-- [2] [OK]\n| '-- [3]\n [OK]\n\nN...
java
chosen
[ { "from": "system", "value": "Prepare for release of 8.3dev-602.\n" }, { "from": "human", "value": "/*-------------------------------------------------------------------------\n*\n* Copyright (c) 2004-2005, PostgreSQL Global Development Group\n*\n* IDENTIFICATION\n* $PostgreSQL: pgjdbc/org/pos...
java
chosen
[ { "from": "system", "value": "Add ObjectHolder Annotation\nSuppress unused\n" }, { "from": "human", "value": "package jp.crafterkina.pipes.common;\n\n@SuppressWarnings({\"AssignmentToNull\",\"NullableProblems\"})\npublic class RegistryEntries {\n\n}" }, { "from": "gpt", "value": "pac...
java
chosen
[ { "from": "system", "value": "Use the new Vue GWT init\n" }, { "from": "human", "value": "package com.axellience.vuegwtdemo.client;\n\nimport com.axellience.vuegwt.client.Vue;\nimport com.axellience.vuegwt.client.gwtpanel.VueGwtPanel;\nimport com.axellience.vuegwt.client.resources.VueLib;\nimpor...
java
chosen
[ { "from": "system", "value": "Call suite() instead of constructor of TypeInferenceSuite.\n" }, { "from": "human", "value": "/*\n * Copyright (C) 2007-2008 Reto Schuettel, Robin Stocker\n *\n * IFS Institute for Software, HSR Rapperswil, Switzerland\n *\n *\n * This library is free software; you...
java
chosen
[ { "from": "system", "value": "Allow invocations to access the context.\n\nSigned-off-by: Clement Escoffier <6397137e57d1f87002962a37058f2a1c76fca9db@gmail.com>\n" }, { "from": "human", "value": "/*\n * #%L\n * Wisdom-Framework\n * %%\n * Copyright (C) 2013 - 2014 Wisdom Framework\n * %%\n * Lice...
java
chosen
[ { "from": "system", "value": "Add init SDK on Application.\n" }, { "from": "human", "value": "package com.yiba;\n\nimport android.app.Application;\n\nimport www.yiba.com.wifisdk.manager.WiFiSDKManager;\n\n/**\n * Created by yiba_zyj on 2016/11/14.\n */\n\npublic class MyApplication extends Appli...
java
chosen
[ { "from": "system", "value": "Replace string builder with string concatenation\n" }, { "from": "human", "value": "package ru.nsu.ccfit.bogush.message.types;\n\nimport ru.nsu.ccfit.bogush.User;\nimport ru.nsu.ccfit.bogush.message.Message;\nimport ru.nsu.ccfit.bogush.message.MessageHandler;\n\npub...
java
chosen
[ { "from": "system", "value": "Use plum and shadow_plum from colors.xml\n" }, { "from": "human", "value": "package mozilla.org.webmaker.activity;\n\nimport android.app.ActionBar;\nimport android.graphics.Color;\nimport android.graphics.drawable.ColorDrawable;\nimport android.os.Bundle;\nimport an...
java
chosen
[ { "from": "system", "value": "Revert \"Update sample to use execute async calls.\"\n\nThis reverts commit 1affe46ccaa3f846e86db850024a49fa390d85fa.\n" }, { "from": "human", "value": "package com.raskasa.metrics.okhttp.sample;\n\nimport com.codahale.metrics.ConsoleReporter;\nimport com.codahale.m...
java
chosen
[ { "from": "system", "value": "Test case with mismatch and array size removed\n" }, { "from": "human", "value": "package strings;\n\nimport org.junit.jupiter.api.Test;\n\nimport static org.junit.jupiter.api.Assertions.*;\nimport static strings.ReplaceAndRemove.replaceAndRemove;\n\nclass ReplaceAn...
java
chosen
[ { "from": "system", "value": "Fix bug where multiple flairs from unrelated posts are shown\n" }, { "from": "human", "value": "package com.veyndan.paper.reddit.ui.widget;\n\nimport android.content.Context;\nimport android.util.AttributeSet;\nimport android.view.LayoutInflater;\n\nimport com.googl...
java
chosen
[ { "from": "system", "value": "Fix unused import lint error\n\nChange-Id: Ib72b049b4991e48b2ac9ffbc3c5585e676edf781\n" }, { "from": "human", "value": "// Copyright 2016 Google Inc. All Rights Reserved.\npackage com.google.copybara.util;\n\nimport com.google.common.base.Preconditions;\nimport com....
java
chosen
[ { "from": "system", "value": "Add params to topic partial\n" }, { "from": "human", "value": "package net.ontopia.presto.jaxb;\n\nimport java.util.Collection;\n\nimport javax.xml.bind.annotation.XmlRootElement;\n\nimport com.fasterxml.jackson.annotation.JsonIgnoreProperties;\nimport com.fasterxml...
java
chosen
[ { "from": "system", "value": "Fix private value in Grave\n" }, { "from": "human", "value": "package com.ForgeEssentials.afterlife;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\nimport net.minecraft.inventory.InventoryBasic;\nimport net.minecraft.item.ItemStack;\n\npublic class Invent...
java
chosen
[ { "from": "system", "value": "Revert \"it's work!!! for tegEnity\"\n\nThis reverts commit b66c557ffab584ed1f8083857fd67732fce21bc1.\n" }, { "from": "human", "value": "package com.netcracker.students_project.entity;\n\nimport org.hibernate.annotations.Generated;\nimport org.hibernate.annotations....
java
chosen
[ { "from": "system", "value": "Clean up gradient image plugin code.\n\n\nThis used to be revision r1904.\n" }, { "from": "human", "value": "package imagej.gui;\n\nimport imagej.data.Types;\nimport imagej.dataset.Dataset;\nimport imagej.dataset.PlanarDatasetFactory;\nimport imagej.plugin.ij2.IPlug...
java
chosen
[ { "from": "system", "value": "Replace '+=' with '=' for outRect offsets to eliminate any ideas that outRect bounds isn't initially 0\n" }, { "from": "human", "value": "package com.veyndan.redditclient;\n\nimport android.graphics.Rect;\nimport android.support.annotation.Px;\nimport android.suppor...
java
chosen
[ { "from": "system", "value": "Set name for favs tab\n" }, { "from": "human", "value": "package com.x1unix.avi.dashboard;\n\nimport com.x1unix.avi.R;\nimport android.os.Bundle;\nimport android.view.LayoutInflater;\nimport android.view.View;\nimport android.view.ViewGroup;\nimport com.x1unix.avi.m...
java
chosen
[ { "from": "system", "value": "Fix a couple of bugs.\n\n\ngit-svn-id: ca8e9bb6f3f9b50a093b443c23951d3c25ca0913@45 369101cc-9a96-11dd-8e58-870c635edf7a\n" }, { "from": "human", "value": "package com.thaiopensource.relaxng;\n\nimport org.xml.sax.Locator;\nimport com.thaiopensource.datatype.Datatype...
java
chosen
[ { "from": "system", "value": "Disable testing equals on samples\n" }, { "from": "human", "value": "package org.pdxfinder.graph.dao;\n\nimport org.junit.Test;\n\nimport java.util.HashMap;\nimport java.util.Map;\n\nimport static org.junit.Assert.*;\n\npublic class SampleTest {\n\n @Test public ...
java
chosen
[ { "from": "system", "value": "Change name to deployment type (might be wrong)\n\ngit-svn-id: 811cd8a17a8c3c0c263af499002feedd54a892d0@25 1c488680-804c-0410-94cd-c6b725194a0e\n" }, { "from": "human", "value": "package javax.webbeans;\n\nimport java.lang.annotation.Annotation;\nimport java.util.Se...
java
chosen
[ { "from": "system", "value": "Add the editor field to the required fields at the book ref.\n" }, { "from": "human", "value": "package ryhma57.references;\n\nimport java.util.EnumSet;\nimport ryhma57.backend.BibtexReferenceField;\nimport static ryhma57.backend.BibtexReferenceField.*;\n\npublic cl...
java
chosen
[ { "from": "system", "value": "Update default voucherify endpoint URL\n" }, { "from": "human", "value": "package pl.rspective.voucherify.android.client;\n\npublic interface Constants {\n\n // HTTP constants\n String SCHEME_HTTP = \"http\";\n String SCHEME_HTTPS = \"https\";\n String H...
java
chosen
[ { "from": "system", "value": "Fix to correctly use per-widget taks source.\n" }, { "from": "human", "value": "package org.andstatus.todoagenda.task;\n\nimport android.app.Activity;\nimport android.content.Context;\n\nimport org.andstatus.todoagenda.EventProvider;\nimport org.andstatus.todoagenda...
java
chosen
[ { "from": "system", "value": "Change device REST API format.\n\nChange-Id: I848c637f5a6d2a224ddceb16d0d27183712ed54a\n" }, { "from": "human", "value": "package net.onrc.onos.core.topology.serializers;\n\nimport java.io.IOException;\n\nimport net.onrc.onos.core.topology.Device;\nimport net.onrc.o...
java
chosen
[ { "from": "system", "value": "Fix activity drop after logout/login.\n" }, { "from": "human", "value": "package com.newsblur.fragment;\n\nimport android.app.AlertDialog;\nimport android.app.Dialog;\nimport android.content.DialogInterface;\nimport android.os.Bundle;\nimport android.app.DialogFragm...
java
chosen
[ { "from": "system", "value": "Throw assertion instead of returning empty string.\n" }, { "from": "human", "value": "package com.kickstarter.models;\n\nimport com.google.common.collect.ImmutableMap;\n\npublic class DiscoveryParams {\n\n public enum Sort {\n MAGIC, POPULAR, ENDING_SOON, NEWEST...
java
chosen
[ { "from": "system", "value": "Return last-modified in the /todos response.\n\nThis closes #1\n" }, { "from": "human", "value": "package com.codecrafters.server;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.http.HttpStatus;\nimport org.springframew...
java
chosen
[ { "from": "system", "value": "Read exemplary BEL document (leads to errors...)" }, { "from": "human", "value": "package ch.tkuhn.bel2nanopub;\n\npublic class Bel2Nanopub {\n\n\tpublic static void main(String[] args) {\n\t\tSystem.out.println( \"Hello World!\" );\n\t}\n\n}\n" }, { "from":...
java
chosen
[ { "from": "system", "value": "Add cases for picker, textField and textlabel creation" }, { "from": "human", "value": "package com.sometrik.framework;\r\n\r\nimport android.content.Context;\r\nimport android.widget.Button;\r\nimport android.widget.LinearLayout;\r\nimport android.widget.TextView;\...
java
chosen
[ { "from": "system", "value": "Handle other links in content view to browser\n" }, { "from": "human", "value": "package com.erakk.lnreader.helper;\n\nimport com.erakk.lnreader.Constants;\nimport com.erakk.lnreader.DisplayImageActivity;\n\nimport android.content.Context;\nimport android.content.In...
java
chosen
[ { "from": "system", "value": "Add deprecated messages to i18n identifier methods\n" }, { "from": "human", "value": "package com.commercetools.sunrise.common.template.i18n;\n\nimport io.sphere.sdk.models.Base;\n\n/**\n * i18n Identifier, consisting of the message key and the bundle.\n *\n * - {@c...
java
chosen
[ { "from": "system", "value": "Change chest recipe to make 2 chests\n" }, { "from": "human", "value": "package ethanjones.cubes.block;\n\nimport ethanjones.cubes.core.IDManager;\nimport ethanjones.cubes.core.IDManager.GetBlock;\nimport ethanjones.cubes.item.ItemStack;\nimport ethanjones.cubes.ite...
java
chosen
[ { "from": "system", "value": "Test the paginated Stormpath account iterator\n" }, { "from": "human", "value": "package org.sagebionetworks.bridge.services.backfill;\n\nimport java.util.ArrayList;\nimport java.util.Iterator;\nimport java.util.List;\n\nimport com.stormpath.sdk.account.Account;\nim...
java
chosen
[ { "from": "system", "value": "Improve junit code and design." }, { "from": "human", "value": "package cl.fatman.capital.fund;\n\nimport static org.junit.Assert.*;\n\nimport java.time.LocalDate;\n\nimport org.junit.Test;\n\npublic class ExtractFundDataTest {\n\n\t@Test\n\tpublic void getFundDataT...
java
chosen
[ { "from": "system", "value": "Add documentation and tidy up a bit\n\ngit-svn-id: https://svn.apache.org/repos/asf/jakarta/jmeter/branches/rel-2-1@349151 13f79535-47bb-0310-9956-ffa450edef68\n\nFormer-commit-id: 27e9d82281f1ffccef29acba25b279d8ebca551c" }, { "from": "human", "value": "/*\n * Copy...
java
chosen
[ { "from": "system", "value": "Test with custom membership constraints.\n" }, { "from": "human", "value": "package org.clafer.ir;\n\nimport org.clafer.ir.IrQuickTest.Solution;\nimport static org.clafer.ir.Irs.*;\nimport org.junit.Test;\nimport org.junit.runner.RunWith;\nimport solver.constraints....
java
chosen
[ { "from": "system", "value": "Change isSingleton as we return a new mock every time.\n" }, { "from": "human", "value": "/*\n * Copyright 2013-2015 Hewlett-Packard Development Company, L.P.\n * Licensed under the MIT License (the \"License\"); you may not use this file except in compliance with t...
java
chosen
[ { "from": "system", "value": "Implement test to check that the GsonSerializer is working\n" }, { "from": "human", "value": "package com.mobilejazz.cacheio.serializer;\n\nimport com.google.gson.Gson;\nimport com.mobilejazz.cacheio.ApplicationTestCase;\nimport com.mobilejazz.cacheio.GsonSerialiser...
java
chosen
[ { "from": "system", "value": "Fix posting messages with smiles\n" }, { "from": "human", "value": "package com.perm.kate.api;\r\n\r\nimport java.net.URLEncoder;\r\nimport java.util.TreeMap;\r\nimport java.util.Map.Entry;\r\n\r\npublic class Params {\r\n TreeMap<String, String> args = new TreeM...
java
chosen
[ { "from": "system", "value": "Add method to broadcast to all players\n" }, { "from": "human", "value": "/*\n * Trident - A Multithreaded Server Alternative\n * Copyright 2014 The TridentSDK Team\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this fi...
java
chosen
[ { "from": "system", "value": "feat(Core): Add a way to access the OAuth token authenticator\n" }, { "from": "human", "value": "/*\n * Copyright (c) 2017 pCloud AG\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with th...
java
chosen
[ { "from": "system", "value": "Add parameter to allow for output xml flag\n" }, { "from": "human", "value": "package org.eobjects.build;\n\nimport java.io.File;\n\nimport org.apache.maven.plugin.MojoFailureException;\n\nimport com.fasterxml.jackson.databind.JsonNode;\nimport com.fasterxml.jackson...
java
chosen
[ { "from": "system", "value": "Add basic spell levelling API\n" }, { "from": "human", "value": "package com.elmakers.mine.bukkit.api.spell;\n\nimport java.util.Collection;\n\nimport org.bukkit.Color;\nimport org.bukkit.command.CommandSender;\nimport org.bukkit.configuration.ConfigurationSection;\...
java
chosen
[ { "from": "system", "value": "Fix logic error on logging to crashlytics\n" }, { "from": "human", "value": "package com.zulip.android;\n\nimport com.crashlytics.android.Crashlytics;\n\npublic class ZLog {\n\n public static void logException(Throwable e) {\n if (BuildHelper.shouldLogToCr...
java
chosen
[ { "from": "system", "value": "Use texture for test living" }, { "from": "human", "value": "package info.u_team.u_team_test.entity.render;\n\nimport com.mojang.blaze3d.matrix.MatrixStack;\n\nimport net.minecraft.client.renderer.entity.*;\nimport net.minecraft.entity.monster.ZombieEntity;\n\npubli...
java
chosen
[ { "from": "system", "value": "Add removeInstance API for tests\n" }, { "from": "human", "value": "package jfdi.storage;\n\nimport java.nio.file.InvalidPathException;\n\nimport jfdi.storage.exceptions.ExistingFilesFoundException;\n\n/**\n * This class serves as the facade of the Storage component...
java
chosen
[ { "from": "system", "value": "Remove '@Override', to fix compile on JDK 1.5.\n" }, { "from": "human", "value": "/*\n// Licensed to Julian Hyde under one or more contributor license\n// agreements. See the NOTICE file distributed with this work for\n// additional information regarding copyright o...
java
chosen
[ { "from": "system", "value": "Rename some functions to experiment instead of evaluation" }, { "from": "human", "value": "package dk.aau.kah.bits.evaluation;\n\nimport da.aau.kah.bits.exceptions.InvalidDatabaseConfig;\nimport dk.aau.kah.bits.database.DatabaseConfig;\nimport dk.aau.kah.bits.databa...
java
chosen
[ { "from": "system", "value": "Add checks for hours and minutes\n" }, { "from": "human", "value": "package com.telus.training.ex1;\n\npublic class ClockNeedles {\n\n\tpublic double calculateAngle(int hours, int minutes) {\n\t\tdouble hoursAngle = hours*30;\n\t\tdouble minutesAngle = minutes*6;\n\...
java
chosen
[ { "from": "system", "value": "Add values to vote enum" }, { "from": "human", "value": "package wissolsoft.porada.webapp.model;\n\nimport javax.persistence.Entity;\nimport javax.persistence.GeneratedValue;\nimport javax.persistence.Id;\nimport javax.persistence.ManyToOne;\nimport javax.persistenc...
java
chosen
[ { "from": "system", "value": "Add magical crops grape seeds to grape seed oredict\n" }, { "from": "human", "value": "package squeek.veganoption.integration.magicalcrops;\n\nimport java.util.Arrays;\nimport java.util.HashSet;\nimport java.util.Set;\nimport net.minecraft.item.Item;\nimport net.min...
java
chosen
[ { "from": "system", "value": "Set status line to display current version\n" }, { "from": "human", "value": "/*\n * Copyright (c) 2016 Owen Bennett.\n * You may use, distribute and modify this code under the terms of the MIT licence.\n * You should have obtained a copy of the MIT licence with t...
java
chosen
[ { "from": "system", "value": "Fix an assertion in test" }, { "from": "human", "value": "package water;\n\nimport org.junit.BeforeClass;\nimport org.junit.Test;\n\nimport java.io.ByteArrayOutputStream;\nimport java.io.PrintStream;\n\nimport static org.junit.Assert.*;\n\npublic class TypeMapTest e...
java
chosen
[ { "from": "system", "value": "Support for Hierarchical trees added.\n" }, { "from": "human", "value": "package org.pentaho.ui.xul.components;\r\n\r\nimport java.util.List;\r\n\r\nimport org.pentaho.ui.xul.XulComponent;\r\nimport org.pentaho.ui.xul.binding.InlineBindingExpression;\r\nimport org.p...
java
chosen
[ { "from": "system", "value": "Reduce logging noise when metric fetching fails\n" }, { "from": "human", "value": "// Copyright 2020 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\npackage ai.vespa.metricsproxy.service;\n\nimport ai.vespa.metricsprox...
java
chosen
[ { "from": "system", "value": "Remove unused WEB_BROWSER access path\n\nChange-Id: I979d4539f3e67bdee0e5aaa82830df695dd9c25d\nSigned-off-by: Edwin Kempin <b444e279ad95fdef4fbdd82c813b624595df204a@sap.com>\n" }, { "from": "human", "value": "// Copyright (C) 2009 The Android Open Source Project\n//...
java
chosen
[ { "from": "system", "value": "Use double precision for double with Firebird" }, { "from": "human", "value": "package liquibase.datatype.core;\n\nimport liquibase.database.Database;\nimport liquibase.database.core.*;\nimport liquibase.datatype.DataTypeInfo;\nimport liquibase.datatype.DatabaseData...
java
chosen
[ { "from": "system", "value": "Document that the terminate method is blocking.\n" }, { "from": "human", "value": "/*\n * Copyright (c) 2016 Nextiva, Inc. to Present.\n * All rights reserved.\n */\npackage org.apache.logging.log4j.spi;\n\n/**\n * Interface to be implemented by LoggerContext's that...
java
chosen
[ { "from": "system", "value": "Use CLI for arguments in client\n" }, { "from": "human", "value": "package mafiaclient;\n\n/**\n * MafiaClient.java\n * Contains the MafiaClient class\n * @author Cory Gehr (cmg5573)\n */\npublic class MafiaClient {\n \n public static String HOST_NAME;\n pu...
java
chosen
[ { "from": "system", "value": "Fix error mssage of ParagraphNumber\n" }, { "from": "human", "value": "/**\n * redpen: a text inspection tool\n * Copyright (c) 2014-2015 Recruit Technologies Co., Ltd. and contributors\n * (see CONTRIBUTORS.md)\n *\n * Licensed under the Apache License, Version 2.0...
java
chosen
[ { "from": "system", "value": "Revert \"sample data structure for multithread working\"\n\nThis reverts commit 33a475b883c311666078b91ed1dab5870c6d583d.\n" }, { "from": "human", "value": "/*\n * To change this license header, choose License Headers in Project Properties.\n * To change this templa...
java
chosen
[ { "from": "system", "value": "Return the simple response header and response body.\n" }, { "from": "human", "value": "package org.yukung.sandbox.http;\n\nimport static org.yukung.sandbox.http.HttpRequest.CRLF;\n\nimport java.io.BufferedWriter;\nimport java.io.IOException;\nimport java.io.InputSt...
java
chosen
[ { "from": "system", "value": "Set click listener to button and show name in a toast\n" }, { "from": "human", "value": "package com.smartdragons.interactivestory;\n\nimport android.support.v7.app.AppCompatActivity;\nimport android.os.Bundle;\nimport android.view.Menu;\nimport android.view.MenuIte...
java
chosen
[ { "from": "system", "value": "Add 'tls_client_tls_server' as tls mixed mode option\n\nAlso introduce default value for mixed mode.\n" }, { "from": "human", "value": "// Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\npackage co...
java
chosen