conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Raise runtime exception on unfound hasher method\n" }, { "from": "human", "value": "package org.commcare.util.externalizable;\n\nimport org.javarosa.core.util.externalizable.Hasher;\nimport org.javarosa.core.util.externalizable.PrototypeFactory;\n\nimport java.secur...
java
chosen
[ { "from": "system", "value": "Use longs for time related constants\n" }, { "from": "human", "value": "package greendroid.util;\n\n/**\n * Utility class containing several useful constants related to time.\n * \n * @author Cyril Mottier\n */\npublic class Time {\n\n\t/**\n\t * The number of milli...
java
chosen
[ { "from": "system", "value": "NXP-11577: Fix Sonar Major violations: Javadoc Type\n" }, { "from": "human", "value": "/*\n * (C) Copyright 2012 Nuxeo SA (http://nuxeo.com/) and contributors.\n *\n * All rights reserved. This program and the accompanying materials\n * are made available under the ...
java
chosen
[ { "from": "system", "value": "Remove a redundant method declaration" }, { "from": "human", "value": "/*\n * Copyright 2012 The Netty Project\n *\n * The Netty Project licenses this file to you under the Apache License,\n * version 2.0 (the \"License\"); you may not use this file except in compli...
java
chosen
[ { "from": "system", "value": "Rename methods and instance variables to make intentions clearer.\n" }, { "from": "human", "value": "package uk.ac.ebi.quickgo.index.annotation.coterms;\n\nimport java.util.Iterator;\nimport org.springframework.batch.item.ItemReader;\n\n/**\n * Provide a list of all...
java
chosen
[ { "from": "system", "value": "Increment minor version to 2.14 to prepare for a new release.\n\n-------------\nCreated by MOE: https://github.com/google/moe\nMOE_MIGRATED_REVID=156319538\n" }, { "from": "human", "value": "/**\n * Copyright 2015 Google Inc. All Rights Reserved.\n *\n * Licensed un...
java
chosen
[ { "from": "system", "value": "Use String.valueOf() instead. It's more robust against Object values in the MDC.\n" }, { "from": "human", "value": "package io.tracee.backend.jbosslogging;\n\nimport io.tracee.MDCLike;\nimport org.jboss.logging.MDC;\n\nimport java.util.HashMap;\nimport java.util.Map...
java
chosen
[ { "from": "system", "value": "Fix diagnostics output for clang-cl\n\nSummary:\nclang-cl is sensible and emits diagnostics to stderr, unlike cl.exe.\nOverride WindowsCompiler's override for this.\n\nReviewed By: ilya-klyuchnikov\n\nfbshipit-source-id: a251903b5d\n" }, { "from": "human", "value": ...
java
chosen
[ { "from": "system", "value": "Remove use of the deprecated method ByteArrayOutputStream.toString()\n" }, { "from": "human", "value": "package net.wizardsoflua.lua.module.print;\n\nimport java.io.IOException;\nimport java.io.OutputStream;\n\nimport net.sandius.rembulan.Table;\nimport net.sandius....
java
chosen
[ { "from": "system", "value": "Add custom error message to number validation\n" }, { "from": "human", "value": "package br.com.bloder.blormlib.validation.validations;\n\nimport android.text.TextUtils;\nimport android.widget.EditText;\n\nimport br.com.bloder.blormlib.validation.Validate;\nimport b...
java
chosen
[ { "from": "system", "value": "Change from integer network IDs to random strings\n" }, { "from": "human", "value": "package com.ezardlabs.dethsquare.multiplayer;\n\nimport com.ezardlabs.dethsquare.Component;\n\nimport java.nio.ByteBuffer;\n\npublic abstract class NetworkBehaviour extends Componen...
java
chosen
[ { "from": "system", "value": "Extend game time by static methods to get parts of a time format\n\nReturns integer values for every time division like hours or minutes with the intention to be used for a \"timer\" like application\n" }, { "from": "human", "value": "package de.gurkenlabs.litiengin...
java
chosen
[ { "from": "system", "value": "Change variance of type parameter\n" }, { "from": "human", "value": "package ceylon.language;\n\nimport com.redhat.ceylon.compiler.java.metadata.Annotation;\nimport com.redhat.ceylon.compiler.java.metadata.Annotations;\nimport com.redhat.ceylon.compiler.java.metadat...
java
chosen
[ { "from": "system", "value": "Use Swing-enabled JApplet class as base class for our applet instead.\n" }, { "from": "human", "value": "import java.applet.*;\nimport java.awt.*;\n\npublic class PingsApplet extends Applet {\n\n private final String SERVER_HOSTNAME = \"localhost\";\n private ...
java
chosen
[ { "from": "system", "value": "Remove conditional code testing JDK 8\n" }, { "from": "human", "value": "package io.quarkus.deployment;\n\nimport java.util.Optional;\n\nimport io.quarkus.deployment.annotations.BuildProducer;\nimport io.quarkus.deployment.annotations.BuildStep;\nimport io.quarkus.d...
java
chosen
[ { "from": "system", "value": "Update armor set with new register" }, { "from": "human", "value": "package info.u_team.u_team_core.item.armor;\n\nimport info.u_team.u_team_core.util.ItemProperties;\nimport net.minecraft.item.*;\nimport net.minecraft.item.Item.Properties;\n\npublic class ArmorSetC...
java
chosen
[ { "from": "system", "value": "Include enum class name when using flags.\n" }, { "from": "human", "value": "package wge3.game.entity.creatures;\n\nimport com.badlogic.gdx.graphics.OrthographicCamera;\nimport com.badlogic.gdx.graphics.g2d.Batch;\nimport com.badlogic.gdx.graphics.glutils.ShapeRende...
java
chosen
[ { "from": "system", "value": "Set text to help menu.\n" }, { "from": "human", "value": "package com.github.aureliano.edocs.app.gui.menu.help;\n\nimport javax.swing.JMenu;\nimport javax.swing.event.MenuEvent;\nimport javax.swing.event.MenuListener;\n\nimport com.github.aureliano.edocs.app.model.I...
java
chosen
[ { "from": "system", "value": "Include parent layers object, to ease update\n\ngit-svn-id: d2601f1668e3cd2de409f5c059006a6eeada0abf@1481 cb33b658-6c9e-41a7-9690-cba343611204\n" }, { "from": "human", "value": "/**\n * \n */\npackage org.mwc.cmap.plotViewer.actions;\n\n\nimport org.mwc.cmap.core.Co...
java
chosen
[ { "from": "system", "value": "Fix for BISERVER-7626\nUnable to create a CSV based data source\n" }, { "from": "human", "value": "package org.pentaho.platform.dataaccess.datasource.wizard.models;\n\n/**\n * User: nbaker\n * Date: Aug 13, 2010\n */\npublic class DatasourceDTOUtil {\n\n public sta...
java
chosen
[ { "from": "system", "value": "Fix MP3 track not closed when header parsing fails.\n" }, { "from": "human", "value": "package com.sedmelluq.discord.lavaplayer.container.mp3;\n\nimport com.sedmelluq.discord.lavaplayer.tools.io.SeekableInputStream;\nimport com.sedmelluq.discord.lavaplayer.track.Aud...
java
chosen
[ { "from": "system", "value": "Make constructor public and member final\n" }, { "from": "human", "value": "// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\npackage com.yahoo.jrt;\n\n\nimport java.nio.ByteBuffer;\n\n\n/**\n * D...
java
chosen
[ { "from": "system", "value": "Use scanner to get input\n" }, { "from": "human", "value": "\npublic class ControlFlow {\n\n\tpublic static void main(String[] args) {\n\t\tint value = 0;\n\t\t\n\t\twhile (value < 10) {\n\t\t\tSystem.out.println(value);\n\t\t\tvalue = value + 1;\n\t\t}\n\t\t\n\t\tf...
java
chosen
[ { "from": "system", "value": "Fix the drop harvest event\n" }, { "from": "human", "value": "package com.techern.minecraft.melonblockdrop;\n\nimport net.minecraft.init.Blocks;\nimport net.minecraft.item.ItemStack;\nimport net.minecraftforge.event.world.BlockEvent;\nimport net.minecraftforge.fml.c...
java
chosen
[ { "from": "system", "value": "Fix crash when you try to ascend above the root directory\n" }, { "from": "human", "value": "package com.nbsp.materialfilepicker.utils;\n\nimport java.io.File;\nimport java.io.FileFilter;\nimport java.text.DecimalFormat;\nimport java.util.ArrayList;\nimport java.uti...
java
chosen
[ { "from": "system", "value": "Change to LinkedHashSet to keep insertion order.\n" }, { "from": "human", "value": "package typecheck;\n\nimport java.util.*;\n\npublic class SubtypingRelation {\n private static Map<Symbol, Set<Symbol>> relation = new LinkedHashMap<>();\n\n public static void...
java
chosen
[ { "from": "system", "value": "Add a version of the init method that accepts Context as a parameter\n\nCloses #34\n" }, { "from": "human", "value": "package com.jakewharton.threetenabp;\n\nimport android.app.Application;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.util....
java
chosen
[ { "from": "system", "value": "Fix some bullshit with generics.\n" }, { "from": "human", "value": "package codechicken.lib.util.registry;\n\nimport net.minecraft.util.ResourceLocation;\nimport net.minecraftforge.fml.common.registry.LegacyNamespacedRegistry;\n\nimport javax.annotation.Nullable;\ni...
java
chosen
[ { "from": "system", "value": "Deal with numeric or non-numeric user IDs.\n" }, { "from": "human", "value": "package edu.brown.hackathon.fifteenminutes;\n\nimport com.google.appengine.api.datastore.Entity;\n\n/**\n * All the info about a famous user that is sent to the client.\n */\npublic class...
java
chosen
[ { "from": "system", "value": "Increase turn timer to avoid flaky test\n\nLonger turn timer for Tic Tac Toe game test\n" }, { "from": "human", "value": "package com.github.sandorw.mocabogaso.games.tictactoe;\n\nimport static org.junit.Assert.*;\n\nimport org.junit.Test;\n\nimport com.github.sando...
java
chosen
[ { "from": "system", "value": "Make it easier to get a session from a sub-class" }, { "from": "human", "value": "package org.openntf.domino.tests.ntf;\n\nimport lotus.domino.NotesFactory;\n\nimport org.openntf.domino.Database;\nimport org.openntf.domino.Session;\nimport org.openntf.domino.thread....
java
chosen
[ { "from": "system", "value": "Use Tested for UDP connection tests\n" }, { "from": "human", "value": "package net.kencochrane.raven.connection;\n\nimport mockit.Injectable;\nimport mockit.Verifications;\nimport net.kencochrane.raven.event.Event;\nimport net.kencochrane.raven.marshaller.Marshaller...
java
chosen
[ { "from": "system", "value": "Implement first bits of redis state provider\n" }, { "from": "human", "value": "package reactor.pipe.redis;\n\nimport reactor.pipe.concurrent.Atom;\nimport reactor.pipe.state.StateProvider;\nimport sun.reflect.generics.reflectiveObjects.NotImplementedException;\n\np...
java
chosen
[ { "from": "system", "value": "Use ZMQ.proxy in the Sequencer.\n" }, { "from": "human", "value": "package bench.pubsub;\n\nimport org.zeromq.ZMQ;\n\n/**\n * This sequencer simply reads from a PULL socket and forwards the\n * message to the PUB socket.\n */\n\npublic class ZeroMQSequencer {\n \...
java
chosen
[ { "from": "system", "value": "Add JavaDoc for Options parameterized type." }, { "from": "human", "value": "package org.geometrycommands;\n\n/**\n * The base interface for all Commands.\n * @author Jared Erickson\n */\npublic interface Command<T extends Options> {\n\n /**\n * Get the Comma...
java
chosen
[ { "from": "system", "value": "Make it really obvious in the logs if AutoML is enabled.\n" }, { "from": "human", "value": "package water.automl;\n\nimport water.api.AbstractRegister;\nimport water.api.RequestServer;\nimport water.automl.api.AutoMLBuilderHandler;\nimport water.automl.api.AutoMLHan...
java
chosen
[ { "from": "system", "value": "Add dummy attribute to drawable node\n" }, { "from": "human", "value": "package gui;\n\nimport javafx.scene.canvas.GraphicsContext;\nimport javafx.scene.paint.Color;\n\n/**\n * Created by TUDelft SID on 17-5-2017.\n */\npublic class DrawableNode {\n\n private sta...
java
chosen
[ { "from": "system", "value": "Use Synchronizer to serialise access to the cache\n" }, { "from": "human", "value": "/*\n * Copyright 2011 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 wi...
java
chosen
[ { "from": "system", "value": "Remove suppression for serialisation warning\n" }, { "from": "human", "value": "package org.workcraft.gui.controls;\n\nimport org.workcraft.utils.GuiUtils;\n\nimport javax.swing.*;\nimport javax.swing.table.TableCellRenderer;\nimport java.awt.*;\n\n@SuppressWarnings...
java
chosen
[ { "from": "system", "value": "Rename _shotNum to _right in DoubleShot\n" }, { "from": "human", "value": "package edu.stuy.starlorn.upgrades;\n\npublic class DoubleShotUpgrade extends GunUpgrade {\n private boolean _shotNum;\n\n public DoubleShotUpgrade() {\n super();\n _shotN...
java
chosen
[ { "from": "system", "value": "Fix pattern item stack tile renderer\n" }, { "from": "human", "value": "package com.raoulvdberge.refinedstorage.render.tesr;\n\nimport com.raoulvdberge.refinedstorage.apiimpl.autocrafting.CraftingPattern;\nimport com.raoulvdberge.refinedstorage.item.PatternItem;\nim...
java
chosen
[ { "from": "system", "value": "Add 'Escalation' Queue Id (Valorant)" }, { "from": "human", "value": "package no.stelar7.api.r4j.basic.constants.types.val;\n\nimport no.stelar7.api.r4j.basic.constants.types.CodedEnum;\n\nimport java.util.Optional;\nimport java.util.stream.Stream;\n\npublic enum Ga...
java
chosen
[ { "from": "system", "value": "Use lombok to create contructors\n" }, { "from": "human", "value": "/*\n * Copyright 2017 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 License.\n...
java
chosen
[ { "from": "system", "value": "Add an example of dispose\n" }, { "from": "human", "value": "package org.realityforge.arez.examples;\n\nimport org.realityforge.arez.ArezContext;\n\npublic final class CodeModelExample\n{\n public static void main( final String[] args )\n throws Exception\n {\n...
java
chosen
[ { "from": "system", "value": "[BUG] Fix duplicate method from merge\n" }, { "from": "human", "value": "package org.openkilda.messaging.ctrl;\n\nimport com.fasterxml.jackson.annotation.JsonCreator;\nimport com.fasterxml.jackson.annotation.JsonInclude;\nimport com.fasterxml.jackson.annotation.Json...
java
chosen
[ { "from": "system", "value": "Add PMs to service creation.\n" }, { "from": "human", "value": "/**\n * @license\n * Copyright 2017 The FOAM Authors. All Rights Reserved.\n * http://www.apache.org/licenses/LICENSE-2.0\n */\n\npackage foam.nanos.boot;\n\nimport foam.core.*;\nimport foam.nanos.*;\n\...
java
chosen
[ { "from": "system", "value": "Switch component to solve body in body issues\n" }, { "from": "human", "value": "package se.l4.dust.core.internal.template.components;\n\nimport java.io.IOException;\n\nimport se.l4.dust.api.template.Emittable;\nimport se.l4.dust.api.template.TemplateEmitter;\nimpor...
java
chosen
[ { "from": "system", "value": "Set service properties 'clustertype' and 'index'.\n\n- 'clustername' is already set correctly in AbstractService.\n" }, { "from": "human", "value": "package com.yahoo.vespa.model.admin.metricsproxy;\n\nimport com.yahoo.config.model.api.container.ContainerServiceType...
java
chosen
[ { "from": "system", "value": "Add log when the app fail to get the token from the server\n" }, { "from": "human", "value": "package br.com.alura.agenda.firebase;\n\nimport android.util.Log;\n\nimport com.google.firebase.iid.FirebaseInstanceId;\nimport com.google.firebase.iid.FirebaseInstanceIdSe...
java
chosen
[ { "from": "system", "value": "Change retention policy of Required Parameter to runtime.\n" }, { "from": "human", "value": "/*\n * Electronic Logistics Management Information System (eLMIS) is a supply chain management system for health commodities in a developing country setting.\n *\n * Copyrig...
java
chosen
[ { "from": "system", "value": "Fix integer reading signedness bug\n" }, { "from": "human", "value": "package org.jboss.cx.remoting.jrpp.mina;\n\nimport java.io.IOException;\nimport org.apache.mina.common.IoBuffer;\nimport org.jboss.cx.remoting.spi.ByteMessageInput;\n\n/**\n *\n */\npublic final c...
java
chosen
[ { "from": "system", "value": "Add CCG replication - loading of ClassFile, RiskArray & Position\n" }, { "from": "human", "value": "package com.easymargining.replication.ccg.market.parsers;\n\nimport com.easymargining.replication.ccg.market.ClassFileDatas;\nimport com.easymargining.replication.ccg...
java
chosen
[ { "from": "system", "value": "Use getShortCode() instead of enum name()\n" }, { "from": "human", "value": "package com.alexstyl.specialdates.events.namedays;\n\nimport android.support.annotation.RawRes;\n\nimport com.alexstyl.specialdates.R;\nimport com.novoda.notils.exception.DeveloperError;\n\...
java
chosen
[ { "from": "system", "value": "Fix compilation error where generic could not be resolved\n" }, { "from": "human", "value": "package com.nirima.jenkins.plugins.docker.builder;\n\nimport hudson.DescriptorExtensionList;\nimport hudson.model.Descriptor;\nimport jenkins.model.Jenkins;\n\n/**\n * Creat...
java
chosen
[ { "from": "system", "value": "Make testCSV actually test something\n\n\nFormer-commit-id: 28e06f42df7e5c5a6fb0c7dcf4351fc582f1ed9a" }, { "from": "human", "value": "package org.deeplearning4j.datasets.iterator;\n\nimport org.nd4j.linalg.dataset.DataSet;\nimport org.junit.Test;\nimport org.springf...
java
chosen
[ { "from": "system", "value": "Allow possibility to turn off server communication (for testing purposes mostly)" }, { "from": "human", "value": "\npackage com.andreistraut.gaps.controller.dispatchers;\n\nimport com.andreistraut.gaps.controller.Controller;\nimport com.andreistraut.gaps.controller....
java
chosen
[ { "from": "system", "value": "Add path for (future) explore service" }, { "from": "human", "value": "/*\n * Copyright 2014 Codenvy, S.A.\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 obta...
java
chosen
[ { "from": "system", "value": "Update heroku dev backend url\n" }, { "from": "human", "value": "package cc.softwarefactory.lokki.android.constants;\n\npublic class Constants {\n public static final String API_URL = \"https://lokki.herokuapp.com/api/locmap/v1/\";\n}\n" }, { "from": "gpt...
java
chosen
[ { "from": "system", "value": "Change the background color based on if the vuln is present or not\n" }, { "from": "human", "value": "package fuzion24.device.vulnerability.test;\n\n\nimport android.app.Activity;\nimport android.view.View;\nimport android.view.ViewGroup;\nimport android.widget.Base...
java
chosen
[ { "from": "system", "value": "Fix missing @api (see comment of Joachim Van der Auwera on GBE-247)\n" }, { "from": "human", "value": "/*\n * This is part of Geomajas, a GIS framework, http://www.geomajas.org/.\n *\n * Copyright 2008-2011 Geosparc nv, http://www.geosparc.com/, Belgium.\n *\n * The...
java
chosen
[ { "from": "system", "value": "Fix for API changes in Jedis\n\nUse `long` primitive instead of boxed type.\n" }, { "from": "human", "value": "package org.testcontainers.junit.jupiter.inheritance;\n\nimport org.junit.jupiter.api.Test;\nimport org.testcontainers.junit.jupiter.Container;\n\nimport s...
java
chosen
[ { "from": "system", "value": "Use long instead of int\n" }, { "from": "human", "value": "/*\n * Copyright (c) 2022, Inversoft Inc., All Rights Reserved\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": "Add a constructor that takes a cause Exception.\n" }, { "from": "human", "value": "// Copyright (c) 1999-2004 Brian Wellington (bwelling@xbill.org)\n\npackage org.xbill.DNS;\n\nimport java.io.*;\n\n/**\n * An exception thrown when a DNS message is invalid.\n *\n * @...
java
chosen
[ { "from": "system", "value": "Modify default rxbus from MainThreadEnforce to AnyThreadEnforce\n" }, { "from": "human", "value": "package com.hwangjr.rxbus;\n\n/**\n * Instance of {@link Bus}.\n * Simply use {@link #get()} to get the instance of {@link Bus}\n */\npublic class RxBus {\n\n /**\n...
java
chosen
[ { "from": "system", "value": "Add event & billogram to callback WITH getters\n" }, { "from": "human", "value": "package com.youcruit.billogram.objects.response.billogram;\n\nimport com.google.gson.annotations.Expose;\nimport com.google.gson.annotations.SerializedName;\nimport com.youcruit.billog...
java
chosen
[ { "from": "system", "value": "Add constant to the class\n" }, { "from": "human", "value": "/**\n * @file FileName.java\n * @author samov004\n * @version 1.0.0\n * @date 9/9/15\n */\n\npackage com.samovich.basics.concepts.objects.treehouse;\n\npublic class PezDispenser {\n\n private String cha...
java
chosen
[ { "from": "system", "value": "Comment out @override in createJSModules\n" }, { "from": "human", "value": "package com.allthatseries.RNAudioPlayer;\n\nimport java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.List;\n\nimport com.facebook.react.ReactPackage;\nimport com.facebook...
java
chosen
[ { "from": "system", "value": "Add arrival time and update constructor.\n" }, { "from": "human", "value": "package cloudSimulator.dto;\n\nimport org.springframework.data.annotation.Id;\n\npublic class RequestDetails {\n\n @Id\n private String id;\n\n private long requestId;\n private ...
java
chosen
[ { "from": "system", "value": "Add backwards compatibility to Android lib\n" }, { "from": "human", "value": "package com.reactnativenavigation.bridge;\n\nimport com.facebook.react.ReactPackage;\nimport com.facebook.react.bridge.JavaScriptModule;\nimport com.facebook.react.bridge.NativeModule;\nim...
java
chosen
[ { "from": "system", "value": "Change numeric float constants to use the `f` suffix in Java\n" }, { "from": "human", "value": "public class Increment\n{\n\tpublic static void main(String[] args)\n\t{\n\t\t// Starting at zero because floats are small\n\t\t// Explicit cast required to because 0.0 i...
java
chosen
[ { "from": "system", "value": "Include logcat in crash reports\n" }, { "from": "human", "value": "package com.ogsdroid;\n\nimport android.app.Application;\nimport android.content.Context;\n\nimport org.acra.ACRA;\nimport org.acra.ReportingInteractionMode;\nimport org.acra.annotation.ReportsCrashe...
java
chosen
[ { "from": "system", "value": "Improve the naming of the variables\n" }, { "from": "human", "value": "package org.realityforge.replicant.server.transport;\n\nimport java.util.HashMap;\nimport java.util.LinkedList;\nimport java.util.Map;\nimport java.util.Map.Entry;\nimport org.realityforge.replic...
java
chosen
[ { "from": "system", "value": "Add another test case for the CustomPropertyProvider.\n" }, { "from": "human", "value": "package de.gurkenlabs.litiengine.environment.tilemap.xml;\n\nimport java.util.ArrayList;\n\nimport org.junit.Test;\n\nimport junit.framework.Assert;\n\npublic class CustomProper...
java
chosen
[ { "from": "system", "value": "Remove unnecesary system.out.printlns from the starting code" }, { "from": "human", "value": "package hello;\r\n\r\nimport java.util.Arrays;\r\n\r\nimport org.springframework.boot.SpringApplication;\r\nimport org.springframework.boot.autoconfigure.SpringBootApplicat...
java
chosen
[ { "from": "system", "value": "Fix wrong keep alive ids being sent for <= 1.7" }, { "from": "human", "value": "package protocolsupport.protocol.packet.middleimpl.clientbound.play.v_4_5_6_7;\n\nimport protocolsupport.protocol.packet.ClientBoundPacket;\nimport protocolsupport.protocol.packet.middle...
java
chosen
[ { "from": "system", "value": "Allow decoding the status as string value" }, { "from": "human", "value": "package org.iotbricks.core.amqp.transport.utils;\n\nimport static java.util.Optional.empty;\nimport static java.util.Optional.of;\n\nimport java.util.Map;\nimport java.util.Objects;\nimport j...
java
chosen
[ { "from": "system", "value": "Replace texture after rendering sprinkler particle\n\nThe original particle texture wasn't being bound again to the renderer,\nand so all particles would use the wrong texture while the sprinkler was\nactive.\n\nThis commit adds an overriding render method in LiquidSprayFX that...
java
chosen
[ { "from": "system", "value": "Add TODO for \"from descriptor ID\"\n" }, { "from": "human", "value": "package org.junit5.poc;\n\nimport java.util.HashMap;\n\nimport org.junit.lambda.launch.JUnitLauncher;\nimport org.junit.lambda.launch.TestRun;\n\n/**\n * @author Sam Brannen\n * @since 5.0\n */\n...
java
chosen
[ { "from": "system", "value": "Remove test that has been obviated by progress\n" }, { "from": "human", "value": "package data;\n\nimport static org.junit.Assert.assertSame;\n\nimport java.util.Arrays;\nimport java.util.List;\n\nimport javax.persistence.metamodel.SingularAttribute;\n\nimport org.j...
java
chosen
[ { "from": "system", "value": "Remove Optional (Optional of a Set, when the Set can be empty seems overengineering things)\n" }, { "from": "human", "value": "package uk.ac.ebi.atlas.search.analyticsindex;\n\nimport com.google.common.base.Optional;\nimport com.google.common.collect.ImmutableSet;\n...
java
chosen
[ { "from": "system", "value": "Remove button update code, FIX later\n" }, { "from": "human", "value": "package dk.cmol.arduinorgb_controller;\n\nimport android.graphics.Color;\nimport android.graphics.PorterDuff;\nimport android.os.Bundle;\nimport android.support.v4.app.Fragment;\nimport android....
java
chosen
[ { "from": "system", "value": "Add JSON header to test method\n" }, { "from": "human", "value": "package fi.tekislauta;\n\nimport static spark.Spark.*;\nimport fi.tekislauta.db.*;\nimport com.google.gson.*;\nimport fi.tekislauta.models.Board;\nimport fi.tekislauta.models.Post;\n\npublic class Mai...
java
chosen
[ { "from": "system", "value": "Use reflection to access UnixSystem\n\nSummary: This class doesn't exist on Windows and breaks compilation as a result.\n\nTest Plan: `ant clean default` on Windows.\n" }, { "from": "human", "value": "/*\n * Copyright 2015-present Facebook, Inc.\n *\n * Licensed und...
java
chosen
[ { "from": "system", "value": "[Java] Change retention policy on DoNotStub annotation so it is source only and not included in the class as is the default.\n" }, { "from": "human", "value": "/*\n * Copyright 2014 - 2016 Real Logic Ltd.\n *\n * Licensed under the Apache License, Version 2.0 (the \...
java
chosen
[ { "from": "system", "value": "Use logger instead of printStackTrace\n" }, { "from": "human", "value": "/*\n * Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\n */\n\npackage ai.vespa.metricsproxy.metric.model.json;\n\nimport com.faste...
java
chosen
[ { "from": "system", "value": "Change method lastRFID to return immediately and have nextRFID method to return promise\n" }, { "from": "human", "value": "package osgi.enroute.trains.controller.api;\n\nimport org.osgi.util.promise.Promise;\n\n/**\n * This controller controls a LOCATOR Segment\n */...
java
chosen
[ { "from": "system", "value": "Call through to ShadowLooper on Instrumentation.waitForIdleSync\n\nPiperOrigin-RevId: 203801396\n" }, { "from": "human", "value": "package org.robolectric.android.fakes;\n\nimport android.app.Activity;\nimport android.content.Intent;\nimport android.content.pm.Activ...
java
chosen
[ { "from": "system", "value": "Fix strange menu bug with teams\n" }, { "from": "human", "value": "package com.thebluealliance.androidclient.fragments;\n\n\nimport android.os.Bundle;\nimport android.support.v4.app.Fragment;\nimport android.support.v4.view.ViewPager;\nimport android.view.LayoutInfl...
java
chosen
[ { "from": "system", "value": "Clean up problem 75 solution\n" }, { "from": "human", "value": "package leetcode;\n\nimport java.util.Arrays;\n\n/**\n * https://leetcode.com/problems/sort-colors/\n */\npublic class Problem75 {\n public void sortColors(int[] nums) {\n // using counting so...
java
chosen
[ { "from": "system", "value": "Add TODO task to security configuration.\n" }, { "from": "human", "value": "package by.triumgroup.recourse.configuration.security;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.context.annotation.Bean;\nimport org.spri...
java
chosen
[ { "from": "system", "value": "Add support for new jOOQ 3.15 distributions\n\nI've just published jOOQ 3.15, see:\r\nhttps://blog.jooq.org/2021/07/06/3-15-0-release-with-support-for-r2dbc-nested-row-array-and-multiset-types-5-new-sql-dialects-create-procedure-function-and-trigger-support-and-much-more/\r\n\r...
java
chosen
[ { "from": "system", "value": "Fix URL of healthcheck endpoint\n" }, { "from": "human", "value": "package com.surfsoftconsulting.clipper.racetracker.controller;\n\n/*\n * Copyright 2017 Phil Haigh\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this f...
java
chosen
[ { "from": "system", "value": "Fix perspective initialization issue when clicking on top menu navbar\n" }, { "from": "human", "value": "package org.teiid.authoring.client.perspectives;\n\nimport javax.annotation.PostConstruct;\nimport javax.enterprise.context.ApplicationScoped;\n\nimport org.uber...
java
chosen
[ { "from": "system", "value": "Remove unneeded exception in test.\n" }, { "from": "human", "value": "package org.ligi.snackengage;\n\nimport android.Manifest;\nimport android.content.pm.PackageManager;\nimport android.net.ConnectivityManager;\n\nimport org.junit.Test;\nimport org.ligi.snackengage...
java
chosen
[ { "from": "system", "value": "[IMP] Add JavaDoc to GateIn Rest resource component\n" }, { "from": "human", "value": "#set( $symbol_pound = '#' )\n#set( $symbol_dollar = '$' )\n#set( $symbol_escape = '\\' )\npackage ${package};\n\nimport org.exoplatform.services.rest.resource.ResourceContainer;\n...
java
chosen
[ { "from": "system", "value": "Use a better name for the gihub publishing repository\n" }, { "from": "human", "value": "package io.freefair.gradle.plugins.github;\n\nimport org.gradle.api.Plugin;\nimport org.gradle.api.Project;\nimport org.gradle.api.publish.PublishingExtension;\nimport org.gradl...
java
chosen
[ { "from": "system", "value": "fix(exception-mapper): Return 500 errors for all unmapped exceptions\n" }, { "from": "human", "value": "/**\n * Copyright (C) 2016 Red Hat, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in complia...
java
chosen
[ { "from": "system", "value": "Order one cc by game title\n" }, { "from": "human", "value": "package controllers;\n\nimport models.Game;\nimport play.mvc.Controller;\nimport play.mvc.Result;\nimport views.html.platform_read;\n\nimport java.util.List;\n\npublic class PlatformController extends Con...
java
chosen
[ { "from": "system", "value": "Remove nullIfEmpty method and use StringUtils instead\n" }, { "from": "human", "value": "package common.pages;\n\nimport io.sphere.sdk.models.Base;\nimport io.sphere.sdk.models.Image;\n\npublic class ImageData extends Base {\n\n private final Image image;\n\n ...
java
chosen
[ { "from": "system", "value": "Add accessors to result headers styles" }, { "from": "human", "value": "package com.codenvy.ide.ext.datasource.client.common;\n\nimport com.google.gwt.user.cellview.client.CellTable;\n\npublic interface CellTableResources extends CellTable.Resources {\n\n public ...
java
chosen