conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Add try...catch for IOException. There are many places, where this exception may appear.\n" }, { "from": "human", "value": "package src;\n\npublic class Main {\n\n public static void main(String[] args) {\n\n if(args.length != 2) // принимаем 3 аргумент...
java
chosen
[ { "from": "system", "value": "Add third case scenario for Optional sample." }, { "from": "human", "value": "package com.fernandocejas.java.samples.optional;\n\nimport com.fernandocejas.arrow.annotations.See;\nimport com.fernandocejas.arrow.strings.Strings;\n\n@See(ref = \"\")\npublic class UseCa...
java
chosen
[ { "from": "system", "value": "Put \"init\" as the topmost item in the sort again\n" }, { "from": "human", "value": "package org.badvision.outlaweditor.data;\n\nimport java.util.List;\nimport org.badvision.outlaweditor.Application;\nimport org.badvision.outlaweditor.data.xml.Global;\nimport org.b...
java
chosen
[ { "from": "system", "value": "Correct copyright on new file\n" }, { "from": "human", "value": "/*\n * Copyright 2018 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 obtain a copy...
java
chosen
[ { "from": "system", "value": "Update network helper to include POST requests\n" }, { "from": "human", "value": "package com.chrisdempewolf.pinterest.methods.network;\n\nimport org.apache.http.client.methods.CloseableHttpResponse;\nimport org.apache.http.client.methods.HttpDelete;\nimport org.apa...
java
chosen
[ { "from": "system", "value": "Add first implementation to problem 63\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 Lic...
java
chosen
[ { "from": "system", "value": "Document difference between ID and virtual ID\n" }, { "from": "human", "value": "// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\npackage com.yahoo.config.provision.zone;\n\nimport com.yahoo.config.provision.C...
java
chosen
[ { "from": "system", "value": "Fix for one line HTTP responses\n" }, { "from": "human", "value": "package io.reon.http;\n\nimport java.io.IOException;\nimport java.io.InputStream;\n\npublic class ResponseReader extends MessageReader {\n\n\tpublic ResponseReader(InputStream is) {\n\t\tsuper(is);\n...
java
chosen
[ { "from": "system", "value": "Break down really long line\n" }, { "from": "human", "value": "package de.stephanlindauer.criticalmaps.model;\n\nimport android.app.Activity;\nimport android.provider.Settings;\n\nimport de.stephanlindauer.criticalmaps.utils.AeSimpleSHA1;\n\npublic class UserModel {...
java
chosen
[ { "from": "system", "value": "Add test control for number of threads\n\nEnable over saturated testing\n" }, { "from": "human", "value": "package org.jctools.util;\n\nimport java.util.List;\nimport java.util.concurrent.TimeUnit;\nimport java.util.concurrent.atomic.AtomicBoolean;\nimport java.util...
java
chosen
[ { "from": "system", "value": "Test the correct admin page\n" }, { "from": "human", "value": "/*************************GO-LICENSE-START*********************************\n * Copyright 2015 ThoughtWorks, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not...
java
chosen
[ { "from": "system", "value": "Revert version for demo purposes" }, { "from": "human", "value": "package uk.co.eggsylife.controller;\n\n\nimport org.springframework.stereotype.Controller;\nimport org.springframework.web.bind.annotation.RequestMapping;\nimport org.springframework.web.bind.annotati...
java
chosen
[ { "from": "system", "value": "Replace column on remote update\n" }, { "from": "human", "value": "package org.adaptlab.chpir.android.survey.Models;\n\nimport java.util.List;\n\nimport org.adaptlab.chpir.android.activerecordcloudsync.ReceiveTable;\nimport org.json.JSONException;\nimport org.json.J...
java
chosen
[ { "from": "system", "value": "FIX BUILD compiler error in 509selector unit test\n\ngit-svn-id: f26ccc5efe72c2bd8e1c40f599fe313f2692e4de@6293 a612230a-c5fa-0310-af8b-88eea846685b\n" }, { "from": "human", "value": "/*\n * \n * \n * Copyright (C) 2006 SIPfoundry Inc.\n * Licensed by SIPfoundry unde...
java
chosen
[ { "from": "system", "value": "Add an explicit metric set for the most typical use case (caring about metric + indom identifiers, but not instance ones)\n" }, { "from": "human", "value": "package com.custardsource.parfait.dxm;\n\npublic interface IdentifierSourceSet {\n public IdentifierSource...
java
chosen
[ { "from": "system", "value": "Fix bug where specified bias is ignored.\n" }, { "from": "human", "value": "package com.github.klane.wann.core;\n\nimport com.github.klane.wann.function.activation.ActivationFunction;\nimport com.github.klane.wann.function.input.InputFunction;\nimport com.google.com...
java
chosen
[ { "from": "system", "value": "Fix registry of entity type attributes" }, { "from": "human", "value": "package info.u_team.u_team_test.init;\n\nimport info.u_team.u_team_test.entity.TestLivingEntity;\nimport net.minecraftforge.event.entity.EntityAttributeCreationEvent;\nimport net.minecraftforge....
java
chosen
[ { "from": "system", "value": "Update indexes on folders table during migration\n" }, { "from": "human", "value": "package com.fsck.k9.mailstore.migrations;\n\n\nimport android.database.Cursor;\nimport android.database.sqlite.SQLiteDatabase;\n\n\nclass MigrationTo61 {\n\n static void addFolder...
java
chosen
[ { "from": "system", "value": "Use standard method instead of rolling our own\n" }, { "from": "human", "value": "package nl.hsac.fitnesse.fixture.util.selenium;\n\nimport nl.hsac.fitnesse.fixture.util.selenium.by.ConstantBy;\nimport org.openqa.selenium.By;\nimport org.openqa.selenium.WebElement;\...
java
chosen
[ { "from": "system", "value": " Create Account works with elastic search\n" }, { "from": "human", "value": "package com.example.whatsmymood;\n\nimport java.util.ArrayList;\nimport java.util.concurrent.ExecutionException;\n\n/**\n * Created by Malcolm on 2017-03-11.\n */\n\npublic class CreateUser...
java
chosen
[ { "from": "system", "value": "Change expiring cache policy of registry" }, { "from": "human", "value": "/*\n * Licensed under MIT (https://github.com/ligoj/ligoj/blob/master/LICENSE)\n */\npackage org.ligoj.app.resource.plugin.repository;\n\nimport java.util.function.Function;\n\nimport javax.ca...
java
chosen
[ { "from": "system", "value": "Load the custom font in all textviews.\n" }, { "from": "human", "value": "package com.sqisland.android.advanced_textview;\n\nimport android.app.Activity;\nimport android.graphics.Typeface;\nimport android.os.Bundle;\nimport android.widget.TextView;\n\npublic class C...
java
chosen
[ { "from": "system", "value": "Address review feedback on footnotes - RubyString\n\nBe more succinct and explicit when converting to RubyString\n" }, { "from": "human", "value": "package org.asciidoctor.jruby.ast.impl;\n\nimport org.jruby.RubyStruct;\n\nimport org.asciidoctor.ast.Footnote;\nimpor...
java
chosen
[ { "from": "system", "value": "Set mobile data without reflections for Android 9. (1)\n" }, { "from": "human", "value": "package sk.henrichg.phoneprofilesplus;\n\nimport android.net.IConnectivityManager;\nimport android.os.ServiceManager;\n\n@SuppressWarnings(\"WeakerAccess\")\npublic class CmdMo...
java
chosen
[ { "from": "system", "value": "Add all modules to package\n" }, { "from": "human", "value": "\npackage com.reactlibrary;\n\nimport java.util.Arrays;\nimport java.util.Collections;\nimport java.util.List;\n\nimport com.facebook.react.ReactPackage;\nimport com.facebook.react.bridge.NativeModule;\ni...
java
chosen
[ { "from": "system", "value": "Make more syntactically correct. No operational changes.\n" }, { "from": "human", "value": "/**\n * Copyright (c) 2012-2012 Malhar, Inc.\n * All rights reserved.\n */\npackage com.malhartech.demos.performance;\n\nimport com.malhartech.api.ApplicationFactory;\nimport...
java
chosen
[ { "from": "system", "value": "Add check box validation to validations\n" }, { "from": "human", "value": "package br.com.bloder.blormlib.validation;\n\n\nimport br.com.bloder.blormlib.validation.validations.Filled;\n\n/**\n * Created by bloder on 05/06/16.\n */\npublic class Validations {\n\n pu...
java
chosen
[ { "from": "system", "value": "Test remote service with USB data source (and no device plugged in).\n\nThis might not be an exhaustive test - the remote service actually dies, and I'm\nnot sure that's the right thing.\n" }, { "from": "human", "value": "package com.openxc.remote;\n\nimport com.ope...
java
chosen
[ { "from": "system", "value": "Throw helpful error message on unsupported major\n\nToday if the diagnostics tool is run against a major version that it\ndoes not support it throws a null pointer exception and does not really\nreveal what the problem is. This commit traps this situation and\nprovides a helpfu...
java
chosen
[ { "from": "system", "value": "Clean moe_db.txt with direct equivalence mapping for the version 2.6 of Java Agent.\n\nObtained via note_equivalence.\n\n-------------\nCreated by MOE: https://github.com/google/moe\nMOE_MIGRATED_REVID=126011210\n" }, { "from": "human", "value": "/**\n * Copyright 2...
java
chosen
[ { "from": "system", "value": "Correct API URL in service.\n" }, { "from": "human", "value": "package uk.co.longdivision.hex.net.hackernewsapi;\n\nimport com.android.volley.RequestQueue;\nimport com.android.volley.toolbox.JsonArrayRequest;\nimport com.android.volley.toolbox.RequestFuture;\n\nimpo...
java
chosen
[ { "from": "system", "value": "Remove emitter from cache if disposed\n" }, { "from": "human", "value": "package org.adridadou.ethereum.propeller.event;\n\nimport io.reactivex.Observable;\nimport io.reactivex.ObservableEmitter;\nimport io.reactivex.ObservableOnSubscribe;\n\nimport java.util.Set;\n...
java
chosen
[ { "from": "system", "value": "Change removeConfirmationDialog from support lib to HEW (Dialog)\n" }, { "from": "human", "value": "package net.somethingdreadful.MAL.dialog;\n\nimport android.content.DialogInterface;\nimport android.os.Bundle;\nimport android.support.v4.app.DialogFragment;\n\nimpo...
java
chosen
[ { "from": "system", "value": "Add support for data: Uri scheme to RCTImageView (e.g. base64-encoded images)\n\nSummary: ImageRequestHelper was not handling data: scheme correctly, which resulted in images failing to load. This diff is fixing it by considering \\\"data:\\\" as a Uri resource, and piping it a...
java
chosen
[ { "from": "system", "value": "Reduce the test wait time to 20s\n\nSigned-off-by: Julien Viet <5c682c2d1ec4073e277f9ba9f4bdf07e5794dabe@julienviet.com>\n" }, { "from": "human", "value": "package io.vertx.ext.web.client;\n\nimport static io.vertx.core.Future.failedFuture;\nimport static io.vertx.c...
java
chosen
[ { "from": "system", "value": "Create input config for JDBC.\n" }, { "from": "human", "value": "package com.github.aureliano.damihilogs.config.input;\n\npublic class JdbcConnectionModel {\n\n\tprivate String user;\n\tprivate String password;\n\tprivate String driver;\n\tprivate String sql;\n\tpri...
java
chosen
[ { "from": "system", "value": "fix: Add forward address resolver to sentry\n" }, { "from": "human", "value": "package in.ac.amu.zhcet.configuration;\n\nimport in.ac.amu.zhcet.data.model.user.UserAuth;\nimport in.ac.amu.zhcet.service.UserService;\nimport io.sentry.Sentry;\nimport io.sentry.event.h...
java
chosen
[ { "from": "system", "value": "Create integration request entity update\n" }, { "from": "human", "value": "package com.epam.ta.reportportal.ws.model.integration;\n\nimport com.epam.ta.reportportal.ws.annotations.NotEmpty;\nimport com.fasterxml.jackson.annotation.JsonInclude;\nimport com.fasterxml...
java
chosen
[ { "from": "system", "value": "Stop appending `.hostname` to statsd key\n" }, { "from": "human", "value": "/**\n * \n */\npackage com.krux.stdlib.statsd;\n\nimport java.net.InetAddress;\n\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\n\nimport com.krux.stdlib.KruxStdLib;\n\n/**\n * @...
java
chosen
[ { "from": "system", "value": "Add SurfaceView and TextureView to the special classes list\n" }, { "from": "human", "value": "package com.avast.android.butterknifezelezny.common;\n\nimport java.util.ArrayList;\nimport java.util.HashMap;\n\npublic class Definitions {\n\n public static final Has...
java
chosen
[ { "from": "system", "value": "Add javadoc to study segment dao.\n\ngit-svn-id: 4b387fe5ada7764508e2ca96c335714e4c1692c6@2439 0d517254-b314-0410-acde-c619094fa49f\n" }, { "from": "human", "value": "package edu.northwestern.bioinformatics.studycalendar.dao;\r\n\r\nimport edu.northwestern.bioinform...
java
chosen
[ { "from": "system", "value": "Use a method ctor reference now for the autosmelt enchantment" }, { "from": "human", "value": "package info.u_team.u_team_test.init;\n\nimport info.u_team.u_team_test.TestMod;\nimport info.u_team.u_team_test.enchantment.AutoSmeltEnchantment;\nimport net.minecraft.en...
java
chosen
[ { "from": "system", "value": "Change variable name to better reflect interface" }, { "from": "human", "value": "package at.medunigraz.imi.abbres.model.mapper;\n\nimport java.util.Map;\nimport java.util.TreeMap;\n\nimport at.medunigraz.imi.abbres.model.NGramMap;\nimport junit.framework.TestCase;\...
java
chosen
[ { "from": "system", "value": "Rename field `hasAlreadySet` -> `hasAlreadyStarted`\n" }, { "from": "human", "value": "package com.cookpad.android.puree.retryable;\n\nimport android.os.Handler;\n\npublic class RetryableTaskRunner {\n private Handler handler;\n private boolean hasAlreadySet;\...
java
chosen
[ { "from": "system", "value": "Migrate bean extractor to more elegant checking\n\n no more strings comparison in Item class identification\n" }, { "from": "human", "value": "package org.tylproject.vaadin.addon.utils;\n\nimport com.vaadin.addon.jpacontainer.EntityItem;\nimport com.vaadin.data.I...
java
chosen
[ { "from": "system", "value": "Test to ensure that the policy are properly copied on the device at the start of the app\n" }, { "from": "human", "value": "package de.tum.in.i22.sentinel.android.app;\n\n/**\n * Created by laurentmeyer on 30/01/16.\n */\npublic class TransferTest {\n}\n" }, { ...
java
chosen
[ { "from": "system", "value": "Use utf8 to encode URLs.\n\nPR: 8961\nSubmitted by: Matthew Faull\n\n\ngit-svn-id: 7c053b8fbd1fb5868f764c6f9536fc6a9bbe7da9@323764 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "human", "value": "package org.apache.jmeter.protocol.http.util;\n\nimport java.ne...
java
chosen
[ { "from": "system", "value": "Configure firebase to use background threads from appengine.\n" }, { "from": "human", "value": "package com.google.sps.firebase;\n\nimport com.google.auth.oauth2.GoogleCredentials;\nimport com.google.firebase.FirebaseApp;\nimport com.google.firebase.FirebaseOptions;...
java
chosen
[ { "from": "system", "value": "Document the testing of LUSolve algorithm\n" }, { "from": "human", "value": "package nom.bdezonia.zorbage.algorithm; class TestLUSolve {}\n" }, { "from": "gpt", "value": "/*\n * Zorbage: an algebraic data hierarchy for use in numeric processing.\n *\n * ...
java
chosen
[ { "from": "system", "value": "[DuckDB] Test DuckDB only with one thread due to multithreading issues\n" }, { "from": "human", "value": "package sqlancer;\n\nimport static org.junit.jupiter.api.Assertions.assertEquals;\n\nimport org.junit.jupiter.api.Test;\n\npublic class TestMain {\n\n privat...
java
chosen
[ { "from": "system", "value": "Add other response field to response model\n" }, { "from": "human", "value": "package org.adaptlab.chpir.android.survey.Models;\n\nimport com.activeandroid.Model;\nimport com.activeandroid.annotation.Column;\nimport com.activeandroid.annotation.Table;\n\n@Table(name...
java
chosen
[ { "from": "system", "value": "Set flapper to close on initialization." }, { "from": "human", "value": "package org.usfirst.frc.team3335.robot.subsystems;\r\n\r\nimport org.usfirst.frc.team3335.robot.RobotMap;\r\n\r\nimport edu.wpi.first.wpilibj.DoubleSolenoid;\r\nimport edu.wpi.first.wpilibj.com...
java
chosen
[ { "from": "system", "value": "Add message command because y not?\n" }, { "from": "human", "value": "package me.rbrickis.mojo.bukkit;\n\nimport me.rbrickis.mojo.annotations.Command;\nimport me.rbrickis.mojo.annotations.Default;\nimport me.rbrickis.mojo.annotations.Text;\nimport org.bukkit.Bukkit;...
java
chosen
[ { "from": "system", "value": "Revert \"CB-4915 update AWS default zone provider defaults to Virginia us-east-1\"\n\nThis reverts commit 04c7f2997a4b41332e4c351ce0d49642dd8ac3ef.\n" }, { "from": "human", "value": "package com.sequenceiq.cloudbreak.cloud.aws;\n\nimport org.springframework.beans.fa...
java
chosen
[ { "from": "system", "value": "Extend default idle timeout to account for the long and somewhat rare ListActiveBreakpoint calls.\n\n-------------\nCreated by MOE: https://github.com/google/moe\nMOE_MIGRATED_REVID=126710902\n" }, { "from": "human", "value": "/**\n * Copyright 2015 Google Inc. All ...
java
chosen
[ { "from": "system", "value": "Change evidence model to help improve layout." }, { "from": "human", "value": "package uk.ac.ebi.quickgo.webservice.model;\r\n\r\n/**\r\n * @Author Tony Wardell\r\n * Date: 05/03/2015\r\n * Time: 16:58\r\n * Created with IntelliJ IDEA.\r\n */\r\npublic class Evidenc...
java
chosen
[ { "from": "system", "value": "Add javadoc to new annotation\n" }, { "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 regarding co...
java
chosen
[ { "from": "system", "value": "Add missing `@Test` annotation to `UnaliasFailedEvent`\n" }, { "from": "human", "value": "package jfdi.test.logic.events;\n\nimport jfdi.logic.events.UnaliasFailedEvent;\nimport org.junit.Test;\n\nimport static org.junit.Assert.assertEquals;\n\n/**\n * @author Xinan...
java
chosen
[ { "from": "system", "value": "KEYCLOAK-15068: Fix 15068 by parameterizing ProviderFactory with LoginFormsProvider.\n" }, { "from": "human", "value": "/*\n * Copyright 2016 Red Hat, Inc. and/or its affiliates\n * and other contributors as indicated by the @author tags.\n *\n * Licensed under the ...
java
chosen
[ { "from": "system", "value": "Add exception handling to failed conection.\n" }, { "from": "human", "value": "package com.codingchili.router.controller.transport;\n\nimport com.codingchili.router.model.WireType;\nimport io.vertx.core.json.JsonObject;\nimport io.vertx.core.net.NetSocket;\nimport i...
java
chosen
[ { "from": "system", "value": "Add method that returns Birth based on age\n" }, { "from": "human", "value": "package sizebay.catalog.client.model;\n\nimport com.fasterxml.jackson.annotation.JsonIgnoreProperties;\nimport lombok.Data;\nimport lombok.NoArgsConstructor;\nimport lombok.experimental.Ac...
java
chosen
[ { "from": "system", "value": "Delete database of tests now stops if a file can't be deleted\n" }, { "from": "human", "value": "/*\r\n * Copyright 2010-2012 Luca Garulli (l.garulli--at--orientechnologies.com)\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you ...
java
chosen
[ { "from": "system", "value": "Make the getTemperature() function barely work\n" }, { "from": "human", "value": "\n\n/**\n * Created by shimin on 9/24/2014.\n */\npublic class Controller {\n\n private int temperature;\n private int lighting;\n private int pressure;\n private int humid...
java
chosen
[ { "from": "system", "value": "Move fade out animation after finish()\n" }, { "from": "human", "value": "package io.github.droidkaigi.confsched2017.view.activity;\n\nimport android.app.Activity;\nimport android.content.Intent;\nimport android.databinding.DataBindingUtil;\nimport android.os.Bundle...
java
chosen
[ { "from": "system", "value": "Align parameter name in javadoc\n" }, { "from": "human", "value": "package openperipheral.api.converter;\n\n/**\n * A type converter can automatically convert objects from Java types to a types understood by script engine.\n */\npublic interface IOutboundTypeConvert...
java
chosen
[ { "from": "system", "value": "Reformat tests to use spaces not tabs\n" }, { "from": "human", "value": "/*\n * Copyright 2017 MovingBlocks\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 obt...
java
chosen
[ { "from": "system", "value": "Add main Cell field to Neighbourhood\n" }, { "from": "human", "value": "package agent;\n\npublic class Neighborhood {\n\n\tpublic enum Direction {\n\t\tTOP, TOPRIGHT, RIGHT, BOTTOMRIGHT, BOTTOM, BOTTOMLEFT, LEFT, TOPLEFT\n\t}\n\n\tpublic int getTemperature() {\n\t\t...
java
chosen
[ { "from": "system", "value": "Fix null pointer in time chart\n" }, { "from": "human", "value": "package com.platypii.baseline.views.charts;\n\nimport com.platypii.baseline.events.ChartFocusEvent;\nimport com.platypii.baseline.measurements.MLocation;\nimport android.content.Context;\nimport andro...
java
chosen
[ { "from": "system", "value": "Make index fields public constants\n\nSo they are reusable by other classes.\n" }, { "from": "human", "value": "package de.hsmannheim.iws2014.indexing;\n\nimport org.apache.lucene.document.*;\nimport org.apache.lucene.index.IndexWriter;\n\nimport java.io.IOException...
java
chosen
[ { "from": "system", "value": "Disable user-defined artifacts testing module\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...
java
chosen
[ { "from": "system", "value": "Add extra ips systemg tag for backup storage\n\nResolves ZSTAC-15810\n\nSigned-off-by: AlanJager <7ba0221af525cfcc7adbf94f7fc6b46fa1dcb7c9@outlook.com>\n" }, { "from": "human", "value": "package org.zstack.storage.backup;\n\nimport org.zstack.header.storage.backup.B...
java
chosen
[ { "from": "system", "value": "Adjust image size to fetch for gallery view.\n\nto comply with predefined bucket sizes, for performance/cache reasons:\nhttps://git.wikimedia.org/blob/mediawiki%2Fextensions%2FMultimediaViewer.git/f9e7bae91a8032fa13fc68114a0d57d190ea77f9/resources%2Fmmv%2Fmmv.ThumbnailWidthCalc...
java
chosen
[ { "from": "system", "value": "Revise Javadoc for org.junit.gen5.launcher.main package\n" }, { "from": "human", "value": "/**\n * The {@link org.junit.gen5.launcher.Launcher Launcher} is the main starting\n * point for launching a test suite.\n *\n * <p>The {@link org.junit.gen5.launcher.main.Tes...
java
chosen
[ { "from": "system", "value": "Use alpha layer instead of window flag for dimming.\n" }, { "from": "human", "value": "/*\n * Copyright (c) 2014, Apptentive, Inc. All Rights Reserved.\n * Please refer to the LICENSE file for the terms and conditions\n * under which redistribution and use of this f...
java
chosen
[ { "from": "system", "value": "Add tests for recording a score.\n" }, { "from": "human", "value": "package eic.beike.projectx.network.projectXServer;\n\nimport junit.framework.TestCase;\n\n/**\n * Test the database interaction. As of now this is against the live server.\n * Created by alex on 10/...
java
chosen
[ { "from": "system", "value": "Set correct service-name in command\n" }, { "from": "human", "value": "package com.opera.core.systems.scope;\n\nimport com.opera.core.systems.model.ICommand;\nimport java.util.EnumSet;\nimport java.util.HashMap;\nimport java.util.Map;\n\n/**\n * This enum maps the c...
java
chosen
[ { "from": "system", "value": "Add formula to exp. decay NW class.\n" }, { "from": "human", "value": "package cs437.som.neighborhood;\n\n/**\n * Neighborhood width strategy for self-organizing maps that decays the width\n * exponentially as the iterations progress.\n */\npublic class ExponentialD...
java
chosen
[ { "from": "system", "value": "Update parameter version constant names\n" }, { "from": "human", "value": "package com.alexrnl.jseries.request.parameters;\n\n\n/**\n * Parameter indicating to use the new version of the BetaSeries API.<br />\n * @author Alex\n */\npublic class Version extends Param...
java
chosen
[ { "from": "system", "value": "Remove phone, address and email from Personcard class in UI\n" }, { "from": "human", "value": "package seedu.address.ui;\n\nimport javafx.fxml.FXML;\nimport javafx.scene.Node;\nimport javafx.scene.control.Label;\nimport javafx.scene.layout.HBox;\nimport seedu.addres...
java
chosen
[ { "from": "system", "value": "Support static references of getVetoLayer\n" }, { "from": "human", "value": "package infn.bed.util;\n\nimport infn.bed.geometry.GeometricConstants;\n\n/**\n * Returns the layer of a veto.\n * \n * @author Angelo Licastro\n */\npublic class GetVetoLayer {\n\t\n\t/**\...
java
chosen
[ { "from": "system", "value": "Make sure to deploy the websocket verticle by default as well.\n" }, { "from": "human", "value": "package reactmann;\n\nimport io.vertx.core.AbstractVerticle;\nimport rx.Observable;\n\n/**\n * @author blake\n */\npublic abstract class RiemannVerticle extends Abstrac...
java
chosen
[ { "from": "system", "value": "Add docs / Throw exception for wrong userId\n" }, { "from": "human", "value": "package com.sangdol.experiment.portableDb;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\n/**\n * @author hugh\n */\npublic class ViewTable {\n public static final String TA...
java
chosen
[ { "from": "system", "value": "Comment documenting what the various action values do.\n" }, { "from": "human", "value": "package invtweaks.forge;\n\nimport cpw.mods.fml.common.event.FMLInitializationEvent;\nimport cpw.mods.fml.common.event.FMLPostInitializationEvent;\nimport cpw.mods.fml.common.e...
java
chosen
[ { "from": "system", "value": "Tweak to make sorting work when two objects have same name.\n" }, { "from": "human", "value": "package com.quollwriter.data.comparators;\n\nimport java.util.*;\n\nimport com.quollwriter.data.*;\n\n\npublic class ChapterItemSorter implements Comparator<ChapterItem>\n...
java
chosen
[ { "from": "system", "value": "Add attributes in callback class\n" }, { "from": "human", "value": "package com.youcruit.billogram.objects.response.billogram;\n\nimport com.google.gson.annotations.Expose;\nimport com.google.gson.annotations.SerializedName;\n\npublic class Callback {\n\n @Expose...
java
chosen
[ { "from": "system", "value": "Revert \"изменение теста создания группы при помощи лямбды (блок лекции 4_9)\"\n\nThis reverts commit 72618e59ddecad96951277e1e77926c4fb5e0184.\n" }, { "from": "human", "value": "package ru.stqa.pft.addressbook.tests;\n\n\nimport org.testng.Assert;\nimport org.testn...
java
chosen
[ { "from": "system", "value": "Remove isUp flag from DTO\n" }, { "from": "human", "value": "package de.gernd.simplemon.endpoints.dto;\n\nimport lombok.Builder;\nimport lombok.Data;\n\n@Builder\n@Data\npublic class MonitoringResult {\n private boolean isUp;\n private long timeNeededForReques...
java
chosen
[ { "from": "system", "value": "Use streams instead of loops and conditionals\n" }, { "from": "human", "value": "package remonsinnema.blog.fizzbuzz;\r\n\r\nimport java.util.Arrays;\r\nimport java.util.Collection;\r\n\r\n\r\npublic class FizzBuzz {\r\n\r\n private final Collection<Term> terms = Ar...
java
chosen
[ { "from": "system", "value": "Allow the user to see directories also.\n\n\ngit-svn-id: 769d22dfa2d22aad706b9a451492fb87c0735f19@14187 08b38cba-cd3b-11de-854e-f91c5b6e4272\n" }, { "from": "human", "value": "package org.vrjuggler.vrjconfig.ui;\n\nimport java.io.File;\nimport javax.swing.filechoose...
java
chosen
[ { "from": "system", "value": "Reduce scope of absence mapping dao\n" }, { "from": "human", "value": "package org.synyx.urlaubsverwaltung.absence;\n\nimport org.springframework.data.repository.CrudRepository;\n\n\npublic interface AbsenceMappingDAO extends CrudRepository<AbsenceMapping, Integer> ...
java
chosen
[ { "from": "system", "value": "Add Apache header in OdbAnalyticsApplication.java\n" }, { "from": "human", "value": "\npackage quarks.test.svt.apps;\n\nimport quarks.topology.Topology;\npublic class ObdAnalyticsApplication{\n\n private final FleetManagementAnalyticsClientApplication app;\n p...
java
chosen
[ { "from": "system", "value": "Mark event enrichment as func. interface\n" }, { "from": "human", "value": "/*\n * Copyright 2019, TeamDev. All rights reserved.\n *\n * Redistribution and use in source and/or binary forms, with or without\n * modification, must retain the above copyright notice an...
java
chosen
[ { "from": "system", "value": "Set Cypt class to NullCrypt for demo purposes\n\n\ngit-svn-id: ac804e38dcddf5e42ac850d29d9218b7df6087b7@455761 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "human", "value": "/*\n * $Id$\n * $Revision$\n * $Date$\n *\n * =====================================...
java
chosen
[ { "from": "system", "value": "Make learn more link clickable.\n" }, { "from": "human", "value": "\npackage com.battlelancer.seriesguide.ui;\n\nimport android.os.Bundle;\nimport android.support.v4.app.FragmentTransaction;\nimport android.view.LayoutInflater;\nimport android.view.View;\nimport and...
java
chosen
[ { "from": "system", "value": "Add line separator in logs from JSON event log to another to facilitate json log parsers\n" }, { "from": "human", "value": "package io.dropwizard.logging.layout;\n\nimport ch.qos.logback.classic.LoggerContext;\nimport ch.qos.logback.classic.spi.ILoggingEvent;\nimpor...
java
chosen
[ { "from": "system", "value": "Return back separator for Morden since wrong forked peers are still there\n" }, { "from": "human", "value": "package org.ethereum.config.net;\n\nimport org.apache.commons.lang3.tuple.Pair;\nimport org.ethereum.config.blockchain.DaoHFConfig;\nimport org.ethereum.conf...
java
chosen
[ { "from": "system", "value": "Set default locale to US to use only periods for decimals, this helps with calculations.\n" }, { "from": "human", "value": "/*\n * Copyright (c) 2015 ThanksMister LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this ...
java
chosen
[ { "from": "system", "value": "Use \"Border Patrol\" in the title\n" }, { "from": "human", "value": "package uk.co.alynn.games.ld30.desktop;\n\nimport com.badlogic.gdx.backends.lwjgl.LwjglApplication;\nimport com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration;\n\nimport uk.co.alynn.gam...
java
chosen
[ { "from": "system", "value": "Rename exec to iptablesCmd and add ipCmd\n" }, { "from": "human", "value": "package com.yahoo.vespa.hosted.node.admin.task.util.network;\n\n/**\n * Strong type IPv4 and IPv6 with the respective iptables executable.\n *\n * @author smorgrav\n */\npublic enum IPVersio...
java
chosen
[ { "from": "system", "value": "Use CTC term for notification description\n\nSVN-Revision: 428\n" }, { "from": "human", "value": "package gov.nih.nci.cabig.caaers.service;\r\n\r\nimport com.semanticbits.aenotification.AENotification;\r\n\r\nimport gov.nih.nci.cabig.caaers.CaaersSystemException;\r\...
java
chosen