conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Create lambda instead of IF in GroupCreationTest\n" }, { "from": "human", "value": "package ru.sfwt.mt.addressbook.tests;\n\nimport org.testng.Assert;\nimport org.testng.annotations.Test;\nimport ru.sfwt.mt.addressbook.model.GroupData;\n\nimport java.util.HashSet;\n...
java
chosen
[ { "from": "system", "value": "Change River release version to v2.1.2 from v2.1.1\n\ngit-svn-id: b87389f8af10e2f9bc729f716b5c5bae596a3c2c@896411 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "human", "value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more co...
java
chosen
[ { "from": "system", "value": "Add getters for visitor/visit properties." }, { "from": "human", "value": "package com.woopra.java.sdk;\n\nimport java.util.HashMap;\n\npublic class WoopraVisitor {\n\t\n\tpublic static String EMAIL = \"email\";\n\tpublic static String UNIQUE_ID = \"uniqueId\";\n\t\...
java
chosen
[ { "from": "system", "value": "Fix minor typo: possessive \"its\"" }, { "from": "human", "value": "/*\n * Copyright (c) 2012-2016 The ANTLR Project. All rights reserved.\n * Use of this file is governed by the BSD 3-clause license that\n * can be found in the LICENSE.txt file in the project root....
java
chosen
[ { "from": "system", "value": "Make main frame visible by other components.\n" }, { "from": "human", "value": "package com.github.aureliano.edocs.app;\n\nimport javax.swing.SwingUtilities;\n\nimport com.github.aureliano.edocs.app.gui.AppFrame;\n\npublic class EdocsApp {\n\n\tprivate AppFrame fram...
java
chosen
[ { "from": "system", "value": "Throw WrongOrientationException (resolving compile-time issues)\n" }, { "from": "human", "value": "package edu.agh.tunev.model.cellular.agent;\n\nimport java.awt.geom.Point2D;\n\nimport edu.agh.tunev.model.AbstractPerson;\n\npublic final class Person extends Abstrac...
java
chosen
[ { "from": "system", "value": "Add Stop, Touch, Rfid, UltraSound types for UnitMessages\n" }, { "from": "human", "value": "package lejos.mf.common;\n\npublic enum UnitMessageType {\n\tCommand, Debug\n}\n" }, { "from": "gpt", "value": "package lejos.mf.common;\n\npublic enum UnitMessag...
java
chosen
[ { "from": "system", "value": "Use -1 for hashCode, since 0 has the same effect as \"no object\" in typical cases (e.g. sequences/sets)\n" }, { "from": "human", "value": "package org.bouncycastle.asn1;\n\nimport java.io.IOException;\n\n/**\n * A NULL object.\n */\npublic abstract class ASN1Null\n...
java
chosen
[ { "from": "system", "value": "Add value to key-value store\n" }, { "from": "human", "value": "package benjamin.groehbiel.ch;\n\nimport org.junit.After;\nimport org.junit.Assert;\nimport org.junit.Test;\nimport org.junit.runner.RunWith;\nimport org.springframework.beans.factory.annotation.Autowir...
java
chosen
[ { "from": "system", "value": "Add formula comment to lin. decay NW class.\n" }, { "from": "human", "value": "package cs437.som.neighborhood;\n\nimport cs437.som.NeightborhoodWidthFunction;\n\n/**\n * Neighborhood width strategy for self-organizing maps that decays the width\n * linearly as the i...
java
chosen
[ { "from": "system", "value": "Implement the mask aliquot section.\n\n\nSVN-Revision: 7274\n" }, { "from": "human", "value": "package gov.nih.nci.calab.service.workflow;\n\n/**\n * Generalizes Mask functionality for masking Aliquot, File, etc. \n * @author doswellj\n * @param strType Type of Mas...
java
chosen
[ { "from": "system", "value": "Define app link as static" }, { "from": "human", "value": "package com.example.tests;\n\nimport org.testng.annotations.AfterTest;\nimport org.testng.annotations.BeforeTest;\nimport com.example.fw.ApplicationManager;\n\npublic class TestBase {\n\t\n\tpublic Applicati...
java
chosen
[ { "from": "system", "value": "Clear Ram storage between tests\n" }, { "from": "human", "value": "package peergos.server.tests;\n\nimport org.junit.runner.*;\nimport org.junit.runners.*;\n\nimport java.util.*;\n\n@RunWith(Parameterized.class)\npublic class RamUserTests extends UserTests {\n\n ...
java
chosen
[ { "from": "system", "value": "Use ApOkHttpUrlLoader for all images\n\nProbably got broken during my Glide update.\nWhen using append or prepend, Glide uses the next one in the chain if ApOkHttpUrlLoader blocks\n" }, { "from": "human", "value": "package de.danoeh.antennapod.core.glide;\n\nimport ...
java
chosen
[ { "from": "system", "value": "Update code to match current generation format\n" }, { "from": "human", "value": "import javax.annotation.Generated;\nimport javax.annotation.Nonnull;\nimport org.realityforge.arez.ArezContext;\nimport org.realityforge.arez.Observable;\n\n@Generated( \"org.realityfo...
java
chosen
[ { "from": "system", "value": "Enlarge background icon from 10 to 20.\n" }, { "from": "human", "value": "package com.fruit.launcher.theme;\n\nimport android.net.Uri;\n\npublic class ThemeUtils {\n\n\tpublic final static String THEME_MANAGER_PACKAGE = \"com.fruit.thememanager\";\n\tpublic final st...
java
chosen
[ { "from": "system", "value": "Add outline for splash screen usage\n\nProgress on #6\n\nSigned-off-by: Eli Skeggs <9586c285e7eef0e86d45536fe84e916128618137@wpi.edu>\n" }, { "from": "human", "value": "import java.awt.event.WindowAdapter;\nimport java.awt.event.WindowEvent;\nimport javax.swing.JFra...
java
chosen
[ { "from": "system", "value": "Fix postgres table exists command\n" }, { "from": "human", "value": "package peergos.server.sql;\n\npublic class PostgresCommands implements SqlSupplier {\n\n @Override\n public String listTablesCommand() {\n return \"SELECT tablename FROM pg_catalog.pg...
java
chosen
[ { "from": "system", "value": "Fix recovery iterations quota checking\n" }, { "from": "human", "value": "package org.spoofax.jsglr2.recovery;\n\npublic class RecoveryJob {\n\n public int backtrackChoicePointIndex;\n public int offset;\n public int iteration;\n final int iterationsQuot...
java
chosen
[ { "from": "system", "value": "Use utf8 to encode URLs.\n\nPR: 8961\nSubmitted by: Matthew Faull\n\n\ngit-svn-id: https://svn.apache.org/repos/asf/jakarta/jmeter/trunk@323764 13f79535-47bb-0310-9956-ffa450edef68\n\nFormer-commit-id: f20f9b66b4af229a29de308fe78c6306bbf79768" }, { "from": "human", ...
java
chosen
[ { "from": "system", "value": "Disable autoconfiguration for basic unit tests\n" }, { "from": "human", "value": "package org.marsik.elshelves.backend.test.config;\n\nimport org.marsik.elshelves.backend.app.spring.NoAutoscan;\nimport org.springframework.boot.autoconfigure.EnableAutoConfiguration;\...
java
chosen
[ { "from": "system", "value": "Remove stray debug log statement.\n" }, { "from": "human", "value": "package com.openxc.remote.sources;\n\nimport org.json.JSONException;\nimport org.json.JSONObject;\n\nimport android.util.Log;\n\npublic abstract class JsonVehicleDataSource\n extends Abstrac...
java
chosen
[ { "from": "system", "value": "Add assignment expression bytecode generation\n\nOnly reference types currently supported (ASTORE)\n" }, { "from": "human", "value": "package me.august.lumen.compile.parser.ast.expr;\n\nimport me.august.lumen.compile.scanner.Op;\n\npublic class AssignmentExpr extend...
java
chosen
[ { "from": "system", "value": "Add `createJSModules()` to be compatible with latest React." }, { "from": "human", "value": "package com.rnfs;\n\nimport java.util.*;\n\nimport com.facebook.react.ReactPackage;\nimport com.facebook.react.bridge.NativeModule;\nimport com.facebook.react.bridge.JavaScr...
java
chosen
[ { "from": "system", "value": "Add main method for testing.\n\n\nThis used to be revision r1678.\n" }, { "from": "human", "value": "package ijx.plugin;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\nimport org.openide.util.lookup.ServiceProvider;\n\nimport imagej2.plugin.PluginEntry;\n...
java
chosen
[ { "from": "system", "value": "Fix the name of the logger\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 exponential delay for reconnec...
java
chosen
[ { "from": "system", "value": "Adjust test for new float/double printing routines.\n" }, { "from": "human", "value": "import java.io.*;\n\nclass BadFloatTest {\n public static void main(String[] args)\n throws FileNotFoundException, IOException {\n float x = 1.2345f;\n ...
java
chosen
[ { "from": "system", "value": "Add conditions in upload method\n" }, { "from": "human", "value": "package com.example.julian.locationservice;\n\nimport android.content.Context;\n\nimport com.meedamian.info.BasicData;\n\nimport org.json.JSONException;\nimport org.json.JSONObject;\n\npublic class D...
java
chosen
[ { "from": "system", "value": "Add String Constant for Recipe key in Bundle\n" }, { "from": "human", "value": "package com.example.profbola.bakingtime.ui;\n\nimport android.os.Bundle;\nimport android.support.design.widget.FloatingActionButton;\nimport android.support.design.widget.Snackbar;\nimpo...
java
chosen
[ { "from": "system", "value": "Fix crash with OC compat\n" }, { "from": "human", "value": "package techreborn.compat.opencomputers;\n\nimport li.cil.oc.api.Driver;\nimport net.minecraftforge.fml.common.event.FMLInitializationEvent;\nimport net.minecraftforge.fml.common.event.FMLPostInitialization...
java
chosen
[ { "from": "system", "value": "KULRICE-9047: Disable term lookup smoke test to avoid any server impact till fixed.\n" }, { "from": "human", "value": "/**\n * Copyright 2005-2011 The Kuali Foundation\n *\n * Licensed under the Educational Community License, Version 2.0 (the \"License\");\n * you m...
java
chosen
[ { "from": "system", "value": "Add @Override annotation for toString()\n" }, { "from": "human", "value": "package uk.ac.ebi.quickgo.geneproduct.common;\n\n\n/**\n * An enumeration of the possible states of proteome membership a gene product can have.\n * @author Tony Wardell\n * Date: 06/03/2018\...
java
chosen
[ { "from": "system", "value": "Use sentinel value to represent default name\n" }, { "from": "human", "value": "package org.realityforge.arez.annotations;\n\nimport java.lang.annotation.ElementType;\nimport java.lang.annotation.Retention;\nimport java.lang.annotation.RetentionPolicy;\nimport java....
java
chosen
[ { "from": "system", "value": "Make config GUI see-through when in a world" }, { "from": "human", "value": "package com.tterrag.blur.config;\n\nimport com.tterrag.blur.Blur;\n\nimport net.minecraft.client.gui.GuiScreen;\nimport net.minecraftforge.common.config.ConfigElement;\nimport net.minecraft...
java
chosen
[ { "from": "system", "value": "Store binding as local variable\n" }, { "from": "human", "value": "package com.chaos.databinding.activities;\n\nimport android.databinding.DataBindingUtil;\nimport android.support.v7.app.AppCompatActivity;\nimport android.os.Bundle;\n\nimport com.chaos.databinding.R...
java
chosen
[ { "from": "system", "value": "Fix event name not being added in constructor." }, { "from": "human", "value": "package com.woopra;\n\nimport java.util.Properties;\n/**\n * @author Woopra on 1/26/2013\n * \n */\npublic class WoopraEvent {\n\tprivate String eventName = null;\n\tprivate Properties p...
java
chosen
[ { "from": "system", "value": "Make entity dependency transient, telling serializers that repository shouldn't be serialized.\n" }, { "from": "human", "value": "package org.odindelrio.dddaopentitybehaviour.domain;\n\nimport org.odindelrio.dddaopentitybehaviour.domain.exception.FollowerCantFollowH...
java
chosen
[ { "from": "system", "value": "[API] Fix wrong content-type in case of exception (should be application/json).\n" }, { "from": "human", "value": "package org.talend.dataprep.exception;\n\nimport java.io.StringWriter;\n\nimport javax.servlet.http.HttpServletResponse;\n\nimport org.springframework....
java
chosen
[ { "from": "system", "value": "Use Case 25: Delete Photo\n\nException when no photo to delete and no exception when there is a photo\nto delete\n" }, { "from": "human", "value": "package ca.ualberta.cs.swapmyride;\n\nimport android.test.ActivityInstrumentationTestCase2;\n\n/**\n * Created by Conn...
java
chosen
[ { "from": "system", "value": "Add test to construct FileUtilities\n" }, { "from": "human", "value": "package com.sanctionco.thunder.util;\n\nimport com.google.common.io.Resources;\n\nimport java.io.IOException;\n\nimport org.junit.jupiter.api.Test;\nimport org.mockito.MockedStatic;\n\nimport sta...
java
chosen
[ { "from": "system", "value": "Use constant and fix formatting issues\n" }, { "from": "human", "value": "package com.bridge;\n\nimport org.apache.cordova.CordovaPlugin;\nimport org.apache.cordova.CallbackContext;\n\nimport org.json.JSONArray;\nimport org.json.JSONException;\nimport org.json.JSONO...
java
chosen
[ { "from": "system", "value": "Use query profile when querying for results documents\n" }, { "from": "human", "value": "/*\n * Copyright 2014-2015 Hewlett-Packard Development Company, L.P.\n * Licensed under the MIT License (the \"License\"); you may not use this file except in compliance with th...
java
chosen
[ { "from": "system", "value": "Add StatementDescriptor for card payins" }, { "from": "human", "value": "package com.mangopay.entities.subentities;\n\nimport com.mangopay.core.Dto;\nimport com.mangopay.core.interfaces.IPayInPaymentDetails;\nimport com.mangopay.core.enumerations.CardType;\n\n/**\n ...
java
chosen
[ { "from": "system", "value": "Add Retrofit to licenses list." }, { "from": "human", "value": "package com.levibostian.pantrypirate.model;\n\nimport com.levibostian.pantrypirate.vo.License;\n\nimport java.util.ArrayList;\n\npublic class LicensesModel {\n private ArrayList<License> mLicenses;\n...
java
chosen
[ { "from": "system", "value": "Edit Splash add Handler post delay to MainActivity\n" }, { "from": "human", "value": "package com.naijab.nextzytimeline.ui;\n\nimport android.os.Bundle;\nimport com.naijab.nextzytimeline.base.BaseMvpActivity;\nimport com.naijab.nextzytimeline.ui.SplashScreenActivity...
java
chosen
[ { "from": "system", "value": "Add private constructor to utility class\n" }, { "from": "human", "value": "package com.kickstarter.factories;\n\nimport android.support.annotation.NonNull;\n\nimport com.kickstarter.models.Project;\nimport com.kickstarter.services.apiresponses.DiscoverEnvelope;\n\n...
java
chosen
[ { "from": "system", "value": "Make thread bean field final\n" }, { "from": "human", "value": "package testhelper;\n\nimport com.sun.management.ThreadMXBean;\n\nimport java.lang.management.ManagementFactory;\n\npublic class PerformanceUtils {\n\n private static ThreadMXBean THREAD_MX_BEAN;\n\n ...
java
chosen
[ { "from": "system", "value": "Set cryopod layer to \"Objective\"\n" }, { "from": "human", "value": "package com.ezardlabs.lostsector.missions.objectives;\n\nimport com.ezardlabs.dethsquare.Level;\nimport com.ezardlabs.dethsquare.LevelManager;\nimport com.ezardlabs.dethsquare.Vector2;\nimport com...
java
chosen
[ { "from": "system", "value": "Use lines list as stdout\n" }, { "from": "human", "value": "package com.github.blindpirate.gogradle.task.go;\n\nimport java.io.File;\nimport java.util.List;\n\npublic class PackageTestContext {\n private String packagePath;\n private List<File> testFiles;\n ...
java
chosen
[ { "from": "system", "value": "Revert \"Remove list-parsing code from schema registry config parser\"\n\nThis reverts commit 46dfcdbc53671c78f37a74fa23edf2471bd9405a.\n" }, { "from": "human", "value": "package com.homeadvisor.kafdrop.config;\n\nimport org.springframework.boot.context.properties.C...
java
chosen
[ { "from": "system", "value": "Refactor a new method for context definition i.e. mapping between templates and data structures\n" }, { "from": "human", "value": "package ie.ucd.clops.documentation;\n\nimport java.io.Writer;\n\nimport org.apache.velocity.Template;\nimport org.apache.velocity.Veloc...
java
chosen
[ { "from": "system", "value": "Add examples with multi-byte message ids.\n" }, { "from": "human", "value": "package net.openhft.chronicle.bytes;\n\nimport org.junit.Test;\n\nimport java.io.IOException;\n\nimport static junit.framework.TestCase.assertEquals;\n\npublic class BytesTextMethodTesterTe...
java
chosen
[ { "from": "system", "value": "Fix failing test after affy update\n" }, { "from": "human", "value": "/*\n * The gemma-core project\n * \n * Copyright (c) 2018 University of British Columbia\n * \n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file ex...
java
chosen
[ { "from": "system", "value": "Add class-level Javadoc for sagan.projects.nav.*\n" }, { "from": "human", "value": "package sagan.support.nav;\n\nimport java.lang.annotation.Retention;\nimport java.lang.annotation.RetentionPolicy;\n\n@Retention(RetentionPolicy.RUNTIME)\npublic @interface NavSectio...
java
chosen
[ { "from": "system", "value": "Change the IDE and update CommandFactoy.java\n\nUpdate some comments\nAdded modificator private for local fields\n" }, { "from": "human", "value": "package com.github.vovas11.courses.command;\r\n\r\nimport java.util.HashMap;\r\nimport java.util.Map;\r\n\r\nimport ja...
java
chosen
[ { "from": "system", "value": "Destroy only when held item exists\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.container.jdisc.messagebus;\n\nimport com.yahoo.component.Abstra...
java
chosen
[ { "from": "system", "value": "Use toDouble() method to convert values.\n" }, { "from": "human", "value": "/*\n * Copyright (C) 2013 Conductor, 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 * Y...
java
chosen
[ { "from": "system", "value": "Add list of deletes to manifest.\n" }, { "from": "human", "value": "package com.github.davidcarboni.thetrain.json.request;\n\nimport java.util.List;\n\npublic class Manifest {\n public List<FileCopy> filesToCopy;\n}\n" }, { "from": "gpt", "value": "pa...
java
chosen
[ { "from": "system", "value": "Solve problem 714 (not really)\n" }, { "from": "human", "value": "package leetcode;\n\n/**\n * https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/\n */\npublic class Problem714 {\n public int maxProfit(int[] prices, int fee) {\n ...
java
chosen
[ { "from": "system", "value": "Add test for Trim() on an empty ByteArray.\n" }, { "from": "human", "value": "package com.heartbeat.common.array;\n\nimport org.junit.Test;\n\n\npublic class ByteArrayTest {\n\n @Test\n public void testTrim() throws Exception {\n byte[] original = {1, 2...
java
chosen
[ { "from": "system", "value": "Replace Activity by Application as it what it needs\n" }, { "from": "human", "value": "package com.novoda.downloadmanager;\n\nimport android.content.ContentResolver;\nimport android.content.Context;\n\nimport com.novoda.downloadmanager.lib.DownloadManager;\n\n/**\n ...
java
chosen
[ { "from": "system", "value": "Update javadocs to more accurately reflect intent\n" }, { "from": "human", "value": "/**\n * This package contains the core spy events used in an Arez system.\n * While the {@link org.realityforge.arez} package and this package are\n * highly inter-dependent they ar...
java
chosen
[ { "from": "system", "value": "Support custom messages in failed assumptions\n" }, { "from": "human", "value": "package org.junit.gen5.api;\n\nimport org.opentestalliance.TestAbortedException;\n\n/**\n * @author Sam Brannen\n * @since 5.0\n */\npublic final class Assumptions {\n\n\tprivate Assump...
java
chosen
[ { "from": "system", "value": "Add extra method to deal with differing file-name formats\n" }, { "from": "human", "value": "package net.openhft.chronicle.queue.impl.single;\n\nimport net.openhft.chronicle.core.Jvm;\n\nimport java.io.File;\n\npublic enum PrecreatedFiles {\n ;\n\n private sta...
java
chosen
[ { "from": "system", "value": "Store lower-case string because conversion takes time.\n" }, { "from": "human", "value": "package de.gurkenlabs.litiengine.entities;\r\n\r\npublic enum PropState {\r\n INTACT,\r\n DAMAGED,\r\n DESTROYED;\r\n\r\n public String spriteString() {\r\n return this....
java
chosen
[ { "from": "system", "value": "Change static field to unstatic" }, { "from": "human", "value": "package ge.ifg.crypto.frequency;\r\n\r\nimport ge.ifg.crypto.security.TestCases;\r\n\r\nimport java.util.HashMap;\r\n\r\npublic class Frequency extends TestCases {\r\n\r\n\tprivate static HashMap<Strin...
java
chosen
[ { "from": "system", "value": "Return empty array rather than null\n\ngit-svn-id: 52ad764cdf1b64a6e804f4e5ad13917d3c4b2253@330255 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "human", "value": "//$Header$\n/*\n * Copyright 2005 The Apache Software Foundation.\n *\n * Licensed under the Ap...
java
chosen
[ { "from": "human", "value": "Create contructor and main method.\n" }, { "from": "gpt", "value": "/*\n * To change this template, choose Tools | Templates\n * and open the template in the editor.\n */\npackage cz.vutbr.fit.pdb;\n\nimport java.awt.Dimension;\nimport java.awt.Toolkit;\nimport javax...
java
chosen
[ { "from": "system", "value": "Test case for Mapper injection (fail)\n" }, { "from": "human", "value": "/*\n * Copyright 2013 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with ...
java
chosen
[ { "from": "system", "value": "Use the same FileSystem as the outputDir.\n\nOtherwise `java.nio.file.ProviderMismatchException` can be thrown if it differs from `FileSystems.getDefault()` (which was implicitly used by `Paths.get()`)." }, { "from": "human", "value": "// Copyright © 2013-2015 Esko ...
java
chosen
[ { "from": "system", "value": "Fix SDK check methods NPE.\n\nSummary: Ref T9503\n\nTest Plan: done\n\nReviewers: fenghonghua, durunnan, xiewenliang\n\nReviewed By: durunnan\n\nManiphest Tasks: T9503\n\nDifferential Revision: https://phabricator.d.xiaomi.net/D63687\n" }, { "from": "human", "value"...
java
chosen
[ { "from": "system", "value": "Fix >> to create a new file\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 org.a...
java
chosen
[ { "from": "system", "value": "Add qol access to printStackTrace\n" }, { "from": "human", "value": "package me.coley.recaf.parse.assembly.exception;\n\n/**\n * Wrapper for assembler exceptions with the lines that caused them.\n *\n * @author Matt\n */\npublic class ExceptionWrapper {\n\tpublic fi...
java
chosen
[ { "from": "system", "value": "Correct statuscode for when requested pid is not existent\n" }, { "from": "human", "value": "package se.christianjensen.maintenance.resources;\n\nimport io.dropwizard.auth.Auth;\nimport se.christianjensen.maintenance.representation.config.UserConfiguration;\nimport ...
java
chosen
[ { "from": "system", "value": "Remove redundant overridden test in ClickHouse smoke test\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 th...
java
chosen
[ { "from": "system", "value": "Update tests to use immersive mode\n" }, { "from": "human", "value": "/*******************************************************************************\r\n * Copyright 2011 See AUTHORS file.\r\n * \r\n * Licensed under the Apache License, Version 2.0 (the \"License\"...
java
chosen
[ { "from": "system", "value": "Synchronize featured news item image and title display\n" }, { "from": "human", "value": "package com.github.ayltai.newspaper.app.view;\n\nimport java.util.concurrent.TimeUnit;\n\nimport android.support.annotation.NonNull;\n\nimport com.github.ayltai.newspaper.Const...
java
chosen
[ { "from": "system", "value": "Use JavaCompiler in tests isntead of manually finding \"javac\"\n" }, { "from": "human", "value": "package org.springframework.ldap.odm.test.utils;\r\n\r\nimport java.io.File;\r\nimport java.io.InputStream;\r\nimport java.io.InputStreamReader;\r\n\r\npublic class Co...
java
chosen
[ { "from": "system", "value": "Format Java files with google-java-format\n\nChange-Id: I97416eb0fbcadea7733900eea59e22000df3764b\n" }, { "from": "human", "value": "// Copyright (C) 2016 The Android Open Source Project\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// y...
java
chosen
[ { "from": "system", "value": "Fix length problem in test.\n" }, { "from": "human", "value": "package net.simplestorage.storage.impl.indexed;\n\nimport org.junit.Before;\nimport org.junit.Test;\n\nimport java.io.File;\nimport java.io.FileNotFoundException;\nimport java.net.URISyntaxException;\n\n...
java
chosen
[ { "from": "system", "value": "Add constants used to transport \"channel\" update messages, inclduing the new filter\n" }, { "from": "human", "value": "package org.realityforge.replicant.shared.json;\n\n/**\n * Constants used to build up JSON payload transmitted to the client.\n */\npublic interf...
java
chosen
[ { "from": "system", "value": "Increase soft keyboard launch delay\n" }, { "from": "human", "value": "package co.smartreceipts.android.widget;\n\nimport android.content.Context;\nimport android.content.res.Configuration;\nimport android.view.View;\nimport android.view.inputmethod.InputMethodManag...
java
chosen
[ { "from": "system", "value": "Fix allExitsReturnTrue() always returning true itself.\n" }, { "from": "human", "value": "package uk.ac.cam.gpe21.droidssl.analysis.util;\n\nimport soot.RefType;\nimport soot.Unit;\nimport soot.jimple.IntConstant;\nimport soot.jimple.ReturnStmt;\nimport soot.toolkit...
java
chosen
[ { "from": "system", "value": "Copy createRelative() from ComponentName since it is not available on older SDKs.\n" }, { "from": "human", "value": "package org.robolectric.util;\n\nimport android.content.ComponentName;\nimport android.content.ContentProvider;\nimport android.content.Context;\nimp...
java
chosen
[ { "from": "system", "value": "Add javadoc to study segment dao.\n" }, { "from": "human", "value": "package edu.northwestern.bioinformatics.studycalendar.dao;\r\n\r\nimport edu.northwestern.bioinformatics.studycalendar.domain.StudySite;\r\n\r\n\r\n/**\r\n * @author Padmaja Vedula\r\n */\r\npublic...
java
chosen
[ { "from": "system", "value": "Fix test failure: call Init.init() in static block.\n\n\ngit-svn-id: c5bb8e2b15dc16fd1aec0e5653c08870c9ddec7d@557627 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "human", "value": "package org.apache.xml.security.test.algorithms;\n\nimport java.security.KeyP...
java
chosen
[ { "from": "system", "value": "Remove superfluous space in division expressions\n" }, { "from": "human", "value": "package mrtim.sasscompiler.expr;\n\npublic class DivisionExpression extends AbstractExpressionValue {\n\n private final ExpressionValue numerator;\n private final ExpressionVal...
java
chosen
[ { "from": "system", "value": "Convert Stop Shooting to Instant Command\n" }, { "from": "human", "value": "package org.usfirst.frc4909.STEAMWORKS.commands;\n\nimport org.usfirst.frc4909.STEAMWORKS.Robot;\n\nimport edu.wpi.first.wpilibj.command.Command;\n\npublic class StopShooting extends Command...
java
chosen
[ { "from": "system", "value": "Add reflection to problem execution\n" }, { "from": "human", "value": "package com.ejpm.euler;\n\nimport com.ejpm.euler.problem.impl.Problem1;\nimport com.ejpm.euler.problem.impl.Problem2;\nimport com.ejpm.euler.problem.impl.Problem3;\nimport org.slf4j.Logger;\nimpo...
java
chosen
[ { "from": "system", "value": "Make constant list immutable and uppercase name.\n" }, { "from": "human", "value": "// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\npackage com.yahoo.vespa.model.container.http;\n\nimport com.google....
java
chosen
[ { "from": "system", "value": "Add toString to dump profile attributes" }, { "from": "human", "value": "/*\n * oxTrust 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.gluu.oxauth.client.auth.user...
java
chosen
[ { "from": "system", "value": "Change method name clearAllObserver() -> clearObservers()\n" }, { "from": "human", "value": "package com.ns.greg.library.fasthook.observer;\n\n/**\n * @author Gregory\n * @since 2016/5/20\n */\npublic interface BaseSubject<T> {\n\n /**\n * Observe the task status...
java
chosen
[ { "from": "system", "value": "Update thymeleaf.cache-ttl documentation to indicate the default value\n" }, { "from": "human", "value": "package com.peterphi.std.guice.web.rest.templating.thymeleaf;\n\nimport com.google.inject.Inject;\nimport com.google.inject.Provider;\nimport com.google.inject....
java
chosen
[ { "from": "system", "value": "Create static generator from Element\n" }, { "from": "human", "value": "package com.grayben.riskExtractor.htmlScorer.partScorers;\n\nimport org.jsoup.nodes.Attribute;\nimport org.jsoup.parser.Tag;\n\npublic class TagAndAttribute {\n\tprivate final Tag tag;\n\tprivat...
java
chosen
[ { "from": "system", "value": "Delete an unnecessary test case\n" }, { "from": "human", "value": "/**\r\n * Licensed to the Apache Software Foundation (ASF) under one or more\r\n * contributor license agreements. See the NOTICE file distributed with\r\n * this work for additional information reg...
java
chosen
[ { "from": "system", "value": "Make use of new thread policy." }, { "from": "human", "value": "/*\n * JGrapes Event Driven Framework\n * Copyright (C) 2017-2018 Michael N. Lipp\n * \n * This program is free software; you can redistribute it and/or modify it \n * under the terms of the GNU General...
java
chosen
[ { "from": "system", "value": "PLFM-7403: Add missing mapping for datasetcollection updates\n" }, { "from": "human", "value": "package org.sagebionetworks.repo.manager.table;\r\n\r\nimport java.util.HashMap;\r\nimport java.util.Map;\r\n\r\nimport org.sagebionetworks.repo.model.EntityType;\r\nimpo...
java
chosen
[ { "from": "system", "value": "Improve line wrapping in the documentation\n" }, { "from": "human", "value": "//tag::include[]\npackage org.hibernate.validator.referenceguide.chapter06.constraintvalidatorpayload;\n\n//end::include[]\n\nimport javax.validation.ConstraintValidatorContext;\nimport ja...
java
chosen
[ { "from": "system", "value": "[Misc] Add missing newline (new checkstyle rule)\n" }, { "from": "human", "value": "/*\n * See the NOTICE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modi...
java
chosen
[ { "from": "system", "value": "Fix `buck build --verbose 2` so it prints only commands again.\n\nTest Plan: Ran `buck build fb4a` and saw only Bash commands.\n" }, { "from": "human", "value": "/*\n * Copyright 2012-present Facebook, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the...
java
chosen