conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Remove throws exception on main()\n" }, { "from": "human", "value": "package com.redpois0n.gitj;\n\nimport java.io.File;\n\nimport javax.swing.UIManager;\n\nimport com.redpois0n.git.Repository;\nimport com.redpois0n.gitj.ui.MainFrame;\n\npublic class Main {\n\n\tpub...
java
chosen
[ { "from": "system", "value": "Switch back to usage stas cronjob" }, { "from": "human", "value": "package com.google.sampling.experiential.server.stats.usage;\n\nimport java.io.IOException;\nimport java.util.logging.Logger;\n\npublic class UsageStatsBlobWriter {\n\n private static final Logger l...
java
chosen
[ { "from": "system", "value": "Adjust integration tests to match new number of papers\n" }, { "from": "human", "value": "package ch.difty.sipamato.persistance.jooq;\n\npublic final class TestDbConstants {\n\n public static final int RECORD_COUNT_PREPOPULATED = 36;\n public static final Long...
java
chosen
[ { "from": "system", "value": "fix(ui): Add wait for file to appear in Dropbox\n" }, { "from": "human", "value": "package io.syndesis.qe.steps.other;\n\nimport com.dropbox.core.DbxException;\nimport cucumber.api.java.en.When;\nimport io.syndesis.qe.utils.DropBoxUtils;\nimport org.assertj.core.api...
java
chosen
[ { "from": "system", "value": "Add change will now de-serialize a PlanTreeNode children when readElement is called.\n\ngit-svn-id: 4b387fe5ada7764508e2ca96c335714e4c1692c6@2230 0d517254-b314-0410-acde-c619094fa49f\n" }, { "from": "human", "value": "package edu.northwestern.bioinformatics.studycal...
java
chosen
[ { "from": "system", "value": "Fix for broken unit test in Linux" }, { "from": "human", "value": "/*\n * Copyright 2017 anand.\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 o...
java
chosen
[ { "from": "system", "value": "Enable linking external URI to Help button\n" }, { "from": "human", "value": "package org.workcraft.presets;\n\nimport org.workcraft.gui.dialogs.ModalDialog;\nimport org.workcraft.utils.DesktopApi;\n\nimport javax.swing.*;\nimport java.awt.*;\nimport java.awt.event....
java
chosen
[ { "from": "system", "value": "Add new method for component retrieve\n" }, { "from": "human", "value": "package com.github.aleksandermielczarek.napkin;\n\nimport android.content.Context;\n\n/**\n * Created by Aleksander Mielczarek on 14.05.2016.\n */\npublic class Napkin {\n\n private Napkin()...
java
chosen
[ { "from": "system", "value": "Fix potential bugs follow PMD\n" }, { "from": "human", "value": "package com.lenguyenthanh.nimble.view;\n\nimport android.app.Activity;\nimport android.content.Context;\nimport android.content.ContextWrapper;\n\npublic class ViewHelper {\n private ViewHelper() {\n ...
java
chosen
[ { "from": "system", "value": "Remove checks that are not valid as we already have graph links between typed graphs and instanced graphs and will probably have links between type graphs sooner rather than later\n" }, { "from": "human", "value": "package org.realityforge.replicant.server;\n\nimpor...
java
chosen
[ { "from": "system", "value": "Reformat code, remove hardcoded path.\n" }, { "from": "human", "value": "/*\n * Cuelib library for manipulating cue sheets.\n * Copyright (C) 2007-2009 Jan-Willem van den Broek\n * \n * This library is free software; you can redistribute it and/or\n * modify it unde...
java
chosen
[ { "from": "system", "value": "Allow damage to be a float\n" }, { "from": "human", "value": "package com.ezardlabs.lostsector.objects.weapons;\n\nimport com.ezardlabs.dethsquare.Animation;\nimport com.ezardlabs.dethsquare.Collider;\nimport com.ezardlabs.dethsquare.GameObject;\nimport com.ezardlab...
java
chosen
[ { "from": "system", "value": "Add default values for command prefix and evaluation method\n" }, { "from": "human", "value": "package org.metaborg.spoofax.core.shell;\n\nimport javax.annotation.Nullable;\n\nimport org.metaborg.spoofax.core.esv.ESVReader;\nimport org.spoofax.interpreter.terms.IStr...
java
chosen
[ { "from": "system", "value": "Set adapter for select app theme spinner\n" }, { "from": "human", "value": "package com.averi.worldscribe.activities;\n\nimport android.support.v7.app.AppCompatActivity;\nimport android.os.Bundle;\nimport android.support.v7.widget.Toolbar;\n\nimport com.averi.worlds...
java
chosen
[ { "from": "system", "value": "Increase package version for ActionBatch addition\n" }, { "from": "human", "value": "/*\n * #%L\n * ACS AEM Commons Bundle\n * %%\n * Copyright (C) 2016 Adobe\n * %%\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file ...
java
chosen
[ { "from": "system", "value": "Make doc more strictly correct.\n" }, { "from": "human", "value": "/*\n * Copyright 2018, TeamDev. All rights reserved.\n *\n * Redistribution and use in source and/or binary forms, with or without\n * modification, must retain the above copyright notice and the fol...
java
chosen
[ { "from": "system", "value": "Add new image to hug interaction\n\n" }, { "from": "human", "value": "package com.avairebot.orion.commands.interaction;\n\nimport com.avairebot.orion.Orion;\nimport com.avairebot.orion.contracts.commands.InteractionCommand;\n\nimport java.util.Arrays;\nimport java.u...
java
chosen
[ { "from": "system", "value": "Add error log for execCheck\n" }, { "from": "human", "value": "/*\n * Skybot, a multipurpose discord bot\n * Copyright (C) 2017 - 2019 Duncan \"duncte123\" Sterken & Ramid \"ramidzkh\" Khan\n *\n * This program is free software: you can redistribute it and/or ...
java
chosen
[ { "from": "system", "value": "Fix hot pepper cheese hardness bug" }, { "from": "human", "value": "package simplemods.cheesemod.blocks;\n\nimport java.util.Random;\n\nimport simplemods.cheesemod.BaseMod;\nimport simplemods.cheesemod.CommonProxy;\nimport simplemods.cheesemod.inventory.CCreativeTab...
java
chosen
[ { "from": "system", "value": "DPRO-769: Use wild card for static content controller to support multiple pages\n" }, { "from": "human", "value": "/*\n * $HeadURL$\n * $Id$\n * Copyright (c) 2006-2013 by Public Library of Science http://plos.org http://ambraproject.org\n * Licensed under the Apach...
java
chosen
[ { "from": "system", "value": "Remove int enum values, as they are unneeded\n" }, { "from": "human", "value": "package com.openxc.measurements;\n\nimport java.util.Locale;\n\nimport com.openxc.units.State;\n\n/** \n * The ClimateMode measurement is used to start the AC/Heater/Fan \n */\npublic cl...
java
chosen
[ { "from": "system", "value": "Introduce pause in the output so as not to overwhelm the IPC mechanism between test worker and build host.\n" }, { "from": "human", "value": "package ${packageName};\n\nimport static org.junit.Assert.*;\n\npublic class ${testClassName} {\n\n private final ${produ...
java
chosen
[ { "from": "system", "value": "Add prefixes for timers and counters to emulate StatsD behavior.\n" }, { "from": "human", "value": "package de.is24.util.monitoring.metrics;\n\nimport com.codahale.metrics.MetricRegistry;\nimport de.is24.util.monitoring.AbstractMonitorPlugin;\nimport java.util.concu...
java
chosen
[ { "from": "system", "value": "Correct way to detect file language\n" }, { "from": "human", "value": "package com.rudeshko.csscomb;\n\nimport com.intellij.openapi.actionSystem.AnAction;\nimport com.intellij.openapi.actionSystem.AnActionEvent;\nimport com.intellij.openapi.actionSystem.LangDataKeys...
java
chosen
[ { "from": "system", "value": "Use @Ignore instead of commenting @Test\n" }, { "from": "human", "value": "package com.github.vlsi.mat.tests.calcite;\n\nimport org.junit.Test;\n\nimport java.sql.SQLException;\n\npublic class GetByKeyTests extends SampleHeapDumpTests {\n @Test\n public void testH...
java
chosen
[ { "from": "system", "value": "Add more information in the dataabse DTO" }, { "from": "human", "value": "/*\n * CODENVY CONFIDENTIAL\n * __________________\n *\n * [2013] - [2014] Codenvy, S.A.\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the prop...
java
chosen
[ { "from": "system", "value": "Apply default preference values in xml to preference store\n" }, { "from": "human", "value": "/*******************************************************************************\n * Copyright (c) Incoming Pty. Ltd. 2015\n ***********************************************...
java
chosen
[ { "from": "system", "value": "Reduce contention during lifecycle tracking\n" }, { "from": "human", "value": "/*\n * Copyright 2010 Proofpoint, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * Y...
java
chosen
[ { "from": "system", "value": "PROC-361: Fix compile error due to invalid import\n" }, { "from": "human", "value": "package com.indeed.proctor.common.dynamic;\n\nimport com.indeed.proctor.common.model.ConsumableTestDefinition;\nimport com.sun.javaws.exceptions.InvalidArgumentException;\n\nimport ...
java
chosen
[ { "from": "system", "value": "Clean up, make scoring function utterly useless for testing fun\n" }, { "from": "human", "value": "package com.grayben.riskExtractor.htmlScorer.elementScorers;\n\nimport org.jsoup.nodes.Element;\nimport org.jsoup.parser.Tag;\n\n/**\n * Score the segmentation of an {...
java
chosen
[ { "from": "system", "value": "Put Test Results from BeadsChecker Test into build dir.\n" }, { "from": "human", "value": "package net.happybrackets.extras.assignment_autograding;\n\nimport java.io.IOException;\n\n/**\n * Created by ollie on 8/08/2016.\n */\npublic class TestBeadsChecker {\n\n ...
java
chosen
[ { "from": "system", "value": "Change command name in hint\n" }, { "from": "human", "value": "package com.carrot.carrotshop.listener;\n\nimport org.spongepowered.api.event.Listener;\nimport org.spongepowered.api.event.Order;\nimport org.spongepowered.api.event.network.ClientConnectionEvent;\nimpo...
java
chosen
[ { "from": "system", "value": "Fix for Game Center to open the correct views\n" }, { "from": "human", "value": "\npackage org.robovm.bindings.cocoatouch.gamekit;\n\nimport org.robovm.rt.bro.ValuedEnum;\n\npublic enum GKGameCenterViewControllerState implements ValuedEnum {\n\tGKGameCenterViewContr...
java
chosen
[ { "from": "system", "value": "Revert \"CAF-1888: Updated to include workerName variable for reporting functionality\"\n\nThis reverts commit 43ede1993e9bbe1bcbc161594c62b2f175ad782e.\n" }, { "from": "human", "value": "/*\n * copyright 2016 Hewlett Packard Enterprise\n */\npackage com.hpe.caf.wor...
java
chosen
[ { "from": "system", "value": "Add utility method for making primitive int arrays.\n\nIn another astounding feat of unhelpfulness, Java has no built-in way of\ngetting a primitive array of integers out of a Collection of Integers.\nI figure this isn't the only time I'm going to need this, so I made a\nmethod...
java
chosen
[ { "from": "system", "value": "Disable vanilla armours is turned off by default\n" }, { "from": "human", "value": "package teamOD.armourReborn.common.core.handler;\n\nimport java.io.File;\n\nimport net.minecraftforge.common.config.Configuration;\nimport net.minecraftforge.common.config.Property;\...
java
chosen
[ { "from": "system", "value": "Extend CoreTestCase for access to assertPositve/Negative, others\n" }, { "from": "human", "value": "package edu.northwestern.bioinformatics.studycalendar.testing;\n\nimport junit.framework.TestCase;\n\nimport java.lang.reflect.Method;\nimport java.util.Set;\nimport ...
java
chosen
[ { "from": "system", "value": "SWITCHYARD-329: Add BPM annotations to mark methods as process action triggers\n" }, { "from": "human", "value": "/* \n * JBoss, Home of Professional Open Source \n * Copyright 2011 Red Hat Inc. and/or its affiliates and other contributors\n * as indicated by the @a...
java
chosen
[ { "from": "system", "value": "Make rectangle image view extend AppCompatImageView\n" }, { "from": "human", "value": "package com.lopei.collageview;\n\nimport android.content.Context;\nimport android.util.AttributeSet;\nimport android.widget.ImageView;\n\nimport com.lopei.collageview.CollageView....
java
chosen
[ { "from": "system", "value": "Adjust the config params according to the exercise description\n" }, { "from": "human", "value": "package org.cniska.noc3;\n\n/**\n * Configuration parameters for the application.\n */\nclass Config {\n // Adjust these values if necessary.\n int numberOfPlayer...
java
chosen
[ { "from": "system", "value": "Change result scale from 6 to 9\n" }, { "from": "human", "value": "package com.saraighatsoftware.flexicalculator;\n\nimport java.math.BigDecimal;\nimport java.math.RoundingMode;\nimport java.text.DecimalFormat;\n\nclass ResultFormat {\n\n private static final int...
java
chosen
[ { "from": "system", "value": "Fix an issue with submission selection by just using the index of the selected submission.\n" }, { "from": "human", "value": "package edu.pdx.cs410J.grader.poa.ui;\n\nimport com.google.inject.Singleton;\nimport edu.pdx.cs410J.grader.poa.POASubmissionsView;\n\nimport...
java
chosen
[ { "from": "system", "value": "Rename method findByID to findById\n" }, { "from": "human", "value": "package org.realityforge.replicant.client;\n\nimport arez.component.NoSuchEntityException;\nimport java.util.List;\nimport javax.annotation.Nonnull;\nimport javax.annotation.Nullable;\n\n/**\n * T...
java
chosen
[ { "from": "system", "value": "KURJUN-136: Add token to be transfered between registered peers" }, { "from": "human", "value": "package io.subutai.common.peer;\n\n\nimport org.codehaus.jackson.annotate.JsonIgnore;\n\n\n/**\n * Registration DTO\n */\npublic class RegistrationData\n{\n private P...
java
chosen
[ { "from": "system", "value": "Fix MappingInstantiationException for no default constructor\n" }, { "from": "human", "value": "/*\n * Copyright 2015 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in co...
java
chosen
[ { "from": "system", "value": "Remove 'en' restriction when checking provenance for blackout\n" }, { "from": "human", "value": "/*\n * To change this template, choose Tools | Templates\n * and open the template in the editor.\n */\npackage org.dspace.doi;\n\nimport java.sql.SQLException;\nimport ...
java
chosen
[ { "from": "system", "value": "Update section decorator to handle notifications\n" }, { "from": "human", "value": "package ca.antonious.viewcelladapter.decorators;\n\nimport ca.antonious.viewcelladapter.sections.AbstractSection;\n\n/**\n * Created by George on 2016-12-17.\n */\n\npublic abstract ...
java
chosen
[ { "from": "system", "value": "Use Logging instead of printStackTrace()\n\nRB=279101\nR=stakiar,kgoodhop,lqiao,ynli\nA=ynli\n" }, { "from": "human", "value": "package com.linkedin.uif.source.extractor.extract.restapi;\n\nimport java.io.IOException;\n\nimport com.linkedin.uif.configuration.WorkUni...
java
chosen
[ { "from": "system", "value": "Tweak documentation for market listener in matching engine\n" }, { "from": "human", "value": "package org.jvirtanen.parity.match;\n\n/**\n * <code>MarketListener</code> is the interface for outbound events from the\n * matching engine.\n */\npublic interface MarketL...
java
chosen
[ { "from": "system", "value": "Complete the model structure of editor task API response.\n\nChange-Id: Ic74903da379ed4d4910790cda1ea55c80bf84ef7\n" }, { "from": "human", "value": "package org.wikipedia.dataclient.mwapi;\n\nimport android.support.annotation.Nullable;\n\nimport com.google.gson.anno...
java
chosen
[ { "from": "system", "value": "Change data type of terminal data\n" }, { "from": "human", "value": "package backend;\n\nimport java.security.interfaces.RSAPrivateKey;\n\n/**\n * Wrapper class for the initial data that is to be sent to the\n * smartcard/terminal upon initialization.\n * \n * TODO/...
java
chosen
[ { "from": "system", "value": "Refactor PartyManager as per API.\n" }, { "from": "human", "value": "/*\n * Copyright 2014 Gabriel Harris-Rouquette\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...
java
chosen
[ { "from": "system", "value": "Remove JerseyClientConfig from Config class\n" }, { "from": "human", "value": "package se.christianjensen.maintenance;\n\nimport com.fasterxml.jackson.annotation.JsonProperty;\nimport io.dropwizard.Configuration;\nimport io.dropwizard.client.JerseyClientConfiguratio...
java
chosen
[ { "from": "system", "value": "Change the name of the method used to get the string representation of the ProteomeMemberhip emum - we are no longer going to rely on the library generated version. Provide the value to use\n" }, { "from": "human", "value": "package uk.ac.ebi.quickgo.geneproduct.com...
java
chosen
[ { "from": "system", "value": "Use stable ids for the RecyclerView adapter\n" }, { "from": "human", "value": "package com.appyvet.rangebarsample;\n\nimport android.app.Activity;\nimport android.os.Bundle;\nimport android.support.annotation.NonNull;\nimport android.support.annotation.Nullable;\nim...
java
chosen
[ { "from": "system", "value": "Make reading from sockets more robust\n\n- throw SocketException if nothing could be read from the socket\n- use timeout version of socket read\n" }, { "from": "human", "value": "package net.bourgau.philippe.concurrency.kata;\n\nimport org.apache.commons.io.IOUtils;...
java
chosen
[ { "from": "system", "value": "Use Vector3D instead of unimplemented custom class\n" }, { "from": "human", "value": "package org.ratchetrobotics.algorithms.ai.planning;\n\n/**\n * Documentation here.\n *\n * @author Liam Marshall\n * @version 1.0\n */\npublic class ActionThing {\n public Actio...
java
chosen
[ { "from": "system", "value": "runtime: Fix signal handling with --nohooks\n" }, { "from": "human", "value": "// Copyright 2021 Code Intelligence GmbH\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 missing call to start shell scripts.\n" }, { "from": "human", "value": "/*\n * Copyright (C) 2009 Google Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not\n * use this file except in compliance with the License. You may o...
java
chosen
[ { "from": "system", "value": "Change visiablity of exception to public\n" }, { "from": "human", "value": "/*\n * Copyright 2017 Max Schafer, Ammar Mahdi, Riley Dixon, Steven Weikai Lu, Jiaxiong Yang\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy of this soft...
java
chosen
[ { "from": "system", "value": "Fix showcase to old (svn) state.\n" }, { "from": "human", "value": "/*\n * This is part of Geomajas, a GIS framework, http://www.geomajas.org/.\n *\n * Copyright 2008-2014 Geosparc nv, http://www.geosparc.com/, Belgium.\n *\n * The program is available in open sourc...
java
chosen
[ { "from": "system", "value": "Move server config from before() to start()\n" }, { "from": "human", "value": "package com.netflix.client.netty.udp;\n\nimport io.netty.channel.socket.DatagramPacket;\nimport io.reactivex.netty.protocol.udp.server.UdpServer;\n\nimport java.net.DatagramSocket;\nimpor...
java
chosen
[ { "from": "system", "value": "Add a proper Riak health check\n" }, { "from": "human", "value": "/**\n * Copyright 2016 Smoke Turner, 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 obt...
java
chosen
[ { "from": "system", "value": "Add scrollPane to pane with variable declared" }, { "from": "human", "value": "package devopsdistilled.operp.client.items;\n\nimport javax.swing.JComponent;\nimport javax.swing.JPanel;\nimport javax.swing.JScrollPane;\nimport javax.swing.JTable;\n\nimport devopsdist...
java
chosen
[ { "from": "system", "value": "Fix for ArrayOutOfBoundsException if reservoir has too many samples and\ncauses integer overflow." }, { "from": "human", "value": "package com.codahale.metrics;\n\nimport static java.lang.Math.min;\n\n/**\n * A {@link Reservoir} implementation backed by a sliding wi...
java
chosen
[ { "from": "system", "value": "Check if stack is empty before popping off a message.\n" }, { "from": "human", "value": "package org.tigris.subversion.svnclientadapter.javahl;\n\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.Stack;\n\nimport org.tigris.subversion.javahl.Cha...
java
chosen
[ { "from": "system", "value": "Fix copyright on new file\n" }, { "from": "human", "value": "/*\n * Copyright 2018 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 of ...
java
chosen
[ { "from": "system", "value": "Unify variable names in components(junit5-spring)\n" }, { "from": "human", "value": "/*\n * (C) Copyright 2017 Boni Garcia (http://bonigarcia.github.io/)\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except i...
java
chosen
[ { "from": "system", "value": "Use findById as lookup method name.\n" }, { "from": "human", "value": "package uk.ac.ebi.quickgo.geneproduct.common;\n\nimport uk.ac.ebi.quickgo.geneproduct.common.document.GeneProductDocument;\n\nimport java.util.List;\nimport java.util.Optional;\nimport org.spring...
java
chosen
[ { "from": "system", "value": "Add @NotNull validation to the Anxiety Identity java file. Keep the form hydration logic in the HTML, because the radio button options are HTML elements, not Strings. Migrating that logic to the Java file would be a pain.\n" }, { "from": "human", "value": "package e...
java
chosen
[ { "from": "system", "value": "Include annotations in the SLF4J logged Spans.\n" }, { "from": "human", "value": "package com.hypnoticocelot.telemetry.example.sink;\n\nimport com.hypnoticocelot.telemetry.tracing.Span;\nimport com.hypnoticocelot.telemetry.tracing.SpanSink;\nimport org.slf4j.Logger;...
java
chosen
[ { "from": "system", "value": "Replace anonymous class with lambda\n" }, { "from": "human", "value": "package org.springframework.samples.petclinic.system;\n\nimport java.util.concurrent.TimeUnit;\nimport javax.cache.CacheManager;\n\nimport org.ehcache.config.CacheConfiguration;\nimport org.ehcac...
java
chosen
[ { "from": "system", "value": "Use 2 solenoids instead of 1. Also have startExpand and startRetract instead of just one." }, { "from": "human", "value": "package edu.wpi.first.wpilibj.templates.commands;\n\nimport edu.wpi.first.wpilibj.templates.dashboardrelations.DashboardStore;\nimport edu.wpi....
java
chosen
[ { "from": "system", "value": "Add PHP Composer vendor exception" }, { "from": "human", "value": "package com.welovecoding.nbeditorconfig.processor;\n\nimport org.openide.filesystems.FileObject;\n\npublic class SmartSkip {\n\n public static final boolean IS_ON = true;\n static final String[] IG...
java
chosen
[ { "from": "system", "value": "Improve handling negative test expression (reuse the positive\nexpression)." }, { "from": "human", "value": "/*******************************************************************************\n * This file is part of Pebble.\n * \n * Copyright (c) 2014 by Mitchell Bös...
java
chosen
[ { "from": "system", "value": "Increment minor version to 2.12 to prepare for a new release.\n\n-------------\nCreated by MOE: https://github.com/google/moe\nMOE_MIGRATED_REVID=153211686\n" }, { "from": "human", "value": "/**\n * Copyright 2015 Google Inc. All Rights Reserved.\n *\n * Licensed un...
java
chosen
[ { "from": "system", "value": "Throw custom error when status code is 404\n\n#13763:As a developer, I will have implemented the Try My Policy UI and integrated with backend [v3.0]\n" }, { "from": "human", "value": "package gov.samhsa.c2s.c2suiapi.service;\n\nimport feign.FeignException;\nimport g...
java
chosen
[ { "from": "system", "value": "Correct concat helper separator handler" }, { "from": "human", "value": "/*\r\n *\r\n\t\tFugerit Java Library is distributed under the terms of :\r\n\r\n Apache License\r\n Version 2.0, January 2004\r\n ...
java
chosen
[ { "from": "system", "value": "Fix test as we now have the address mapping (nested type)\n" }, { "from": "human", "value": "package org.elasticsearch.mapping;\n\nimport java.beans.IntrospectionException;\nimport java.io.IOException;\n\nimport junit.framework.Assert;\n\nimport org.elasticsearch.ma...
java
chosen
[ { "from": "system", "value": "Fix spawn painting encode for 1.4.7-1.6.5" }, { "from": "human", "value": "package protocolsupport.protocol.packet.middleimpl.clientbound.play.v_1_4__1_5__1_6;\n\nimport protocolsupport.api.ProtocolVersion;\nimport protocolsupport.protocol.packet.ClientBoundPacket;\...
java
chosen
[ { "from": "system", "value": "Add static factory method for settings." }, { "from": "human", "value": "\npackage com.zygon.htm.core;\n\nimport com.google.common.util.concurrent.AbstractScheduledService;\nimport java.util.concurrent.TimeUnit;\n\n/**\n *\n * @author zygon\n */\npublic abstract cla...
java
chosen
[ { "from": "system", "value": "Remove extra line in line 33" }, { "from": "human", "value": "package seedu.ezdo.model.task;\n\nimport static org.junit.Assert.assertFalse;\nimport static org.junit.Assert.assertTrue;\n\nimport org.junit.Test;\n\nimport seedu.ezdo.model.todo.StartDate;\n\npublic cla...
java
chosen
[ { "from": "system", "value": "Reset root path config for each test.\n" }, { "from": "human", "value": "package org.rapidoid.test;\n\n/*\n * #%L\n * rapidoid-commons\n * %%\n * Copyright (C) 2014 - 2015 Nikolche Mihajlovski and contributors\n * %%\n * Licensed under the Apache License, Version 2....
java
chosen
[ { "from": "system", "value": "Add united states to the languages\n" }, { "from": "human", "value": "package com.proxerme.library.parameters;\n\nimport android.support.annotation.StringDef;\n\nimport java.lang.annotation.ElementType;\nimport java.lang.annotation.Retention;\nimport java.lang.annot...
java
chosen
[ { "from": "system", "value": "Add servlet functionality to retrieve events volunteering.\n" }, { "from": "human", "value": "package com.google.sps.servlets;\n\nimport com.google.appengine.api.users.UserServiceFactory;\nimport java.io.IOException;\nimport javax.servlet.annotation.WebServlet;\nimp...
java
chosen
[ { "from": "system", "value": "Remove @NonNull from a nullable parameter \n\nSlot data can be null: https://wiki.vg/Slot_Data" }, { "from": "human", "value": "package com.github.steveice10.mc.protocol.packet.ingame.server.window;\n\nimport com.github.steveice10.mc.protocol.data.game.entity.metad...
java
chosen
[ { "from": "system", "value": "Add singleton scope to navigator." }, { "from": "human", "value": "/**\n * Copyright (C) 2014 android10.org. All rights reserved.\n * @author Fernando Cejas (the android10 coder)\n */\npackage com.fernandocejas.android10.sample.presentation.navigation;\n\nimport and...
java
chosen
[ { "from": "system", "value": "Add throws declaration for NullFieldException\n\nOPEN - task 45: Creation of Item with null value for Product and Brand\npossible \nhttp://github.com/DevOpsDistilled/OpERP/issues/issue/45" }, { "from": "human", "value": "package devopsdistilled.operp.client.items.co...
java
chosen
[ { "from": "system", "value": "Clear the texture cache in onResume, not onCreate().\n" }, { "from": "human", "value": "package au.com.codeka.warworlds.game.starfield;\n\nimport java.io.IOException;\n\nimport org.andengine.entity.scene.Scene;\n\nimport android.annotation.SuppressLint;\nimport andr...
java
chosen
[ { "from": "system", "value": "Clarify ambiguous reference to Empty class\n" }, { "from": "human", "value": "package org.workcraft.plugins.circuit.tools;\n\nimport java.awt.Color;\n\nimport org.workcraft.gui.graph.tools.Decoration;\n\npublic interface StateDecoration extends Decoration {\n boo...
java
chosen
[ { "from": "system", "value": "Clear session status on logout\n" }, { "from": "human", "value": "/*\n * Copyright 2012 SURFnet bv, The Netherlands\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...
java
chosen
[ { "from": "system", "value": "Remove path attribute from PostMapping\n" }, { "from": "human", "value": "package nl.ekholabs.nlp.controller;\n\nimport java.io.IOException;\n\nimport nl.ekholabs.nlp.model.TextResponse;\nimport nl.ekholabs.nlp.service.SpeechToTextService;\nimport org.springframewor...
java
chosen
[ { "from": "system", "value": "Add \"allowed\" parameter to CheckBlock action\n" }, { "from": "human", "value": "package com.elmakers.mine.bukkit.action.builtin;\n\nimport com.elmakers.mine.bukkit.action.BaseSpellAction;\nimport com.elmakers.mine.bukkit.api.action.CastContext;\nimport com.elmaker...
java
chosen
[ { "from": "system", "value": "Revert \"Temporarily disallow rule cloning (for benchmarks)\"\n\nThis reverts commit 15c01bdcc559e04fad09f19672e7306b3e316f2a.\n" }, { "from": "human", "value": "package org.metaborg.meta.lang.dynsem.interpreter.nodes.rules;\n\nimport org.metaborg.meta.lang.dynsem.i...
java
chosen
[ { "from": "system", "value": "Add unit test to verify javacc dependency configuration\n" }, { "from": "human", "value": "package ca.coglinc.gradle.plugins.javacc;\n\nimport java.util.HashMap;\nimport java.util.Map;\n\nimport org.gradle.api.Project;\nimport org.gradle.api.Task;\nimport org.gradle...
java
chosen
[ { "from": "system", "value": "Save tap number to actual player ID received from intent\n" }, { "from": "human", "value": "package com.example.mirnabouchra.cloudolympics;\n\nimport android.app.Activity;\nimport android.os.Bundle;\nimport android.util.Log;\nimport android.view.GestureDetector;\nim...
java
chosen
[ { "from": "system", "value": "Add code to test the parser\n" }, { "from": "human", "value": "package com.davidmogar.nji;\n\nimport com.davidmogar.nji.lexicon.Lexicon;\nimport com.davidmogar.nji.syntactic.Parser;\n\nimport java.io.File;\nimport java.io.FileReader;\nimport java.io.IOException;\n\n...
java
chosen
[ { "from": "system", "value": "Add test for chunk load data" }, { "from": "human", "value": "package info.u_team.u_team_test.blockentity;\n\nimport info.u_team.u_team_core.blockentity.UBlockEntity;\nimport info.u_team.u_team_test.init.TestBlockEntityTypes;\nimport net.minecraft.core.BlockPos;\nim...
java
chosen
[ { "from": "system", "value": "Add ignoreUnknown to training text type\n" }, { "from": "human", "value": "package org.granite.classification.model;\n\nimport java.util.TreeSet;\n\npublic class TrainingText implements Comparable<TrainingText> {\n private int id;\n private TreeSet<String> cla...
java
chosen
[ { "from": "system", "value": "Fix IllegalArgumentException in Random.nextInt (thanks to Prabakar)\n" }, { "from": "human", "value": "/*\n * Copyright 2012 JBoss Inc\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with t...
java
chosen