conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Use counter for JVM Info\n" }, { "from": "human", "value": "package io.quarkus.micrometer.runtime.binder;\n\nimport io.micrometer.core.instrument.Gauge;\nimport io.micrometer.core.instrument.MeterRegistry;\nimport io.micrometer.core.instrument.binder.MeterBinder;\n\...
java
chosen
[ { "from": "system", "value": "Add more functionality to gyro test\n" }, { "from": "human", "value": "package com.qualcomm.ftcrobotcontroller.opmodes.custom.util;\n\nimport com.qualcomm.robotcore.eventloop.opmode.OpMode;\nimport com.qualcomm.robotcore.hardware.GyroSensor;\n\n/**\n * Created by Pe...
java
chosen
[ { "from": "system", "value": "PV: Patch 'longString' modifier for legacy PVM names" }, { "from": "human", "value": "/*******************************************************************************\n * Copyright (c) 2015-2016 Oak Ridge National Laboratory.\n * All rights reserved. This program an...
java
chosen
[ { "from": "system", "value": "Update copyright of changed file\n\nSee gh-23571\n" }, { "from": "human", "value": "/*\n * Copyright 2012-2019 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 complianc...
java
chosen
[ { "from": "system", "value": "Add H2DB service with initial SQL injection. Add test RESTfull API and index page.\n" }, { "from": "human", "value": "package com.musitorika;\n\nimport org.springframework.boot.SpringApplication;\nimport org.springframework.boot.autoconfigure.SpringBootApplication;\...
java
chosen
[ { "from": "system", "value": "Add new message for task cannot be found\n" }, { "from": "human", "value": "package tars.commons.core;\n\n/**\n * Container for user visible messages.\n */\npublic class Messages {\n\n public static final String MESSAGE_UNKNOWN_COMMAND = \"Unknown command\";\n ...
java
chosen
[ { "from": "system", "value": "Fix exception on empty join messages\n" }, { "from": "human", "value": "package net.simpvp.Misc;\n\nimport org.bukkit.event.EventHandler;\nimport org.bukkit.event.EventPriority;\nimport org.bukkit.event.Listener;\nimport org.bukkit.event.player.PlayerJoinEvent;\n\n/...
java
chosen
[ { "from": "system", "value": "Add modified get tokens of a shop function\n" }, { "from": "human", "value": "/*\nCopyright 2020 Google LLC\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy ...
java
chosen
[ { "from": "system", "value": "Add extractors to default statistics package\n" }, { "from": "human", "value": "/*\n */\npackage org.datadryad.journalstatistics.statistics;\n\nimport java.util.ArrayList;\nimport java.util.List;\nimport org.datadryad.journalstatistics.extractor.DataPackageCount;\ni...
java
chosen
[ { "from": "system", "value": "[NGRINDER-588] Make noOp class abstract for consistency." }, { "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 th...
java
chosen
[ { "from": "system", "value": "Fix an issue - Edit excel data set page is using flat file's help\ndocument[60395]." }, { "from": "human", "value": "/*******************************************************************************\n * Copyright (c) 2012 Megha Nidhi Dahal.\n * All rights reserved....
java
chosen
[ { "from": "system", "value": "Add further workaround for PathSecurity-Parameters PSK content\n" }, { "from": "human", "value": "/****************************************************************************\n * Copyright (C) 2012 ecsec GmbH.\n * All rights reserved.\n * Contact: ecsec GmbH (info@...
java
chosen
[ { "from": "system", "value": "Add support for weather queries\n" }, { "from": "human", "value": "package ee.ioc.phon.android.arvutaja.command;\n\nimport ee.ioc.phon.android.arvutaja.R;\nimport android.content.Context;\n\npublic class CommandParser {\n\n\tpublic static Command getCommand(Context ...
java
chosen
[ { "from": "system", "value": "Print XML valdation error cause for information purpose" }, { "from": "human", "value": "/*\n * Copyright 2006-2010 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 comp...
java
chosen
[ { "from": "system", "value": "Make MongoDb config's dependencies optional" }, { "from": "human", "value": "/*\n * Copyright © 2017 the original authors (http://cereebro.io)\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in complianc...
java
chosen
[ { "from": "system", "value": "Revert \"Annotation for Java backend renamed from \"jvm\" to \"java\"\"\n\nThis reverts commit d965d39bd33cbb8efde7c815537bdf02d4c287c8.\n" }, { "from": "human", "value": "package com.redhat.ceylon.common;\n\npublic enum Backend {\n None(\"\", BackendSupport.HEAD...
java
chosen
[ { "from": "system", "value": "Remove controller view from view (redundant)\n" }, { "from": "human", "value": "package editor;\n\nimport javax.swing.*;\nimport java.awt.*;\n\n/**\n * The NewRootView is used to create the GUI that is used to create a new root\n * XML element.\n */\npublic class Ne...
java
chosen
[ { "from": "system", "value": "Exit silently if ccache is not found or empty.\n" }, { "from": "human", "value": "// vim:shiftwidth=4:tabstop=4:expandtab\n\nimport sun.security.krb5.PrincipalName;\nimport sun.security.krb5.internal.ccache.FileCredentialsCache;\n\npublic class kwho {\n public st...
java
chosen
[ { "from": "system", "value": "Make metawidget object a field so enableEditing() can find it\n" }, { "from": "human", "value": "package todomore.android;\n\nimport org.metawidget.android.widget.AndroidMetawidget;\n\nimport com.darwinsys.todo.model.Task;\n\nimport android.app.Activity;\nimport and...
java
chosen
[ { "from": "system", "value": "Add documentation to inventory exporter\n" }, { "from": "human", "value": "package editor.gui.ccp.handler;\n\nimport java.awt.datatransfer.Transferable;\nimport java.util.Collection;\nimport java.util.function.Supplier;\n\nimport javax.swing.JComponent;\nimport java...
java
chosen
[ { "from": "system", "value": "Add specialized implementation for bi-subscription\n" }, { "from": "human", "value": "package org.reactfx;\n\npublic interface Subscription {\n void unsubscribe();\n\n static final Subscription EMPTY = () -> {};\n\n static Subscription multi(Subscription......
java
chosen
[ { "from": "system", "value": "Throw an exception when SQLiteJDBC initialization fails\n\nSummary:\nWhen sqlite-jdbc can't unpack its .so (e.g., if the disk is full), it\nsometimes returns an error code instead of throwing. Notice this and throw our\nown error, rather than continuing until we hit a mysterio...
java
chosen
[ { "from": "system", "value": "Fix observers dropping their items when joining after dying, but not respawning\n" }, { "from": "human", "value": "package in.twizmwaz.cardinal.util;\n\nimport org.bukkit.Material;\nimport org.bukkit.entity.Player;\nimport org.bukkit.inventory.ItemStack;\nimport org...
java
chosen
[ { "from": "system", "value": "Make project Java 6 compliant\n" }, { "from": "human", "value": "package io.mkremins.whydah.interpreter;\n\nimport io.mkremins.whydah.ast.Expression;\nimport io.mkremins.whydah.ast.ExpressionUtils;\n\nimport java.util.HashMap;\nimport java.util.Map;\n\npublic class ...
java
chosen
[ { "from": "system", "value": "Remove uncessary public on interface\n" }, { "from": "human", "value": "package com.cadyyan.levels.skills;\n\npublic interface ISkill\n{\n\tpublic String getUnlocalizedName();\n}\n" }, { "from": "gpt", "value": "package com.cadyyan.levels.skills;\n\npubl...
java
chosen
[ { "from": "system", "value": "Add total results to class constructor\n" }, { "from": "human", "value": "package org.gluu.oxtrust.model.scim2;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\n/**\n * @author Rahat Ali Date: 05.08.2015\n * Udpated by jgomer on 2017-10-01.\n */\npublic cla...
java
chosen
[ { "from": "system", "value": "test: Test data was not used\n" }, { "from": "human", "value": "package mireka.maildata;\n\nimport static org.junit.Assert.*;\n\nimport java.text.ParseException;\n\nimport org.junit.Test;\n\npublic class QEncodingParserTest extends QEncodingParser {\n\n private S...
java
chosen
[ { "from": "system", "value": "Switch to PowerMock for RealmLocation unit tests\n" }, { "from": "human", "value": "package io.github.plastix.forage.data.local;\n\nimport android.location.Location;\n\nimport org.junit.Ignore;\nimport org.junit.Test;\nimport org.junit.runner.RunWith;\n\nimport io.g...
java
chosen
[ { "from": "system", "value": "Test that annotations are not inherited.\n" }, { "from": "human", "value": "/*\n * Copyright 2020 The jspecify Authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n *...
java
chosen
[ { "from": "system", "value": "[TACHYON-1559] Fix checkstyle errors originating out of changes\n" }, { "from": "human", "value": "/*\n * Licensed to the University of California, Berkeley under one or more contributor license\n * agreements. See the NOTICE file distributed with this work for addi...
java
chosen
[ { "from": "system", "value": "Change to use a stream() rather than parallelStream()\n" }, { "from": "human", "value": "package uk.sky.cirrus;\n\nimport com.datastax.driver.core.Cluster;\nimport com.datastax.driver.core.Host;\nimport uk.sky.cirrus.exception.ClusterUnhealthyException;\n\nimport ja...
java
chosen
[ { "from": "system", "value": "Update post body data type\n" }, { "from": "human", "value": "package com.nmuzychuk.blog.model;\n\nimport javax.persistence.*;\nimport java.util.HashSet;\nimport java.util.Set;\n\n/**\n * Simple object representing a post.\n */\n@Entity\npublic class Post {\n\n @...
java
chosen
[ { "from": "system", "value": "Check regexp intention action language detection fix\n" }, { "from": "human", "value": "/*\n * Copyright 2000-2012 JetBrains s.r.o.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the ...
java
chosen
[ { "from": "system", "value": "Set user-agent from the client's name\n" }, { "from": "human", "value": "package com.github.arteam.dropwizard.http2.client;\n\nimport io.dropwizard.setup.Environment;\nimport org.eclipse.jetty.client.HttpClient;\n\n/**\n * Date: 11/26/15\n * Time: 10:22 AM\n * <p>\n...
java
chosen
[ { "from": "system", "value": "Make the id of the show an Integer\n" }, { "from": "human", "value": "package com.alexrnl.request.shows;\n\nimport java.util.HashMap;\nimport java.util.Map;\n\nimport com.alexrnl.request.Request;\nimport com.alexrnl.request.Verb;\n\n/**\n * Archive a show in the log...
java
chosen
[ { "from": "system", "value": "Add support for HEAD, OPTIONS, TRACE and PATCH\n" }, { "from": "human", "value": "package org.scribe.model;\n\n/**\n * An enumeration containing the most common HTTP Verbs.\n * \n * @author Pablo Fernandez\n */\npublic enum Verb\n{\n GET, POST, PUT, DELETE\n}\n" ...
java
chosen
[ { "from": "system", "value": "Add second constructor for already formed string\n\nSummary: When catching an exception that has formatting chars in it, we can run into issues if we try to format again\n\nReviewed By: cjhopman\n\nshipit-source-id: 1929d59f1795cfbdefd0c86688b6c852f4438205\n" }, { "from...
java
chosen
[ { "from": "system", "value": "Add getter for template variable\n\n" }, { "from": "human", "value": "package cz.quanti.mailq.entities.v2;\n\n\nimport cz.quanti.mailq.entities.v2.enums.NotificationStatus;\n\npublic class SmsNotificationEntity extends BaseEntity {\n\n private Long id;\n priva...
java
chosen
[ { "from": "system", "value": "Set svn:eol-style on new files\n" }, { "from": "human", "value": "/******************************************************************************\r\n * This program and the accompanying materials are made available under\r\n * the terms of the Common Public License ...
java
chosen
[ { "from": "system", "value": "Change number prefix to from +010 to +01" }, { "from": "human", "value": "package org.digitalsoft.android.test;\n\nimport android.content.BroadcastReceiver;\nimport android.content.Context;\nimport android.content.Intent;\nimport android.util.Log;\n\npublic class La...
java
chosen
[ { "from": "system", "value": "Test case with uppercase and lowercase combination.\n" }, { "from": "human", "value": "import static org.junit.Assert.*;\nimport static org.hamcrest.CoreMatchers.is;\n\nimport java.io.IOException;\nimport java.util.List;\n\nimport org.junit.BeforeClass;\nimport org....
java
chosen
[ { "from": "system", "value": "Add method for getting libraries by class\n" }, { "from": "human", "value": "package net.engin33r.luaspigot;\n\nimport net.engin33r.luaspigot.lua.Library;\n\nimport java.util.HashMap;\nimport java.util.Map;\n\n/**\n * Registry for keeping track of Lua libraries avai...
java
chosen
[ { "from": "system", "value": "Fix resource leak in error path\n" }, { "from": "human", "value": "/*\n * This file is part of libbluray\n * Copyright (C) 2012 libbluray\n *\n * This library is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General P...
java
chosen
[ { "from": "system", "value": "Add Locale to date formatting.\n" }, { "from": "human", "value": "package de.aikiit.fotocollector.main;\n\nimport com.fasterxml.jackson.core.JsonGenerator;\nimport com.fasterxml.jackson.core.JsonProcessingException;\nimport com.fasterxml.jackson.databind.JsonSeriali...
java
chosen
[ { "from": "system", "value": "Fix Spawner\nWell, not really.\n" }, { "from": "human", "value": "package com.hiagg.item;\r\n\r\nimport com.hiagg.creativetabs.ModTabs;\r\n\r\nimport net.minecraft.client.Minecraft;\r\nimport net.minecraft.entity.player.EntityPlayer;\r\nimport net.minecraft.item.Ite...
java
chosen
[ { "from": "system", "value": "Add item key to query inserting values in entry table\n" }, { "from": "human", "value": "package uk.gov.register.db;\n\nimport org.skife.jdbi.v2.sqlobject.*;\nimport uk.gov.register.core.Entry;\n\npublic interface EntryDAO {\n @SqlBatch(\"insert into entry(entry_...
java
chosen
[ { "from": "system", "value": "Update metric name label to \"__name__\".\n" }, { "from": "human", "value": "/*\n * Copyright 2013 Prometheus Team Licensed under the Apache License, Version 2.0\n * (the \"License\"); you may not use this file except in compliance with the\n * License. You may obta...
java
chosen
[ { "from": "system", "value": "Remove V1.. we aren't going to support it." }, { "from": "human", "value": "package com.orgsync.api;\n\npublic enum Version {\n\n V1(\"v1\"),\n V2(\"v2\");\n\n private final String path;\n\n private Version(final String path) {\n this.path = path...
java
chosen
[ { "from": "system", "value": "Revert back to original solution.\n" }, { "from": "human", "value": "/*\n Write a program that displays Welcome to Java five times.\n*/\n\npublic class E1_02 {\n public static void main(String[] args) {\n for (int i = 0; i < 5; i++) {\n System.out.println(...
java
chosen
[ { "from": "system", "value": "Add command line option to print a warning for each duplicate.\n\n" }, { "from": "human", "value": "//\n// SortList.java\n//\n\nimport java.io.*;\nimport java.util.Arrays;\nimport java.util.Vector;\n\n/** Sorts a text file alphabetically, removing duplicates. */\npu...
java
chosen
[ { "from": "system", "value": "Fix Plane action with default axis\n" }, { "from": "human", "value": "package com.elmakers.mine.bukkit.action.builtin;\n\nimport com.elmakers.mine.bukkit.api.action.CastContext;\nimport org.bukkit.configuration.ConfigurationSection;\n\npublic class PlaneAction exten...
java
chosen
[ { "from": "system", "value": "Mark workers since 3.5 and Incubating\n" }, { "from": "human", "value": "/*\n * Copyright 2017 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the Licen...
java
chosen
[ { "from": "system", "value": "Add in locks for pipe.\n" }, { "from": "human", "value": "package com.hypirion.io;\n\nimport java.io.InputStream;\nimport java.io.OutputStream;\n\npublic class Pipe {\n\n private final Thread threadPumper;\n private final PipeThread pt;\n private final Inpu...
java
chosen
[ { "from": "system", "value": "Rename core config \"id\" to \"mirId\"\n" }, { "from": "human", "value": "/*\n * Copyright (c) 2017. Vitus Lehner. UrbanLife+. Universität der Bundeswehr München.\n */\n\npackage org.sociotech.urbanlifeplus.microinforadiator;\n\nimport com.fasterxml.jackson.databind...
java
chosen
[ { "from": "system", "value": "Add branch completions to checkout command\n" }, { "from": "human", "value": "package ee.shy.cli.command;\n\nimport ee.shy.cli.Command;\nimport ee.shy.cli.HelptextBuilder;\nimport ee.shy.core.Repository;\n\nimport java.io.IOException;\n\n/**\n * A command to checkou...
java
chosen
[ { "from": "system", "value": "Clear database for version <= 1\n" }, { "from": "human", "value": "package com.lukekorth.android_500px;\n\nimport android.content.Context;\n\nimport com.lukekorth.android_500px.helpers.Cache;\nimport com.lukekorth.android_500px.helpers.ThreadBus;\nimport com.squareu...
java
chosen
[ { "from": "system", "value": "Add \"String...args\" into \"public...\" :maple_leaf:" }, { "from": "human", "value": "public class Wift {\n \n /** \n * Wift - The BASIC Programming Language\n * \n * BASIC FUNCTIONALITY:\n * - STRINGS []\n * - INTEGERS []...
java
chosen
[ { "from": "system", "value": "Fix the 'Improve logging' improvement\n" }, { "from": "human", "value": "package pl.mkrystek.mkbot;\n\nimport static org.springframework.boot.Banner.Mode.OFF;\n\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\nimport org.springframework.boot.builder.Sprin...
java
chosen
[ { "from": "system", "value": "Add organisation info to Users API\n\nChange-Id: I0ef250d47686068ec4d5832e993fe48547fdb6fb\n" }, { "from": "human", "value": "package com.cgi.eoss.ftep.model.projections;\n\nimport com.cgi.eoss.ftep.model.Role;\nimport com.cgi.eoss.ftep.model.User;\nimport org.sprin...
java
chosen
[ { "from": "system", "value": "Reduce static array size to avoid OOM\n" }, { "from": "human", "value": "package com.azure.perfstress;\n\nimport java.io.ByteArrayInputStream;\nimport java.io.InputStream;\nimport java.util.Random;\n\npublic class RandomStream {\n private static final byte[] _ran...
java
chosen
[ { "from": "system", "value": "fix(reporter): Handle exception while reporting event\n\nCloses gravitee-io/issues#867\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 * ...
java
chosen
[ { "from": "system", "value": "Make a comment (about code suggestions clearer).\n\nI want nice ways to avoid @SuppressWarnings, that is without\ntoo much code repetitions (such as repeatedly casting the same\nobject to multiple types)" }, { "from": "human", "value": "package strength;\r\n\r\nimpo...
java
chosen
[ { "from": "system", "value": "Remove GeneratedValue Special for Postgres\n" }, { "from": "human", "value": "package de.schuermann.interactivedata.spring.sample.data;\n\nimport javax.persistence.*;\nimport java.util.Date;\n\n/**\n * Data Entity for Actions\n *\n * @author Philipp Sch&uuml;rmann\n...
java
chosen
[ { "from": "system", "value": "Allow the test to pass even when no SOE happens in max_depth recursions\n\n\nsvn path=/incubator/harmony/enhanced/drlvm/trunk/; revision=475473\n" }, { "from": "human", "value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contrib...
java
chosen
[ { "from": "system", "value": "Add more tests for OperaPaths\n" }, { "from": "human", "value": "package com.opera.core.systems;\n\nimport static org.junit.Assert.assertEquals;\n\nimport org.junit.Test;\n\npublic class OperaPathsTest {\n\n @Test\n public void testStart() throws Exception {\n ...
java
chosen
[ { "from": "system", "value": "Check of the queue has waiting data before attempting to take control.\n" }, { "from": "human", "value": "package com.breakersoft.plow.dispatcher.pipeline;\n\nimport java.util.Collection;\nimport java.util.UUID;\nimport java.util.concurrent.LinkedBlockingQueue;\nimp...
java
chosen
[ { "from": "system", "value": "Make auth login trigger a new login always.\n" }, { "from": "human", "value": "package bio.terra.cli.command.auth;\n\nimport bio.terra.cli.businessobject.Context;\nimport bio.terra.cli.command.shared.BaseCommand;\nimport picocli.CommandLine.Command;\n\n/** This clas...
java
chosen
[ { "from": "system", "value": "Set thread local the entity manager in validatorfactory also in\ndoTransaction with already created EntityManagers" }, { "from": "human", "value": "package persistence.util;\r\n\r\nimport javax.persistence.EntityManager;\r\nimport javax.persistence.EntityManagerFact...
java
chosen
[ { "from": "system", "value": "Mask ctms-common's commons-logging logger with an slf4j logger\n" }, { "from": "human", "value": "package edu.northwestern.bioinformatics.studycalendar.dao;\n\nimport gov.nih.nci.cabig.ctms.dao.AbstractDomainObjectDao;\nimport gov.nih.nci.cabig.ctms.domain.DomainObj...
java
chosen
[ { "from": "system", "value": "Replace use of presenter factory in action with use of launcher facotry\n" }, { "from": "human", "value": "package com.codenvy.ide.ext.datasource.client.sqllauncher;\n\nimport com.codenvy.ide.api.ui.action.Action;\nimport com.codenvy.ide.api.ui.action.ActionEvent;\n...
java
chosen
[ { "from": "system", "value": "Fix temperature using salinity config" }, { "from": "human", "value": "package mariculture.fishery.fish.dna;\n\nimport mariculture.api.fishery.fish.FishDNA;\nimport mariculture.api.fishery.fish.FishSpecies;\nimport mariculture.core.config.FishMechanics.FussyFish;\ni...
java
chosen
[ { "from": "system", "value": "Use SingleThemeProvider - here google\n" }, { "from": "human", "value": "package ch.difty.scipamato.publ.web.autoconfiguration;\n\nimport org.apache.wicket.protocol.http.WebApplication;\nimport org.springframework.boot.autoconfigure.condition.ConditionalOnClass;\nim...
java
chosen
[ { "from": "system", "value": "Use reflection to extract Netty's default level\n\nSee gh-27046\n" }, { "from": "human", "value": "/*\n * Copyright 2012-2021 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file exce...
java
chosen
[ { "from": "system", "value": "Remove old pycharm icon support.\n" }, { "from": "human", "value": "package com.iselsoft.ptest.runLineMarker;\n\nimport com.intellij.execution.lineMarker.RunLineMarkerContributor;\nimport com.intellij.icons.AllIcons;\nimport com.intellij.psi.PsiElement;\nimport com....
java
chosen
[ { "from": "system", "value": "Change JecpApllication class in JECP-ME" }, { "from": "human", "value": "package com.annimon.jecp.me;\r\n\r\nimport com.annimon.jecp.ApplicationListener;\r\nimport javax.microedition.lcdui.Display;\r\nimport javax.microedition.midlet.MIDlet;\r\n\r\n/**\r\n *\r\n * @...
java
chosen
[ { "from": "system", "value": "Create container on remote platform when launching client and no container has yet been created\n" }, { "from": "human", "value": "package pt.up.fe.aiad.gui;\n\nimport jade.wrapper.StaleProxyException;\nimport javafx.fxml.FXML;\nimport javafx.scene.control.ListView;...
java
chosen
[ { "from": "system", "value": "Add more device status type\n" }, { "from": "human", "value": "package iot.agile.object;\n\npublic enum DeviceStatusType {\n \t CONNECTED,\n\t DISCONNECTED,\n\t ERROR\n}\n" }, { "from": "gpt", "value": "package iot.agile.object;\n\npublic enum DeviceSta...
java
chosen
[ { "from": "system", "value": "Add spacing after demo description" }, { "from": "human", "value": "package org.vaadin.elements.demo;\n\nimport com.vaadin.ui.Component;\nimport com.vaadin.ui.CustomComponent;\nimport com.vaadin.ui.Label;\nimport com.vaadin.ui.VerticalLayout;\n\npublic abstract clas...
java
chosen
[ { "from": "system", "value": "Handle directory creation when it is not present\n" }, { "from": "human", "value": "package fortiss.gui.listeners.helper;\n\nimport java.awt.Dimension;\nimport java.awt.Graphics2D;\nimport java.awt.image.BufferedImage;\nimport java.io.File;\nimport java.io.IOExcepti...
java
chosen
[ { "from": "system", "value": "Use DateTime so that Interval s can be compared easily\n" }, { "from": "human", "value": "package edu.deanza.calendar.models;\n\nimport org.joda.time.LocalTime;\nimport org.json.JSONException;\nimport org.json.JSONObject;\n\n/**\n * Created by Sara on 5/28/2016.\n *...
java
chosen
[ { "from": "system", "value": "Update for new BaseXChange…Provider constructor, add 2 pairs" }, { "from": "human", "value": "package foundation.omni.money;\n\nimport org.knowm.xchange.currency.CurrencyPair;\nimport org.knowm.xchange.poloniex.PoloniexExchange;\n\nimport com.msgilligan.bitcoinj.mon...
java
chosen
[ { "from": "system", "value": "Test to ensure keys generated in Java using Scrypt are same as from JS\n" }, { "from": "human", "value": "package peergos.tests;\n\nimport org.junit.*;\nimport peergos.corenode.*;\nimport peergos.user.*;\n\nimport java.io.*;\nimport java.net.*;\n\npublic class UserT...
java
chosen
[ { "from": "system", "value": "Update plugin to latest YggdrasilCore\n" }, { "from": "human", "value": "package ru.linachan.pushbullet;\n\nimport ru.linachan.yggdrasil.component.YggdrasilPlugin;\n\npublic class PushBulletPlugin extends YggdrasilPlugin {\n\n private PushBulletClient client;\n\n...
java
chosen
[ { "from": "system", "value": "Fix LIKE expression not working for multiline strings\n" }, { "from": "human", "value": "package org.yamcs.yarch.streamsql;\n\npublic class Utils {\n public static boolean like(String str, String pattern) {\n pattern = pattern.toLowerCase(); \n patt...
java
chosen
[ { "from": "system", "value": "Update copyright notice with MIT license" }, { "from": "human", "value": "/*++\n\nNASM Assembly Language Plugin\nCopyright (c) 2017-2018 Aidan Khoury. All rights reserved.\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of...
java
chosen
[ { "from": "system", "value": "Introduce bounds for generics in annotation\n" }, { "from": "human", "value": "/**\n *\n * Copyright (c) 2006-2015, Speedment, Inc. All Rights Reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\"); You may not\n * use this file except in...
java
chosen
[ { "from": "system", "value": "Create SSLEngine instance using host and port\n" }, { "from": "human", "value": "// Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\npackage com.yahoo.jrt;\n\nimport com.yahoo.security.tls.TlsContex...
java
chosen
[ { "from": "system", "value": "Fix some failing unit tests\n\nevpCipher can be null to handle re-initialization of CIPHER_CTX\ninstances.\n\nMake the constructor of OpenSSLCipherContext public so it can be used in\ntesting.\n\nFix all of the things hidden by JNI_DEBUG that were not correct.\n\nThrow a BadPad...
java
chosen
[ { "from": "system", "value": "Add author and since tag\n\nAdd author and since tag to the SubscribableMessageSource\n" }, { "from": "human", "value": "/*\n * Copyright (c) 2010-2018. Axon Framework\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this...
java
chosen
[ { "from": "system", "value": "Fix Package name in Test Class\n" }, { "from": "human", "value": "package clinic.programming.trainig;\n\nimport org.junit.Before;\nimport org.junit.Ignore;\nimport org.junit.Test;\nimport static org.junit.Assert.*;\n\npublic class ApplicationTest {\n private Appl...
java
chosen
[ { "from": "system", "value": "Add description to hash function\n" }, { "from": "human", "value": "package login;\n\nimport java.io.UnsupportedEncodingException;\nimport java.security.MessageDigest;\nimport java.security.NoSuchAlgorithmException;\nimport javax.xml.bind.DatatypeConverter;\n\npubli...
java
chosen
[ { "from": "system", "value": "Add constants used in stage 2.\n" }, { "from": "human", "value": "package stage2.elements;\n\n/**\n *\n */\npublic interface GeneralElementStage2 {\n\n}\n" }, { "from": "gpt", "value": "package stage2.elements;\n\nimport com.google.common.collect.Immutab...
java
chosen
[ { "from": "system", "value": "Increase 503 retry strategy from 200ms to 2000ms, Nike+ was occasionally returning \"429 Too Many Requests\".\n" }, { "from": "human", "value": "package com.awsmithson.tcx2nikeplus.http;\n\nimport com.google.common.base.Predicate;\nimport org.apache.http.HttpRespons...
java
chosen
[ { "from": "system", "value": "Move Journal to it's own repo.\n" }, { "from": "human", "value": "/*\n * Copyright (C) 2015 higherfrequencytrading.com\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public L...
java
chosen
[ { "from": "system", "value": "Add third annotation style.\nRefactor the style handling to be a bit more DRY.\n\ngit-svn-id: a0d2519504059b70a86a1ce51b726c2279190bad@24871 6e01202a-0783-4428-890a-84243c50cc2b\n" }, { "from": "human", "value": "package org.concord.datagraph.analysis;\n\nimport jav...
java
chosen
[ { "from": "system", "value": "Increase permitted size of StringUtil\n" }, { "from": "human", "value": "package org.jabref;\n\nimport java.nio.charset.StandardCharsets;\nimport java.nio.file.Files;\nimport java.nio.file.Path;\nimport java.nio.file.Paths;\n\nimport org.jabref.model.strings.StringU...
java
chosen
[ { "from": "system", "value": "Define Alternate Names for city rather than this shortname, long name etc.\n" }, { "from": "human", "value": "package com.sarality.app.data.location;\n\nimport com.sarality.app.data.BaseEnumData;\n\n/**\n * Enum Data for a City.\n *\n * @author abhideep@ (Abhideep S...
java
chosen
[ { "from": "system", "value": "Update to the latest API\n" }, { "from": "human", "value": "package arez.spytools;\n\nimport arez.spy.ComponentInfo;\nimport arez.spy.ComputedValueInfo;\nimport arez.spy.ObservableInfo;\nimport arez.spy.ObserverInfo;\nimport java.util.Collections;\nimport java.util....
java
chosen
[ { "from": "system", "value": "TDB-4594: Return a copy of Nomad object mappper for protection\n" }, { "from": "human", "value": "/*\n * Copyright (c) 2011-2019 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their ...
java
chosen
[ { "from": "system", "value": "Add midpoint interpolation to stepped line" }, { "from": "human", "value": "/**\n Copyright 2017 Andrea \"Stock\" Stocchero\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the Licen...
java
chosen