conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Check for nulls (fix nullpointer on newer OSX?)\n" }, { "from": "human", "value": "package oslib.osx;\n\nimport java.io.Serializable;\n\nimport oslib.Arch;\nimport oslib.OperatingSystem;\nimport oslib.UnixOperatingSystem;\n\npublic class OSXOperatingSystem extends U...
java
chosen
[ { "from": "system", "value": "Fix NPE on player join\n\nFixes #77\n" }, { "from": "human", "value": "package de.epiceric.shopchest.listeners;\n\nimport de.epiceric.shopchest.ShopChest;\nimport de.epiceric.shopchest.event.ShopUpdateEvent;\nimport de.epiceric.shopchest.shop.Shop;\nimport org.bukki...
java
chosen
[ { "from": "system", "value": "Mark as unused to squash warning\n" }, { "from": "human", "value": "package com.io7m.jaux.tests.functional;\n\nimport junit.framework.Assert;\n\nimport org.junit.Test;\n\nimport com.io7m.jaux.Constraints.ConstraintError;\nimport com.io7m.jaux.functional.PartialFunct...
java
chosen
[ { "from": "system", "value": "Add methods to add and remove sounds from the player.\n" }, { "from": "human", "value": "import javax.sound.sampled.AudioFormat;\nimport javax.sound.sampled.AudioSystem;\nimport javax.sound.sampled.SourceDataLine;\nimport java.util.ArrayList;\nimport framework.Sound...
java
chosen
[ { "from": "system", "value": "Fix error off by one error related to constructor with stopPoint, added output\n" }, { "from": "human", "value": "public class FizzBuzzTester{\n\tpublic static void main(String[] args){\n\t\tFizzBuzzer firstFizz = new FizzBuzzer(20);\n\t\tSystem.out.println(firstFiz...
java
chosen
[ { "from": "system", "value": "Add newline and add missing enhance annotation.\n" }, { "from": "human", "value": "package net.bytebuddy.matcher;\n\nimport net.bytebuddy.description.type.TypeDefinition;\n\n/**\n * Matches an enumeration type.\n *\n * @param <T> The type of the matched entity.\n */...
java
chosen
[ { "from": "system", "value": "Fix broken router path tests\n" }, { "from": "human", "value": "package com.continuuity.gateway.router;\n\nimport com.continuuity.common.conf.Constants;\nimport junit.framework.Assert;\nimport org.junit.Test;\n\n/**\n * To test the RouterPathLookup regular expressi...
java
chosen
[ { "from": "system", "value": "Make class final if private constructor\n\ngit-svn-id: 5ccfe34f605a6c2f9041ff2965ab60012c62539a@1379860 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "human", "value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor ...
java
chosen
[ { "from": "system", "value": "Make ExpParser also handle dates.\n" }, { "from": "human", "value": "/**\n * @license\n * Copyright 2017 The FOAM Authors. All Rights Reserved.\n * http://www.apache.org/licenses/LICENSE-2.0\n */\n\npackage foam.lib.json;\n\nimport foam.lib.parse.*;\nimport java.uti...
java
chosen
[ { "from": "system", "value": "Remove test for getting send queue name in Presenter, there is no need for a send queue.\n" }, { "from": "human", "value": "package rabbit;\n\nimport org.junit.Test;\n\nimport static org.junit.Assert.assertTrue;\n\npublic class RabbitMqConfigTest {\n\n /**\n ...
java
chosen
[ { "from": "system", "value": "Add some utility methods to load a map from a URL and get the map id generated\n" }, { "from": "human", "value": "package com.elmakers.mine.bukkit.api.maps;\n\nimport org.bukkit.inventory.ItemStack;\n\nimport java.util.List;\n\npublic interface MapController {\n ...
java
chosen
[ { "from": "system", "value": "Make sure naming tests work - even when eclipselink naming provider present\n" }, { "from": "human", "value": "package org.realityforge.replicant.server.ee;\n\nimport javax.annotation.Nonnull;\nimport javax.naming.Context;\nimport javax.naming.NamingException;\nimpo...
java
chosen
[ { "from": "system", "value": "Remove prefix and change from settings to mode\n" }, { "from": "human", "value": "package com.uxxu.konashi.lib.stores;\n\nimport com.uxxu.konashi.lib.dispatcher.CharacteristicDispatcher;\nimport com.uxxu.konashi.lib.dispatcher.UartStoreUpdater;\n\n/**\n * Created by...
java
chosen
[ { "from": "system", "value": "Allow customization of retrofit after client is created\n" }, { "from": "human", "value": "/**\n *\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *\n */...
java
chosen
[ { "from": "system", "value": "Remove unneeded list creation to add single item" }, { "from": "human", "value": "package com.github.mobile.android;\n\nimport static java.util.Arrays.asList;\nimport android.app.Application;\nimport android.app.Instrumentation;\nimport android.content.Context;\nimp...
java
chosen
[ { "from": "system", "value": "Add bildge water event map name\n\nmy app was crashing and it may come in handy later if the event repeats." }, { "from": "human", "value": "package com.robrua.orianna.type.core.common;\r\n\r\nimport java.util.HashMap;\r\nimport java.util.Map;\r\n\r\npublic enum Gam...
java
chosen
[ { "from": "system", "value": "Initialize reallocated unsafe direct memory to 0.\n" }, { "from": "human", "value": "/*\n * Copyright 2015 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance wi...
java
chosen
[ { "from": "system", "value": "Use regular malloc for logserver-container\n" }, { "from": "human", "value": "// Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\npackage com.yahoo.vespa.model.admin;\n\nimport com.yahoo.config.model.api....
java
chosen
[ { "from": "system", "value": "Correct javadoc to point to proper annotation.\n" }, { "from": "human", "value": "package retrofit;\n\n/** Intercept every request before it is executed in order to add additional data. */\npublic interface RequestInterceptor {\n /** Called for every request. Add d...
java
chosen
[ { "from": "system", "value": " OAK-15: Clean up oak-jcr\n - formatting\n\ngit-svn-id: 67138be12999c61558c3dd34328380c8e4523e73@1301494 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "human", "value": "package org.apache.jackrabbit.oak.jcr.state;\n\nimport org.apache.jackrabbit.oak.jcr.json...
java
chosen
[ { "from": "system", "value": "Change constructor parameter types from DayTime to DateModifying - as this interface defines the only method we need to call.\n" }, { "from": "human", "value": "package uk.ac.ebi.quickgo.rest.period;\n\nimport com.google.common.base.Preconditions;\nimport java.time....
java
chosen
[ { "from": "system", "value": "Fix for calling getInstance before ApplicationContext is available" }, { "from": "human", "value": "package com.rainbof.nyxtools;\n\nimport android.content.Context;\n\npublic class NyxTools {\n\n\tprivate volatile static NyxTools mInstance;\n\tprivate NyxToolsPersis...
java
chosen
[ { "from": "system", "value": "Replace Setting import for UsedSetting import\n\nIn addition to replacing the Setting import, all instances of\nSetting are replaced with UsedSetting. Spacing was also added.\n" }, { "from": "human", "value": "package com.hida.dao;\n\nimport com.hida.model.Setting;\...
java
chosen
[ { "from": "system", "value": "Test commit from codeenvy IDE... PREPARE FOR CODING FROM SCHOOL!\n" }, { "from": "human", "value": "package com.slickjava.rook;\r\n\r\nimport com.slickjava.rook.map.Map;\r\nimport com.slickjava.rook.map.tile.TileManager;\r\nimport com.slickjava.rook.net.MainServer;\...
java
chosen
[ { "from": "system", "value": "[Parser] Add more patterns for future use\n" }, { "from": "human", "value": "package seedu.address.logic.parser;\n\nimport java.util.regex.Pattern;\n\nimport seedu.address.logic.parser.ArgumentTokenizer.Prefix;\n\n/**\n * Contains Command Line Interface (CLI) syntax...
java
chosen
[ { "from": "system", "value": "Test to parse/set NLS_LANG correctly\n" }, { "from": "human", "value": "package org.utplsql.cli;\n\nimport org.junit.jupiter.api.Test;\nimport org.utplsql.cli.datasource.TestedDataSourceProvider;\n\nimport javax.sql.DataSource;\nimport java.io.IOException;\nimport j...
java
chosen
[ { "from": "system", "value": "OAK-3898: Add filter capabilities to the segment graph run mode\nBump export version\n\ngit-svn-id: 67138be12999c61558c3dd34328380c8e4523e73@1725678 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "human", "value": "/*\n * Licensed to the Apache Software Founda...
java
chosen
[ { "from": "system", "value": "Fix typo which breaks test build:\n\n[]\n\nGITHUB_BREAKING_CHANGES=n/a\n\n-------------\nCreated by MOE: https://github.com/google/moe\nMOE_MIGRATED_REVID=339165220\n" }, { "from": "human", "value": "/*\n * Copyright 2020 Google Inc.\n *\n * Licensed under the Apach...
java
chosen
[ { "from": "system", "value": "Allow command line parameter to override default number of characters.\n\n" }, { "from": "human", "value": "//\n// RandomPass.java\n//\n\n/** Generates a random 8-character password. */\npublic class RandomPass {\n\n private static final int PASS_LEN = 8;\n privat...
java
chosen
[ { "from": "system", "value": "Update sample to show how to change default values\n" }, { "from": "human", "value": "package au.com.outware.neanderthalsample;\n\nimport com.google.gson.annotations.SerializedName;\n\n/**\n * @author timmutton\n */\npublic class Configuration {\n // Private fiel...
java
chosen
[ { "from": "system", "value": "[Scenario] Add persistence support to tag repository\n" }, { "from": "human", "value": "package gov.nasa.arc.mct.scenario.component;\n\nimport gov.nasa.arc.mct.components.AbstractComponent;\n\npublic class TagRepositoryComponent extends AbstractComponent implements ...
java
chosen
[ { "from": "system", "value": "Improve log message when no CSRF token found\n\nCloses gh-10436\n" }, { "from": "human", "value": "/*\n * Copyright 2002-2013 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file exce...
java
chosen
[ { "from": "system", "value": "CORE-601: Update Java handling of eth_blockNumber RPC result\n" }, { "from": "human", "value": "/*\n * Created by Michael Carrara <michael.carrara@breadwallet.com> on 7/1/19.\n * Copyright (c) 2019 Breadwinner AG. All right reserved.\n*\n * See the LICENSE file at ...
java
chosen
[ { "from": "system", "value": "Use migrationJob identifier hashcode as notification identifier.\n" }, { "from": "human", "value": "package com.novoda.downloadmanager;\n\nimport android.app.Notification;\nimport android.content.Context;\nimport android.support.v4.app.NotificationCompat;\n\nclass M...
java
chosen
[ { "from": "system", "value": "Use Play's ok() for chunked responses" }, { "from": "human", "value": "package controllers;\n\nimport org.sagebionetworks.bridge.models.UserSession;\nimport org.sagebionetworks.bridge.services.backfill.BackfillService;\nimport org.slf4j.Logger;\nimport org.slf4j.Log...
java
chosen
[ { "from": "system", "value": "Make defensive copies of the \"see also\" and \"other\" lists\n" }, { "from": "human", "value": "package com.github.therapi.runtimejavadoc;\n\nimport java.util.List;\n\npublic abstract class BaseJavadoc {\n\n private final String name;\n private final Comment ...
java
chosen
[ { "from": "system", "value": "Add failing unit test to detect cases where setting _log_sql in a Query String results in the decoded WebQuery having expand set to a different value (the same value as _log_sql) due to case fallthrough\n" }, { "from": "human", "value": "package com.peterphi.std.gui...
java
chosen
[ { "from": "system", "value": "Improve code style on test arc proxy\n" }, { "from": "human", "value": "package pt.fccn.arquivo.tests;\r\n\r\nimport static org.junit.Assert.assertTrue;\r\n\r\nimport org.junit.Test;\r\n\r\nimport pt.fccn.arquivo.pages.Arcproxyinspection;\r\nimport pt.fccn.arquivo.p...
java
chosen
[ { "from": "system", "value": "Revert \"not bad revert revert\"\n\nThis reverts commit c894c03a6f0b5d816f38761f9d05a9da963fb1d1.\n" }, { "from": "human", "value": "package kr.ac.kookmin.cs.myhello;\n\npublic class HelloWorld {\n\n\t/**\n\t * @param args\n\t */\n\n\tpublic static void main(String[...
java
chosen
[ { "from": "system", "value": "Call RelaxNgWriter as a temporary hack.\n\n\ngit-svn-id: ca8e9bb6f3f9b50a093b443c23951d3c25ca0913@283 369101cc-9a96-11dd-8e58-870c635edf7a\n" }, { "from": "human", "value": "package com.thaiopensource.xml.dtd.app;\n\nimport java.io.IOException;\nimport java.io.Buffe...
java
chosen
[ { "from": "system", "value": "Revert \"Revert \"Ignore test that causes CI to fail on Java 7 - works locally.\"\"\n\nThis reverts commit 5d60bef3afd33f35a9789015a761f16e58c5cc4e.\n" }, { "from": "human", "value": "package io.hawt.git;\n\nimport org.junit.After;\nimport org.junit.Before;\nimport ...
java
chosen
[ { "from": "system", "value": "Add temporary way of creating the smart dash input\n" }, { "from": "human", "value": "package org.robockets.robotswitcher;\n\nimport edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;\n\npublic class Switcher {\n\t\n\tpublic int getRobot(){\n\t\tint currentRobot =...
java
chosen
[ { "from": "system", "value": "Add appropriate message to the end level message\n" }, { "from": "human", "value": "package controller;\n\nimport javax.swing.JOptionPane;\n\nimport model.PlayerModel;\nimport boundary.PlayerApplication;\nimport boundary.PlayerEndLevelView;\n\npublic class PlayerEnd...
java
chosen
[ { "from": "system", "value": "Add OpenACC prefix length constant\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.translator.common;\n\n/**\n * Contains common constants values of the CLAW Xc...
java
chosen
[ { "from": "system", "value": "Update CROS fileter: allow only a few origins\n" }, { "from": "human", "value": "package com.awesometickets.config;\n\nimport java.io.IOException;\n\nimport javax.servlet.Filter;\nimport javax.servlet.FilterChain;\nimport javax.servlet.FilterConfig;\nimport javax.se...
java
chosen
[ { "from": "system", "value": "Revert \"set Access-Control-Allow-Headers to *\"\n\nThis reverts commit dbe2d8f7c94d62587651a393743c513540311685.\n" }, { "from": "human", "value": "package yanagishima.filter;\n\nimport javax.servlet.*;\nimport javax.servlet.http.HttpServletResponse;\nimport java.i...
java
chosen
[ { "from": "system", "value": "Add test for dash case\n" }, { "from": "human", "value": "package com.karateca.jstoolbox.dashcamel;\n\nimport org.junit.Test;\n\nimport static org.junit.Assert.*;\n\npublic class CaseHelperTest {\n @Test\n public void shouldTransformToCamelCase() {\n assertEqua...
java
chosen
[ { "from": "system", "value": "Add byte <-> int conversion methods\n" }, { "from": "human", "value": "package com.haxademic.core.data;\n\npublic class ConvertUtil {\n\t\n\t// from string\n\n\tpublic static int stringToInt( String str ) {\n\t\treturn Integer.parseInt( str );\n\t}\n\t\n\tpublic sta...
java
chosen
[ { "from": "system", "value": "Use the 24-uurs notatie, Luke!\n" }, { "from": "human", "value": "package nl.vpro.poel.dto;\n\nimport lombok.Data;\nimport org.springframework.format.annotation.DateTimeFormat;\n\nimport java.util.Date;\n\n@Data\npublic class MatchDTO {\n\n private Long id;\n\n ...
java
chosen
[ { "from": "system", "value": "Clean up gbm progress page\n" }, { "from": "human", "value": "package water.api;\n\nimport hex.gbm.GBM.GBMModel;\nimport water.*;\n\nimport com.google.gson.JsonObject;\n\npublic class GBMProgressPage extends Progress2 {\n /** Return {@link Response} for finished jo...
java
chosen
[ { "from": "system", "value": "Add Helper singleton class for querying/adding notification to db.\n" }, { "from": "human", "value": "package org.zeropage.apps.zeropage.database.notification;\n\nimport android.content.ContentValues;\nimport android.content.Context;\nimport android.database.Cursor;...
java
chosen
[ { "from": "system", "value": "Revert \"Revert \"optimization of the transition between the pages\"\"\n\nThis reverts commit 44036d92de46456ee2269111275684c0e518e115.\n" }, { "from": "human", "value": "package kurs.zadania.adressbook.appmanager;\n\nimport org.openqa.selenium.By;\nimport org.openq...
java
chosen
[ { "from": "system", "value": "Add sourceIsTarget for Android client to work\n" }, { "from": "human", "value": "package algorithms;\n\nimport graphrep.GraphRep;\n\nimport java.util.HashMap;\nimport java.util.List;\nimport java.util.Map;\n\npublic class NNLookupFactory extends GraphAlgorithmFactor...
java
chosen
[ { "from": "system", "value": "Add log for loading config\n" }, { "from": "human", "value": "package ml.duncte123.skybot.utils;\n\nimport ml.duncte123.skybot.config.Config;\nimport ml.duncte123.skybot.config.ConfigLoader;\nimport org.slf4j.event.Level;\n\nimport java.io.File;\n\npublic class Conf...
java
chosen
[ { "from": "system", "value": "Throw SQLException and ClassNotFoundException from getJdbcConnection method\n" }, { "from": "human", "value": "package database;\n\nimport java.sql.Connection;\nimport java.sql.DriverManager;\nimport java.sql.SQLException;\n\n/**\n * Connect to SQL Server database u...
java
chosen
[ { "from": "system", "value": "Fix help link not displayed\n" }, { "from": "human", "value": "package kg.apc.jmeter.modifiers;\n\nimport java.awt.BorderLayout;\nimport kg.apc.jmeter.JMeterPluginsUtils;\nimport org.apache.jmeter.processor.gui.AbstractPreProcessorGui;\nimport org.apache.jmeter.test...
java
chosen
[ { "from": "system", "value": "Fix bug with features not appearing when feature app loaded before main app\n\n - Trigger class initialization of generated features file before showing features app" }, { "from": "human", "value": "package com.github.michaelengland.fliptheswitch.app;\n\nimport andr...
java
chosen
[ { "from": "system", "value": "Remove useless comment about returning a null mouse. Access mouse through ForPlay.mouse().\n\n\ngit-svn-id: 53b953c7be2d47dd5cb9b5c1ab101a1158da7762@77 a6a9a2b1-fcd7-f629-9329-86f1cfbb9621\n" }, { "from": "human", "value": "/**\n * Copyright 2010 The ForPlay Authors...
java
chosen
[ { "from": "system", "value": "Make haystack parameter more generic.\n" }, { "from": "human", "value": "package com.hubspot.baragon.agent.handlebars;\n\nimport java.io.IOException;\nimport java.util.List;\nimport java.util.Objects;\n\nimport com.github.jknack.handlebars.Options;\n\npublic class I...
java
chosen
[ { "from": "system", "value": "Disable failing Papyrus integration tests\n\nThis is a temporary fix for #391.\n" }, { "from": "human", "value": "package hu.elte.txtuml.export.papyrus;\n\nimport org.junit.runner.RunWith;\nimport org.junit.runners.Suite;\nimport org.junit.runners.Suite.SuiteClasses...
java
chosen
[ { "from": "system", "value": "Change ring buffer default length to 3\n\n3 is the Micrometer default, 1024 is way\nto big and results in excessive memory usage.\n" }, { "from": "human", "value": "package io.quarkus.micrometer.runtime.config;\n\nimport java.time.Duration;\nimport java.util.Optiona...
java
chosen
[ { "from": "system", "value": "Reword package info a bit\n" }, { "from": "human", "value": "/*\n * Copyright 2018, TeamDev. All rights reserved.\n *\n * Redistribution and use in source and/or binary forms, with or without\n * modification, must retain the above copyright notice and the following...
java
chosen
[ { "from": "system", "value": "Add transactional annotation to delete method.\n\nThe delete method has to be readOnly=false, otherwise the entities won't be deleted.\n" }, { "from": "human", "value": "package de.terrestris.shogun2.service;\n\nimport java.util.List;\n\nimport org.springframework.t...
java
chosen
[ { "from": "system", "value": "Use the long version of recipient\n" }, { "from": "human", "value": "package se.soy.gpg;\n\nimport java.util.List;\nimport java.util.ArrayList;\n\npublic class GPG {\n // FIXME Remove when done\n static<T> void println(T arg) { System.out.println(arg); }\n\n publ...
java
chosen
[ { "from": "system", "value": "tool-core: Change the order of the progress bar and the brand icon\n\n" }, { "from": "human", "value": "package com.speedment.tool.core.internal.toolbar;\n\nimport com.speedment.common.injector.annotation.ExecuteBefore;\nimport com.speedment.common.injector.annotati...
java
chosen
[ { "from": "system", "value": "Use Java naming conventions for constants\n" }, { "from": "human", "value": "package sqlancer.common;\n\nimport java.util.regex.Matcher;\nimport java.util.regex.Pattern;\n\npublic final class DBMSCommon {\n\n private static final Pattern sqlancerIndexPattern = Pa...
java
chosen
[ { "from": "system", "value": "Add docs to Selection Sort\n" }, { "from": "human", "value": "import java.util.Arrays;\n\npublic class SelectionSort {\n\t\n\tpublic int[] selection_sort(int[] arr) {\n\t\tint min, temp;\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tmin = i;\n\t\t\tfor (int j =...
java
chosen
[ { "from": "system", "value": "Add test for null date.\n" }, { "from": "human", "value": "package uk.ac.ebi.quickgo.annotation.download.converter.helpers;\n\nimport java.time.ZoneId;\nimport java.time.format.DateTimeFormatter;\nimport java.util.Date;\nimport java.util.function.Function;\n\n/**\n ...
java
chosen
[ { "from": "system", "value": "Rewrite test to use ThrowableCaptor" }, { "from": "human", "value": "package com.codeaffine.extras.jdt.internal.prefs;\n\nimport static org.junit.Assert.fail;\nimport static org.mockito.Mockito.mock;\nimport static org.mockito.Mockito.verify;\nimport static org.mock...
java
chosen
[ { "from": "system", "value": "Remove readLine from repl:main for jar load performance output." }, { "from": "human", "value": "package ca.junctionbox.cljbuck.repl;\n\nimport clojure.lang.RT;\n\nimport java.lang.management.GarbageCollectorMXBean;\nimport java.lang.management.ManagementFactory;\n\...
java
chosen
[ { "from": "system", "value": "Allow the SASL credentials provider to provide extra configuration\n\nSome mechanisms might require external configuration data so we should\nprovide an optional API to allow that to be gathered from a mechanism." }, { "from": "human", "value": "/*\n * Licensed to t...
java
chosen
[ { "from": "system", "value": "Remove test that no longer makes any sense\n" }, { "from": "human", "value": "package arez.integration.observable_component;\n\nimport arez.Arez;\nimport arez.Disposable;\nimport arez.annotations.ArezComponent;\nimport arez.annotations.Feature;\nimport arez.componen...
java
chosen
[ { "from": "system", "value": "Use proxy methods for getPrecision() and getRecall().\n" }, { "from": "human", "value": "package edu.ntnu.idi.goldfish;\n\nimport org.apache.mahout.cf.taste.eval.IRStatistics;\n\npublic class Result {\n\n\tString recommender;\n\t\n\t// RMSE\n\tdouble RMSE;\n\t\n\t//...
java
chosen
[ { "from": "system", "value": "Add onclick listener for all of the about page buttons\n" }, { "from": "human", "value": "package edu.yalestc.yalepublic;\n\nimport android.app.Activity;\nimport android.os.Bundle;\n\n/**\n * Created by Jason Liu on 11/8/14.\n */\npublic class About extends Activity...
java
chosen
[ { "from": "system", "value": "Fix NPE when reading mob armor inventories in peaceful mode\n" }, { "from": "human", "value": "package org.cyclops.integrateddynamics.core.evaluate.variable;\n\nimport net.minecraft.entity.Entity;\nimport net.minecraft.item.ItemStack;\nimport net.minecraft.nbt.NBTTa...
java
chosen
[ { "from": "system", "value": "Use hex-encoding for HMAC-SHA1 signature\n\nAs described in the documentation ( https://pushpad.xyz/docs/identifying_users ), the signature should be hex-encoded. Base64-encoded signatures get rejected." }, { "from": "human", "value": "package xyz.pushpad;\n\nimport...
java
chosen
[ { "from": "system", "value": "Add new line to the end of schedulingtest.java.\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": "Remove removed id property from storage annotation\n" }, { "from": "human", "value": "package de.espend.idea.laravel;\n\nimport com.intellij.openapi.components.*;\nimport com.intellij.openapi.project.Project;\nimport com.intellij.util.xmlb.XmlSerializerUtil;\nimport...
java
chosen
[ { "from": "system", "value": "Fix bug in CookingPreference plugin\n\nThe cooking preference could not really be changed,\nit only looked like it was changed since the fact\nwas added, not changed correctly.\n" }, { "from": "human", "value": "// SPDX-License-Identifier: MIT\n\npackage mealplaner....
java
chosen
[ { "from": "system", "value": "Use basic auth when posting data.\n" }, { "from": "human", "value": "package com.watcher.car;\n\nimport java.io.IOException;\nimport java.io.OutputStreamWriter;\nimport java.net.HttpURLConnection;\nimport java.net.URL;\n\npublic class HttpClient {\n\n public void p...
java
chosen
[ { "from": "system", "value": "Use of a more specific constructor, to avoid too easy conversions\n" }, { "from": "human", "value": "//-----------------------------------------------------------------------//\n// //\n// ...
java
chosen
[ { "from": "system", "value": "Maintain scroll position in data source/sink list in Enabler.\n\nInstead of blowing away the adapter each time we update, keep the same adapter\nand just update the list.\n\nThanks to\nhttp://vikinghammer.com/2011/06/17/android-listview-maintain-your-scroll-position-when-you-re...
java
chosen
[ { "from": "system", "value": "Fix visibility of internal class.\n\nChange visibility of 'MSegList' to package private and make it final.\n" }, { "from": "human", "value": "/*\n * Java Genetic Algorithm Library (@__identifier__@).\n * Copyright (c) @__year__@ Franz Wilhelmstötter\n *\n * Licensed...
java
chosen
[ { "from": "system", "value": "Mark locale negotiation acceptance in progress\n" }, { "from": "human", "value": "package examples.locale;\n\nimport com.vtence.molecule.WebServer;\nimport com.vtence.molecule.testing.http.HttpRequest;\nimport com.vtence.molecule.testing.http.HttpResponse;\nimport o...
java
chosen
[ { "from": "system", "value": "Modify data source to HDFS\n" }, { "from": "human", "value": "package com.parquet;\n\nimport com.richstonedt.nokia_api.peopleflow.Record;\nimport org.apache.spark.SparkConf;\nimport org.apache.spark.SparkContext;\nimport org.apache.spark.api.java.function.MapPartiti...
java
chosen
[ { "from": "system", "value": "Clear ResourceBundle cache on reload\n" }, { "from": "human", "value": "package fr.aumgn.dac2;\n\nimport fr.aumgn.bukkitutils.localization.PluginResourceBundles;\nimport fr.aumgn.bukkitutils.localization.bundle.PluginResourceBundle;\nimport fr.aumgn.dac2.config.DACC...
java
chosen
[ { "from": "system", "value": "Update play-java template to use new Twirl API\n" }, { "from": "human", "value": "import java.util.ArrayList;\nimport java.util.HashMap;\nimport java.util.List;\nimport java.util.Map;\n\nimport com.fasterxml.jackson.databind.JsonNode;\nimport org.junit.*;\n\nimport ...
java
chosen
[ { "from": "system", "value": "Fix unitialized variable compiler error\n" }, { "from": "human", "value": "/**\n * @license\n * Copyright 2019 The FOAM Authors. All Rights Reserved.\n * http://www.apache.org/licenses/LICENSE-2.0\n */\n\npackage foam.util.concurrent;\n\nimport foam.core.Agency;\nim...
java
chosen
[ { "from": "system", "value": "Make bot token private :p" }, { "from": "human", "value": "/*\n * To change this license header, choose License Headers in Project Properties.\n * To change this template file, choose Tools | Templates\n * and open the template in the editor.\n */\npackage Config;\n...
java
chosen
[ { "from": "system", "value": "Add joystick control to the new shooter Jaguar.\n" }, { "from": "human", "value": "/*----------------------------------------------------------------------------*/\n/* Copyright (c) FIRST 2008. All Rights Reserved. */\n/* Open Source Soft...
java
chosen
[ { "from": "system", "value": "Put in correct jelly DXS paths\n" }, { "from": "human", "value": "package com.walkertribe.ian.enums;\n\nimport com.walkertribe.ian.Context;\nimport com.walkertribe.ian.model.Model;\n\n/**\n * The types of creatures. Note: For some reason, wrecks count as creatures.\...
java
chosen
[ { "from": "system", "value": "Use null input handler for ErrorDialog; none needed\n" }, { "from": "human", "value": "package csuf.cs544.hw1.dialogs;\r\n\r\nimport android.R;\r\nimport android.app.AlertDialog;\r\nimport android.app.Dialog;\r\nimport android.app.DialogFragment;\r\nimport android.c...
java
chosen
[ { "from": "system", "value": "Fix test execution step in maven build" }, { "from": "human", "value": "package webmon;\n\nimport org.junit.Test;\n\nimport static org.junit.Assert.*;\n\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.net....
java
chosen
[ { "from": "system", "value": "Add default values to get field values\n" }, { "from": "human", "value": "/*\n * Copyright 2011 Splunk, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\"): you may\n * not use this file except in compliance with the License. You may obtain...
java
chosen
[ { "from": "system", "value": "Clean up a little and don't store a final reference to the builder.\n" }, { "from": "human", "value": "//\n// SamsoN - utilities for playn clients and servers\n// Copyright (c) 2014, Cupric - All rights reserved.\n// http://github.com/cupric/samson/blob/master/LICEN...
java
chosen
[ { "from": "system", "value": "Add new predefined generic message for announcement query failure\n" }, { "from": "human", "value": "/*\n * Copyright 2015 Ryan Gilera.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with ...
java
chosen
[ { "from": "system", "value": "Prepend the tester name in the composite item name formatter" }, { "from": "human", "value": "package se.fnord.katydid.internal;\n\nimport se.fnord.katydid.ComparisonStatus;\nimport se.fnord.katydid.DataTester;\nimport se.fnord.katydid.TestingContext;\n\nimport java...
java
chosen
[ { "from": "system", "value": "Remove redundant GVM main methods\n" }, { "from": "human", "value": "package net.gvmtool.api;\n\n/**\n * @author Noam Y. Tenne\n */\npublic class Gvm {\n\n public static Object use(String candidateName) {\n return constructUse(candidateName);\n }\n\n ...
java
chosen
[ { "from": "system", "value": "Fix deprecation warning in Java unit test\n" }, { "from": "human", "value": "package com.genymobile.scrcpy;\n\nimport junit.framework.Assert;\n\nimport org.junit.Test;\n\nimport java.nio.charset.StandardCharsets;\n\npublic class StringUtilsTest {\n\n @Test\n @...
java
chosen
[ { "from": "system", "value": "Add headers to control Access\n" }, { "from": "human", "value": "package no.deichman.services.resources;\n\nimport javax.ws.rs.GET;\nimport javax.ws.rs.Path;\nimport javax.ws.rs.Produces;\nimport javax.ws.rs.core.MediaType;\nimport javax.ws.rs.core.Response;\n\n@Pat...
java
chosen