conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Add entity id to sync message.\n" }, { "from": "human", "value": "package aeronicamc.mods.mxtune.caps;\n\nimport aeronicamc.mods.mxtune.managers.PlayIdSupplier;\nimport aeronicamc.mods.mxtune.network.PacketDispatcher;\nimport aeronicamc.mods.mxtune.network.messages....
java
chosen
[ { "from": "system", "value": "Fix a violation of Helper class\n" }, { "from": "human", "value": "/*\n * Copyright (C) 2012 VSPLF Software Foundation (VSF)\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...
java
chosen
[ { "from": "system", "value": "Add aditional information to serialization\n" }, { "from": "human", "value": "package replicant.spy;\n\nimport arez.spy.SerializableEvent;\nimport java.util.Map;\nimport java.util.Objects;\nimport javax.annotation.Nonnull;\nimport org.realityforge.replicant.client.t...
java
chosen
[ { "from": "system", "value": "Add test case for instantiation successfully. Add test for modify();\n" }, { "from": "human", "value": "package uk.ac.ebi.quickgo.rest.period;\n\nimport java.time.DayOfWeek;\nimport java.time.LocalTime;\nimport org.junit.Test;\n\n/**\n * Test instantiation of the Da...
java
chosen
[ { "from": "system", "value": "Set time to utc time\n" }, { "from": "human", "value": "package ch.squix.esp8266.fontconverter.rest.time;\n\nimport java.awt.FontFormatException;\nimport java.io.IOException;\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.Locale;\n\nimport or...
java
chosen
[ { "from": "system", "value": "Add doc for id field for data entity\n" }, { "from": "human", "value": "package com.ushahidi.android.data.entity;\n\nimport com.google.gson.annotations.SerializedName;\n\n/**\n * @author Ushahidi Team <team@ushahidi.com>\n */\npublic abstract class Data {\n\n @Se...
java
chosen
[ { "from": "system", "value": "Set properties attribute to protect visibility.\n" }, { "from": "human", "value": "package com.github.aureliano.achmed.os.service;\n\nimport com.github.aureliano.achmed.resources.properties.ServiceProperties;\n\npublic abstract class BaseService implements IService ...
java
chosen
[ { "from": "system", "value": "Add empty check for observation property\n" }, { "from": "human", "value": "package mil.nga.giat.mage.sdk.datastore.observation;\n\nimport com.j256.ormlite.field.DatabaseField;\nimport com.j256.ormlite.table.DatabaseTable;\n\nimport java.io.Serializable;\n\nimport m...
java
chosen
[ { "from": "system", "value": "[TACHYON-1559] Add additional test for randomness property\n" }, { "from": "human", "value": "/*\n * Licensed to the University of California, Berkeley under one or more contributor license\n * agreements. See the NOTICE file distributed with this work for additiona...
java
chosen
[ { "from": "system", "value": "Fix Okapi-301. null ptr when enabling module without permissionSets\n\nWhen we have a tenantPermissions interface in some other module\n" }, { "from": "human", "value": "package org.folio.okapi.bean;\n\n/**\n * List of Permissions (and permission sets) belonging to ...
java
chosen
[ { "from": "system", "value": "Archive html is unsupported so far\n" }, { "from": "human", "value": "package com.aurea.coverage.parser;\n\nimport com.aurea.coverage.CoverageIndex;\nimport com.aurea.coverage.parser.idea.ArchiveHtmlReportParser;\nimport com.aurea.coverage.parser.idea.HtmlReportPars...
java
chosen
[ { "from": "system", "value": "Improve ASM example with default constructor" }, { "from": "human", "value": "package magic.compiler;\n\nimport org.junit.Test;\nimport org.objectweb.asm.ClassWriter;\nimport org.objectweb.asm.Opcodes;\n\nimport static org.junit.Assert.*;\nimport static org.objectwe...
java
chosen
[ { "from": "system", "value": "Fix so it doesn't create new connection if one has already been created.\n" }, { "from": "human", "value": "package classpackage;\n\nimport java.sql.*;\n\n/**\n * Created by axelkvistad on 3/18/16.\n */\npublic class DBConnector {\n\n private String username = \"...
java
chosen
[ { "from": "system", "value": "Modify sms format in sms receiving event\n\nSMS parsing logic uses wildcard to ignore institute name." }, { "from": "human", "value": "package in.testpress.testpress.events;\n\nimport android.content.BroadcastReceiver;\nimport android.content.Context;\nimport androi...
java
chosen
[ { "from": "system", "value": "Add change type relation for neo4j\n" }, { "from": "human", "value": "package database.neo4j;\n\nimport org.neo4j.graphdb.RelationshipType;\n\n/**\n * JDrive\n * Created by David Maignan <davidmaignan@gmail.com> on 15-08-21.\n */\npublic enum RelTypes implements Rel...
java
chosen
[ { "from": "system", "value": "Use bytes for base-64 encoded data instead of strings\n\ngit-svn-id: bdb5f82b9b83a1400e05d69d262344b821646179@1345 e217846f-e12e-0410-a4e5-89ccaea66ff7\n" }, { "from": "human", "value": "package edu.usc.glidein.util;\n\nimport java.io.IOException;\n\nimport sun.misc...
java
chosen
[ { "from": "system", "value": "Improve transition by using batch.draw directly without creating Sprites" }, { "from": "human", "value": "package com.ychstudio.screens.transitions;\n\nimport com.badlogic.gdx.Gdx;\nimport com.badlogic.gdx.graphics.Texture;\nimport com.badlogic.gdx.graphics.g2d.Spri...
java
chosen
[ { "from": "system", "value": "Change example id to fit github's naming\n" }, { "from": "human", "value": "package io.github.jakriz.derrick.example;\n\nimport io.github.jakriz.derrick.annotation.DerrickInterface;\nimport io.github.jakriz.derrick.annotation.SourceFrom;\n\n@DerrickInterface(baseUrl...
java
chosen
[ { "from": "system", "value": "Implement ValueObject.sameValueAs(), and use that as delegate in equals()" }, { "from": "human", "value": "package se.citerus.dddsample.domain;\n\nimport org.apache.commons.lang.Validate;\nimport org.apache.commons.lang.builder.EqualsBuilder;\nimport org.apache.comm...
java
chosen
[ { "from": "system", "value": "Remove UEnchantment as its not unnessessary for the autosmelt\nenchantment using the deferred register" }, { "from": "human", "value": "package info.u_team.u_team_test.enchantment;\n\nimport info.u_team.u_team_core.enchantment.UEnchantment;\nimport net.minecraft.enc...
java
chosen
[ { "from": "system", "value": "Disable Segment entirely for now\n" }, { "from": "human", "value": "package io.particle.android.sdk;\n\nimport android.app.Application;\n\nimport com.segment.analytics.Analytics;\nimport com.segment.analytics.android.integrations.firebase.FirebaseIntegration;\nimpor...
java
chosen
[ { "from": "system", "value": "Update capability attach event to non-deprecated call\n" }, { "from": "human", "value": "package gr8pefish.openglider.common.event;\n\nimport gr8pefish.openglider.common.capabilities.OpenGliderCapabilities;\nimport gr8pefish.openglider.common.capabilities.PlayerGlid...
java
chosen
[ { "from": "system", "value": "Add a nullable to fluid stack\n\nSigned-off-by: liach <0428df7f4d1579e7bcd23f3c4e7cd8401bcee5a4@users.noreply.github.com>\n" }, { "from": "human", "value": "/*------------------------------------------------------------------------------\n Copyright (c) CovertJaguar...
java
chosen
[ { "from": "system", "value": "Allow `bestMatchVersion` to be null\n\nDA-82\n" }, { "from": "human", "value": "package org.jboss.da.rest.reports.model;\n\nimport org.jboss.da.communication.aprox.model.GAV;\nimport lombok.Getter;\nimport lombok.NonNull;\nimport lombok.RequiredArgsConstructor;\nimp...
java
chosen
[ { "from": "system", "value": "Add javadoc for authentication utility\n" }, { "from": "human", "value": "package util;\n\nimport com.google.appengine.api.users.User;\nimport com.google.appengine.api.users.UserService;\nimport com.google.appengine.api.users.UserServiceFactory;\n\npublic class User...
java
chosen
[ { "from": "system", "value": "Refactor and clean up for demo\n\nMessages may be request scoped" }, { "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...
java
chosen
[ { "from": "system", "value": "Add API access to a Spell's hidden flag\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.Configuratio...
java
chosen
[ { "from": "system", "value": "Add PUT method to retrofit server\n" }, { "from": "human", "value": "package org.commcare.core.network;\n\n\nimport java.util.List;\nimport java.util.Map;\n\nimport okhttp3.MultipartBody;\nimport okhttp3.RequestBody;\nimport okhttp3.ResponseBody;\nimport retrofit2.C...
java
chosen
[ { "from": "system", "value": "Fix crashing when starting service\n" }, { "from": "human", "value": "package me.jaxbot.wear.preconditioningleaf;\n\nimport android.app.Notification;\nimport android.app.NotificationManager;\nimport android.app.Service;\nimport android.content.Intent;\nimport androi...
java
chosen
[ { "from": "system", "value": "Use surefire compatible test case/method logging.\n" }, { "from": "human", "value": "package io.atomix.atomix.testing;\n\nimport java.util.Map;\nimport java.util.concurrent.ConcurrentHashMap;\n\nimport org.slf4j.LoggerFactory;\nimport org.testng.IClass;\nimport org....
java
chosen
[ { "from": "system", "value": "Replace tiles after the world ticked. Might stop a crash with fastcraft\n" }, { "from": "human", "value": "package ganymedes01.etfuturum.core.handlers;\n\nimport ganymedes01.etfuturum.ModBlocks;\n\nimport java.util.List;\n\nimport net.minecraft.block.Block;\nimport ...
java
chosen
[ { "from": "system", "value": "util-core: Add Java friendly API for Stopwatch\n\nProblem\n\nThe `c.t.u.Stopwatch` companion object does not have a Java friendly API.\n\nSolution\n\nIntroduce `c.t.u.Stopwatches` for Java users.\n\nResult\n\nLess `MODULE$s`.\n\nRB_ID=808474\nTBR=true\n" }, { "from": "h...
java
chosen
[ { "from": "system", "value": "Convert to mRem from uSv\n" }, { "from": "human", "value": "package com.navrit.dosenet;\n\npublic class Dosimeter {\n String name;\n double lastDose_uSv;\n String lastTime;\n //double lastDose_mRem;\n //double distance;\n //double lat;\n //doubl...
java
chosen
[ { "from": "system", "value": "Convert to unchecked exception hierarchy" }, { "from": "human", "value": "/*\n * Copyright 2014 Texas A&M Engineering Experiment Station\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": "Tweak to make the new NativeStore indexes property *optional*.\n" }, { "from": "human", "value": "package net.fortytwo.twitlogic.persistence.sail;\n\nimport net.fortytwo.twitlogic.TwitLogic;\nimport net.fortytwo.twitlogic.persistence.SailFactory;\nimport net.fortytw...
java
chosen
[ { "from": "system", "value": "Update url for fetching forecast to fix recent 400 error\n" }, { "from": "human", "value": "package pl.com.chodera.myweather.network;\n\nimport pl.com.chodera.myweather.network.response.WeatherForecastResponse;\nimport pl.com.chodera.myweather.network.response.Weath...
java
chosen
[ { "from": "system", "value": "Adjust Javadoc for the exception.\n" }, { "from": "human", "value": "/*\n * Copyright 2015, 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 t...
java
chosen
[ { "from": "system", "value": "Annotate clean classes as @Nullsafe:: (7/14) libraries/components/litho-core/src/main/java/com/facebook/litho/\n\nReviewed By: pasqualeanatriello\n\nDifferential Revision: D28505831\n\nfbshipit-source-id: e4831c9e49a9c08a495dacb85c3ed82a5ad1b507\n" }, { "from": "human",...
java
chosen
[ { "from": "system", "value": "Document and inherit please :D" }, { "from": "human", "value": "/**\r\n * Get more info at : www.jrebirth.org .\r\n * Copyright JRebirth.org © 2011-2013\r\n * Contact : sebastien.bordes@jrebirth.org\r\n * \r\n * Licensed under the Apache License, Version 2.0 (the \"...
java
chosen
[ { "from": "system", "value": "Fix the name for Bangkok Kitchen\n" }, { "from": "human", "value": "package net.rebworks.lunchy.domain.places;\n\nimport net.rebworks.lunchy.domain.Place;\nimport net.rebworks.lunchy.resources.LunchResource;\n\nimport javax.inject.Inject;\nimport javax.ws.rs.core.Co...
java
chosen
[ { "from": "system", "value": "Remove duplicate default progress condition." }, { "from": "human", "value": "package de.iani.cubequest.quests;\r\n\r\nimport de.iani.cubequest.Reward;\r\nimport de.iani.cubequest.conditions.GameModeCondition;\r\nimport de.iani.cubequest.conditions.ServerFlagConditi...
java
chosen
[ { "from": "system", "value": "Fix crash because of UMA enum with only one value.\n\nUMA code expect enums to have a minimum of 1 and with an enum with only\none value, the maximum would also be 1. It is failing two checks (minimum\nbeing equals to maximum and buckets number being lower than 3).\n\nSetting t...
java
chosen
[ { "from": "system", "value": "Add class comment detailing class is a fake database\n" }, { "from": "human", "value": "package com.cdrussell.caster.rx.casterrxjava;\n\n\nimport android.os.SystemClock;\nimport android.util.Log;\n\nclass Database {\n\n private static final String TAG = Database....
java
chosen
[ { "from": "system", "value": "Change metadata type to map\n" }, { "from": "human", "value": "package com.github.macrodata.skyprint.section;\n\nimport lombok.Setter;\nimport lombok.ToString;\n\nimport java.util.List;\n\nimport static com.github.macrodata.skyprint.section.SectionHelper.*;\n\n@ToSt...
java
chosen
[ { "from": "system", "value": "Fix typo that was causing null pointer exceptions\n" }, { "from": "human", "value": "package org.jenkinsci.plugins.codedx.model;\n\npublic enum StatisticGroup {\n Unspecified(\"Unspecified\"),\n Info(\"Info\"),\n Low(\"Low\"),\n Medium(\"Medium\"),\n ...
java
chosen
[ { "from": "system", "value": "Fix server side to write properly\n" }, { "from": "human", "value": "package cpw.mods.fml.common.launcher;\n\nimport cpw.mods.fml.relauncher.FMLLaunchHandler;\nimport net.minecraft.launchwrapper.LaunchClassLoader;\n\npublic class FMLServerTweaker extends FMLTweaker ...
java
chosen
[ { "from": "system", "value": "Fix crash when the launcher is started without internet access.\n" }, { "from": "human", "value": "package de.craften.craftenlauncher.logic.download;\n\nimport com.google.gson.Gson;\nimport com.google.gson.JsonElement;\nimport com.google.gson.JsonObject;\n\nimport j...
java
chosen
[ { "from": "system", "value": "Change name displayed for desktop streaming device in the media configuration panel.\n" }, { "from": "human", "value": "/*\n * SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.\n *\n * Distributable under LGPL license.\n * See terms of license...
java
chosen
[ { "from": "system", "value": "Simplify loading of Quarkus CLI version\n" }, { "from": "human", "value": "package io.quarkus.cli.core;\n\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.net.URL;\nimport java.nio.file.Files;\nimport java.util.Properties;\n\nimport io.small...
java
chosen
[ { "from": "system", "value": "Remove @author annotation in Javadoc.\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 *\n * @author Shawn Aten (shawn@filestack.com)\n */...
java
chosen
[ { "from": "system", "value": "Add music manager cleanup to the garbage collector\n\n" }, { "from": "human", "value": "package com.avairebot.orion.scheduler;\n\nimport com.avairebot.orion.Orion;\nimport com.avairebot.orion.cache.CacheType;\nimport com.avairebot.orion.cache.adapters.MemoryAdapter;...
java
chosen
[ { "from": "system", "value": "Disable donation lock for now\n" }, { "from": "human", "value": "package com.ichorcommunity.latch.enums;\n\npublic enum LockType {\n /*\n * Accessible by everyone\n */\n PUBLIC,\n\n /*\n * Accessible by the group\n */\n GUILD,\n\n /*\n...
java
chosen
[ { "from": "system", "value": "Remove strange old \"showTaskList\" call now and forever!" }, { "from": "human", "value": "package org.scenarioo.mytinytodo;\n\nimport org.junit.Before;\nimport org.junit.Test;\nimport org.scenarioo.mytinytodo.base.TinyTodoWebTest;\nimport org.scenarioo.mytinytodo.p...
java
chosen
[ { "from": "system", "value": "Reduce default probability of nulls\n" }, { "from": "human", "value": "package com.pholser.junit.quickcheck.internal.generator;\n\nimport java.lang.annotation.Retention;\nimport java.lang.annotation.Target;\n\nimport static java.lang.annotation.ElementType.*;\nimpor...
java
chosen
[ { "from": "system", "value": "Use HttpsURLConnection for Spotify previews\n" }, { "from": "human", "value": "package me.soundlocker.soundlocker;\n\nimport android.os.AsyncTask;\n\nimport org.apache.commons.lang3.ArrayUtils;\nimport java.io.BufferedInputStream;\nimport java.io.ByteArrayOutputStre...
java
chosen
[ { "from": "system", "value": "Make \\r in topics optional\n" }, { "from": "human", "value": "package de.tuberlin.dima.schubotz.fse.mappers;\n\nimport eu.stratosphere.api.java.functions.FlatMapFunction;\nimport eu.stratosphere.util.Collector;\nimport org.apache.commons.logging.Log;\nimport org.ap...
java
chosen
[ { "from": "system", "value": "Select item dont check for operation existance" }, { "from": "human", "value": "package jpaoletti.jpm.core.operations;\n\nimport java.util.List;\nimport jpaoletti.jpm.core.InstanceId;\nimport jpaoletti.jpm.core.PMContext;\nimport jpaoletti.jpm.core.PMException;\n\n/...
java
chosen
[ { "from": "system", "value": "Add test that checks whether the name and the arguments are correct\n" }, { "from": "human", "value": "package ch.hevs.aislab.magpie.test.java;\n\n\nimport org.junit.Test;\n\nimport alice.tuprolog.Term;\nimport ch.hevs.aislab.magpie.event.LogicTupleEvent;\n\nimport ...
java
chosen
[ { "from": "system", "value": "Stop throwing when view definition is created\n" }, { "from": "human", "value": "/**\n * Copyright (C) 2011 - present by OpenGamma Inc. and the OpenGamma group of companies\n * \n * Please see distribution for license.\n */\npackage com.opengamma.engine.view.calc;\n...
java
chosen
[ { "from": "system", "value": "Remove no longer valid comment for AnvilChunkLoaderPending\n\nSigned-off-by: Ross Allan <ca2c77e14df1e7ee673215c1ef658354e220f471@gmail.com>\n" }, { "from": "human", "value": "package me.nallar.patched.storage;\r\n\r\nimport me.nallar.tickthreading.patcher.Declare;\...
java
chosen
[ { "from": "system", "value": "[MIFOS-3150] Add sections to Question Group\n" }, { "from": "human", "value": "/*\n * Copyright (c) 2005-2010 Grameen Foundation USA\n * All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file exce...
java
chosen
[ { "from": "system", "value": "Add new entry in pricetable Print&Copy section.\n" }, { "from": "human", "value": "package io.github.proxyprint.kitchen.controllers.printshops;\n\nimport com.google.gson.Gson;\nimport com.google.gson.GsonBuilder;\nimport com.google.gson.JsonObject;\nimport io.github...
java
chosen
[ { "from": "system", "value": "Add throws definition to 'identityNode'\n\nThis is backward compatible as NodeIdentifierException is an unchecked exception.\n" }, { "from": "human", "value": "// Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project...
java
chosen
[ { "from": "system", "value": "Change signature so sources can be treated as configurable items " }, { "from": "human", "value": "/******************************************************************\n * File: MapSource.java\n * Created by: Dave Reynolds\n * Created on: 13 Dec 2013\n * \n ...
java
chosen
[ { "from": "system", "value": "Add @MappedSuperclass so user information is serialized.\n" }, { "from": "human", "value": "package models;\n\nimport java.util.List;\nimport java.util.UUID;\n\nimport com.fasterxml.jackson.annotation.JsonIgnore;\n\n/**\n * The base class for all of the models used ...
java
chosen
[ { "from": "system", "value": "Use an @EJB annotation to comply with Domgen generated code\n" }, { "from": "human", "value": "package org.realityforge.replicant.server.ee.rest;\n\nimport javax.inject.Inject;\nimport javax.ws.rs.GET;\nimport javax.ws.rs.Path;\nimport javax.ws.rs.Produces;\nimport ...
java
chosen
[ { "from": "system", "value": "Change data parser, need to add unix timestamp support\n" }, { "from": "human", "value": "package com.kilfat.web.model.deserializer;\n\nimport com.fasterxml.jackson.databind.JsonNode;\nimport com.kilfat.config.ServiceConstants;\n\nimport java.text.ParseException;\ni...
java
chosen
[ { "from": "system", "value": "[planning] Update default flaw selection strategy on hierarchical domains: threats first, then unrefined tasks.\n" }, { "from": "human", "value": "package fape.core.planning.search.strategies.flaws;\n\nimport fape.core.planning.planner.Planner;\nimport fape.core.pla...
java
chosen
[ { "from": "system", "value": "Fix fixed version example to handle prefix correctly\n" }, { "from": "human", "value": "package com.example.spring.config;\n\nimport lombok.extern.slf4j.Slf4j;\nimport org.springframework.web.servlet.resource.VersionPathStrategy;\n\n@Slf4j\npublic class MiddleVersio...
java
chosen
[ { "from": "system", "value": "Allow compatibility with RN 0.47" }, { "from": "human", "value": "package com.futurice.rctaudiotoolkit;\n\nimport com.facebook.react.ReactPackage;\nimport com.facebook.react.bridge.JavaScriptModule;\nimport com.facebook.react.bridge.NativeModule;\nimport com.faceboo...
java
chosen
[ { "from": "system", "value": "Fix Parquet encoding for timestamps before epoch\n" }, { "from": "human", "value": "package org.apache.hadoop.hive.ql.io.parquet.timestamp;\n\nimport org.apache.hadoop.hive.common.type.Timestamp;\n\nimport static java.lang.Math.toIntExact;\nimport static java.util.c...
java
chosen
[ { "from": "system", "value": "Make sure you can not instantiate class\n" }, { "from": "human", "value": "package org.realityforge.replicant.shared.transport;\n\npublic class ReplicantContext\n{\n /**\n * Key used to retrieve an opaque identifier for the session from the ReplicantContextHolder...
java
chosen
[ { "from": "system", "value": "Change argument type to \"E extends Entiti\" instead of \"T\"\n\nOPEN - task 32: Add \"Create Item\" functionalities \nhttp://github.com/DevOpsDistilled/OpERP/issues/issue/32" }, { "from": "human", "value": "package devopsdistilled.operp.server.data.service;\n\nimpo...
java
chosen
[ { "from": "system", "value": "Add comment for event state" }, { "from": "human", "value": "/*\n * Copyright 2017 Axway Software\n * \n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a cop...
java
chosen
[ { "from": "system", "value": "Test coverage at 90% for student and professor\n" }, { "from": "human", "value": "package edu.msudenver.cs3250.group6.msubanner.entities;\n\nimport javax.persistence.Column;\nimport javax.persistence.GeneratedValue;\nimport javax.persistence.GenerationType;\nimport ...
java
chosen
[ { "from": "system", "value": "Add javadoc to make clear this is for testing only" }, { "from": "human", "value": "package org.bouncycastle.util.test;\n\nimport java.io.FilterOutputStream;\nimport java.io.IOException;\nimport java.io.OutputStream;\n\npublic class UncloseableOutputStream extends F...
java
chosen
[ { "from": "system", "value": "Remove CONTA_ from BankAccountTyp enum values as requested\n" }, { "from": "human", "value": "package me.pagar;\n\nimport com.google.gson.annotations.SerializedName;\n\npublic enum BankAccountType {\n @SerializedName(\"conta_corrente\")\n CONTA_CORRENTE,\n ...
java
chosen
[ { "from": "system", "value": "Remove Incubating annotation from toolchain package\n\nFixes #15812\n" }, { "from": "human", "value": "/*\n * Copyright 2014 the original author or authors.\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 group for go tasks\n\nSigned-off-by: Bo Zhang <384d347ab7eb84d725fe9c738f01a77b523e2fe5@gmail.com>\n" }, { "from": "human", "value": "/*\n * Copyright 2016-2017 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License...
java
chosen
[ { "from": "system", "value": "Test that correct answer gets a coin\n" }, { "from": "human", "value": "package com.adaptionsoft.games.uglytrivia;\n\nimport org.junit.Test;\n\nimport static org.junit.Assert.fail;\n\npublic class GameCorrectAnswerTest {\n\n @Test\n public void placeMeUnderTes...
java
chosen
[ { "from": "system", "value": "Remove unnecessary throws and imports\n" }, { "from": "human", "value": "package com.janosgyerik.utils.objectstore.api;\n\nimport java.io.IOException;\nimport java.util.Optional;\n\n/**\n * Store key-value pairs in some backend.\n *\n * @param <K> type of keys\n * @...
java
chosen
[ { "from": "system", "value": "Use the latest Stream implementation.\n" }, { "from": "human", "value": "/*******************************************************************************\n * Copyright (C) 2016 Push Technology Ltd.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Licens...
java
chosen
[ { "from": "system", "value": "Remove useless assertion in test\n" }, { "from": "human", "value": "package cgeo.geocaching;\n\nimport static org.assertj.core.api.Assertions.assertThat;\n\nimport cgeo.geocaching.connector.gc.GCConstants;\nimport cgeo.geocaching.maps.mapsforge.MapsforgeMapProvider;...
java
chosen
[ { "from": "system", "value": "Fix small formatting bug in error messages\n" }, { "from": "human", "value": "package semanticanalysis;\n\nimport java.util.*;\n\npublic abstract class ErrorChecker\n{\n private List<String> _errors = new ArrayList<String>();\n\n public List<String> getErrors(...
java
chosen
[ { "from": "system", "value": "Add method to return optional path from absolute path of suite ignore\n" }, { "from": "human", "value": "package de.retest.recheck.configuration;\n\nimport static de.retest.recheck.RecheckProperties.RETEST_FOLDER_NAME;\n\nimport java.nio.file.Path;\nimport java.util...
java
chosen
[ { "from": "system", "value": "Add array constructor to polygon\n" }, { "from": "human", "value": "package me.itszooti.geojson;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class GeoPolygon extends GeoGeometry {\n\n\tprivate List<GeoPosition> exterior;\n\tprivate List<List<Geo...
java
chosen
[ { "from": "system", "value": "Fix Logout Dialog Recreating Home\n\nThe logout dialog was launching a new instance of the home\nactivity every time it was dismissed by touching outside the\ndialog instead of through the proper Cancel button. This\ncommit is just a quick fix to fix that.\n" }, { "from...
java
chosen
[ { "from": "system", "value": "Increase timeout time for \"slow\" systems\n" }, { "from": "human", "value": "package com.torodb.packaging;\n\nimport com.torodb.packaging.config.model.Config;\nimport com.torodb.packaging.config.model.backend.derby.Derby;\nimport com.torodb.packaging.config.model.g...
java
chosen
[ { "from": "system", "value": "Save users and rooms before exiting the Server.\n" }, { "from": "human", "value": "package org.stevewinfield.suja.idk.dedicated.commands.defaults;\n\nimport org.apache.log4j.Logger;\nimport org.stevewinfield.suja.idk.Bootloader;\nimport org.stevewinfield.suja.idk.de...
java
chosen
[ { "from": "system", "value": "Add a getter to the id\n" }, { "from": "human", "value": "package fr.unice.polytech.al.trafficlight.utils.enums;\n\n/**\n * Created by nathael on 27/10/16.\n */\npublic class TrafficLightId {\n private final String id;\n\n public TrafficLightId(String id) {\n ...
java
chosen
[ { "from": "system", "value": "Fix isBuildable() in buildable repository.\n" }, { "from": "human", "value": "/*\n * Copyright 2015 The original authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the Lice...
java
chosen
[ { "from": "system", "value": "Exclude /actuator/health from the authenticated resources\n" }, { "from": "human", "value": "package com.rbmhtechnology.apidocserver.security;\n\nimport org.mitre.openid.connect.client.OIDCAuthenticationFilter;\nimport org.springframework.context.annotation.Bean;\ni...
java
chosen
[ { "from": "system", "value": "Add selection option for instances of CommandHandlers" }, { "from": "human", "value": "package org.jeecqrs.commands.registry;\n\nimport java.util.Iterator;\nimport java.util.logging.Logger;\nimport javax.annotation.PostConstruct;\nimport javax.enterprise.inject.Inst...
java
chosen
[ { "from": "system", "value": "Add comment about work to be completed\n" }, { "from": "human", "value": "/*\n * Copyright 2016 Timothy Brooks\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may ...
java
chosen
[ { "from": "system", "value": "Move from using Log4j to Simple Logging Facade For Java (SLF4J)" }, { "from": "human", "value": "package uk.ac.ebi.quickgo.indexer;\n\nimport java.text.DateFormat;\nimport java.text.SimpleDateFormat;\nimport java.util.Calendar;\n\nimport org.springframework.context....
java
chosen
[ { "from": "system", "value": "Update docs to be less incorrect\n" }, { "from": "human", "value": "package org.realityforge.replicant.client.gwt;\n\nimport dagger.Module;\nimport dagger.Provides;\nimport javax.annotation.Nonnull;\nimport javax.inject.Singleton;\nimport org.realityforge.replicant....
java
chosen
[ { "from": "system", "value": "Remove superfluous noise from the log.\n" }, { "from": "human", "value": "/* $This file is distributed under the terms of the license in /doc/license.txt$ */\n\npackage edu.cornell.mannlib.vitro.webapp.web.templatemodels.searchresult;\n\nimport org.apache.commons.lo...
java
chosen
[ { "from": "system", "value": "Fix NASDAQ MoldUDP64 version number\n" }, { "from": "human", "value": "/**\n * An implementation of the NASDAQ MoldUDP64 1.0 protocol.\n *\n * <p>The implementation is based on the Java NIO API.</p>\n *\n * <p>The underlying socket channels can be either blocking or...
java
chosen
[ { "from": "system", "value": "Fix incorrect name of start command callback\n" }, { "from": "human", "value": "/**\n*\tNotificationService.java\n*\n*\t@author Johan\n*/\n\npackage se.chalmers.watchme.notifications;\n\nimport java.util.Calendar;\n\nimport android.app.Service;\nimport android.conte...
java
chosen
[ { "from": "system", "value": "Check no of args in comp primitives\n" }, { "from": "human", "value": "package com.jedrzejewski.slisp.interpreter.primitives;\n\nimport com.jedrzejewski.slisp.lispobjects.LispObject;\nimport com.jedrzejewski.slisp.lispobjects.Num;\nimport java.util.List;\n\npublic a...
java
chosen