conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Check the value of the Boolean as well. Props @m4dc4p\n" }, { "from": "human", "value": "package com.tozny.sdk.realm.methods.link_challenge;\n\nimport com.fasterxml.jackson.annotation.JsonAutoDetect;\nimport com.fasterxml.jackson.annotation.JsonProperty;\nimport com...
java
chosen
[ { "from": "system", "value": "AND-7076: Set limit for GET request for recents endpoint\n\nThe default limit of 100 is set for GET recent items.\n" }, { "from": "human", "value": "package com.box.androidsdk.content.requests;\n\nimport com.box.androidsdk.content.BoxException;\nimport com.box.andro...
java
chosen
[ { "from": "system", "value": "LUCENE-7013: Fix javadocs by reverting to previous state (script failure possibly)\n" }, { "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": "Fix logical error in FAB scroll behaviour\n\nFAB was not re-drawing on scroll up in recycler view.\n" }, { "from": "human", "value": "package com.bookbase.bookbase.fragments.behaviour;\n\nimport android.content.Context;\nimport android.support.design.widget.Coordina...
java
chosen
[ { "from": "system", "value": "Remove callback when the job is done\n" }, { "from": "human", "value": "package io.github.izzyleung.zhihudailypurify.task;\n\nimport io.github.izzyleung.zhihudailypurify.ZhihuDailyPurifyApplication;\nimport io.github.izzyleung.zhihudailypurify.bean.DailyNews;\n\nimp...
java
chosen
[ { "from": "system", "value": "Print usage if argument count != 1" }, { "from": "human", "value": "package at.fhtw.mcs;\n\nimport java.util.Scanner;\n\nimport at.fhtw.mcs.model.Track;\nimport at.fhtw.mcs.model.TrackFactory;\n\nclass Main {\n\n\tpublic static void main(String[] args) throws Interr...
java
chosen
[ { "from": "system", "value": "Add event handlers, set text as number, temporarily toast on click\n" }, { "from": "human", "value": "package io.akessler.elixircounter;\n\nimport android.content.Context;\nimport android.support.v7.widget.AppCompatButton;\nimport android.view.MotionEvent;\nimport a...
java
chosen
[ { "from": "system", "value": "Fix SortCons styling bug: add equals and hashCode\n" }, { "from": "human", "value": "package org.metaborg.spoofax.core.style;\n\nimport org.metaborg.core.style.ICategory;\n\npublic class SortConsCategory implements ICategory {\n private static final long serialVe...
java
chosen
[ { "from": "system", "value": "Add service to retrieve list of APIs by user\n" }, { "from": "human", "value": "/**\n * Copyright (C) 2015 The Gravitee team (http://gravitee.io)\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compli...
java
chosen
[ { "from": "system", "value": "Fix error message for illegal select value\n" }, { "from": "human", "value": "package de.oppermann.pomutils.commands;\n\nimport com.beust.jcommander.IStringConverter;\nimport com.beust.jcommander.ParameterException;\n\nimport de.oppermann.pomutils.select.SelectionSt...
java
chosen
[ { "from": "system", "value": "Fix demos to use new iolib\n" }, { "from": "human", "value": "/*\n * Copyright 2015 Ivan Pribela\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 copy ...
java
chosen
[ { "from": "system", "value": "Fix generation of string literals\n" }, { "from": "human", "value": "package de.sormuras.bach.execution;\n\nimport java.nio.file.Path;\n\n/** Snippet producer and default Java source code helpers. */\ninterface Scribe {\n\n /** Convert the string representation of ...
java
chosen
[ { "from": "system", "value": "Add EnhancedListView project to licenses list.\n" }, { "from": "human", "value": "package com.levibostian.pantrypirate.model;\n\nimport com.levibostian.pantrypirate.vo.License;\n\nimport java.util.ArrayList;\n\npublic class LicensesModel {\n private ArrayList<Lic...
java
chosen
[ { "from": "system", "value": "Add a few PermissionUtils unit tests\n" }, { "from": "human", "value": "package io.github.plastix.forage.util;\n\npublic class PermissionUtilsTest {\n}\n" }, { "from": "gpt", "value": "package io.github.plastix.forage.util;\n\nimport org.junit.Test;\n\ni...
java
chosen
[ { "from": "system", "value": "Make ring use the default isClosed\n" }, { "from": "human", "value": "/*\n * Copyright (c) 2016-2019 Chronicle Software Ltd\n */\n\npackage net.openhft.chronicle.queue.backed.map;\n\nimport net.openhft.chronicle.wire.DocumentContext;\nimport net.openhft.chronicle.wi...
java
chosen
[ { "from": "system", "value": "Comment modified (testing github email configuration)\n" }, { "from": "human", "value": "package com.capgemini.resilience.employer.service;\n\nimport com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;\nimport org.springframework.stereotype.Service;\n\ni...
java
chosen
[ { "from": "system", "value": "Extend SimpleStreamableObject so that we get a useful default toString().\n\n\ngit-svn-id: a1a4b28b82a3276cc491891159dd9963a0a72fae@2321 542714f4-19e9-0310-aa3c-eee0fc999fb1\n" }, { "from": "human", "value": "//\n// $Id: Cluster.java,v 1.2 2003/02/13 23:01:35 mdb Ex...
java
chosen
[ { "from": "system", "value": "Remove test cases requiring manual steps\n" }, { "from": "human", "value": "package io.castle.client;\n\nimport org.junit.runner.RunWith;\nimport org.junit.runners.Suite;\n\n/**\n * This suite runs all tests that can be run without user interaction. {@link io.castle...
java
chosen
[ { "from": "system", "value": "Add builds link to API root controller.\n" }, { "from": "human", "value": "package org.ihtsdo.buildcloud.controller;\n\nimport org.ihtsdo.buildcloud.controller.helper.HypermediaGenerator;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.sp...
java
chosen
[ { "from": "system", "value": "Fix failing test because of new fields\n" }, { "from": "human", "value": "/*\n * Copyright 2015 Blazebit.\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 obtai...
java
chosen
[ { "from": "system", "value": "Change service to force new build\n" }, { "from": "human", "value": "package org.jboss.as.quickstarts.helloworld;\n\n/**\n * A simple CDI service which is able to say hello to someone\n * \n * @author Pete Muir\n * \n */\npublic class HelloService {\n\n String cr...
java
chosen
[ { "from": "system", "value": "Use the default error listener for this class\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 at...
java
chosen
[ { "from": "system", "value": "Add 'contains()' to check if a point is in interior of triangle.\n" }, { "from": "human", "value": "package com.sdsmdg.kd.trianglify.models;\n\n\nimport android.graphics.Point;\n\npublic class Triangle {\n public Point a;\n public Point b;\n public Point c;...
java
chosen
[ { "from": "system", "value": "Add Javadoc for Class Declaration.\n" }, { "from": "human", "value": "/**\n * @file MyClass.java\n * @author Valery Samovich\n * @version 1\n * @date 2014/01/09\n * \n * Example of Class Declaration\n */\n\npackage com.samovich.java.basics.concepts.classes;\n\n/*\n...
java
chosen
[ { "from": "system", "value": "Refactor into a named static inner class. Depend upon UTF-8 encoding for proper handling of text.\n" }, { "from": "human", "value": "/*\n * Copyright 2012-2015 Johns Hopkins University HLTCOE. All rights reserved.\n * See LICENSE in the project root directory.\n */\...
java
chosen
[ { "from": "system", "value": "Disable test in headless environments\n" }, { "from": "human", "value": "package de.marza.firstspirit.modules.logging.console.utilities;\n\nimport org.junit.Before;\nimport org.junit.Test;\n\nimport static org.hamcrest.Matchers.is;\nimport static org.junit.Assert.as...
java
chosen
[ { "from": "system", "value": "Prepare data access object interface.\n" }, { "from": "human", "value": "package com.github.aureliano.verbum_domini.dao;\n\nimport java.io.Serializable;\nimport java.util.List;\n\npublic interface IDao<T> {\n\n\tpublic List<T> list();\n\t\n\tpublic T load(Serializab...
java
chosen
[ { "from": "system", "value": "Return JVM input parameters from Play application\n\n[#52708279]\n" }, { "from": "human", "value": "package controllers;\n\nimport play.*;\nimport play.mvc.*;\n\nimport views.html.*;\n\npublic class Application extends Controller {\n \n public static Result inde...
java
chosen
[ { "from": "system", "value": "Update based on live coding\n" }, { "from": "human", "value": "\npackage working;\n\nimport org.junit.jupiter.api.DisplayName;\nimport org.junit.jupiter.api.Test;\nimport org.junit.jupiter.api.TestInfo;\n\nimport playground.FastTest;\n\nclass TagsDisplayNamesAndDepe...
java
chosen
[ { "from": "system", "value": "Replace lambda with a method reference\n" }, { "from": "human", "value": "package com.nilhcem.droidcontn.core.dagger.module;\n\nimport android.app.Application;\nimport android.database.sqlite.SQLiteOpenHelper;\n\nimport com.nilhcem.droidcontn.data.database.DbOpenHel...
java
chosen
[ { "from": "system", "value": "Fix start & stop handling of test TokenValidator\n" }, { "from": "human", "value": "package com.continuuity.gateway.router;\n\nimport com.continuuity.security.auth.TokenState;\nimport com.continuuity.security.auth.TokenValidator;\nimport com.google.common.util.concu...
java
chosen
[ { "from": "system", "value": "Revert \"Use the more common type name T instead of L.\"\n\nThis reverts commit 146fa40dd6b6889277a86f6e5858ffacb672480c.\n" }, { "from": "human", "value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements....
java
chosen
[ { "from": "system", "value": "Fix broken test.. was testing the old way of validation of the reconsent command.\n" }, { "from": "human", "value": "package edu.northwestern.bioinformatics.studycalendar.web.schedule;\n\nimport edu.northwestern.bioinformatics.studycalendar.service.StudyService;\nim...
java
chosen
[ { "from": "system", "value": "Use the `this` constructor as suggested by @cbeust\n\nThis makes constructors more maintainable: one constructor does the\nprocessing.\n" }, { "from": "human", "value": "/**\n * Copyright (C) 2010 the original author or authors.\n * See the notice.md file distribute...
java
chosen
[ { "from": "system", "value": "Use UTF-8 while write testcases json\n" }, { "from": "human", "value": "package ru.yandex.qatools.allure.data.utils;\n\nimport com.fasterxml.jackson.databind.AnnotationIntrospector;\nimport com.fasterxml.jackson.databind.ObjectMapper;\nimport com.fasterxml.jackson.d...
java
chosen
[ { "from": "system", "value": "NXP-11577: Fix Sonar Major violation: Javadoc Type\n" }, { "from": "human", "value": "package org.nuxeo.drive.service.impl;\n\nimport java.util.HashSet;\nimport java.util.LinkedHashMap;\nimport java.util.Map;\nimport java.util.Set;\n\nimport org.apache.commons.lang....
java
chosen
[ { "from": "system", "value": "Add Alpine,Arch Linux, RPM & Debian to agents-api\n" }, { "from": "human", "value": "/**\n * Copyright (C) 2017 White Source 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 Li...
java
chosen
[ { "from": "system", "value": "Handle zero value Le in APDU\n" }, { "from": "human", "value": "package org.cryptonit;\n\nimport javacard.framework.JCSystem;\n\npublic class IOBuffer {\n private FileIndex index = null;\n private byte [] buffer = null;\n\n private short [] shorts = null;\n...
java
chosen
[ { "from": "system", "value": "Add args to ctor with size" }, { "from": "human", "value": "package info.u_team.u_team_core.screen;\n\nimport com.mojang.blaze3d.matrix.MatrixStack;\n\nimport net.minecraft.entity.player.PlayerInventory;\nimport net.minecraft.inventory.container.Container;\nimport n...
java
chosen
[ { "from": "system", "value": "Clean up formatting a bit\n" }, { "from": "human", "value": "package com.instagram.common.json.annotation.processor.parent;\n\nimport com.instagram.common.json.annotation.JsonType;\n\n/**\n * Interface parent to test that polymorphic deserialization works.\n */\n@Js...
java
chosen
[ { "from": "system", "value": "[Minor] Clean up use of deprecated method\n\nSigned-off-by: Gregor Zurowski <5fdc67d2166bcdd1d3aa4ed45ea5a25e9b21bc20@zurowski.org>\n" }, { "from": "human", "value": "/**\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license ...
java
chosen
[ { "from": "system", "value": "Fix \"amount from\" for \"Big orders\"\n" }, { "from": "human", "value": "package org.camunda.bpm.demo.orderconfirmation.config;\n\nimport org.camunda.bpm.demo.orderconfirmation.bean.RuleEntryDAO;\nimport org.camunda.bpm.demo.orderconfirmation.model.DiscountRuleEntr...
java
chosen
[ { "from": "system", "value": "Check gamerule before translating formattings\n" }, { "from": "human", "value": "package com.ptsmods.morecommands.commands.server.elevated;\n\nimport com.mojang.brigadier.CommandDispatcher;\nimport com.mojang.brigadier.arguments.StringArgumentType;\nimport com.ptsmo...
java
chosen
[ { "from": "system", "value": "Change PathButton action to action listener\n" }, { "from": "human", "value": "package pl.mn.ccsg.dialog;\n\nimport com.intellij.openapi.project.Project;\n\nimport javax.swing.*;\nimport java.awt.event.ActionEvent;\nimport java.beans.PropertyChangeListener;\n\n/**\n...
java
chosen
[ { "from": "system", "value": "Use invokeLater for ui build\n" }, { "from": "human", "value": "package com.izforge.izpack.installer.base;\n\nimport com.izforge.izpack.api.data.AutomatedInstallData;\nimport com.izforge.izpack.installer.manager.PanelManager;\n\n/**\n * Installer frame controller\n ...
java
chosen
[ { "from": "system", "value": "Fix support for multiple values for a single parameter.\n" }, { "from": "human", "value": "package io.katharsis.rs.parameterProvider.provider;\n\nimport java.io.IOException;\nimport java.util.List;\n\nimport javax.ws.rs.QueryParam;\nimport javax.ws.rs.container.Cont...
java
chosen
[ { "from": "system", "value": "Move user defaults to initNewItem\n" }, { "from": "human", "value": "/*\n * Copyright (c) 2015 com.haulmont.ts.gui.entities\n */\npackage com.haulmont.timesheets.gui.extuser;\n\nimport com.haulmont.cuba.gui.app.security.user.edit.UserEditor;\nimport com.haulmont.tim...
java
chosen
[ { "from": "system", "value": "Fix test to reflect actual behaviour\n\nit would be more consistent if the first starts with `1`, but since it is the default implementation, it would be hard to change\n" }, { "from": "human", "value": "package de.retest.recheck.ui.descriptors.idproviders;\n\nimpor...
java
chosen
[ { "from": "system", "value": "UPDATE remove hit counts + FIX hit ratio was wrongly calculated" }, { "from": "human", "value": "package com.github.atorr0.predictor.statistics;\r\n\r\nimport java.util.ArrayList;\r\nimport java.util.List;\r\n\r\n/**\r\n * Simple stats. for hits & misses.\r\n *\r\n ...
java
chosen
[ { "from": "system", "value": "Remove unnecessary semicolon and clean up some code styling.\n" }, { "from": "human", "value": "package com.yammer.dropwizard.apidocs;\n\nimport java.util.List;\n\npublic class AllowableValues {\n\tprivate List<String> values;\n\t\n\t@SuppressWarnings(\"unused\")\n\...
java
chosen
[ { "from": "system", "value": "Add a slot change event\n\n" }, { "from": "human", "value": "package org.yggard.brokkgui.wrapper.event;\n\nimport org.yggard.brokkgui.wrapper.container.BrokkGuiContainer;\nimport org.yggard.hermod.EventType;\nimport org.yggard.hermod.HermodEvent;\n\nimport net.minec...
java
chosen
[ { "from": "system", "value": "Add note that Java 8 provides some kind of duck typing\n" }, { "from": "human", "value": "package info.schleichardt.training.java8.lecture2;\n\nimport java.security.MessageDigest;\n\npublic class P2_FunctionalInterfacesFirstClassMembers {\n\n @FunctionalInterface...
java
chosen
[ { "from": "system", "value": "Add since tag to javadoc\n" }, { "from": "human", "value": "package de.skuzzle.jeve.builder;\n\nimport java.util.function.Supplier;\n\nimport de.skuzzle.jeve.ListenerStore;\nimport de.skuzzle.jeve.providers.SynchronousEventProvider;\nimport de.skuzzle.jeve.stores.De...
java
chosen
[ { "from": "system", "value": "Remove final modifier from UUID so games can alter it if needed\n" }, { "from": "human", "value": "package com.bitdecay.jump.level;\n\nimport com.bitdecay.jump.BitBody;\nimport com.bitdecay.jump.annotation.CantInspect;\nimport com.bitdecay.jump.geom.BitPointInt;\nim...
java
chosen
[ { "from": "system", "value": "Add \"Ok\" button to about dialog\n" }, { "from": "human", "value": "package de.cketti.holocolorpicker.demo;\n\nimport com.actionbarsherlock.app.SherlockDialogFragment;\n\nimport android.app.Dialog;\nimport android.os.Bundle;\nimport android.text.Html;\nimport andro...
java
chosen
[ { "from": "system", "value": "Check if string is composed of unique characters without using extra\nspace. O(N.pow(2))\n" }, { "from": "human", "value": "package com.sunny.grokkingalgorithms.refresh.ctci.arraysandstrings;\n\nimport java.util.HashSet;\nimport java.util.Set;\n\npublic class Unique...
java
chosen
[ { "from": "system", "value": "XWIKI-8613: Add an autosuggest to any input that requires a document\nreference in macros\n\n * Fix javadoc\n" }, { "from": "human", "value": "/*\n * See the NOTICE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n ...
java
chosen
[ { "from": "system", "value": "Add ability to change playback details (loop/volume) of audio\n" }, { "from": "human", "value": "package com.ezardlabs.dethsquare;\n\nimport com.ezardlabs.dethsquare.util.Utils;\n\npublic final class AudioSource extends Component {\n\tprivate int current = -1;\n\n\t...
java
chosen
[ { "from": "system", "value": "Make inkEffect values public (used for later)\n" }, { "from": "human", "value": "package net.jselby.escapists.data.chunks;\n\nimport net.jselby.escapists.data.Chunk;\nimport net.jselby.escapists.util.ByteReader;\n\n/**\n * The LayerEffects chunk is a set of LayerEff...
java
chosen
[ { "from": "system", "value": "Add password auth when configured on RTB\n" }, { "from": "human", "value": "package com.xrtb.tests;\n\nimport static org.junit.Assert.*;\n\nimport org.junit.Test;\n\nimport redis.clients.jedis.Jedis;\n\nimport com.xrtb.bidder.DeadmanSwitch;\nimport com.xrtb.common.C...
java
chosen
[ { "from": "system", "value": "Replace deprecated usage of 'DynamicRelationshipType'\n" }, { "from": "human", "value": "/*\n * Copyright 2015 Delft University of Technology\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance...
java
chosen
[ { "from": "system", "value": "feat: Use concatenated string for user roles\n" }, { "from": "human", "value": "package in.ac.amu.zhcet.data.model.base.user;\n\nimport in.ac.amu.zhcet.data.model.base.entity.BaseEntity;\nimport lombok.*;\nimport org.hibernate.annotations.DynamicUpdate;\nimport org....
java
chosen
[ { "from": "system", "value": "Update port filter on each service mode change\n" }, { "from": "human", "value": "package com.cisco.trex.stl.gui.controllers.capture;\n\nimport com.exalttech.trex.ui.PortsManager;\nimport com.exalttech.trex.util.Initialization;\nimport javafx.fxml.FXML;\nimport java...
java
chosen
[ { "from": "system", "value": "Fix crash when simulating drying basin craft in ID\n\nCloses CyclopsMC/IntegratedDynamics#1134\n" }, { "from": "human", "value": "package org.cyclops.cyclopscore.recipe.type;\n\nimport net.minecraft.world.entity.player.Player;\nimport net.minecraft.world.inventory.C...
java
chosen
[ { "from": "system", "value": "Add abstract getObserverClass() and use it for dynamic updateMethods()\ninvocation\n\nOPEN - task 33: Problem with EntityModelObserver architecture \nhttp://github.com/DevOpsDistilled/OpERP/issues/issue/33\n\nupdateMethods() are methods in EntityObservers like \"updateItems(Lis...
java
chosen
[ { "from": "system", "value": "Handle Android RN 0.47 breaking change\n" }, { "from": "human", "value": "/**\n * Copyright (c) 2017-present, Wyatt Greenway. All rights reserved.\n *\n * This source code is licensed under the MIT license found in the LICENSE file in the root\n * directory of this ...
java
chosen
[ { "from": "system", "value": "Change alert dialog import so it uses theme\n" }, { "from": "human", "value": "package ca.antonious.habittracker;\n\nimport android.app.Dialog;\nimport android.content.DialogInterface;\nimport android.os.Bundle;\nimport android.support.v4.app.DialogFragment;\nimport...
java
chosen
[ { "from": "system", "value": "Remove any leading '*.' that may be present in the suffix list.\n" }, { "from": "human", "value": "package org.bouncycastle.test.est.examples;\n\nimport java.io.BufferedReader;\nimport java.io.FileInputStream;\nimport java.io.InputStreamReader;\nimport java.util.Arr...
java
chosen
[ { "from": "system", "value": "HAL-301: Add IDs for group navigation items\n" }, { "from": "human", "value": "package org.jboss.as.console.client.widgets.tree;\n\nimport com.google.gwt.user.client.ui.TreeItem;\n\npublic class GroupItem extends TreeItem {\n\n public GroupItem(String title) {\n ...
java
chosen
[ { "from": "system", "value": "Make sure context is not printed twice in processor exceptions\n\nPiperOrigin-RevId: 307466258\n" }, { "from": "human", "value": "/*\n * Copyright 2020 Google Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not\n * use this fil...
java
chosen
[ { "from": "system", "value": "Resolve XXE vulnerability in XML validation - add test\n" }, { "from": "human", "value": "package manage.validations;\n\nimport manage.TestUtils;\nimport org.junit.Test;\n\nimport static org.junit.Assert.assertFalse;\nimport static org.junit.Assert.assertTrue;\n\npu...
java
chosen
[ { "from": "system", "value": "Check position count in Block and Page assertions\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 Licens...
java
chosen
[ { "from": "system", "value": "Make AFE sub type of IAE." }, { "from": "human", "value": "package edu.hm.hafner.shareit.util;\r\n\r\nimport java.util.logging.Level;\r\nimport java.util.logging.Logger;\r\n\r\nimport javax.annotation.CheckForNull;\r\n\r\n/**\r\n * Thrown to indicate that a contract...
java
chosen
[ { "from": "system", "value": "Fix FreeMarker locale, so we don't get . as a thousands separator.\n" }, { "from": "human", "value": "package org.gbif.portal.struts.freemarker;\n\nimport javax.servlet.ServletContext;\n\nimport freemarker.template.TemplateException;\nimport freemarker.template.Temp...
java
chosen
[ { "from": "system", "value": "Fix typo and try to improve comment\n\nThe typo was found by codespell.\n\nSigned-off-by: Stefan Weil <8d4c780fcfdc41841e5070f4c43da8958ba6aec0@weilnetz.de>\n" }, { "from": "human", "value": "package worseThanFailure;\n\npublic class Post20071210 {\n\n int[] _P =...
java
chosen
[ { "from": "system", "value": "Fix for conformance statement error\n" }, { "from": "human", "value": "package uk.nhs.careconnect.ri.gatewaylib.camel.interceptor;\n\nimport org.apache.camel.Exchange;\nimport org.apache.camel.Processor;\n\npublic class GatewayPostProcessor implements Processor\n{\n...
java
chosen
[ { "from": "system", "value": "Apply spotless java google code format\n" }, { "from": "human", "value": "package com.axelor.apps.base.web;\n\nimport com.axelor.apps.base.db.Year;\nimport com.axelor.apps.base.service.YearService;\nimport com.axelor.exception.AxelorException;\nimport com.axelor.exc...
java
chosen
[ { "from": "system", "value": "Replace the noOp constant for a noOp static function\n\nReplace the noOp constant for a noOp static function\n\n#488\n" }, { "from": "human", "value": "package org.axonframework.config;\n\n/**\n * Interface describing a configurer for a module in the Axon Configurat...
java
chosen
[ { "from": "system", "value": "Add some constants for the JS launcher\n" }, { "from": "human", "value": "package com.redhat.ceylon.eclipse.core.launch;\n\nimport static com.redhat.ceylon.eclipse.ui.CeylonPlugin.PLUGIN_ID;\n\nimport org.eclipse.jdt.launching.IJavaLaunchConfigurationConstants;\n\np...
java
chosen
[ { "from": "system", "value": "Add ability to reference users by ID\n" }, { "from": "human", "value": "package co.phoenixlab.discord.commands;\n\nimport co.phoenixlab.discord.MessageContext;\nimport co.phoenixlab.discord.api.entities.Channel;\nimport co.phoenixlab.discord.api.entities.Message;\ni...
java
chosen
[ { "from": "system", "value": "Fix displaying TwitterException when twitter unreachable." }, { "from": "human", "value": "package com.vaguehope.onosendai.provider;\n\nimport twitter4j.TwitterException;\n\npublic final class TaskUtils {\n\n\tprivate TaskUtils () {\n\t\tthrow new AssertionError();\...
java
chosen
[ { "from": "system", "value": "[Green] Test empty basket working correctly\n" }, { "from": "human", "value": "package com.flipper83.katapotter;\n\nimport java.util.List;\n\npublic class BasketCalculator {\n public int calculatePrice(List<String> books) {\n return -1;\n }\n}\n" }, ...
java
chosen
[ { "from": "system", "value": "Remove superfluous parens on enums\n" }, { "from": "human", "value": "/*\n * Copyright (C) 2015 Zane Benefits\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 o...
java
chosen
[ { "from": "system", "value": "Implement versioned crawling and remapping.\n" }, { "from": "human", "value": "package no.uio.ifi.trackfind.backend.services;\n\nimport org.apache.commons.collections4.CollectionUtils;\nimport org.eclipse.jgit.api.Git;\nimport org.eclipse.jgit.api.errors.GitAPIExcep...
java
chosen
[ { "from": "system", "value": "ui/web: Return a non-null partlist from the fake report\n" }, { "from": "human", "value": "package org.openengsb.opencit.ui.web;\n\nimport java.util.List;\n\nimport org.openengsb.core.api.model.OpenEngSBModelEntry;\nimport org.openengsb.domain.report.model.Report;\n...
java
chosen
[ { "from": "system", "value": "Fix symbols, by creating extensionpoint domain?\n" }, { "from": "human", "value": "package com.github.kostyasha.github.integration.multibranch.handler;\n\nimport hudson.DescriptorExtensionList;\nimport hudson.model.Descriptor;\nimport jenkins.model.Jenkins;\n\n/**\n...
java
chosen
[ { "from": "system", "value": "Fix invsee inventory closing when being too far away\n" }, { "from": "human", "value": "package com.ptsmods.morecommands.api.miscellaneous;\n\nimport net.minecraft.entity.player.PlayerEntity;\nimport net.minecraft.entity.player.PlayerInventory;\nimport net.minecraft...
java
chosen
[ { "from": "system", "value": "Rename master… to base… dataEntity\n" }, { "from": "human", "value": "package org.synyx.urlaubsverwaltung.person.masterdata;\n\nimport org.springframework.stereotype.Service;\n\nimport java.util.Optional;\n\nimport static org.synyx.urlaubsverwaltung.person.masterdat...
java
chosen
[ { "from": "system", "value": "Delete sample changelog at end of test - check for open file leak\n\nJENKINS-20585 reports that changelog.xml cannot be deleted on Windows\nbecause it is held busy by a process. This test assumes that process\nis Jenkins itself, and that the GitChangeLogParser.parse() method i...
java
chosen
[ { "from": "system", "value": "Make sure the id is between 1 and 10000" }, { "from": "human", "value": "\npackage com.example.helloworld.resources;\n\nimport java.util.Random;\n\nimport javax.ws.rs.GET;\nimport javax.ws.rs.Path;\nimport javax.ws.rs.Produces;\nimport javax.ws.rs.QueryParam;\nimpor...
java
chosen
[ { "from": "system", "value": "Add UVB mapping to constants\n" }, { "from": "human", "value": "package io.github.rlee287.jrainbuck.constants;\n\npublic class SwitchList {\n\t//public static final int CLASSIC_SIZE=30000;\n\tpublic static final String[] LIST_SWITCHES={\"-file\",\"-input\",\"-output...
java
chosen
[ { "from": "system", "value": "Allow empty message initialization for raw message\n" }, { "from": "human", "value": "/*\n * Copyright 2006-2014 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in complia...
java
chosen
[ { "from": "system", "value": "Set the priority to allow user changes\n" }, { "from": "human", "value": "package net.trajano.ms.engine.jaxrs;\n\nimport javax.ws.rs.ext.ContextResolver;\nimport javax.ws.rs.ext.Provider;\n\nimport org.springframework.stereotype.Component;\n\nimport com.fasterxml.ja...
java
chosen
[ { "from": "system", "value": "Return static response in doGet()\n" }, { "from": "human", "value": "// Copyright 2019 Google LLC\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 copy...
java
chosen
[ { "from": "system", "value": "Fix promotion and approval for media fields\n" }, { "from": "human", "value": "/*\n * #%L\n * BroadleafCommerce Framework\n * %%\n * Copyright (C) 2009 - 2014 Broadleaf Commerce\n * %%\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may...
java
chosen
[ { "from": "system", "value": "Use new temporary access token for testing.\n" }, { "from": "human", "value": "package com.uwetrottmann.getglue;\n\nimport junit.framework.TestCase;\nimport org.apache.oltu.oauth2.common.exception.OAuthProblemException;\nimport org.apache.oltu.oauth2.common.exceptio...
java
chosen
[ { "from": "system", "value": "Add setCheckedPositions() for multi-select case.\n" }, { "from": "human", "value": "package com.nex3z.togglebuttongroup;\n\nimport android.content.Context;\nimport android.util.AttributeSet;\n\npublic class MultiSelectToggleGroup extends ToggleButtonGroup {\n pri...
java
chosen
[ { "from": "system", "value": "Revert \"no need for a SetMultimap explicitly here\"\n\nThis reverts commit c017344794d7ceee48783bb6af867851b0aabeaa.\n" }, { "from": "human", "value": "package com.bbn.kbp.events2014.bin.QA.Warnings;\n\nimport com.bbn.kbp.events2014.AnswerKey;\n\nimport com.google....
java
chosen
[ { "from": "system", "value": "Use AbstractBaseJavaLocalInspectionTool instead of deprecated BaseJavaLocalInspectionTool\n" }, { "from": "human", "value": "package com.github.stokito.IdeaSingletonInspection;\n\nimport com.intellij.codeInspection.BaseJavaLocalInspectionTool;\nimport com.intellij.c...
java
chosen
[ { "from": "system", "value": "Remove absolute path name from calls to phantomjs.\n\nChange-Id: I58af53ecf9c77f68c730f7a429586a982ead8cb1\n" }, { "from": "human", "value": "// Copyright 2009 Google Inc. All Rights Reserved.\n\npackage com.google.appinventor.blocklyeditor;\n\nimport java.io.IOExce...
java
chosen