conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Add check for disabled format button at start of test\n" }, { "from": "human", "value": "package org.wordpress.aztec.demo;\n\nimport android.support.test.espresso.ViewInteraction;\nimport android.support.test.rule.ActivityTestRule;\nimport android.support.test.runne...
java
chosen
[ { "from": "system", "value": "OAK-1847: Use SegmentMK for testing where possible\n\ngit-svn-id: 67138be12999c61558c3dd34328380c8e4523e73@1596603 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "human", "value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * c...
java
chosen
[ { "from": "system", "value": "Set back button for the organizer details activity\n" }, { "from": "human", "value": "package com.worldspotlightapp.android.ui;\n\nimport android.os.Bundle;\nimport android.util.Log;\n\nimport com.worldspotlightapp.android.R;\nimport com.worldspotlightapp.android.mo...
java
chosen
[ { "from": "system", "value": "Fix NPE when exporting JDO using maven plugin\n" }, { "from": "human", "value": "/*\n * Copyright 2012, Mysema Ltd\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...
java
chosen
[ { "from": "system", "value": "Revert \"api key deleted from the list of required parameters\"\n" }, { "from": "human", "value": "package org.atlasapi.application.auth;\n\nimport static com.google.common.base.Preconditions.checkNotNull;\n\nimport javax.servlet.http.HttpServletRequest;\n\nimport o...
java
chosen
[ { "from": "system", "value": "Add 'watch property descriptor' action\n\nReview URL: https://chromiumcodereview.appspot.com/9391018\n\ngit-svn-id: 1dc80909446f7a7ee3e21dd4d1b8517df524e9ee@927 fc8a088e-31da-11de-8fef-1f5ae417a2df\n" }, { "from": "human", "value": "// Copyright (c) 2009 The Chromiu...
java
chosen
[ { "from": "system", "value": "Correct componets path to scan\n" }, { "from": "human", "value": "package com.farm.environment.configuration;\n\nimport org.springframework.boot.autoconfigure.EnableAutoConfiguration;\nimport org.springframework.context.annotation.ComponentScan;\nimport org.springfr...
java
chosen
[ { "from": "system", "value": "Switch to a mocking way of testing.\n" }, { "from": "human", "value": "package com.codahale.metrics.jvm;\n\nimport com.codahale.metrics.Gauge;\nimport org.junit.Test;\n\nimport java.lang.management.ClassLoadingMXBean;\n\nimport static org.fest.assertions.api.Asserti...
java
chosen
[ { "from": "system", "value": "Use message in library compilation errors\n" }, { "from": "human", "value": "package com.github.chrisblutz.trinity.libraries.compiling;\n\n/**\n * @author Christopher Lutz\n */\npublic class CompileException extends RuntimeException {\n \n public CompileExcept...
java
chosen
[ { "from": "system", "value": "Add description to the help message.\n" }, { "from": "human", "value": "package musician101.common.java.minecraft.sponge.command;\n\nimport org.spongepowered.api.text.Text.Literal;\nimport org.spongepowered.api.text.Texts;\nimport org.spongepowered.api.command.Comma...
java
chosen
[ { "from": "system", "value": "Add the withReducer variants of the Applier functions.\n" }, { "from": "human", "value": "package org.nwapw.abacus.function;\n\nimport org.nwapw.abacus.number.NumberInterface;\nimport org.nwapw.abacus.tree.TreeNode;\n\n/**\n * A function that operates on parse tree ...
java
chosen
[ { "from": "system", "value": "Fix bug in BeanExtractor (DynaBeanItem was not recognized)\n" }, { "from": "human", "value": "package org.tylproject.vaadin.addon.utils;\n\nimport com.vaadin.addon.jpacontainer.EntityItem;\nimport com.vaadin.data.Item;\nimport com.vaadin.data.util.BeanItem;\nimport ...
java
chosen
[ { "from": "system", "value": "Increase datagrid icon column width\n" }, { "from": "human", "value": "/*\n * Copyright 2016 Crown Copyright\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 ob...
java
chosen
[ { "from": "system", "value": "Make mutation trigger guarantee a probability\n\n" }, { "from": "human", "value": "package com.agricraft.agricore.templates;\n\nimport com.agricraft.agricore.core.AgriCore;\nimport com.google.gson.JsonObject;\n\npublic class AgriMutationTrigger {\n private final ...
java
chosen
[ { "from": "system", "value": "[KFE-203] Remove references to deleted field\n" }, { "from": "human", "value": "package com.kushkipagos.android.example;\n\nimport android.os.Bundle;\nimport android.support.v7.app.AppCompatActivity;\nimport android.view.View;\nimport android.widget.Button;\nimport ...
java
chosen
[ { "from": "system", "value": "Implement on success checked validation\n" }, { "from": "human", "value": "package br.com.bloder.blormlib.validation.validations;\n\nimport android.widget.CheckBox;\n\nimport br.com.bloder.blormlib.validation.Validate;\nimport br.com.bloder.blormlib.validation.Valid...
java
chosen
[ { "from": "system", "value": "Set new material for balls\n" }, { "from": "human", "value": "package pylos.view;\n\nimport pylos.Pylos;\nimport pylos.model.Ball;\n\nimport com.jme3.material.Material;\nimport com.jme3.math.ColorRGBA;\nimport com.jme3.scene.Geometry;\nimport com.jme3.scene.shape.Sp...
java
chosen
[ { "from": "system", "value": "Add paratemers to mediaSession factory method\n" }, { "from": "human", "value": "/*\n * Kurento Commons MSControl: Simplified Media Control API for the Java Platform based on jsr309\n * Copyright (C) 2012 Tikal Technologies\n *\n * This program is free software: yo...
java
chosen
[ { "from": "system", "value": "Fix broken replay url in game entity\n" }, { "from": "human", "value": "package com.faforever.api.data.listeners;\n\nimport com.faforever.api.config.FafApiProperties;\nimport com.faforever.api.data.domain.Game;\nimport org.apache.commons.lang3.StringEscapeUtils;\nim...
java
chosen
[ { "from": "system", "value": "Add solution to problem 78\n" }, { "from": "human", "value": "/*\n * Copyright (C) 2014 Pedro Vicente Gómez Sánchez.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * Yo...
java
chosen
[ { "from": "system", "value": "Send callback custom field after Growth Push initialized instance\n" }, { "from": "human", "value": "package com.growthpush.cocos2dx;\n\nimport org.cocos2dx.lib.Cocos2dxGLSurfaceView;\n\nimport com.growthpush.bridge.ExternalFrameworkBridge;\n\npublic class Cocos2dxB...
java
chosen
[ { "from": "system", "value": "[core] Make all methods in CodeSytemRequests static" }, { "from": "human", "value": "/*\n * Copyright 2011-2016 B2i Healthcare Pte Ltd, http://b2i.sg\n * \n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in c...
java
chosen
[ { "from": "system", "value": "Support for itemId with spaces.\n" }, { "from": "human", "value": "package com.github.athi.athifx.gui.menu.item;\n\n\nimport com.github.athi.athifx.gui.font_awesome.FontAwesome;\nimport com.github.athi.athifx.gui.menu.group.Group;\n\n/**\n * Created by Athi\n */\npu...
java
chosen
[ { "from": "system", "value": "Change EnumSet to Set for better polymorphism.\n" }, { "from": "human", "value": "package language;\n\nimport java.util.EnumSet;\n\n/**\n * {@code Difficulty} is an enumeration of properties which define how objects \n * of {@link Word} are formatted and also provid...
java
chosen
[ { "from": "system", "value": "Add sleep effect via event" }, { "from": "human", "value": "package me.rkfg.xmpp.bot.plugins.game.event;\n\nimport me.rkfg.xmpp.bot.plugins.game.IGameObject;\nimport me.rkfg.xmpp.bot.plugins.game.effect.IAttachDetachEffect;\nimport me.rkfg.xmpp.bot.plugins.game.effe...
java
chosen
[ { "from": "system", "value": "Call prefix in a notification\n" }, { "from": "human", "value": "package ru.spbau.bluecharm;\n\nimport android.content.BroadcastReceiver;\nimport android.content.Context;\nimport android.content.Intent;\nimport android.os.Bundle;\nimport android.os.IBinder;\nimport ...
java
chosen
[ { "from": "system", "value": "Add JavaDoc to authorization methods\n" }, { "from": "human", "value": "package com.creatubbles.api.repository;\n\nimport android.support.annotation.NonNull;\nimport android.support.annotation.Nullable;\n\nimport com.creatubbles.api.model.AuthToken;\nimport com.crea...
java
chosen
[ { "from": "system", "value": "Implement feedback from rhys' comments\n" }, { "from": "human", "value": "package com.cloudant.sync.query;\n\n/**\n * Created by tomblench on 28/09/2016.\n */\n\npublic class FieldSort {\n\n public final String field;\n public final Direction sort;\n\n publ...
java
chosen
[ { "from": "system", "value": "Replace with crud repository interface\n" }, { "from": "human", "value": "package org.synyx.urlaubsverwaltung.person.basedata;\n\nimport org.springframework.data.jpa.repository.JpaRepository;\n\ninterface PersonBasedataRepository extends JpaRepository<PersonBasedata...
java
chosen
[ { "from": "system", "value": "Fix spoofed data parser init" }, { "from": "human", "value": "package protocolsupport.protocol.utils.spoofedata;\n\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.function.Function;\n\nimport com.destroystokyo.paper.event.player.PlayerHandshak...
java
chosen
[ { "from": "system", "value": "ROO-17: Create Spring Web Flow add-on \n\n" }, { "from": "human", "value": "package org.springframework.roo.addon.web.flow;\n\nimport org.springframework.roo.shell.CliAvailabilityIndicator;\nimport org.springframework.roo.shell.CliCommand;\nimport org.springframewor...
java
chosen
[ { "from": "system", "value": "Add route list and xmlResponse\n" }, { "from": "human", "value": "package fi.metacity.klmobi;\n\nimport com.googlecode.androidannotations.annotations.EApplication;\n\nimport android.app.Application;\n\n@EApplication\npublic class MHApp extends Application {\n\t\n\tp...
java
chosen
[ { "from": "system", "value": "Include a space after a return if an expression is used.\n" }, { "from": "human", "value": "/*\n * JBoss, Home of Professional Open Source.\n * Copyright 2014 Red Hat, Inc., and individual contributors\n * as indicated by the @author tags.\n *\n * Licensed under the...
java
chosen
[ { "from": "system", "value": "Fix call to old flowlet API in example\n" }, { "from": "human", "value": "package DependencyRandomNumber;\n\nimport java.util.Random;\n\nimport com.continuuity.api.flow.flowlet.SourceFlowlet;\nimport com.continuuity.api.flow.flowlet.OutputCollector;\nimport com.cont...
java
chosen
[ { "from": "system", "value": "Add left padding to item decoration\n" }, { "from": "human", "value": "package me.echeung.cdflabs.utils;\n\nimport android.content.Context;\nimport android.graphics.Canvas;\nimport android.graphics.drawable.Drawable;\nimport android.support.v4.content.ContextCompat;...
java
chosen
[ { "from": "system", "value": "Allow Program To Prompt For File If Not Given One\n" }, { "from": "human", "value": "/*\n * Title: COP3404Project3Code\n * Author: Matthew Boyette\n * Date: 3/27/2015\n * \n * This program serves as the entry-point for Projects 3 & 4.\n * See SICXE_AssemblerProgram....
java
chosen
[ { "from": "system", "value": "Change authentication header of restapi service to prevent login popups\n" }, { "from": "human", "value": "package ubic.gemma.web.services.rest.util;\n\nimport org.codehaus.jackson.map.ObjectMapper;\nimport org.springframework.security.core.AuthenticationException;\...
java
chosen
[ { "from": "system", "value": "Add junit test for foment unit retrieve fail." }, { "from": "human", "value": "package cl.fatman.capital.fund;\n\nimport static org.junit.Assert.*;\nimport org.junit.After;\nimport org.junit.Before;\nimport org.junit.Test;\n\nimport java.util.List;\n\npublic class C...
java
chosen
[ { "from": "system", "value": "Remove the 'fts' function from registration in the dialect\n" }, { "from": "human", "value": "package com.voodoodyne.postguice;\n\nimport org.hibernate.dialect.PostgreSQL95Dialect;\n\nimport java.sql.Types;\n\n/**\n * Apparently hibernate's 9.5 dialect doesn't suppo...
java
chosen
[ { "from": "system", "value": "Add argument checks to pass tests\n" }, { "from": "human", "value": "package com.grayben.riskExtractor.headingMarker.nominator;\n\nimport java.util.List;\n\nimport com.grayben.riskExtractor.headingMarker.UnmodifiableText;\n\npublic class NominatedText\n\t\textends U...
java
chosen
[ { "from": "system", "value": "Test just for sake of completeness....\n" }, { "from": "human", "value": "package de.fesere.hypermedia.cj.model.transformer;\n\nimport de.fesere.hypermedia.cj.model.Item;\nimport org.junit.Test;\n\n//For sake of consistency\npublic class TwoWayTransformerTest {\n ...
java
chosen
[ { "from": "system", "value": "Add support for Objective filters\n" }, { "from": "human", "value": "package in.twizmwaz.cardinal.filter.type;\n\nimport in.twizmwaz.cardinal.filter.Filter;\nimport in.twizmwaz.cardinal.filter.FilterState;\nimport org.bukkit.Bukkit;\n\nimport java.util.logging.Level...
java
chosen
[ { "from": "system", "value": "Raise timetout because of race conditions.\n" }, { "from": "human", "value": "/****************************************************************************\n * Copyright (C) 2019 ecsec GmbH.\n * All rights reserved.\n * Contact: ecsec GmbH (info@ecsec.de)\n *\n * Th...
java
chosen
[ { "from": "system", "value": "Fix exclusions for command queuer\n" }, { "from": "human", "value": "package net.buycraft.plugin.execution.strategy;\n\nimport lombok.Value;\nimport net.buycraft.plugin.IBuycraftPlatform;\nimport net.buycraft.plugin.data.QueuedCommand;\nimport net.buycraft.plugin.da...
java
chosen
[ { "from": "system", "value": "Fix a exception in the case that an Alert first get exposed, an\nexception is thrown due to the size of the Alert value elements is\nempty." }, { "from": "human", "value": "package com.linkedin.helix.monitoring.mbeans;\n\n\nimport com.linkedin.helix.alerts.AlertValu...
java
chosen
[ { "from": "system", "value": "Create CSAuthProvider to integrate with Clearspace. JM-1224\n\ngit-svn-id: 2e83ce7f183c9abd424edb3952fab2cdab7acd7f@9941 b35dd754-fafc-0310-a699-88a17e54d16e\n" }, { "from": "human", "value": "/**\n * $Revision$\n * $Date$\n *\n * Copyright (C) 2006 Jive Software. A...
java
chosen
[ { "from": "system", "value": "Move to spec inspired test names (truth always wins.)" }, { "from": "human", "value": "package com.github.mttkay.memento;\n\nimport static com.google.testing.compile.JavaSourceSubjectFactory.javaSource;\n\nimport com.google.testing.compile.CompilationFailureExceptio...
java
chosen
[ { "from": "system", "value": "Use variadic args in main method\n" }, { "from": "human", "value": "/*\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\n * FOR A PARTICULAR PURPOSE ...
java
chosen
[ { "from": "system", "value": "Fix comments count in topic detail\n" }, { "from": "human", "value": "package org.mazhuang.guanggoo.data.entity;\n\nimport java.util.Map;\n\n/**\n *\n * @author mazhuang\n * @date 2017/9/17\n */\n\npublic class TopicDetail {\n\n private Favorite favorite;\n pr...
java
chosen
[ { "from": "system", "value": "Simplify log messages in bioentities/buildIndex/status\n" }, { "from": "human", "value": "package uk.ac.ebi.atlas.model.resource;\n\nimport java.io.IOException;\nimport java.io.Reader;\nimport java.nio.charset.StandardCharsets;\nimport java.nio.file.Files;\nimport j...
java
chosen
[ { "from": "system", "value": "Add some stuff to the block tags provider\n" }, { "from": "human", "value": "package info.u_team.u_team_test.data.provider;\n\nimport info.u_team.u_team_core.data.*;\n\npublic class TestBlockTagsProvider extends CommonBlockTagsProvider {\n\t\n\tpublic TestBlockTagsP...
java
chosen
[ { "from": "system", "value": "Implement hashCode() corresponding to the equals() implementation\n" }, { "from": "human", "value": "package org.bouncycastle.crypto.params;\n\npublic class GOST3410ValidationParameters\n{\n private int x0;\n private int c;\n private long x0L;\n private ...
java
chosen
[ { "from": "system", "value": "Remove methods type(String text) and typeKeys(String text) from WebLocator\n" }, { "from": "human", "value": "package com.sdl.selenium.web.button;\n\nimport com.sdl.selenium.web.WebLocator;\nimport org.apache.log4j.Logger;\n\npublic class SimpleUploadButton extends ...
java
chosen
[ { "from": "system", "value": "Integrate recommender into item loader.\n" }, { "from": "human", "value": "\npackage com.uwetrottmann.shopr.loaders;\n\nimport android.content.Context;\n\nimport com.uwetrottmann.shopr.model.Item;\nimport com.uwetrottmann.shopr.utils.Lists;\n\nimport java.math.BigDe...
java
chosen
[ { "from": "system", "value": "Add to the mess and more\n" }, { "from": "human", "value": "package kennewickpractice.com.kegetapumpkin.model;\n\nimport kennewickpractice.com.kegetapumpkin.R;\n\n/**\n * Created by ken.wagner on 11/5/2015.\n */\npublic class Story {\n private Page[] mPages;\n\n ...
java
chosen
[ { "from": "system", "value": "Add a wait for component render to webdriver tests\n" }, { "from": "human", "value": "package org.auraframework.perf.test.components;\n\nimport java.net.URLEncoder;\nimport java.util.logging.Logger;\n\nimport org.auraframework.def.ComponentDef;\nimport org.auraframe...
java
chosen
[ { "from": "system", "value": "Fix in JS Engine test.\n" }, { "from": "human", "value": "package com.axiastudio.zoefx.core.script;\n\nimport com.axiastudio.zoefx.core.Utilities;\nimport org.junit.BeforeClass;\nimport org.junit.Test;\n\n/**\n * User: tiziano\n * Date: 14/04/14\n * Time: 16:48\n */...
java
chosen
[ { "from": "system", "value": "Remove override of createJSModules (RN 0.47 compatibility)\n\nThe current release for React Native 0.47 has removed the createJSModules method in ReactPackage. Therefore any overrides of this method will need to be removed from the library, or this will cause a compilation erro...
java
chosen
[ { "from": "system", "value": "Add generic type to fields" }, { "from": "human", "value": "package com.kiselev.reflection.ui.field;\r\n\r\nimport com.kiselev.reflection.ui.annotation.AnnotationsUtils;\r\nimport com.kiselev.reflection.ui.indent.IndentUtils;\r\nimport com.kiselev.reflection.ui.modi...
java
chosen
[ { "from": "system", "value": "Disable Bitmap.recycle() as it may cause strange crashes." }, { "from": "human", "value": "package com.vaguehope.onosendai.images;\n\nimport android.graphics.Bitmap;\nimport android.support.v4.util.LruCache;\n\npublic class BitmapCache<K> extends LruCache<K, Bitmap>...
java
chosen
[ { "from": "system", "value": "Add convenience methods to get a client config.\n" }, { "from": "human", "value": "package com.afrozaar.wordpress.wpapi.v2.util;\n\nimport org.yaml.snakeyaml.Yaml;\n\nimport java.io.InputStream;\n\npublic class ClientConfig {\n\n Wordpress wordpress;\n boolean...
java
chosen
[ { "from": "system", "value": "Add notes and thumbs up into focus" }, { "from": "human", "value": "package com.coding4people.mosquitoreport.api.models;\n\nimport com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBAttribute;\nimport com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBHashKe...
java
chosen
[ { "from": "system", "value": "Correct attribute name (spelling mistake)\n\nOPEN - task 32: Add \"Create Item\" functionalities \nhttp://github.com/DevOpsDistilled/OpERP/issues/issue/32" }, { "from": "human", "value": "package devopsdistilled.operp.server.data.entity.items;\n\nimport java.io.Seri...
java
chosen
[ { "from": "system", "value": "Put back in the serialization context" }, { "from": "human", "value": "package org.menacheri.convert.flex;\n\nimport flex.messaging.io.SerializationContext;\n\n/**\n * This class provides threadlocal contexts on demand to the serializer and\n * deserializer class. T...
java
chosen
[ { "from": "system", "value": "Add operate output redirect to screen" }, { "from": "human", "value": "package org.pinae.ndb.common;\n\nimport java.io.IOException;\nimport java.util.HashMap;\nimport java.util.Map;\n\n/**\n * ndb输出重定向\n * \n * ndb执行结果重定向输出: 文件/网络\n * \n * @author Huiyugeng\n *\n *\...
java
chosen
[ { "from": "system", "value": "Stop vibrations in default vibration example\n" }, { "from": "human", "value": "package io.myweb.examples;\n\nimport android.content.Context;\nimport android.os.Vibrator;\n\nimport org.json.JSONArray;\nimport org.json.JSONException;\n\nimport io.myweb.api.GET;\nimpo...
java
chosen
[ { "from": "system", "value": "Change teleop to drive with the new Gamepad class.\n" }, { "from": "human", "value": "/*----------------------------------------------------------------------------*/\n/* Copyright (c) FIRST 2008. All Rights Reserved. */\n/* Open Source S...
java
chosen
[ { "from": "system", "value": "Add simplified text button constructor\n" }, { "from": "human", "value": "package org.cyclops.cyclopscore.client.gui.component.button;\n\nimport net.minecraft.client.Minecraft;\nimport net.minecraft.client.gui.FontRenderer;\n\n/**\n * An button with text.\n * @autho...
java
chosen
[ { "from": "system", "value": "Use `getNotification` rather than `build` for ICS.\n" }, { "from": "human", "value": "package com.jakewharton.notificationcompat2;\n\nimport android.app.Notification;\n\nclass NotificationCompatICS implements NotificationCompat2.NotificationCompatImpl {\n static ...
java
chosen
[ { "from": "system", "value": "Test that player is can leave penalty box when lucky, but ignored because of defect\n" }, { "from": "human", "value": "package com.adaptionsoft.games.uglytrivia;\n\nimport org.junit.Ignore;\nimport org.junit.Test;\n\nimport static org.mockito.Mockito.*;\n\npublic cl...
java
chosen
[ { "from": "system", "value": "Revert \"Oak apple logic now works on dark oak leaves only\"\n\nThis reverts commit fc3cb3d98aa025ccfc256fa7c1dff2b2d26c7216.\n" }, { "from": "human", "value": "package com.witchworks.common.core.event;\n\nimport com.witchworks.common.item.ModItems;\nimport net.mine...
java
chosen
[ { "from": "system", "value": "Add some more useful constants\n\n" }, { "from": "human", "value": "package com.infinityraider.infinitylib.reference;\n\npublic class Constants {\n /**\n * The number of units in a block.\n */\n public static final int WHOLE = 16;\n\n /**\n * Th...
java
chosen
[ { "from": "system", "value": "Remove unused field and accessor.\n" }, { "from": "human", "value": "package com.github.cstroe.svndumpgui.internal.writer;\n\nimport com.github.cstroe.svndumpgui.api.SvnDumpWriter;\nimport com.github.cstroe.svndumpgui.internal.AbstractSvnDumpConsumer;\n\nimport java...
java
chosen
[ { "from": "system", "value": "Fix reading wrong keys from config form response\n" }, { "from": "human", "value": "package com.speedledger.measure.jenkins;\n\nimport hudson.Plugin;\nimport hudson.model.Descriptor;\nimport hudson.model.Items;\nimport net.sf.json.JSONObject;\nimport org.kohsuke.sta...
java
chosen
[ { "from": "system", "value": "Improve javadoc of mail notification enum\n" }, { "from": "human", "value": "package org.synyx.urlaubsverwaltung.person;\n\n/**\n * Describes which kind of mail notifications a person can have.\n */\npublic enum MailNotification {\n\n NOTIFICATION_USER,\n NOTI...
java
chosen
[ { "from": "system", "value": "Remove commented code in NotEnoughPermutationEx\n" }, { "from": "human", "value": "package com.hida.model;\n\nimport org.springframework.http.HttpStatus;\nimport org.springframework.web.bind.annotation.ResponseStatus;\n\n/**\n * An exception used to display how many...
java
chosen
[ { "from": "system", "value": "Rename the WebBridge payload property: date -> time\n" }, { "from": "human", "value": "package plugins.webbridge.api;\n\nimport logbook.api.APIListenerSpi;\nimport logbook.proxy.RequestMetaData;\nimport logbook.proxy.ResponseMetaData;\nimport okhttp3.MediaType;\nimp...
java
chosen
[ { "from": "system", "value": "Fix for / by 0 in /tps\n\nSigned-off-by: Ross Allan <ca2c77e14df1e7ee673215c1ef658354e220f471@gmail.com>\n" }, { "from": "human", "value": "package me.nallar.tickthreading.minecraft.commands;\r\n\r\nimport java.util.List;\r\n\r\nimport me.nallar.tickthreading.minecr...
java
chosen
[ { "from": "system", "value": "Add target_above option to Cover action\n" }, { "from": "human", "value": "package com.elmakers.mine.bukkit.action.builtin;\n\nimport com.elmakers.mine.bukkit.action.CompoundAction;\nimport com.elmakers.mine.bukkit.api.action.CastContext;\nimport com.elmakers.mine.b...
java
chosen
[ { "from": "system", "value": "Use HTTPS for JCenter repository" }, { "from": "human", "value": "package com.kantenkugel.discordbot.versioncheck;\n\nimport org.apache.commons.lang3.tuple.Pair;\n\nimport java.util.Arrays;\nimport java.util.Collections;\nimport java.util.List;\n\npublic enum RepoTy...
java
chosen
[ { "from": "system", "value": "Return zero length when value is null\n" }, { "from": "human", "value": "package io.parsingdata.metal.expression.value.reference;\n\nimport static io.parsingdata.metal.Util.checkNotNull;\n\nimport io.parsingdata.metal.data.Environment;\nimport io.parsingdata.metal.d...
java
chosen
[ { "from": "system", "value": "Add delete by date retrieved on method to queued workflow repository\n" }, { "from": "human", "value": "package org.commonwl.view.workflow;\n\nimport org.commonwl.view.git.GitDetails;\nimport org.springframework.data.mongodb.repository.Query;\nimport org.springframe...
java
chosen
[ { "from": "system", "value": "Make the clusters member final\n" }, { "from": "human", "value": "package me.prettyprint.cassandra.service;\n\nimport java.util.HashMap;\nimport java.util.Map;\n\nimport me.prettyprint.cassandra.service.CassandraHostConfigurator;\n\npublic class ClusterFactory {\n\n...
java
chosen
[ { "from": "system", "value": "Add a property that allows the web server to start automatically during initialization\n" }, { "from": "human", "value": "package com.aspectran.with.jetty;\n\nimport com.aspectran.core.component.bean.ablility.DisposableBean;\nimport com.aspectran.core.component.bean...
java
chosen
[ { "from": "system", "value": "Add comment field and some transient helpers\n" }, { "from": "human", "value": "/*\n * Copyright 2014 Eric F. Savage, code@efsavage.com\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": "Use base because everyone can use the template view\n" }, { "from": "human", "value": "package edu.northwestern.bioinformatics.studycalendar.web.template;\n\nimport edu.northwestern.bioinformatics.studycalendar.web.ReturnSingleObjectController;\nimport edu.northwest...
java
chosen
[ { "from": "system", "value": "Enable hardware acceleration for all WebView\n\n- LEARNER-7224\n" }, { "from": "human", "value": "package org.edx.mobile.view.custom;\n\nimport android.annotation.SuppressLint;\nimport android.content.Context;\nimport android.util.AttributeSet;\nimport android.webki...
java
chosen
[ { "from": "system", "value": "Update Android retrieve conversations media example\n" }, { "from": "human", "value": "if (message.hasMedia()) {\n Message.Media media = message.getMedia();\n\n String sid = media.getSid();\n String type = media.getType();\n String fn = media.getFileName...
java
chosen
[ { "from": "system", "value": "Use local variable instead of member variable\n" }, { "from": "human", "value": "package fi.nls.oskari.routing;\n\nimport com.ibatis.common.resources.Resources;\nimport com.ibatis.sqlmap.client.SqlMapClient;\nimport com.ibatis.sqlmap.client.SqlMapClientBuilder;\n\ni...
java
chosen
[ { "from": "system", "value": "Add iteration to log message\n" }, { "from": "human", "value": "// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\npackage com.yahoo.vespa.config.server.maintenance;\n\nimport com.yahoo.log.LogLevel;\nim...
java
chosen
[ { "from": "system", "value": "Switch logging from stdout to stderr" }, { "from": "human", "value": "package io.github.lukehutch.fastclasspathscanner.utils;\n\nimport io.github.lukehutch.fastclasspathscanner.FastClasspathScanner;\n\npublic class Log {\n public static void log(final String msg)...
java
chosen
[ { "from": "system", "value": "Use constants if the variable can't be modified\n" }, { "from": "human", "value": "package org.fluentd.logger.sender;\n\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\n\nimport java.util.Deque;\nimport java.util.LinkedList;\n\n/**\n * Calculate exponenti...
java
chosen
[ { "from": "system", "value": "fix(view): Remove wrapping element from flying data\n" }, { "from": "human", "value": "package valandur.webapi.serialize.view.data;\r\n\r\nimport org.spongepowered.api.data.manipulator.mutable.entity.FlyingData;\r\nimport valandur.webapi.api.serialize.BaseView;\r\n\...
java
chosen
[ { "from": "system", "value": "Add comment explaining keyword campaign class.\n" }, { "from": "human", "value": "// Copyright 2019 Google LLC\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may ...
java
chosen
[ { "from": "system", "value": "Add wait for page load condition when user signs in\n" }, { "from": "human", "value": "package com.epam.rft.atsy.cucumber.util;\n\nimport static com.epam.rft.atsy.cucumber.util.DriverProvider.getDriver;\n\nimport org.openqa.selenium.By;\n\nimport cucumber.api.java.e...
java
chosen
[ { "from": "system", "value": "Add new constant missed in previous commit\n\ngit-svn-id: 79cef5a5a257cc9dbe40a45ac190115b4780e2d0@1589992 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "human", "value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contribut...
java
chosen
[ { "from": "system", "value": "Fix maxCount defaultting to 100\n" }, { "from": "human", "value": "package fi.mml.portti.service.search;\n\nimport fi.nls.oskari.search.channel.SearchableChannel;\nimport fi.nls.oskari.service.OskariComponent;\nimport fi.nls.oskari.util.ConversionHelper;\nimport fi....
java
chosen
[ { "from": "system", "value": "Hide debug logs by default\n" }, { "from": "human", "value": "package behave.tools;\n\nimport java.time.LocalDateTime;\nimport java.time.format.DateTimeFormatter;\n\n//TODO use some proper logging framework\npublic class Log {\n private static DateTimeFormatter d...
java
chosen
[ { "from": "system", "value": "Add TODO, sign bytes may be words\n" }, { "from": "human", "value": "package me.hugmanrique.pokedata.sprites.signs;\n\nimport me.hugmanrique.pokedata.sprites.Sprite;\nimport me.hugmanrique.pokedata.utils.ROM;\n\n/**\n * @author Hugmanrique\n * @since 02/05/2017\n */...
java
chosen
[ { "from": "system", "value": "Return a set of codecs instead of a collection to strip the duplicates.\n\nEach codec is in the map twice, once for name and once for\ncontent-type. We don't need both copies returned.\n" }, { "from": "human", "value": "/*\n * Copyright 2014 Red Hat, Inc, and indivi...
java
chosen