conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "[V0.4][Logic] Refactor - remove magic string\n" }, { "from": "human", "value": "package seedu.address.logic.parser;\n\nimport static seedu.address.logic.parser.CliSyntax.KEYWORDS_ARGS_FORMAT_LIST;\n\nimport java.util.Arrays;\nimport java.util.HashSet;\nimport java.u...
java
chosen
[ { "from": "system", "value": "Rename to wire instead of format\n\nSigned-off-by: Fabio José <34f3a7e4e4d9fe971c99ebc4af947a5309eca653@gmail.com>\n" }, { "from": "human", "value": "/**\n * Copyright 2019 The CloudEvents Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License...
java
chosen
[ { "from": "system", "value": "Add copyright and license info" }, { "from": "human", "value": "package io.github.lukehutch.fastclasspathscanner.classloaderhandler;\n\nimport io.github.lukehutch.fastclasspathscanner.classloaderhandler.ClassLoaderHandler;\nimport io.github.lukehutch.fastclasspathsc...
java
chosen
[ { "from": "system", "value": "Remove execution of response from analysis engine. This should be done\nclient-side, not server side." }, { "from": "human", "value": "package org.owasp.appsensor.analysis;\n\nimport javax.inject.Inject;\nimport javax.inject.Named;\n\nimport org.owasp.appsensor.AppS...
java
chosen
[ { "from": "system", "value": "Fix setting of StepPhase in the Retry action\n\nChange-Id: I92b5f1d6892dab5659eccdc15ab46aaa60986da7\n" }, { "from": "human", "value": "package com.sap.cloud.lm.sl.cf.process.actions;\n\nimport javax.inject.Inject;\n\nimport org.springframework.stereotype.Component;...
java
chosen
[ { "from": "system", "value": "Add ActionBar title on QnaBuilder\n" }, { "from": "human", "value": "package zero.zd.zquestionnaire;\n\nimport android.content.Context;\nimport android.content.Intent;\nimport android.os.Bundle;\nimport android.support.v7.app.AppCompatActivity;\nimport android.view....
java
chosen
[ { "from": "system", "value": "Mark \"regex\" command as unsupported\n" }, { "from": "human", "value": "package util;\n\nimport java.util.HashMap;\nimport java.util.Map;\n\n/**\n * Created by neiro on 22.05.17.\n */\npublic class CommandChecker {\n\n private static Map<String, ParseType> suppo...
java
chosen
[ { "from": "system", "value": "Update the documentation for the requests package.\n" }, { "from": "human", "value": "/**\n * Provides the classes necessary to create requests\n * and responses between nodes .\n * <p>\n * There are several ways of creating requests:\n * <ul>\n * <li> The default r...
java
chosen
[ { "from": "system", "value": "Choose sensible values for pool config by default\n" }, { "from": "human", "value": "package org.springframework.cloud.service.relational;\n\nimport java.util.logging.Logger;\n\nimport javax.sql.DataSource;\n\nimport org.springframework.beans.BeanWrapper;\nimport or...
java
chosen
[ { "from": "system", "value": "Make error message a bit more neutral\n" }, { "from": "human", "value": "package io.quarkus.hibernate.search.orm.elasticsearch.runtime.devconsole;\n\nimport java.time.Duration;\nimport java.util.stream.Collectors;\n\nimport org.hibernate.search.mapper.orm.entity.Sea...
java
chosen
[ { "from": "system", "value": "Add a constructor for result\n\nAdd a constructor for result\n" }, { "from": "human", "value": "package com.poco.PoCoRuntime;\n\nimport java.util.regex.Matcher;\nimport java.util.regex.Pattern;\n\n/**\n * Single unit for matching a PoCo event or result.\n */\npublic...
java
chosen
[ { "from": "system", "value": "Add logic to accept command line args to enable migration and set environment prefix\n" }, { "from": "human", "value": "package org.cru.godtools.domain;\n\nimport com.googlecode.flyway.core.Flyway;\nimport com.googlecode.flyway.core.api.MigrationVersion;\nimport org...
java
chosen
[ { "from": "system", "value": "Allow reading static resources from jars\n" }, { "from": "human", "value": "package j2html.tags;\n\nimport java.io.BufferedReader;\nimport java.io.FileReader;\nimport java.io.IOException;\n\nimport j2html.Config;\nimport j2html.utils.CSSMin;\nimport j2html.utils.JSM...
java
chosen
[ { "from": "system", "value": "Fix metajson field save issue\n" }, { "from": "human", "value": "/*\n * Axelor Business Solutions\n *\n * Copyright (C) 2018 Axelor (<http://axelor.com>).\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU...
java
chosen
[ { "from": "system", "value": "Fix failure handler alway throw exception\n" }, { "from": "human", "value": "package com.admicro.vertxlet.core.handler.impl;\n\nimport com.admicro.vertxlet.core.handler.FailureHandler;\nimport com.admicro.vertxlet.core.HttpServerVerticle;\nimport com.admicro.vertxle...
java
chosen
[ { "from": "system", "value": "Clarify compileAppend's handling of expressions.\n" }, { "from": "human", "value": "package io.collap.bryg.compiler.helper;\n\nimport io.collap.bryg.compiler.ast.expression.Expression;\nimport io.collap.bryg.compiler.parser.BrygMethodVisitor;\nimport io.collap.bryg....
java
chosen
[ { "from": "system", "value": "Test loading of blank index file\n" }, { "from": "human", "value": "package com.unidev.zerostorage;\n\nimport com.unidev.zerostorage.index.IndexStorage;\nimport org.junit.Rule;\nimport org.junit.Test;\nimport org.junit.rules.TemporaryFolder;\n\nimport java.io.File;\...
java
chosen
[ { "from": "system", "value": "SimonStewart: Make the selenium-backed webdriver emulate the normal webdriver's xpath mode\n\ngit-svn-id: 4179480af2c2519a5eb5e1e9b541cbdf5cf27696@10674 07704840-8298-11de-bf8c-fd130f914ac9\n" }, { "from": "human", "value": "/*\r\nCopyright 2007-2009 WebDriver commi...
java
chosen
[ { "from": "system", "value": "Move package declaration to top of class\n" }, { "from": "human", "value": "package io.github.bonigarcia;\n\n/*\n * (C) Copyright 2017 Boni Garcia (http://bonigarcia.github.io/)\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may no...
java
chosen
[ { "from": "system", "value": "Use isTraceEnabled to prevent unnecessary string concat\n" }, { "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 addition...
java
chosen
[ { "from": "system", "value": "Replace inline array copy with Arrays.clone\n" }, { "from": "human", "value": "package org.bouncycastle.bcpg;\n\nimport java.io.IOException;\n\nimport org.bouncycastle.util.Arrays;\nimport org.bouncycastle.util.Strings;\n\n/**\n * Generic literal data packet.\n */\n...
java
chosen
[ { "from": "system", "value": "Use string resource instead of hardcoded string\n" }, { "from": "human", "value": "package fr.free.nrw.commons.nearby;\n\nimport android.content.Context;\nimport android.view.View;\nimport android.widget.ImageView;\nimport android.widget.TextView;\n\nimport butterkn...
java
chosen
[ { "from": "system", "value": "Change Otto bus provider to be lazy.\n" }, { "from": "human", "value": "/*\n * Copyright 2012 Artur Dryomov\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obt...
java
chosen
[ { "from": "system", "value": "Add parenthesis around lambda arg\n" }, { "from": "human", "value": "package com.bpedman.lambdas;\n\nimport java.util.Arrays;\nimport java.util.List;\nimport java.util.stream.IntStream;\n\n/**\n * @author Brandon Pedersen &lt;bpedersen@getjive.com&gt;\n */\npublic c...
java
chosen
[ { "from": "system", "value": "Improve task name by allowing wider input range\n" }, { "from": "human", "value": "package seedu.taskitty.model.task;\n\nimport seedu.taskitty.commons.exceptions.IllegalValueException;\n\n/**\n * Represents a Task's name in the task manager.\n * Guarantees: immutabl...
java
chosen
[ { "from": "system", "value": "Add text filed: NOT COMPLETED\n" }, { "from": "human", "value": "package com.samovich.cop2800.chapter15.assignmnet;\n\nimport javax.swing.*;\nimport java.awt.*;\n\n/**\n * Contain the code for the interface and event handling\n * Filename SimpleTextEditorGUI\n * Cre...
java
chosen
[ { "from": "system", "value": "Make custom generated anotation only availabe at source" }, { "from": "human", "value": "package net.vergien.beanautoutils.annotation;\n\n/**\n * Used as long java8 and java9/10/.. is on the market\n */\npublic @interface Generated {\n\n /**\n * The value eleme...
java
chosen
[ { "from": "system", "value": "Remove declaration of unchecked exception throwing\n" }, { "from": "human", "value": "package com.containersol.minimesos.main;\n\nimport com.containersol.minimesos.MinimesosException;\n\npublic interface Command {\n\n /**\n * Validates combination of command ...
java
chosen
[ { "from": "system", "value": "Fix compound iterator for case where empty iterators appear in the list.\n" }, { "from": "human", "value": "package org.metaborg.util.iterators;\n\nimport java.util.Iterator;\nimport java.util.NoSuchElementException;\nimport java.util.Queue;\n\nimport com.google.com...
java
chosen
[ { "from": "system", "value": "Add platform type to dao\n" }, { "from": "human", "value": "package org.pdxfinder.graph.dao;\n\nimport org.neo4j.ogm.annotation.GraphId;\nimport org.neo4j.ogm.annotation.NodeEntity;\nimport org.neo4j.ogm.annotation.Relationship;\n\nimport java.util.Set;\n\n/**\n * C...
java
chosen
[ { "from": "system", "value": "Fix incorrect issue ref in test\n" }, { "from": "human", "value": "package com.fasterxml.jackson.dataformat.xml.misc;\n\nimport com.fasterxml.jackson.annotation.*;\n\nimport com.fasterxml.jackson.dataformat.xml.XmlMapper;\nimport com.fasterxml.jackson.dataformat.xml...
java
chosen
[ { "from": "system", "value": "Check if the optional family field is null before attempting to insert." }, { "from": "human", "value": "/**\n * \n */\npackage ca.eandb.sortable;\n\nimport java.util.LinkedList;\nimport java.util.List;\n\nimport ca.eandb.sortable.Product.Field;\n\n/**\n * @author b...
java
chosen
[ { "from": "system", "value": "Make font rendering mono (disable anti-aliasing to keep pixel looknfeel\n" }, { "from": "human", "value": "package tv.rocketbeans.supermafiosi.graphics;\n\nimport com.badlogic.gdx.graphics.Color;\nimport com.badlogic.gdx.graphics.g2d.BitmapFont;\nimport com.badlogic...
java
chosen
[ { "from": "system", "value": "Fix fragment instance not correctly assigned" }, { "from": "human", "value": "package com.nkming.packageinfo;\n\nimport android.app.ActivityManager;\nimport android.support.v7.app.ActionBarActivity;\nimport android.os.Bundle;\nimport android.view.Menu;\nimport andro...
java
chosen
[ { "from": "system", "value": "Update messages to reflect activities\n" }, { "from": "human", "value": "package seedu.address.commons.core;\n\n/**\n * Container for user visible messages.\n */\npublic class Messages {\n\n public static final String MESSAGE_UNKNOWN_COMMAND = \"Unknown command\"...
java
chosen
[ { "from": "system", "value": "Fix Mac menu bar in help system window\n" }, { "from": "human", "value": "package de.prob2.ui.helpsystem;\n\nimport com.google.inject.Inject;\nimport com.google.inject.Singleton;\nimport de.prob2.ui.internal.StageManager;\nimport javafx.fxml.FXML;\nimport javafx.sce...
java
chosen
[ { "from": "system", "value": "Add accidentally removed charset header\n" }, { "from": "human", "value": "package fi.tekislauta.webserver;\n\nimport com.google.gson.Gson;\nimport fi.tekislauta.db.Database;\nimport fi.tekislauta.models.Board;\nimport fi.tekislauta.models.Post;\nimport fi.tekislaut...
java
chosen
[ { "from": "system", "value": "Add new prefix options for future opportunities to improve functionalities\n" }, { "from": "human", "value": "package seedu.ezdo.logic.parser;\n\nimport java.util.regex.Pattern;\n\nimport seedu.ezdo.logic.parser.ArgumentTokenizer.Prefix;\n\n/**\n * Contains Command ...
java
chosen
[ { "from": "system", "value": "Fix for failing test case.\n" }, { "from": "human", "value": "package org.freecompany.redline;\n\nimport java.io.File;\nimport org.junit.Test;\n\npublic class ScannerTest extends TestBase\n{\n\n @Test\n public void scanNoArchRPMTest() throws Exception {\n ...
java
chosen
[ { "from": "system", "value": "Make test config consistent with original config\n" }, { "from": "human", "value": "\n\n\n\n\npackage seedu.gtd.commons.core;\n\nimport org.junit.Rule;\nimport org.junit.Test;\nimport org.junit.rules.ExpectedException;\n\nimport seedu.gtd.commons.core.Config;\n\nimp...
java
chosen
[ { "from": "system", "value": "Revert \"added entity lists(libgdx arrays) for fishes and sharks\"\n\nThis reverts commit 80c76c829d63f67faa83ef7c2aaa8a601ce461ef.\n" }, { "from": "human", "value": "package com.stewesho.wator;\n\nimport com.badlogic.gdx.ApplicationAdapter;\nimport com.badlogic.gdx...
java
chosen
[ { "from": "system", "value": "Fix code smell for non instantiation" }, { "from": "human", "value": "package com.catpeds;\n\nimport org.springframework.boot.SpringApplication;\nimport org.springframework.boot.autoconfigure.SpringBootApplication;\n\n/**\n * Main class for the standalone Spring Boo...
java
chosen
[ { "from": "system", "value": "Use interface type instead of abstract class\n" }, { "from": "human", "value": "/*\n * This file is part of Relaxe.\n * Copyright (c) 2014 Topi Nieminen\n * Author: Topi Nieminen <topi.nieminen@gmail.com>\n *\n * This program is free software; you can redistribute i...
java
chosen
[ { "from": "system", "value": "Make cluster extend Rectangle so that we get all of its lovely methods.\n\n\ngit-svn-id: a1a4b28b82a3276cc491891159dd9963a0a72fae@2337 542714f4-19e9-0310-aa3c-eee0fc999fb1\n" }, { "from": "human", "value": "//\n// $Id: Cluster.java,v 1.5 2003/03/26 23:42:41 mdb Exp ...
java
chosen
[ { "from": "system", "value": "Convert main to a verticle\n" }, { "from": "human", "value": "package net.trajano.ms.engine.sample;\n\nimport io.vertx.core.Vertx;\nimport io.vertx.core.VertxOptions;\nimport io.vertx.core.http.HttpServer;\nimport io.vertx.ext.web.Router;\nimport net.trajano.ms.engi...
java
chosen
[ { "from": "system", "value": "Add test for shortened find command\n" }, { "from": "human", "value": "package guitests;\n\nimport static org.junit.Assert.assertTrue;\n\nimport org.junit.Test;\n\nimport seedu.ezdo.commons.core.Messages;\nimport seedu.ezdo.testutil.TestTask;\n\npublic class FindCom...
java
chosen
[ { "from": "system", "value": "Mark for completion after GameStartListener\n" }, { "from": "human", "value": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 CrystalCraftMC\n *\n * Permission is hereby granted, free of charge, to any person obtaining a\n * copy of this software and associ...
java
chosen
[ { "from": "system", "value": "Use traditional constructors of TimestampParser against Embulk core deprecation\n\nSome constructors of them have been deprecated on the Embulk core side.\nSee https://github.com/embulk/embulk/issues/745 for the details.\n" }, { "from": "human", "value": "package or...
java
chosen
[ { "from": "system", "value": "Add some Javadoc describing how schema updates work.\n" }, { "from": "human", "value": "\n/*\n * Copyright (C) 2011 Archie L. Cobbs. All rights reserved.\n *\n * $Id$\n */\n\n/**\n * Classes supporting automated database schema management.\n *\n * <p>\n * The centra...
java
chosen
[ { "from": "system", "value": "Improve the schema for classes to store hours and minutes separately\n" }, { "from": "human", "value": "package com.satsumasoftware.timetable.db;\n\npublic final class ClassesSchema {\n\n public static final String TABLE_NAME = \"classes\";\n public static fin...
java
chosen
[ { "from": "system", "value": "Remove extra dependency for class builder\n" }, { "from": "human", "value": "package org.xblackcat.sjpu.builder;\n\nimport org.xblackcat.sjpu.storage.IFunctionalAH;\n\nimport java.lang.reflect.Method;\nimport java.lang.reflect.Modifier;\n\n/**\n * Functional builder...
java
chosen
[ { "from": "system", "value": "Fix spelling error in parameter\n" }, { "from": "human", "value": "package com.alexrnl.gameoflife.service;\r\n\r\nimport com.alexrnl.gameoflife.world.World;\r\n\r\n/**\r\n * Interface for listeners on a world in the game of life.\r\n * @author barfety_a\r\n */\r\npu...
java
chosen
[ { "from": "system", "value": "Add constructor for proxy on specific port\nCreate a proxy on a specific port rather than just increment the count\n" }, { "from": "human", "value": "package org.browsermob.proxy;\n\nimport com.google.inject.Inject;\nimport com.google.inject.Singleton;\nimport com.g...
java
chosen
[ { "from": "system", "value": "Comment the method of class DataFormatoErradoExce" }, { "from": "human", "value": "package br.com.MDSGPP.ChamadaParlamentar.exception;\n\n\n/*esta exception é para verificar se a data foi inserida *\n * corretamente pelo usuario *\n */\npublic class DataFormatoErrad...
java
chosen
[ { "from": "system", "value": "Update URL for the minimalistGradleEditor update-site." }, { "from": "human", "value": "/*\n * Copyright 2019 DiffPlug\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * ...
java
chosen
[ { "from": "system", "value": "Fix the bug : the running of two processes are not synchronous\n" }, { "from": "human", "value": "package cn.six.uav.util;\n\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.InputStreamReader;\nimport java.uti...
java
chosen
[ { "from": "system", "value": "Support for applet and object codebase\n" }, { "from": "human", "value": "/*\n * Created on 28-Jan-2006\n */\npackage uk.org.ponder.htmlutil;\n\npublic class HTMLConstants {\n \n public static final String JS_BLOCK_START = \"\\n//<![CDATA[\\n\";\n public static f...
java
chosen
[ { "from": "system", "value": "Change reference on the twitter's singleton\n" }, { "from": "human", "value": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 Ivan Maslov\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associate...
java
chosen
[ { "from": "system", "value": "Support navigating back to home page from action bar in Preferences\n" }, { "from": "human", "value": "package com.newsblur.activity;\n\nimport com.actionbarsherlock.app.SherlockPreferenceActivity;\nimport com.newsblur.R;\nimport com.newsblur.util.PrefConstants;\n\n...
java
chosen
[ { "from": "system", "value": "Add de execessao ao tentar salvar PDF com anotações" }, { "from": "human", "value": "package main.managepdf;\n\nimport java.io.File;\nimport java.io.FileNotFoundException;\nimport java.util.List;\n\n/**\n * Define funes para gerenciar em um PDF.\n * @author Alex\n *...
java
chosen
[ { "from": "system", "value": "Add host strain to validation\n" }, { "from": "human", "value": "package org.pdxfinder.dao;\n\nimport org.neo4j.ogm.annotation.GraphId;\nimport org.neo4j.ogm.annotation.NodeEntity;\n\n/**\n * Created by jmason on 17/03/2017.\n */\n@NodeEntity\npublic class QualityAs...
java
chosen
[ { "from": "system", "value": "Update field name from API response.\n\nChange-Id: I32cea531a3074c81d5da230f4862ecca03ac70ff\n" }, { "from": "human", "value": "package org.wikipedia.dataclient.mwapi;\n\nimport android.support.annotation.Nullable;\n\nimport com.google.gson.annotations.SerializedNam...
java
chosen
[ { "from": "system", "value": "[Java] Use service loader for ObjectFactory\n" }, { "from": "human", "value": "package cucumber.runtime.java;\n\nimport cucumber.api.java.ObjectFactory;\nimport cucumber.runtime.CucumberException;\n\nimport java.lang.reflect.Constructor;\nimport java.lang.reflect.In...
java
chosen
[ { "from": "system", "value": "Make onRemoved default in interface\n" }, { "from": "human", "value": "/*\n * This file is part of Bisq.\n *\n * Bisq is free software: you can redistribute it and/or modify it\n * under the terms of the GNU Affero General Public License as published by\n * the Free...
java
chosen
[ { "from": "system", "value": "Allow chaning report field names\n" }, { "from": "human", "value": "package com.cisco.oss.foundation.logging.transactions;\n\nimport org.slf4j.Logger;\n\n/**\n * Created by Nuna on 10/01/2016.\n */\npublic class ReportLogger extends SchedulerLogger {\n\n public s...
java
chosen
[ { "from": "system", "value": "Add function can now have the ' character\n" }, { "from": "human", "value": "package seedu.scheduler.model.entry;\n\nimport seedu.scheduler.commons.exceptions.IllegalValueException;\n\n/**\n * Represents an Entry's name in the scheduler.\n * Guarantees: immutable; i...
java
chosen
[ { "from": "system", "value": "Add TrimFormatter and RemoveBracesFormatter to save actions\n" }, { "from": "human", "value": "package net.sf.jabref.logic.formatter;\n\nimport net.sf.jabref.logic.formatter.bibtexfields.*;\n\nimport java.util.Arrays;\nimport java.util.List;\n\npublic class BibtexFi...
java
chosen
[ { "from": "system", "value": "Fix &h not being removed from the message properly" }, { "from": "human", "value": "package net.md_5.bungee.command;\n\nimport net.md_5.bungee.BungeeCord;\nimport net.md_5.bungee.ChatColor;\nimport net.md_5.bungee.Permission;\nimport net.md_5.bungee.UserConnection;\...
java
chosen
[ { "from": "system", "value": "Create a date object from a string representing a date\n" }, { "from": "human", "value": "package chap3CoreJavaAPIs;\r\n\r\nimport java.util.Calendar;\r\nimport java.time.Month;\r\nimport java.time.*;\r\n\r\nclass Dates{\r\n\tpublic static void main(String... args){...
java
chosen
[ { "from": "system", "value": "Use PotionMeta instead of ThrownPotion\n" }, { "from": "human", "value": "package com.github.rmsy.bukkitpotdebug;\n\nimport org.bukkit.Bukkit;\nimport org.bukkit.entity.ThrownPotion;\nimport org.bukkit.event.EventHandler;\nimport org.bukkit.event.EventPriority;\nimp...
java
chosen
[ { "from": "system", "value": "Create ByteBuffers for Textures from Color\n" }, { "from": "human", "value": "package io.github.achtern.AchternEngine.core.rendering.generator;\n\nimport io.github.achtern.AchternEngine.core.math.Vector2f;\nimport io.github.achtern.AchternEngine.core.rendering.Color...
java
chosen
[ { "from": "system", "value": "Change issues to sending categories\n" }, { "from": "human", "value": "import javax.servlet.ServletException;\nimport javax.servlet.http.HttpServletRequest;\nimport javax.servlet.http.HttpServletResponse;\nimport java.io.IOException;\nimport java.util.*;\n\n/**\n * ...
java
chosen
[ { "from": "system", "value": "Change Android to immersive mode\n" }, { "from": "human", "value": "package durianhln.polymorph;\n\nimport android.os.Bundle;\n\nimport com.badlogic.gdx.backends.android.AndroidApplication;\nimport com.badlogic.gdx.backends.android.AndroidApplicationConfiguration;\n...
java
chosen
[ { "from": "system", "value": "Fix admin-api to show that users are retrieved by ip, not username\n" }, { "from": "human", "value": "package org.keycloak.admin.client.resource;\n\nimport org.keycloak.representations.idm.UserRepresentation;\n\nimport javax.ws.rs.Consumes;\nimport javax.ws.rs.GET;\...
java
chosen
[ { "from": "system", "value": "Fix crash on api level 23 when clicking download notification\n" }, { "from": "human", "value": "package de.christinecoenen.code.zapp.app.mediathek.controller;\n\nimport android.app.DownloadManager;\nimport android.content.BroadcastReceiver;\nimport android.content....
java
chosen
[ { "from": "system", "value": "Fix comment for response class\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 obtain a copy of...
java
chosen
[ { "from": "system", "value": "Remove obsolete comment, minor doc tweak.\n" }, { "from": "human", "value": "package com.opera.core.systems.scope.services;\n\npublic interface ISelftest {\n\t/**\n\t * Run the selftest for the specified modules\n\t *\n\t * @param modules The names of the modules to...
java
chosen
[ { "from": "system", "value": "Allow any object to be used as the response target for a moveTo request.\n\n\ngit-svn-id: a1a4b28b82a3276cc491891159dd9963a0a72fae@1293 542714f4-19e9-0310-aa3c-eee0fc999fb1\n" }, { "from": "human", "value": "//\n// $Id: SceneService.java,v 1.6 2002/04/15 16:28:03 sh...
java
chosen
[ { "from": "system", "value": "Document that this part of the unit test code must remain in src/\n\ngit-svn-id: 7c053b8fbd1fb5868f764c6f9536fc6a9bbe7da9@602096 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "human", "value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one...
java
chosen
[ { "from": "system", "value": "Remove depreciated createJSModules @ovveride marker" }, { "from": "human", "value": "package com.evollu.react.fa;\n\nimport com.facebook.react.ReactPackage;\nimport com.facebook.react.bridge.JavaScriptModule;\nimport com.facebook.react.bridge.NativeModule;\nimport c...
java
chosen
[ { "from": "system", "value": "Revert \"Get the command line as a string\"\n\nThis reverts commit 1f1400b9f9d3e76ab6b2242400a7fa9d1e2fdff9.\n" }, { "from": "human", "value": "package com.enot.cmd.core;\n\nimport org.zeroturnaround.exec.ProcessExecutor;\nimport org.zeroturnaround.exec.ProcessResul...
java
chosen
[ { "from": "system", "value": "Add more stuff to JUnit-5-in-4-test suite\n" }, { "from": "human", "value": "package org.codefx.demo.junit5;\n\nimport org.junit.platform.runner.JUnitPlatform;\nimport org.junit.platform.runner.SelectPackages;\nimport org.junit.runner.RunWith;\n\n@RunWith(JUnitPlatf...
java
chosen
[ { "from": "system", "value": "Add update builder starting point 'service(URL)'\n" }, { "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 infor...
java
chosen
[ { "from": "system", "value": "Fix for big string limit (I47).\n" }, { "from": "human", "value": "package roart.common.util;\n\nimport java.io.IOException;\nimport java.io.InputStream;\n\nimport org.apache.commons.io.IOUtils;\n\npublic class IOUtil {\n public static byte[] toByteArray(InputStr...
java
chosen
[ { "from": "system", "value": "Make justTeleportedEntities a HashSet instead of ArrayList\n" }, { "from": "human", "value": "package net.simpvp.Portals;\n\nimport java.io.File;\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.UUID;\n\nimport org.bukkit.entity.Entity;\nimport...
java
chosen
[ { "from": "system", "value": "Update default client registration implementation\n" }, { "from": "human", "value": "/*\n * oxCore is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text.\n *\n * Copyright (c) 2014, Gluu\n */package org.xdi.model.custom.scri...
java
chosen
[ { "from": "system", "value": "Update base filter name and implment overrides\n\nThe abstract class changed names and now implements a clear method.\nRemove the active state of the boolean filter on clear.\n" }, { "from": "human", "value": "package org.azavea.otm.filters;\n\nimport org.azavea.otm...
java
chosen
[ { "from": "system", "value": "Add ball loading in Autonomous.\n\nThe step returned by AutonomousStepFactory.getShooterFireStep() now\nreturns an AutonomousStep that loads the next ball onto the piston\nafter firing.\n" }, { "from": "human", "value": "package com.edinarobotics.zephyr.autonomous;\...
java
chosen
[ { "from": "system", "value": "Update copyright Apache license for file\n" }, { "from": "human", "value": "package com.consol.citrus.admin.websocket;\n\nimport org.eclipse.jetty.websocket.servlet.ServletUpgradeRequest;\nimport org.eclipse.jetty.websocket.servlet.ServletUpgradeResponse;\nimport or...
java
chosen
[ { "from": "system", "value": "Revert \"Fixed unit test package problem\"\n\nThis reverts commit ba98e8800f3112aef2f9e2f21cfb6127c23fbbe5.\n" }, { "from": "human", "value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTI...
java
chosen
[ { "from": "system", "value": "engine: Modify excepted exception to match impl\n\nThe patch modifies the expected exception to the\ncorrect package so test could pass successfully.\n\nChange-Id: I016ced1da2d86e27497149fac82fea832ce01a1e\nSigned-off-by: Moti Asayag <da1debb83a8e12b6e8822edf2c275f55cc51b720@re...
java
chosen
[ { "from": "system", "value": "Revert \"Revert \"Testing git commit\"\"\n\nThis reverts commit ea3742010d0936fe0053a466064941b7015ac43e.\n" }, { "from": "human", "value": "/*\n * Copyright (C) 2014 The Android Open Source Project\n *\n * Licensed under the Apache License, Version 2.0 (the \"Licen...
java
chosen
[ { "from": "system", "value": "Update for Fall 2015-16 semester\n" }, { "from": "human", "value": "import org.jsoup.Jsoup;\nimport org.jsoup.nodes.Document;\nimport org.jsoup.nodes.Element;\nimport org.jsoup.select.Elements;\n\nimport java.net.URL;\n\npublic class CourseCodeTableCrawler {\n pu...
java
chosen
[ { "from": "system", "value": "Use complete iri for annotation property declaration\n" }, { "from": "human", "value": "package de.linkvt.bachelor.features.annotations.ontology.owl;\n\nimport de.linkvt.bachelor.features.Feature;\nimport de.linkvt.bachelor.features.FeatureCategory;\n\nimport org.se...
java
chosen
[ { "from": "system", "value": "Use the GWT date/time formatter.\n" }, { "from": "human", "value": "package edu.pdx.cs410J.whitlock.client;\n\nimport edu.pdx.cs410J.AbstractAppointment;\n\nimport java.util.Date;\n\npublic class Appointment extends AbstractAppointment\n{\n @Override\n public ...
java
chosen
[ { "from": "system", "value": "Fix spacing in demo for FileUpload.\n" }, { "from": "human", "value": "package to.etc.domuidemo.pages.overview.allcomponents;\n\nimport to.etc.domui.component.upload.FileUpload2;\nimport to.etc.domui.component.upload.FileUploadMultiple;\nimport to.etc.domui.componen...
java
chosen
[ { "from": "system", "value": "Change RSA public key to 65537 (thanks Lmctruck).\n" }, { "from": "human", "value": "package org.apollo.tools;\n\nimport java.math.BigInteger;\nimport java.security.SecureRandom;\nimport java.util.Random;\n\n/**\n * An RSA key generator.\n *\n * @author Graham\n * @...
java
chosen
[ { "from": "system", "value": "Revert \"Custom email validation won't be needed after all.\"\n\nThis reverts commit 2c328f195a9179f11011afade8c79a39c8426ff1.\n" }, { "from": "human", "value": "package org.pikater.shared;\n\npublic class FieldVerifier\n{\n\tpublic static boolean isStringNullOrEmpt...
java
chosen
[ { "from": "system", "value": "Increase the periods in this test to avoid intermittent failures\n" }, { "from": "human", "value": "/**\n * Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies\n *\n * Please see distribution for license.\n */\npackage com.opengamma.s...
java
chosen
[ { "from": "system", "value": "Add empty tests to the build doesn't complain\n\n" }, { "from": "human", "value": "package org.opennms.netmgt.threshd;\n\nimport org.opennms.netmgt.config.DatabaseConnectionFactory;\nimport org.opennms.netmgt.mock.MockDatabase;\nimport org.opennms.netmgt.mock.MockUt...
java
chosen