conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Make sure to tell Github API what version we are expecting\n" }, { "from": "human", "value": "package net.ericschrag.ud_demo.data;\n\nimport net.ericschrag.ud_demo.data.model.GithubUser;\n\nimport java.util.List;\n\nimport retrofit.http.GET;\n\npublic interface Gith...
java
chosen
[ { "from": "system", "value": "Set ladder bounds to pre 1.9.\n\nA bit smaller actually, but it has to be done, so the VoxelShape type is\nthe same." }, { "from": "human", "value": "package protocolsupport.zplatform.impl.spigot.block;\n\nimport net.minecraft.server.v1_14_R1.BlockWaterLily;\nimport...
java
chosen
[ { "from": "system", "value": "Add statistics package to component scan.\n" }, { "from": "human", "value": "package uk.ac.ebi.quickgo.annotation;\n\nimport uk.ac.ebi.quickgo.annotation.service.search.SearchServiceConfig;\nimport uk.ac.ebi.quickgo.rest.controller.CORSFilter;\nimport uk.ac.ebi.quic...
java
chosen
[ { "from": "system", "value": "Add navigation to system settings and updates\n" }, { "from": "human", "value": "package de.philipphager.disclosure.feature.navigation;\n\nimport android.app.Activity;\nimport de.philipphager.disclosure.database.app.model.App;\nimport de.philipphager.disclosure.data...
java
chosen
[ { "from": "system", "value": "Mark String hash methods as boundary\n\nSigned-off-by: Stefan Marr <46f1a0bd5592a2f9244ca321b129902a06b53e03@stefan-marr.de>\n" }, { "from": "human", "value": "package som.primitives;\n\nimport com.oracle.truffle.api.dsl.GenerateNodeFactory;\nimport com.oracle.truff...
java
chosen
[ { "from": "system", "value": "Correct way of registering XML RPC handler\n" }, { "from": "human", "value": "package com.jetbrains.python.console;\n\nimport com.jetbrains.python.console.pydev.PydevConsoleCommunication;\nimport org.apache.xmlrpc.WebServer;\nimport org.apache.xmlrpc.XmlRpcHandlerMa...
java
chosen
[ { "from": "system", "value": "Correct the type of exception thrown when bad geometry data passed to the constructor\n" }, { "from": "human", "value": "package fgis.server.support.geojson;\n\nimport java.util.Map;\nimport javax.annotation.Nonnull;\nimport javax.annotation.Nullable;\nimport javax....
java
chosen
[ { "from": "system", "value": "Add getters, change variable names, fix error\n" }, { "from": "human", "value": "/**\n * Représente un robot\n */\npublic class Robot {\n\tprivate String name;\n\tprivate Point2D pos;\n\tprivate int energy;\n\tprivate int health;\n\n\t/** Crée un robot */\n\tpublic ...
java
chosen
[ { "from": "system", "value": "Add edit text and button example in main activity\n" }, { "from": "human", "value": "package br.com.bloder.blorm;\n\nimport android.support.v7.app.AppCompatActivity;\nimport android.os.Bundle;\n\npublic class MainActivity extends AppCompatActivity {\n\n @Override\n...
java
chosen
[ { "from": "system", "value": "[ALIEN-2755] Allow specific handling of docker image artifact update in the editor, util fix.\n" }, { "from": "human", "value": "package org.alien4cloud.tosca.utils;\n\nimport static alien4cloud.utils.AlienUtils.safe;\n\nimport java.util.Map;\nimport java.util.Optio...
java
chosen
[ { "from": "system", "value": "Change repeating alarm to be ELAPSED_REALTIME type\n\nChange repeating alarms scheduled by AlarmManager in BootReceiver\nto be AlarmManager.ELAPSED_REALTIME type instead of RTC type,\nsince we don't need alarms to be fired at particular time, only\nat particular interval; follo...
java
chosen
[ { "from": "system", "value": "Change comment on suite a bit\n" }, { "from": "human", "value": "package com.adaptc.mws.plugins;\n\n/**\n * This enum represents which suite or context Moab Web Services is running in -\n * HPC or Cloud.\n * @author bsaville\n */\npublic enum Suite {\n\tHPC(\"HPC\")...
java
chosen
[ { "from": "system", "value": "Remove some in completed documentation. \n\nFixes #1" }, { "from": "human", "value": "package net.techcable.jstruct;\n\n/**\n * All classes annotated with this field will be <href a=https://wikipedia.org/wiki/PassByValue>pass by value</href>\n * <p/>\n * In order to...
java
chosen
[ { "from": "system", "value": "Fix the case where respond time is null\n" }, { "from": "human", "value": "/**\n * \n */\npackage org.opennms.dashboard.client;\n\nimport com.google.gwt.user.client.ui.FlexTable;\n\n\nclass NotificationView extends PageableTableView {\n \n private Notification...
java
chosen
[ { "from": "system", "value": "Revert \"Remove not used imports\"\n\nThis reverts commit 85706eb3faffe65b77432a46cde0ff9fe2a4312f.\n" }, { "from": "human", "value": "package org.synyx.urlaubsverwaltung.mail;\n\nimport org.springframework.boot.context.properties.ConfigurationProperties;\nimport or...
java
chosen
[ { "from": "system", "value": "Add default window size + title to Desktop Launcher\n" }, { "from": "human", "value": "package com.juotos.prr.desktop;\n\nimport com.badlogic.gdx.backends.lwjgl.LwjglApplication;\nimport com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration;\nimport com.juot...
java
chosen
[ { "from": "system", "value": "Add @Observable annotation to make it easier to parse for the time being\n" }, { "from": "human", "value": "import org.realityforge.arez.annotations.Action;\nimport org.realityforge.arez.annotations.Container;\nimport org.realityforge.arez.annotations.Observable;\n\...
java
chosen
[ { "from": "system", "value": "Fix missing imports and extends\n" }, { "from": "human", "value": "package com.josenaves.plugin;\n\nimport android.util.Log;\nimport android.location.LocationManager;\nimport android.content.Context;\n\nimport org.apache.cordova.CallbackContext;\nimport org.json.JSO...
java
chosen
[ { "from": "system", "value": "Exclude asm package from being transformed\n" }, { "from": "human", "value": "package squeek.veganoption.asm;\n\nimport java.util.Map;\nimport cpw.mods.fml.relauncher.IFMLLoadingPlugin;\n\n@IFMLLoadingPlugin.MCVersion(\"1.7.10\")\npublic class ASMPlugin implements I...
java
chosen
[ { "from": "system", "value": "Add serialization to the date time adapter\n" }, { "from": "human", "value": "package mn.devfest.api.adapter;\n\nimport com.google.gson.JsonDeserializationContext;\nimport com.google.gson.JsonDeserializer;\nimport com.google.gson.JsonElement;\nimport com.google.gson...
java
chosen
[ { "from": "system", "value": "Solve The Love Letter Mystery\n" }, { "from": "human", "value": "package hackerrank;\n\nimport java.util.Scanner;\n\n/**\n * https://www.hackerrank.com/challenges/the-love-letter-mystery\n */\npublic class TheLoveLetterMystery {\n private static int loveLetterMys...
java
chosen
[ { "from": "system", "value": "Add a constructor of component\n" }, { "from": "human", "value": "/**\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information regarding ...
java
chosen
[ { "from": "system", "value": "Add API to reset CxxModuleWrapper's module pointer\n\nReviewed By: mhorowitz\n\nDifferential Revision: D4914335\n\nfbshipit-source-id: f28f57c2e74d590dacfb85d8027747837f768fdc\n" }, { "from": "human", "value": "// Copyright 2004-present Facebook. All Rights Reserved...
java
chosen
[ { "from": "system", "value": "Remove unused code from test case\n" }, { "from": "human", "value": "package com.crawljax.core.configuration;\n\nimport static com.crawljax.core.configuration.CrawlElementMatcher.withXpath;\nimport static org.hamcrest.collection.IsCollectionWithSize.hasSize;\nimport...
java
chosen
[ { "from": "system", "value": "Change how GUI and logger is created. Initialize logger after we get\nconsole parameters and only then initialize logger." }, { "from": "human", "value": "package com.fatico.winthing;\n\nimport com.fatico.winthing.gui.WindowGui;\nimport com.fatico.winthing.messaging...
java
chosen
[ { "from": "system", "value": "Fix \"Model loaded\" messages appearing when animating\n" }, { "from": "human", "value": "package de.prob2.ui.consoles.b;\n\nimport java.io.File;\nimport java.util.ResourceBundle;\n\nimport com.google.inject.Inject;\nimport com.google.inject.Singleton;\n\nimport de....
java
chosen
[ { "from": "system", "value": "Fix format string for MessageFormat\n" }, { "from": "human", "value": "package com.komanov.stringformat;\n\nimport org.slf4j.helpers.MessageFormatter;\n\nimport java.text.MessageFormat;\nimport java.util.Locale;\n\npublic class JavaFormats {\n private static fina...
java
chosen
[ { "from": "system", "value": "Use parseInt() instead of valueOf()\n\nIt's more efficient to just use parseInt() instead of\nbox then unbox the value.\n" }, { "from": "human", "value": "package de.markusfisch.android.shadereditor.opengl;\n\npublic class InfoLog\n{\n\tprivate static String message...
java
chosen
[ { "from": "system", "value": "Fix side nav bar - click was failing due to span inside link on some pages\n" }, { "from": "human", "value": "package com.autonomy.abc.selenium.menu;\n\nimport com.hp.autonomy.frontend.selenium.util.AppElement;\nimport org.openqa.selenium.By;\nimport org.openqa.sele...
java
chosen
[ { "from": "system", "value": "Change the type to a long because the API is returning a number larger than an Integer\n" }, { "from": "human", "value": "package com.stripe.model;\n\npublic class Money {\n\tInteger amount;\n\tString currency;\n\n\tpublic Integer getAmount() {\n\t\treturn amount;\n...
java
chosen
[ { "from": "system", "value": "Add params to topic message\n" }, { "from": "human", "value": "package net.ontopia.presto.jaxb;\n\nimport javax.xml.bind.annotation.XmlRootElement;\n\nimport com.fasterxml.jackson.annotation.JsonIgnoreProperties;\nimport com.fasterxml.jackson.databind.annotation.Jso...
java
chosen
[ { "from": "system", "value": "Remove old calls that are no longer nessessary" }, { "from": "human", "value": "package info.u_team.u_team_test;\n\nimport org.apache.logging.log4j.*;\n\nimport info.u_team.u_team_core.util.annotation.AnnotationManager;\nimport info.u_team.u_team_core.util.verify.Ja...
java
chosen
[ { "from": "system", "value": "Update copyright notice with MIT license" }, { "from": "human", "value": "/*++\r\n\r\nNASM Assembly Language Plugin\r\nCopyright (c) 2017-2018 Aidan Khoury. All rights reserved.\r\n\r\nThis program is free software: you can redistribute it and/or modify\r\nit under ...
java
chosen
[ { "from": "system", "value": "Add the four abstract methods inherited from Database\n\nThis commit implements the methods from the Database class. Only the insert\nmethod is implemented. However, it might be a better choice to move these four\nmethods to the parent class because it seems that there is nothi...
java
chosen
[ { "from": "system", "value": "Allow to specify the backend as vm property rhq-metrics.backend.\nChoices are 'mem' and 'cass'.\n" }, { "from": "human", "value": "package org.rhq.metrics.restServlet;\n\nimport java.util.Collections;\n\nimport javax.enterprise.context.ApplicationScoped;\nimport jav...
java
chosen
[ { "from": "system", "value": "Update range comments inches and centimeters" }, { "from": "human", "value": "package org.firebears.sensors;\r\n// made by Jacob Wiggins\r\n\r\nimport edu.wpi.first.wpilibj.AnalogInput;\r\n\r\n/*\r\n * Range Sensor\r\n */\r\npublic class sharpIRRange extends AnalogI...
java
chosen
[ { "from": "system", "value": "Add movie support to plex\n" }, { "from": "human", "value": "package com.tasomaniac.seriesguide.plex;\n\nimport android.app.SearchManager;\nimport android.content.ComponentName;\nimport android.content.Intent;\n\nimport com.battlelancer.seriesguide.api.Action;\nimpo...
java
chosen
[ { "from": "system", "value": "Check for entities ahead before moving forward.\n" }, { "from": "human", "value": "package de.craften.plugins.educraft.luaapi.functions;\n\nimport de.craften.plugins.educraft.luaapi.EduCraftApiFunction;\nimport org.bukkit.Location;\nimport org.bukkit.block.BlockFace...
java
chosen
[ { "from": "system", "value": "Use dynamically allocated ports in unit tests\n\nUse dynamically allocated ports in unit tests so they won't unexpectedly\nfail if a port happens to be in use.\n" }, { "from": "human", "value": "/**\n * Copyright 2011-2012 the original author or authors.\n *\n * Lic...
java
chosen
[ { "from": "system", "value": "Add StethoInterceptor as a network interceptor\n" }, { "from": "human", "value": "package info.izumin.android.sunazuri.infrastructure;\n\nimport com.facebook.stetho.okhttp3.StethoInterceptor;\nimport dagger.Module;\nimport dagger.Provides;\nimport okhttp3.OkHttpClie...
java
chosen
[ { "from": "system", "value": "Add Tests to DatabaseConnectionTest class\n" }, { "from": "human", "value": "package Database;\n\nimport org.junit.After;\nimport org.junit.Before;\nimport org.junit.Test;\n\nimport static org.junit.Assert.*;\n\npublic class DatabaseConnectorTest {\n\n @Before\n ...
java
chosen
[ { "from": "system", "value": "Fix Sonar violation: create constants for note min/max\n" }, { "from": "human", "value": "package com.alexrnl.jbetaseries.request.parameters;\n\n/**\n * Parameter which allow to set the note of a show or an episode.<br />\n * @author Alex\n */\npublic class Note ext...
java
chosen
[ { "from": "system", "value": "Add method to delete file.\n" }, { "from": "human", "value": "package com.github.aureliano.achmed.os.fs;\n\nimport com.github.aureliano.achmed.resources.properties.FileProperties;\n\npublic interface IFileProvider {\n\n\tpublic abstract void setFileMode();\n\t\n\tpu...
java
chosen
[ { "from": "system", "value": "Make callable statements work again for JDK 1.5 builds. Any code\nint the jdbc3/Jdbc3 classes also needs to get into the corresponding\njdbc3g/Jdbc3g class.\n" }, { "from": "human", "value": "/*-----------------------------------------------------------------------...
java
chosen
[ { "from": "system", "value": "Update to use response object for setting headers\nSigned off by : Adam Pilkington apilkington@uk.ibm.com\n" }, { "from": "human", "value": "/*******************************************************************************\n * Copyright (c) 2017 IBM Corp.\n *\n * Lic...
java
chosen
[ { "from": "system", "value": "Remove operation specific to Volley\n" }, { "from": "human", "value": "package com.insa.rocketlyonandroid.utils;\n\nimport android.app.Activity;\nimport android.support.v4.app.Fragment;\n\nimport butterknife.ButterKnife;\nimport trikita.log.Log;\n\n/* With this Base...
java
chosen
[ { "from": "system", "value": "Set executor docker image to version 0.0.2\n" }, { "from": "human", "value": "package org.apache.mesos.logstash.common;\n\npublic interface LogstashConstants {\n String FRAMEWORK_NAME = \"logstash\";\n int FAILOVER_TIMEOUT = 300000;\n String EXECUTOR_IMAGE_...
java
chosen
[ { "from": "system", "value": "Fix broken import to shaded orbitz jar\n\nSigned-off-by: Tommy Shiou <fd59d852321c3431be8a979962d50c7894293a47@turn.com>\n" }, { "from": "human", "value": "/*\n * Copyright (C) 2016 Turn Inc. All Rights Reserved.\n * Proprietary and confidential.\n */\n\npackage com...
java
chosen
[ { "from": "system", "value": "Add the http before the externalUrlGeneration\n" }, { "from": "human", "value": "package com.bloatit.framework.webserver.url;\n\nimport com.bloatit.framework.utils.Parameters;\nimport com.bloatit.framework.utils.SessionParameters;\nimport com.bloatit.framework.xcgis...
java
chosen
[ { "from": "system", "value": "Trim whitespace from argument on insert\n" }, { "from": "human", "value": "/* Copyright 2015 Troy D. Heninger\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 ...
java
chosen
[ { "from": "system", "value": "Handle exception when getting Sensor Status from Empty Database\n" }, { "from": "human", "value": "package com.cesca.sensors.controller;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.http.MediaType;\nimport org.springf...
java
chosen
[ { "from": "system", "value": "Add planning and template getKeywords function\n" }, { "from": "human", "value": "// Copyright 2019 Google LLC\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may ...
java
chosen
[ { "from": "system", "value": "Fix format of slider block floats to be always valid." }, { "from": "human", "value": "package nl.utwente.viskell.ui.components;\n\nimport javafx.fxml.FXML;\nimport javafx.scene.control.Slider;\nimport nl.utwente.viskell.ui.CustomUIPane;\n\n/**\n * An extension of V...
java
chosen
[ { "from": "system", "value": "Initialize a Node(), which should set up process for us\n" }, { "from": "human", "value": "package org.projectodd.nodej;\n\nimport org.dynjs.runtime.DynJS;\nimport org.dynjs.runtime.ExecutionContext;\nimport org.dynjs.runtime.GlobalObject;\nimport org.junit.Before;\...
java
chosen
[ { "from": "system", "value": "Fix arity of skip param\n" }, { "from": "human", "value": "package me.coley.recaf.util;\n\nimport java.io.File;\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.concurrent.Callable;\n\nimport me.coley.recaf.Logging;\nimport picocli.CommandLine....
java
chosen
[ { "from": "system", "value": "Remove a bunch of stuff\n" }, { "from": "human", "value": "package org.redalert1741.steamworks;\n\nimport edu.wpi.first.wpilibj.IterativeRobot;\nimport edu.wpi.first.wpilibj.smartdashboard.SendableChooser;\nimport edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;...
java
chosen
[ { "from": "system", "value": "Use Objects::requireNonNull instead of if-throw" }, { "from": "human", "value": "/*\n * Copyright (c) 2013-2015 Falko Schumann <www.muspellheim.de>\n * Released under the terms of the MIT License.\n */\n\npackage de.muspellheim.signalslot;\n\nimport java.util.List;\...
java
chosen
[ { "from": "system", "value": "Fix inventory name on /dev/null\n" }, { "from": "human", "value": "package openblocks.client.gui;\n\nimport openblocks.common.container.ContainerDevNull;\nimport openmods.gui.BaseGuiContainer;\nimport openmods.gui.component.BaseComposite;\nimport openmods.gui.compon...
java
chosen
[ { "from": "system", "value": "Change cleanroom to use inner class.\n" }, { "from": "human", "value": "import java.util.ArrayList;\nimport java.lang.*;\nimport java.math.BigDecimal;\npublic class Student {\n\tint testVariable = 0;\n\tint __cleanVariable = 0;\n\n\tpublic int foo() {\n\t\treturn 47...
java
chosen
[ { "from": "system", "value": "Change URL for image retrieval -> better quality\n" }, { "from": "human", "value": "package com.proxerme.library.connection;\n\nimport android.support.annotation.IntRange;\nimport android.support.annotation.NonNull;\n\n/**\n * Helper class, containing all the differ...
java
chosen
[ { "from": "system", "value": "Update 1.1 - Added one-factor authentication" }, { "from": "human", "value": "import java.io.IOException;\r\n\r\npublic class Server {\r\n\t// handler default init\r\n\tpublic static RequestHandler rh = new RequestHandler();\r\n}\r\n" }, { "from": "gpt", ...
java
chosen
[ { "from": "system", "value": "Refactor KeyEvent generation for unit tests.\n" }, { "from": "human", "value": "import java.awt.Component;\nimport java.awt.Container;\nimport java.awt.event.KeyEvent;\n\nimport static org.junit.Assert.*;\nimport org.junit.Test;\nimport org.junit.Before;\n\npublic c...
java
chosen
[ { "from": "system", "value": "Clear subtitles and display ip address when network settings are changed\n" }, { "from": "human", "value": "package com.spaceout;\n\nimport android.app.Activity;\n\nimport android.content.Intent;\n\nimport android.os.Bundle;\n\nimport android.util.Log;\n\nimport and...
java
chosen
[ { "from": "system", "value": "Change paths for twitter API\n" }, { "from": "human", "value": "package fr.oni.gaagaa.api;\n\nimport java.util.List;\n\nimport fr.oni.gaagaa.model.twitter.Authenticated;\nimport fr.oni.gaagaa.model.twitter.Tweet;\nimport fr.oni.gaagaa.model.twitter.TwitterUser;\nimp...
java
chosen
[ { "from": "system", "value": "Increase intent-listeners coverage on LinkDeletedImpl.\n\nChange-Id: Ibddecf61379ef34f2d2fd90adc1a512188583fbd\nSigned-off-by: Victor Mota <a399842758ce81a1b2704ada69a36369cee4aa4d@atlantico.com.br>\n" }, { "from": "human", "value": "/*\n * Copyright (c) 2015 Hewlet...
java
chosen
[ { "from": "system", "value": "Return null if record doesn't exists in database\n" }, { "from": "human", "value": "package ru.ydn.wicket.wicketorientdb.model;\n\nimport org.apache.wicket.model.IModel;\nimport org.apache.wicket.model.Model;\n\nimport com.orientechnologies.orient.core.type.ODocumen...
java
chosen
[ { "from": "system", "value": "[kucoin] Allow to specify (optional) timespan on trade history params.\n" }, { "from": "human", "value": "package org.knowm.xchange.kucoin.service;\n\nimport org.knowm.xchange.currency.CurrencyPair;\nimport org.knowm.xchange.service.trade.params.TradeHistoryParamCur...
java
chosen
[ { "from": "system", "value": "Add method to generate passowrd hash with configuration properties.\n" }, { "from": "human", "value": "package com.github.aureliano.edocs.secure.hash;\n\nimport java.io.UnsupportedEncodingException;\nimport java.security.MessageDigest;\nimport java.security.NoSuchAl...
java
chosen
[ { "from": "system", "value": "Add a check for printing results\n\n" }, { "from": "human", "value": "/*******************************************************************************\n * Copyright 2016, 2017 vanilladb.org contributors\n *\n * Licensed under the Apache License, Version 2.0 (the \"L...
java
chosen
[ { "from": "system", "value": "Modify the people role enum" }, { "from": "human", "value": "/**\n * Copyright (c) 2005-2012 https://github.com/zhangkaitao\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n */\npackage com.huntering.common.plugin.entity;\n\n/**\n * <p>实体实现...
java
chosen
[ { "from": "system", "value": "Update javadoc term to fix copy/paste error\n\n" }, { "from": "human", "value": "package org.springframework.cloud.commons.util;\n\nimport java.net.InetAddress;\nimport java.util.ArrayList;\nimport java.util.List;\n\nimport org.springframework.beans.factory.annotati...
java
chosen
[ { "from": "system", "value": "Add UUID to string Spring converter\n" }, { "from": "human", "value": "package com.devskiller.friendly_id.spring;\n\nimport java.util.UUID;\n\nimport com.fasterxml.jackson.databind.Module;\n\nimport org.springframework.context.annotation.Bean;\nimport org.springfram...
java
chosen
[ { "from": "system", "value": "Make it more random as suggested by Mark Platvoet\n" }, { "from": "human", "value": "package com.fundynamic.d2tm.math;\n\nimport com.fundynamic.d2tm.game.map.Cell;\nimport com.fundynamic.d2tm.game.terrain.Terrain;\n\nimport java.util.List;\n\npublic class Random {\n...
java
chosen
[ { "from": "system", "value": "Use ~0 instead of integer max value, Use Logical right shift which is important here\n" }, { "from": "human", "value": "package chapter_5;\n\npublic class Insertion {\n public String insertMIntoN(int m, int n, int i, int j) {\n int result = clearBits(n, i, j);\n...
java
chosen
[ { "from": "system", "value": "Add missing documentation to interface.\n" }, { "from": "human", "value": "package nl.jft.logic.match.event;\n\nimport nl.jft.logic.match.Match;\nimport nl.jft.logic.match.event.impl.GoalRemovedEvent;\nimport nl.jft.logic.match.event.impl.GoalScoredEvent;\nimport nl...
java
chosen
[ { "from": "system", "value": "Add methods to get incomplete task only\n" }, { "from": "human", "value": "package seedu.address.logic;\n\nimport javafx.collections.ObservableList;\nimport seedu.address.logic.commands.CommandResult;\nimport seedu.address.logic.commands.exceptions.CommandException;...
java
chosen
[ { "from": "system", "value": "Add method to call method through reflection.\n" }, { "from": "human", "value": "package com.github.aureliano.achmed.helper;\n\nimport java.lang.reflect.Method;\n\npublic final class ReflectionHelper {\n\n\tprivate ReflectionHelper() {\n\t\tthrow new InstantiationEr...
java
chosen
[ { "from": "system", "value": "Return the default value from TypedArray getInt calls\n" }, { "from": "human", "value": "package com.xtremelabs.robolectric.shadows;\n\nimport android.content.res.Resources;\nimport android.content.res.TypedArray;\nimport com.xtremelabs.robolectric.Robolectric;\nimp...
java
chosen
[ { "from": "system", "value": "Use a uuid to identify component.\n" }, { "from": "human", "value": "package adapters;\n\nimport com.fasterxml.jackson.databind.JsonNode;\nimport com.fasterxml.jackson.databind.ObjectMapper;\nimport converters.JsonConverter;\nimport datamodel.EventHubMessage;\nimpor...
java
chosen
[ { "from": "system", "value": "Add missing properties to response json\n" }, { "from": "human", "value": "/*****************************************************************************\n ** Copyright (c) 2010 - 2012 Ushahidi Inc\n ** All rights reserved\n ** Contact: team@ushahidi.com\n ** Websit...
java
chosen
[ { "from": "system", "value": "Rename BlankConfig to something that makes more sense\n" }, { "from": "human", "value": "package ml.duncte123.skybot.config;\n\nimport com.google.gson.*;\nimport org.apache.commons.text.translate.UnicodeUnescaper;\n\nimport java.io.*;\n\npublic class ConfigLoader {\...
java
chosen
[ { "from": "system", "value": "Reset world chunks metric to fix accumulating unloaded worlds\n\nSigned-off-by: Byron Marohn <72c48d57fac8949117d5a1dd58341ee30497c114@live.com>\n" }, { "from": "human", "value": "package de.sldk.mc.metrics;\n\nimport io.prometheus.client.Gauge;\nimport org.bukkit.W...
java
chosen
[ { "from": "system", "value": "Remove unused query-type, see old removal note\n" }, { "from": "human", "value": "package me.coley.recaf.search;\n\n/**\n * Type of query, useful for switching over query implementation types.\n *\n * @author Matt\n */\npublic enum QueryType {\n\t/**\n\t * Match a c...
java
chosen
[ { "from": "system", "value": "Switch to current year's database URL" }, { "from": "human", "value": "package be.digitalia.fosdem.api;\n\nimport java.util.Locale;\n\n/**\n * This class contains all FOSDEM Urls\n * \n * @author Christophe Beyls\n * \n */\npublic class FosdemUrls {\n\n\t// private ...
java
chosen
[ { "from": "system", "value": "Fix local ban permission node" }, { "from": "human", "value": "package com.mcbans.firestar.mcbans;\r\n\r\nimport com.mcbans.firestar.mcbans.permission.Perms;\r\n\r\npublic enum BanType {\r\n GLOBAL (\"globalBan\", Perms.BAN_GLOBAL),\r\n LOCAL (\"localBan\",...
java
chosen
[ { "from": "system", "value": "Fix for last commit: using correct logger template syntax {} not {0}.\n" }, { "from": "human", "value": "package com.optimaize.command4j.ext.extensions.logging.customlogging;\n\nimport com.google.common.base.Optional;\nimport com.optimaize.command4j.Command;\nimport...
java
chosen
[ { "from": "system", "value": "Set up auth tests properly so they can always run.\n" }, { "from": "human", "value": "package com.uwetrottmann.thetvdb.services;\n\nimport com.uwetrottmann.thetvdb.BaseTestCase;\nimport com.uwetrottmann.thetvdb.entities.LoginData;\nimport com.uwetrottmann.thetvdb.en...
java
chosen
[ { "from": "system", "value": "Fix bug in getting version. (FELIX-1699)\n\n\ngit-svn-id: e057f57e93a604d3b43d277ae69bde5ebf332112@821494 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "human", "value": "/* \n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contribut...
java
chosen
[ { "from": "system", "value": "Add setup and teardown to hash table test suite.\n" }, { "from": "human", "value": "import org.junit.*;\n\npublic class HashTableTest {\n\n @Test\n public void testInsertEntry() {\n HashTable ht = new HashTable(17);\n ht.hashFunctionMod(\"5\");\n }\n\n @Te...
java
chosen
[ { "from": "system", "value": "Clear the screen before drawing" }, { "from": "human", "value": "package bobby;\r\n\r\nimport java.awt.Graphics;\r\nimport java.util.ArrayList;\r\nimport javax.swing.JApplet;\r\n\r\n/**\r\n *\r\n * @author Kiarash Korki <kiarash96@users.sf.net>\r\n */\r\npublic clas...
java
chosen
[ { "from": "system", "value": "Fix overflow of device ids\n" }, { "from": "human", "value": "package com.rehivetech.beeeon;\n\nimport android.text.TextUtils;\n\nimport java.util.Comparator;\n\npublic class IdentifierComparator implements Comparator<IIdentifier> {\n\n\t@Override\n\tpublic int comp...
java
chosen
[ { "from": "system", "value": "Update main to use models\n" }, { "from": "human", "value": "/**\n * Created by loomisdf on 4/10/2016.\n */\n\nimport java.sql.Connection;\nimport java.sql.DriverManager;\nimport java.sql.ResultSet;\nimport java.sql.SQLException;\nimport java.sql.Statement;\n\npubli...
java
chosen
[ { "from": "system", "value": "KAA-823: Fix topic list hash calculation algorithm.\n" }, { "from": "human", "value": "package org.kaaproject.kaa.client.notification;\n\nimport java.util.Collections;\nimport java.util.Comparator;\nimport java.util.LinkedList;\nimport java.util.List;\n\nimport org....
java
chosen
[ { "from": "system", "value": "Improve performance of CollectionConfigurationManager by replacing XmldbURI with CollectionURI.\n\nsvn path=/trunk/eXist/; revision=6526\n" }, { "from": "human", "value": "package org.exist.collections;\n\nimport static org.junit.Assert.*;\n\nimport org.junit.Test;\...
java
chosen
[ { "from": "system", "value": "Remove test that was removed with 'redundant abstract' diagnostic\n" }, { "from": "human", "value": "package org.jetbrains.kotlin.ui.tests.editors.quickfix.autoimport;\n\nimport org.junit.Test;\n\npublic class KotlinAbstractModifierQuickFixTest extends KotlinQuickFi...
java
chosen
[ { "from": "system", "value": "Fix warnings and apply code style" }, { "from": "human", "value": "/*******************************************************************************\n * Copyright (c) 2011, 2016 Eurotech and/or its affiliates and others\n *\n * All rights reserved. This program and t...
java
chosen
[ { "from": "system", "value": "Fix formatting of propertyless java.time.Instant\n" }, { "from": "human", "value": "package com.querydsl.sql.types;\n\nimport java.sql.*;\nimport java.time.Instant;\n\nimport javax.annotation.Nullable;\n\nimport org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement;...
java
chosen
[ { "from": "system", "value": "Remove usage of IModUtilities from hdskins.\n" }, { "from": "human", "value": "package com.minelittlepony.client.gui.hdskins;\n\npublic final class IndirectHDSkins {\n public static void initialize() {\n try {\n Class<?> mlphd = Class.forName(\"...
java
chosen
[ { "from": "system", "value": "Fix unequipping backpack not closing GUI\n" }, { "from": "human", "value": "package net.mcft.copy.betterstorage.inventory;\n\nimport net.mcft.copy.betterstorage.item.ItemBackpack;\nimport net.mcft.copy.betterstorage.utils.DirectionUtils;\nimport net.minecraft.entity...
java
chosen
[ { "from": "system", "value": "Use String as lock key\n" }, { "from": "human", "value": "package com.yahoo.concurrent.classlock;\n\nimport java.util.HashMap;\nimport java.util.Map;\nimport java.util.function.BooleanSupplier;\n\n/**\n * @author valerijf\n */\npublic class ClassLocking {\n priva...
java
chosen