conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Fix ruler menu for breakpoints\n\nReview URL: http://codereview.chromium.org/99357" }, { "from": "human", "value": "// Copyright (c) 2009 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found ...
java
chosen
[ { "from": "system", "value": "Work around service not exiting.\n" }, { "from": "human", "value": "package com.emc.pravega.demo;\n\nimport java.time.Duration;\n\nimport com.emc.pravega.service.contracts.StreamSegmentStore;\nimport com.emc.pravega.service.server.host.handler.PravegaConnectionListe...
java
chosen
[ { "from": "system", "value": "Implement the construct annotation in the common bus register" }, { "from": "human", "value": "package info.u_team.u_team_test.init;\n\nimport info.u_team.u_team_core.util.registry.BusRegister;\n\npublic class TestCommonBusRegister {\n\t\n\tpublic static void regist...
java
chosen
[ { "from": "system", "value": "fix(data): Fix weighted/chance tables not serializing\n" }, { "from": "human", "value": "package valandur.webapi.serialize.view.misc;\r\n\r\nimport com.fasterxml.jackson.annotation.JsonValue;\r\nimport org.spongepowered.api.util.weighted.NestedTableEntry;\r\nimport ...
java
chosen
[ { "from": "system", "value": "Fix incorrect javadoc {@code} taglet\n" }, { "from": "human", "value": "package io.vertx.ext.web;\n\nimport io.vertx.codegen.annotations.VertxGen;\n\n@VertxGen\npublic interface MIMEHeader extends ParsedHeaderValue{\n \n /**\n * Gets the parsed component part of...
java
chosen
[ { "from": "system", "value": "Allow user selection at section level\n" }, { "from": "human", "value": "//----------------------------------------------------------------------------//\n// //\n// ...
java
chosen
[ { "from": "system", "value": "Add stopwatch to log output and a finished message\n" }, { "from": "human", "value": "package com.axiomalaska.sos.injector.db;\n\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\n\nimport com.axiomalaska.sos.SosInjector;\n\npublic class DatabaseSosInjector...
java
chosen
[ { "from": "system", "value": "Test coverage for Spring instantiation (actual tests with Spring will\ncome later)" }, { "from": "human", "value": "package org.keyboardplaying.cron.scheduler;\n\nimport static org.junit.Assert.assertEquals;\n\nimport org.junit.Test;\n\n/**\n * Tests {@link CronJob}...
java
chosen
[ { "from": "system", "value": "Add float allocators for completeness\n" }, { "from": "human", "value": "package com.rabenauge.demo;\r\n\r\nimport java.nio.*;\r\n\r\n/*\r\n * A class to create directly allocated buffers of native byte order.\r\n */\r\npublic class DirectBuffer {\r\n public stat...
java
chosen
[ { "from": "system", "value": "Set a key to donors\n" }, { "from": "human", "value": "package persons;\n\n/**\n * Created by fcmam5 on 11/13/15.\n * Implemented by Mouilah-Sarra\n */\npublic class Donor extends Personne {\n private static int donNum = 0;\n private int quantite;\n boolean...
java
chosen
[ { "from": "system", "value": "Refactor WebResourceManagerImpl to use WebResourceFormatters for javascript and css resources\n- css resource parameter for IE conditional comments added \n- also added support for several HTML attributes\n\ngit-svn-id: 3d1f0b8d955af71bf8e09c956c180519124e4717@22271 2c54a935-e...
java
chosen
[ { "from": "system", "value": "Add tie breaker for plan comparators.\n\nFirst choose the one with shortest makespan.\nIf it still a tie, use the id of the state to make sure the output is deterministic.\n" }, { "from": "human", "value": "package fape.core.planning.search.strategies.plans;\n\nimpo...
java
chosen
[ { "from": "system", "value": "Use more accurate name for clarity in measuring\n" }, { "from": "human", "value": "package com.flipboard.bottomsheet.commons;\n\nimport android.annotation.TargetApi;\nimport android.content.Context;\nimport android.os.Build;\nimport android.util.AttributeSet;\nimpor...
java
chosen
[ { "from": "system", "value": ":mailbox_with_mail: Print logger output to stderr\n" }, { "from": "human", "value": "package weatherhandler;\n\nimport java.util.Date;\nimport java.text.SimpleDateFormat;\n\npublic class Logger {\n final public static int ERROR = 0;\n final public static int W...
java
chosen
[ { "from": "system", "value": "Create users on startup for testing purposes\n" }, { "from": "human", "value": "package com.github.neunkasulle.chronocommand.control;\n\nimport com.github.neunkasulle.chronocommand.model.Category;\nimport com.github.neunkasulle.chronocommand.model.CategoryDAO;\nimpo...
java
chosen
[ { "from": "system", "value": "Fix length calculation in the exception path\n" }, { "from": "human", "value": "/*\nCopyright 2011 Frederic Langlet\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nyou may obtain a...
java
chosen
[ { "from": "system", "value": "feat(http): Add code to HTTP method\n\nCloses gravitee-io/issues#836\n" }, { "from": "human", "value": "/**\n * Copyright (C) 2015 The Gravitee team (http://gravitee.io)\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use th...
java
chosen
[ { "from": "system", "value": "Add empty state container class as utility\n" }, { "from": "human", "value": "package info.u_team.u_team_core.util;\n\nimport static net.minecraft.client.renderer.model.ModelBakery.STATE_CONTAINER_OVERRIDES;\n\nimport java.util.*;\n\nimport com.google.common.collect...
java
chosen
[ { "from": "system", "value": "Add player inventory and basic fluid slots" }, { "from": "human", "value": "package info.u_team.u_team_test.container;\n\nimport info.u_team.u_team_core.container.UTileEntityContainer;\nimport info.u_team.u_team_test.init.TestContainers;\nimport info.u_team.u_team_t...
java
chosen
[ { "from": "system", "value": "Add a \"magic license comment\"\n" }, { "from": "human", "value": "package edu.cornell.mannlib.vitro.webapp.controller;\n\nimport org.junit.Assert;\nimport org.junit.Test;\n\nimport edu.cornell.mannlib.vitro.webapp.web.ContentType;\n\n\npublic class EntityController...
java
chosen
[ { "from": "system", "value": "Add extra tests for the renderer registry\n" }, { "from": "human", "value": "/**\n * Copyright 2008 Matthew Hillsdon\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": "Update documentation in weighttable.java to remove the non-relevant stuff anymore\n" }, { "from": "human", "value": "import java.util.Hashtable;\nimport java.util.Random;\n\n/**\n * A weight table is used to have keys that contain an ordered set of N strings corresp...
java
chosen
[ { "from": "system", "value": "Fix typo in javadocs link.\n" }, { "from": "human", "value": "/**\n * This is the top-level package of the OpenXC library. It contains the\n * primary entry point for applications, the {@link com.openxc.VechicleManager}.\n */\npackage com.openxc;\n" }, { "fr...
java
chosen
[ { "from": "system", "value": "Update query with additional nodes\n" }, { "from": "human", "value": "package org.pdxfinder.repositories;\n\nimport org.pdxfinder.dao.Patient;\nimport org.pdxfinder.dao.PatientSnapshot;\nimport org.springframework.data.neo4j.annotation.Query;\nimport org.springframe...
java
chosen
[ { "from": "system", "value": "Create database table for Location Pucks\n" }, { "from": "human", "value": "package no.nordicsemi.db;\n\nimport android.content.Context;\nimport android.database.sqlite.SQLiteDatabase;\n\nimport org.droidparts.persist.sql.AbstractDBOpenHelper;\n\npublic class DBOpen...
java
chosen
[ { "from": "system", "value": "Add test for checking whether insert method runs or not\n\nTester class for the insert method that was implemented in the Records class.\nWhether or not the values were properly inserted has not been checked yet.\nThis test was done only to check if it can be ran without except...
java
chosen
[ { "from": "system", "value": "Fix a crash with fluid dyes\n\n" }, { "from": "human", "value": "package net.teamio.taam.content.common;\n\nimport net.minecraftforge.fluids.Fluid;\n\npublic class FluidDye extends Fluid {\n\n\tpublic FluidDye(String fluidName) {\n\t\tsuper(fluidName, null, null);//...
java
chosen
[ { "from": "system", "value": "Use same defines as c++ interface in java code\n" }, { "from": "human", "value": "package com.mapzen.tangram;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\n/**\n * {@code TouchLabel} represents labels that can be selected on the scree\n */\npublic class ...
java
chosen
[ { "from": "system", "value": "Create : 389 Find the Difference\n" }, { "from": "human", "value": "public class Solution {\n\n public char findTheDifference(String s, String t) {\n\n char addedChar = 0;\n\n for (int i = 0; i < s.length(); ++i) {\n addedChar ^= s.charAt...
java
chosen
[ { "from": "system", "value": "Revert \"Revert \"Updated object types in Dev\"\"\n\nThis reverts commit 640067d83b3bdb0c9547926fbecf69b08b227548.\n" }, { "from": "human", "value": "package com.aayaffe.sailingracecoursemanager.communication;\n\nimport java.io.Serializable;\n\n/**\n * Created by aa...
java
chosen
[ { "from": "system", "value": "Fix setStartDelay() is not reset by clear()\n" }, { "from": "human", "value": "package jp.wasabeef.recyclerview.internal;\n\nimport android.support.v4.view.ViewCompat;\nimport android.view.View;\n\n/**\n * Copyright (C) 2015 Wasabeef\n *\n * Licensed under the Apach...
java
chosen
[ { "from": "system", "value": "Fix for GWT’s missing collections.shuffle\n" }, { "from": "human", "value": "package de.cdietze.ld37.core;\n\nimport java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.List;\nimport java.util.Random;\n\npublic class MathUtils {\n\n public static ...
java
chosen
[ { "from": "system", "value": "Extend CoreTestCase for access to assertPositve/Negative, others\n\ngit-svn-id: 4b387fe5ada7764508e2ca96c335714e4c1692c6@136 0d517254-b314-0410-acde-c619094fa49f\n" }, { "from": "human", "value": "package edu.northwestern.bioinformatics.studycalendar.testing;\n\nimp...
java
chosen
[ { "from": "system", "value": "Make public to be able to use IPAddress class in other packages\n" }, { "from": "human", "value": "package com.yahoo.vespa.hosted.node.admin.task.util.network;\n\n/**\n * Strong type IPv4 and IPv6 with the respective iptables executable.\n *\n * @author smorgrav\n *...
java
chosen
[ { "from": "system", "value": "Fix checkstyle error that one line exceeds the width.\n" }, { "from": "human", "value": "package com.orhanobut.hawk;\n\nimport java.lang.reflect.Type;\n\n/**\n * Intermediate layer that handles serialization/deserialization for the end result.\n * This is not the sa...
java
chosen
[ { "from": "system", "value": "Clear the screen on render\n" }, { "from": "human", "value": "package starpunk;\n\nimport com.badlogic.gdx.Screen;\n\npublic class GameScreen\n implements Screen\n{\n @Override\n public void render( final float delta )\n {\n }\n\n @Override\n public void resi...
java
chosen
[ { "from": "system", "value": "Tag added for all todo topics" }, { "from": "human", "value": "package com.example.e4.rcp.todo.events;\n\n/**\n * @noimplement This interface is not intended to be implemented by clients.\n * \n * Only used for constant interfaces\n */\n\npublic interface MyEventCon...
java
chosen
[ { "from": "system", "value": "Store original URL before logging in so that user is properly redirected on login.\n" }, { "from": "human", "value": "package controllers;\n\nimport java.util.ArrayList;\n\nimport com.feth.play.module.pa.PlayAuthenticate;\nimport com.feth.play.module.pa.user.AuthUse...
java
chosen
[ { "from": "system", "value": "Add description to dummy message handler\n" }, { "from": "human", "value": "package panda.leatherworks.common.network.messagehandler;\n\nimport net.minecraftforge.fml.common.network.simpleimpl.IMessage;\nimport net.minecraftforge.fml.common.network.simpleimpl.IMessa...
java
chosen
[ { "from": "system", "value": "Remove unneeded exception signature from unit test.\n" }, { "from": "human", "value": "package com.fasterxml.jackson.databind.deser;\n\n\nimport javax.measure.Measure;\n\nimport java.util.List;\n\nimport com.fasterxml.jackson.databind.BaseMapTest;\nimport com.faster...
java
chosen
[ { "from": "system", "value": "Enable StrictMode in DEBUG env, disable ACRA there\n" }, { "from": "human", "value": "package net.rdrei.android.wakimail;\n\nimport org.acra.ACRA;\nimport org.acra.annotation.ReportsCrashes;\n\nimport android.app.Application;\n\n/**\n * Sets up settings that are req...
java
chosen
[ { "from": "system", "value": "Add throws clause to validate()\n\nOPEN - task 48: Create \"Edit Item\" functionality \nhttp://github.com/DevOpsDistilled/OpERP/issues/issue/48" }, { "from": "human", "value": "package devopsdistilled.operp.client.items.controllers;\n\nimport devopsdistilled.operp.c...
java
chosen
[ { "from": "system", "value": "Increase sleep time to a more conservative level\n" }, { "from": "human", "value": "package annis.gui;\n\nimport com.github.mvysny.kaributesting.v8.MockVaadin;\nimport java.util.concurrent.Callable;\nimport java.util.concurrent.TimeoutException;\nimport org.slf4j.Lo...
java
chosen
[ { "from": "system", "value": "Support for method to mirror\n\nAdded isFacingLeft()\n" }, { "from": "human", "value": "package com.rehab.animation;\n\npublic interface Drawable {\n\t\n\tdouble getX ();\n\t\n\tdouble getY ();\n\t\n\tdouble getWidth();\n\t\n\tdouble getHeight();\n\t\n\tSprite getSp...
java
chosen
[ { "from": "system", "value": "feature: Print purpose and usage if called without arguments\n" }, { "from": "human", "value": "/*\n\tArticle Parse\n */\n\nimport java.io.*;\n\npublic class ArticleParse {\n\n public static void main(String[] args) {\n\n System.out.println(\"Running Artic...
java
chosen
[ { "from": "system", "value": "Change from a Thread to a Runnable for use in an ExecutorService" }, { "from": "human", "value": "package com.meta1203.ChessPlayer;\n\nimport java.util.List;\n\npublic class CalculateMovesThread extends Thread {\n\tprivate Turn originTurn;\n\t\n\tpublic CalculateMov...
java
chosen
[ { "from": "system", "value": "Use correct repository in debug thing\n" }, { "from": "human", "value": "package net.hillsdon.reviki.vc.impl;\n\nimport net.hillsdon.reviki.vc.AttachmentHistory;\n\nimport org.tmatesoft.svn.core.SVNURL;\nimport org.tmatesoft.svn.core.internal.io.dav.DAVRepositoryFac...
java
chosen
[ { "from": "system", "value": "fix(hooks): Fix cmd hook not working for commands run via Web-API\n" }, { "from": "human", "value": "package valandur.webapi.json.serializers.events;\n\nimport com.fasterxml.jackson.core.JsonGenerator;\nimport com.fasterxml.jackson.databind.SerializerProvider;\nimpo...
java
chosen
[ { "from": "system", "value": "Add a god damn constructor\n\n" }, { "from": "human", "value": "package stream.flarebot.flarebot.util;\n\npublic class Pair<K, V> {\n\n private K key;\n private V value;\n\n public K getKey() {\n return this.key;\n }\n\n public void setKey(K ke...
java
chosen
[ { "from": "system", "value": "Use proper eviction for data queue\n" }, { "from": "human", "value": "package fi.aalto.trafficsense.regularroutes.backend.pipeline;\n\nimport fi.aalto.trafficsense.regularroutes.backend.parser.LocationData;\nimport timber.log.Timber;\n\nimport java.util.ArrayDeque;\...
java
chosen
[ { "from": "system", "value": "Add from squares and calling piece data." }, { "from": "human", "value": "package chess;\r\n\r\npublic class MoveData {\r\n\tprivate int toRow;\r\n\tprivate int toCol;\r\n\tprivate boolean isACapture;\r\n\t\r\n\tpublic MoveData(int row, int col, boolean capture) {\r...
java
chosen
[ { "from": "system", "value": "Fix opening files from GMail\n\n* MOPPAND-751\n\nSigned-off-by: ab8d0676af4d724c40f403280b143ae093b0e58d@nortal.com\n" }, { "from": "human", "value": "package ee.ria.DigiDoc.common;\n\nimport java.io.File;\nimport java.io.IOException;\n\npublic class FileUtil {\n\n ...
java
chosen
[ { "from": "system", "value": "Correct the argument order in EmptyChangeEx.super call\n\nWhen refactoring exceptions, this one was overlooked, leading to a format string bug.\n\nPiperOrigin-RevId: 189939495\nChange-Id: I94172b07dbfcb23827efef78b858bab92eb9bd62\n" }, { "from": "human", "value": "/...
java
chosen
[ { "from": "system", "value": "Make test print meta strings" }, { "from": "human", "value": "package com.io7m.jcanephora;\n\nimport java.io.IOException;\n\nimport javax.media.opengl.GLContext;\n\nimport junit.framework.Assert;\n\nimport org.junit.After;\nimport org.junit.Before;\nimport org.junit...
java
chosen
[ { "from": "system", "value": "Switch to using protected getter\n" }, { "from": "human", "value": "package net.michaelsavich.notification;\n\nimport java.util.HashSet;\n\n/**\n * An instance of NotificationCenter that dispatches {@link Notification notifications} to their {@link NotificationObser...
java
chosen
[ { "from": "system", "value": "Add documentation field and parameter validation\n" }, { "from": "human", "value": "package pete.metrics.adaptability;\n\nimport java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.List;\n\npublic final class AdaptableElement {\n\n\tprivate final S...
java
chosen
[ { "from": "system", "value": "Fix to work on CI\n" }, { "from": "human", "value": "package test.com.github.tmurakami.dexopener;\n\nimport android.support.test.rule.ActivityTestRule;\nimport android.support.v4.app.FragmentActivity;\n\nimport org.junit.Before;\nimport org.junit.Rule;\nimport org.j...
java
chosen
[ { "from": "system", "value": "Make sure we always save bnd files as UTF-8 and not accidentally inherit the local Eclipse platform encoding …\n\nWe need to force this since we should not depend on local Eclipse settings\n\nSigned-off-by: Peter Kriens <016a769244db65ccbb64c8b271e9b7b28d4a3ce8@aqute.biz>" },...
java
chosen
[ { "from": "system", "value": "Change ArcadeDrive to TankDrive for speed control\n" }, { "from": "human", "value": "package edu.stuy.commands;\n\nimport edu.stuy.Robot;\nimport edu.wpi.first.wpilibj.command.Command;\n\n/**\n * Rotates the Robot without PID values\n */\n\npublic class DrivetrainRo...
java
chosen
[ { "from": "system", "value": "Create and locate 'jarmods' directory if it doesn't exist\n" }, { "from": "human", "value": "package agaricus.mods.Jarmod2Coremod;\n\nimport cpw.mods.fml.relauncher.IFMLCallHook;\n\nimport java.io.File;\nimport java.util.Map;\n\npublic class Scanner implements IFMLC...
java
chosen
[ { "from": "system", "value": "Update docker images to version 33\n" }, { "from": "human", "value": "/*\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 the License at\n *\n * ...
java
chosen
[ { "from": "system", "value": "Add error checking to username and password (DEV-99)\n" }, { "from": "human", "value": "package sg.ncl.service.authentication.controllers;\n\nimport org.springframework.http.MediaType;\nimport org.springframework.web.bind.annotation.RequestHeader;\nimport org.sprin...
java
chosen
[ { "from": "system", "value": "Create listener based on functional interfaces" }, { "from": "human", "value": "/*******************************************************************************\n * Copyright (c) 2017 Red Hat Inc and others.\n *\n * All rights reserved. This program and the accompan...
java
chosen
[ { "from": "system", "value": "Reduce the verbosity of password checking on every security check.\n" }, { "from": "human", "value": "package ca.corefacility.bioinformatics.irida.security;\n\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\nimport org.springframework.security.authenticat...
java
chosen
[ { "from": "system", "value": "SB-1160: Sort the artifact dependency synonyms by main layout provider and then alphabetic order\n\nSonar: Added equals() and hashCode() implementations.\n" }, { "from": "human", "value": "package org.carlspring.strongbox.dependency.snippet;\n\nimport javax.annotati...
java
chosen
[ { "from": "system", "value": "Add tests for all locals\n" }, { "from": "human", "value": "package com.alexstyl.specialdates.events.namedays.calendar.resource;\n\nimport com.alexstyl.specialdates.events.namedays.NamedayLocale;\n\nimport org.junit.Before;\nimport org.junit.Test;\n\nimport static o...
java
chosen
[ { "from": "system", "value": "Update test for exception handling changes\n" }, { "from": "human", "value": "/*\n * Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.\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": "Add type to application constants\n" }, { "from": "human", "value": "package in.co.nebulax.magpie;\n\npublic class Constants {\n\n\t// url to get data JSON\n\tpublic static String urlGet = \"http://10.0.2.2:1111/all\";\n\tpublic static String urlPost = \"http://10.0...
java
chosen
[ { "from": "system", "value": "Increase WebSocket text buffer size" }, { "from": "human", "value": "import ch.rasc.embeddedtc.EmbeddedTomcat;\n\npublic class Spring4WSStartTomcat {\n\tpublic static void main(String[] args) throws Exception {\n\t\tEmbeddedTomcat.create().startAndWait();\n\t}\n}\n"...
java
chosen
[ { "from": "system", "value": "Add support for float primitive\n\ngit-svn-id: 7e8def7d4256e953abb468098d8cb9b4faff0c63@6213 12255794-1b5b-4525-b599-b0510597569d\n" }, { "from": "human", "value": "package com.arondor.common.reflection.reflect.instantiator;\n\nimport java.util.HashMap;\nimport java...
java
chosen
[ { "from": "system", "value": "Throw meaningful exception if properties file could not be found\n" }, { "from": "human", "value": "import java.io.IOException;\nimport java.util.Properties;\n\nimport javax.xml.bind.JAXBException;\n\nimport org.junit.Before;\nimport org.junit.Test;\n\nimport uk.bl....
java
chosen
[ { "from": "system", "value": "XWIKI-15096: Introduce a framework to automate job question/answer UI\n* Add license header.\n" }, { "from": "human", "value": "package org.xwiki.job.handler.internal;\n\nimport org.xwiki.component.annotation.Role;\nimport org.xwiki.resource.ResourceReferenceHandler...
java
chosen
[ { "from": "system", "value": "Simplify random, so it can be port as easily as possible." }, { "from": "human", "value": "package org.chabu;\r\n\r\n\r\n\r\n\r\npublic\r\nclass Random {\r\n\r\n private long seed;\r\n\r\n private static final long multiplier = 0x5_DEEC_E66DL;\r\n private ...
java
chosen
[ { "from": "system", "value": "Add 3 different usage examples\n\nOne example is about the ideal soliton distribution, another uses the\nrobust soliton distribution with a fixed spike. The last one uses the\nconstant c.\n" }, { "from": "human", "value": "package com.k13n.soliton;\n\npublic class A...
java
chosen
[ { "from": "system", "value": "Make comment refer to MAX_CHAR instead of 256\n" }, { "from": "human", "value": "package org.spoofax.jsglr2.inputstack;\n\nimport org.spoofax.jsglr2.inputstack.incremental.AbstractInputStack;\n\npublic class InputStack extends AbstractInputStack {\n int currentCh...
java
chosen
[ { "from": "system", "value": "Use default annotation for optional interface method\n" }, { "from": "human", "value": "package com.journeyapps.barcodescanner;\n\nimport com.google.zxing.ResultPoint;\n\nimport java.util.List;\n\n/**\n * Callback that is notified when a barcode is scanned.\n */\npu...
java
chosen
[ { "from": "system", "value": "Fix indices with multiple key hits in same file.\n" }, { "from": "human", "value": "package com.jetbrains.python.psi.search;\n\nimport com.intellij.openapi.project.Project;\nimport com.intellij.psi.search.ProjectScope;\nimport com.intellij.psi.stubs.StubIndex;\nimpo...
java
chosen
[ { "from": "system", "value": "Update the test class and properly document it.\n" }, { "from": "human", "value": "package com.warrenstrange.googleauth;\n\n\nimport org.junit.Test;\n\n/*\n * Not really a unit test- but it shows usage\n */\npublic class GoogleAuthTest {\n\n @Test\n public voi...
java
chosen
[ { "from": "system", "value": "Add missing params to league position\n" }, { "from": "human", "value": "package no.stelar7.api.l4j8.basic.constants.types;\n\nimport java.util.Optional;\nimport java.util.stream.Stream;\n\npublic enum LeaguePositionType implements CodedEnum\n{\n /**\n * Top ...
java
chosen
[ { "from": "system", "value": "Change getStudent() to int GID\n" }, { "from": "human", "value": "package edu.oakland.production;\n\nimport edu.oakland.helper.Student;\n\npublic class SIS {\n\n\tprivate Student[] students = new Student[5];\n\tprivate int numStudents = 0;\n\n\tpublic SIS() {\n\t}\n...
java
chosen
[ { "from": "system", "value": "Add final and add salt as an UUID" }, { "from": "human", "value": "package com.sudoku.data.model;\n\n/*\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 templ...
java
chosen
[ { "from": "system", "value": "Comment out spring bean printing\n" }, { "from": "human", "value": "package com.demo;\n\nimport java.util.Arrays;\n\nimport org.springframework.boot.SpringApplication;\nimport org.springframework.boot.autoconfigure.SpringBootApplication;\nimport org.springframework....
java
chosen
[ { "from": "system", "value": "JasonLeyba: Make a test case insensitive.\n\n\n\ngit-svn-id: aa1aa1384423cb28c2b1e29129bb3a91de1d9196@11860 07704840-8298-11de-bf8c-fd130f914ac9\n" }, { "from": "human", "value": "/*\r\nCopyright 2007-2009 WebDriver committers\r\nCopyright 2007-2009 Google Inc.\r\n\...
java
chosen
[ { "from": "system", "value": "Remove deprecated Logger usage in Analytics\n\nChange-Id: I66165a76f3a8a47af8473555c6280450835a75c2\n" }, { "from": "human", "value": "/*\n * Copyright Google Inc. All Rights Reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you...
java
chosen
[ { "from": "system", "value": "Revert \"Temporarily disable rpc authorization on configserver\"\n\nThis reverts commit 0ce64af793fe21b6047af2be1b973b525b008c3a.\n" }, { "from": "human", "value": "// Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the pr...
java
chosen
[ { "from": "system", "value": "Set component callbacks to null to prevent unexpected method invocations.\n" }, { "from": "human", "value": "package eu.luminis.devcon.rest;\n\nimport org.apache.felix.dm.DependencyActivatorBase;\nimport org.apache.felix.dm.DependencyManager;\nimport org.osgi.framew...
java
chosen
[ { "from": "system", "value": "Add newline between enum constants.\n\nCo-authored-by: Lóránt Pintér <af37ce1066612ac119d4d429b57f5a7aabf0bdac@gradle.com>" }, { "from": "human", "value": "/*\n * Copyright 2017 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (...
java
chosen
[ { "from": "system", "value": "Move target MC version for mods to CCL.\n" }, { "from": "human", "value": "package codechicken.lib;\n\nimport codechicken.lib.render.CCRenderEventHandler;\nimport net.minecraftforge.fml.common.Mod;\nimport net.minecraftforge.fml.common.Mod.EventHandler;\nimport net....
java
chosen
[ { "from": "system", "value": "Add link nodes to collections and check for their presence.\nThis prevents infinite loops, as Link nodes do not follow regular\naddInto behavior.\n" }, { "from": "human", "value": "package org.nwapw.abacus.lexing.pattern;\n\nimport java.util.ArrayList;\nimport java....
java
chosen
[ { "from": "system", "value": "Indent Gist file name with '»' character" }, { "from": "human", "value": "package com.github.mobile.android.gist;\n\nimport android.app.Activity;\nimport android.view.View;\nimport android.view.ViewGroup;\nimport android.widget.ArrayAdapter;\nimport android.widget.T...
java
chosen
[ { "from": "system", "value": "Tweak IASM hook api. You can return multiple classes now.\n" }, { "from": "human", "value": "package cpw.mods.fml.common;\n\nimport org.objectweb.asm.tree.ClassNode;\n\npublic interface IASMHook {\n /**\n * Inject the {@link Mod} class node into this instance...
java
chosen
[ { "from": "system", "value": "Fix wrong block entity type" }, { "from": "human", "value": "package info.u_team.u_team_test.block;\n\nimport info.u_team.u_team_core.block.UEntityBlock;\nimport info.u_team.u_team_test.init.TestBlockEntityTypes;\nimport info.u_team.u_team_test.init.TestCreativeTabs...
java
chosen
[ { "from": "system", "value": "Revert \"PS-147 adapted image resource to new interface\"\n\nThis reverts commit 29a8ca7c1e496eb4fc473c3fb5d2123d5c211be5.\n" }, { "from": "human", "value": "/*\n * Copyright (c) 2014-2015 University of Ulm\n *\n * See the NOTICE file distributed with this work for ...
java
chosen
[ { "from": "system", "value": "Revert \"New tab settings applied\"\n\nThis reverts commit 4f469a6ac4a4186493c994a8956e9983e4274689.\n" }, { "from": "human", "value": "package leanor.java_qa.sandbox;\n\npublic class MyFirstProgram {\n\n\tpublic static void main(String[] args) {\n\n\t\tSystem.out.p...
java
chosen
[ { "from": "system", "value": "restapi: Add @Provides to watchdogs resource\n\nCurrently the watchdogs resource doesn't have a @Provides annotation. In\ntheory this shouldn't be required as the annotation is in the base\nclass. But in practice the application server reacts differently, in\nparticular if the ...
java
chosen
[ { "from": "system", "value": "Add comments to problem 12\n" }, { "from": "human", "value": "public class Problem12 {\n public static void main(String[] args) {\n int triangles = 0;\n int count;\n\n // For each natural number up to forever\n for(int i = 1; ; i++) {\...
java
chosen
[ { "from": "system", "value": "Fix URL to be HTTPS. \n\nrandom.org now redirects to HTTPS and we don't handle the redirect\ncorrectly, but if we start on HTTPS there is no redirect." }, { "from": "human", "value": "//\n// TrueRandom.java -- Java class TrueRandom\n// Project OrcSites\n//\n// $Id$\...
java
chosen
[ { "from": "system", "value": "Add send_message option to CheckRequirements\n" }, { "from": "human", "value": "package com.elmakers.mine.bukkit.action.builtin;\n\nimport java.util.ArrayList;\nimport java.util.Collection;\n\nimport org.bukkit.configuration.ConfigurationSection;\n\nimport com.elmak...
java
chosen
[ { "from": "system", "value": "Reset title of add uniform/texture fragment\n\nRequired if we're coming back from texture parameters for example.\n" }, { "from": "human", "value": "package de.markusfisch.android.shadereditor.fragment;\n\nimport de.markusfisch.android.shadereditor.adapter.UniformPa...
java
chosen
[ { "from": "system", "value": "Add name property to user\n" }, { "from": "human", "value": "package de.unistuttgart.iste.rss.bugminer.model.entities;\n\nimport java.util.ArrayList;\nimport java.util.Collection;\n\nimport javax.persistence.Entity;\nimport javax.persistence.OneToMany;\n\nimport de....
java
chosen