conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Move search log to level verbose\n" }, { "from": "human", "value": "package de.philipphager.disclosure.feature.analyser.app;\n\nimport dalvik.system.DexFile;\nimport de.philipphager.disclosure.database.app.model.App;\nimport java.io.File;\nimport java.io.IOException...
java
chosen
[ { "from": "system", "value": "Add signature for reading one row\n" }, { "from": "human", "value": "package com.github.mrloyal.flatexcelmapper;\n\nimport org.apache.poi.xssf.usermodel.XSSFSheet;\n\nimport java.io.File;\nimport java.util.List;\n\npublic class FlatExcelMapper {\n\n public <T ext...
java
chosen
[ { "from": "system", "value": "Add an empty line at the end of the file\n" }, { "from": "human", "value": "package org.fluentd.logger.sender;\n\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\n\nimport java.util.Deque;\nimport java.util.LinkedList;\n\n/**\n * Calculate exponential dela...
java
chosen
[ { "from": "system", "value": "Change name of state to SearchField. Apparently the name has to match the state." }, { "from": "human", "value": "/*\n * Copyright (c) 2009 Kathryn Huxtable and Kenneth Orr.\n *\n * This file is part of the SeaGlass Pluggable Look and Feel.\n *\n * Licensed under th...
java
chosen
[ { "from": "system", "value": "Add some more methods to the fluid container" }, { "from": "human", "value": "package info.u_team.u_team_core.container;\n\nimport net.minecraft.inventory.container.*;\n\npublic abstract class FluidContainer extends Container {\n\t\n\tpublic FluidContainer(Container...
java
chosen
[ { "from": "system", "value": "Remove the security bypass hack. It's not needed anymore.\n" }, { "from": "human", "value": "// Security.java\n\npackage ed.security;\n\nimport ed.js.engine.*;\n\npublic class Security {\n\n public final static boolean OFF = Boolean.getBoolean( \"NO-SECURITY\" )...
java
chosen
[ { "from": "system", "value": "Fix bug in handling arguments\n\nSigned-off-by: Stefan Marr <46f1a0bd5592a2f9244ca321b129902a06b53e03@stefan-marr.de>\n" }, { "from": "human", "value": "package som;\n\nimport java.util.Arrays;\n\n\npublic class VMOptions {\n public static final String STANDARD_PLA...
java
chosen
[ { "from": "system", "value": "Add '--quiet' option for standalone usage\n\nWhat\n===\nAdd '--quiet' option for standalone usage. When provided the logger will\nbe turned off resulting in no information writing to stderr.\n\nWhy\n===\nWhen using standalone with IDEs like vim and plugins like vim-lsc the\nstd...
java
chosen
[ { "from": "system", "value": "Add new changes to ElasticSearchOperation class\n" }, { "from": "human", "value": "package ca.ualberta.team7project.network;\n\npublic class ElasticSearchSearchResponse {\n\n}\n" }, { "from": "gpt", "value": "package ca.ualberta.team7project.network;\n\n...
java
chosen
[ { "from": "system", "value": "Make GET to /renderedConfigs/{serviceId} at the Agent level not require authentication\n" }, { "from": "human", "value": "package com.hubspot.baragon.agent.resources;\n\n\nimport javax.ws.rs.GET;\nimport javax.ws.rs.Path;\nimport javax.ws.rs.PathParam;\nimport javax...
java
chosen
[ { "from": "system", "value": "Make the robot do its job.\n" }, { "from": "human", "value": "package org.robockets.stronghold.robot.commands;\n\nimport edu.wpi.first.wpilibj.command.CommandGroup;\nimport org.robockets.stronghold.robot.drivetrain.AssistedDrive;\nimport org.robockets.stronghold.rob...
java
chosen
[ { "from": "system", "value": "Test deferred registry with biomes" }, { "from": "human", "value": "package info.u_team.u_team_test.init;\n\nimport info.u_team.u_team_core.util.registry.BaseRegistryUtil;\nimport info.u_team.u_team_test.TestMod;\nimport info.u_team.u_team_test.biome.BasicBiome;\nim...
java
chosen
[ { "from": "system", "value": "Fix sources to correspond with language level\n" }, { "from": "human", "value": "package com.ilyamur.osgi.helloworld.impl;\n\nimport com.ilyamur.osgi.helloworld.service.OsgiHelloworldService;\nimport org.osgi.framework.BundleActivator;\nimport org.osgi.framework.Bun...
java
chosen
[ { "from": "system", "value": "Add test for default constructor\n" }, { "from": "human", "value": "package com.deuteriumlabs.dendrite.unittest;\n\nimport static org.junit.Assert.*;\n\nimport org.junit.Test;\n\npublic class PageIdTest {\n @Test\n public void test() {\n fail(\"Not yet ...
java
chosen
[ { "from": "system", "value": "Increment FAM due to addition of purge method\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 exce...
java
chosen
[ { "from": "system", "value": "Fix compile error.\nThis is a workaround.Please fix correctly in the future.\n" }, { "from": "human", "value": "//\n// MessagePack for Java\n//\n// Copyright (C) 2009-2011 FURUHASHI Sadayuki\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\")...
java
chosen
[ { "from": "system", "value": "Make utility constructor truly uninstantiable\n" }, { "from": "human", "value": "/*\n * Copyright 2012 - 2014 Maginatics, 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 Licen...
java
chosen
[ { "from": "system", "value": "Fix for spigot API not being finished yet.\n" }, { "from": "human", "value": "package com.censoredsoftware.censoredlib.util;\n\nimport org.bukkit.Effect;\nimport org.bukkit.Location;\n\npublic class Spigots\n{\n\tpublic static void playParticle(Location location, Ef...
java
chosen
[ { "from": "system", "value": "Fix not being able to /status offline players\n" }, { "from": "human", "value": "package org.sweetiebelle.mcprofiler.bukkit;\n\nimport java.util.UUID;\n\nimport org.bukkit.Bukkit;\nimport org.bukkit.ChatColor;\nimport org.bukkit.entity.Player;\nimport org.bukkit.plu...
java
chosen
[ { "from": "system", "value": "Add correct link to WebSocketConnection in docs\n" }, { "from": "human", "value": "package org.webbitserver.stub;\n\nimport org.webbitserver.HttpRequest;\nimport org.webbitserver.WebSocketConnection;\n\n/**\n * Implementation of WebSocketConnection that is easy to c...
java
chosen
[ { "from": "system", "value": "Create some tests for JMeterContextService\n\ngit-svn-id: 7c053b8fbd1fb5868f764c6f9536fc6a9bbe7da9@634114 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "human", "value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributo...
java
chosen
[ { "from": "system", "value": "Change the default to be geofencing with high accuracy at 30 sec intervals\n" }, { "from": "human", "value": "package edu.berkeley.eecs.emission.cordova.tracker.location;\n\nimport android.content.Context;\nimport android.location.Location;\n\nimport com.google.andr...
java
chosen
[ { "from": "system", "value": "Fix Schema table name variable\n" }, { "from": "human", "value": "package com.test.smartnotes.database;\n\n/**\n * Created by saff on 08.06.17.\n */\n\npublic class NotesDbSchema {\n public static final class NotesTable {\n public static final String DATAB...
java
chosen
[ { "from": "system", "value": "Add regex to strip html tags from question excerpt when rendering.\n" }, { "from": "human", "value": "package io.github.vcuswimlab.stackintheflow.view;\nimport io.github.vcuswimlab.stackintheflow.model.Question;\n\nimport javax.swing.*;\nimport javax.swing.border.Li...
java
chosen
[ { "from": "system", "value": "Check default country is defined before starting app.\n" }, { "from": "human", "value": "package plugins;\n\nimport com.google.inject.Guice;\nimport com.google.inject.Injector;\nimport io.sphere.sdk.client.PlayJavaClient;\nimport play.Application;\nimport play.Globa...
java
chosen
[ { "from": "system", "value": "Update to latest version of PAV namespace" }, { "from": "human", "value": "package org.nanopub;\n\nimport org.openrdf.model.URI;\nimport org.openrdf.model.impl.URIImpl;\n\n/**\n * Recommended third-party vocabulary to be used in provenance and publication info graph...
java
chosen
[ { "from": "system", "value": "Update to latest unset game response code\n\nSigned-off-by: Taylor Blau <b1c1d8736f20db3fb6c1c66bb1455ed43909f0d8@ttaylorr.com>\n" }, { "from": "human", "value": "package pro.beam.api.util;\n\nimport com.google.common.base.Function;\nimport com.google.common.util.co...
java
chosen
[ { "from": "system", "value": "Add a member, a Constructor and a method" }, { "from": "human", "value": "package net.megaroid.math;\n\npublic class Factors {\n\n}\n" }, { "from": "gpt", "value": "package net.megaroid.math;\n\npublic class Factors {\n\t\n\tprivate int mNumber;\n\t\n\tp...
java
chosen
[ { "from": "system", "value": "Fix NullPointerException when searched text is not set via a system property\n" }, { "from": "human", "value": "package com.github.sulir.runtimesearch.shared;\n\nimport java.io.Serializable;\nimport java.util.HashMap;\nimport java.util.Map;\nimport java.util.Propert...
java
chosen
[ { "from": "system", "value": "Add new jpf test cases\n" }, { "from": "human", "value": "package org.joda.time.field;\n\n\nimport org.joda.time.DateTimeFieldType;\nimport org.joda.time.chrono.IslamicChronology;\n\npublic class DriveDividedDateTimeField {\n\n static DividedDateTimeField rdtf = ...
java
chosen
[ { "from": "system", "value": "Fix potential NPE with command context\n" }, { "from": "human", "value": "package top.quantic.sentry.discord.core;\n\nimport joptsimple.OptionSet;\nimport sx.blah.discord.handle.obj.IMessage;\n\npublic class CommandContext {\n\n private IMessage message;\n pri...
java
chosen
[ { "from": "system", "value": "Add support for named registries\n" }, { "from": "human", "value": "package techcable.minecraft.npclib;\n\nimport techcable.minecraft.npclib.citizens.CitizensNPCRegistry;\n\nimport net.citizensnpcs.api.CitizensAPI;\n\npublic class NPCLib {\n\tprivate NPCLib() {};\n\...
java
chosen
[ { "from": "system", "value": "[TACHYON-1559] Fix the two checkstyle errors originating out of the additional assertion\n" }, { "from": "human", "value": "/*\n * Licensed to the University of California, Berkeley under one or more contributor license\n * agreements. See the NOTICE file distribute...
java
chosen
[ { "from": "system", "value": "Remove this, use only enable, for Machine learning persist (I114).\n" }, { "from": "human", "value": "package roart.iclij.config;\n\npublic class MLConfig {\n \n // load before evolve or use\n private Boolean load;\n \n // enable evolve or use\n pr...
java
chosen
[ { "from": "system", "value": "Test for using final classes in the middle of the path\n" }, { "from": "human", "value": "package com.moonillusions.propertynavigation;\n\nimport static com.moonillusions.propertynavigation.PropertyNavigation.of;\nimport static com.moonillusions.propertynavigation.P...
java
chosen
[ { "from": "system", "value": "Copy files with 8KB buffer size (instead of 1KB)" }, { "from": "human", "value": "package com.nostra13.universalimageloader.utils;\r\n\r\nimport java.io.IOException;\r\nimport java.io.InputStream;\r\nimport java.io.OutputStream;\r\n\r\n/**\r\n * Provides operations ...
java
chosen
[ { "from": "system", "value": "Revert \"Use central definition of property.\"\n\nThis reverts commit d7b11332176807582a776b1463ab19fcfb2f257a.\n" }, { "from": "human", "value": "package org.eobjects.build;\n\nimport java.io.File;\nimport java.util.Map;\n\nimport org.apache.maven.plugin.AbstractMo...
java
chosen
[ { "from": "system", "value": "Support other locations for finding src.zip\n\nWhat\n===\nSupport other locations for finding src.zip so that it is found it if\nlives at either:\n - JAVA_HOME/lib/src.zip\n - JAVA_HOME/src.zip\n\nWhy\n===\nI've observed in testing that some installations of JVMs include src.zi...
java
chosen
[ { "from": "system", "value": "Remove binding to singleton as Configuration has already Singleton scope\n\nChange-Id: Ia43162be3ea477e10401c914f424949de4e18d6e\nSigned-off-by: Jacek Centkowski <ce4a73803a80af51ece4477dad59cc7b1801c73e@collab.net>\n" }, { "from": "human", "value": "// Copyright (C...
java
chosen
[ { "from": "system", "value": "Check that GreatestCommonDivisor accepts arguments in reverse order\n" }, { "from": "human", "value": "package se.ericthelin.fractions;\n\nimport org.junit.Test;\n\nimport static org.hamcrest.CoreMatchers.is;\nimport static org.junit.Assert.assertThat;\n\npublic cla...
java
chosen
[ { "from": "system", "value": "Reorder custom effects and conditions\n" }, { "from": "human", "value": "package com.btk5h.skriptmirror;\n\nimport ch.njol.skript.Skript;\nimport ch.njol.skript.lang.SyntaxElement;\nimport ch.njol.skript.lang.SyntaxElementInfo;\n\nimport java.util.Arrays;\nimport ja...
java
chosen
[ { "from": "system", "value": "Add a more useful toString method for a formula\n" }, { "from": "human", "value": "package beaform.entities;\n\nimport javax.persistence.Entity;\nimport javax.persistence.GeneratedValue;\nimport javax.persistence.Id;\n\nimport org.hibernate.annotations.GenericGenera...
java
chosen
[ { "from": "system", "value": "Use private constructor instead of enum to prevent instances\n" }, { "from": "human", "value": "package com.devinci.lib.util;\n\nimport android.os.Build;\n\n/**\n * Utility methods to check Android version.\n */\npublic enum Versions {\n ;\n\n /**\n * Checks if ...
java
chosen
[ { "from": "system", "value": "Use the actual DynamicTest type\n\n? was only used with the previous solution,\nwith the new solution, code can refer to the type\nwithout any problem\n" }, { "from": "human", "value": "package io.quarkus.it.main;\n\nimport static org.junit.jupiter.api.Assertions.as...
java
chosen
[ { "from": "system", "value": "Add support for annotating the class as `@Timed`\n" }, { "from": "human", "value": "package com.github.arteam.jdbi3.strategies;\n\nimport com.codahale.metrics.MetricRegistry;\nimport com.codahale.metrics.annotation.Timed;\nimport org.jdbi.v3.core.extension.Extension...
java
chosen
[ { "from": "system", "value": "Fix layout issue when skipping is disabled\n" }, { "from": "human", "value": "package com.stephentuso.welcome.ui;\n\nimport android.view.View;\n\n/**\n * Created by stephentuso on 11/15/15.\n */\npublic class SkipButton extends WelcomeScreenViewWrapper {\n\n priv...
java
chosen
[ { "from": "system", "value": "Fix HTML help generation for TMP_DIR so it has a more generic default value.\n" }, { "from": "human", "value": "/*\n * The MIT License\n *\n * Copyright (c) 2010 The Broad Institute\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy...
java
chosen
[ { "from": "system", "value": "Fix Java entity of exercise 'IsMember'\n" }, { "from": "human", "value": "package recursion.cons.ismember;\n\nimport plm.universe.bat.BatTest;\nimport plm.universe.cons.ConsEntity;\nimport plm.universe.cons.RecList;\n\npublic class IsMemberEntity extends ConsEntity ...
java
chosen
[ { "from": "system", "value": "Work around a bug in ListView" }, { "from": "human", "value": "package com.fsck.k9.view;\n\nimport android.content.Context;\nimport android.os.Parcelable;\nimport android.util.AttributeSet;\nimport android.widget.ListView;\n\nimport com.handmark.pulltorefresh.librar...
java
chosen
[ { "from": "system", "value": "Make the timing tasks parallel aware.\n" }, { "from": "human", "value": "package com.lhkbob.entreri.task;\n\nimport com.lhkbob.entreri.EntitySystem;\n\npublic final class Timers {\n\n public static Task fixedDelta(double dt) {\n return new FixedDeltaTask(d...
java
chosen
[ { "from": "system", "value": "Remove double up on exception list for load settings\n" }, { "from": "human", "value": "package assettocorsa.servermanager.services;\n\nimport java.io.FileNotFoundException;\nimport java.io.IOException;\n\n/**\n * Created by pete on 3/04/2015.\n */\npublic interface...
java
chosen
[ { "from": "system", "value": "Add step command to help\n" }, { "from": "human", "value": "import backend.Core;\nimport java.io.IOException;\nimport parse.GreetParser;\nimport parse.StepParser;\n\npublic class App {\n public String getGreeting() {\n return \"Hello world.\";\n }\n\n /**\n ...
java
chosen
[ { "from": "system", "value": "Remove browser specific selectors from the body element\n\nChange-Id: I2f38067cc33fc2c2c8e0e2a311a43213f73ad3c8\n" }, { "from": "human", "value": "package com.vaadin.components.grid;\n\nimport com.google.gwt.core.client.EntryPoint;\n\n/**\n * Exports vaadin grid.\n ...
java
chosen
[ { "from": "system", "value": "Update protocol version to 49\n" }, { "from": "human", "value": "package com.thebuerkle.mcclient.request;\nimport org.apache.mina.core.buffer.IoBuffer;\n\npublic class HandshakeRequest extends Request {\n\n public final String username;\n public final String h...
java
chosen
[ { "from": "system", "value": "fix(registry): Return \"ok\" field in json response\n" }, { "from": "human", "value": "package valandur.webapi.servlet.registry;\n\nimport org.eclipse.jetty.http.HttpMethod;\nimport org.spongepowered.api.CatalogType;\nimport org.spongepowered.api.Sponge;\nimport val...
java
chosen
[ { "from": "system", "value": "WIP: Enable operations that write to the DB to be rolled back on error\nby wrapping them in transactions.\n\nAdd comments to indicate purpose of groups of related `UserManager`\nmethods.\n" }, { "from": "human", "value": "package managers.nodes;\n\nimport com.faster...
java
chosen
[ { "from": "system", "value": "Remove the shadow below status bar that occurs in version greater than M.\n" }, { "from": "human", "value": "package com.githang.statusbar;\n\nimport android.annotation.TargetApi;\nimport android.os.Build;\nimport android.view.View;\nimport android.view.Window;\nimp...
java
chosen
[ { "from": "system", "value": "Reduce number of placed ships\n" }, { "from": "human", "value": "package pw.scho.battleship.model;\n\nimport java.util.Random;\n\npublic class BoardRandomizer {\n\n private final Random random = new Random();\n private Board board;\n\n public Board randomiz...
java
chosen
[ { "from": "system", "value": "Rename menu pick that opens into Browser as VisBrowser. Changing JxBrowser menu pick to Visualizer to follow.\n" }, { "from": "human", "value": "/*\n * To change this license header, choose License Headers in Project Properties.\n * To change this template file, cho...
java
chosen
[ { "from": "system", "value": "Remove = requirement from the x-api-bearer.\n" }, { "from": "human", "value": "package io.cattle.platform.core.constants;\n\npublic class ProjectConstants {\n\n public static final String TYPE = \"project\";\n public static final String PROJECT_DEFAULT_NAME = ...
java
chosen
[ { "from": "system", "value": "Fix issue with DatePicker rotation in FROYO/GINGERBREAD\n" }, { "from": "human", "value": "/* (C) 2012 Pragmatic Software\n This Source Code Form is subject to the terms of the Mozilla Public\n License, v. 2.0. If a copy of the MPL was not distributed with this\...
java
chosen
[ { "from": "system", "value": "GS-8956: Allow extracting Processing Unit Containers from a Compound Processing Unit Container\n\nsvn path=/trunk/openspaces/; revision=89106\n\n\nFormer-commit-id: acf333707ebb008757b03896f93f1d252dca2b62" }, { "from": "human", "value": "/*\n * Copyright 2006-2007 ...
java
chosen
[ { "from": "system", "value": "Save Structurizr workspaces to a persistent directory.\n" }, { "from": "human", "value": "package com.structurizr.example.structurizr;\n\nimport com.structurizr.Workspace;\nimport com.structurizr.api.StructurizrClient;\n\npublic class UploadToStructurizr extends Abs...
java
chosen
[ { "from": "system", "value": "Read version string only once.\n" }, { "from": "human", "value": "package net.morimekta.providence.tools.common;\n\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.util.Properties;\n\n/**\n * General utility methods.\n */\npublic class Utils {\...
java
chosen
[ { "from": "system", "value": "Migrate to Spring Boot 1.4.0" }, { "from": "human", "value": "/*\nCopyright (c) 2016 Sebastian Schmidt\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\ni...
java
chosen
[ { "from": "system", "value": "Update of Javadoc for event constants" }, { "from": "human", "value": "package com.example.e4.rcp.todo.events;\n\n/**\n * @noimplement only used for constant definition\n */\n\npublic interface MyEventConstants {\n\n\t// this key can only used for event registration...
java
chosen
[ { "from": "system", "value": "Check if a username exists." }, { "from": "human", "value": "/*\n * To change this license header, choose License Headers in Project Properties.\n * To change this template file, choose Tools | Templates\n * and open the template in the editor.\n */\n\npackage edu.h...
java
chosen
[ { "from": "system", "value": "git: Fix blocking if users push simultaneously\n\nIf many git clients push commits into same repository simultaneously,\nmany of them are blocked because of project table's\nOptimisticLockException.\n\nSolution:\n* Refresh the project before update it.\n* Use synchronized block...
java
chosen
[ { "from": "system", "value": "Use Window instead of JFrame to find top-level parent." }, { "from": "human", "value": "/*\n * Copyright (c) 2009 Kathryn Huxtable and Kenneth Orr.\n *\n * This file is part of the SeaGlass Pluggable Look and Feel.\n *\n * Licensed under the Apache License, Version ...
java
chosen
[ { "from": "system", "value": "Use the new location of the default config file\n" }, { "from": "human", "value": "package com.github.fluxw42.thistothat;\n\nimport com.github.fluxw42.thistothat.conf.ConfigurationImpl;\n\nimport java.io.File;\n\n/**\n * Date: 2/2/16 - 11:51 PM\n *\n * @author Jeroe...
java
chosen
[ { "from": "system", "value": "Update the name of some functions" }, { "from": "human", "value": "package dk.aau.kah.bits.helpers;\n\nimport java.io.BufferedReader;\nimport java.io.FileNotFoundException;\nimport java.io.FileReader;\n\nimport com.google.gson.Gson;\n\nimport dk.aau.kah.bits.databas...
java
chosen
[ { "from": "system", "value": "Rebase exception: this is not an UI exception" }, { "from": "human", "value": "/*\n * DomUI Java User Interface library\n * Copyright (c) 2010 by Frits Jalvingh, Itris B.V.\n *\n * This library is free software; you can redistribute it and/or\n * modify it under the...
java
chosen
[ { "from": "system", "value": "Extend bold and italic pattern\n" }, { "from": "human", "value": "package com.todoist.markup;\n\nimport java.util.regex.Pattern;\n\nclass Patterns {\n public static final Pattern HEADER = Pattern.compile(\"^\\\\*\\\\s+\");\n public static final Pattern BOLD = ...
java
chosen
[ { "from": "system", "value": "Upgrade to on-deprecated texture packer\n" }, { "from": "human", "value": "package starpunk;\n\nimport com.badlogic.gdx.backends.lwjgl.LwjglApplication;\nimport com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration;\nimport com.badlogic.gdx.graphics.g2d.Bitm...
java
chosen
[ { "from": "system", "value": "Add the sorting test class to the test suite." }, { "from": "human", "value": "package tests;\r\n\r\nimport org.junit.runner.RunWith;\r\nimport org.junit.runners.Suite;\r\nimport org.junit.runners.Suite.SuiteClasses;\r\n\r\n@RunWith(Suite.class)\r\n@SuiteClasses({ \...
java
chosen
[ { "from": "system", "value": "Add connection timeout & user agent\n" }, { "from": "human", "value": "package me.ryanw.overcast.impl;\n\nimport me.ryanw.overcast.api.OvercastFriend;\nimport me.ryanw.overcast.api.OvercastPlayer;\nimport me.ryanw.overcast.impl.object.ParsedPlayer;\nimport org.jsoup...
java
chosen
[ { "from": "system", "value": "Add Charge and Validate Endpoints\n" }, { "from": "human", "value": "package co.paystack.android.api.service;\n\nimport java.util.HashMap;\n\nimport co.paystack.android.api.model.TokenApiResponse;\nimport retrofit2.Call;\nimport retrofit2.http.FieldMap;\nimport retr...
java
chosen
[ { "from": "system", "value": "Use a shorter joke for test\n" }, { "from": "human", "value": "package is.ru.sparkit;\n\nimport static org.junit.Assert.assertEquals;\nimport static org.junit.Assert.assertTrue;\nimport org.junit.Test;\n\npublic class ChuckJokeTest {\n\n final ChuckJoke chuck = n...
java
chosen
[ { "from": "system", "value": "Add methods to save and load timetable\n" }, { "from": "human", "value": "package com.mick88.dittimetable;\n\nimport android.content.Context;\n\nimport com.michaldabski.msqlite.MSQLiteOpenHelper;\nimport com.mick88.dittimetable.timetable.Timetable;\n\npublic class D...
java
chosen
[ { "from": "system", "value": "Add other DaoImpl beans in rest-dispatcher-servlet.xml 4\n" }, { "from": "human", "value": "package com.devcru.journowatch.api.services;\r\n\r\nimport org.springframework.beans.factory.annotation.Autowired;\r\n\r\nimport com.devcru.journowatch.api.daoimpl.VenueDaoIm...
java
chosen
[ { "from": "system", "value": "Make the Entry class static\n\nSo we don't to instantiate it. Was getting weird errors :/\n\nFound on SO somewhere.\n" }, { "from": "human", "value": "import java.util.*;\n\npublic class Table {\n\n public class Entry {\n public Integer iface;\n pub...
java
chosen
[ { "from": "system", "value": "Set date format leniency to false.\n\n" }, { "from": "human", "value": "package org.jreform.types;\n\nimport java.text.DateFormat;\nimport java.text.ParseException;\nimport java.text.SimpleDateFormat;\nimport java.util.Date;\n\nimport org.jreform.InputDataType;\n\np...
java
chosen
[ { "from": "system", "value": "Add standard constructors from parent class.\n" }, { "from": "human", "value": "package ie.omk.smpp.event;\r\n\r\npublic class QueueFullException extends RuntimeException {\r\n static final long serialVersionUID = 1L;\r\n}\r\n" }, { "from": "gpt", "va...
java
chosen
[ { "from": "system", "value": "Update Longest Substring Without Repeating\n" }, { "from": "human", "value": "package problems;\n\nimport java.util.HashMap;\n\npublic class LongestSubstringWORepeating {\n public int lengthOfLongestSubstring(String s) {\n int len = s.length();\n in...
java
chosen
[ { "from": "system", "value": "Add tags to InstanceInjector example\n" }, { "from": "human", "value": "import io.datakernel.di.annotation.Inject;\nimport io.datakernel.di.annotation.Provides;\nimport io.datakernel.di.core.Injector;\nimport io.datakernel.di.core.InstanceInjector;\nimport io.datake...
java
chosen
[ { "from": "system", "value": "Add finally block as well\n" }, { "from": "human", "value": "package com.vladmihalcea.book.hpjp.hibernate.statistics;\n\nimport org.hibernate.stat.internal.ConcurrentStatisticsImpl;\n\nimport java.util.concurrent.atomic.AtomicLong;\n\n/**\n * <code>TransactionStatis...
java
chosen
[ { "from": "system", "value": "Simplify PMR parser in network protocols\n" }, { "from": "human", "value": "package org.jvirtanen.parity.net.pmr;\n\nimport static org.jvirtanen.parity.net.pmr.PMR.*;\n\nimport com.paritytrading.nassau.MessageListener;\nimport java.io.IOException;\nimport java.nio.B...
java
chosen
[ { "from": "system", "value": "Update CommandData to use HashMaps, update examplecommand accordingly.\n" }, { "from": "human", "value": "package org.usfirst.frc.team1360.robot.autonomous.actions;\n\nimport edu.wpi.first.wpilibj.command.Command;\nimport org.usfirst.frc.team1360.robot.util.CommandD...
java
chosen
[ { "from": "system", "value": "Add constructor taking a String directly.\n" }, { "from": "human", "value": "/**\n * Copyright (C) 2015 MicroWorld (contact@microworld.org)\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance w...
java
chosen
[ { "from": "system", "value": "Mark rule name as non-configurable\n\nSummary:\nThis diff effectively changes nothing because, `name` attribute is fetched from unconfigured graph node from hash map by string, and it will simply fail if `name` is `select` (see also D17633433).\n\nBut it's still better to add t...
java
chosen
[ { "from": "system", "value": "Document the various named methods in the presenter\n" }, { "from": "human", "value": "/*\n * Copyright 2016 Peter Kenji Yamanaka\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the Li...
java
chosen
[ { "from": "system", "value": "[StarQuest] Update only the changed Vault service\n" }, { "from": "human", "value": "package com.starquestminecraft.bukkit;\n\nimport org.bukkit.event.EventHandler;\nimport org.bukkit.event.EventPriority;\nimport org.bukkit.event.server.ServiceRegisterEvent;\nimport...
java
chosen
[ { "from": "system", "value": "Create RmiContext Beans before UIContext Beans" }, { "from": "human", "value": "package devopsdistilled.operp.client.context;\n\nimport org.springframework.context.annotation.Configuration;\nimport org.springframework.context.annotation.Import;\n\n@Configuration\n@I...
java
chosen
[ { "from": "system", "value": "Add toString to help with eventbus debug\n" }, { "from": "human", "value": "package co.phoenixlab.discord.api.event;\n\nimport co.phoenixlab.discord.api.entities.Message;\n\npublic class MessageReceivedEvent {\n\n private final Message message;\n\n public Mess...
java
chosen
[ { "from": "system", "value": "Return the status line of response header.\n" }, { "from": "human", "value": "package org.yukung.sandbox.http;\n\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.net.ServerSocket;\nimport java.net.Socket;\n\n/**\n * @author yukung\n */\npublic ...
java
chosen
[ { "from": "system", "value": "Use existing classes for the covariance example\n" }, { "from": "human", "value": "public class CovariantArrayDemo {\n\n static class Animal {}\n static class Dog extends Animal {}\n static class Cat extends Animal {}\n\n public static void main(String[]...
java
chosen
[ { "from": "system", "value": "Rollback to @RequestMapping to comply with feign validation.\n" }, { "from": "human", "value": "package fr.animenfance.partenaire.controller;\n\nimport static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;\n\nimport java.util.List;\n\nimport org.springfr...
java
chosen
[ { "from": "system", "value": "Initialize ghost list in GhostRespository\n" }, { "from": "human", "value": "package com.pm.server.player;\n\nimport java.util.List;\n\nimport org.springframework.stereotype.Repository;\n\n@Repository\npublic class GhostRepositoryImpl implements GhostRepository {\n\...
java
chosen
[ { "from": "system", "value": "Replace `@Nullable` with `@NotNull` since method actually always returns non-null value\n\nGitOrigin-RevId: 4e67fd4f27ef4779939739b978c319a2aacbe78c" }, { "from": "human", "value": "// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the A...
java
chosen
[ { "from": "system", "value": "Add hostname to be printed on ping\n" }, { "from": "human", "value": "package name.webdizz.fabric8.ci.cd.ping;\n\nimport org.springframework.core.env.Environment;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.beans.facto...
java
chosen