conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Update nullability on location based on what API sends back.\n" }, { "from": "human", "value": "package com.kickstarter.models;\n\nimport android.os.Parcelable;\n\nimport com.kickstarter.libs.qualifiers.AutoGson;\n\nimport auto.parcel.AutoParcel;\n\n@AutoGson\n@Auto...
java
chosen
[ { "from": "system", "value": "Add method to say Achmed is dead.\n" }, { "from": "human", "value": "package com.github.aureliano.achmed.helper;\n\nimport java.util.Calendar;\n\npublic final class EasterEggHelper {\n\n\tprivate EasterEggHelper() {\n\t\tthrow new InstantiationError(this.getClass()....
java
chosen
[ { "from": "system", "value": "Remove version 1.9.6 from test of PhanthomJS 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 te...
java
chosen
[ { "from": "system", "value": "Return a sample result, so can test methods that perform a sample\n\ngit-svn-id: 7c053b8fbd1fb5868f764c6f9536fc6a9bbe7da9@907681 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "human", "value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one...
java
chosen
[ { "from": "system", "value": "Add flushing for console logging\n" }, { "from": "human", "value": "package io.airlift.log;\n\nimport java.io.OutputStream;\nimport java.io.OutputStreamWriter;\nimport java.io.Writer;\nimport java.util.logging.Handler;\nimport java.util.logging.LogRecord;\n\nimport ...
java
chosen
[ { "from": "system", "value": "Fix some code\n๋ณ€์ˆ˜๊ฐ€ ์•„๋‹Œ ๋ฉ”์„œ๋“œ ์‚ฌ์šฉ\n" }, { "from": "human", "value": "package cloud.swiftnode.kspam.util;\n\nimport java.net.InetAddress;\nimport java.net.UnknownHostException;\nimport java.util.Random;\n\n/**\n * Created by Junhyeong Lim on 2017-01-18.\n */\npublic class...
java
chosen
[ { "from": "system", "value": "Update with the SecurityManager implementation. " }, { "from": "human", "value": "package com.cedarsoftware.controller;\n\nimport com.cedarsoftware.security.Security;\nimport com.cedarsoftware.security.SecurityManager;\nimport org.apache.log4j.Logger;\n\n/**\n * Com...
java
chosen
[ { "from": "system", "value": "Update demo, optimized batched adding of multiple items" }, { "from": "human", "value": "package org.vaadin.mcont.demo.data;\n\nimport com.vaadin.data.util.ExtensibleBeanContainer;\n\npublic class DemoContainer extends ExtensibleBeanContainer {\n\n public DemoCon...
java
chosen
[ { "from": "system", "value": "Add a toggle for moving an entity on undo\n" }, { "from": "human", "value": "package com.elmakers.mine.bukkit.api.entity;\n\nimport org.bukkit.Art;\nimport org.bukkit.Location;\nimport org.bukkit.block.BlockFace;\nimport org.bukkit.entity.Entity;\nimport org.bukkit....
java
chosen
[ { "from": "system", "value": "Update so logout responses are instantanteous\n" }, { "from": "human", "value": "package info.freelibrary.jiiify.handlers;\n\nimport static info.freelibrary.jiiify.RoutePatterns.LOGIN;\n\nimport info.freelibrary.jiiify.Configuration;\n\nimport io.vertx.core.http.Htt...
java
chosen
[ { "from": "system", "value": "Fix galleries crashing due to missing injection declaration.\n" }, { "from": "human", "value": "package com.antew.redditinpictures;\n\nimport com.antew.redditinpictures.library.ui.ImageDetailActivity;\nimport com.antew.redditinpictures.library.ui.ImageDetailFragment...
java
chosen
[ { "from": "system", "value": "Set map default project to null (same way as addon's Vaadin 6 version works)\n" }, { "from": "human", "value": "package org.vaadin.vol.client;\n\nimport com.vaadin.shared.AbstractComponentState;\nimport com.vaadin.shared.Connector;\n\nimport java.util.*;\n\npublic c...
java
chosen
[ { "from": "system", "value": "Change GetTransMemoryHandler to return multiple strings per TextFlow\n\nAlso had to split TranslationMemoryGlossaryItem into SearchResultItem,\nTransMemoryResultItem and GlossaryResultItem and related UI classes.\n\n(Sorting of TM results still needs to account for multiple str...
java
chosen
[ { "from": "system", "value": "Prepare version numbers for upcoming beta" }, { "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 release\n public...
java
chosen
[ { "from": "system", "value": "Reduce the holdoff distance for invaders\n" }, { "from": "human", "value": "package uk.co.alynn.games.ld30.world;\n\npublic final class Constants {\n public static final float SPEED = 300.0f;\n public static final float SPEED_ROTATION_ADJ = 3.0f;\n public s...
java
chosen
[ { "from": "system", "value": "Fix extension example to work with nextChain()\n" }, { "from": "human", "value": "/*\n * Copyright (c) 2011 David Saff\n * Copyright (c) 2011 Christian Gruber\n * \n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file ex...
java
chosen
[ { "from": "system", "value": "Remove the specification of thread from the bus\n" }, { "from": "human", "value": "/*\n * Copyright 2016 Peter Kenji Yamanaka\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the Licens...
java
chosen
[ { "from": "system", "value": "Update copyright notice with MIT license" }, { "from": "human", "value": "/*++\r\n\r\nNASM Assembly Language Plugin\r\nCopyright (c) 2017-2018 Aidan Khoury. All rights reserved.\r\n\r\nThis program is free software: you can redistribute it and/or modify\r\nit under ...
java
chosen
[ { "from": "system", "value": "Make the color tests OS agnostic.\n" }, { "from": "human", "value": "package fi.helsinki.cs.tmc.cli.io;\n\nimport static org.junit.Assert.assertEquals;\n\nimport org.junit.Before;\nimport org.junit.Test;\n\npublic class ColorTest {\n\n private Boolean noColor;\n\...
java
chosen
[ { "from": "system", "value": "INC-181: Format code via `./gradlew spotlessApply`\n" }, { "from": "human", "value": "/*\n * Maintained by brightSPARK Labs.\n * www.brightsparklabs.com\n *\n * Refer to LICENSE at repository root for license details.\n */\n\npackage com.brightsparklabs.assam.valida...
java
chosen
[ { "from": "system", "value": "Replace more occurences of \"group\" with \"category\"" }, { "from": "human", "value": "package org.monospark.actioncontrol.category;\n\nimport java.io.File;\nimport java.io.IOException;\nimport java.nio.file.Path;\nimport java.util.Collections;\nimport java.util.Se...
java
chosen
[ { "from": "system", "value": "Move network registry to common setup event. That is sufficient" }, { "from": "human", "value": "package info.u_team.u_team_core.intern.init;\n\nimport info.u_team.u_team_core.UCoreMod;\nimport info.u_team.u_team_core.intern.network.*;\nimport net.minecraft.util.Res...
java
chosen
[ { "from": "system", "value": "Add tests for download() and getContent() methods.\n" }, { "from": "human", "value": "package model;\n\nimport org.junit.Test;\n\nimport static org.junit.Assert.assertNotNull;\n\n/**\n * Tests {@link FileLink FileLink} class.\n */\npublic class TestFileLink {\n p...
java
chosen
[ { "from": "system", "value": "Add 1 to row and column, since the numbers are 0-based and the Eclipse editor shows 1-based\n" }, { "from": "human", "value": "package org.metaborg.core.tracing;\n\nimport javax.annotation.Nullable;\n\nimport org.metaborg.core.source.ISourceLocation;\nimport org.met...
java
chosen
[ { "from": "system", "value": "Fix format error in RemoveCtrl" }, { "from": "human", "value": "package controller;\n\nimport boundary.PlayerApplication;\nimport model.Move;\nimport model.PlayerModel;\nimport model.Point;\nimport model.Variation;\n\n/**\n * @author Nick Chaput\n */\npublic class P...
java
chosen
[ { "from": "system", "value": "Change Helper to Singleton Class\n" }, { "from": "human", "value": "package zero.zd.zquestionnaire;\n\n\nimport java.util.ArrayList;\n\nimport zero.zd.zquestionnaire.model.QnA;\n\n/**\n * Helper class for retrieving QnA for different topics.\n * for future feature: ...
java
chosen
[ { "from": "system", "value": "Annotate with update instead of query\n" }, { "from": "human", "value": "package com.bitbosh.dropwizardheroku.event.repository;\n\nimport java.util.Date;\nimport java.util.List;\n\nimport org.skife.jdbi.v2.sqlobject.Bind;\nimport org.skife.jdbi.v2.sqlobject.SqlQuery...
java
chosen
[ { "from": "system", "value": "Add NonNullApi annotation on org.gradle.api.model\n\nEverything created from ObjectFactory will be non-null.\n" }, { "from": "human", "value": "/*\n * Copyright 2017 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Licens...
java
chosen
[ { "from": "system", "value": "Refactor minor details for editCommand\n" }, { "from": "human", "value": "package seedu.jimi.logic.commands;\n\nimport seedu.jimi.model.task.FloatingTask;\n\n/**\n * \n * @author zexuan\n *\n * Edits an existing task/event in Jimi.\n */\npublic class EditCommand ext...
java
chosen
[ { "from": "system", "value": "Use NetUtil.getNextAvailablePort to get a testing port\n" }, { "from": "human", "value": "/*\n * Copyright (c) 2017 Stephan D. Cote' - All rights reserved.\n * \n * This program and the accompanying materials are made available under the \n * terms of the MIT Licens...
java
chosen
[ { "from": "system", "value": "Add adapter, get listView. TODO: connect them\n" }, { "from": "human", "value": "package com.beepscore.android.sunshine;\n\nimport android.support.v4.app.Fragment;\nimport android.os.Bundle;\nimport android.view.LayoutInflater;\nimport android.view.View;\nimport and...
java
chosen
[ { "from": "system", "value": "Fix inverted array read check\n" }, { "from": "human", "value": "package us.myles.ViaVersion.api.type.types;\n\nimport com.google.common.base.Preconditions;\nimport io.netty.buffer.ByteBuf;\nimport us.myles.ViaVersion.api.type.Type;\n\npublic class ByteArrayType ext...
java
chosen
[ { "from": "system", "value": "Comment has incorrect indentation level 8, expected is 0, indentation should be the same level as line 11. [CommentsIndentation]\n" }, { "from": "human", "value": "package pl.grzeslowski.jsupla.server.ents;\n\nimport pl.grzeslowski.jsupla.server.SuplaChannel;\n\npub...
java
chosen
[ { "from": "system", "value": "Document timeout exception may be thrown\n" }, { "from": "human", "value": "// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\npackage com.yahoo.vespa.curator.api;\n\nimport com.yahoo.path.Path;\n\nimport java.t...
java
chosen
[ { "from": "system", "value": "Test for character range regex introduced in bfgex 1.1.1\n" }, { "from": "human", "value": "package br.com.six2six.fixturefactory.function;\n\nimport static junit.framework.Assert.assertNotNull;\nimport static junit.framework.Assert.assertTrue;\n\nimport org.junit.T...
java
chosen
[ { "from": "system", "value": "Fix NPE with normal bows.\n" }, { "from": "human", "value": "package io.github.lexware.bukkit.enderbow;\n\nimport org.bukkit.entity.Entity;\nimport org.bukkit.entity.Projectile;\nimport org.bukkit.event.EventHandler;\nimport org.bukkit.event.Listener;\nimport org.bu...
java
chosen
[ { "from": "system", "value": "Move SpecRunnner to extend Runner\n" }, { "from": "human", "value": "package com.xdd;\n\nimport org.junit.runners.BlockJUnit4ClassRunner;\nimport org.junit.runners.model.InitializationError;\n\npublic class SpecRunner extends BlockJUnit4ClassRunner {\n\n public S...
java
chosen
[ { "from": "system", "value": "Stop webview reloading in Find Courses\n" }, { "from": "human", "value": "package org.edx.mobile.view;\n\nimport android.os.Bundle;\nimport android.webkit.WebView;\n\nimport org.edx.mobile.R;\nimport org.edx.mobile.base.FindCoursesBaseActivity;\nimport org.edx.mobil...
java
chosen
[ { "from": "system", "value": "Fix import issue from removing eastereggs" }, { "from": "human", "value": "package com.frc2013.rmr662.main;\n\nimport com.frc2013.rmr662.eastereggs.DanceMode;\nimport com.frc2013.rmr662.system.generic.Robot;\nimport com.frc2013.rmr662.system.generic.RobotMode;\n\npu...
java
chosen
[ { "from": "system", "value": "Fix 'redundant static modifier' warning\n" }, { "from": "human", "value": "/*\n * Copyright (C) 2004 - 2014 Brian McCallister\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the Licens...
java
chosen
[ { "from": "system", "value": "Remove version info from comment.\n\ngit-svn-id: 6eed74fe9a15c8da84b9a8d7f2960c0406113ece@891684 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "human", "value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license...
java
chosen
[ { "from": "system", "value": "Add getByRowkey @ Dao (uncomplete)\n" }, { "from": "human", "value": "package tw.kewang.hbase;\n\npublic class UserDao {\n\n}\n" }, { "from": "gpt", "value": "package tw.kewang.hbase;\n\nimport java.io.IOException;\n\nimport org.apache.hadoop.hbase.clien...
java
chosen
[ { "from": "system", "value": "Fix a race condition with topic model usage of symbols\n" }, { "from": "human", "value": "/*\n * Copyright (C) 2013 salesforce.com, inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with...
java
chosen
[ { "from": "system", "value": "Fix failing tests for Trip value class\n" }, { "from": "human", "value": "package com.google.sps;\n\nimport com.google.sps.data.Trip;\n\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Collections;\n\nimport com.google.sps.data.Location;\n\ni...
java
chosen
[ { "from": "system", "value": "Update test colors to the new system" }, { "from": "human", "value": "package info.u_team.u_team_test.init;\n\nimport java.awt.Color;\n\nimport info.u_team.u_team_test.TestMod;\nimport net.minecraftforge.api.distmarker.Dist;\nimport net.minecraftforge.client.event.C...
java
chosen
[ { "from": "system", "value": "Tidy runner to make consistent" }, { "from": "human", "value": "package org.wmaop.bdd.jbehave;\r\n\r\nimport org.junit.runner.RunWith;\r\n\r\nimport de.codecentric.jbehave.junit.monitoring.JUnitReportingRunner;\r\n\r\n@RunWith(JUnitReportingRunner.class)\r\npublic c...
java
chosen
[ { "from": "system", "value": "Add the transaction mode to the reaction\n" }, { "from": "human", "value": "package org.realityforge.arez.api2;\n\nimport javax.annotation.Nonnull;\nimport javax.annotation.Nullable;\n\npublic class Reaction\n extends Observer\n{\n /**\n * Flag indicating whethe...
java
chosen
[ { "from": "system", "value": "[artf7057]: Enable cloud services by default\n\n* src/java/com/collabnet/svnedge/schema/MS009EnableCloudService.java\n Need to add the row, if it does not exist.\n\n\ngit-svn-id: ec3c21ed833430e32134c61539c75518a6355d4e@2982 03e8f217-bfc6-4b7c-bcb7-0738c91e2c5f\n" }, { ...
java
chosen
[ { "from": "system", "value": "Increase the timeout for Redis connections\n" }, { "from": "human", "value": "package org.icij.extract.cli.factory;\n\nimport org.apache.commons.cli.CommandLine;\n\nimport org.redisson.Config;\n\n/**\n * Factory methods for creating Redis configuration.\n *\n * @aut...
java
chosen
[ { "from": "system", "value": "Fix bug causing app to crash on clicking notification\n" }, { "from": "human", "value": "package com.oxapps.tradenotifications;\n\nimport android.content.BroadcastReceiver;\nimport android.content.Context;\nimport android.content.Intent;\nimport android.content.Shar...
java
chosen
[ { "from": "system", "value": "Enable bootstrap for Parse testing.\n" }, { "from": "human", "value": "// Copyright (c) 2015, Wojciech Adam Koszek <wojciech@koszek.com>\n// All rights reserved.\n\npackage com.barvoy.sensorama;\n\npublic class SRCfg {\n public static final String addDirName = \"...
java
chosen
[ { "from": "system", "value": "Update error text to be more descriptive" }, { "from": "human", "value": "package org.javarosa.xpath.expr;\n\nimport org.javarosa.core.model.condition.EvaluationContext;\nimport org.javarosa.core.model.instance.DataInstance;\nimport org.javarosa.xpath.XPathNodeset;\...
java
chosen
[ { "from": "system", "value": "Validate request body get and set fields\n" }, { "from": "human", "value": "package co.paystack.android.api.request;\n\nimport com.google.gson.annotations.SerializedName;\n\nimport java.io.Serializable;\nimport java.util.HashMap;\n\n/**\n * Created by i on 24/08/201...
java
chosen
[ { "from": "system", "value": "Remove oudated methods due to new forge update" }, { "from": "human", "value": "package info.u_team.u_team_core.util.registry;\n\nimport java.util.function.Supplier;\n\nimport net.minecraft.client.KeyMapping;\nimport net.minecraft.client.gui.screens.MenuScreens;\nim...
java
chosen
[ { "from": "system", "value": "Remove invocation level teardown from FIX tags benchmark\n" }, { "from": "human", "value": "package org.jvirtanen.philadelphia.perf;\n\nimport static java.nio.charset.StandardCharsets.*;\n\nimport java.nio.ByteBuffer;\nimport java.util.concurrent.TimeUnit;\nimport o...
java
chosen
[ { "from": "system", "value": "Add try catch to test\n" }, { "from": "human", "value": "package se.kth.csc.controller;\n\nimport org.junit.Before;\nimport org.junit.Test;\n\nimport se.kth.csc.model.Account;\nimport se.kth.csc.persist.AccountStore;\n\nimport java.security.Principal;\n\nimport stat...
java
chosen
[ { "from": "system", "value": "Add a work-around for poorly constructed \"war:...\" URLs obtained from the security policy file.\n\ngit-svn-id: 79cef5a5a257cc9dbe40a45ac190115b4780e2d0@1763372 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "human", "value": "/*\n * Licensed to the Apache So...
java
chosen
[ { "from": "system", "value": "Make a MethodWriter for a queue obtain a thread safe appender each time.\n" }, { "from": "human", "value": "/*\n * Copyright 2016 higherfrequencytrading.com\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file excep...
java
chosen
[ { "from": "system", "value": "Set log level to info\n\nSet log level to info for presentation\n" }, { "from": "human", "value": "package game;\n\nimport com.badlogic.gdx.Game;\nimport com.badlogic.gdx.Screen;\nimport com.badlogic.gdx.graphics.g2d.SpriteBatch;\nimport game.MenuScreens.MainMenu;\n...
java
chosen
[ { "from": "system", "value": "Fix chunks when using the SQLDroid library\n" }, { "from": "human", "value": "package com.molina.cvmfs.directoryentry;\n\nimport com.molina.cvmfs.directoryentry.exception.ChunkFileDoesNotMatch;\n\n/**\n * @author Jose Molina Colmenero\n * <p/>\n * Wr...
java
chosen
[ { "from": "system", "value": "Use Ninja not NinjaDefault. Log filtered authenticity requests.\n" }, { "from": "human", "value": "package ninja;\n\nimport ninja.utils.NinjaConstant;\n\nimport com.google.inject.Inject;\n\n/**\n * \n * @author svenkubiak\n *\n */\npublic class AuthenticityFilter im...
java
chosen
[ { "from": "system", "value": "Add minimal code necessary to instanciate DependencyManager - will be changed\nagain.\n" }, { "from": "human", "value": "/**\n * This file is part of the Android DependencyManager project hosted at\n * http://code.google.com/p/android-dependencymanager/\n *\n * Copy...
java
chosen
[ { "from": "system", "value": "SimonStewart: Clean up the driver instance once the large tests for the support classes are done\n\nr16955\n" }, { "from": "human", "value": "/*\nCopyright 2011 Selenium committers\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use...
java
chosen
[ { "from": "system", "value": "Use getter/setter. Change field names.\n" }, { "from": "human", "value": "package roart.model;\n\nimport java.util.List;\n\npublic class LearnTestClassify {\n public Object[][] array;\n public Object[] cat;\n public List<List<Object>> listlist;\n public ...
java
chosen
[ { "from": "system", "value": "Add support for accessing the response exception\n" }, { "from": "human", "value": "package org.jboss.shamrock.example.testutils;\n\nimport java.io.InputStream;\n\nimport javax.json.JsonReader;\n\npublic interface URLResponse {\n\n int statusCode();\n\n String...
java
chosen
[ { "from": "system", "value": "Add debug method to Retrofit process service\n" }, { "from": "human", "value": "package util;\n\nimport okhttp3.RequestBody;\nimport okhttp3.ResponseBody;\nimport retrofit2.Call;\nimport retrofit2.http.*;\n\n/**\n * Retrofit interfaces wrapping Filestack API.\n */\n...
java
chosen
[ { "from": "system", "value": "Fix constructor invokation (pre-lollipop support)\n" }, { "from": "human", "value": "package dmax.dialog;\n\nimport android.content.Context;\nimport android.content.res.TypedArray;\nimport android.util.AttributeSet;\nimport android.widget.FrameLayout;\n\n/**\n * Cre...
java
chosen
[ { "from": "system", "value": "Modify solution to fit the exercise specifications more closely\n" }, { "from": "human", "value": "/*\n Suppose you have a lot of files in a directory that contain words\n Exercisei_j, where i and j are digits. Write a program that pads a 0 before\n i if i is a s...
java
chosen
[ { "from": "system", "value": "Update endpoint to remote api\n" }, { "from": "human", "value": "package com.sanchez.fmf.service;\n\nimport com.google.gson.Gson;\nimport com.google.gson.GsonBuilder;\nimport com.squareup.okhttp.OkHttpClient;\n\nimport retrofit.RestAdapter;\nimport retrofit.client.O...
java
chosen
[ { "from": "system", "value": "Add method for human markers\n" }, { "from": "human", "value": "package org.pdxfinder.repositories;\n\nimport org.pdxfinder.dao.Marker;\nimport org.springframework.data.neo4j.annotation.Query;\nimport org.springframework.data.repository.PagingAndSortingRepository;\n...
java
chosen
[ { "from": "system", "value": "Revert \"text conversion changes attempt to fix encoding issue\"\n\nThis reverts commit eadd90fdaf595936744559c78932204b5554621b.\n" }, { "from": "human", "value": "package au.gov.dva.sopapi.sopref.data;\n\nimport com.fasterxml.jackson.core.JsonProcessingException;\...
java
chosen
[ { "from": "system", "value": "Set display home as up\n" }, { "from": "human", "value": "package fr.masciulli.drinks.activity;\n\nimport android.app.Activity;\nimport android.os.Bundle;\nimport android.widget.TextView;\n\nimport fr.masciulli.drinks.R;\n\npublic class DrinkDetailActivity extends A...
java
chosen
[ { "from": "system", "value": "Add some labels to the sections\n" }, { "from": "human", "value": "package basic;\n\npublic class Basic {\n public static void main(String[] args) {\n\n // hello world\n HelloWorld hello = new HelloWorld();\n hello.sayIt();\n\n // ----------------------...
java
chosen
[ { "from": "system", "value": "Allow wildcard star in filter list; \"*.txt\" instead of \".txt\"\n" }, { "from": "human", "value": "package com.samsung.sprc.fileselector;\n\nimport java.io.File;\n\n/**\n * A set of tools for file operations\n */\npublic class FileUtils {\n\n /** Filter which acc...
java
chosen
[ { "from": "system", "value": "Use DKVManager to clean newly added keys.\n" }, { "from": "human", "value": "package water.runner;\n\nimport org.junit.Ignore;\nimport water.*;\n\nimport java.util.Set;\n\n@Ignore\npublic class CleanNewKeysTask extends KeysMRTask<CleanNewKeysTask> {\n\n @Override...
java
chosen
[ { "from": "system", "value": "Add use null instead of savedInstanceState in ReactActivity\n" }, { "from": "human", "value": "package com.msupplymobile;\n\nimport com.facebook.react.ReactActivity;\nimport com.babisoft.ReactNativeLocalization.ReactNativeLocalizationPackage;\nimport io.realm.react....
java
chosen
[ { "from": "system", "value": "Add validation success example in main activity\n" }, { "from": "human", "value": "package br.com.bloder.blorm;\n\nimport android.support.v7.app.AppCompatActivity;\nimport android.os.Bundle;\nimport android.widget.Button;\nimport android.widget.EditText;\n\nimport b...
java
chosen
[ { "from": "system", "value": "Add getter for vowl data\n" }, { "from": "human", "value": "/*\n * VowlData.java\n *\n */\n\npackage de.uni_stuttgart.vis.vowl.owl2vowl.model;\n\nimport de.uni_stuttgart.vis.vowl.owl2vowl.model.nodes.AbstractNode;\nimport de.uni_stuttgart.vis.vowl.owl2vowl.model.nod...
java
chosen
[ { "from": "system", "value": "Make llama command spit out random llamas" }, { "from": "human", "value": "package ml.duncte123.skybot.commands.animals;\n\nimport ml.duncte123.skybot.Command;\nimport ml.duncte123.skybot.utils.AirUtils;\nimport ml.duncte123.skybot.utils.URLConnectionReader;\nimport...
java
chosen
[ { "from": "system", "value": "Use setRawLocation instead of velocity (still bugged)\n" }, { "from": "human", "value": "package net.glowstone.entity.ai;\n\nimport net.glowstone.entity.GlowLivingEntity;\nimport org.bukkit.Location;\nimport org.bukkit.util.Vector;\n\npublic class TransportHelper {\...
java
chosen
[ { "from": "system", "value": "Add Usage string for clear command\n" }, { "from": "human", "value": "package seedu.tache.logic.commands;\n\nimport seedu.tache.model.TaskManager;\n\n/**\n * Clears the task manager.\n */\npublic class ClearCommand extends Command {\n\n public static final String...
java
chosen
[ { "from": "system", "value": "Make EntryMarkleLeafStore cater for empty db\n" }, { "from": "human", "value": "package uk.gov.register.db;\n\nimport com.fasterxml.jackson.core.JsonGenerator;\nimport com.fasterxml.jackson.core.JsonProcessingException;\nimport com.fasterxml.jackson.databind.ObjectM...
java
chosen
[ { "from": "system", "value": "Use String instead of ordinal for AuthorizationType" }, { "from": "human", "value": "package org.ligoj.bootstrap.model.system;\n\nimport javax.persistence.Entity;\nimport javax.persistence.EnumType;\nimport javax.persistence.Enumerated;\nimport javax.persistence.Man...
java
chosen
[ { "from": "system", "value": "Update and improve the successful cases for the Controller." }, { "from": "human", "value": "package cl.fatman.capital.fund;\n\nimport static org.hamcrest.Matchers.*;\n\nimport static org.junit.Assert.*;\nimport org.junit.AfterClass;\nimport org.junit.BeforeClass;\n...
java
chosen
[ { "from": "system", "value": "Test cases for slave version check\n" }, { "from": "human", "value": "package org.jenkins.ci.plugins.jenkinslint.check;\n\nimport hudson.slaves.DumbSlave;\nimport org.junit.Rule;\nimport org.junit.Test;\nimport org.jvnet.hudson.test.JenkinsRule;\n\nimport static org...
java
chosen
[ { "from": "system", "value": "Use map.computeIfAbsent to create the logger when needed\n\n" }, { "from": "human", "value": "/*\n * Copyright (c) 2016 MCPhoton <http://mcphoton.org> and contributors.\n *\n * This file is part of the Photon Server Implementation <https://github.com/mcphoton/Photon...
java
chosen
[ { "from": "system", "value": "Fix ensures DatasetResource.sanitizeDataset method won't remove HTML line break added during metadata parsing\n" }, { "from": "human", "value": "package org.gbif.registry.metadata.parse;\n\nimport java.util.List;\n\nimport com.google.common.base.Joiner;\nimport com....
java
chosen
[ { "from": "system", "value": "Fix in creating class test\n" }, { "from": "human", "value": "package com.syncano.library.documentation;\n\nimport com.google.gson.JsonArray;\nimport com.syncano.library.SyncanoApplicationTestCase;\nimport com.syncano.library.TestSyncanoClass;\nimport com.syncano.li...
java
chosen
[ { "from": "system", "value": "Fix broken key generation code\n" }, { "from": "human", "value": "package org.cru.godtools.s3;\n\nimport com.google.common.base.Strings;\n\n/**\n * Created by ryancarlson on 7/11/15.\n */\npublic class AmazonS3GodToolsConfig\n{\n\tpublic static final String BUCKET_N...
java
chosen
[ { "from": "system", "value": "Fix creation of remote sdk in tests.\n" }, { "from": "human", "value": "/*\n * Copyright 2000-2014 JetBrains s.r.o.\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...
java
chosen
[ { "from": "system", "value": "Add @TypeQueryBean annotation into generation\n" }, { "from": "human", "value": "package org.example.prototype.example;\n\nimport org.example.domain.Customer;\nimport org.example.domain.Order;\nimport org.example.domain.query.QCustomer;\nimport org.example.domain.qu...
java
chosen
[ { "from": "system", "value": "Add test case for MODAT-16\n" }, { "from": "human", "value": "package org.folio.okapi.common;\n\nimport io.vertx.core.json.JsonObject;\nimport org.junit.Test;\nimport static org.junit.Assert.*;\nimport java.util.Base64;\n\npublic class OkapiTokenTest {\n\n @Test\n ...
java
chosen
[ { "from": "system", "value": "Add calculatePersonalAllowance method to pass unit tests\n" }, { "from": "human", "value": "package com.blocksolid.income;\n\n/**\n * Created by Dan Buckland on 16/09/2015.\n */\n\npublic class TaxCalculator {\n\n int MAX_PERSONAL_ALLOWANCE = 1060000; /...
java
chosen
[ { "from": "system", "value": "Use java.lang.Long.MAX_VALUE as best example of loss of precision.\n" }, { "from": "human", "value": "package com.redseal.featureset;\n\npublic class SomeClass extends SomeAbstractClass {\n\n public SomeClass() {\n theInt = 42;\n theLong = 0x0123456...
java
chosen
[ { "from": "system", "value": "Remove traditional way of getting logged in username.\n" }, { "from": "human", "value": "package space.hideaway.controllers;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.stereotype.Controller;\nimport org.springframew...
java
chosen
[ { "from": "system", "value": "Add test for CSVSummariser help" }, { "from": "human", "value": "/**\n * \n */\npackage com.github.ansell.csvsum;\n\nimport static org.junit.Assert.*;\n\nimport org.junit.After;\nimport org.junit.Before;\nimport org.junit.Rule;\nimport org.junit.Test;\nimport org.ju...
java
chosen
[ { "from": "system", "value": "Add more javadoc around the event bus." }, { "from": "human", "value": "/**\n * Copyright (C) 2016 Red Hat, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You ma...
java
chosen
[ { "from": "system", "value": "Test that the VehicleService can be started and bound.\n" }, { "from": "human", "value": "package com.openxc;\n\nimport com.openxc.VehicleService;\n\nimport android.test.ServiceTestCase;\n\nimport android.test.suitebuilder.annotation.SmallTest;\n\npublic class Vehic...
java
chosen
[ { "from": "system", "value": "Add sleep to let consumer set up\n" }, { "from": "human", "value": "package com.gregory.testing.communication;\n\nimport com.gregory.testing.message.TimestampedMessage;\nimport info.batey.kafka.unit.KafkaUnit;\nimport kafka.producer.KeyedMessage;\nimport org.junit.A...
java
chosen
[ { "from": "system", "value": "Refactor SEND_DATA header to DATA_RESPONSE\n" }, { "from": "human", "value": "package me.jesensky.dan.playertracker.net.packets;\n\nimport me.jesensky.dan.playertracker.exceptions.InvalidPacketException;\n\nimport java.util.Arrays;\n\npublic enum PacketType {\n L...
java
chosen