conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Check that GreatestCommonDivisor accepts negative first argument\n" }, { "from": "human", "value": "package se.ericthelin.fractions;\n\nimport org.junit.Test;\n\nimport static org.hamcrest.CoreMatchers.is;\nimport static org.junit.Assert.assertThat;\n\npublic class ...
java
chosen
[ { "from": "system", "value": "Add private constructor to prevent instantiation\n\n------------------------------------------------------------------------\nOn behalf of the community, the JUnit Lambda Team thanks\nmsg systems ag (http://www.msg-systems.com) for supporting\nthe JUnit crowdfunding campaign!\n...
java
chosen
[ { "from": "system", "value": "Use proper Jersey aborts instead of Shiro Exceptions\n\nThe Shiro exceptions will not return the proper HTTP statuscode, but will instead return a 500 Internal Server Error.\n\n * Replace UnauthorizedException and ForbiddenException with Jersey aborts.\n" }, { "from": ...
java
chosen
[ { "from": "system", "value": "Rename backButton id constant to backButtonId\n" }, { "from": "human", "value": "package com.reactnativenavigation.react;\n\npublic class Constants {\n public static final String BACK_BUTTON_JS_KEY = \"backButton\";\n public static final String BACK_BUTTON_ID ...
java
chosen
[ { "from": "system", "value": "Add comment about import an API key" }, { "from": "human", "value": "package studyBot;\n\nimport telegramBotAPI.*;\n\npublic class StudyBot {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tApiKey botKey = new ApiKey();\n\t...
java
chosen
[ { "from": "system", "value": "Add methods to end animation, set a interpolator\n" }, { "from": "human", "value": "package com.lvla.android.animation_progress_bar;\n\nimport android.content.Context;\nimport android.os.Build;\nimport android.util.AttributeSet;\nimport android.view.animation.Decele...
java
chosen
[ { "from": "system", "value": "Fix types mismatch at example.degree\n" }, { "from": "human", "value": "package example;\n\nimport org.neo4j.graphdb.GraphDatabaseService;\nimport org.neo4j.graphdb.Label;\nimport org.neo4j.logging.Log;\nimport org.neo4j.procedure.*;\n\nimport java.util.stream.Strea...
java
chosen
[ { "from": "system", "value": "Reduce visibility of internal method\n" }, { "from": "human", "value": "package org.springframework.social.amazon.api.impl;\n\nimport java.net.URI;\n\nimport org.springframework.social.amazon.api.Amazon;\nimport org.springframework.social.amazon.api.UserOperations;\...
java
chosen
[ { "from": "system", "value": "Use better method names in unit test of magic packet\n" }, { "from": "human", "value": "package eu.nerro.wolappla.entity;\n\nimport org.junit.Test;\n\nimport static org.hamcrest.CoreMatchers.equalTo;\nimport static org.hamcrest.CoreMatchers.is;\nimport static org.ha...
java
chosen
[ { "from": "system", "value": "Fix crash when starting new bike activity\n" }, { "from": "human", "value": "package fr.cph.chicago.listener;\n\nimport android.content.Intent;\nimport android.os.Bundle;\nimport android.view.View;\n\nimport fr.cph.chicago.App;\nimport fr.cph.chicago.R;\nimport fr.c...
java
chosen
[ { "from": "system", "value": "Remove transaction manager bean creation from the junit tests \n\nNot needed\n\nCloses #93" }, { "from": "human", "value": "package configuration;\r\n\r\nimport javax.naming.NamingException;\r\nimport javax.sql.DataSource;\r\n\r\nimport org.springframework.context.a...
java
chosen
[ { "from": "system", "value": "Fix leftover from version downgrade\n" }, { "from": "human", "value": "/*\n * Copyright 2015 Red Hat, Inc. and/or its affiliates.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the Li...
java
chosen
[ { "from": "system", "value": "Fix bug in validator summary statistics\n" }, { "from": "human", "value": "/*\n * Copyright 2015 Open mHealth\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 o...
java
chosen
[ { "from": "system", "value": "Declare sum variable in test with truth (assertion library)\n" }, { "from": "human", "value": "/*\n * (C) Copyright 2020 Boni Garcia (http://bonigarcia.github.io/)\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this fil...
java
chosen
[ { "from": "system", "value": "Fix JUnit errors - 11E, 2F\n\nDown from 13E, 2F\nFixed an error related to deleting tasks and unintentionally fixed\nanother error too.\n" }, { "from": "human", "value": "package seedu.gtd.ui;\n\nimport javafx.fxml.FXML;\nimport javafx.scene.Node;\nimport javafx.sce...
java
chosen
[ { "from": "system", "value": "Make it compile even on java 1.6\n\n\ngit-svn-id: e3ccc80b644512be24afa6caf639b2d1f1969354@573348 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "human", "value": "/**\n * \n */\npackage org.apache.camel.component.jdbc;\n\nimport java.io.PrintWriter;\nimport j...
java
chosen
[ { "from": "system", "value": "Remove unneeded name, add needed @Transaction* annotations.\nEven on the findCustomer method. EclipseLink is picky (right\n" }, { "from": "human", "value": "package session;\n\nimport javax.ejb.Stateless;\nimport javax.persistence.EntityManager;\nimport javax.persis...
java
chosen
[ { "from": "system", "value": "Make the bot shut up for a while\n" }, { "from": "human", "value": "package org.techern.rsbot.discord.events;\n\nimport org.techern.rsbot.RSBot;\nimport sx.blah.discord.api.events.IListener;\nimport sx.blah.discord.handle.impl.events.GuildCreateEvent;\nimport sx.bla...
java
chosen
[ { "from": "system", "value": "Fix power entering the relay via FE or TESLA not working right\n" }, { "from": "human", "value": "package mcjty.rftools.blocks.relay;\n\nimport net.darkhax.tesla.api.ITeslaConsumer;\nimport net.minecraft.util.EnumFacing;\nimport net.minecraftforge.energy.IEnergyStor...
java
chosen
[ { "from": "system", "value": "Allow creation of the first famous user.\n" }, { "from": "human", "value": "package edu.brown.hackathon.fifteenminutes;\n\nimport java.io.IOException;\nimport java.util.List;\n\nimport javax.servlet.http.HttpServlet;\nimport javax.servlet.http.HttpServletRequest;\ni...
java
chosen
[ { "from": "system", "value": "Change back to normal item handler, cuz dumb :/" }, { "from": "human", "value": "package info.u_team.u_team_core.menu;\n\nimport info.u_team.u_team_core.inventory.UItemStackHandler;\nimport net.minecraftforge.items.IItemHandlerModifiable;\nimport net.minecraftforge....
java
chosen
[ { "from": "system", "value": "Refactor occurrence of name to description\n" }, { "from": "human", "value": "package seedu.emeraldo.model.task;\n\nimport seedu.emeraldo.commons.exceptions.IllegalValueException;\n\n/**\n * Represents a Task's description in Emeraldo.\n * Guarantees: immutable; is ...
java
chosen
[ { "from": "system", "value": "Enable security for OPTIONS to anyone\n" }, { "from": "human", "value": "package vaccination.security;\n\nimport org.springframework.stereotype.Component;\n\nimport javax.servlet.*;\nimport javax.servlet.http.HttpServletResponse;\nimport java.io.IOException;\n\n@Com...
java
chosen
[ { "from": "system", "value": "Fix test living entity renderer" }, { "from": "human", "value": "package info.u_team.u_team_test.entity.render;\n\nimport com.mojang.blaze3d.matrix.MatrixStack;\n\nimport info.u_team.u_team_test.TestMod;\nimport net.minecraft.client.renderer.entity.EntityRendererMan...
java
chosen
[ { "from": "system", "value": "Add constructor and implement MyViewHolder constructor\n" }, { "from": "human", "value": "package pl.komunikator.komunikator;\n\nimport android.support.v7.widget.RecyclerView;\nimport android.view.View;\nimport android.view.ViewGroup;\nimport android.widget.ImageVie...
java
chosen
[ { "from": "system", "value": "Make class final and mark it as thread-safe.\n\nFuture modification or additions to this class must take thread-safety\ninto consideration.\n" }, { "from": "human", "value": "package alluxio.master.audit;\n\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\...
java
chosen
[ { "from": "system", "value": "Make sure we get the ACTION_BOOT_COMPLETE action in the broadcast receiver\n\n" }, { "from": "human", "value": "package com.instacart.library.truetime;\n\nimport android.content.BroadcastReceiver;\nimport android.content.Context;\nimport android.content.Intent;\n\np...
java
chosen
[ { "from": "system", "value": "Add missing ChannelEvent extends to leave event\n" }, { "from": "human", "value": "/*\n * * Copyright (C) 2013-2015 Matt Baxter http://kitteh.org\n *\n * Permission is hereby granted, free of charge, to any person\n * obtaining a copy of this software and associated...
java
chosen
[ { "from": "system", "value": "Add fade in animation to underlabel validator.\n" }, { "from": "human", "value": "package com.strohwitwer.awesomevalidation.validators;\n\nimport android.content.Context;\nimport android.view.ViewGroup;\nimport android.widget.EditText;\nimport android.widget.TextVie...
java
chosen
[ { "from": "system", "value": "Fix some smiley insertion issue\n" }, { "from": "human", "value": "/*\n * Copyright 2015 Ayuget\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy o...
java
chosen
[ { "from": "system", "value": "Print stacktrace when security exception thrown\n" }, { "from": "human", "value": "package org.example;\n\nimport javax.script.ScriptEngine;\nimport javax.script.ScriptEngineManager;\nimport java.security.AccessControlContext;\nimport java.security.AccessController;...
java
chosen
[ { "from": "system", "value": "Fix test env query parameter factory\n" }, { "from": "human", "value": "/*\n * Copyright 2019, 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 th...
java
chosen
[ { "from": "system", "value": "Fix to work with Hive13\n\nReviewers: jeff, JamesGreenhill\n\nReviewed By: JamesGreenhill\n\nDifferential Revision: http://phabricator.local.disqus.net/D13528\n" }, { "from": "human", "value": "package org.openx.data.jsonserde.objectinspector.primitive;\n\nimport or...
java
chosen
[ { "from": "system", "value": "Add a GADT comment from Haskell.\n" }, { "from": "human", "value": "package gadt;\n\n/**\n * Created by bibou on 12/5/14.\n */\npublic interface Visitor<C> {\n <A> App<C, A> caseIntLit (IntLit expr);\n <A> App<C, A> caseBoolLit (BoolLit expr);\n <A> App<C, ...
java
chosen
[ { "from": "system", "value": "Split out main into process(), and add shortened version in process2().\n" }, { "from": "human", "value": "package com.ticketmanor.rest.client;\n\nimport javax.ws.rs.client.Client;\nimport javax.ws.rs.client.ClientBuilder;\nimport javax.ws.rs.client.WebTarget;\nimpo...
java
chosen
[ { "from": "system", "value": "Replace mock with use of AnnotationDocMocker.\n" }, { "from": "human", "value": "package uk.ac.ebi.quickgo.annotation.service.converter;\n\nimport uk.ac.ebi.quickgo.annotation.common.document.AnnotationDocument;\nimport uk.ac.ebi.quickgo.annotation.model.Annotation;...
java
chosen
[ { "from": "system", "value": "Fix wait function blocking the main thread.\n" }, { "from": "human", "value": "package de.craften.plugins.educraft.luaapi.functions;\n\nimport de.craften.plugins.educraft.luaapi.EduCraftApiFunction;\nimport org.luaj.vm2.LuaError;\nimport org.luaj.vm2.LuaValue;\nimpo...
java
chosen
[ { "from": "system", "value": "Stop using Bouncycastle for PKCS12 keystore\n" }, { "from": "human", "value": "// Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\npackage com.yahoo.security;\n\nimport java.security.GeneralSecurity...
java
chosen
[ { "from": "system", "value": "Fix for sticking virtual keys\n" }, { "from": "human", "value": "/*\n * Copyright 2012 Kulikov Dmitriy\n * Copyright 2017 Nikita Shakarun\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance wit...
java
chosen
[ { "from": "system", "value": "Disable RRD queue feature when testing so files are actually written when we write to them. :-)\n" }, { "from": "human", "value": "package org.opennms.netmgt.dao.support;\n\nimport java.io.ByteArrayInputStream;\nimport java.io.IOException;\n\nimport org.opennms.netm...
java
chosen
[ { "from": "system", "value": "Add dumpStack for cleanupStorage in java tests.\n" }, { "from": "human", "value": "package org.hyperledger.indy.sdk.utils;\n\nimport org.apache.commons.io.FileUtils;\n\nimport java.io.File;\nimport java.io.IOException;\n\n\npublic class StorageUtils {\n\n\tprivate s...
java
chosen
[ { "from": "system", "value": "Fix of license header.\nP.S. Last two commits (fa1eb4, de784f) were reviewed by M. Grebac, M. Vojtek\n\nSigned-off-by: Marcel Valovy <ef00af7100c873d895802f1bb3b3980ada420991@oracle.com>\n" }, { "from": "human", "value": "package org.eclipse.persistence.testing.jaxb...
java
chosen
[ { "from": "system", "value": "Check if the PluginContainer contains an instance of the plugin.\n" }, { "from": "human", "value": "package io.musician101.musicianlibrary.java.minecraft.sponge.gui.anvil;\n\nimport java.util.function.BiConsumer;\nimport javax.annotation.Nonnull;\nimport org.spongep...
java
chosen
[ { "from": "system", "value": "Remove unnecessary Hadoop listLocatedStatus shim\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...
java
chosen
[ { "from": "system", "value": "Add String constants for control labels\n" }, { "from": "human", "value": "package com.codenvy.ide.ext.datasource.client.sqleditor;\n\nimport com.google.gwt.i18n.client.Constants;\n\npublic interface SqlRequestLauncherConstants extends Constants {\n\n @DefaultStr...
java
chosen
[ { "from": "system", "value": "Fix native reference so that it does not violate circularity rules between $impl and header files.\n\nPiperOrigin-RevId: 168731186\n" }, { "from": "human", "value": "/*\n * Copyright 2017 Google Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Lice...
java
chosen
[ { "from": "system", "value": "Add parameters to grenade spell.\n" }, { "from": "human", "value": "package com.elmakers.mine.bukkit.plugins.magic.spells;\n\nimport org.bukkit.Location;\nimport org.bukkit.block.Block;\nimport org.bukkit.entity.EntityType;\nimport org.bukkit.entity.TNTPrimed;\nimpo...
java
chosen
[ { "from": "system", "value": "Add a new POST endpoint to manually trigger sending message functionality\n" }, { "from": "human", "value": "package com.lichader.alfred.controller;\n\nimport com.lichader.alfred.logic.TrainlineDisruptionRetrievalLogic;\nimport com.lichader.alfred.metroapi.v3.model....
java
chosen
[ { "from": "system", "value": "Add missing conditional for spring-security\n\nWithout it, if spring security is not present, it creates a runtime exception\ndue to AuthenticationEntryPointr not being in the classpath\n" }, { "from": "human", "value": "package org.zalando.problem.spring.web.autoco...
java
chosen
[ { "from": "system", "value": "Make watcher a class rule to shutdown cluster after class fail.\n" }, { "from": "human", "value": "package org.apache.mesos.elasticsearch.systemtest.base;\n\nimport com.containersol.minimesos.MesosCluster;\nimport com.containersol.minimesos.mesos.MesosClusterConfig;...
java
chosen
[ { "from": "system", "value": "Check UnixSocketSupport os specific variants only on the relevant os'\n" }, { "from": "human", "value": "package de.gesellix.docker.client.filesocket;\n\nimport org.junit.jupiter.api.DisplayName;\nimport org.junit.jupiter.api.Test;\n\nimport static org.junit.jupiter...
java
chosen
[ { "from": "system", "value": "Fix generic type enforcement for exceptions\n" }, { "from": "human", "value": "package org.apereo.cas.configuration.model.core.authentication;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\n/**\n * This is {@link AuthenticationExceptionsProperties}.\n *\n...
java
chosen
[ { "from": "system", "value": "Support of DAO'ing of Annotations\n" }, { "from": "human", "value": "package org.orienteer.core.dao.handler;\n\nimport java.lang.invoke.MethodHandles;\nimport java.lang.reflect.Method;\nimport java.util.Optional;\n\nimport org.joor.Reflect;\nimport org.orienteer.cor...
java
chosen
[ { "from": "system", "value": "Use a text changed listener to disable and enable the positive button on the associated AlertDialog as the user enters text. Setting Limits, Part 2.\n" }, { "from": "human", "value": "package com.example.android.sunshine;\n\nimport android.content.Context;\nimport a...
java
chosen
[ { "from": "system", "value": "Put back hard-coded cell heights for better Chrome layout\n" }, { "from": "human", "value": "package org.fedorahosted.flies.webtrans.client;\n\nimport com.google.gwt.user.client.ui.DockPanel;\nimport com.google.gwt.user.client.ui.Widget;\n\npublic class AppView exte...
java
chosen
[ { "from": "system", "value": "Increase default access duration to 30 minutes.\n" }, { "from": "human", "value": "package com.topsy.jmxproxy;\n\nimport com.fasterxml.jackson.annotation.JsonProperty;\n\nimport com.yammer.dropwizard.json.JsonSnakeCase;\n\nimport javax.validation.constraints.Min;\n\...
java
chosen
[ { "from": "system", "value": "Add Directional Chain Code & Relative Chain Code\n" }, { "from": "human", "value": "package id.ac.itb.sigit.pengenalanpola;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\n/**\n * Created by Sigit on 22/09/2015.\n */\npublic class CharDef {\n private St...
java
chosen
[ { "from": "system", "value": "Fix API documentation for IsLargeCallback.\n\nFixes #497.\n" }, { "from": "human", "value": "package invtweaks.api.container;\n\nimport java.lang.annotation.ElementType;\nimport java.lang.annotation.Retention;\nimport java.lang.annotation.RetentionPolicy;\nimport ja...
java
chosen
[ { "from": "system", "value": "Fix for crash over badly formatted auth requests\n" }, { "from": "human", "value": "package io.reon.auth;\n\nimport java.util.HashMap;\n\nimport io.reon.util.Hex;\n\npublic abstract class AbstractAuth implements HttpAuth {\n\tpublic static final String REALM = \"rea...
java
chosen
[ { "from": "system", "value": "IFS-9490: Complete project setup header updated\n" }, { "from": "human", "value": "package org.innovateuk.ifs.project.internal;\n\npublic enum ProjectSetupStage {\n PROJECT_DETAILS(\"Project details\", 1),\n PROJECT_TEAM(\"Project team\", 2),\n DOCUMENTS(\"...
java
chosen
[ { "from": "system", "value": "Add method for getting random neighbor\n" }, { "from": "human", "value": "package maze;\n\nimport java.util.LinkedList;\nimport java.util.List;\n\n/**\n * @author Nick Hirakawa\n */\npublic class Cell {\n\n private int x;\n private int y;\n private boolean ...
java
chosen
[ { "from": "system", "value": "Add a test for CloneOption.getRequiredClient\n\nCheap and harmless to test" }, { "from": "human", "value": "package hudson.plugins.git.extensions.impl;\n\nimport nl.jqno.equalsverifier.EqualsVerifier;\nimport nl.jqno.equalsverifier.Warning;\nimport org.junit.Test;\n...
java
chosen
[ { "from": "system", "value": "Add default loss for RNNOutput\n\n\nFormer-commit-id: bb723e819949ca911702dff1bcae3f1507df92d5" }, { "from": "human", "value": "package org.deeplearning4j.nn.conf.layers;\n\nimport lombok.Data;\nimport lombok.EqualsAndHashCode;\nimport lombok.NoArgsConstructor;\nimp...
java
chosen
[ { "from": "system", "value": "Add some protection to default url provider\n" }, { "from": "human", "value": "package me.shoutto.sdk.internal.http;\n\nimport me.shoutto.sdk.StmBaseEntity;\n\n/**\n * Implementation of URL provider for Shout to Me API service endpoints\n */\n\npublic class DefaultU...
java
chosen
[ { "from": "system", "value": "Add ServiceTest to the Core Test Suite.\n" }, { "from": "human", "value": "package jpower.core.test;\n\nimport org.junit.runner.RunWith;\nimport org.junit.runners.Suite;\n\n@RunWith(Suite.class)\n@Suite.SuiteClasses(\n {AlphabetTest.class, ConditionTest.class...
java
chosen
[ { "from": "system", "value": "Add a constants parameter to the view factory" }, { "from": "human", "value": "/*******************************************************************************\n * Copyright (c) 2014 Codenvy, S.A.\n * All rights reserved. This program and the accompanying materials\...
java
chosen
[ { "from": "system", "value": "Add completed task file implementation\n" }, { "from": "human", "value": "\npackage forager.server;\n\nimport java.io.BufferedOutputStream;\nimport java.io.FileOutputStream;\nimport java.io.IOException;\nimport java.io.PrintWriter;\n\npublic class ListManager {\n\n ...
java
chosen
[ { "from": "system", "value": "Fix issue with PC WhiteSpace (/r/n) causing test failure." }, { "from": "human", "value": "package org.ihtsdo.buildgeneration;\n\nimport org.ihtsdo.buildcloud.entity.Package;\nimport org.ihtsdo.buildcloud.entity.helper.TestEntityFactory;\nimport org.junit.Assert;\ni...
java
chosen
[ { "from": "system", "value": "Check for Sas setup before compiling\n" }, { "from": "human", "value": "/*\n# Licensed Materials - Property of IBM\n# Copyright IBM Corp. 2018\n */\n\npackage com.ibm.streamsx.rest.test;\n\nimport java.io.IOException;\n\nimport com.ibm.streamsx.rest.Instance;\n\n/**...
java
chosen
[ { "from": "system", "value": "Return Integer instead of primitive int (why there is null in node id?!)" }, { "from": "human", "value": "/**\r\n * \r\n */\r\npackage org.openforis.collect.model.proxy;\r\n\r\nimport org.granite.messaging.amf.io.util.externalizer.annotation.ExternalizedProperty;\r\...
java
chosen
[ { "from": "system", "value": "Add hex constructor to color.\n" }, { "from": "human", "value": "package net.mostlyoriginal.api.component.graphics;\n\nimport com.artemis.Component;\n\n/**\n * Color for animations, labels.\n *\n * Optional, convention is to assume white if not set.\n *\n * @author ...
java
chosen
[ { "from": "system", "value": "Disable security for OPTIONS requests.\n" }, { "from": "human", "value": "package info.agrueneberg.fhir.configurations;\n\nimport info.agrueneberg.fhir.services.UserService;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework....
java
chosen
[ { "from": "system", "value": "Check game when player quits\n" }, { "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 com....
java
chosen
[ { "from": "system", "value": "Add start method to controller\n" }, { "from": "human", "value": "package sg.ncl.service.realization.web;\n\nimport org.springframework.http.MediaType;\nimport org.springframework.web.bind.annotation.PathVariable;\nimport org.springframework.web.bind.annotation.Requ...
java
chosen
[ { "from": "system", "value": "Remove unneeded null check, format\n" }, { "from": "human", "value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * reg...
java
chosen
[ { "from": "system", "value": "Fix possible crash when clicking DownloadManager notification.\n\nThe LocalCompilationsActivity must be launched with the NEW_TASK flag,\nsince we're calling startActivity() from outside an Activity context.\n\nBug: T172860\nChange-Id: I54a3c8a7a9ea282d94298de4e998e35d0adbabb0\...
java
chosen
[ { "from": "system", "value": "Split up the HTTP security config for readability.\n" }, { "from": "human", "value": "package hello.config;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.context.annotation.Configuration;\nimport org.springframework.se...
java
chosen
[ { "from": "system", "value": "FIx null pointer in gcm registration service\n" }, { "from": "human", "value": "package com.rehivetech.beeeon.gcm;\n\nimport android.app.IntentService;\nimport android.content.Intent;\n\nimport com.google.android.gms.gcm.GoogleCloudMessaging;\nimport com.google.andr...
java
chosen
[ { "from": "system", "value": "Clarify AfterEach execution flow (naming)\n" }, { "from": "human", "value": "package com.greghaskins.spectrum;\n\nimport com.greghaskins.spectrum.Spectrum.Block;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\nclass AfterEachBlock implements Block {\n\n p...
java
chosen
[ { "from": "system", "value": "Define a wider range for the steering wheel angle.\n" }, { "from": "human", "value": "package com.openxc.measurements;\n\nimport com.openxc.units.Degree;\nimport com.openxc.util.Range;\n\n/**\n * The SteeringWheelAngle is the angle of the steering wheel.\n *\n * The...
java
chosen
[ { "from": "system", "value": "Change language key to something more appropriate\n" }, { "from": "human", "value": "/*\n * © 2013 by Intellectual Reserve, Inc. All rights reserved.\n */\n\npackage org.sonar.plugins.xquery.api;\n\n\npublic interface XQueryConstants {\n static String XQUERY_LANG...
java
chosen
[ { "from": "system", "value": "Use MediaType instead of user-written string" }, { "from": "human", "value": "package <%=packageName%>.web.rest;\n\nimport <%=packageName%>.security.AuthoritiesConstants;\nimport <%=packageName%>.service.AuditEventService;\nimport <%=packageName%>.web.propertyeditor...
java
chosen
[ { "from": "system", "value": "Fix `unquote` strategy for strings containing just a single quote\n" }, { "from": "human", "value": "package org.metaborg.meta.lang.template.strategies;\n\nimport org.spoofax.interpreter.core.Tools;\nimport org.spoofax.interpreter.terms.IStrategoTerm;\nimport org.sp...
java
chosen
[ { "from": "system", "value": "Add Java 8 Time serialization feature for Jackson" }, { "from": "human", "value": "package com.coreoz.plume.jersey.jackson;\n\nimport javax.inject.Provider;\nimport javax.inject.Singleton;\n\nimport com.fasterxml.jackson.databind.DeserializationFeature;\nimport com....
java
chosen
[ { "from": "system", "value": "Remove unintended import of Guava classes\n" }, { "from": "human", "value": "/**\n * Copyright 2017 Pivotal Software, Inc.\n * <p>\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the Licen...
java
chosen
[ { "from": "system", "value": "Save storage in neutrals density signal\n" }, { "from": "human", "value": "package battlecode.world.signal;\n\nimport java.util.Arrays;\n\nimport battlecode.engine.signal.Signal;\nimport battlecode.world.NeutralsMap;\n\n/**\n * TODO: update docs\n *\n * @author axc\...
java
chosen
[ { "from": "system", "value": "Add support of Google Guice dependency injection at integration tests\n" }, { "from": "human", "value": "package com.centurylinkcloud.servers.service;\n\nimport com.centurylinkcloud.servers.config.ServersModule;\nimport com.centurylinkcloud.servers.domain.*;\nimport...
java
chosen
[ { "from": "system", "value": "Fix database constant after database restore.\n" }, { "from": "human", "value": "package com.google.sps.utilities;\n\npublic final class DatabaseConstants {\n public static final String INSTANCE_ID = \"step-188-instance\";\n public static final String DATABASE_ID ...
java
chosen
[ { "from": "system", "value": "Add @Keep annotation on unsubscribed field\n\nSince it's accessed via reflection, this needs to be kept un-obfuscated.\n" }, { "from": "human", "value": "package com.jakewharton.rxbinding.internal;\n\nimport android.os.Handler;\nimport android.os.Looper;\nimport jav...
java
chosen
[ { "from": "system", "value": "Add missing words to comment\n\n+review REVIEW-6446\n" }, { "from": "human", "value": "/*\n * Copyright 2016 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 ...
java
chosen
[ { "from": "system", "value": "Make sure this is set up before the test runs\n" }, { "from": "human", "value": "package com.hubspot.dropwizard.guice;\n\nimport com.hubspot.dropwizard.guice.objects.ExplicitDAO;\nimport com.hubspot.dropwizard.guice.objects.ExplicitResource;\nimport io.dropwizard.te...
java
chosen
[ { "from": "system", "value": "Test created, had to stop because of piece issues.\n" }, { "from": "human", "value": "package model;\n\nimport junit.framework.TestCase;\n\nimport java.awt.Color;\n\n\n/**\n * \n * @author bwoconnor\n *\n */\n\npublic class TestBoard extends TestCase{\n\tpublic void...
java
chosen
[ { "from": "system", "value": "Remove default constructor to ensure that consumers understand this is a remote service\n" }, { "from": "human", "value": "package wtf.password;\n\nimport retrofit.RestAdapter;\nimport retrofit.http.Field;\nimport retrofit.http.FormUrlEncoded;\nimport retrofit.http....
java
chosen
[ { "from": "system", "value": "Fix cut 'n' paster error RawDBPreset -> RawEvidenceNamedPreset. Code tidy.\n" }, { "from": "human", "value": "package uk.ac.ebi.quickgo.client.service.loader.presets.evidence;\n\nimport org.springframework.batch.item.ItemProcessor;\nimport org.springframework.batch....
java
chosen
[ { "from": "system", "value": "Remove unused imports from helloworld sample\n" }, { "from": "human", "value": "/*\n * Copyright (c) 2016, WSO2 Inc. (http://wso2.com) All Rights Reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except...
java
chosen
[ { "from": "system", "value": "Fix display panels causing unnecessary chunk rerenders\n" }, { "from": "human", "value": "package org.cyclops.integrateddynamics.capability.cable;\n\nimport org.cyclops.integrateddynamics.api.block.cable.ICableFakeable;\n\n/**\n * Default implementation of {@link IC...
java
chosen
[ { "from": "system", "value": "Add thread preconditions to ensure call is/is not on the main thread\n" }, { "from": "human", "value": "package com.nilhcem.droidcontn.utils;\n\n/**\n * Preconditions inspired by\n * https://github.com/google/guava/blob/master/guava/src/com/google/common/base/Precon...
java
chosen
[ { "from": "system", "value": "Work with account balance process\n" }, { "from": "human", "value": "package com.farm.processes;\n\nimport com.farm.database.accounts.AccountBalance;\nimport com.farm.database.accounts.AccountBalanceRepository;\nimport org.springframework.stereotype.Service;\n\nimpo...
java
chosen
[ { "from": "system", "value": "Fix to allow “_” (underline) in file path name\n" }, { "from": "human", "value": "package seedu.taskmanager.logic.parser;\n\nimport java.util.regex.Pattern;\n\nimport seedu.taskmanager.logic.parser.ArgumentTokenizer.Prefix;\n\n/**\n * Contains Command Line Interface...
java
chosen
[ { "from": "system", "value": "Remove String name from basic block" }, { "from": "human", "value": "package info.u_team.u_team_test.block;\n\nimport info.u_team.u_team_core.block.UBlock;\nimport info.u_team.u_team_test.init.TestItemGroups;\nimport net.minecraft.block.SoundType;\nimport net.minecr...
java
chosen