conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "human", "value": "Add an interface for optional components\n\nThis interface is only meant as a marker so that the context can\ndiscern between fatal errors and expected ones, e.g. when services\nare initialized.\n\nSigned-off-by: Johannes Schindelin <53fb8db7833fca1e1746dd8592f61048d350f64c@gmx....
java
chosen
[ { "from": "human", "value": "Add java solution for 33. Search in Rotated Sorted Array\n\n33. Search in Rotated Sorted Array: https://leetcode.com/problems/search-in-rotated-sorted-array/" }, { "from": "gpt", "value": "package leetcode.search_in_rotated_sorted_array;\n\nimport java.util.Random;\n...
java
chosen
[ { "from": "human", "value": "Add alias for JEE resources\n" }, { "from": "gpt", "value": "package com.epam.cdp.jee.todo;\n\nimport javax.enterprise.inject.Produces;\nimport javax.persistence.EntityManager;\nimport javax.persistence.PersistenceContext;\n\n/**\n * This class uses CDI to alias Java...
java
chosen
[ { "from": "human", "value": "Move logger factory to oxCore" }, { "from": "gpt", "value": "package org.xdi.service.util;\n\nimport javax.enterprise.inject.Produces;\nimport javax.enterprise.inject.spi.InjectionPoint;\n\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\n\n/**\n * Class wh...
java
chosen
[ { "from": "human", "value": "Include test for Chrome in Android with Appium\n" }, { "from": "gpt", "value": "/*\n * (C) Copyright 2019 Boni Garcia (http://bonigarcia.github.io/)\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": "human", "value": "Add test class to ensure native api works with Filters\n" }, { "from": "gpt", "value": "/*\n * Copyright (C) 2011 Benoit GUEROUT <bguerout at gmail dot com> and Yves AMSELLEM <amsellem dot yves at gmail dot com>\n *\n * Licensed under the Apache License, Version 2.0 ...
java
chosen
[ { "from": "human", "value": "Add test to check if snippets parse correctly\n" }, { "from": "gpt", "value": "package com.sleekbyte.tailor.grammar;\n\nimport com.sleekbyte.tailor.Tailor;\nimport org.junit.After;\nimport org.junit.Before;\nimport org.junit.Test;\n\nimport java.io.*;\n\nimport stati...
java
chosen
[ { "from": "human", "value": "Add an annotation to inject ChannelBindings\n" }, { "from": "gpt", "value": "/*\n * This file is part of SpongeAPI, licensed under the MIT License (MIT).\n *\n * Copyright (c) SpongePowered <https://www.spongepowered.org>\n * Copyright (c) contributors\n *\n * Permis...
java
chosen
[ { "from": "human", "value": "Add java solution for 43. Multiply Strings\n\n43. Multiply Strings: https://leetcode.com/problems/multiply-strings/" }, { "from": "gpt", "value": "package leetcode.multiply_strings;\n\npublic class Solution {\n\tprivate static final int MODULUS = 1000000000;\n\tpriva...
java
chosen
[ { "from": "human", "value": "Add face plugin. If someone wants to make it so that this only matches if an alias of the same name doesn't exist, that would be cool. ¬_¬\n\n\n" }, { "from": "gpt", "value": "import java.util.regex.Matcher;\nimport java.util.regex.Pattern;\n\nimport uk.co.uwcs.choob...
java
chosen
[ { "from": "human", "value": "Add an interface to generate IntentIds\n\nChange-Id: I3d29a12e5a2e4c64a6498b344e2b17cc4797b1ce\n" }, { "from": "gpt", "value": "package net.onrc.onos.api.intent;\n\n/**\n * This interface is for generator of IntentId.\n *\n * <p>\n * {@link #getNewId()} generates a g...
java
chosen
[ { "from": "human", "value": "Add statement to problem 35\n" }, { "from": "gpt", "value": "/*\n * Copyright (C) 2014 Pedro Vicente Gómez Sánchez.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You ...
java
chosen
[ { "from": "human", "value": "Add custom RequestBody to upload file chunks\n" }, { "from": "gpt", "value": "package util;\n\nimport exception.UploadException;\nimport okhttp3.MediaType;\nimport okhttp3.RequestBody;\nimport okio.BufferedSink;\n\nimport javax.annotation.Nullable;\nimport java.io.IO...
java
chosen
[ { "from": "human", "value": "ROUT-7: Implement User resource API controller\n" }, { "from": "gpt", "value": "package api;\n\nimport java.util.List;\n\nimport javax.validation.Valid;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.http.HttpStatus;\nim...
java
chosen
[ { "from": "human", "value": "Revert \"gson is outsourced for advantage/separate usage\"\n\nThis reverts commit 66bb8923e654381f798877e07444e772e2f09689.\n\nnew reflected method name getter\n" }, { "from": "gpt", "value": "package volley.core.utils;\n\nimport com.android.volley.Request;\n\nimport...
java
chosen
[ { "from": "human", "value": "Add java solution for 37. Sudoku Solver\n\n37. Sudoku Solver: https://leetcode.com/problems/sudoku-solver/" }, { "from": "gpt", "value": "package leetcode.sudoku_solver;\n\npublic class Solution {\n\tpublic static final int N = 9;\n\tpublic boolean dfs(boolean[][] ap...
java
chosen
[ { "from": "human", "value": "Change the licence information\nexport table as csv/excel stuff\n" }, { "from": "gpt", "value": "/**\n * Copyright © 2011-2012 EMBL - European Bioinformatics Institute\n * \n * Licensed under the Apache License, Version 2.0 (the \"License\"); \n * you may not use thi...
java
chosen
[ { "from": "human", "value": "Add Unit Tests for getter and setter methods\n" }, { "from": "gpt", "value": "/*\n * DownloadClient Geodateninfrastruktur Bayern\n *\n * (c) 2016 GSt. GDI-BY (gdi.bayern.de)\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use...
java
chosen
[ { "from": "system", "value": "Increase time between host refreshing to four minutes.\n" }, { "from": "human", "value": "package com.bubbletastic.android.ping;\n\nimport android.app.Application;\nimport android.app.job.JobInfo;\nimport android.app.job.JobScheduler;\nimport android.content.Compone...
java
chosen
[ { "from": "system", "value": "Use proper timing method in step timing\n" }, { "from": "human", "value": "package io.quarkus.runtime.util;\n\nimport java.time.Instant;\nimport java.time.LocalDateTime;\nimport java.time.ZoneId;\n\nimport io.quarkus.runtime.StartupContext;\n\npublic class StepTimin...
java
chosen
[ { "from": "system", "value": "Add output when server has started.\n" }, { "from": "human", "value": "package no.javazone;\n\nimport io.vertx.core.Vertx;\nimport io.vertx.core.json.Json;\nimport io.vertx.ext.web.Router;\nimport io.vertx.ext.web.RoutingContext;\n\npublic class VertxHttpServer {\n\...
java
chosen
[ { "from": "system", "value": "Update to the package info\n" }, { "from": "human", "value": "/**\n * Decoding structure data to a compressed form.\n * @author Anthony Bradley\n *\n */\npackage org.rcsb.mmtf.decoder;\n" }, { "from": "gpt", "value": "/**\n * Decoding structure data from...
java
chosen
[ { "from": "system", "value": "Add methods to set and get properties.\n" }, { "from": "human", "value": "package com.github.aureliano.achmed.os.service;\n\nimport com.github.aureliano.achmed.command.CommandResponse;\n\npublic interface IService {\n\n\tpublic abstract CommandResponse start();\n\t\...
java
chosen
[ { "from": "system", "value": "Add documentation for IOException thrown\n" }, { "from": "human", "value": "/**\n * \n */\npackage com.grayben.riskExtractor.htmlScorer;\n\nimport java.io.IOException;\nimport java.io.InputStream;\n\n/**\n * A class implementing this interface is able to process HTM...
java
chosen
[ { "from": "system", "value": "Remove used full path attribute\n" }, { "from": "human", "value": "package com.choudhury.logger;\n\nimport org.apache.log4j.BasicConfigurator;\nimport org.springframework.web.servlet.ModelAndView;\nimport org.springframework.web.servlet.handler.HandlerInterceptorAda...
java
chosen
[ { "from": "system", "value": "Change app icon file path\n" }, { "from": "human", "value": "package werkbook.task.commons.util;\n\nimport static org.junit.Assert.assertNotNull;\n\nimport org.junit.Rule;\nimport org.junit.Test;\nimport org.junit.rules.ExpectedException;\n\npublic class AppUtilTest...
java
chosen
[ { "from": "system", "value": "Add quit button functionality in menuView\n" }, { "from": "human", "value": "/**\n * Package contains all the views required by budgetreporter\n */\npackage com.budgetreporter.View;\n\nimport java.awt.BorderLayout;\nimport java.awt.Container;\nimport java.awt.GridLa...
java
chosen
[ { "from": "system", "value": "Fix argument double encoding for HttpHead\n\nTo follow #157 that fixed double encoding on file download" }, { "from": "human", "value": "/**\n * A HTTP plugin for Cordova / Phonegap\n */\npackage com.synconset.cordovahttp;\n\nimport java.net.SocketTimeoutException;\...
java
chosen
[ { "from": "system", "value": "Fix side check in tank filling\n\n" }, { "from": "human", "value": "package net.qbar.common.block;\n\nimport net.minecraft.block.material.Material;\nimport net.minecraft.block.state.IBlockState;\nimport net.minecraft.entity.player.EntityPlayer;\nimport net.minecraft...
java
chosen
[ { "from": "system", "value": "Set q_ back to previous on exception in pre-pool block\n" }, { "from": "human", "value": "/**\n * @license\n * Copyright 2019 The FOAM Authors. All Rights Reserved.\n * http://www.apache.org/licenses/LICENSE-2.0\n */\n\npackage foam.util.concurrent;\n\nimport foam.c...
java
chosen
[ { "from": "system", "value": "Support for exporting to TOML and XML." }, { "from": "human", "value": "package io.miti.beetle.model;\n\npublic enum ContentType {\n SQL(1), SQL_FILE(2), HADOOP(3), CSV(4), JSON(5), YAML(6), TEXT(7);\n \n private int id = -1;\n \n ContentType(final int nId) {\n...
java
chosen
[ { "from": "system", "value": "Fix invalid decoder in sample\n\nStringDecoder should use CoderBuffer#readString(), so StringEncoder\nencodes a string with CoderBuffer#writeString().\n" }, { "from": "human", "value": "package net.ihiroky.niotty.sample;\n\nimport net.ihiroky.niotty.LoadStage;\nimpo...
java
chosen
[ { "from": "system", "value": "Fix some wrong references to person\n" }, { "from": "human", "value": "package seedu.address.testutil;\n\nimport seedu.address.model.tag.UniqueTagList;\nimport seedu.address.model.task.Name;\nimport seedu.address.model.task.ReadOnlyTask;\n\n/**\n * A mutable person ...
java
chosen
[ { "from": "system", "value": "Update the default version to the current one.\n" }, { "from": "human", "value": "package rs.emulate.lynx.net;\n\n/**\n * Contains constants used as part of the js5 protocol.\n * \n * @author Major\n */\npublic final class Js5Constants {\n\n\t/**\n\t * The amount of...
java
chosen
[ { "from": "system", "value": "Allow indexes on scripts and CSS files (so you can add them at the beginning).\n" }, { "from": "human", "value": "// HeadArray.java\n\npackage ed.appserver;\n\nimport ed.js.*;\n\npublic class HeadArray extends JSArray {\n\n public void addCSS( String css ){\n ...
java
chosen
[ { "from": "system", "value": "Fix one more style error\n" }, { "from": "human", "value": "package seedu.bulletjournal.logic.parser;\n\n/**\n * Provides variations of commands Note: hard-coded for v0.2, will implement nlp\n * for future versions\n * @author Tu An - arishuynhvan\n */\n\npublic cla...
java
chosen
[ { "from": "system", "value": "Fix unexistant createJSModules on rn 0.47+\n" }, { "from": "human", "value": "package com.AlexanderZaytsev.RNI18n;\n\nimport com.facebook.react.ReactPackage;\nimport com.facebook.react.bridge.JavaScriptModule;\nimport com.facebook.react.bridge.NativeModule;\nimport ...
java
chosen
[ { "from": "system", "value": "Use enum instead of boolean to hold state.\n" }, { "from": "human", "value": "package dk.kleistsvendsen;\n\nimport com.google.inject.Inject;\n\npublic class GameTimer implements IGameTimer {\n private ITicSource ticSource_;\n private long startTic_;\n priva...
java
chosen
[ { "from": "system", "value": "Add searching for a project by id functionality\n" }, { "from": "human", "value": "package com.example.beer.dao;\n\nimport javax.ejb.Singleton;\nimport javax.persistence.EntityManager;\nimport javax.persistence.NoResultException;\nimport javax.persistence.Persistenc...
java
chosen
[ { "from": "system", "value": "Fix bad evaluation of Kleene logic\n" }, { "from": "human", "value": "package cz.cuni.mff.d3s.spl.core.impl.formula;\n\nimport cz.cuni.mff.d3s.spl.core.Formula;\nimport cz.cuni.mff.d3s.spl.core.Result;\n\npublic class LogicOr extends LogicOp {\n\n\tpublic LogicOr(Fo...
java
chosen
[ { "from": "system", "value": "Add pressure sensor calibration fn\n" }, { "from": "human", "value": "package com.easternedgerobotics.rov.io;\n\n/**\n * A MPX4250 is an absolute pressure (AP) sensor. See also: <a href=\"http://goo.gl/n7c8tY\">MPX4250</a>.\n */\npublic final class MPX4250AP {\n ...
java
chosen
[ { "from": "system", "value": "Make data being a Map instead of HashMap\n" }, { "from": "human", "value": "package com.suse.saltstack.netapi.datatypes;\n\nimport java.util.HashMap;\n\n/**\n * Parse events into objects.\n */\npublic class Event {\n\n private String tag;\n private HashMap<Str...
java
chosen
[ { "from": "system", "value": "Add key selectors for aggregation of traffic and lumen.\n" }, { "from": "human", "value": "package it.uniroma2.ember;\n\n/**\n * Created by odysseus on 09/03/17.\n */\npublic class EmberSensorsAggregation {\n}\n" }, { "from": "gpt", "value": "package it....
java
chosen
[ { "from": "system", "value": "Use SIO:is_data _item in rather than void:inDataset\n" }, { "from": "human", "value": "package ws.biotea.ld2rdf.rdf.model;\n\nimport ws.biotea.ld2rdf.util.OntologyPrefix;\nimport java.io.Serializable;\n\n/**\n * OpenAnnotation: This class represents a general annota...
java
chosen
[ { "from": "system", "value": "Stop builders creative privledge in Anarchy\n" }, { "from": "human", "value": "package info.tregmine.commands;\n\nimport static org.bukkit.ChatColor.*;\nimport org.bukkit.GameMode;\n\nimport info.tregmine.Tregmine;\nimport info.tregmine.api.TregminePlayer;\n\npublic...
java
chosen
[ { "from": "system", "value": "Remove ParcelConverter from default mapping\n" }, { "from": "human", "value": "/*\n * Copyright 2016 requery.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.\n * You may...
java
chosen
[ { "from": "system", "value": "Remove unnecessary reset. These tests don't use the global instance.\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...
java
chosen
[ { "from": "system", "value": "Check date time based pattern as module version\n" }, { "from": "human", "value": "/*\n * Bach - Java Shell Builder\n * Copyright (C) 2019 Christian Stein\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except ...
java
chosen
[ { "from": "system", "value": "Add documentation to editor frame transfer handler\n" }, { "from": "human", "value": "package editor.gui.ccp.handler;\n\nimport editor.gui.editor.EditorFrame;\n\n@SuppressWarnings(\"serial\")\npublic class EditorFrameTransferHandler extends EditorTransferHandler\n{\...
java
chosen
[ { "from": "system", "value": "Remove nullability of the Model when invoking a template, to reduce problems with global variables.\n" }, { "from": "human", "value": "package io.collap.bryg;\n\nimport io.collap.bryg.exception.InvalidInputParameterException;\nimport io.collap.bryg.model.Model;\n\ni...
java
chosen
[ { "from": "system", "value": "Test failing build with buck-out/cache on Travis.\n" }, { "from": "human", "value": "package ca.junctionbox.cljbuck.build;\n\nimport org.junit.Test;\n\nimport static org.hamcrest.CoreMatchers.is;\nimport static org.junit.Assert.assertThat;\n\npublic class TestIntegr...
java
chosen
[ { "from": "system", "value": "Add comment justifying the use of UNSAFE." }, { "from": "human", "value": "package org.jctools.util;\n\nimport java.lang.reflect.Field;\n\nimport sun.misc.Unsafe;\n\npublic class UnsafeAccess {\n public static final Unsafe UNSAFE;\n static {\n try {\n ...
java
chosen
[ { "from": "system", "value": "Make constructor public, needs to be accessible from org.glassfish.jersey.*\n" }, { "from": "human", "value": "/*\n * Copyright 2014, The OpenNMS Group\n * \n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in...
java
chosen
[ { "from": "system", "value": "Test for decompile against all classes in the primary resource\n" }, { "from": "human", "value": "package me.coley.recaf;\n\nimport me.coley.recaf.decompile.fernflower.FernFlowerDecompiler;\nimport me.coley.recaf.workspace.*;\nimport org.junit.jupiter.api.*;\n\nimpo...
java
chosen
[ { "from": "system", "value": "Use guava to construct the HashMap.\n" }, { "from": "human", "value": "package org.codeswarm.lipsum;\n\nimport java.util.HashMap;\nimport java.util.Locale;\nimport java.util.Map;\n\nclass AttributeRendererImpl implements Lipsum.AttributeRenderer {\n\n private final...
java
chosen
[ { "from": "system", "value": "Address @truncs comment on Generic Type naming\n" }, { "from": "human", "value": "/*\n * Copyright (c) 2015 Uber Technologies, Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation...
java
chosen
[ { "from": "system", "value": "Change the runner so that exit is forced within the main.\n" }, { "from": "human", "value": "package models.jbehave;\n\nimport play.test.TestServer;\nimport play.test.Helpers;\n\npublic class JBehaveRunnerAssistant extends JBehaveRunnerCommandLine {\n\n private T...
java
chosen
[ { "from": "system", "value": "Fix weird character issues by hard-coding to UTF-8\n" }, { "from": "human", "value": "package haushaltsbuch.controllers;\n\nimport java.io.IOException;\nimport java.util.Locale;\nimport javax.servlet.Filter;\nimport javax.servlet.FilterChain;\nimport javax.servlet.F...
java
chosen
[ { "from": "system", "value": "Add redirect from / to /docs/ for demo purposes\n" }, { "from": "human", "value": "package org.rnorth.dropwizard.markdown.demo;\n\nimport io.dropwizard.Application;\nimport io.dropwizard.Configuration;\nimport io.dropwizard.setup.Bootstrap;\nimport io.dropwizard.set...
java
chosen
[ { "from": "system", "value": "Sort lessons by name when retrieving from db\n" }, { "from": "human", "value": "package se.kits.gakusei.content.repository;\n\nimport org.springframework.data.jpa.repository.Query;\nimport org.springframework.data.repository.CrudRepository;\nimport org.springframewo...
java
chosen
[ { "from": "system", "value": "[Java] Document possible TTSP issue and workaround" }, { "from": "human", "value": "/*\n * Copyright 2015 Real Logic Ltd.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n...
java
chosen
[ { "from": "system", "value": "Add JDK 1.8 version support\n\nSigned-off-by: Pekka Enberg <add4fcd06328a394f0ad91feda7ee057316dc5ed@iki.fi>\n" }, { "from": "human", "value": "/**\n * Copyright 2012 Douglas Campos <qmx@qmx.me>\n *\n * Licensed under the Apache License, Version 2.0 (the \"License...
java
chosen
[ { "from": "system", "value": "Add code to support StartPage functionality" }, { "from": "human", "value": "\r\npublic class Sudoku {\r\n\tpublic static void main(String[] args) {\r\n\t\t\r\n\t\tint difficulty = 3; //set default difficulty to easy\r\n\t\tboolean normalTimer = true;\t//sets the ti...
java
chosen
[ { "from": "system", "value": "Remove unnecessary visibility modifiers in interface\n" }, { "from": "human", "value": "package im.delight.android.ddp;\n\n/*\n * Copyright (c) delight.im <info@delight.im>\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use...
java
chosen
[ { "from": "system", "value": "Make queue type a constant" }, { "from": "human", "value": "package io.jaq.spsc;\n\nimport java.util.Queue;\nimport java.util.concurrent.ConcurrentLinkedQueue;\nimport java.util.concurrent.LinkedTransferQueue;\n\npublic class SPSCQueueFactory {\n public static fi...
java
chosen
[ { "from": "system", "value": "Test for welcome message (failing)\n" }, { "from": "human", "value": "package com.twu.biblioteca;\n\n\nimport org.junit.Test;\nimport static org.junit.Assert.assertEquals;\n\npublic class ExampleTest {\n\n @Test\n public void test() {\n assertEquals(1, ...
java
chosen
[ { "from": "system", "value": "Remove no longer valid todo\n" }, { "from": "human", "value": "package fitnesse.components;\n\nimport static org.junit.Assert.*;\n\nimport org.junit.Test;\n\n\npublic class PluginsClassLoaderTest {\n\n @Test\n public void whenPluginsDirectoryDoesNotExist() throws ...
java
chosen
[ { "from": "system", "value": "Add system parameter for dev mode\n" }, { "from": "human", "value": "package com.techcavern.wavetact;\n\nimport com.techcavern.wavetact.utils.CommandLineUtils;\nimport com.techcavern.wavetact.utils.GeneralRegistry;\nimport com.techcavern.wavetact.utils.IRCUtils;\n\n...
java
chosen
[ { "from": "system", "value": "Revert \"Return no variance by default instead of null.\"\n\nThis reverts commit ab20a6a3bfbdbf406c0bbeb59b9a3b934c760d99.\n" }, { "from": "human", "value": "package com.openxc.measurements;\n\nimport com.openxc.units.Unit;\nimport com.openxc.util.AgingData;\nimport...
java
chosen
[ { "from": "system", "value": "Fix case sensitivity of UUID check\n" }, { "from": "human", "value": "package com.lukekorth.httpebble.receivers;\n\nimport static com.getpebble.android.kit.Constants.APP_UUID;\nimport static com.getpebble.android.kit.Constants.MSG_DATA;\nimport static com.getpebble....
java
chosen
[ { "from": "system", "value": "Remove `@Nullable` for backwards compatibility with Kotlin API\n" }, { "from": "human", "value": "/*\n * Copyright 2008 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 ...
java
chosen
[ { "from": "system", "value": "Add Encoding JSON in Java Example\n" }, { "from": "human", "value": "/**\n * @file JSONEncodeDemo.java\n * @author Valery Samovich\n * @version 1.0.0\n * @date 11/19/2014\n * \n * Following example to encode JSON Object using Java JSONObject with is \n * subclass of...
java
chosen
[ { "from": "system", "value": "Handle IllegalArgumentException due to bad input\n" }, { "from": "human", "value": "package com.ft.membership.crypto.signature;\n\nimport java.nio.charset.StandardCharsets;\nimport java.util.Base64;\n\npublic class Encoder {\n\n private static final Base64.Encode...
java
chosen
[ { "from": "system", "value": "CAMEL-8820: Add note its currently only for languages\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...
java
chosen
[ { "from": "system", "value": "Increase timeout again to be sure all the tests are successful\n" }, { "from": "human", "value": "/*\n * Copyright 2018 New Vector Ltd\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with t...
java
chosen
[ { "from": "system", "value": "Enable background start of Cordova Android apps\n\nThis closes #322\n" }, { "from": "human", "value": "/*\n Licensed to the Apache Software Foundation (ASF) under one\n or more contributor license agreements. See the NOTICE file\n distributed with...
java
chosen
[ { "from": "system", "value": "Use filesystem properties to configure database connection instead of hard coded\n" }, { "from": "human", "value": "package org.cru.godtools.properties;\n\nimport javax.enterprise.inject.Produces;\n\n/**\n * Created by ryancarlson on 3/26/14.\n */\npublic class GodT...
java
chosen
[ { "from": "system", "value": "Correct bugs and improve feature and GUI\n\n\ngit-svn-id: 9146c88ff6d39b48099bf954d15d68f687b3fa69@91 28e8926c-6b08-0410-baaa-805c5e19b8d6\n" }, { "from": "human", "value": "/* \n* ################################################################\n* \n* ProActive: Th...
java
chosen
[ { "from": "system", "value": "Add TrivialNary and create SQLIte DB\n" }, { "from": "human", "value": "package com.englishnary.eridev.android.englishnary;\n\nimport android.content.Intent;\nimport android.os.Bundle;\nimport android.support.v7.app.ActionBarActivity;\nimport android.view.View;\nimp...
java
chosen
[ { "from": "system", "value": "Stop property elements being generated on DecoratedMetaData classes when\ngenerating edit views." }, { "from": "human", "value": "package org.skyve.impl.metadata.repository;\n\nimport java.util.List;\nimport java.util.Map;\nimport java.util.Map.Entry;\nimport java.u...
java
chosen
[ { "from": "system", "value": "Remove \"Exception\" from the error text\n" }, { "from": "human", "value": "package com.voodoodyne.gstrap.rest;\n\nimport com.fasterxml.jackson.annotation.JsonUnwrapped;\nimport com.voodoodyne.gstrap.lang.Types;\nimport lombok.RequiredArgsConstructor;\n\nimport java...
java
chosen
[ { "from": "system", "value": "Update the setpoints after killing each subsystem\n" }, { "from": "human", "value": "package org.robockets.stronghold.robot.commands;\n\nimport org.robockets.stronghold.robot.Robot;\n\nimport edu.wpi.first.wpilibj.command.Command;\n\n/**\n *\n */\npublic class Kill ...
java
chosen
[ { "from": "system", "value": "Implement most of test class\n" }, { "from": "human", "value": "/* *\\\n** SICU Stress Measurement System **\n** Project P04 | C380 Team...
java
chosen
[ { "from": "system", "value": "Allow fetching jokes by id in Web\n" }, { "from": "human", "value": "package is.ru.sparkit;\n\nimport spark.*;\nimport static spark.Spark.*;\nimport spark.servlet.SparkApplication;\n\npublic class ChuckWeb implements SparkApplication {\n public static void main(S...
java
chosen
[ { "from": "system", "value": "Add prefix to the password\n" }, { "from": "human", "value": "package kfs.kfsDbi;\n\nimport java.security.MessageDigest;\nimport java.security.NoSuchAlgorithmException;\nimport java.util.logging.Level;\nimport java.util.logging.Logger;\n\n/**\n *\n * @author pavedri...
java
chosen
[ { "from": "system", "value": "Fix executors for retrofit request and callback\n" }, { "from": "human", "value": "package com.drivemode.spotify.rest;\n\nimport com.squareup.okhttp.OkHttpClient;\n\nimport java.util.concurrent.Executor;\nimport java.util.concurrent.Executors;\n\nimport retrofit.Req...
java
chosen
[ { "from": "system", "value": "Add logging for SSH commands\n\nChange-Id: I620bfe5b796e82ae408477752d1547bd8d39a644\n" }, { "from": "human", "value": "package com.cgi.eoss.ftep.clouds.service;\n\nimport net.schmizz.sshj.SSHClient;\nimport net.schmizz.sshj.connection.channel.direct.Session;\nimpor...
java
chosen
[ { "from": "system", "value": "Increase UpdateUserWorker: 1 -> 3\n" }, { "from": "human", "value": "package com.github.k0kubun.github_ranking;\n\nimport com.github.k0kubun.github_ranking.config.Config;\nimport com.github.k0kubun.github_ranking.worker.UpdateUserWorker;\nimport com.github.k0kubun.g...
java
chosen
[ { "from": "system", "value": "Fix compilation... forgot to 'mvn clean'\n" }, { "from": "human", "value": "/*\n * Licensed to Elasticsearch under one or more contributor\n * license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright\n * o...
java
chosen
[ { "from": "system", "value": "Make constructor throw NullPointerException where appropriate\n" }, { "from": "human", "value": "package com.grayben.riskExtractor.headingMarker;\n\nimport java.util.Collections;\nimport java.util.List;\n\n/**\n * Created by beng on 1/12/2015.\n */\npublic class Unm...
java
chosen
[ { "from": "system", "value": " Fix broken api docs index\n\n - api docs entries Id's were full url paths which broke elasticsearch indexing. Replaced '/' with _ in these ids\n" }, { "from": "human", "value": "package org.springframework.indexer;\n\nimport org.jsoup.nodes.Document;\nimport org.sp...
java
chosen
[ { "from": "system", "value": "Improve test coverage and deprecate some methods.\n" }, { "from": "human", "value": "/*\n * Copyright 2016 higherfrequencytrading.com\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with th...
java
chosen
[ { "from": "system", "value": "Remove created file after unit test\n" }, { "from": "human", "value": "package com.github.hypfvieh.util;\n\nimport java.io.File;\n\nimport org.junit.Test;\n\nimport com.github.hypfvieh.AbstractBaseUtilTest;\n\npublic class CompressionUtilTest extends AbstractBaseUti...
java
chosen
[ { "from": "system", "value": "Add comment describing dpi conversion\n" }, { "from": "human", "value": "package com.googlecode.pngtastic.core;\n\nimport java.io.ByteArrayOutputStream;\nimport java.io.IOException;\n\n/**\n * Usage:\n * <code>\n * byte[] bytes = new PngChunkInserter().insert(im...
java
chosen
[ { "from": "system", "value": "Make constructor public for unit testing by library users\n" }, { "from": "human", "value": "// SPDX-License-Identifier: BSD-2-Clause\npackage org.xbill.DNS.lookup;\n\n/**\n * Thrown if the lookup results in too many CNAME and/or DNAME indirections. This would be th...
java
chosen
[ { "from": "system", "value": "Add method allowed to handle an unknown amount of numbers\n" }, { "from": "human", "value": "package test.com.maderilo.stringCalculator;\nimport static org.junit.Assert.assertEquals;\n\nimport org.junit.Test;\n\nimport com.maderilo.stringCalculator.StringCalculator;...
java
chosen
[ { "from": "system", "value": "Fix CIPANGO-99: Creating a DiameterServletRequest without specifying the destinationhost field leads to a null pointer exception when sending a the request\n\ngit-svn-id: cb8625e300c3faf843aa2977f1eda3273db846e7@506 657f710f-be33-0410-a596-71a6d81f68ef\n" }, { "from": "...
java
chosen
[ { "from": "system", "value": "Add note about why we force the media type." }, { "from": "human", "value": "package uk.ac.ox.oucs.vle;\n\nimport java.util.HashMap;\nimport java.util.Map;\n\nimport javax.ws.rs.Produces;\nimport javax.ws.rs.WebApplicationException;\nimport javax.ws.rs.core.MediaTyp...
java
chosen
[ { "from": "system", "value": "Make some util functions static\n" }, { "from": "human", "value": "package com.impossibl.stencil.api.impl;\n\nimport java.io.IOException;\nimport java.io.Reader;\nimport java.io.StringReader;\nimport java.net.URI;\n\nimport com.google.common.hash.Hashing;\nimport co...
java
chosen
[ { "from": "system", "value": "Use executorservice instead of plain executor to facilitate shutdown\n" }, { "from": "human", "value": "package acr.browser.lightning.async;\n\nimport android.support.annotation.NonNull;\nimport android.util.Log;\n\nimport java.util.ArrayDeque;\nimport java.util.Que...
java
chosen