conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Set default world for /ticks\n\nSigned-off-by: Ross Allan <ca2c77e14df1e7ee673215c1ef658354e220f471@gmail.com>\n" }, { "from": "human", "value": "package me.nallar.tickthreading.minecraft.commands;\r\n\r\nimport java.util.List;\r\n\r\nimport me.nallar.tickthreading....
java
chosen
[ { "from": "system", "value": "Mark dirty on placement too\n" }, { "from": "human", "value": "package refinedstorage.apiimpl.network;\n\nimport net.minecraft.util.math.BlockPos;\nimport net.minecraft.world.World;\nimport refinedstorage.api.network.INetworkMaster;\n\nimport java.util.HashMap;\nimp...
java
chosen
[ { "from": "system", "value": "Save related objects automatically using CascadeType\n\n" }, { "from": "human", "value": "package ttu.tteh.user;\n\nimport javax.persistence.Entity;\nimport javax.persistence.GeneratedValue;\nimport javax.persistence.Id;\nimport javax.persistence.OneToOne;\n\nimport...
java
chosen
[ { "from": "system", "value": "Revert \"feat(builds): add mapping for Bamboo build status\"\n\nThis reverts commit 96188b7dc0d3ed3acc20ec2e744fcf3850863405.\nThis is a problem of the bamboo collector\n" }, { "from": "human", "value": "/*\n * Copyright 2017 Banco Bilbao Vizcaya Argentaria, S.A..\n...
java
chosen
[ { "from": "system", "value": "Fix takeWhen - now behaves as comment describes\n" }, { "from": "human", "value": "package com.kickstarter.libs;\n\nimport android.util.Pair;\n\nimport rx.Observable;\n\npublic class RxUtils {\n private RxUtils() {\n throw new AssertionError();\n }\n\n public ...
java
chosen
[ { "from": "system", "value": "Add @NotNull validation to the Return Intention Java file. Keep all the form hydration logic in the HTML, because that form depends on Javascript to conditionally display a text box.\n" }, { "from": "human", "value": "package edu.virginia.psyc.r01.persistence;\n\nim...
java
chosen
[ { "from": "system", "value": "Add dummy collection resolving on database initialization\n" }, { "from": "human", "value": "package lt.itdbaltics.camel.component.existdb;\n\nimport org.exist.xmldb.DatabaseImpl;\nimport org.xmldb.api.DatabaseManager;\n\npublic class DatabaseFactory {\n private ...
java
chosen
[ { "from": "system", "value": "Revert \"set opennms home for JMXDataCollectionConfigFactory\"\n\nThis reverts commit 201fab95419f57ce48ed00c7b77522d89034359f.\n" }, { "from": "human", "value": "package org.opennms.netmgt.config;\n\nimport java.io.File;\nimport java.io.FileInputStream;\nimport jav...
java
chosen
[ { "from": "system", "value": "Fix Sla class path scanner\n" }, { "from": "human", "value": "package org.stagemonitor.core.instrument;\n\nimport net.bytebuddy.agent.builder.AgentBuilder;\nimport net.bytebuddy.description.method.MethodDescription;\nimport net.bytebuddy.description.type.TypeDescrip...
java
chosen
[ { "from": "system", "value": "Remove setting of content targeting keys in launcher activity because the application class is used\n" }, { "from": "human", "value": "/*******************************************************************************\n * Copyright (c) Incoming Pty. Ltd. 2015\n ******...
java
chosen
[ { "from": "system", "value": "Fix some localization and spelling\n" }, { "from": "human", "value": "package com.InfinityRaider.AgriCraft.compatibility.computercraft.method;\n\nimport net.minecraft.util.StatCollector;\n\npublic class MethodParameter {\n public static final MethodParameter DIRE...
java
chosen
[ { "from": "system", "value": "Use JUnit3 because it comes with Android SDK\n" }, { "from": "human", "value": "package com.shaneutt.calculator;\n\nimport org.junit.Test;\n\nimport static org.junit.Assert.*;\n\npublic class ShanesCalculatorTest {\n\n @Test\n public void testOnCreate() throws...
java
chosen
[ { "from": "system", "value": "Make the jp tool process the input too" }, { "from": "human", "value": "package io.burt.jmespath.jp;\n\nimport io.burt.jmespath.Query;\nimport io.burt.jmespath.JmesPathException;\n\npublic class Main {\n public static void main(String[] args) {\n if (args.length...
java
chosen
[ { "from": "system", "value": "Add some debug information to the server terminal.\n" }, { "from": "human", "value": "package server.net;\r\n\r\nimport io.netty.channel.ChannelHandlerContext;\r\nimport io.netty.channel.SimpleChannelInboundHandler;\r\n\r\nimport server.LobbyManager;\r\nimport proto...
java
chosen
[ { "from": "system", "value": "Check whether sender is set\n" }, { "from": "human", "value": "package de.qabel.ackack;\n\n/**\n* Created by tox on 11/25/14.\n*/\npublic class MessageInfo implements Cloneable {\n private Actor sender;\n private long time;\n private String type;\n\n pub...
java
chosen
[ { "from": "system", "value": "NXP-3067: Allow batching in core queries\n" }, { "from": "human", "value": "/*\n * (C) Copyright 2006-2007 Nuxeo SAS (http://nuxeo.com/) and contributors.\n *\n * All rights reserved. This program and the accompanying materials\n * are made available under the terms...
java
chosen
[ { "from": "system", "value": "Change visibility of scope methods from default to public\n" }, { "from": "human", "value": "package fc.lang;\n\nimport java.util.HashMap;\nimport java.util.Map;\n\n/**\n * Implementation of flat static scope\n */\npublic class Scope {\n private final Map<String,...
java
chosen
[ { "from": "system", "value": "Remove now-unused sections from submission flow\n\nSVN-Revision: 3230\n" }, { "from": "human", "value": "package gov.nih.nci.cabig.caaers.domain.expeditedfields;\r\n\r\nimport gov.nih.nci.cabig.ctms.domain.CodedEnum;\r\n\r\npublic enum ExpeditedReportSection impleme...
java
chosen
[ { "from": "system", "value": "Add recaptchaSiteKey model attribute not if its a redirect\n" }, { "from": "human", "value": "package com.github.dtrunk90.recaptcha.spring.web.servlet.handler;\n\nimport javax.servlet.http.HttpServletRequest;\nimport javax.servlet.http.HttpServletResponse;\n\nimport...
java
chosen
[ { "from": "system", "value": "Add TODO comments and code.\n" }, { "from": "human", "value": "package net.sourceforge.javydreamercsw.client.ui.nodes;\r\n\r\nimport com.validation.manager.core.db.RequirementSpec;\r\nimport com.validation.manager.core.server.core.RequirementSpecServer;\r\nimport ja...
java
chosen
[ { "from": "system", "value": "Fix trouble when using local UI components without releasing them\n" }, { "from": "human", "value": "package org.jrebirth.af.showcase.fxml.ui.main;\n\nimport org.jrebirth.af.api.module.Register;\nimport org.jrebirth.af.api.ui.ModuleModel;\nimport org.jrebirth.af.com...
java
chosen
[ { "from": "system", "value": "Add empty constructor to MandateFundsTransferExchangeDTO\n\nIn localhost, without NoArgsConstructor, jaxb cannot instantiate this class without it. Works in production.\n" }, { "from": "human", "value": "package ee.tuleva.onboarding.epis.mandate;\n\nimport ee.tuleva...
java
chosen
[ { "from": "system", "value": "core: Remove unused method from VdcQueryRetunValue\n\nRemoved the unused method\nVdcQueryReturnValue.getSerializaedReturnValue().\n\nChange-Id: If5ccfd595f002c96f9971c5ca607f40f1ee8498d\nSigned-off-by: Allon Mureinik <abc9ddaceaf0c059a5d9bc2aed71f25cb5370dba@redhat.com>\n" },...
java
chosen
[ { "from": "system", "value": "Optimize solution to problem 303\n" }, { "from": "human", "value": "package leetcode;\n\nimport java.util.HashMap;\nimport java.util.Map;\n\n/**\n * https://leetcode.com/problems/range-sum-query-immutable/\n */\npublic class Problem303 {\n public static class Num...
java
chosen
[ { "from": "system", "value": "Fix - added two missing parameters to the constructor\n" }, { "from": "human", "value": "package com.twu.biblioteca;\n\nimport com.twu.biblioteca.views.BibliotecaAppView;\nimport com.twu.biblioteca.views.BooksView;\nimport com.twu.biblioteca.views.MenuView;\nimport ...
java
chosen
[ { "from": "system", "value": "Add a few clarifying comments\n" }, { "from": "human", "value": "package waveview.search;\n\n//\n// This object is filled in during node evaluation to help optimize searching.\n// The members represent the nearest timestamp where the return value of eval\n// could c...
java
chosen
[ { "from": "system", "value": "Remove import from java.lang package" }, { "from": "human", "value": "/*\n * To change this template, choose Tools | Templates\n * and open the template in the editor.\n */\npackage nl.nelen_schuurmans.aquo;\n\nimport java.lang.Class;\nimport org.apache.log4j.Logger...
java
chosen
[ { "from": "system", "value": "Edit the test so it won't fail. Need to actually write tests.\n" }, { "from": "human", "value": "package edu.pdx.spi.test;\n\nimport io.vertx.core.Vertx;\nimport io.vertx.core.http.HttpClient;\nimport io.vertx.ext.unit.Async;\nimport io.vertx.ext.unit.TestContext;\n...
java
chosen
[ { "from": "system", "value": "Remove impossible check & check primitive\n" }, { "from": "human", "value": "package org.jenkins.tools.test.model.hook;\n\nimport hudson.model.UpdateSite.Plugin;\n//import org.jenkins.tools.test.model.TestExecutionResult;\n\nimport java.util.Map;\n\n/**\n * An abstr...
java
chosen
[ { "from": "system", "value": "restapi: Fix return type of vms/{vm:id}/numanodes\n\nCurrently the type returned by the \"list\" operation of this resources is\n\"NumaNodes\", but it should be \"VirtualNumaNodes\", otherwise the\ngenerator of the Java SDK will not work correctly.\n\nChange-Id: I57af48c044012f...
java
chosen
[ { "from": "system", "value": "Use unique temp dir for each performance test execution\n\n- Create directory under java.io.tmpdir (assumed to be tmpfs on CI)\n- Cleanup directory in execution session cleanup\n" }, { "from": "human", "value": "/*\n * Copyright 2016 the original author or authors.\...
java
chosen
[ { "from": "system", "value": "Add bean validation for uv.sick-note.endOfPayNotificationCron\n" }, { "from": "human", "value": "package org.synyx.urlaubsverwaltung.sicknote;\n\nimport org.springframework.boot.context.properties.ConfigurationProperties;\nimport org.springframework.stereotype.Compo...
java
chosen
[ { "from": "system", "value": "Clarify types of common operations.\n" }, { "from": "human", "value": "public abstract class Expr {\n\tpublic abstract Expr apply (Expr target, double value);\n\tpublic abstract String compile ();\n\tpublic abstract Expr differentiate (Expr dx);\n\tpublic abstract E...
java
chosen
[ { "from": "system", "value": "Check autoAnchor before child iteration\n" }, { "from": "human", "value": "package com.bottomsheetbehavior;\n\nimport android.support.design.widget.CoordinatorLayout;\nimport android.view.View;\n\nimport com.facebook.react.uimanager.ViewGroupManager;\nimport com.fac...
java
chosen
[ { "from": "system", "value": "Fix issue with error spec[0].protocol. The protocol to be used is TCP\n" }, { "from": "human", "value": "package io.fabric8.app.gerrit;\n\nimport io.fabric8.kubernetes.generator.annotation.KubernetesModelProcessor;\nimport io.fabric8.openshift.api.model.template.Tem...
java
chosen
[ { "from": "system", "value": "Make DELIMITER a method rather than a constant\n" }, { "from": "human", "value": "/*\n * Copyright (C) 2008 TranceCode Software\n *\n * This library is free software; you can redistribute it and/or modify it under\n * the terms of the GNU Lesser General Public Licen...
java
chosen
[ { "from": "system", "value": "Fix existing Array methods and support negative and >= size sets.\n" }, { "from": "human", "value": "\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Collection;\nimport java.util.Iterator;\nimport java.util.List;\nimport java.util.ListItera...
java
chosen
[ { "from": "system", "value": "Allow more than just TRACE logging levels\n" }, { "from": "human", "value": "/**\n * Copyright (C) 2013 Alexander Szczuczko\n *\n * This file may be modified and distributed under the terms\n * of the MIT license. See the LICENSE file for details.\n */\npackage ca.s...
java
chosen
[ { "from": "system", "value": "Test that .info() and .warn() set the correct event type.\n\n\nFormer-commit-id: 14a833f5c8c252e2e09d8c7ea3e154c3978c403f [formerly 17449ebde702c82594b0d592047ae7c684f14fc9]\nFormer-commit-id: 3b45559df0c8bdc6d5fec59793a9981c71e62e33" }, { "from": "human", "value": ...
java
chosen
[ { "from": "system", "value": "Allow unquoting for symbols that were created by a core function\n" }, { "from": "human", "value": "package interpres.language.values;\n\nimport java.util.List;\nimport java.util.Arrays;\n\nimport interpres.ast.AST;\n\npublic class Symbol extends Value {\n private ...
java
chosen
[ { "from": "system", "value": "Update to make Travis-CI happier." }, { "from": "human", "value": "package myessentials.chat.api;\n\nimport myessentials.localization.api.LocalManager;\nimport net.minecraft.command.ICommandSender;\nimport net.minecraft.util.IChatComponent;\nimport net.minecraft.ent...
java
chosen
[ { "from": "system", "value": "Change order of assert arguments\n" }, { "from": "human", "value": "package com.jedrzejewski.slisp.lexer;\n\nimport java.util.Arrays;\nimport java.util.LinkedList;\nimport java.util.List;\nimport org.junit.Test;\nimport org.junit.runner.RunWith;\nimport org.junit.ru...
java
chosen
[ { "from": "system", "value": "Fix registry for no-longer-present subItem\n" }, { "from": "human", "value": "package com.gr8pefish.portablecrafting.items.craftingItems;\n\nimport com.gr8pefish.portablecrafting.items.ItemBase;\nimport net.minecraft.creativetab.CreativeTabs;\nimport net.minecraft.i...
java
chosen
[ { "from": "system", "value": "Fix minor issue with endpoint configuration\n" }, { "from": "human", "value": "package fr.insee.rmes.api;\n\npublic class Configuration {\n\n\t// TODO Externalize props\n\tpublic final static String SPARQL_END_POINT = \"http://id.insee.fr/sparql\";\n\t\n}\n" }, ...
java
chosen
[ { "from": "system", "value": "Add getPlane-method. Returns the plane which the ant moves on\n\nAdd getAnt-method. Returns the position of the ant\n\nRemove main-method\n" }, { "from": "human", "value": "package langton;\n\nimport java.awt.Point;\nimport java.util.HashMap;\n\npublic class Langton...
java
chosen
[ { "from": "system", "value": "Sort for testing. Fix for test failures introduced in r3557.\n\ngit-svn-id: 4b387fe5ada7764508e2ca96c335714e4c1692c6@3563 0d517254-b314-0410-acde-c619094fa49f\n" }, { "from": "human", "value": "package edu.northwestern.bioinformatics.studycalendar.dao.reporting;\n\...
java
chosen
[ { "from": "system", "value": "assertIdentifier: Clean up exception message for null identifier\n" }, { "from": "human", "value": "//////////////////////////////////////////////////////////////////////////////\n// \n// Copyright 2010, Starting Block Technologies\n// ...
java
chosen
[ { "from": "system", "value": "Fix crash on missing classes (it will crash later, but nobody will blame us\n" }, { "from": "human", "value": "package openmods.asm;\n\nimport net.minecraft.launchwrapper.IClassTransformer;\n\nimport org.objectweb.asm.ClassReader;\nimport org.objectweb.asm.ClassVisi...
java
chosen
[ { "from": "system", "value": "[MODULES-222] Fix early initialization of log manager on JDK 9+\n" }, { "from": "human", "value": "/*\n * JBoss, Home of Professional Open Source.\n * Copyright 2014 Red Hat, Inc., and individual contributors\n * as indicated by the @author tags.\n *\n * Licensed un...
java
chosen
[ { "from": "system", "value": "DDSDK: Update the example notifications app\n" }, { "from": "human", "value": "/*\n * Copyright (c) 2017 deltaDNA Ltd. All rights reserved.\n * \n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance ...
java
chosen
[ { "from": "system", "value": "Change constants class to messages\n" }, { "from": "human", "value": "package com.codenvy.ide.ext.datasource.client.sqllauncher;\n\nimport com.google.gwt.i18n.client.Constants;\n\npublic interface SqlRequestLauncherConstants extends Constants {\n\n @DefaultString...
java
chosen
[ { "from": "system", "value": "Reduce drop rate of shiny_stone.\n" }, { "from": "human", "value": "package net.darkmorford.btweagles.eventhandler;\n\nimport net.darkmorford.btweagles.item.ModItems;\nimport net.minecraft.init.Blocks;\nimport net.minecraft.item.ItemStack;\nimport net.minecraftforge...
java
chosen
[ { "from": "system", "value": "Replace ngrok url with stub\n" }, { "from": "human", "value": "package com.twilio.notify.quickstart.notifyapi;\n\nimport com.twilio.notify.quickstart.notifyapi.model.Binding;\n\nimport retrofit2.Call;\nimport retrofit2.Retrofit;\nimport retrofit2.converter.jackson.J...
java
chosen
[ { "from": "system", "value": "Add a change to method.\n" }, { "from": "human", "value": "package ru.job4j.even.numbers.iterator;\n\nimport java.util.Iterator;\nimport java.util.NoSuchElementException;\n\npublic class EvenNumbersIterator implements Iterator {\n private int[] numbers;\n priv...
java
chosen
[ { "from": "system", "value": "Extend the common Messages class\n" }, { "from": "human", "value": "/*\n * Copyright Red Hat Inc. and/or its affiliates and other contributors\n * as indicated by the authors tag. All rights reserved.\n *\n * This copyrighted material is made available to anyone wis...
java
chosen
[ { "from": "system", "value": "Make the test mod take the version from the API.\n" }, { "from": "human", "value": "package gigaherz.graph.api;\n\nimport net.minecraftforge.fml.common.Mod;\nimport net.minecraftforge.fml.common.Mod.EventHandler;\nimport net.minecraftforge.fml.common.SidedProxy;\nim...
java
chosen
[ { "from": "system", "value": "Add two options for map renamings\n" }, { "from": "human", "value": "package jkind.api.results;\n\nimport java.util.Map;\n\n/**\n * A renaming backed by a map from strings to strings\n */\npublic class MapRenaming extends Renaming {\n\tprivate Map<String, String> ma...
java
chosen
[ { "from": "system", "value": "Add `@CheckReturnValue` to package info\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...
java
chosen
[ { "from": "system", "value": "Update Consent Dto to have shareSensitivityCategoriesEnabled attribute\n\n#14280 - As a developer I will make consent share/not share type configurable at Deployment Time to support patient UI - Backend\n" }, { "from": "human", "value": "package gov.samhsa.c2s.c2sui...
java
chosen
[ { "from": "system", "value": "Update user agent for all requests\n" }, { "from": "human", "value": "/*\n * Copyright 2012 GitHub 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 * You may obtain ...
java
chosen
[ { "from": "system", "value": "Upgrade to the latest Elemental2 API\n" }, { "from": "human", "value": "package replicant.messages;\n\nimport elemental2.core.JsObject;\nimport javax.annotation.Nonnull;\nimport jsinterop.annotations.JsOverlay;\nimport jsinterop.annotations.JsPackage;\nimport jsinte...
java
chosen
[ { "from": "system", "value": "Add event existence to the mapping pre checks\n" }, { "from": "human", "value": "package nl.thehyve.ocdu.validators.fileValidators;\n\nimport nl.thehyve.ocdu.models.OCEntities.ClinicalData;\nimport nl.thehyve.ocdu.models.OcDefinitions.MetaData;\nimport nl.thehyve.oc...
java
chosen
[ { "from": "system", "value": "Initialize final field in field declaration\n" }, { "from": "human", "value": "package cgeo.geocaching.sorting;\n\nimport cgeo.geocaching.Geocache;\nimport cgeo.geocaching.utils.TextUtils;\n\nimport org.apache.commons.lang3.StringUtils;\n\nimport java.text.Collator;...
java
chosen
[ { "from": "system", "value": "Change custom tag name [rev. matthew.gordon]\n" }, { "from": "human", "value": "/*\n * Copyright 2015 Hewlett-Packard Development Company, L.P.\n * Licensed under the MIT License (the \"License\"); you may not use this file except in compliance with the License.\n *...
java
chosen
[ { "from": "system", "value": "Test with K5 graph for fleury and hierholzer added.\n" }, { "from": "human", "value": "package a4_p01_JS_MJ_test;\n\npublic class a4Test {\n\n}\n" }, { "from": "gpt", "value": "package a4_p01_JS_MJ_test;\n\nimport static org.junit.Assert.assertTrue;\nimp...
java
chosen
[ { "from": "system", "value": "Revert to previous version.. it should still work.\n" }, { "from": "human", "value": "class forNameTest {\n public static void main(String argv[]) {\n\t try {\n\t\t Class.forName(\"loadThis\");\n\t\t Class c = Class.forName(\"loadThis\", false, \n...
java
chosen
[ { "from": "system", "value": "Create session cookie that expires in 5 days.\n" }, { "from": "human", "value": "package com.google.sps.servlets;\n\nimport com.google.firebase.auth.FirebaseAuth;\nimport com.google.firebase.auth.FirebaseAuthException;\nimport com.google.firebase.auth.SessionCookieO...
java
chosen
[ { "from": "system", "value": "Test for tree equivalence now checks hashCode\n" }, { "from": "human", "value": "package see.integration;\n\nimport org.junit.experimental.theories.DataPoints;\nimport org.junit.experimental.theories.Theories;\nimport org.junit.experimental.theories.Theory;\nimport ...
java
chosen
[ { "from": "system", "value": "Improve error message when Component is not found in Cache\n" }, { "from": "human", "value": "package com.axellience.vuegwt.client.definitions;\n\nimport com.axellience.vuegwt.client.VueComponent;\n\nimport java.util.HashMap;\nimport java.util.Map;\n\n/**\n * A Cach...
java
chosen
[ { "from": "system", "value": "Revert \"Switch the default registry to ZK based\"\n\nThis reverts commit 558ee079fd04dfab8e61eca10ee98ab5bac89dfa because\nit wasn't tagged with a jira ID. Will be re-applied.\n" }, { "from": "human", "value": "/*\n * Licensed to the Apache Software Foundation (ASF...
java
chosen
[ { "from": "system", "value": "Add more methods to dragula" }, { "from": "human", "value": "package com.example.client;\n\nimport jsinterop.annotations.JsMethod;\nimport jsinterop.annotations.JsPackage;\nimport jsinterop.annotations.JsType;\n\n@JsType(isNative = true)\npublic class Dragula {\n\n\...
java
chosen
[ { "from": "system", "value": "Remove some weird unnecessary whitespace\n" }, { "from": "human", "value": "package interfaces;\n\nimport java.util.List;\n\npublic interface Semantics {\n\t\n\tpublic List<Integer> getPossibleActions(Graph graph) throws Exception;\n\n\tpublic Graph executeAction(Gr...
java
chosen
[ { "from": "system", "value": "Add new java 10 code\n" }, { "from": "human", "value": "package codesample.java10;\n\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.stream.Collectors;\n\npublic class NewStuffJavaTen {\n public static void main(String[] args) {\n\n ...
java
chosen
[ { "from": "system", "value": "Use es6 language for the newer features.\n" }, { "from": "human", "value": "package com.dnmaze.dncli.util;\n\nimport jdk.nashorn.api.scripting.NashornScriptEngineFactory;\n\nimport java.io.File;\nimport java.io.FileInputStream;\nimport java.io.FileNotFoundException;...
java
chosen
[ { "from": "system", "value": "Use PerformanceMontoringResults as a datamodel.\n" }, { "from": "human", "value": "package benchmarking;\n\n\nimport converters.JsonConverter;\nimport datamodel.PerformanceSelfMonitoring;\nimport mongo.MongoManager;\n\npublic class Monitoring {\n PerformanceMonit...
java
chosen
[ { "from": "system", "value": "Use apache.common.lang3 for OS determination." }, { "from": "human", "value": "/**\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional informati...
java
chosen
[ { "from": "system", "value": "Define tab will not reload automatically anymore.\n" }, { "from": "human", "value": "package com.brg.controller;\n\nimport javafx.fxml.FXML;\nimport javafx.fxml.Initializable;\nimport javafx.scene.web.WebView;\n\nimport java.net.URL;\nimport java.util.ResourceBundle...
java
chosen
[ { "from": "system", "value": "Extend the writer class in the IO class.\n" }, { "from": "human", "value": "package fi.helsinki.cs.tmc.cli.io;\n\npublic abstract class Io {\n\n public abstract void print(String str);\n\n public void print(Object obj) {\n print(String.valueOf(obj));\n ...
java
chosen
[ { "from": "system", "value": "Change adminSettings/save to accept a list of settings instead of just one\n" }, { "from": "human", "value": "package mil.dds.anet.resources;\n\nimport java.util.List;\n\nimport javax.annotation.security.RolesAllowed;\nimport javax.ws.rs.GET;\nimport javax.ws.rs.POS...
java
chosen
[ { "from": "system", "value": "Add missing event types used by repository webhooks\n" }, { "from": "human", "value": "package org.kohsuke.github;\n\nimport java.util.Locale;\n\n/**\n * Hook event type.\n *\n * @author Kohsuke Kawaguchi\n * @see GHEventInfo\n * @see <a href=\"https://developer.git...
java
chosen
[ { "from": "system", "value": "Add ) as sentence end marker to cap word after :-)\n" }, { "from": "human", "value": "package ee.ioc.phon.android.speak.service;\n\nimport java.util.Arrays;\nimport java.util.HashSet;\nimport java.util.Set;\n\npublic class Constants {\n\n public static final Set<...
java
chosen
[ { "from": "system", "value": "Send and receive TCP messages\n" }, { "from": "human", "value": "package city.smug.projectmercury.messaging;\n\nimport java.util.ArrayList;\n\nimport city.smug.projectmercury.sms.SmsHandler;\n\npublic class Messenger {\n protected ArrayList<Group> groups = new Ar...
java
chosen
[ { "from": "system", "value": "Mark Log4j 2.15 as vulnerable\n\nFollows publication of\nhttps://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-45046\n\nIssue #19300\n" }, { "from": "human", "value": "/*\n * Copyright 2021 the original author or authors.\n *\n * Licensed under the Apache License,...
java
chosen
[ { "from": "system", "value": "Make sure the JerseryClient thread pools are sized.\n" }, { "from": "human", "value": "package com.yammer.dropwizard.client;\n\nimport javax.validation.constraints.Max;\nimport javax.validation.constraints.Min;\n\npublic class JerseyClientConfiguration extends HttpC...
java
chosen
[ { "from": "system", "value": "Make loadstatus end up in the json.\n" }, { "from": "human", "value": "package com.conveyal.gtfs.validator.json;\n\nimport java.util.Collection;\nimport java.util.Date;\n\nimport com.conveyal.gtfs.model.ValidationResult;\n\n/**\n * A class to hold all of the results...
java
chosen
[ { "from": "system", "value": "Add getter for cellIndex field\n" }, { "from": "human", "value": "package com.quantxt.io.model;\n\npublic interface Cell {\n\n Row getRow();\n\n CellType getCellType();\n\n CellStyle getCellStyle();\n\n void setCellStyle(CellStyle cellStyle);\n\n Stri...
java
chosen
[ { "from": "system", "value": "Correct label name - thanks @vinhhv!\n" }, { "from": "human", "value": "package com.shippo.model;\n\npublic enum LabelFileType {\n\tPNG, PDF, PDF_4X6, ZPLII\n}\n" }, { "from": "gpt", "value": "package com.shippo.model;\n\npublic enum LabelFileType {\n\tP...
java
chosen
[ { "from": "system", "value": "Remove /want help; already is invalid usage so shows default help\n" }, { "from": "human", "value": "\npackage com.exphc.FreeTrade;\n\nimport java.util.logging.Logger;\nimport org.bukkit.plugin.java.JavaPlugin;\nimport org.bukkit.command.*;\nimport org.bukkit.entity...
java
chosen
[ { "from": "system", "value": "Make duplicate match filter less likely to produce false positives\n" }, { "from": "human", "value": "package won.matcher.service.nodemanager.service;\n\nimport com.google.common.base.Charsets;\nimport com.google.common.hash.BloomFilter;\nimport com.google.common.ha...
java
chosen
[ { "from": "system", "value": "Test for multiple key insertions added\n" }, { "from": "human", "value": "package edu.oregonstate.cope.clientRecorder;\n\nimport static org.junit.Assert.*;\n\nimport org.junit.Before;\nimport org.junit.Test;\n\nimport edu.oregonstate.cope.tests.util.StubFileProvider...
java
chosen
[ { "from": "system", "value": "Make security config be fixed at build time\n" }, { "from": "human", "value": "package io.quarkus.elytron.security.runtime;\n\nimport io.quarkus.runtime.annotations.ConfigItem;\nimport io.quarkus.runtime.annotations.ConfigPhase;\nimport io.quarkus.runtime.annotation...
java
chosen
[ { "from": "system", "value": "Set session cookie to an empty string w/o space.\n" }, { "from": "human", "value": "package com.google.sps.servlets;\n\nimport java.io.IOException;\nimport javax.servlet.annotation.WebServlet;\nimport javax.servlet.http.Cookie;\nimport javax.servlet.http.HttpServlet...
java
chosen
[ { "from": "system", "value": "Remove unused code identified by the UCDetector\n\ngit-svn-id: 79cef5a5a257cc9dbe40a45ac190115b4780e2d0@1636563 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "human", "value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * co...
java
chosen
[ { "from": "system", "value": "Fix compilation error from previous checkin.\n" }, { "from": "human", "value": "package com.atlassian.pageobjects.elements.test.pageobjects.page;\r\n\r\nimport com.atlassian.pageobjects.Page;\r\nimport com.atlassian.pageobjects.elements.Element;\r\nimport com.atlass...
java
chosen
[ { "from": "system", "value": "Allow OTP creation without user ID\n" }, { "from": "human", "value": "/*\n * Copyright 2021 Wultra 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 License.\n * You may obtai...
java
chosen
[ { "from": "system", "value": "Set user agent to fix 403 status error\n" }, { "from": "human", "value": "package net.sf.jabref.gui.help;\n\nimport java.io.IOException;\nimport java.net.HttpURLConnection;\nimport java.net.URL;\n\nimport org.junit.Test;\n\nimport static junit.framework.TestCase.ass...
java
chosen
[ { "from": "system", "value": "Call asm.loads when a string is encountered\n" }, { "from": "human", "value": "package interpres.ast;\n\nimport java.util.List;\nimport java.util.ArrayList;\n\nimport interpres.language.DefinitionTable;\nimport interpres.language.values.Value;\n\npublic class String...
java
chosen
[ { "from": "system", "value": "Fix for GH-4, isResourceValid should check for PONG not OK\n" }, { "from": "human", "value": "package redis.clients.jedis;\n\nimport java.io.IOException;\nimport java.net.UnknownHostException;\n\nimport redis.clients.util.FixedResourcePool;\n\npublic class JedisPool...
java
chosen
[ { "from": "system", "value": "Remove @ from user on Dab command\n" }, { "from": "human", "value": "package com.nincraft.ninbot.command;\n\nimport com.nincraft.ninbot.util.MessageUtils;\nimport lombok.val;\nimport net.dv8tion.jda.core.entities.Message;\nimport net.dv8tion.jda.core.events.message....
java
chosen
[ { "from": "system", "value": "Fix for line trimming so it is actually in use\n" }, { "from": "human", "value": "\npackage novoda.lib.sqliteprovider.util;\n\nimport java.io.BufferedReader;\nimport java.io.File;\nimport java.io.FileReader;\nimport java.io.IOException;\nimport java.io.Reader;\nimpo...
java
chosen