conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Revert \"Req-52 Alignment of file names in traceability matrix is \"right-aligned\"\"\n\nThis reverts commit 9bada791cfc5b699feaf0132ea1f302a9e006314.\n" }, { "from": "human", "value": "package de.fau.osr.gui;\n\nimport java.awt.Component;\n\nimport javax.swing.JLab...
java
chosen
[ { "from": "system", "value": "Fix a bug where multiple people looking at the same RF/t energy module in a screen would not see the same thing.\n" }, { "from": "human", "value": "package mcjty.rftools.blocks.screens.modules;\n\npublic class ScreenModuleHelper {\n private boolean showdiff = fal...
java
chosen
[ { "from": "system", "value": "APP-19035: Add a test for the get/apply policies endpoint\n" }, { "from": "human", "value": "package com.apperian.api.applications;\n\nimport static org.junit.Assume.assumeTrue;\n\nimport java.util.List;\n\nimport com.apperian.api.ApiTesting;\nimport com.apperian.a...
java
chosen
[ { "from": "system", "value": "Fix javadoc typo in id factory.\n" }, { "from": "human", "value": "// Copyright 2016 Google Inc. All rights reserved.\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// Y...
java
chosen
[ { "from": "system", "value": "Add basic event listeners and humidity logging.. does not compile as a result of missing imports\n" }, { "from": "human", "value": "package com.kolinkrewinkel.BitLimitTweaks;\n\nimport org.bukkit.plugin.Plugin;\nimport java.util.*;\n\npublic class BitLimitTweaksList...
java
chosen
[ { "from": "system", "value": "Update Multiple Strings Example for Console and Scanner prototype\n" }, { "from": "human", "value": "/**\n * @file TreeStory.java\n * @author Valery Samovich\n * @version 1\n * @date 2015/05/11\n */\n\npackage com.samovich.basics.concepts.strings.treehouse;\n\nimpor...
java
chosen
[ { "from": "system", "value": "Fix bug when cucumber not used\n" }, { "from": "human", "value": "package org.pitest.cucumber;\n\n\nimport org.pitest.junit.CompoundTestUnitFinder;\nimport org.pitest.junit.JUnitCompatibleConfiguration;\nimport org.pitest.testapi.TestGroupConfig;\nimport org.pitest....
java
chosen
[ { "from": "system", "value": "Fix filebroker response when the file wasn't found" }, { "from": "human", "value": "package fi.csc.microarray.messaging.message;\n\nimport java.net.MalformedURLException;\nimport java.net.URL;\n\nimport javax.jms.JMSException;\nimport javax.jms.MapMessage;\n\n\npubl...
java
chosen
[ { "from": "system", "value": "Reduce UPDATE_INTERVAL a bit more\n" }, { "from": "human", "value": "package org.ingrahamrobotics.robottables;\n\npublic class TimeConstants {\n\n /**\n * Time to wait from when publishing a table to sending updates for it.\n */\n public static final l...
java
chosen
[ { "from": "system", "value": "Make test cover header/footer too.\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 * You may o...
java
chosen
[ { "from": "system", "value": "Use Map parameter type rather than Hashmap.\n" }, { "from": "human", "value": "package no.cantara.ratpack.freemarker;\n\nimport java.util.HashMap;\n\npublic class FreemarkerModel extends HashMap<String, Object> {\n private final String template;\n\n public Fre...
java
chosen
[ { "from": "system", "value": "Add TODO comment for one more case we might test.\n\n\ngit-svn-id: 23fe82866435bfad55a63e1848058f1c8ce5423e@453 97720ae0-9849-0410-b17a-8398f3d9df07\n" }, { "from": "human", "value": "package net.sourceforge.mayfly.acceptance;\n\npublic class IndexTest extends SqlTe...
java
chosen
[ { "from": "system", "value": "Add english version in FooterTest\n" }, { "from": "human", "value": "package pt.fccn.sobre.arquivo.suite;\n\nimport org.junit.runner.RunWith;\nimport org.junit.runners.Suite;\nimport org.junit.runners.Suite.SuiteClasses;\n\nimport pt.fccn.sobre.arquivo.tests.CommonQ...
java
chosen
[ { "from": "system", "value": "Remove persistence type from fixtures.\n" }, { "from": "human", "value": "package com.novoda.downloadmanager;\n\nimport android.content.Context;\n\nclass FilePersistenceFixtures {\n\n private FilePersistenceResult filePersistenceResult = FilePersistenceResult.SUC...
java
chosen
[ { "from": "system", "value": "Add generic callback to listener\n" }, { "from": "human", "value": "package com.gwk.timesense.listener;\n\n\nimport com.gwk.timesense.rule.TSRule;\n\nimport java.util.ArrayList;\n\n/***\n * Listener object for TimeSense.\n *\n * @author Anselmus KA Kurniawan\n * @ve...
java
chosen
[ { "from": "system", "value": "Make TermPrinter Appendable for code sharing between two legacy methods in IStrategoTerm\n" }, { "from": "human", "value": "package org.spoofax.interpreter.terms;\n\npublic interface ITermPrinter {\n\n\tpublic String getString();\n\n\tpublic void print(String string...
java
chosen
[ { "from": "system", "value": "Remove public api for now\n" }, { "from": "human", "value": "// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\n@ExportPackage\n@PublicApi\npackage com.yahoo.config.provisioning;\n\nimport com.yahoo.api...
java
chosen
[ { "from": "system", "value": "Insert user only if not exists\n" }, { "from": "human", "value": "package awesomefb;\n\nimport com.mongodb.DB;\nimport com.mongodb.DBCollection;\nimport com.mongodb.MongoClient;\n\nimport java.net.UnknownHostException;\n\n/**\n * Created by earl on 5/25/2015.\n */\n...
java
chosen
[ { "from": "system", "value": "Throw IllegalAccessException like in RuleAnnotatedMethod\n" }, { "from": "human", "value": "/*\n * Copyright 2015-2016 the original author or authors.\n *\n * All rights reserved. This program and the accompanying materials are\n * made available under the terms of ...
java
chosen
[ { "from": "system", "value": "Add javadoc, particularly for the fact that the setName operation is optional\n\ngit-svn-id: 4b387fe5ada7764508e2ca96c335714e4c1692c6@1772 0d517254-b314-0410-acde-c619094fa49f\n" }, { "from": "human", "value": "package edu.northwestern.bioinformatics.studycalendar.d...
java
chosen
[ { "from": "system", "value": "Use the base Language.getMimeTypes implementation.\n" }, { "from": "human", "value": "/*\n * Copyright (C) 2016 Reece H. Dunn\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the Licens...
java
chosen
[ { "from": "system", "value": "Fix return type of fowarded secure livedoc handler in Sample App\n" }, { "from": "human", "value": "package org.example.shelf.controller;\n\nimport org.hildan.livedoc.core.annotations.auth.ApiAuthBasic;\nimport org.hildan.livedoc.core.annotations.auth.ApiAuthBasicUs...
java
chosen
[ { "from": "system", "value": "Fix ICBM spell (e.g. fix Fireball spell parameters)\n" }, { "from": "human", "value": "package com.elmakers.mine.bukkit.plugins.magic.spells;\n\nimport org.bukkit.entity.Fireball;\n\nimport com.elmakers.mine.bukkit.plugins.magic.Spell;\nimport com.elmakers.mine.bukk...
java
chosen
[ { "from": "system", "value": "Add missing binding for Logging\n" }, { "from": "human", "value": "/*\n * Copyright 2010 Proofpoint, Inc.\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 obtai...
java
chosen
[ { "from": "system", "value": "Create static method to build images path on ImageLoader\n" }, { "from": "human", "value": "package com.ruigoncalo.marvin.ui;\n\nimport android.content.Context;\nimport android.widget.ImageView;\n\nimport com.squareup.picasso.Picasso;\n\n/**\n * ImageLoaderManager t...
java
chosen
[ { "from": "system", "value": "Correct MIN_GAS_LIMIT for Frontier config\n" }, { "from": "human", "value": "package org.ethereum.config.blockchain;\n\nimport org.ethereum.config.Constants;\n\nimport java.math.BigInteger;\n\n/**\n * Created by Anton Nashatyrev on 25.02.2016.\n */\npublic class Fro...
java
chosen
[ { "from": "system", "value": "LUCENE-2858: Fix Javadoc warnings, still missing some text for new classes\n\ngit-svn-id: 91ee4cdcf3981427d300d1134dd1ee7af9ec73f6@1238026 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "human", "value": "package org.apache.solr.core;\n/**\n * Licensed to the ...
java
chosen
[ { "from": "system", "value": "Fix with bookmark fragment not added.\n" }, { "from": "human", "value": "package com.mapswithme.maps.bookmarks;\n\nimport android.os.Bundle;\nimport android.support.v7.widget.Toolbar;\n\nimport com.mapswithme.maps.R;\nimport com.mapswithme.maps.base.BaseMwmFragmentA...
java
chosen
[ { "from": "system", "value": "Add @ComponentScan to discover GraphQLController" }, { "from": "human", "value": "package com.github.timtebeek.graphql.jpa;\n\nimport javax.persistence.EntityManager;\n\nimport org.crygier.graphql.GraphQLExecutor;\nimport org.springframework.boot.autoconfigure.condi...
java
chosen
[ { "from": "system", "value": "Add support for scatter plots in Backend Utilities\n" }, { "from": "human", "value": "package gr.demokritos.iit.ydsapi.model;\n\nimport java.util.HashSet;\nimport java.util.Set;\n\n/**\n * accepted component types.\n *\n * @author George K. <gkiom@iit.demokritos.gr>...
java
chosen
[ { "from": "system", "value": "Improve expressiveness of proxy class memory usage test\n\nSigned-off-by: l-1sqared <927badf1468b689b17391b1b1cb5895e9b797b96@users.noreply.github.com>\n" }, { "from": "human", "value": "package com.tngtech.jgiven.impl;\n\nimport org.junit.Test;\n\nimport java.util....
java
chosen
[ { "from": "system", "value": "Use fixed alpha for low pass filter\n\nPrevious calculation was wrong. t is the low pass' filter\ntime constant (!) and dT is the event delivery rate in nano\nseconds.\n\nChose to use a constant for now (and to ignore delta time).\n" }, { "from": "human", "value": "...
java
chosen
[ { "from": "system", "value": "Make items and armor repairable\n" }, { "from": "human", "value": "package net.unladenswallow.minecraft.emeraldmaterial;\n\nimport net.minecraft.item.Item.ToolMaterial;\nimport net.minecraftforge.common.util.EnumHelper;\n\npublic class EmeraldMaterials {\n\n\tpublic...
java
chosen
[ { "from": "system", "value": "Update main class to start text interface\n" }, { "from": "human", "value": "package edu.oakland.OUSoft;\n\nimport edu.oakland.OUSoft.database.OUPeople;\n\npublic class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\tOUPeople people = new OUPeople();\n\t...
java
chosen
[ { "from": "system", "value": "Sort &debug region by count and add % display\n" }, { "from": "human", "value": "package com.tisawesomeness.minecord.debug;\n\nimport com.google.common.collect.EnumMultiset;\nimport com.google.common.collect.Multiset;\nimport lombok.NonNull;\nimport lombok.RequiredA...
java
chosen
[ { "from": "system", "value": "Add note for user about count of metadata differences\n\nthe note tells the user that although metadata differences are displayed, they are not counted in the final difference count and don't affect any test report results\n" }, { "from": "human", "value": "package ...
java
chosen
[ { "from": "system", "value": "Improve Structure view that only expandable elements have expand icons\n" }, { "from": "human", "value": "package org.asciidoc.intellij.structureView;\n\nimport com.intellij.ide.structureView.StructureViewTreeElement;\nimport com.intellij.ide.structureView.TextEdito...
java
chosen
[ { "from": "system", "value": "Implement tests for the AutoHashCode class\n" }, { "from": "human", "value": "package com.alexrnl.commons.utils.object;\n\nimport static org.junit.Assert.fail;\n\nimport org.junit.Before;\nimport org.junit.Test;\n\n/**\n * Test suite for the {@link AutoHashCode} cla...
java
chosen
[ { "from": "system", "value": "Remove unneeded \"abstract\" in method defs for interface\n" }, { "from": "human", "value": "package com.redhat.ceylon.cmr.api;\n\nimport java.io.File;\nimport java.io.IOException;\nimport java.util.Set;\n\n/** Contract for a component that can create a source archi...
java
chosen
[ { "from": "system", "value": "Handle exception and clean up during preview\n" }, { "from": "human", "value": "/**\n * (c) 2014 StreamSets, Inc. All rights reserved. May not\n * be copied, modified, or distributed in whole or part without\n * written consent of StreamSets, Inc.\n */\npackage com....
java
chosen
[ { "from": "system", "value": "Fix to ensure that temp deffered file will be deleted by JVM even if shared streams are improperly closed" }, { "from": "human", "value": "package org.subethamail.smtp.server.io;\r\n\r\nimport java.io.File;\r\nimport java.io.IOException;\r\n\r\nimport javax.mail.uti...
java
chosen
[ { "from": "system", "value": "Change default worker count to 100." }, { "from": "human", "value": "package com.amebame.triton.config;\n\npublic class TritonNettyConfiguration {\n\t\n\t// Maximum worker thread\n\tprivate int worker = 10;\n\t\n\t// Connect timeout for client (default 5sec)\n\tpriv...
java
chosen
[ { "from": "system", "value": "Extend spawn prevention to all hostile mobs (should take hostile mobs from mods into account)\n" }, { "from": "human", "value": "package com.arckenver.nations.listener;\n\n\nimport org.spongepowered.api.entity.EntityType;\nimport org.spongepowered.api.entity.EntityT...
java
chosen
[ { "from": "system", "value": "Change request mapping in spring-mvc-hello-world example\n" }, { "from": "human", "value": "package io.github.web.springmvc;\n\nimport org.springframework.stereotype.Controller;\nimport org.springframework.web.bind.annotation.RequestMapping;\nimport org.springframew...
java
chosen
[ { "from": "system", "value": "Fix a column name warning in the unit tests generated by our own validation\n" }, { "from": "human", "value": "package com.yahoo.squidb.test;\n\nimport com.yahoo.squidb.annotations.ColumnSpec;\nimport com.yahoo.squidb.annotations.PrimaryKey;\nimport com.yahoo.squidb...
java
chosen
[ { "from": "system", "value": "Make sure to close all readers\n" }, { "from": "human", "value": "package de.skuzzle.enforcer.restrictimports.parser;\n\nimport de.skuzzle.enforcer.restrictimports.io.RuntimeIOException;\n\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io....
java
chosen
[ { "from": "system", "value": "Clean up of serial port implementation.\n" }, { "from": "human", "value": "package org.bubblecloud.zigbee;\n\nimport org.bubblecloud.zigbee.network.port.SerialPortImpl;\n\n/**\n * Created by Chris on 25/02/15.\n */\npublic final class ZigBeeSerialNetworkTest extends...
java
chosen
[ { "from": "system", "value": "Add Nullable annotation to connectionMapper\n" }, { "from": "human", "value": "package ch.liip.timeforcoffee.api.mappers;\n\nimport android.location.Location;\n\nimport java.util.Date;\n\nimport ch.liip.timeforcoffee.api.models.Connection;\n\npublic class Connection...
java
chosen
[ { "from": "system", "value": "Fix my cats press on keyboard\n" }, { "from": "human", "value": "package fr.free.nrw.commons.theme;\n\nimport android.content.Intent;\nimport android.os.Bundle;\nimport android.preference.PreferenceManager;\nimport android.support.v7.app.AppCompatActivity;\nimport a...
java
chosen
[ { "from": "system", "value": "connection-settings: Add support for macro replacement in file parsing\n\nMacro replacement is limited to system properties and environment\nvariables. See https://maven.apache.org/settings.html\n\nSigned-off-by: BJ Hargrave <3d26bb3930946e3370762d769a073cece444c2d8@bjhargrave....
java
chosen
[ { "from": "system", "value": "Adjust garage door sound to only play on state changes.\n" }, { "from": "human", "value": "package com.carpentersblocks.tileentity;\n\nimport net.minecraft.network.NetworkManager;\nimport net.minecraft.network.play.server.S35PacketUpdateTileEntity;\nimport com.carpe...
java
chosen
[ { "from": "system", "value": "Fix text wrapping on Attendee report descriptive text\n" }, { "from": "human", "value": "package org.kumoricon.site.report.attendees;\n\nimport com.vaadin.navigator.View;\nimport com.vaadin.shared.ui.label.ContentMode;\nimport com.vaadin.spring.annotation.SpringView...
java
chosen
[ { "from": "system", "value": "Use the threaded version for NN visualization.\n" }, { "from": "human", "value": "package samples;\n\nimport hex.*;\n\nimport javax.swing.JFrame;\n\npublic class NeuralNetViz extends NeuralNetMnist {\n public static void main(String[] args) throws Exception {\n ...
java
chosen
[ { "from": "system", "value": "Add comments to Java test case to explain what's being tested and why\n" }, { "from": "human", "value": "import java.io.File;\nimport org.opensim.modeling.*;\n\nclass TestXsensDataReader {\n public static void test_XsensDataReader() {\n XsensDataReaderSett...
java
chosen
[ { "from": "system", "value": "Switch over to loading .js file\n\nGerrit no longer supports html plugins so we have\nto use the .js version.\n\nBug: Issue 14335\nChange-Id: Ied8a2ddcd9dcc13e341dd5a108738418631afc30\n" }, { "from": "human", "value": "// Copyright (C) 2017 The Android Open Source P...
java
chosen
[ { "from": "system", "value": "Add multiple relationships to test classes\n" }, { "from": "human", "value": "package com.jeppeman.highlite.test.table;\n\nimport com.jeppeman.highlite.PrimaryKey;\nimport com.jeppeman.highlite.SQLiteColumn;\nimport com.jeppeman.highlite.SQLiteRelationship;\nimport ...
java
chosen
[ { "from": "system", "value": "Reduce visibility (as proposed by inspection).\n" }, { "from": "human", "value": "package com.adaptionsoft.games.uglytrivia;\n\nimport org.junit.Before;\nimport org.junit.Test;\n\nimport static org.hamcrest.MatcherAssert.assertThat;\nimport static org.hamcrest.core....
java
chosen
[ { "from": "system", "value": "Fix unit test for JDK 1.3.\n\ngit-svn-id: fe6d842192ccfb78748eb71580d1ce65f168b559@701 9830eeb5-ddf4-0310-9ef7-f4b9a3e3227e\n" }, { "from": "human", "value": "package com.thoughtworks.xstream.core;\n\nimport com.thoughtworks.acceptance.AbstractAcceptanceTest;\nimpor...
java
chosen
[ { "from": "system", "value": "Move constructor after the public fields\n" }, { "from": "human", "value": "package <%=packageName%>.security;\n\n/**\n * Constants for Spring Security authorities.\n */\npublic final class AuthoritiesConstants {\n\n private AuthoritiesConstants() {\n }\n\n ...
java
chosen
[ { "from": "system", "value": "Change function to return null on error, and change arity checks.\n" }, { "from": "human", "value": "package org.nwapw.abacus.number;\n\npublic abstract class Function {\n\n public int arity;\n\n protected abstract Number applyInternal(Number...params);\n\n ...
java
chosen
[ { "from": "system", "value": "Add Javadoc to the generated private c-tor\n" }, { "from": "human", "value": "/*\n * Copyright 2020, 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 ...
java
chosen
[ { "from": "system", "value": "Change to default look and feel\n" }, { "from": "human", "value": "package com.kduda.battleships;\n\nimport javafx.application.Application;\nimport javafx.fxml.FXMLLoader;\nimport javafx.scene.Parent;\nimport javafx.scene.Scene;\nimport javafx.stage.Stage;\n\npublic...
java
chosen
[ { "from": "system", "value": "Swap scheduler method with dataSource\n" }, { "from": "human", "value": "package pl.mbaleczny.instalike.dagger.domain;\n\nimport dagger.Component;\nimport pl.mbaleczny.instalike.dagger.app.AppComponent;\nimport pl.mbaleczny.instalike.dagger.scope.DomainScope;\nimpor...
java
chosen
[ { "from": "system", "value": "Add method to find a place\n" }, { "from": "human", "value": "package br.com.nossolixo.nossolixo.services;\n\nimport java.util.List;\n\nimport br.com.nossolixo.nossolixo.models.Place;\nimport retrofit2.Call;\nimport retrofit2.http.GET;\nimport retrofit2.http.Query;\...
java
chosen
[ { "from": "system", "value": "Use the more common type name T instead of L." }, { "from": "human", "value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information...
java
chosen
[ { "from": "system", "value": "Remove trailing numbers from base.\n" }, { "from": "human", "value": "package org.metaborg.meta.nabl2.solver;\n\nimport java.io.Serializable;\nimport java.util.Map;\n\nimport com.google.common.collect.Maps;\n\npublic class Fresh implements Serializable {\n\n priv...
java
chosen
[ { "from": "system", "value": "Add newline re: comments and add whitespace before \"{\" chars\n" }, { "from": "human", "value": "package com.google.sps.data;\n\npublic class Invariants {\n private float minCredits;\n private float maxCredits;\n\n public Invariants(float minCredits, float maxCr...
java
chosen
[ { "from": "system", "value": "Rename enum, fix docs, and make accessors package private\n" }, { "from": "human", "value": "/*\n * Copyright 2015 Google Inc. All Rights Reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in comp...
java
chosen
[ { "from": "system", "value": "Fix issues found by SonarCloud\n" }, { "from": "human", "value": "package nl.homeserver.energie;\n\nimport static java.math.RoundingMode.HALF_UP;\n\nimport java.math.BigDecimal;\n\nimport lombok.Getter;\nimport lombok.RequiredArgsConstructor;\n\n@RequiredArgsConstru...
java
chosen
[ { "from": "system", "value": "Add test cases for ClassWrapper\n" }, { "from": "human", "value": "package com.spotify.jni;\n\npublic class ClassWrapperTest {\n static {\n System.loadLibrary(\"JniHelpersTest\");\n }\n}\n" }, { "from": "gpt", "value": "package com.spotify.j...
java
chosen
[ { "from": "system", "value": "Add print statement for request URL\n" }, { "from": "human", "value": "package com.johnstarich.ee461l;\n\nimport javax.servlet.ServletException;\nimport javax.servlet.http.HttpServlet;\nimport javax.servlet.http.HttpServletRequest;\nimport javax.servlet.http.HttpSer...
java
chosen
[ { "from": "system", "value": "Fix ValidatedTextFieldListCell to use the actual edited text\n" }, { "from": "human", "value": "package org.hildan.fx.components;\n\nimport java.util.function.Predicate;\n\nimport javafx.scene.control.cell.TextFieldListCell;\nimport javafx.util.StringConverter;\n\ni...
java
chosen
[ { "from": "system", "value": "Add placeholder for possible warning for frontend\n" }, { "from": "human", "value": "package org.oskari.admin.model;\n\nimport java.util.Map;\n\n/**\n * Used as ouput data model for layers in the admin UI.\n */\npublic class MapLayerAdminOutput extends MapLayer {\n\...
java
chosen
[ { "from": "system", "value": "Remove static modifier from test case.\n\nRemove static modifier from test case, which was introduced in the\nlast revision to https://reviews.apache.org/r/35842/\n\nThis fixes\n\n[ant:checkstyle]\n/home/ksweeney/workspace/aurora/src/test/java/org/apache/aurora/GuavaUtilsTest.j...
java
chosen
[ { "from": "system", "value": "Add authentication for our test user.\n" }, { "from": "human", "value": "package com.jakewharton.trakt;\n\nimport junit.framework.TestCase;\n\npublic abstract class BaseTestCase extends TestCase {\n\tprivate final ServiceManager manager = new ServiceManager();\n\t\n...
java
chosen
[ { "from": "system", "value": "Fix Trades Widget to count by isPositive rather than IRR" }, { "from": "human", "value": "package name.abuchen.portfolio.ui.views.dashboard;\n\nimport java.util.List;\n\nimport com.ibm.icu.text.MessageFormat;\n\nimport name.abuchen.portfolio.model.Dashboard.Widget;\...
java
chosen
[ { "from": "system", "value": "Mark abstract since it isn't separately runnable\n" }, { "from": "human", "value": "package edu.northwestern.bioinformatics.studycalendar.web;\n\nimport edu.northwestern.bioinformatics.studycalendar.testing.StudyCalendarTestCase;\nimport org.springframework.mock.web...
java
chosen
[ { "from": "system", "value": "Enable JSON formater for a little bit of regression testing\n" }, { "from": "human", "value": "package cucumber.examples.java.calculator;\n\nimport cucumber.api.junit.Cucumber;\nimport org.junit.runner.RunWith;\n\n@RunWith(Cucumber.class)\npublic class RunCukesTest ...
java
chosen
[ { "from": "system", "value": "Add system tests to Translate sample.\n" }, { "from": "human", "value": "/*\n Copyright 2016, Google, Inc.\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...
java
chosen
[ { "from": "system", "value": "Fix benchmark test listener comment" }, { "from": "human", "value": "/*\n * oxAuth is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text.\n *\n * Copyright (c) 2014, Gluu\n */\n\npackage org.xdi.oxauth.load.benchmark;\n\nimp...
java
chosen
[ { "from": "system", "value": "Test that .info() and .warn() set the correct event type.\n" }, { "from": "human", "value": "package org.gem.log;\n\nimport org.apache.log4j.BasicConfigurator;\nimport org.apache.log4j.Logger;\nimport org.apache.log4j.PatternLayout;\n\nimport org.junit.Test;\n\nimpo...
java
chosen
[ { "from": "system", "value": "Comment out @XmlLocation as we load it using Node acquired by XSLT." }, { "from": "human", "value": "package org.jboss.loom.migrators._ext;\n\nimport java.util.List;\nimport javax.xml.bind.annotation.XmlElement;\nimport javax.xml.bind.annotation.XmlTransient;\nimpor...
java
chosen
[ { "from": "system", "value": "Exclude the test for WELD-1086 temporarily\n" }, { "from": "human", "value": "package org.jboss.weld.tests.ejb;\n\nimport javax.ejb.Stateless;\nimport javax.inject.Inject;\n\nimport org.jboss.arquillian.container.test.api.Deployment;\nimport org.jboss.arquillian.jun...
java
chosen
[ { "from": "system", "value": "Use constrain layout in activity\n" }, { "from": "human", "value": "package com.akexorcist.myapplication;\n\nimport android.support.v7.app.AppCompatActivity;\nimport android.os.Bundle;\n\npublic class MainActivity extends AppCompatActivity {\n\n @Override\n pr...
java
chosen
[ { "from": "system", "value": "Reorder UserSettings ZK methods more sensibly\n" }, { "from": "human", "value": "package com.hubspot.singularity.data;\n\nimport org.apache.curator.framework.CuratorFramework;\nimport org.apache.curator.utils.ZKPaths;\n\nimport com.codahale.metrics.MetricRegistry;\n...
java
chosen
[ { "from": "system", "value": "Remove most-read field from aggregated content model\n\nThis is unused, since we get most-read results from MostReadClient.\n\nWe can put it back in if and when we move to using the most-read results\nfrom the aggregated response.\n\nChange-Id: I0f31d1b9a6dd772f9c997ae17bfa18df...
java
chosen
[ { "from": "system", "value": "Fix NPE on retry rule.\n" }, { "from": "human", "value": "package pt.fccn.saw.selenium;\n\nimport org.junit.rules.TestRule;\nimport org.junit.runner.Description;\nimport org.junit.runners.model.Statement;\n\nimport java.util.concurrent.atomic.AtomicInteger;\n\n/**\n...
java
chosen
[ { "from": "system", "value": "Add javadoc to DraggablePanel application class\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 wit...
java
chosen
[ { "from": "system", "value": "Fix a findbugs reported warning\n" }, { "from": "human", "value": "package com.github.cosmo0920.fluentd.flume.plugins;\nimport org.apache.flume.Event;\n\nimport org.komamitsu.fluency.Fluency;\n\nimport java.io.IOException;\nimport java.util.Map;\nimport java.util.Ha...
java
chosen
[ { "from": "system", "value": "Make the fields private and make the ctor protected (need a create\nmethod)" }, { "from": "human", "value": "package info.u_team.u_team_core.util.registry;\n\nimport java.util.function.Supplier;\n\nimport info.u_team.u_team_core.api.registry.IUBlockRegistryType;\nim...
java
chosen
[ { "from": "system", "value": "Fix compilation error in test.\n" }, { "from": "human", "value": "package alien4cloud.it.maintenance;\n\nimport static alien4cloud.it.Context.getRestClientInstance;\n\nimport org.alien4cloud.server.MaintenanceUpdateDTO;\n\nimport alien4cloud.it.Context;\nimport cucu...
java
chosen
[ { "from": "system", "value": "[HOPS-1360] Fix Tuple does not exist in removeSafeBlock" }, { "from": "human", "value": "/*\n * Copyright (C) 2015 hops.io.\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....
java
chosen
[ { "from": "system", "value": "Make default options map unmodifiable\n" }, { "from": "human", "value": "package me.coley.recaf.decompile;\n\nimport me.coley.recaf.workspace.Workspace;\n\nimport java.util.Map;\n\n/**\n * Decompiler base.\n *\n * @author Matt.\n */\npublic abstract class Decompiler...
java
chosen
[ { "from": "system", "value": "Test for commit, testing message initialization with unusual chars for id\n" }, { "from": "human", "value": "package de.fau.osr.core.vcs.base;\n\nimport org.junit.Test;\n\nimport static org.junit.Assert.*;\n\n/**\n * Created by Rajab Kaoneka on 18.05.2015.\n */\npub...
java
chosen
[ { "from": "system", "value": "Return user instead of optional object\n" }, { "from": "human", "value": "package de.altenerding.biber.pinkie.user.bounday;\n\nimport de.altenerding.biber.pinkie.user.entity.User;\n\nimport javax.inject.Inject;\nimport javax.ws.rs.FormParam;\nimport javax.ws.rs.GET;...
java
chosen
[ { "from": "system", "value": "Remove @version that uses svn revision as it makes useless differences when comparing svn with github\n\ngit-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1788653 13f79535-47bb-0310-9956-ffa450edef68\n\nFormer-commit-id: 8183e740a37445656dfa610e0f7d203e2d765f57" }, ...
java
chosen
[ { "from": "system", "value": "Tweak glasses meta provider names\n" }, { "from": "human", "value": "package openperipheral.addons.glasses;\n\nimport java.util.Map;\n\nimport net.minecraft.item.ItemStack;\nimport openperipheral.addons.api.ITerminalItem;\nimport openperipheral.api.helpers.ItemStack...
java
chosen
[ { "from": "system", "value": "Increase waiting time to pass testing on console\n" }, { "from": "human", "value": "package com.leafriend.kspay.receiver;\n\nimport static org.hamcrest.Matchers.*;\n\nimport static org.junit.Assert.*;\n\nimport org.junit.Test;\n\npublic class DaemonTest {\n\n @Te...
java
chosen
[ { "from": "system", "value": "Delete commented out configureDateViewInView. Add configureList.\n" }, { "from": "human", "value": "package com.beepscore.android.sunshine;\n\nimport android.support.v4.app.Fragment;\nimport android.os.Bundle;\nimport android.view.LayoutInflater;\nimport android.vie...
java
chosen
[ { "from": "system", "value": "PROC-592: Use set for modified tests in revision details\n" }, { "from": "human", "value": "package com.indeed.proctor.store;\n\nimport java.util.List;\nimport java.util.Objects;\n\n/**\n * Details of a single revision\n */\npublic class RevisionDetails {\n priva...
java
chosen