conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Fix bug with new players not properly spawning at exact world spawn\n" }, { "from": "human", "value": "package net.simpvp.Misc;\n\nimport org.bukkit.entity.Player;\nimport org.bukkit.event.EventHandler;\nimport org.bukkit.event.EventPriority;\nimport org.bukkit.even...
java
chosen
[ { "from": "system", "value": "Add missing file from merge\n" }, { "from": "human", "value": "package com.moac.android.opensecretsanta.util;\n\nimport com.moac.android.opensecretsanta.database.DatabaseManager;\nimport com.moac.android.opensecretsanta.model.ContactMode;\nimport com.moac.android.op...
java
chosen
[ { "from": "system", "value": "Add login detail filling after previous logout.\n" }, { "from": "human", "value": "package com.mithrilclient.module;\n\nimport com.mithrilclient.config.ConfigManager;\nimport com.mithrilclient.reflection.ReflectionHooks;\n\npublic final class LoginDetailsModule exte...
java
chosen
[ { "from": "system", "value": "Remove line breaks from method signatures\n" }, { "from": "human", "value": "package heroku.template.controller;\r\n\r\nimport heroku.template.model.Person;\r\nimport heroku.template.service.PersonService;\r\n\r\nimport java.util.Map;\r\n\r\n\r\nimport org.springfra...
java
chosen
[ { "from": "system", "value": "Remove irrelevant documentation from MopPositionUpdateEvent\n" }, { "from": "human", "value": "package org.apollo.game.model.event.impl;\n\nimport org.apollo.game.model.Position;\nimport org.apollo.game.model.entity.Mob;\nimport org.apollo.game.model.event.Event;\n\...
java
chosen
[ { "from": "system", "value": "Update documentation of testutils method\n" }, { "from": "human", "value": "package com.bignerdranch.expandablerecyclerview;\n\nimport android.database.Observable;\nimport android.support.v7.widget.RecyclerView;\n\nimport java.lang.reflect.Field;\nimport java.util.A...
java
chosen
[ { "from": "system", "value": "Add commas to JSON object list\n\nnow only the first opening \"[\" and the last closing \"]\" is missing.\n" }, { "from": "human", "value": "package com.formulasearchengine.mathosphere.mlp;\n\nimport com.formulasearchengine.mathosphere.mlp.cli.TagsCommandConfig;\nim...
java
chosen
[ { "from": "system", "value": "Add SQL error message to log\n" }, { "from": "human", "value": "package com.ksoichiro.task.aspect;\n\nimport lombok.extern.slf4j.Slf4j;\nimport org.aspectj.lang.ProceedingJoinPoint;\nimport org.aspectj.lang.annotation.Around;\nimport org.aspectj.lang.annotation.Aspe...
java
chosen
[ { "from": "system", "value": "Test generating a secret that can be unpacked with the correct URL.\n\nissue #2\n" }, { "from": "human", "value": "package umm3601.digitalDisplayGarden.Authentication;\n\n\nimport org.junit.Before;\nimport org.junit.Test;\n\nimport java.security.NoSuchAlgorithmExcep...
java
chosen
[ { "from": "system", "value": "Make process incoming shares return processed share ids.\n" }, { "from": "human", "value": "package com.kryptnostic.sharing.v1;\n\nimport java.io.IOException;\nimport java.util.Set;\nimport java.util.UUID;\n\nimport com.google.common.base.Optional;\nimport com.krypt...
java
chosen
[ { "from": "system", "value": "Set skipJavaLangImports flag to true" }, { "from": "human", "value": "package pl.openrest.generator.commons.type;\n\nimport java.io.File;\nimport java.io.IOException;\n\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\n\nimport com.squareup.javapoet.JavaFi...
java
chosen
[ { "from": "system", "value": "Fix error in UCB1 algorithm\n" }, { "from": "human", "value": "package com.danisola.bandit;\n\npublic class Ucb1Algorithm extends AbstractBanditAlgorithm {\n\n public Ucb1Algorithm(int numArms, UpdateStrategy updateStrategy) {\n super(numArms, updateStrate...
java
chosen
[ { "from": "system", "value": "Add BoshCommandStemcellsProvider properly to Bosh language server" }, { "from": "human", "value": "/*******************************************************************************\n * Copyright (c) 2016-2017 Pivotal, Inc.\n * All rights reserved. This program and th...
java
chosen
[ { "from": "system", "value": "Implement method that checks whether the given character is correct\n" }, { "from": "human", "value": "package com.nigorojr.typebest;\n\nimport java.util.ArrayList;\n\nimport javax.swing.JPanel;\n\npublic class Word extends JPanel {\n private ArrayList<Letter> le...
java
chosen
[ { "from": "system", "value": "Add functions for the area of a square and a rectangle\n" }, { "from": "human", "value": "package ru.sfwt.mt.sandbox;\n\npublic class MyFirstProgram {\n\n public static void main(String[] args) {\n System.out.println(\"Hell, world!\");\n\n }\n}" }, { "f...
java
chosen
[ { "from": "system", "value": "Add field to indicate whether or not the powerup should be listed in menu.\n" }, { "from": "human", "value": "package models;\n\nimport play.data.validation.Constraints;\nimport play.db.ebean.Model;\n\nimport javax.persistence.CascadeType;\nimport javax.persistence....
java
chosen
[ { "from": "system", "value": "Allow quoted and not quotes strings.\n" }, { "from": "human", "value": "package org.jboss.as.modcluster;\n\nimport java.util.Iterator;\nimport java.util.List;\n\nimport org.jboss.as.controller.OperationFailedException;\nimport org.jboss.dmr.ModelNode;\nimport org.jb...
java
chosen
[ { "from": "system", "value": "Fix typo @JsonProperty(state) -> @JsonProperty(status)\n" }, { "from": "human", "value": "package com.cisco.trex.stateless.model;\n\nimport com.fasterxml.jackson.annotation.JsonIgnoreProperties;\nimport com.fasterxml.jackson.annotation.JsonProperty;\n\n@JsonIgnorePr...
java
chosen
[ { "from": "system", "value": "Fix showing UUIDs instead of player names in the grave inventory\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....
java
chosen
[ { "from": "system", "value": "Allow posting collections with more than 256 items, Luke!\n" }, { "from": "human", "value": "package nl.vpro.poel.controller;\n\nimport nl.vpro.poel.UserUtil;\nimport nl.vpro.poel.domain.CurrentUser;\nimport nl.vpro.poel.service.MessageService;\nimport org.springfra...
java
chosen
[ { "from": "system", "value": "Rewrite toString() to avoid confusion with edges in \"dot\" foramt" }, { "from": "human", "value": "package com.github.ferstl.depgraph;\n\nimport java.util.Objects;\n\nimport org.apache.maven.shared.dependency.graph.DependencyNode;\n\nclass Edge {\n final Dependenc...
java
chosen
[ { "from": "system", "value": "Change port number in hawtio-embedded test from 8080 to avoid potential port conflicts\n" }, { "from": "human", "value": "package io.hawt.embedded;\n\nimport org.apache.http.HttpResponse;\nimport org.apache.http.client.fluent.Request;\nimport org.junit.Test;\n\nimpo...
java
chosen
[ { "from": "system", "value": "Fix linkAssembler being sent in responses\n" }, { "from": "human", "value": "package com.sandjelkovic.dispatchd.gateway.api.resource;\n\nimport com.sandjelkovic.dispatchd.gateway.api.link.PageLinksAssembler;\nimport lombok.EqualsAndHashCode;\nimport lombok.Getter;\n...
java
chosen
[ { "from": "system", "value": "[sonar] Fix issue with class just calling super (just inherit it)\n" }, { "from": "human", "value": "/*\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a co...
java
chosen
[ { "from": "system", "value": "Add states to front intake\n" }, { "from": "human", "value": "package org.texastorque.texastorque20145.subsystem;\n\nimport edu.wpi.first.wpilibj.Victor;\nimport org.texastorque.texastorque20145.constants.Constants;\nimport org.texastorque.texastorque20145.torquelib...
java
chosen
[ { "from": "system", "value": "Replace the system out with a proper logger in the test mod" }, { "from": "human", "value": "package info.u_team.u_team_test;\n\nimport info.u_team.u_team_core.util.verify.JarSignVerifier;\nimport info.u_team.u_team_test.init.*;\nimport net.minecraftforge.api.distma...
java
chosen
[ { "from": "system", "value": "Convert legacy property \"mode\" to \"phase\" in OBR & LocalOBR plugins\n" }, { "from": "human", "value": "package aQute.lib.deployer.obr;\n\nimport java.util.*;\n\nimport aQute.bnd.service.*;\nimport aQute.lib.deployer.repository.*;\n\n@SuppressWarnings(\"deprecati...
java
chosen
[ { "from": "system", "value": "Create an array for number words 1-10\n" }, { "from": "human", "value": "package com.example.android.miwok;\n\nimport android.os.Bundle;\nimport android.support.v7.app.AppCompatActivity;\nimport android.support.v7.widget.Toolbar;\n\npublic class NumbersActivity exte...
java
chosen
[ { "from": "system", "value": "Add menu item handler to base activity to launch vocab sheet\n" }, { "from": "human", "value": "package com.hewgill.android.nzsldict;\n\nimport android.content.Context;\nimport androidx.appcompat.app.AppCompatActivity;\nimport androidx.appcompat.widget.Toolbar;\nimp...
java
chosen
[ { "from": "system", "value": "Fix the arrow being shaven on top\n" }, { "from": "human", "value": "package com.aragaer.jtt.graphics;\n\nimport android.content.Context;\nimport android.graphics.Canvas;\nimport android.graphics.Path;\nimport android.view.View;\n\npublic class ArrowView extends Vie...
java
chosen
[ { "from": "system", "value": "Update skeleton for new updog\n" }, { "from": "human", "value": "package org.pdxfinder.dataloaders.updog;\n\nimport com.ibm.icu.impl.LocaleDisplayNamesImpl;\nimport org.hibernate.sql.Template;\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\n\nimport java...
java
chosen
[ { "from": "system", "value": "Make parse method of NumberFormat always return a BigDecimal\n" }, { "from": "human", "value": "package org.jpos.util;\n\nimport com.vaadin.data.converter.StringToBigDecimalConverter;\n\nimport java.text.NumberFormat;\nimport java.util.Locale;\n\npublic class Amount...
java
chosen
[ { "from": "system", "value": "Change gossip to send objects immediately without waiting for more\n" }, { "from": "human", "value": "package network.thunder.core.communication.processor.interfaces;\n\nimport network.thunder.core.communication.processor.Processor;\nimport network.thunder.core.comm...
java
chosen
[ { "from": "system", "value": "Fix fish max lifespan being 300 ticks instead of 300 minutes.\n" }, { "from": "human", "value": "package mariculture.fishery.fish.dna;\n\nimport mariculture.api.fishery.fish.FishDNA;\nimport mariculture.api.fishery.fish.FishSpecies;\nimport mariculture.core.config.F...
java
chosen
[ { "from": "system", "value": "Make sure that this works as a server-side only mod (no client needed)\n" }, { "from": "human", "value": "package mods.smbarbour.strangetoolkit;\n\nimport cpw.mods.fml.common.Loader;\nimport cpw.mods.fml.common.Mod;\nimport cpw.mods.fml.common.event.FMLServerStartin...
java
chosen
[ { "from": "system", "value": "Add a high range, precision histogram for tests\n" }, { "from": "human", "value": "/*\n * Copyright (C) 2015 higherfrequencytrading.com\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser...
java
chosen
[ { "from": "system", "value": "Add the annotation enum so we can filter by reference values." }, { "from": "human", "value": "package uk.ac.ebi.quickgo.solr.query.model.annotation.enums;\n\n/**\n * Enum for Solr Annotation fields\n * @author cbonill\n *\n */\npublic enum AnnotationField {\n\n\tID...
java
chosen
[ { "from": "system", "value": "Use a non standard port for Spring tests to avoid clashes\n" }, { "from": "human", "value": "/*\n * Copyright (c) 2005-2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.\n *\n * WSO2 Inc. licenses this file to you under the Apache License,\n * Version 2.0...
java
chosen
[ { "from": "system", "value": "Add in useful error msg on linkage errors.\n" }, { "from": "human", "value": "package com.hypirion.beckon;\n\nclass SignalHandlerNotFoundException extends Exception {\n \n}\n" }, { "from": "gpt", "value": "package com.hypirion.beckon;\n\nclass SignalH...
java
chosen
[ { "from": "system", "value": "Change incremental action graph experiment to 50/50\n\nSummary: 90/10 looks ok so far. Increasing back to 50/50. If I need to fiddle with these values again, I'll just make `RandomizedTrial` configurable via `.buckconfig` (not sure why it wasn't originally done that way).\n\nRe...
java
chosen
[ { "from": "system", "value": "Increase ArtifactBuild for Mock Test\n" }, { "from": "human", "value": "package com.modesteam.urutau.builder;\n\nimport com.modesteam.urutau.model.Artifact;\nimport com.modesteam.urutau.model.Epic;\nimport com.modesteam.urutau.model.Feature;\nimport com.modesteam.ur...
java
chosen
[ { "from": "system", "value": "Fix bug with Overleaf commits swapping name and email.\n" }, { "from": "human", "value": "package uk.ac.ic.wlgitbridge.writelatex.api.request.getsavedvers;\n\nimport uk.ac.ic.wlgitbridge.util.Util;\n\n/**\n * Created by Winston on 06/11/14.\n */\npublic class Snapsh...
java
chosen
[ { "from": "system", "value": "Add updateTaskImplementationCode() method to TaskImplService\n" }, { "from": "human", "value": "\npackage pingis.services;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.stereotype.Service;\nimport pingis.entities.TaskI...
java
chosen
[ { "from": "system", "value": "Include message to disabled tests (not available on Travis)\n" }, { "from": "human", "value": "/*\n * (C) Copyright 2017 Boni Garcia (http://bonigarcia.github.io/)\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this fil...
java
chosen
[ { "from": "system", "value": "Modify libCategories.so path to use hdfs.\n\ngit-svn-id: 41b0c0219f7416f0d477a2a4ae2b791f31fdedae@100 72e40b64-262a-4186-abad-0444e9ae7036\n" }, { "from": "human", "value": "package es.tid.ps.dynamicprofile.dictionary;\n\n/**\n * Class that defines the native method...
java
chosen
[ { "from": "system", "value": "Remove progress bar if element if not loading anymore\n\ngit-svn-id: 4e353c0944fe8da334633afc35765ef362dec675@4260 b4e469a2-07ce-4b26-9273-4d7d95a670c7\n" }, { "from": "human", "value": "package org.helioviewer.plugins.eveplugin.view.linedataselector.cellrenderer;\n...
java
chosen
[ { "from": "system", "value": "Fix broken composite build sample\n" }, { "from": "human", "value": "package org.sample;\n\nimport org.gradle.api.Plugin;\nimport org.gradle.api.Project;\n\nimport java.util.LinkedHashMap;\n\npublic class GreetingPlugin implements Plugin<Project> {\n\n public voi...
java
chosen
[ { "from": "system", "value": "Enable mongoDB test cases to run on CI\n" }, { "from": "human", "value": "package com.codingchili.core.storage;\n\nimport io.vertx.ext.unit.TestContext;\nimport io.vertx.ext.unit.junit.VertxUnitRunner;\nimport org.junit.*;\nimport org.junit.runner.RunWith;\n\nimport...
java
chosen
[ { "from": "system", "value": "Update api url to new address\n" }, { "from": "human", "value": "package io.khe.kenthackenough;\n\n\n/**\n * Simple class to hold config options for the rest of the application\n */\npublic class Config{\n // the url of the api\n public static final String API...
java
chosen
[ { "from": "system", "value": "Fix competely invalid value specialization in integer literal matching\n\nFixes #124.\n" }, { "from": "human", "value": "package org.metaborg.meta.lang.dynsem.interpreter.nodes.matching;\n\nimport com.oracle.truffle.api.dsl.Specialization;\nimport com.oracle.truffle...
java
chosen
[ { "from": "system", "value": "Remove extra line already handle by the route xml\n" }, { "from": "human", "value": "package io.openex.email.attachment;\n\nimport org.apache.camel.Exchange;\nimport org.apache.camel.impl.DefaultAttachment;\n\nimport javax.mail.util.ByteArrayDataSource;\nimport java...
java
chosen
[ { "from": "system", "value": "Resolve a warning in eclipse" }, { "from": "human", "value": "/**\n * Copyright 2010-2014 Ralph Schaer <ralphschaer@gmail.com>\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the Licen...
java
chosen
[ { "from": "system", "value": "Fix RAT check broken by a1a68ed0c4b722\n" }, { "from": "human", "value": "package com.cloud.utils;\n\nimport org.junit.Assert;\nimport org.junit.Test;\n\npublic class TernaryTest {\n @Test\n public void testEquals() {\n Assert.assertEquals(new Ternary<S...
java
chosen
[ { "from": "system", "value": "Tag output directory for better input/output handling\n" }, { "from": "human", "value": "/**\n * Copyright © 2013 Commerce Technologies, LLC.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance...
java
chosen
[ { "from": "system", "value": "Include timestamp in version when building SNAPSHOTS\n" }, { "from": "human", "value": "package com.jamierf.dropwizard.config;\n\nimport org.apache.maven.execution.MavenSession;\nimport org.apache.maven.plugins.annotations.Parameter;\nimport org.apache.maven.project...
java
chosen
[ { "from": "system", "value": "Check for null values when setting primitives.\n" }, { "from": "human", "value": "package com.datasift.client.pylon;\n\nimport com.fasterxml.jackson.annotation.JsonInclude;\nimport com.fasterxml.jackson.annotation.JsonProperty;\n\npublic class PylonParametersData {\...
java
chosen
[ { "from": "system", "value": "Add the super constructor for the PermissionException.\n" }, { "from": "human", "value": "/*\n * #%L\n * Course Signup API\n * %%\n * Copyright (C) 2010 - 2013 University of Oxford\n * %%\n * Licensed under the Educational Community License, Version 2.0 (the \"Licen...
java
chosen
[ { "from": "system", "value": "Enable strict mode in debug.\n" }, { "from": "human", "value": "package org.willemsens.player;\n\nimport android.app.Application;\nimport com.crashlytics.android.Crashlytics;\nimport com.crashlytics.android.answers.Answers;\nimport com.crashlytics.android.core.Crash...
java
chosen
[ { "from": "system", "value": "Add a threshold to avoid gratuitous movements from small touches\n" }, { "from": "human", "value": "package br.odb.angstronme;\n\n/**\n * Created by monty on 6/6/15.\n */\npublic class SimpleGestureDetector {\n\n public Vec2 acc = new Vec2(0, 0);\n public Vec2...
java
chosen
[ { "from": "system", "value": "Fix TwoDimTable property names in schema.\n" }, { "from": "human", "value": "package water.api;\n\nimport water.util.TwoDimTable;\n\npublic class TwoDimTableV1 extends Schema<TwoDimTable, TwoDimTableV1> {\n @API(help=\"description\", direction=API.Direction.OUTPUT)...
java
chosen
[ { "from": "system", "value": "Revert back to custom class servo\n" }, { "from": "human", "value": "package com.rmrobotics.library;\n\nimport com.qualcomm.robotcore.hardware.Servo;\nimport com.qualcomm.robotcore.util.Range;\n\n/**\n * Created by RM Robotics on 11/23/2015.\n */\n\npublic class rSe...
java
chosen
[ { "from": "system", "value": "Hide unnecessary elements in main when account \"exists\"\n\nExists check is a stub for now\n" }, { "from": "human", "value": "package edu.erau.hackriddle.cryptapic;\n\nimport android.content.Intent;\nimport android.support.v7.app.AppCompatActivity;\nimport android....
java
chosen
[ { "from": "system", "value": "Fix polymorphic type handling when loading test data." }, { "from": "human", "value": "package poussecafe.test;\n\nimport com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility;\nimport com.fasterxml.jackson.annotation.PropertyAccessor;\nimport com.fasterxml.jac...
java
chosen
[ { "from": "system", "value": "Add Spell context to initialize call\n" }, { "from": "human", "value": "package com.elmakers.mine.bukkit.api.action;\n\nimport com.elmakers.mine.bukkit.api.magic.Mage;\nimport com.elmakers.mine.bukkit.api.spell.Spell;\nimport com.elmakers.mine.bukkit.api.spell.Spell...
java
chosen
[ { "from": "system", "value": "Add Repeater Test to Core Suite\n" }, { "from": "human", "value": "package jpower.core.test;\n\nimport org.junit.runner.RunWith;\nimport org.junit.runners.Suite;\n\n@RunWith(Suite.class)\n@Suite.SuiteClasses({\n AlphabetTest.class,\n ConditionTest.clas...
java
chosen
[ { "from": "system", "value": "Add logic to shorten url\n" }, { "from": "human", "value": "package com.naba.url.shortner;\n\nimport org.springframework.stereotype.Controller;\nimport org.springframework.ui.Model;\nimport org.springframework.web.bind.annotation.ModelAttribute;\nimport org.springfr...
java
chosen
[ { "from": "system", "value": "Fix section label issue in settings\n" }, { "from": "human", "value": "package com.omralcorut.guardiannews;\n\nimport android.content.SharedPreferences;\nimport android.preference.Preference;\nimport android.preference.PreferenceFragment;\nimport android.preference....
java
chosen
[ { "from": "system", "value": "Use \"clientInstance\" instead of just \"forager\"\n" }, { "from": "human", "value": "package forager.client;\n\nimport java.io.IOException;\nimport java.util.logging.Logger;\n\n/**\n * Monitors currently running tasks and decides when new tasks should be\n * reques...
java
chosen
[ { "from": "system", "value": "Fix weather changing to soon after Rain/Drought ceremony" }, { "from": "human", "value": "package totemic_commons.pokefenn.ceremony;\n\nimport net.minecraft.util.BlockPos;\nimport net.minecraft.world.World;\nimport totemic_commons.pokefenn.api.ceremony.Ceremony;\nim...
java
chosen
[ { "from": "system", "value": "Add entries for SRP key exchange algorithms\n" }, { "from": "human", "value": "package org.bouncycastle.crypto.tls;\n\nimport java.io.IOException;\n\n/**\n * A generic class for ciphersuites in TLS 1.0.\n */\npublic abstract class TlsCipherSuite\n{\n\n protected ...
java
chosen
[ { "from": "system", "value": "Add check whether test runs under maven\n" }, { "from": "human", "value": "package to.etc.testutil;\n\nimport java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\n/**\n * @author <a href=\"mailto:jal@etc.to\">Frits Jalvingh</a>\n * Created on 15-04-22.\n */...
java
chosen
[ { "from": "system", "value": "Fix console appended to work correctly.\n" }, { "from": "human", "value": "package com.vaguehope.mikuru;\n\nimport android.widget.ScrollView;\nimport android.widget.TextView;\n\npublic class ConsoleAppender {\n//\t- - - - - - - - - - - - - - - - - - - - - - - - - - ...
java
chosen
[ { "from": "system", "value": "Correct from activity to Fragment.\n\nOriginally FragmentActivity.\n" }, { "from": "human", "value": "package com.femalehewmon.nagem.ui;\n\nimport android.support.v4.app.FragmentActivity;\n\npublic class MainFragment extends FragmentActivity {\n\n\t\n}\n" }, { ...
java
chosen
[ { "from": "system", "value": "Enable logger only if system property is activated.\n" }, { "from": "human", "value": "package com.athaydes.jgrab.log;\n\n/**\n * Internal logger.\n */\npublic class Logger {\n\n private static final String XXX = \"--------------\";\n\n public static void log(...
java
chosen
[ { "from": "system", "value": "Change assigned cursor to be final.\n" }, { "from": "human", "value": "package com.venmo.cursor;\n\nimport java.util.Iterator;\n\n/**\n * Default iterator for all {@link IterableCursor}s.\n */\npublic class CursorIterator<T> implements Iterator<T> {\n\n private I...
java
chosen
[ { "from": "system", "value": "Clean up left over imports.\n" }, { "from": "human", "value": "package se.kodsnack;\n\nimport android.app.Activity;\nimport android.content.ComponentName;\nimport android.content.Context;\nimport android.content.Intent;\nimport android.content.ServiceConnection;\nim...
java
chosen
[ { "from": "system", "value": "Change url of localhost to 10.0.2.2\n" }, { "from": "human", "value": "package in.co.nebulax.magpie;\n\npublic class Constants {\n\n\t// url to get data JSON\n\tpublic static String url = \"\";\n\t\n\t//JSON Node Names\n\tpublic static String TAG_DATA = \"data\";\n\...
java
chosen
[ { "from": "system", "value": "Change default timeout value to 2 minutes. JM-1002\n\ngit-svn-id: 4206c2c2bb40b5782672a0d03c2c381094954de9@7557 b35dd754-fafc-0310-a699-88a17e54d16e\n" }, { "from": "human", "value": "/**\r\n * $Revision: $\r\n * $Date: $\r\n *\r\n * Copyright (C) 2007 Jive Software...
java
chosen
[ { "from": "system", "value": "Fix major bug which returned the wrong partition metadata\n" }, { "from": "human", "value": "package com.blackberry.kafka.lowoverhead.meta;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class Topic {\n String name;\n List<Partition> partitions =...
java
chosen
[ { "from": "system", "value": "Add tets for thread name" }, { "from": "human", "value": "package com.github.ferstl;\n\nimport java.util.Arrays;\nimport java.util.concurrent.ForkJoinPool;\nimport java.util.concurrent.TimeUnit;\nimport org.junit.After;\nimport org.junit.Before;\nimport org.junit.Te...
java
chosen
[ { "from": "system", "value": "Use AppCompat instead of ActionBar\n" }, { "from": "human", "value": "package org.apache.taverna.mobile.activities;\n\nimport org.apache.taverna.mobile.R;\nimport org.apache.taverna.mobile.fragments.workflowdetails.RunFragment;\n\nimport android.os.Bundle;\nimport a...
java
chosen
[ { "from": "system", "value": "Fix occasional crash when dismissing BrowseFilter progress dialog\n" }, { "from": "human", "value": "package com.gh4a.resolver;\n\nimport android.content.Intent;\nimport android.support.v4.app.FragmentActivity;\n\nimport com.gh4a.BackgroundTask;\nimport com.gh4a.uti...
java
chosen
[ { "from": "system", "value": "Remove stale MD5 reference in mt digest help\n\nSpecific digest function is not relevant.\n\nCloses #10517.\n\nPiperOrigin-RevId: 287990399\n" }, { "from": "human", "value": "// Copyright 2016 The Bazel Authors. All rights reserved.\n//\n// Licensed under the Apache...
java
chosen
[ { "from": "system", "value": "Fix Client crash on server\n\n" }, { "from": "human", "value": "package com.leviathanstudio.craftstudio.network;\n\nimport java.util.List;\nimport java.util.UUID;\n\nimport com.leviathanstudio.craftstudio.common.animation.IAnimated;\n\nimport net.minecraft.entity.En...
java
chosen
[ { "from": "system", "value": "Fix grammar in a Javadoc\n" }, { "from": "human", "value": "/*\n * Copyright 2017, TeamDev Ltd. All rights reserved.\n *\n * Redistribution and use in source and/or binary forms, with or without\n * modification, must retain the above copyright notice and the follow...
java
chosen
[ { "from": "system", "value": "DPRO-2637: Set shorted TTL for editorial content cache\n" }, { "from": "human", "value": "package org.ambraproject.wombat.config;\n\nimport javax.cache.expiry.Duration;\nimport java.util.concurrent.TimeUnit;\n\npublic enum RemoteCacheSpace {\n ARTICLE_API(\"article...
java
chosen
[ { "from": "system", "value": "Allow undefined endpoints by default\n\n\ngit-svn-id: 9326b53cbc4a8f4c3d02979b62b178127d5150fe@1033 c7d0bf07-ec0d-0410-b2cc-d48fa9be22ba\n" }, { "from": "human", "value": "package org.codehaus.xfire.spring.config;\n\nimport java.util.List;\n\nimport javax.xml.namesp...
java
chosen
[ { "from": "system", "value": "Fix Android package name to make it build\n" }, { "from": "human", "value": "package com.jumunordost;\n\nimport android.app.Application;\n\nimport com.facebook.react.ReactApplication;\nimport com.facebook.react.ReactNativeHost;\nimport com.facebook.react.ReactPackag...
java
chosen
[ { "from": "system", "value": "Test the NoREC and TLP oracles of DuckDB\n" }, { "from": "human", "value": "package sqlancer;\n\nimport static org.junit.jupiter.api.Assertions.assertEquals;\n\nimport org.junit.jupiter.api.Test;\n\npublic class TestMain {\n\n @Test\n public void testSQLite() ...
java
chosen
[ { "from": "system", "value": "Remove useless javadoc that produces warning." }, { "from": "human", "value": "package com.netcetera.trema.eclipse.exporting;\n\nimport java.io.Writer;\nimport org.eclipse.core.runtime.IProgressMonitor;\n\nimport com.netcetera.trema.core.exporting.TremaCSVPrinter;\n...
java
chosen
[ { "from": "system", "value": "Fix use correct AdMob app id\n" }, { "from": "human", "value": "package com.sakurafish.parrot.callconfirm;\n\nimport android.app.Application;\nimport android.content.Context;\n\nimport com.crashlytics.android.Crashlytics;\nimport com.google.android.gms.ads.MobileAds...
java
chosen
[ { "from": "system", "value": "Use variadic args in main method\n" }, { "from": "human", "value": "/*\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\n * FOR A PARTICULAR PURPOSE ...
java
chosen
[ { "from": "system", "value": "Fix test 2_get_file to use try with resources\n" }, { "from": "human", "value": "package getFile;\n\nimport java.io.BufferedReader;\nimport java.io.BufferedWriter;\nimport java.io.File;\nimport java.io.FileWriter;\nimport java.io.IOException;\nimport java.io.FileNot...
java
chosen
[ { "from": "system", "value": "gluster: Return UNKNOWN status for GlusterTaskStatus\n\nIf the string value passed to GlusterTaskStatus is not\none of the enum options return UNKNOWN as the option\nvalue.\nFixes 2 issues reported by coverity scan when converting\nvdsm return value\nGlusterAsyncTaskStatus.from...
java
chosen
[ { "from": "system", "value": "Fix typo in virtual marker kind\n" }, { "from": "human", "value": "/*\n# Licensed Materials - Property of IBM\n# Copyright IBM Corp. 2016 \n */\npackage com.ibm.streamsx.topology.builder;\n\npublic enum BVirtualMarker {\n \n UNION(\"$Union$\"),\n PARALLEL(...
java
chosen
[ { "from": "system", "value": "Use shorter flavor names for cxx rules\n\nSummary:Instead of using file path in the cxx rule flavor, only use its\nlast element. This will shorten the directory names used for\nrules' outputs, which are currently gettting very close to the\nfilesystem limit. This should be safe...
java
chosen
[ { "from": "system", "value": "Throw IllegalStateException if the Metric service is not available\n" }, { "from": "human", "value": "/*\n * Copyright 2014 WSO2 Inc. (http://wso2.org)\n * \n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in...
java
chosen
[ { "from": "system", "value": "Remove Head/Tail conflict in form.java\n" }, { "from": "human", "value": "package com.google.sps.data;\nimport java.io.*;\nimport com.google.appengine.api.datastore.Entity;\n\npublic class Form {\n\n private String editURL;\n private String URL;\n private S...
java
chosen
[ { "from": "system", "value": "Fix Android tests affected by changes in stubs\n" }, { "from": "human", "value": "package com.example.myapp;\n\nimport android.app.Activity;\n\npublic class IntentSources extends Activity {\n\n\tprivate static void sink(Object o) {}\n\n\tpublic void test() throws ja...
java
chosen
[ { "from": "system", "value": "Handle null credentials object in the comparison.\n" }, { "from": "human", "value": "package com.topsy.jmxproxy.jmx;\n\nimport com.fasterxml.jackson.annotation.JsonProperty;\n\nimport org.hibernate.validator.constraints.NotEmpty;\n\npublic class ConnectionCredential...
java
chosen