conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Clean up possible World memory leak in storing locations.\n" }, { "from": "human", "value": "package us.crast.mondochest.persist;\n\nimport org.bukkit.Location;\nimport org.bukkit.entity.Player;\n\npublic class PlayerState {\n\tprivate Location lastClickedMaster;\n\...
java
chosen
[ { "from": "system", "value": "Write strings directly and don't convert them to UTF-8" }, { "from": "human", "value": "/*\n ** 2013 July 01\n **\n ** The author disclaims copyright to this source code. In place of\n ** a legal notice, here is a blessing:\n ** May you do good and not evil.\n *...
java
chosen
[ { "from": "system", "value": "Enable auditing of entities (DEV-15)\n" }, { "from": "human", "value": "package sg.ncl.testbed_interface;\n\nimport org.springframework.context.annotation.Configuration;\nimport org.springframework.data.jpa.repository.config.EnableJpaRepositories;\nimport org.spring...
java
chosen
[ { "from": "system", "value": "Make class serializable to make testing easier\n" }, { "from": "human", "value": "package org.realityforge.replicant.server.transport;\n\nimport com.fasterxml.jackson.annotation.JsonAutoDetect;\nimport com.fasterxml.jackson.annotation.JsonTypeName;\n\n@JsonAutoDetec...
java
chosen
[ { "from": "system", "value": "Fix react native support for v0.47 on the proper file\n\n" }, { "from": "human", "value": "package com.attehuhtakangas.navigationbar;\n\nimport com.facebook.react.ReactPackage;\nimport com.facebook.react.bridge.JavaScriptModule;\nimport com.facebook.react.bridge.Nat...
java
chosen
[ { "from": "system", "value": "Refactor magic strings into a constant.\n\ngit-svn-id: de5ce936019686f47409c93bcc5e202a9739563b@1594249 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "human", "value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor ...
java
chosen
[ { "from": "system", "value": "Extend AppCompatEditText instead of system EditText\n" }, { "from": "human", "value": "package com.alexstyl.specialdates.search;\n\nimport android.content.Context;\nimport android.util.AttributeSet;\nimport android.view.KeyEvent;\nimport android.widget.EditText;\n\n...
java
chosen
[ { "from": "system", "value": "Add a lil comment explaining takeWhen\n" }, { "from": "human", "value": "package com.kickstarter.libs;\n\nimport android.util.Pair;\n\nimport rx.Observable;\n\npublic class RxUtils {\n private RxUtils() {\n throw new AssertionError();\n }\n\n public static <F,...
java
chosen
[ { "from": "system", "value": "Add a help for cpplint.\n" }, { "from": "human", "value": "package edu.hm.hafner.analysis.registry;\n\nimport edu.hm.hafner.analysis.IssueParser;\nimport edu.hm.hafner.analysis.parser.CppLintParser;\n\n/**\n * A descriptor for Cpplint.\n *\n * @author Lorenz Munsch\...
java
chosen
[ { "from": "system", "value": "KCIAC-332: Implement COI event type of \"IACUC Protocol\"\n" }, { "from": "human", "value": "/*\r\n * Copyright 2005-2010 The Kuali Foundation\r\n * \r\n * Licensed under the Educational Community License, Version 2.0 (the \"License\");\r\n * you may not use this fi...
java
chosen
[ { "from": "system", "value": "FIx exception in dialog tab completion\n" }, { "from": "human", "value": "package vg.civcraft.mc.civmodcore.chatDialog;\n\nimport org.bukkit.entity.Player;\nimport org.bukkit.event.EventHandler;\nimport org.bukkit.event.EventPriority;\nimport org.bukkit.event.Listen...
java
chosen
[ { "from": "system", "value": "Revert \"Delay IntervalLiveData refresh to allow the previous result to be dispatched on active even when it's already expired\"\n\nThis reverts commit 2f166836\n" }, { "from": "human", "value": "package be.digitalia.fosdem.livedata;\n\nimport android.os.Handler;\ni...
java
chosen
[ { "from": "system", "value": "Hide custom recipes in recipe book\n" }, { "from": "human", "value": "package net.silentchaos512.lib.recipe;\n\nimport net.minecraft.inventory.InventoryCrafting;\nimport net.minecraft.item.ItemStack;\nimport net.minecraft.item.crafting.IRecipe;\nimport net.minecraft...
java
chosen
[ { "from": "system", "value": "Change for fixing session ID fixation problem.\n" }, { "from": "human", "value": "package gov.nih.nci.nbia.beans.basket;\r\nimport gov.nih.nci.nbia.zip.ZipManager;\r\n\r\nimport com.icesoft.faces.async.render.SessionRenderer;\r\n\r\n/**\r\n * This listens to zip pro...
java
chosen
[ { "from": "system", "value": "Add getter in annotable class" }, { "from": "human", "value": "package gr.iti.mklab.simmo.core;\n\nimport org.mongodb.morphia.annotations.Embedded;\n\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.stream.Collectors;\n\n/**\n * An Annotatable ...
java
chosen
[ { "from": "system", "value": "Add showcase flag in networkset." }, { "from": "human", "value": "package org.ndexbio.model.object;\n\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.UUID;\n\nimport com.fasterxml.jackson.annotation.JsonIgnoreProperties;\n\n@JsonIgnoreProperti...
java
chosen
[ { "from": "system", "value": "Add test for simultaneous Fizz and Buzz" }, { "from": "human", "value": "package remonsinnema.blog.fizzbuzz;\r\n\r\nimport static org.junit.Assert.assertEquals;\r\n\r\nimport org.junit.Test;\r\n\r\n\r\npublic class FizzBuzzTest {\r\n\r\n private final FizzBuzz fizz...
java
chosen
[ { "from": "system", "value": "Update login controller for register\n" }, { "from": "human", "value": "package com.huixinpn.dionysus.controller;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.stereotype.Controller;\nimport org.springframework.web.bin...
java
chosen
[ { "from": "system", "value": "Fix backward compatibility for RN < 0.47\n" }, { "from": "human", "value": "/**\n * Copyright (c) 2017-present, Stanislav Doskalenko - doskalenko.s@gmail.com\n * All rights reserved.\n *\n * This source code is licensed under the MIT-style license found in the\n * L...
java
chosen
[ { "from": "system", "value": "Add staging profile to digidoc\n" }, { "from": "human", "value": "package ee.tuleva.onboarding.config;\n\nimport static org.digidoc4j.Configuration.Mode.PROD;\nimport static org.digidoc4j.Configuration.Mode.TEST;\n\nimport org.springframework.boot.autoconfigure.cond...
java
chosen
[ { "from": "system", "value": "Change ping interval to 25 seconds.\n" }, { "from": "human", "value": "package io.bekti.anubis.server.kafka;\n\nimport org.eclipse.jetty.websocket.api.Session;\nimport org.json.JSONObject;\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\n\nimport java.io....
java
chosen
[ { "from": "system", "value": "Allow operation failures to be specialized.\n" }, { "from": "human", "value": "/*\n * Copyright 2015 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the...
java
chosen
[ { "from": "system", "value": "Modify so that sort order of literals doesn't matter." }, { "from": "human", "value": "/*\n * Copyright (c) 2017 Robert 'Bobby' Zenz\n * \n * All rights reserved. This program and the accompanying materials\n * are made available under the terms of the Eclipse Publi...
java
chosen
[ { "from": "system", "value": "Add missing ImageDetailFragment declaration for dependency injection.\n" }, { "from": "human", "value": "package com.antew.redditinpictures;\n\nimport com.antew.redditinpictures.library.RedditInPicturesApplication;\nimport com.antew.redditinpictures.ui.ImageDetailAc...
java
chosen
[ { "from": "system", "value": "Handle that we could use the object version of Boolean and it could be null\n" }, { "from": "human", "value": "/*\n * Copyright (c) 2015. Troels Liebe Bentsen <tlb@nversion.dk>\n * Licensed under the MIT license (LICENSE.txt)\n */\n\npackage dk.nversion.copybook.con...
java
chosen
[ { "from": "system", "value": "Use kapuadb schema by default\n\nSigned-off-by: Elbert Evangelista <6a308fc4e2672d8df3711d12a762bf46d651708f@eurotech.com>\n" }, { "from": "human", "value": "/*******************************************************************************\n * Copyright (c) 2011, 201...
java
chosen
[ { "from": "human", "value": "Put the foolish thing back.\n\nStupid mercurial.\n" }, { "from": "gpt", "value": "/*\n * BSD License (http://lemurproject.org/galago-license)\n */\npackage org.lemurproject.galago.core.tools.apps;\n\nimport java.io.PrintStream;\nimport org.lemurproject.galago.core.i...
java
chosen
[ { "from": "system", "value": "Set the fork-join pool globally to prevent DOS-vulnerability\n" }, { "from": "human", "value": "package voot.oauth;\n\nimport java.util.Collection;\nimport java.util.List;\nimport java.util.concurrent.ExecutionException;\nimport java.util.concurrent.ForkJoinPool;\ni...
java
chosen
[ { "from": "system", "value": "Use Stream instead of StringUtils\n" }, { "from": "human", "value": "package org.kepennar.aproc.complicatebusiness;\n\nimport static java.util.Comparator.naturalOrder;\nimport static java.util.stream.Collectors.joining;\nimport static java.util.stream.Collectors.toL...
java
chosen
[ { "from": "system", "value": "Revert page filtering by namespace.\n" }, { "from": "human", "value": "package wikipedia;\n\nimport org.junit.Test;\nimport org.xml.sax.InputSource;\nimport wikipedia.schemas.PageMetadata;\nimport wikipedia.schemas.RevisionContent;\n\nimport java.io.InputStream;\nim...
java
chosen
[ { "from": "system", "value": "Fix imports in pingpong demo\n" }, { "from": "human", "value": "package pingpong.x.cpp;\n\nimport hu.elte.txtuml.api.deployment.Configuration;\nimport hu.elte.txtuml.api.deployment.Group;\nimport hu.elte.txtuml.api.deployment.Runtime;\nimport hu.elte.txtuml.api.depl...
java
chosen
[ { "from": "system", "value": "Return a sample result, so can test methods that perform a sample\n\ngit-svn-id: https://svn.apache.org/repos/asf/jakarta/jmeter/trunk@907681 13f79535-47bb-0310-9956-ffa450edef68\n\nFormer-commit-id: d8d665d37c5505160ac98d296685f055e1255d8e" }, { "from": "human", "v...
java
chosen
[ { "from": "system", "value": "Add a constant for default JavaFX style (Modena at this time) for FXMLStylesheet\n" }, { "from": "human", "value": "package moe.tristan.easyfxml.api;\n\nimport moe.tristan.easyfxml.util.Resources;\nimport moe.tristan.easyfxml.util.Stages;\nimport io.vavr.control.Try...
java
chosen
[ { "from": "system", "value": "Check generated build program is compilable\n" }, { "from": "human", "value": "/*\n * Bach - Java Shell Builder\n * Copyright (C) 2020 Christian Stein\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in c...
java
chosen
[ { "from": "system", "value": "Comment fix and removed trim() because it is really not this method's\njob." }, { "from": "human", "value": "package com.untamedears.mustercull;\r\n\r\n/**\r\n * The method used to cull the mobs\r\n * @author Celdecea\r\n */\r\nenum CullType {\r\n\t\r\n\t/**\r\n\t *...
java
chosen
[ { "from": "system", "value": "Remove (c) symbol in favour of word \"Copyright\"." }, { "from": "human", "value": "package org.reldb.dbrowser.ui.version;\n\npublic class Version {\n\tpublic static String getVersion() {\n\t\treturn \"User interface version 3.00\";\n\t}\n\n\tpublic static String ge...
java
chosen
[ { "from": "system", "value": "Add name and constructor to class type\n" }, { "from": "human", "value": "package org.hummingbirdlang.types;\n\npublic class ClassType extends CompositeType {\n private Type superClass;\n}\n" }, { "from": "gpt", "value": "package org.hummingbirdlang.typ...
java
chosen
[ { "from": "system", "value": "Add full syntax for SHOW TABLES to help\n" }, { "from": "human", "value": "package com.facebook.presto.cli;\n\npublic final class Help\n{\n private Help() {}\n\n public static String getHelpText()\n {\n return \"\" +\n \"Supported comm...
java
chosen
[ { "from": "system", "value": "Add fields for targets and actions\n" }, { "from": "human", "value": "package net.alcuria.umbracraft.definitions.skill;\n\nimport net.alcuria.umbracraft.annotations.Tooltip;\nimport net.alcuria.umbracraft.definitions.Definition;\n\nimport com.badlogic.gdx.utils.Arra...
java
chosen
[ { "from": "system", "value": "Remove newline from end of file." }, { "from": "human", "value": "/**\r\n * Package containing all command related classes and files.\r\n */\r\npackage com.gmail.jameshealey1994.simplepvptoggle.commands;\r\n" }, { "from": "gpt", "value": "/**\r\n * Packa...
java
chosen
[ { "from": "system", "value": "Fix NPE in uncaught exception handler, and add info on thread\n\nSigned-off-by: Stefan Marr <46f1a0bd5592a2f9244ca321b129902a06b53e03@stefan-marr.de>\n" }, { "from": "human", "value": "package som;\n\nimport java.lang.Thread.UncaughtExceptionHandler;\n\nimport tools...
java
chosen
[ { "from": "system", "value": "Remove accidental extra line - shouldn't have been part of last commit\n" }, { "from": "human", "value": "package nallar.tickthreading.mod;\n\nimport me.nallar.modpatcher.ModPatcher;\nimport nallar.tickthreading.log.Log;\nimport nallar.tickthreading.util.PropertyUti...
java
chosen
[ { "from": "system", "value": "Remove view model in presenter\n" }, { "from": "human", "value": "package lib.morkim.mfw.ui;\n\nimport lib.morkim.mfw.usecase.UseCase;\nimport lib.morkim.mfw.usecase.UseCaseResult;\nimport lib.morkim.mfw.usecase.UseCaseProgress;\n\npublic class EmptyPresenter extend...
java
chosen
[ { "from": "system", "value": "Add link to MPX4250 spec sheet\n" }, { "from": "human", "value": "package com.easternedgerobotics.rov.io;\n\nimport com.easternedgerobotics.rov.io.pololu.PololuMaestroInputChannel;\n\npublic class MPX4250AP {\n /**\n * Scalar value for calculating pressure fr...
java
chosen
[ { "from": "system", "value": "Add support for the 'queue' parameter\n" }, { "from": "human", "value": "package com.suse.salt.netapi.calls.modules;\n\nimport com.suse.salt.netapi.calls.LocalCall;\n\nimport com.google.gson.reflect.TypeToken;\n\nimport java.util.Arrays;\nimport java.util.LinkedHash...
java
chosen
[ { "from": "system", "value": "Adjust writerIndex to highest value if putting a single character using array-index notation.\n" }, { "from": "human", "value": "/*\n * Copyright 2014 Red Hat, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this fi...
java
chosen
[ { "from": "system", "value": "Fix pressurised water render in copper tanks.\n" }, { "from": "human", "value": "package mariculture.core.render;\n\nimport mariculture.core.tile.TileTankBlock;\nimport net.minecraftforge.fluids.FluidStack;\n\npublic class RenderCopperTank extends RenderBase {\n ...
java
chosen
[ { "from": "system", "value": "Replace missing Mongo to MongoClient\n" }, { "from": "human", "value": "package org.jongo.util;\n\nimport org.junit.rules.TestRule;\nimport org.junit.runner.Description;\nimport org.junit.runners.model.Statement;\n\nimport com.mongodb.DB;\nimport com.mongodb.Mongo;\...
java
chosen
[ { "from": "system", "value": "Fix \"XEP-0323: IoT - Sensor Data\" namespace\n" }, { "from": "human", "value": "/**\n *\n * Copyright 2016 Florian Schmaus\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": "Fix object parent is object\n" }, { "from": "human", "value": "package org.cafebabepy.runtime.module.builtins;\n\nimport org.cafebabepy.annotation.DefineCafeBabePyType;\nimport org.cafebabepy.runtime.Python;\nimport org.cafebabepy.runtime.module.AbstractCafeBabePyTy...
java
chosen
[ { "from": "system", "value": "Fix problems on Android 6.0\n" }, { "from": "human", "value": "package com.blstream.studybox.api;\n\nimport retrofit.RequestInterceptor;\nimport retrofit.RestAdapter;\n\npublic class RestClient {\n\n private static final String URL = \"http://78.133.154.70:2000/\...
java
chosen
[ { "from": "system", "value": "Add handy main() method for hashing a given value" }, { "from": "human", "value": "/*\n * Copyright Myrrix Ltd\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": "Store relative paths when creating a backup in a .zip file.\n\nsvn path=/trunk/eXist/; revision=6315\n" }, { "from": "human", "value": "package org.exist.backup;\r\n\r\nimport java.io.*;\r\nimport java.util.zip.ZipOutputStream;\r\nimport java.util.zip.ZipEntry;\r\n\...
java
chosen
[ { "from": "system", "value": "Add the new modid field in the client construct bus register" }, { "from": "human", "value": "package info.u_team.u_team_test.init;\n\nimport info.u_team.u_team_core.api.construct.*;\nimport info.u_team.u_team_core.util.registry.BusRegister;\n\n@Construct(client = t...
java
chosen
[ { "from": "system", "value": "Use NotificationManager.cancelAll() to cancel all app notifications\n" }, { "from": "human", "value": "package com.red.alert.ui.notifications;\n\nimport android.app.NotificationManager;\nimport android.content.Context;\n\nimport com.red.alert.R;\nimport com.red.aler...
java
chosen
[ { "from": "system", "value": "Remove JDK 7 only constructor\n\nSigned-off-by: Ross Allan <ca2c77e14df1e7ee673215c1ef658354e220f471@gmail.com>\n" }, { "from": "human", "value": "package me.nallar.exception;\r\n\r\n/**\r\n * Thrown via Thread.stop() to try to resolve a deadlock, should be caught i...
java
chosen
[ { "from": "system", "value": "Fix possible memory leak in feed.\n\nI've observed a memory leak (on API 17) apparently stemming from the new\nfunctionality to fill in the bookmark icon when the featured article is\ndetected to be part of a reading list.\n\nThis seems to be caused by us passing an anonymous i...
java
chosen
[ { "from": "system", "value": "Change ParticipantDAO back to id\n" }, { "from": "human", "value": "package edu.virginia.psyc.pi.persistence;\n\nimport com.fasterxml.jackson.annotation.JsonFormat;\nimport com.fasterxml.jackson.annotation.JsonProperty;\nimport edu.virginia.psyc.pi.domain.DoNotDelet...
java
chosen
[ { "from": "system", "value": "Use composed annotation for readability\n" }, { "from": "human", "value": "package ee.tuleva.onboarding.auth.session;\n\nimport java.io.Serial;\nimport java.io.Serializable;\nimport java.util.HashMap;\nimport java.util.Map;\nimport java.util.Optional;\nimport org.sp...
java
chosen
[ { "from": "system", "value": "Fix android build for RN 0.47\n\ncreateJSModules is no longer present. In order to ensure backwards\ncompatibility, just remove the Override tag for now.\n" }, { "from": "human", "value": "/**\n * Twilio Video for React Native.\n *\n * Authors:\n * Ralph Pina <ra...
java
chosen
[ { "from": "system", "value": "Add additional test for About activity\n" }, { "from": "human", "value": "package com.cwainner.chris.recipecentral;\n\nimport android.os.Build;\nimport android.widget.TextView;\n\nimport org.junit.Before;\nimport org.junit.Test;\nimport org.junit.runner.RunWith;\nim...
java
chosen
[ { "from": "system", "value": "Make a test more robust\n" }, { "from": "human", "value": "package water;\n\nimport org.junit.BeforeClass;\nimport org.junit.Test;\n\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.net.URL;\nimport java.util.ArrayList;\n\nimport static org.jun...
java
chosen
[ { "from": "system", "value": "Adjust visibility for javadoc compliance\n" }, { "from": "human", "value": "package net.liftweb.actor;\n\nimport java.lang.annotation.*;\n\n/**\n * The internal Java class where the annotations for\n * JavaActor are stored\n */\nclass JavaActorBase {\n /**\n ...
java
chosen
[ { "from": "system", "value": "Comment addition and interface change from Vector to AbstractList" }, { "from": "human", "value": "import java.util.Vector;\n\n/**\n * \n */\n\n/**\n * An interface for password store objects.\n * \n * @author Miltiadis Allamanis\n * \n */\npublic interface IPasswor...
java
chosen
[ { "from": "system", "value": "[selenium] ENHANCE - improve Close Window icon\n" }, { "from": "human", "value": "package org.museautomation.selenium.steps;\n\nimport org.museautomation.core.*;\nimport org.museautomation.core.context.*;\nimport org.museautomation.core.resource.*;\nimport org.musea...
java
chosen
[ { "from": "system", "value": "Change order of \"position\" and \"queueName\" to correspond to QueuePositionCreatedInAccount.\n" }, { "from": "human", "value": "package se.kth.csc.payload.message;\n\nimport com.fasterxml.jackson.annotation.JsonTypeInfo;\nimport se.kth.csc.model.QueuePosition;\nim...
java
chosen
[ { "from": "system", "value": "Update the description so docs can be inherited by implementers\n" }, { "from": "human", "value": "package org.realityforge.arez;\n\n/**\n * Interface that allows caller to release any resources associated with element.\n * It is safe to invoke {@link #dispose()} mu...
java
chosen
[ { "from": "system", "value": "Use VARCHAR instead of LOB\n" }, { "from": "human", "value": "package org.fedoraproject.javadeptools.model;\n\nimport javax.persistence.Entity;\nimport javax.persistence.GeneratedValue;\nimport javax.persistence.Id;\nimport javax.persistence.JoinColumn;\nimport java...
java
chosen
[ { "from": "system", "value": "Simplify code by passing an Observer\n" }, { "from": "human", "value": "package arez.doc.examples.at_observe2;\n\nimport arez.Observer;\nimport arez.SafeProcedure;\nimport arez.annotations.Action;\nimport arez.annotations.ArezComponent;\nimport arez.annotations.Casc...
java
chosen
[ { "from": "system", "value": "Add agent methods to get supply chain structure\n" }, { "from": "human", "value": "package cas.ypsiliform.mediator.negotiation;\n\nimport java.util.ArrayList;\n\nimport cas.ypsiliform.mediator.async.Thenable;\nimport cas.ypsiliform.messages.AgentResponse;\n\npublic ...
java
chosen
[ { "from": "system", "value": "Update serialVersionUID for updated public API\n" }, { "from": "human", "value": "package com.macasaet.fernet;\n\n/**\n * This exception indicates that a Fernet token could not be created because one or more of the parameters was invalid.\n *\n * <p>Copyright &copy;...
java
chosen
[ { "from": "system", "value": "Put field to top of class\n" }, { "from": "human", "value": "package de.flux.playground.deckcompare.importer;\n\npublic class ImportException extends RuntimeException {\n\n public ImportException(String string, Throwable cause) {\n super(string, cause);\n ...
java
chosen
[ { "from": "system", "value": "Rename get -> one and asList -> all\n" }, { "from": "human", "value": "package me.hfox.morphix.query;\n\nimport java.util.Iterator;\nimport java.util.List;\n\n/**\n * Created by Harry on 28/11/2017.\n *\n * An iterable set of results returned by a query object\n */\...
java
chosen
[ { "from": "system", "value": "Remove references to deprecated Java6Assertions class\n" }, { "from": "human", "value": "/*\n * Copyright DataStax, 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 ...
java
chosen
[ { "from": "system", "value": "PIG-4268: Enable unit test \"TestStreamingUDF\" in spark (liyunzhang via praveen)\n\ngit-svn-id: d317905e1b1233abb7022f5914f79c3119e04b87@1645891 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "human", "value": "package org.apache.pig.test;\n\nimport java.io.F...
java
chosen
[ { "from": "system", "value": "Remove code to run server (it should be run on a separate terminal tab).\n" }, { "from": "human", "value": "import codeu.chat.ServerMain;\nimport codeu.chat.common.User;\nimport models.DBUtility;\nimport models.Models;\nimport play.GlobalSettings;\nimport play.Appli...
java
chosen
[ { "from": "system", "value": "Validate logging works through slf4j\n" }, { "from": "human", "value": "package org.conjugates.analyzer.endpoints.info;\n\nimport org.conjugates.analyzer.services.properties.AnalyzerProperties;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport ...
java
chosen
[ { "from": "system", "value": "Fix references of nxp to imx6ul\n\nBug: 32830902\nChange-Id: Ib24db99577b2b11de3500c1e63840563c2321c05\n" }, { "from": "human", "value": "package com.google.samples.button;\n\nimport android.os.Build;\n\n@SuppressWarnings(\"WeakerAccess\")\npublic class BoardDefault...
java
chosen
[ { "from": "system", "value": "Remove a todo which is already resolved\n" }, { "from": "human", "value": "/*\n * Copyright 2020, TeamDev. All rights reserved.\n *\n * Redistribution and use in source and/or binary forms, with or without\n * modification, must retain the above copyright notice and...
java
chosen
[ { "from": "system", "value": "Fix constant to be static\n" }, { "from": "human", "value": "package konstructs.api.messages;\n\n/**\n * GlobalConfig is a message that informs the plugin of the current values of\n * the global server config. These values are used by the server to manage\n * overal...
java
chosen
[ { "from": "system", "value": "Add toString override for records\n" }, { "from": "human", "value": "package roycurtis.signshopexport.json;\n\nimport org.bukkit.inventory.ItemStack;\n\n/** Represents a JSON record for Gson serialization */\npublic class Record\n{\n // Location\n public Strin...
java
chosen
[ { "from": "system", "value": "Add Windows to *nix path conversion\n\nMake external traversal detection comply with external static folder as *nix path" }, { "from": "human", "value": "package spark.staticfiles;\r\n\r\nimport static spark.utils.StringUtils.removeLeadingAndTrailingSlashesFrom;\r\n...
java
chosen
[ { "from": "system", "value": "Add listener for mission status\n" }, { "from": "human", "value": "package com.ezardlabs.lostsector.missions;\n\nimport com.ezardlabs.lostsector.objects.enemies.Enemy;\n\npublic abstract class Mission {\n\tprotected int enemiesKilled = 0;\n\tprivate long missionStar...
java
chosen
[ { "from": "system", "value": "Add Javadoc for one more class\n" }, { "from": "human", "value": "package com.sleekbyte.tailor.utils;\n\n/**\n * TODO!!!\n */\npublic class CharFormatUtil {\n\n private static final String ALPHANUMERIC_REGEX = \"^[a-zA-Z0-9]*$\";\n\n public static boolean isUp...
java
chosen
[ { "from": "system", "value": "Fix compilation error with Kotlin 1.0\n" }, { "from": "human", "value": "package org.jetbrains.kotlin.android.xmlconverter;\n\nimport org.junit.Rule;\nimport org.junit.rules.TestName;\nimport sun.plugin.dom.exception.InvalidStateException;\nimport java.io.File;\n\ni...
java
chosen
[ { "from": "system", "value": "Test Class Update: Change UIScope => VaadinUIScope\n" }, { "from": "human", "value": "package org.vaadin.spring.mvp.autowired;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.vaadin.spring.UIScope;\nimport org.vaadin.spring.annotation.V...
java
chosen
[ { "from": "system", "value": "Replace TestNG @BeforeClass with @BeforeMethod annotation\n" }, { "from": "human", "value": "package com.vryba.selenium.utilities;\n\nimport org.apache.logging.log4j.LogManager;\nimport org.apache.logging.log4j.Logger;\nimport org.testng.annotations.AfterClass;\nimp...
java
chosen
[ { "from": "system", "value": "Revert \"Handle exception straight away\"\n\nThis reverts commit 0cac4b793b3eb7c122f1f6550f2e62ba29e02795.\n" }, { "from": "human", "value": "package uk.co.prenderj.trail.util;\n\nimport android.os.AsyncTask;\n\npublic abstract class CheckedAsyncTask<Params, Progres...
java
chosen
[ { "from": "system", "value": "Make flute item work properly" }, { "from": "human", "value": "package pokefenn.totemic.item.music;\n\nimport net.minecraft.stats.Stats;\nimport net.minecraft.world.InteractionHand;\nimport net.minecraft.world.InteractionResultHolder;\nimport net.minecraft.world.ent...
java
chosen
[ { "from": "system", "value": "Fix warning assertion in credentials test\n\nThis commit fixes a warning assertion in a credentials test now that we\nare stricter about warning message assertions.\n" }, { "from": "human", "value": "/*\n * Licensed to Elasticsearch under one or more contributor\n *...
java
chosen
[ { "from": "system", "value": "Resolve a couple of compiler warnings that crept into the code.\n" }, { "from": "human", "value": "// Copyright (C) 2009 Google 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...
java
chosen
[ { "from": "system", "value": "Split out bytesToHexString as a static method." }, { "from": "human", "value": "package com.msgilligan.bitcoinj.json.conversion;\n\nimport com.fasterxml.jackson.core.JsonGenerator;\nimport com.fasterxml.jackson.core.JsonProcessingException;\nimport com.fasterxml.jac...
java
chosen
[ { "from": "system", "value": "gradle: Use JUnit assert method in test case\n\nSigned-off-by: BJ Hargrave <3d26bb3930946e3370762d769a073cece444c2d8@bjhargrave.com>\n" }, { "from": "human", "value": "package doubler.impl;\n\nimport doubler.Doubler;\nimport org.junit.Test;\n\npublic class DoublerIm...
java
chosen
[ { "from": "system", "value": "fix: Move optional autowired inside constructor\n\nFixes #105\n" }, { "from": "human", "value": "package amu.zhcet.email;\n\nimport amu.zhcet.common.utils.ConsoleHelper;\nimport com.google.common.base.Strings;\nimport lombok.extern.slf4j.Slf4j;\nimport org.springfra...
java
chosen
[ { "from": "system", "value": "Use createConfigGui instead of mainConfigGuiClass\n" }, { "from": "human", "value": "package mod.flatcoloredblocks.gui;\n\nimport net.minecraft.client.gui.GuiScreen;\nimport net.minecraftforge.fml.client.FMLConfigGuiFactory;\n\n/**\n * Basic Config Factory.\n */\npu...
java
chosen
[ { "from": "system", "value": "Add apparently important SINGLETON field\n" }, { "from": "human", "value": "/*\n * JBoss, Home of Professional Open Source.\n * Copyright 2009, Red Hat Middleware LLC, and individual contributors\n * as indicated by the @author tags. See the copyright.txt file in th...
java
chosen
[ { "from": "system", "value": "Add app state mutation methods\n" }, { "from": "human", "value": "package com.nikita.recipiesapp.common;\n\n\nimport com.nikita.recipiesapp.common.models.Recipe;\n\nimport java.util.List;\n\npublic final class AppState {\n public final List<Recipe> recipes;\n\n pr...
java
chosen
[ { "from": "system", "value": "Set initial hash size (should be tuned more).\n" }, { "from": "human", "value": "package com.zaxxer.hikari.json.util;\n\nimport java.lang.reflect.Field;\nimport java.lang.reflect.Modifier;\nimport java.util.HashMap;\nimport java.util.Map;\n\nimport com.zaxxer.hikari...
java
chosen
[ { "from": "system", "value": "Fix exception when spawning Wolf from egg\n" }, { "from": "human", "value": "package net.glowstone.io.entity;\n\nimport net.glowstone.entity.passive.GlowWolf;\nimport net.glowstone.util.nbt.CompoundTag;\nimport org.bukkit.DyeColor;\nimport org.bukkit.entity.EntityTy...
java
chosen
[ { "from": "system", "value": "Revert \"Hackily unblock the build\"\n\nThis reverts commit ea8a58282545fe8fbf7700ad05f50aeb6b492294.\n" }, { "from": "human", "value": "/*\n * Copyright 2018 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n...
java
chosen