conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Fix incorrect test failures and Keyguard leaks\n" }, { "from": "human", "value": "package com.braintreepayments.testutils;\n\nimport android.app.Activity;\nimport android.app.KeyguardManager;\nimport android.content.Context;\nimport android.support.test.espresso.int...
java
chosen
[ { "from": "system", "value": "Create presenter with GitHub service\n" }, { "from": "human", "value": "package com.chaos.databinding.presenters;\n\nimport com.chaos.databinding.models.User;\nimport com.chaos.databinding.views.UserView;\n\npublic class ActivityMainPresenter {\n private final Us...
java
chosen
[ { "from": "system", "value": "Create runner interface for yarn/java messages\n" }, { "from": "human", "value": "/*\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License a...
java
chosen
[ { "from": "system", "value": "Fix draggability on top of other conveyers.\n" }, { "from": "human", "value": "package net.mostlyoriginal.game.system.drag;\n\nimport com.artemis.Aspect;\nimport com.artemis.Entity;\nimport com.artemis.EntitySystem;\nimport com.artemis.World;\nimport com.artemis.ann...
java
chosen
[ { "from": "system", "value": "Make it possible to register the locators via the constructor\n" }, { "from": "human", "value": "package org.realityforge.replicant.client;\n\nimport java.util.ArrayList;\nimport java.util.List;\nimport javax.annotation.Nonnull;\nimport javax.annotation.Nullable;\ni...
java
chosen
[ { "from": "system", "value": "Add support for linear ShardSpecs\n" }, { "from": "human", "value": "// Copyright 2016 Yahoo Inc.\n// Licensed under the terms of the Apache license. Please see LICENSE.md file distributed with this work for terms.\npackage com.yahoo.bard.webservice.druid.model.meta...
java
chosen
[ { "from": "system", "value": "Fix for recent changes in the model (just removed two methods).\n" }, { "from": "human", "value": "package org.verapdf.model.impl.pb.external;\n\nimport org.apache.pdfbox.pdmodel.common.PDStream;\nimport org.verapdf.model.external.FontProgram;\n\n/**\n * @author Tim...
java
chosen
[ { "from": "system", "value": "Refresh retrieved CLI session variables.\n" }, { "from": "human", "value": "\n/*\n * Copyright (C) 2015 Archie L. Cobbs. All rights reserved.\n */\n\npackage org.jsimpledb.parse.expr;\n\nimport com.google.common.base.Preconditions;\n\nimport org.jsimpledb.parse.Pars...
java
chosen
[ { "from": "system", "value": "Revoke package c.y.vespa.curator from PublicApi\n\n- Probably just used internally.\n" }, { "from": "human", "value": "// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\n@ExportPackage\n@PublicApi // TODO: Revok...
java
chosen
[ { "from": "system", "value": "Sort stub element type definitions\n" }, { "from": "human", "value": "/*\n * Copyright 2015 Marek Kaput\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 ...
java
chosen
[ { "from": "system", "value": "Reorder classes to ensure compiler operates in correct order\n" }, { "from": "human", "value": "package com.example.inverse;\n\nimport arez.annotations.ArezComponent;\nimport arez.annotations.Inverse;\nimport arez.annotations.Observable;\nimport arez.annotations.Ref...
java
chosen
[ { "from": "system", "value": "Fix npe in syntax analyzer in logic operators.\n" }, { "from": "human", "value": "package org.develnext.jphp.core.tokenizer.token.expr.operator;\n\nimport php.runtime.common.Association;\nimport org.develnext.jphp.core.tokenizer.TokenType;\nimport org.develnext.jphp...
java
chosen
[ { "from": "system", "value": "Add newline at the end of a file\n" }, { "from": "human", "value": "package beaform.gui.search.tree;\n\nimport java.awt.event.MouseAdapter;\nimport java.awt.event.MouseEvent;\n\n/**\n * A listener that activates on double clicks.\n *\n * @author Steven Post\n *\n */...
java
chosen
[ { "from": "system", "value": "Support for reading deployment types from beans.xml\n\ngit-svn-id: 811cd8a17a8c3c0c263af499002feedd54a892d0@1531 1c488680-804c-0410-94cd-c6b725194a0e\n" }, { "from": "human", "value": "package org.jboss.webbeans.tck;\n\nimport java.lang.annotation.Annotation;\nimpor...
java
chosen
[ { "from": "system", "value": "Allow to use not with general conditions\n" }, { "from": "human", "value": "/*\n * (C) YANDEX LLC, 2014-2015\n *\n * The Source Code called \"YoctoDB\" available at\n * https://bitbucket.org/yandex/yoctodb is subject to the terms of the\n * Mozilla Public License, v...
java
chosen
[ { "from": "system", "value": "Use sleep rather than Random\n" }, { "from": "human", "value": "import java.util.Random;\r\n\r\npublic class LockContention {\r\n static Random randomGen = new Random();\r\n static int NTHREAD = 100;\r\n\r\n static public void main(String args[]) {\r\n ...
java
chosen
[ { "from": "system", "value": "Use pre-build docker image for ES and bump ES version to 6.6.1\n" }, { "from": "human", "value": "package com.gentics.mesh.test.docker;\n\nimport java.nio.charset.Charset;\nimport java.time.Duration;\nimport java.util.Collections;\n\nimport org.apache.commons.io.IOU...
java
chosen
[ { "from": "system", "value": "Add a comment instructing the student to make changes to this code.\n" }, { "from": "human", "value": "#set( $symbol_pound = '#' )\n#set( $symbol_dollar = '$' )\n#set( $symbol_escape = '\\' )\npackage ${package};\n\nimport edu.pdx.cs410J.web.HttpRequestHelper;\n\nim...
java
chosen
[ { "from": "system", "value": "Change validate() signature (i.e throws Exception)\n\nOPEN - task 66: Update Item functionalities implementation \nhttp://github.com/DevOpsDistilled/OpERP/issues/issue/66" }, { "from": "human", "value": "package devopsdistilled.operp.client.abstracts;\n\nimport devo...
java
chosen
[ { "from": "system", "value": "IMTEPD-155: Use Long.parseLong() instead of Long.valueOf()\n" }, { "from": "human", "value": "package com.indeed.flamdex.simple;\n\n/**\n * @author vladimir\n */\n\npublic class StringToIntTermIterator implements SimpleIntTermIterator {\n private final SimpleStr...
java
chosen
[ { "from": "system", "value": "Use \"os\" as valid constant for SYSTEM EOL check\n" }, { "from": "human", "value": "package org.theultimatedeployer.enforcer.editorconfig.check;\n\n/**\n * Created by chris on 20.09.16.\n */\npublic class EOLCheckConfig implements CheckConfig{\n\n public static fi...
java
chosen
[ { "from": "system", "value": "Tweak Agroal configuration reference documentation\n" }, { "from": "human", "value": "package io.quarkus.agroal.runtime;\n\nimport java.util.Map;\n\nimport io.quarkus.runtime.annotations.ConfigItem;\nimport io.quarkus.runtime.annotations.ConfigPhase;\nimport io.quar...
java
chosen
[ { "from": "system", "value": "Make toString include the description, which may be helpful.\n" }, { "from": "human", "value": "package net.happygiraffe.jslint;\n\n/**\n * @author dom\n * @version $Id$\n */\npublic enum Option {\n ADSAFE (\"if use of some browser features should be restricted...
java
chosen
[ { "from": "system", "value": "Delete auto generated comments.\nComment out the entire file.\n" }, { "from": "human", "value": "package com.biotronisis.pettplant.type;\n\n/**\n * Created by john on 6/16/15.\n */\npublic enum EntrainmentMode {\n\n oldMEDITATE(0),\n oldSLEEP(1),\n oldSTAY_AWA...
java
chosen
[ { "from": "system", "value": "AND-7057: Store the GET response in levelDB and populate the UI\n\nCreating necessary constuctors for BoxIteratorRecentItems\n" }, { "from": "human", "value": "package com.box.androidsdk.content.models;\n\n/**\n * A class representing list of BoxRecentItem's\n */\np...
java
chosen
[ { "from": "system", "value": "Tweak to fix compile error for now.\n" }, { "from": "human", "value": "package com.github.onsdigital.babbage.template.handlebars;\n\nimport org.junit.Test;\n\n/**\n * Created by bren on 11/08/15.\n */\n//TODO:\npublic class HandlebarsRendererTest {\n\n @Test\n ...
java
chosen
[ { "from": "system", "value": "Fix formatting of doubles in reports\n" }, { "from": "human", "value": "package org.nusco.narjillos.shared.utilities;\n\nimport java.text.DecimalFormat;\n\n/**\n * Formats numbers for pretty printing.\n * \n * For example, 2000 becomes 2K, 1200000 becomes 1.2M, and ...
java
chosen
[ { "from": "system", "value": "Test the behavior of the method\n" }, { "from": "human", "value": "package de.retest.recheck.ignore;\n\nimport static org.assertj.core.api.Assertions.assertThat;\n\nimport java.io.File;\nimport java.util.List;\n\nimport org.junit.jupiter.api.Test;\n\nclass SearchFil...
java
chosen
[ { "from": "system", "value": "Remove dependency on ExecutionTool to break a build cycle.\n\nPiperOrigin-RevId: 304627771\n" }, { "from": "human", "value": "// Copyright 2014 The Bazel Authors. All rights reserved.\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you ...
java
chosen
[ { "from": "system", "value": "Add query methods to game class\n" }, { "from": "human", "value": "import java.util.List;\n\n/**\n * Created by nate on 4/10/16.\n */\npublic class Game extends Model {\n public int id;\n public String name;\n public float price;\n\n public List<Category...
java
chosen
[ { "from": "system", "value": "Update the type fixer to avoid an infinite loop for recursively defined captured type parameters\n" }, { "from": "human", "value": "package be.kuleuven.cs.distrinet.jnome.core.type;\n\nimport org.aikodi.chameleon.oo.type.Type;\nimport org.aikodi.chameleon.oo.type.ge...
java
chosen
[ { "from": "system", "value": "Change encoding of xml to encode all except xml tags\n" }, { "from": "human", "value": "package fr.insee.rmes.utils;\n\nimport java.io.IOException;\nimport java.io.OutputStream;\nimport java.io.Writer;\n\nimport org.codehaus.stax2.io.EscapingWriterFactory;\n\npublic...
java
chosen
[ { "from": "system", "value": "Add save method and fix delete method in data point repository.\n" }, { "from": "human", "value": "/*\n * Copyright 2014 Open mHealth\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with th...
java
chosen
[ { "from": "system", "value": "Change license from epl to apache2\n" }, { "from": "human", "value": "/*\n * Copyright 2013 Pascal Christoph, hbz\n * Licensed under the Eclipse Public License 1.0 */\npackage org.culturegraph.mf.util.tries;\n\nimport static org.junit.Assert.assertTrue;\n\nimport o...
java
chosen
[ { "from": "system", "value": "Remove field which was never accessed\n" }, { "from": "human", "value": "\npackage uk.ac.ebi.atlas.profiles.baseline;\n\nimport com.google.common.base.Joiner;\nimport com.google.common.collect.Iterables;\nimport uk.ac.ebi.atlas.model.experiment.baseline.BaselineExpr...
java
chosen
[ { "from": "system", "value": "Fix the failing test and add one more test to cover both when/otherwise conditions." }, { "from": "human", "value": "/**\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\...
java
chosen
[ { "from": "system", "value": "Add unsafeInstance support for AArch64\n" }, { "from": "human", "value": "package net.jpountz.util;\n\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 ...
java
chosen
[ { "from": "system", "value": "Fix null error in Beam SQL\n" }, { "from": "human", "value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding c...
java
chosen
[ { "from": "system", "value": "Call super in SunburstWidgetIT setUp method.\n\nOtherwise they fail with NullPointerExceptions.\n\n[rev: ivo.miller]\n" }, { "from": "human", "value": "/*\n * Copyright 2017 Hewlett Packard Enterprise Development Company, L.P.\n * Licensed under the MIT License (the...
java
chosen
[ { "from": "system", "value": "Add a logging statement in TimestampProvider\n" }, { "from": "human", "value": "package com.thinkaurelius.titan.diskstorage.util;\n\nimport java.util.concurrent.TimeUnit;\n\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\n\npublic abstract class AbstractT...
java
chosen
[ { "from": "system", "value": "Remove wrong TODO - this is needed for vespafeeder\n" }, { "from": "human", "value": "// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\n// TODO: This implements the old, deprecated document HTTP= ...
java
chosen
[ { "from": "system", "value": "Add clear_target parameter to Aggro action\n" }, { "from": "human", "value": "package com.elmakers.mine.bukkit.action.builtin;\n\nimport org.bukkit.entity.Creature;\nimport org.bukkit.entity.Entity;\nimport org.bukkit.entity.LivingEntity;\n\nimport com.elmakers.mine...
java
chosen
[ { "from": "system", "value": "Implement Adaptation to AdaptationDTO and back" }, { "from": "human", "value": "package jp.ac.nii.prl.mape.autoscaling.analysis.model.dto;\n\nimport jp.ac.nii.prl.mape.autoscaling.analysis.model.Adaptation;\nimport jp.ac.nii.prl.mape.autoscaling.analysis.model.Deplo...
java
chosen
[ { "from": "system", "value": "Prepare help command for inheritance\n" }, { "from": "human", "value": "package io.georocket.commands;\n\nimport java.io.IOException;\nimport java.io.PrintWriter;\nimport java.util.ArrayList;\nimport java.util.List;\n\nimport de.undercouch.underline.InputReader;\nim...
java
chosen
[ { "from": "system", "value": "Convert transit-layer testcases to JUnit 4\n" }, { "from": "human", "value": "package edu.brown.cs.systems.tracingplane.transit_layer.impl;\n\nimport org.junit.Test;\nimport edu.brown.cs.systems.tracingplane.transit_layer.Baggage;\nimport junit.framework.TestCase;\n...
java
chosen
[ { "from": "system", "value": "Fix incorrect ATerms being emitted for booleans\n" }, { "from": "human", "value": "package org.metaborg.meta.interpreter.framework;\n\nimport org.spoofax.interpreter.core.Tools;\nimport org.spoofax.interpreter.terms.IStrategoAppl;\nimport org.spoofax.interpreter.ter...
java
chosen
[ { "from": "system", "value": "refactor(exception-mapper): Remove redundant super calls in constructor\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 comp...
java
chosen
[ { "from": "system", "value": "Set mytheme on fallback UI" }, { "from": "human", "value": "package org.madura.mobile.demo;\n\nimport com.vaadin.server.VaadinRequest;\nimport com.vaadin.ui.Button;\nimport com.vaadin.ui.HorizontalLayout;\nimport com.vaadin.ui.Label;\nimport com.vaadin.ui.UI;\n\n/**...
java
chosen
[ { "from": "system", "value": "Fix for elasticsearch object type\n" }, { "from": "human", "value": "/**\n * Copyright 2014 Flipkart Internet Pvt. 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 ...
java
chosen
[ { "from": "system", "value": "Fix traders in 1.13 and 1.13.1\n" }, { "from": "human", "value": "package protocolsupport.protocol.packet.middleimpl.clientbound.play.v_13;\n\nimport protocolsupport.protocol.ConnectionImpl;\nimport protocolsupport.protocol.packet.ClientBoundPacket;\nimport protocol...
java
chosen
[ { "from": "system", "value": "Speed up the InputStream interface on Galago's cached stream class.\n" }, { "from": "human", "value": "// BSD License (http://www.galagosearch.org/license)\npackage org.lemurproject.galago.utility.buffer;\n\nimport java.io.DataInput;\nimport java.io.IOException;\nim...
java
chosen
[ { "from": "system", "value": "Tidy up scope in API Controller.\n" }, { "from": "human", "value": "package hello.controllers;\n\nimport java.io.IOException;\n\nimport org.springframework.http.HttpStatus;\nimport org.springframework.http.MediaType;\nimport org.springframework.http.ResponseEntity;\...
java
chosen
[ { "from": "system", "value": "Fix a compilation error in the tests.\n" }, { "from": "human", "value": "/*\n * Copyright 2015 Hewlett-Packard Development Company, L.P.\n * Licensed under the MIT License (the \"License\"); you may not use this file except in compliance with the License.\n */\n\npa...
java
chosen
[ { "from": "system", "value": "Add little documentation about Google Analytics Config\n" }, { "from": "human", "value": "package com.pixable.pixalytics.google_analytics.platform;\n\nimport com.pixable.pixalytics.core.platform.Platform;\nimport com.pixable.pixalytics.google_analytics.proxy.GoogleA...
java
chosen
[ { "from": "system", "value": "Add new no place u bucket item" }, { "from": "human", "value": "package info.u_team.u_team_core.item;\n\nimport java.util.function.Supplier;\n\nimport net.minecraft.entity.player.PlayerEntity;\nimport net.minecraft.fluid.Fluid;\nimport net.minecraft.item.*;\nimport ...
java
chosen
[ { "from": "system", "value": "Update colors for task cards" }, { "from": "human", "value": "package tars.ui;\n\nimport javafx.scene.paint.Color;\n\n/**\n * Manages color for UI parts\n * @@author A0121533W\n *\n */\npublic class UiColor {\n\n public static final String STATUS_UNDONE_TEXT_FILL...
java
chosen
[ { "from": "system", "value": "Clarify current model of time series scoring\n" }, { "from": "human", "value": "package macrobase.analysis.outlier;\n\nimport java.util.List;\n\nimport macrobase.conf.MacroBaseConf;\nimport macrobase.conf.MacroBaseDefaults;\nimport macrobase.datamodel.Datum;\n\npubl...
java
chosen
[ { "from": "system", "value": "Fix emoticon-related parsing issues for chat messages\n" }, { "from": "human", "value": "package pro.beam.api.resource.chat.events.data;\n\nimport java.util.List;\n\nimport pro.beam.api.resource.BeamUser;\nimport pro.beam.api.resource.chat.AbstractChatEvent;\n\nimpo...
java
chosen
[ { "from": "system", "value": "Add generic way to get a list of objects by class\n" }, { "from": "human", "value": "package com.ggj.game;\n\nimport com.badlogic.gdx.scenes.scene2d.Actor;\nimport com.badlogic.gdx.utils.Array;\nimport com.ggj.model.Player;\nimport com.ggj.model.Rock;\n\npublic clas...
java
chosen
[ { "from": "system", "value": "Send emails to biosamples-dev@ebi.ac.uk until we find what is wrong in sending to tech\n" }, { "from": "human", "value": "package uk.ac.ebi.biosamples.utils;\n\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\n\nimport java.io.IOException;\nimport java.io....
java
chosen
[ { "from": "system", "value": "Fix lint warning about locale\n" }, { "from": "human", "value": "package pl.brightinventions.slf4android;\n\nimport java.text.SimpleDateFormat;\n\nclass DateValueSupplier implements LoggerPatternValueSupplier {\n private static ThreadLocal<SimpleDateFormat> dateF...
java
chosen
[ { "from": "system", "value": "Add test for checkData() method\n" }, { "from": "human", "value": "/**\n * Project RSA Algorithm.\n * Copyright Michał Szczygieł.\n * Created at Mar 14, 2014.\n */\n\npackage com.m4gik;\n\nimport static org.hamcrest.CoreMatchers.equalTo;\nimport static org.hamcrest....
java
chosen
[ { "from": "system", "value": "Fix exception on task not found\n\nSilly protected method....\n" }, { "from": "human", "value": "/*\n * Licensed to Elasticsearch under one or more contributor\n * license agreements. See the NOTICE file distributed with\n * this work for additional information rega...
java
chosen
[ { "from": "system", "value": "Introduce new Detections stream type\n" }, { "from": "human", "value": "package stroom.data.store.impl.fs;\n\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\n\nimport java.util.HashMap;\nimport java.util.Map;\n\nclass StreamTypeExtensions {\n private s...
java
chosen
[ { "from": "system", "value": "Add fix for MongoDb if url is used instead of uri\n" }, { "from": "human", "value": "package org.springframework.cloud.cloudfoundry;\n\nimport java.util.Map;\n\nimport org.springframework.cloud.service.common.MongoServiceInfo;\n\n/**\n * \n * @author Ramnivas Laddad...
java
chosen
[ { "from": "system", "value": "Move the @Transactional(readOnly = true) annotation to class level\n" }, { "from": "human", "value": "package com.vladmihalcea.book.hpjp.hibernate.transaction.spring.routing;\n\nimport com.vladmihalcea.book.hpjp.hibernate.transaction.forum.Post;\nimport com.vladmiha...
java
chosen
[ { "from": "system", "value": "Add Context parameter to onCardDelete to match SDK\n" }, { "from": "human", "value": "package org.cyanogenmod.launcher.home.api.sdkexample.receiver;\n\nimport android.util.Log;\n\nimport org.cyanogenmod.launcher.home.api.cards.DataCard;\nimport org.cyanogenmod.launc...
java
chosen
[ { "from": "system", "value": "Add a test for jobids\n\ngit-svn-id: e057f57e93a604d3b43d277ae69bde5ebf332112@1736029 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "human", "value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements...
java
chosen
[ { "from": "system", "value": "Modify : ajout de get Timestamp\n" }, { "from": "human", "value": "package entity;\n\nimport java.sql.Timestamp;\nimport java.util.Calendar;\nimport java.io.Serializable;\n\n/**\n * Created by corentin on 10/03/15.\n */\npublic abstract class AbstractEntity impleme...
java
chosen
[ { "from": "system", "value": "Print dos aquivos de entrada, saída e da palavra\n" }, { "from": "human", "value": "\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t\n\t\tSystem.out.println(\"Teste\");\n\t\n\t}\n\t\n}\n" }, { "from": "gpt", "value": "\npublic cl...
java
chosen
[ { "from": "system", "value": "Fix backward merge test object order\n" }, { "from": "human", "value": "package ee.shy.core.merge;\n\nimport ee.shy.TemporaryDirectory;\nimport org.junit.Before;\nimport org.junit.Rule;\nimport org.junit.Test;\n\nimport java.io.IOException;\n\nimport static org.juni...
java
chosen
[ { "from": "system", "value": "Allow access of IPv4Address stored in status" }, { "from": "human", "value": "package org.torproject.jtor.directory;\n\nimport org.torproject.jtor.data.HexDigest;\nimport org.torproject.jtor.data.Timestamp;\nimport org.torproject.jtor.data.exitpolicy.ExitPorts;\n\np...
java
chosen
[ { "from": "system", "value": "Change default retry to 7 from 8\n" }, { "from": "human", "value": "package org.komamitsu.fluency.sender.retry;\n\npublic abstract class RetryStrategy<C extends RetryStrategy.Config>\n{\n protected final C config;\n\n public RetryStrategy(C config)\n {\n ...
java
chosen
[ { "from": "system", "value": "Fix Spawn minionDown metric to correctly ignore failed hosts.\n" }, { "from": "human", "value": "/*\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy o...
java
chosen
[ { "from": "system", "value": "Fix job config uniqueness check in POST API endpoint\n\nChange-Id: Ieb84dd69eef54b16cbdcd96c598b48ababc7ad84\n" }, { "from": "human", "value": "package com.cgi.eoss.ftep.api.controllers;\n\nimport com.cgi.eoss.ftep.api.security.FtepSecurityService;\nimport com.cgi.e...
java
chosen
[ { "from": "system", "value": "i18n: Fix the case where a translation is missing and it's loaded via FXML with a custom ResourceBundle that never throws an error, it always returns the key (English string) if a real translation is missing.\n" }, { "from": "human", "value": "package lighthouse.uti...
java
chosen
[ { "from": "system", "value": "Return empty JSONArray if no Special is found\n" }, { "from": "human", "value": "package com.alexstyl.specialdates.events.namedays.calendar.resource;\n\nimport com.alexstyl.specialdates.events.namedays.NamedayLocale;\n\nimport org.json.JSONArray;\nimport org.json.JS...
java
chosen
[ { "from": "system", "value": "Replace obsolete staging endpoint with api.quoine.com\n" }, { "from": "human", "value": "package com.xeiam.xchange.quoine;\n\nimport si.mazi.rescu.SynchronizedValueFactory;\n\nimport com.xeiam.xchange.BaseExchange;\nimport com.xeiam.xchange.Exchange;\nimport com.xei...
java
chosen
[ { "from": "system", "value": "Fix Application module removing wrong type." }, { "from": "human", "value": "/**\n * Copyright (C) 2015 android10.org. All rights reserved.\n * @author Fernando Cejas (the android10 coder)\n */\npackage com.fernandocejas.android10.sample.presentation.internal.di.mod...
java
chosen
[ { "from": "system", "value": "Make Google+ pre processor less strict.\n" }, { "from": "human", "value": "/* This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at http://mozilla.o...
java
chosen
[ { "from": "system", "value": "Use the new IWorldNameable interface where possible to keep things standardized.\n" }, { "from": "human", "value": "/*\n * ******************************************************************************\n * Copyright 2011-2015 CovertJaguar\n *\n * This work (the AP...
java
chosen
[ { "from": "system", "value": "Mark saturation as an epic ability\n" }, { "from": "human", "value": "package org.cyclops.everlastingabilities.ability.config;\n\nimport net.minecraft.init.MobEffects;\nimport net.minecraft.item.EnumRarity;\nimport org.cyclops.cyclopscore.helper.MinecraftHelpers;\ni...
java
chosen
[ { "from": "system", "value": "Support RSS path without trailing slash\n" }, { "from": "human", "value": "package com.tidyjava.bp.rss;\n\nimport com.rometools.rome.feed.synd.SyndFeed;\nimport com.rometools.rome.io.SyndFeedOutput;\nimport org.springframework.beans.factory.annotation.Autowired;\nim...
java
chosen
[ { "from": "system", "value": "Remove call to deprecated methods\n" }, { "from": "human", "value": "package net.kencochrane.raven.marshaller.json;\n\nimport com.fasterxml.jackson.core.JsonFactory;\nimport com.fasterxml.jackson.core.JsonGenerator;\nimport com.fasterxml.jackson.core.JsonParser;\nim...
java
chosen
[ { "from": "system", "value": "Stop the server configs from overwriting the global one" }, { "from": "human", "value": "package config;\n\nimport heufybot.core.Logger;\nimport heufybot.utils.FileUtils;\n\nimport java.util.HashMap;\n\nimport org.yaml.snakeyaml.Yaml;\n\npublic class ServerConfig ex...
java
chosen
[ { "from": "system", "value": "Fix NPE at IDE restart\n" }, { "from": "human", "value": "// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.\npackage com.intellij.ide;\n\nimport com.intellij.openapi.applicati...
java
chosen
[ { "from": "system", "value": "Remove texture packing as that is now done as part of the texture pipeline\n" }, { "from": "human", "value": "package starpunk;\n\nimport com.badlogic.gdx.backends.lwjgl.LwjglApplication;\nimport com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration;\nimport...
java
chosen
[ { "from": "system", "value": "Add more visual aid to marking tasks\n" }, { "from": "human", "value": "package seedu.watodo.ui;\n\nimport javafx.fxml.FXML;\nimport javafx.scene.control.Label;\nimport javafx.scene.layout.FlowPane;\nimport javafx.scene.layout.HBox;\nimport javafx.scene.layout.Regio...
java
chosen
[ { "from": "system", "value": "Replace LocalTime.MIDNIGHT with LocalTime.MIN as this is correct i.e. start of day to finish time, not end of day to finish time!\n" }, { "from": "human", "value": "package uk.ac.ebi.quickgo.ontology;\n\nimport org.springframework.boot.context.properties.Configurati...
java
chosen
[ { "from": "system", "value": "Remove `logout` method as it is not required for JWT token (DEV-99)\n" }, { "from": "human", "value": "package sg.ncl.service.authentication;\n\nimport org.springframework.stereotype.Service;\nimport sg.ncl.service.authentication.data.jpa.entities.CredentialsEntity;...
java
chosen
[ { "from": "system", "value": "Switch to hid_emu generic implementation for spoofing\n" }, { "from": "human", "value": "package andraus.bluetoothhidemu.spoof;\n\nimport android.bluetooth.BluetoothAdapter;\nimport android.content.Context;\n\npublic final class BluetoothAdapterSpooferFactory {\n ...
java
chosen
[ { "from": "system", "value": "Fix document command test in Windows.\n" }, { "from": "human", "value": "package fi.helsinki.cs.tmc.cli.command;\n\nimport fi.helsinki.cs.tmc.cli.Application;\nimport fi.helsinki.cs.tmc.cli.CliContext;\nimport fi.helsinki.cs.tmc.cli.io.TestIo;\n\nimport org.junit.Be...
java
chosen
[ { "from": "system", "value": "Use a proper display name for the test class descendant.\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 cop...
java
chosen
[ { "from": "system", "value": "Adjust the ds deployment example to use the directly-usable\nDatasourceArchive.\n" }, { "from": "human", "value": "package org.wildfly.swarm.examples.ds.deployment;\n\nimport org.jboss.shrinkwrap.api.ShrinkWrap;\nimport org.wildfly.swarm.Swarm;\nimport org.wildfly.s...
java
chosen
[ { "from": "system", "value": "Adjust mc version number in core mod.\n" }, { "from": "human", "value": "package io.github.elytra.movingworld.common.asm.coremod;\n\nimport net.minecraftforge.fml.relauncher.IFMLLoadingPlugin;\n\nimport org.spongepowered.asm.launch.MixinBootstrap;\nimport org.sponge...
java
chosen
[ { "from": "system", "value": "Add test case for undo add command\n" }, { "from": "human", "value": "package guitests;\n\npublic class UndoCommandTest {\n\n}\n" }, { "from": "gpt", "value": "package guitests;\n\nimport static org.junit.Assert.assertTrue;\n\nimport org.junit.Test;\n\ni...
java
chosen
[ { "from": "system", "value": "[core] Update class in com.b2international.snowowl.core bundle" }, { "from": "human", "value": "/*\n * Copyright 2011-2016 B2i Healthcare Pte Ltd, http://b2i.sg\n * \n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file ...
java
chosen
[ { "from": "system", "value": "Improve string encoding in network protocols\n\nEliminate unnecessary memory allocation.\n" }, { "from": "human", "value": "package org.jvirtanen.parity.net.poe;\n\nimport static java.nio.charset.StandardCharsets.*;\n\nimport java.nio.ByteBuffer;\n\nclass ByteBuffer...
java
chosen
[ { "from": "system", "value": "Fix to work on CI\n" }, { "from": "human", "value": "package test.com.github.tmurakami.dexopener;\n\nimport android.support.test.InstrumentationRegistry;\nimport android.support.test.rule.ActivityTestRule;\nimport android.support.v4.app.FragmentActivity;\n\nimport o...
java
chosen
[ { "from": "system", "value": "Make titles and hotbars more visible\n" }, { "from": "human", "value": "package tc.oc.commons.bukkit.chat;\n\nimport net.md_5.bungee.api.chat.BaseComponent;\nimport org.bukkit.entity.Player;\nimport tc.oc.commons.core.chat.Component;\nimport tc.oc.commons.core.chat....
java
chosen