conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Add a test method to test wildcard matcher parsing" }, { "from": "human", "value": "package org.monospark.spongematchers.type;\n\nimport static org.hamcrest.CoreMatchers.not;\nimport static org.junit.Assert.assertThat;\nimport static org.monospark.spongematchers.tes...
java
chosen
[ { "from": "system", "value": "Create database if it doesn't exist\n" }, { "from": "human", "value": "package Hotel.database;\n\nimport Hotel.database.tables.Booking;\n\nimport java.sql.*;\n\npublic class Connection {\n private final java.sql.Connection connection;\n private static Table cu...
java
chosen
[ { "from": "system", "value": "Add logging before storing to datastore.\n" }, { "from": "human", "value": "package org.jboss.pnc.core.builder;\n\nimport org.jboss.pnc.model.ProjectBuildResult;\nimport org.jboss.pnc.spi.builddriver.BuildJobConfiguration;\nimport org.jboss.pnc.spi.builddriver.Build...
java
chosen
[ { "from": "system", "value": "Enable changing the userName or password." }, { "from": "human", "value": "/*\r\n * Copyright 2009 Paul Austin\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * ...
java
chosen
[ { "from": "system", "value": "Add date and time info" }, { "from": "human", "value": "package com.arinerron.forux.core;\n\npublic class Logger {\n public static int PRINT_TO_CONSOLE = 0;\n public static int PRINT_TO_FILE = 1;\n public static int PRINT_TO_CONSOLE_AND_FILE = 2;\n \n ...
java
chosen
[ { "from": "system", "value": "Add some basic example code.\n" }, { "from": "human", "value": "package com.miguelgaeta.android_message_parser;\n\nimport android.os.Bundle;\nimport android.support.v7.app.AppCompatActivity;\n\npublic class AppActivity extends AppCompatActivity {\n\n @Override\n ...
java
chosen
[ { "from": "system", "value": "Make fancy things like scrolling menus work in the demo.\n" }, { "from": "human", "value": "//\n// Triple Play - utilities for use in PlayN-based games\n// Copyright (c) 2011-2014, Three Rings Design, Inc. - All rights reserved.\n// http://github.com/threerings/trip...
java
chosen
[ { "from": "system", "value": "Use more explicit value when reindexing should not be done\n" }, { "from": "human", "value": "// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\npackage com.yahoo.config.model.api;\n\nimport java.time.In...
java
chosen
[ { "from": "system", "value": "Move init DB in try block\n" }, { "from": "human", "value": "package nuclibook.server;\n\nimport com.j256.ormlite.jdbc.JdbcConnectionSource;\nimport com.j256.ormlite.support.ConnectionSource;\nimport com.j256.ormlite.table.TableUtils;\nimport nuclibook.constants.C;\...
java
chosen
[ { "from": "system", "value": "Add more helper methods for reporting errors\n" }, { "from": "human", "value": "package semantic;\n\nimport error.CompilerError;\n\nimport parse.Loc;\nimport types.Type;\n\npublic interface SemanticHelper {\n\n static CompilerError typeMismatch(Loc loc, Type found...
java
chosen
[ { "from": "system", "value": "Change header in resolution cache test\n" }, { "from": "human", "value": "/*\r\n * (C) Copyright 2018 Boni Garcia (http://bonigarcia.github.io/)\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in c...
java
chosen
[ { "from": "system", "value": "Fix bug when loading projects" }, { "from": "human", "value": "package org.deidentifier.arx.gui.view.impl.analyze;\n\nimport java.awt.Panel;\n\nimport org.deidentifier.arx.DataHandle;\nimport org.deidentifier.arx.gui.model.Model;\nimport org.deidentifier.arx.gui.mod...
java
chosen
[ { "from": "system", "value": "Update when to include more matchers\n" }, { "from": "human", "value": "package com.github.brunodles.validationbuilder.matcher;\n\nimport java.util.function.IntConsumer;\n\n/**\n * Created by bruno on 03/06/16.\n */\npublic class When {\n\n private IntConsumer ad...
java
chosen
[ { "from": "system", "value": "Fix left exit rotation for button events\n" }, { "from": "human", "value": "package com.lorentzos.flingswipe.internal;\n\nimport android.animation.AnimatorListenerAdapter;\nimport android.view.View;\n\n/**\n *\n */\nclass SwipeEvent {\n\n\tprivate final float rotati...
java
chosen
[ { "from": "system", "value": "Add command prefix len for substr optimization\n" }, { "from": "human", "value": "package co.phoenixlab.discord;\n\nimport java.util.HashSet;\nimport java.util.Set;\n\npublic class Configuration {\n\n private String email;\n private String password;\n priva...
java
chosen
[ { "from": "system", "value": "Add solution to problem 77\n" }, { "from": "human", "value": "/*\n * Copyright (C) 2014 Pedro Vicente Gómez Sánchez.\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 * Yo...
java
chosen
[ { "from": "system", "value": "Replace CompletionHandler internals with Handler\n\nRemove code that has migrated to HTTPHandler from HTTPCompletionHandler.\n" }, { "from": "human", "value": "package com.hamishrickerby.http_server;\n\nimport java.nio.channels.AsynchronousServerSocketChannel;\nimpo...
java
chosen
[ { "from": "system", "value": "Test hooks/ dir pre-push hook works test 2\n" }, { "from": "human", "value": "package com.williamfiset.algorithms.graphtheory;\n\npublic class NewAlgorithm {\n\n public static void main(String[] args) {\n\n\n\n\n\n\n\n\n\n\n\n\n }\n}\n" }, ...
java
chosen
[ { "from": "system", "value": "Make options creatable with new operator" }, { "from": "human", "value": "package ol.style;\n\nimport jsinterop.annotations.JsProperty;\nimport jsinterop.annotations.JsType;\nimport ol.Options;\n\n/**\n * Options for the {@link Style}.\n *\n * @author Tino Desjardin...
java
chosen
[ { "from": "system", "value": "Update authors in the comment\n\nWe need to do this so that our teachers are not confused who wrote the\ncode.\n" }, { "from": "human", "value": "/*\n * (c) 2009. Ivan Voras <ivoras@fer.hr>\n * Released under the 2-clause BSDL.\n */\n\n\npackage enotes;\n\nimport ja...
java
chosen
[ { "from": "system", "value": "Fix equality check - these are primitives now\n" }, { "from": "human", "value": "package com.kickstarter.libs;\n\nimport android.support.annotation.NonNull;\nimport android.support.annotation.Nullable;\n\nimport com.kickstarter.models.Comment;\nimport com.kickstarte...
java
chosen
[ { "from": "system", "value": "Remove unnecessary Hello World println\n\nChange-Id: If4575dbbcd99c064fab3bc4d76c3f317c6c95c9a\n" }, { "from": "human", "value": "/******************************************************************************\n * Copyright Lajos Katona\n *\n * Licensed under th...
java
chosen
[ { "from": "system", "value": "Disable Snom config Unit Testuntil we have a new sample of the new config version\n\ngit-svn-id: f26ccc5efe72c2bd8e1c40f599fe313f2692e4de@7409 a612230a-c5fa-0310-af8b-88eea846685b\n" }, { "from": "human", "value": "package org.sipfoundry.sipxconfig.phone.snom;\n\nim...
java
chosen
[ { "from": "system", "value": "Replace FileCallable and checkRoles with MasterToSlaveCallable.\n" }, { "from": "human", "value": "package org.jenkinsci.plugins.p4.groovy;\n\nimport hudson.FilePath.FileCallable;\nimport hudson.model.TaskListener;\nimport hudson.remoting.VirtualChannel;\nimport jen...
java
chosen
[ { "from": "system", "value": "Kill animals if more than 5 collide at the same time\n" }, { "from": "human", "value": "/*\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\n * file, You can obtain one at...
java
chosen
[ { "from": "system", "value": "Fix License Header (Thanks Christophe).\n\ngit-svn-id: 2c03e0f2e02f0f2dd4186d3c621cdb4dda8971fb@572356 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "human", "value": "/*\n * $Url: $\n * $Id: $\n *\n * Copyright 1997-2005 Day Management AG\n * Barfuesserplatz...
java
chosen
[ { "from": "system", "value": "Return optional instead of handling it\n" }, { "from": "human", "value": "package de.retest.recheck.configuration;\n\nimport java.nio.file.Path;\n\npublic class ProjectConfigurationUtil {\n\n\tprivate ProjectConfigurationUtil() {\n\n\t}\n\n\tpublic static Path findP...
java
chosen
[ { "from": "system", "value": "Add a test restriction type for non-low end devices.\n\nRenames small memory -> low end device to be consistent with our APIs.\n\nBUG=308353\nNOTRY=true\nR=dtrainor@chromium.org\n\nReview URL: https://codereview.chromium.org/52953003\n\ngit-svn-id: de016e52bd170d2d4f2344f9bf92d...
java
chosen
[ { "from": "system", "value": "Change java doc to the latest doc" }, { "from": "human", "value": "package info.u_team.u_team_core.api;\n\nimport net.minecraftforge.fml.DistExecutor;\nimport net.minecraftforge.fml.event.lifecycle.*;\n\n/**\n * Simple interface for proxy default methods. Use with\n...
java
chosen
[ { "from": "system", "value": "Test update: added toggle to edit enabled field\n\nsvn changeset:4325/svn branch:trunk\n" }, { "from": "human", "value": "/* \n@ITMillApache2LicenseForJavaFiles@\n */\n\npackage com.itmill.toolkit.tests;\n\nimport com.itmill.toolkit.data.Property.ValueChangeEvent;\n...
java
chosen
[ { "from": "system", "value": "Change default value to PO his wishes\n" }, { "from": "human", "value": "package pipeline;\n\nimport org.springframework.stereotype.Controller;\nimport org.springframework.ui.Model;\nimport org.springframework.web.bind.annotation.RequestMapping;\nimport org.springfr...
java
chosen
[ { "from": "system", "value": "Fix bug in round results property\n" }, { "from": "human", "value": "package es.tid.smartsteps.dispersion;\n\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.util.LinkedList;\nimport java.util.List;\nimport java.util.Properties;\n\nimport org.a...
java
chosen
[ { "from": "system", "value": "Include emoji and special characters in @DisplayName demo\n" }, { "from": "human", "value": "/*\n * Copyright 2015-2016 the original author or authors.\n *\n * All rights reserved. This program and the accompanying materials are\n * made available under the terms of...
java
chosen
[ { "from": "system", "value": "Fix reversed names in metrics\n" }, { "from": "human", "value": "/**\n * \n */\npackage gr.uoi.cs.daintiness.hecate.diff;\n\nimport gr.uoi.cs.daintiness.hecate.metrics.Metrics;\nimport gr.uoi.cs.daintiness.hecate.metrics.tables.TablesInfo;\nimport gr.uoi.cs.daintine...
java
chosen
[ { "from": "system", "value": "Use 2 solenoids instead of 1. Also have startExpand and startRetract instead of just one." }, { "from": "human", "value": "package edu.wpi.first.wpilibj.templates.subsystems;\n\nimport edu.wpi.first.wpilibj.Solenoid;\nimport edu.wpi.first.wpilibj.command.Subsystem;\...
java
chosen
[ { "from": "system", "value": "Remove superfluous license headers (OKAPI-109)\n" }, { "from": "human", "value": "/*\n * Copyright (c) 2015-2017, Index Data\n * All rights reserved.\n * See the file LICENSE for details.\n */\npackage org.folio.okapi.bean;\n\nimport com.fasterxml.jackson.annotation...
java
chosen
[ { "from": "system", "value": "Fix the -cli module post Google upgrade\n" }, { "from": "human", "value": "module com.github.robozonky.cli {\n requires google.api.services.drive.v3.rev153;\n requires google.api.services.sheets.v4.rev565;\n requires google.http.client;\n requires google...
java
chosen
[ { "from": "system", "value": "Use a lower level interface of neo4j graph store\n" }, { "from": "human", "value": "package uk.ac.cdrc.mintsearch.neo4j;\n\n/**\n * Created by ucfawli on 11/10/16.\n */\n\nimport org.neo4j.graphdb.GraphDatabaseService;\nimport org.neo4j.logging.Log;\nimport org.neo4...
java
chosen
[ { "from": "system", "value": "Use Wisp new Scheduler instance creation" }, { "from": "human", "value": "package com.coreoz.plume.scheduler;\n\nimport javax.inject.Inject;\nimport javax.inject.Provider;\nimport javax.inject.Singleton;\n\nimport com.coreoz.plume.services.time.TimeProvider;\nimport...
java
chosen
[ { "from": "system", "value": "Add test case for disconnected vertex\n" }, { "from": "human", "value": "package bfs;\n\nimport bfs.Bfs;\t\t\t// My implementation of Breadth First Search\n\nclass TestBfs{\n\n\t// Tests Bfs traversal\n\t\n\tpublic static void testTraversal(){\n\n\t\tint N = 6;\t\t\...
java
chosen
[ { "from": "system", "value": "Make sure long has l suffix to handle overflows\n" }, { "from": "human", "value": "/*\n * Copyright 2011 Matthew Avery, mavery@advancedpwr.com\n * \n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in complian...
java
chosen
[ { "from": "system", "value": "Fix build.xml (add javadoc target) and fix version numbers in V8 impl\n\nReview URL: https://chromiumcodereview.appspot.com/10693036\n\ngit-svn-id: 1dc80909446f7a7ee3e21dd4d1b8517df524e9ee@1010 fc8a088e-31da-11de-8fef-1f5ae417a2df\n" }, { "from": "human", "value": "...
java
chosen
[ { "from": "system", "value": "Fix orientation flips for demo\n" }, { "from": "human", "value": "package com.madisp.bad.demo;\n\nimport android.app.Activity;\nimport android.app.FragmentTransaction;\nimport android.os.Bundle;\nimport android.view.View;\nimport android.view.ViewGroup;\nimport andr...
java
chosen
[ { "from": "system", "value": "Speed up the game calculations a bit\n" }, { "from": "human", "value": "package net.xylophones.planetoid.web.msg;\n\nimport com.google.common.util.concurrent.ThreadFactoryBuilder;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springfram...
java
chosen
[ { "from": "system", "value": "Set methods that don't use any fields as static\n" }, { "from": "human", "value": "package com.alexstyl.specialdates.contact;\n\nimport android.content.ContentResolver;\nimport android.database.Cursor;\nimport android.provider.ContactsContract;\n\nimport com.alexsty...
java
chosen
[ { "from": "system", "value": "Allow RedisBungee to give the console an IOException instead of a unhelpful exception + NPE combo.\n" }, { "from": "human", "value": "/**\n * Copyright © 2013 tuxed <write@imaginarycode.com>\n * This work is free. You can redistribute it and/or modify it under the\n...
java
chosen
[ { "from": "system", "value": "Add several test for subtraction and multiplication\n" }, { "from": "human", "value": "import static org.junit.Assert.assertEquals;\n\nimport calculator.CalculatorPrototype;\nimport org.junit.Test;\n\npublic class CalculatorTestPrototype {\n @Test\n public voi...
java
chosen
[ { "from": "system", "value": "Add new input config type Twitter.\n" }, { "from": "human", "value": "package com.github.aureliano.damihilogs.config.input;\n\npublic enum InputConfigTypes {\n\n\tEXTERNAL_COMMAND,\n\tFILE_INPUT,\n\tFILE_TAILER,\n\tSTANDARD_INPUT,\n\tURL,\n\tJDBC_INPUT;\n}" }, {...
java
chosen
[ { "from": "system", "value": "Add path information to the module object\n" }, { "from": "human", "value": "/*\n * This file is released under terms of BSD license\n * See LICENSE file for more information\n */\n\npackage cx2x.xcodeml.xnode;\n\nimport org.w3c.dom.Document;\n\n\n/**\n * The Xmod r...
java
chosen
[ { "from": "system", "value": "test(auth): Add test for ICP auth\n" }, { "from": "human", "value": "package com.ibm.watson.developer_cloud.service;\n\nimport org.junit.Test;\n\nimport static org.junit.Assert.assertTrue;\n\npublic class AuthenticationTest {\n private static final String APIKEY = ...
java
chosen
[ { "from": "system", "value": "[Xin] Replace Temp With Query - Replace temp variable with query method.\n" }, { "from": "human", "value": "package com.thoughtworks.refactoring.replaceTempwithQuery;\n\n/**\n * Created by xinzhang on 6/27/17.\n */\npublic class Product {\n private String name;\n...
java
chosen
[ { "from": "system", "value": "Add search string, filter for name\n\n" }, { "from": "human", "value": "package at.ac.tuwien.inso.controller.student;\n\nimport at.ac.tuwien.inso.entity.Course;\nimport at.ac.tuwien.inso.service.CoursesService;\n\nimport org.springframework.beans.factory.annotation....
java
chosen
[ { "from": "system", "value": "Add a message on banlist reload\n" }, { "from": "human", "value": "package com.craftminecraft.bungee.bungeeban.command;\n\nimport com.craftminecraft.bungee.bungeeban.BanManager;\n\nimport net.md_5.bungee.api.CommandSender;\nimport net.md_5.bungee.api.plugin.Command;...
java
chosen
[ { "from": "system", "value": "Use StoreConfiguration to determine gadget render info" }, { "from": "human", "value": "package uk.ac.edukapp.renderer;\r\n\r\npublic class GadgetRenderer {\r\n\r\n\tprivate static GadgetRenderer renderer = new GadgetRenderer();\r\n\r\n\tprivate GadgetRenderer() {\r...
java
chosen
[ { "from": "system", "value": "Fix status bar translucency in description editing tutorial\n\nSomewhere along the line, the status bar in the description editing\ntutorial lost its translucency. This puts it back.\n\nChange-Id: Id3b1134416afd19e6f397f4a5fa84cc9b57eb89f\n" }, { "from": "human", "...
java
chosen
[ { "from": "system", "value": "Add resizing array implementation of stack of strings\n" }, { "from": "human", "value": "package com.algorithms.stack;\n\n/**\n * Created by Sumit on 01-Jul-17.\n */\npublic class ResizingArrayStackOfStrings {\n}\n" }, { "from": "gpt", "value": "package ...
java
chosen
[ { "from": "system", "value": "Make class public in preparation for moving to a separate library\n" }, { "from": "human", "value": "package arez.processor;\n\nimport java.util.Objects;\nimport javax.annotation.Nonnull;\nimport javax.lang.model.element.Element;\n\nfinal class ProcessorException\n ...
java
chosen
[ { "from": "system", "value": "Fix brush settings not saved with offhand.\n" }, { "from": "human", "value": "package tv.mapper.roadstuff.network;\n\nimport java.util.function.Supplier;\n\nimport net.minecraft.entity.player.EntityPlayerMP;\nimport net.minecraft.item.ItemStack;\nimport net.minecraf...
java
chosen
[ { "from": "system", "value": "Fix for unit test regressions\nBecause the alwaysProgressing time is based off nanoseconds, it may not have progressed forward even though the accurateTimeMillis has progressed forwrad.\n" }, { "from": "human", "value": "package org.threadly.test.concurrent;\n\nimpo...
java
chosen
[ { "from": "system", "value": "Use only 1byte on setValue\n" }, { "from": "human", "value": "package com.uxxu.konashi.lib.action;\n\nimport android.bluetooth.BluetoothGattService;\n\nimport com.uxxu.konashi.lib.KonashiUUID;\nimport com.uxxu.konashi.lib.KonashiUtils;\nimport com.uxxu.konashi.lib.s...
java
chosen
[ { "from": "system", "value": "Fix SQL Coverage stub procedure parameter type mismatch.\n" }, { "from": "human", "value": "/* This file is part of VoltDB.\n * Copyright (C) 2008-2010 VoltDB L.L.C.\n *\n * Permission is hereby granted, free of charge, to any person obtaining\n * a copy of this sof...
java
chosen
[ { "from": "system", "value": "Clear activity on pick image intents.\n" }, { "from": "human", "value": "package org.beryl.intents;\r\n\r\nimport android.content.Context;\r\nimport android.content.Intent;\r\nimport android.content.pm.PackageManager;\r\nimport android.net.Uri;\r\nimport android.web...
java
chosen
[ { "from": "system", "value": "Add example of using Feature class\n" }, { "from": "human", "value": "package com.scaleset.geo.geojson;\n\nimport com.fasterxml.jackson.annotation.JsonIgnore;\nimport com.fasterxml.jackson.annotation.JsonIgnoreProperties;\nimport com.fasterxml.jackson.databind.Objec...
java
chosen
[ { "from": "system", "value": "Change method reverse method signature to follow tests reqs\n" }, { "from": "human", "value": "class ReverseString {\n \n String reverse() {\n throw new UnsupportedOperationException(\"Delete this statement and write your own implementation.\");\n }\n ...
java
chosen
[ { "from": "system", "value": "[WebViewBridge] Fix a issue that requires a android.permission.VIBRATE\n\nhttps://github.com/hnakagawa/triaina/issues/2 reported by fumiz\n" }, { "from": "human", "value": "package jp.mixi.triaina.webview.bridges;\n\nimport com.google.inject.Inject;\n\nimport androi...
java
chosen
[ { "from": "system", "value": "Add a referrer parameter to the app details fetcher.\n\nThis is the first part of a three-sided patch which will allow\ndevelopers to specify a referrer in the URL of a manifest related\napplication. The referrer will then be added to the app details\nfetch and sent to the rele...
java
chosen
[ { "from": "system", "value": "Correct size for label value\n\nCo-authored-by: burimshala <fbe1da75ceff9686eaf909d9a76b100da3b76719@gmail.com>" }, { "from": "human", "value": "package org.zalando.nakadi.annotations.validation;\n\nimport javax.validation.Constraint;\nimport javax.validation.Payloa...
java
chosen
[ { "from": "system", "value": "Fix build - missed a class when refactoring\n" }, { "from": "human", "value": "package com.capitalone.dashboard.model;\n\n/**\n * CollectorItem extension to store the instance, build job and build url.\n */\npublic class HudsonJob extends CollectorItem {\n privat...
java
chosen
[ { "from": "system", "value": "Remove unneeded public visibility modifier\n" }, { "from": "human", "value": "package com.stolets.rxdiffutil.diffrequest;\n\nimport android.support.annotation.NonNull;\n\nimport com.stolets.rxdiffutil.di.FragmentScope;\n\nimport java.util.Collections;\nimport java.u...
java
chosen
[ { "from": "system", "value": "Inflate also from Layout Resource ID\n" }, { "from": "human", "value": "package android.view;\n\nimport com.google.gwt.resources.client.TextResource;\nimport com.google.gwt.user.client.ui.HTML;\nimport com.google.gwt.user.client.ui.Widget;\n\nimport android.content....
java
chosen
[ { "from": "system", "value": "Fix deserialization with annotated getters\n" }, { "from": "human", "value": "package io.leangen.graphql.metadata.strategy.input;\n\nimport com.google.gson.FieldNamingPolicy;\nimport com.google.gson.FieldNamingStrategy;\n\nimport java.lang.reflect.Field;\n\n/**\n * ...
java
chosen
[ { "from": "system", "value": "Fix formatting of config errors.\n" }, { "from": "human", "value": "package com.yammer.dropwizard.config;\n\nimport java.io.File;\n\n/**\n * An exception thrown where there is an error parsing a configuration object.\n */\npublic class ConfigurationException extends...
java
chosen
[ { "from": "system", "value": "Add description for java 95\n" }, { "from": "human", "value": "import java.util.ArrayList;\nimport java.util.List;\n\n/**\n * Created by drfish on 27/05/2017.\n */\npublic class _095UniqueBinarySearchTreesII {\n public List<TreeNode> generateTrees(int n) {\n ...
java
chosen
[ { "from": "system", "value": "Support a null duration worked - setRequired can be used if we need non-null - fixes issue:89\n" }, { "from": "human", "value": "/*\n * HeadsUp Agile\n * Copyright 2014 Heads Up Development Ltd.\n *\n * This program is free software: you can redistribute it and/or m...
java
chosen
[ { "from": "system", "value": "Add custom serializer. Add getter for description\n" }, { "from": "human", "value": "package org.udg.pds.simpleapp_javaee.model;\n\nimport javax.persistence.Entity;\nimport javax.persistence.GeneratedValue;\nimport javax.persistence.GenerationType;\nimport javax.per...
java
chosen
[ { "from": "system", "value": "Change allowedBiomes from BiomeGenBase[] to Biome[]\n" }, { "from": "human", "value": "package com.slugterra.biomes;\r\n\r\nimport com.slugterra.biomes.BiomeRegistry;\r\n\r\nimport net.minecraft.world.biome.BiomeGenBase;\r\nimport net.minecraft.world.gen.layer.GenLa...
java
chosen
[ { "from": "system", "value": "Add HttpStatus 404 return for courses not found\n" }, { "from": "human", "value": "package base.course;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.web.bind.annotation.GetMapping;\nimport org.springframework.web.bind...
java
chosen
[ { "from": "system", "value": "Remove exception used for debugging.\n" }, { "from": "human", "value": "package bio.terra.cli.command;\n\nimport bio.terra.cli.context.GlobalContext;\nimport bio.terra.cli.context.WorkspaceContext;\nimport java.nio.file.FileAlreadyExistsException;\nimport java.util....
java
chosen
[ { "from": "system", "value": "Change info log to debug\n" }, { "from": "human", "value": "package ua.anironglass.template.ui.activities.main;\n\nimport android.os.Bundle;\n\nimport javax.inject.Inject;\n\nimport timber.log.Timber;\nimport ua.anironglass.template.R;\nimport ua.anironglass.templat...
java
chosen
[ { "from": "system", "value": "Clean up per sonarcloud and IntelliJ.\n" }, { "from": "human", "value": "/*\n * Aeronica's mxTune MOD\n * Copyright {2016} Paul Boese aka Aeronica\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compl...
java
chosen
[ { "from": "system", "value": "Fix bug on HUAWEI phone.\n" }, { "from": "human", "value": "package cn.mutils.app.ui;\n\nimport android.content.Context;\nimport android.util.AttributeSet;\nimport android.widget.GridView;\n\npublic class GridViewer extends GridView {\n\n\t/** 设置是否高度全部显示 */\n\tprote...
java
chosen
[ { "from": "system", "value": "Fix detail for positional args\n" }, { "from": "human", "value": "package com.bungleton.yarrgs.parser;\n\nimport java.lang.reflect.Field;\n\nimport com.bungleton.yarrgs.Positional;\n\npublic class PositionalParser extends ArgumentParser\n{\n public final boolean ...
java
chosen
[ { "from": "system", "value": "Revert \"Fix sdk restarted true bug\"\n\nThis reverts commit 2a4aa086345ce960fbc1d62e03ca4e0974b317b7.\n" }, { "from": "human", "value": "/*\n * Copyright (c) 2016 Applivery\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not us...
java
chosen
[ { "from": "system", "value": "[WFLY-11556] Add a utility to skip tests if the security manager is enabled.\n" }, { "from": "human", "value": "package org.jboss.as.test.shared.util;\n\nimport java.security.AccessController;\nimport java.security.PrivilegedAction;\nimport java.util.function.Suppli...
java
chosen
[ { "from": "system", "value": "Fix expansion detail display on phones\n" }, { "from": "human", "value": "package com.funnyhatsoftware.spacedock.activity;\n\nimport android.content.Context;\nimport android.content.Intent;\nimport android.support.v4.app.Fragment;\n\nimport com.funnyhatsoftware.spac...
java
chosen
[ { "from": "system", "value": "Format and mark as InternalAPI\n" }, { "from": "human", "value": "package org.jctools.queues;\n\nimport org.jctools.util.JvmInfo;\nimport org.jctools.util.UnsafeRefArrayAccess;\n\npublic final class PaddedCircularArrayOffsetCalculator {\n static final int REF_BUF...
java
chosen
[ { "from": "system", "value": "Use app.apruve.com as the prod environment URL" }, { "from": "human", "value": "package com.apruve;\n\n/**\n * @author Robert Nelson\n * @since 0.1\n */\npublic enum ApruveEnvironment {\n\tPROD(\"https://www.apruve.com\"), TEST(\"https://test.apruve.com\"), DEV(\"ht...
java
chosen
[ { "from": "system", "value": "Move the service initialisation creation to onCreate\n" }, { "from": "human", "value": "package com.example.crystalgame.communication;\n\nimport android.app.Service;\nimport android.content.Intent;\nimport android.os.IBinder;\nimport android.util.Log;\nimport androi...
java
chosen
[ { "from": "system", "value": "Fix echo request identification and support all ISO-8583 versions\n" }, { "from": "human", "value": "package com.github.kpavlov.jreactive8583.netty.pipeline;\n\nimport com.github.kpavlov.jreactive8583.IsoMessageListener;\nimport com.github.kpavlov.jreactive8583.iso....
java
chosen
[ { "from": "system", "value": "Resolve details screen scrolling issues on Android 2\n\nSet Android 2 to use adjustPan when the soft keyboard is visible as this\nstops the details screen scrolling in such a way that the cursor is off\nthe top of the screen. Leave the default for other versions as then\nthe sc...
java
chosen
[ { "from": "system", "value": "Make that public so it is actually useable.\n" }, { "from": "human", "value": "/*\n * LapisCommons\n * Copyright (c) 2014, LapisDev <https://github.com/LapisDev>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this softwar...
java
chosen
[ { "from": "system", "value": "Replace Math.toIntExact() with a simple .intValue() 'cause toIntExact() is not abailable at Java 6\n" }, { "from": "human", "value": "package com.fewlaps.quitnowcache;\n\nimport java.util.concurrent.TimeUnit;\n\npublic class QNCacheBuilder {\n private boolean cas...
java
chosen
[ { "from": "system", "value": "Add id testing for card and change card text generation a bit.\n" }, { "from": "human", "value": "package app.android.gambit.test;\n\n\nimport app.android.gambit.local.Card;\n\n\npublic class CardTests extends DatabaseTestCase\n{\n\tprivate static final String DECK_...
java
chosen
[ { "from": "system", "value": "Revert \"Re-search for listPanelCell in addAndRemoveLabelTest\"\n\nThis reverts commit f1e2b41afb4623ff35771d028fbd79810e80dece.\n" }, { "from": "human", "value": "package guitests;\n\nimport javafx.scene.input.KeyCode;\nimport org.junit.Test;\nimport ui.listpanel.L...
java
chosen
[ { "from": "system", "value": "Rename all containing 'Addressbook' to 'Tars'\n" }, { "from": "human", "value": "package tars.testutil;\n\nimport tars.commons.exceptions.IllegalValueException;\nimport tars.model.Tars;\nimport tars.model.person.Person;\nimport tars.model.person.UniquePersonList;\ni...
java
chosen
[ { "from": "system", "value": "Remove extraction of static resources from bootstrap resource.\n" }, { "from": "human", "value": "package staticResources;\n\nimport java.io.File;\n\nimport utilities.FileUtility;\n\npublic class WebUIResources extends AbstractBootstrapResource {\n\n\t@Override\n\tp...
java
chosen
[ { "from": "system", "value": "Remove .remove() in favor of finalize()." }, { "from": "human", "value": "/*******************************************************************************\n * This file is part of TERMINAL RECALL\n * Copyright (c) 2015 Chuck Ritola\n * Part of the jTRFP.org project\...
java
chosen
[ { "from": "system", "value": "Add test cases to improve code coverage\n" }, { "from": "human", "value": "package seedu.tasklist.commons.util;\n\nimport static org.junit.Assert.assertEquals;\n\nimport java.io.File;\n\nimport org.junit.Rule;\nimport org.junit.Test;\nimport org.junit.rules.Expected...
java
chosen
[ { "from": "system", "value": "Use StringUtils for the default string\n" }, { "from": "human", "value": "package org.wikipedia.gallery;\n\nimport androidx.annotation.NonNull;\nimport androidx.annotation.Nullable;\n\nimport com.google.gson.annotations.SerializedName;\n\nimport org.apache.commons.l...
java
chosen
[ { "from": "system", "value": "Use 10% darker color for system status bar tinting\n" }, { "from": "human", "value": "package com.felipecsl.elifut.util;\n\nimport android.annotation.TargetApi;\nimport android.app.Activity;\nimport android.os.Build;\nimport android.support.design.widget.TabLayout;\...
java
chosen