conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Set a maximum size for the Message interface\n" }, { "from": "human", "value": "package net.kencochrane.raven.marshaller.json;\n\nimport com.fasterxml.jackson.core.JsonGenerator;\nimport net.kencochrane.raven.event.interfaces.MessageInterface;\n\nimport java.io.IOEx...
java
chosen
[ { "from": "system", "value": "Switch to obj long for nullable field\n" }, { "from": "human", "value": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2016 Vincent Zhang/PhoenixLAB\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associ...
java
chosen
[ { "from": "system", "value": "Add defautl constructor and getFullName method\n" }, { "from": "human", "value": "package domain;\n\npublic class Contact {\n\t\n\tprivate long id; \n\tprivate String firstName;\n\tprivate String lastName;\n\tprivate String email;\n\t \n\t/**\n\t * @return Email\...
java
chosen
[ { "from": "system", "value": "Add verbose flag to processor parameters\n" }, { "from": "human", "value": "/*\n * Copyright 2015 Michael Rozumyanskiy\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": "Rename Address Book to Task Manager\n" }, { "from": "human", "value": "package seedu.address.storage;\n\nimport java.io.File;\nimport java.io.FileNotFoundException;\n\nimport javax.xml.bind.JAXBException;\n\nimport seedu.address.commons.exceptions.DataConversionExce...
java
chosen
[ { "from": "system", "value": "Add more test cases for Deadline\n" }, { "from": "human", "value": "package utask.model.task;\n\nimport static org.junit.Assert.assertFalse;\nimport static org.junit.Assert.assertTrue;\n\nimport org.junit.Test;\n\npublic class DeadlineTest {\n\n @Test\n public...
java
chosen
[ { "from": "system", "value": "Add new line print to clearScreen()\n" }, { "from": "human", "value": "import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n printTitle();\n titleWait();\n System.out.println(\"You wake up on a beach....
java
chosen
[ { "from": "system", "value": "Switch the default registry to ZK based\n\nIn branch-2 we want to retain the ZK based registry as the default.\n" }, { "from": "human", "value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the N...
java
chosen
[ { "from": "system", "value": "Set Default Timeouts For NIO Builder While Creation\n" }, { "from": "human", "value": "package org.qfox.jestful.client.nio.timeout;\n\nimport java.net.SocketTimeoutException;\nimport java.nio.channels.SelectionKey;\n\n/**\n * Created by yangchangpei on 17/3/27.\n */...
java
chosen
[ { "from": "system", "value": "Use 'contains' instead of indexOf to find substrings\n" }, { "from": "human", "value": "package org.jenkinsci.plugins.gitclient;\n\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.logging.Handler;\nimport java.util.logging.LogRecord;\n\n/**\n *...
java
chosen
[ { "from": "system", "value": "Add exception for division by zero\n" }, { "from": "human", "value": "package com.growingwiththeweb.algorithms.interviewquestions.dividewithoutdivide;\n\npublic class Program {\n public static void main(String[] args) {\n assert divide(10,4) == 2;\n ...
java
chosen
[ { "from": "system", "value": "Add in the layer interface the capability of knows if the implementation is distributed or not.\n" }, { "from": "human", "value": "package org.hcjf.layers;\n\nimport java.lang.reflect.InvocationHandler;\n\n/**\n * @author javaito\n *\n */\npublic interface LayerInte...
java
chosen
[ { "from": "system", "value": "Remove old unnesessary code (load ini file). Now this operations is in FileWorker.\n" }, { "from": "human", "value": "package src;\n\nimport java.io.File;\nimport java.io.IOException;\n\nimport org.ini4j.Wini;\n\npublic class Tournament {\n String _userName;\n ...
java
chosen
[ { "from": "system", "value": "Write logs to Application Storage to avoid permission problem on Android 6+\n" }, { "from": "human", "value": "package config;\r\n\r\nimport android.content.Context;\r\n\r\nimport cl_toolkit.Logger;\r\nimport cl_toolkit.Storage;\r\n\r\n/**\r\n * Run-time data\r\n * ...
java
chosen
[ { "from": "system", "value": "Move group type info to interface\n" }, { "from": "human", "value": "package com.gentics.mesh.core.data.group;\n\nimport com.gentics.mesh.core.data.HibCoreElement;\nimport com.gentics.mesh.core.data.HibNamedElement;\nimport com.gentics.mesh.core.data.user.HibUserTra...
java
chosen
[ { "from": "system", "value": "Use add instead of offer with the unbounded blocking queue to guarantee\nsuccessful add.\n" }, { "from": "human", "value": "// Copyright 2014, Kevin Ko <kevin@faveset.com>\n\npackage com.faveset.khttp;\n\nimport java.nio.channels.Selector;\n\nimport java.util.concur...
java
chosen
[ { "from": "system", "value": "Add call to construct manager in test mod" }, { "from": "human", "value": "package info.u_team.u_team_test;\n\nimport org.apache.logging.log4j.*;\n\nimport info.u_team.u_team_core.integration.IntegrationManager;\nimport info.u_team.u_team_core.util.verify.JarSignVer...
java
chosen
[ { "from": "system", "value": "Use better health check details\n" }, { "from": "human", "value": "package com.simplerecipemanager.resources;\n\nimport java.util.Map;\nimport java.util.Map.Entry;\n\nimport javax.ws.rs.GET;\nimport javax.ws.rs.Path;\nimport javax.ws.rs.core.Response;\n\nimport com....
java
chosen
[ { "from": "system", "value": "Fix issue with time field string conversion (there wasn't any).\n\ngit-svn-id: 0503cfb7d358eaa9bd718f348f448f10022ea703@955332 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "human", "value": "/* $Id$ */\n\n/**\n* Licensed to the Apache Software Foundation (AS...
java
chosen
[ { "from": "system", "value": "Increase session timeout for mongo http sessions" }, { "from": "human", "value": "package de.papke.cloud.portal.auth;\n\nimport org.springframework.context.annotation.Bean;\nimport org.springframework.session.data.mongo.JdkMongoSessionConverter;\nimport org.springfr...
java
chosen
[ { "from": "system", "value": "Mask Service is pending the completed object model\n\n\nSVN-Revision: 396\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 strTy...
java
chosen
[ { "from": "system", "value": "Make countcontainer members public for now\n" }, { "from": "human", "value": "package io.sigpipe.sing.graph;\n\nimport java.io.IOException;\n\nimport io.sigpipe.sing.serialization.SerializationInputStream;\nimport io.sigpipe.sing.serialization.SerializationOutputStr...
java
chosen
[ { "from": "system", "value": "Refactor REST controller to use overall @RequestMapping\n" }, { "from": "human", "value": "package com.elderstudios.controller;\n\nimport com.elderstudios.domain.GuestBookEntry;\nimport com.elderstudios.service.GuestBookService;\nimport org.springframework.beans.fac...
java
chosen
[ { "from": "system", "value": "Mark it Windows only before Linux implement ready.\n" }, { "from": "human", "value": "package io.github.hcoona.utils;\r\n\r\nimport org.junit.Assert;\r\nimport org.junit.Test;\r\n\r\nimport java.util.concurrent.ExecutorService;\r\nimport java.util.concurrent.Executo...
java
chosen
[ { "from": "system", "value": "Support map positioning in time with slider\n" }, { "from": "human", "value": "package ca.cumulonimbus.pressurenetsdk;\n\npublic class CbWeather {\n\n\t\n}\n" }, { "from": "gpt", "value": "package ca.cumulonimbus.pressurenetsdk;\n\n/**\n * Parent class f...
java
chosen
[ { "from": "system", "value": "Refactor test to use matchers\n" }, { "from": "human", "value": "package com.phsshp;\n\nimport com.phsshp.testutils.matchers.MetricsMatcher;\nimport org.junit.Test;\n\nimport java.io.File;\nimport java.util.Arrays;\nimport java.util.List;\n\nimport static com.phsshp...
java
chosen
[ { "from": "system", "value": "Comment was added to this operator." }, { "from": "human", "value": "package model.ea.operators;\n\nimport helper.ConfigurationHelper;\nimport model.ea.Population;\n\n@SuppressWarnings(\"unused\")\npublic class BestSelectionOperator implements IEnvironmentSelectionO...
java
chosen
[ { "from": "system", "value": "Fix type in method name\n" }, { "from": "human", "value": "package com.bookbase.app.utils;\n\nimport android.arch.persistence.room.TypeConverter;\n\nimport com.bookbase.app.mainscreen.HomeScreen;\nimport com.bookbase.app.database.AppDatabase;\nimport com.bookbase.ap...
java
chosen
[ { "from": "system", "value": "Fix a call to method.\n" }, { "from": "human", "value": "package com.google.research.bleth.simulator;\n\nimport com.google.auto.value.AutoValue;\n\n/** A location on board. */\n@AutoValue\npublic abstract class Location {\n public static Location create(int row, ...
java
chosen
[ { "from": "system", "value": "Add function to get thumbnail's url with image id.\n" }, { "from": "human", "value": "package com.dyhpoon.fodex.data;\n\nimport android.content.ContentResolver;\nimport android.content.Context;\nimport android.database.Cursor;\nimport android.provider.MediaStore;\n\...
java
chosen
[ { "from": "system", "value": "Add basic authorization to restful webservices controller.\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 ...
java
chosen
[ { "from": "system", "value": "Move check to constructor for faster failure\n" }, { "from": "human", "value": "package org.ambraproject.rhino.view.asset;\n\nimport com.google.common.collect.ImmutableList;\nimport com.google.gson.JsonElement;\nimport com.google.gson.JsonObject;\nimport com.google....
java
chosen
[ { "from": "system", "value": "Change class to use new TaskDate\n" }, { "from": "human", "value": "package seedu.doist.testutil;\n\nimport java.util.Date;\n\nimport seedu.doist.commons.exceptions.IllegalValueException;\nimport seedu.doist.model.tag.Tag;\nimport seedu.doist.model.tag.UniqueTagList...
java
chosen
[ { "from": "system", "value": "Increment index version for 1.6.13\n" }, { "from": "human", "value": "/*\n * Copyright (c) Joachim Ansorg, mail@ansorg-it.com\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the Licens...
java
chosen
[ { "from": "system", "value": "Add a trailing slash to the analysis engine URL\n" }, { "from": "human", "value": "/*******************************************************************************\n * Copyright (c) 2015 Stichting Yona Foundation\n *\n * This Source Code Form is subject to the terms...
java
chosen
[ { "from": "system", "value": "Make NavigationTree expand by default" }, { "from": "human", "value": "package devopsdistilled.operp.client.main;\n\nimport javax.inject.Inject;\nimport javax.swing.JComponent;\nimport javax.swing.JScrollPane;\nimport javax.swing.event.TreeSelectionEvent;\nimport ja...
java
chosen
[ { "from": "system", "value": "[YIL-83] Fix sonar: add functional interface.\n" }, { "from": "human", "value": "/*\n * This file is part of the Yildiz-Engine project, licenced under the MIT License (MIT)\n *\n * Copyright (c) 2017 Grégory Van den Borre\n *\n * More infos available: https://www....
java
chosen
[ { "from": "system", "value": "Fix configuration to use prod sever.\n" }, { "from": "human", "value": "package com.tuvistavie.meetup;\n\n/**\n * Created by daniel on 9/4/13.\n */\npublic final class Config {\n public static final String PROTOCOL = \"http\";\n public static final String HOST...
java
chosen
[ { "from": "system", "value": "Fix template to remind about Main filename\n" }, { "from": "human", "value": "package dgcj;\n\npublic class TemplateDgcjMain {\n\tstatic final Object PROBLEM = new TemplateDgcjProblem(); // PROBLEM NAME goes here\n\n\tpublic String run() {\n//\t\tlong n = ;\n//\t\tl...
java
chosen
[ { "from": "system", "value": "Fix test of Wild defaults.\n" }, { "from": "human", "value": "package mytown.test.config.json;\n\nimport mytown.config.json.FlagsConfig;\nimport myessentials.json.JsonConfig;\nimport mytown.config.json.WildPermsConfig;\nimport mytown.entities.Wild;\nimport mytown.en...
java
chosen
[ { "from": "system", "value": "Remove Logs that printed all Column in DataStore every time it was queried.\n" }, { "from": "human", "value": "package com.sarality.app.datastore;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\nimport android.content.ContentResolver;\nimport android.conte...
java
chosen
[ { "from": "system", "value": "Use reflection for java 1.8 classes" }, { "from": "human", "value": "package org.vaadin.viritin.util;\n\nimport java.util.*;\nimport java.util.Locale.LanguageRange;\n\nimport org.vaadin.viritin.util.VaadinLocale.LocaleNegotiationStrategey;\n\nimport com.vaadin.serve...
java
chosen
[ { "from": "system", "value": "Allow typed predicate to handle nulls\n" }, { "from": "human", "value": "/*\n * #%L\n * BroadleafCommerce Common Libraries\n * %%\n * Copyright (C) 2009 - 2013 Broadleaf Commerce\n * %%\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you ma...
java
chosen
[ { "from": "system", "value": "Replace player ids with player objects\n\nThis is no longer needed, since in memory storage keeps all references\n" }, { "from": "human", "value": "package pw.scho.battleship.model;\n\nimport java.util.UUID;\n\npublic class Game {\n\n private Board firstBoard;\n ...
java
chosen
[ { "from": "system", "value": "Test more upto 11 instances for the positive tests.\n" }, { "from": "human", "value": "package test;\n\nimport java.io.File;\nimport java.io.IOException;\nimport java.net.URISyntaxException;\nimport javax.script.ScriptException;\nimport org.clafer.ast.AstModel;\nimp...
java
chosen
[ { "from": "system", "value": "Fix absolute paths to sources by config params\n" }, { "from": "human", "value": "package com.crowdin.cli.commands.functionality;\n\nimport com.crowdin.cli.properties.CliProperties;\nimport com.crowdin.cli.properties.Params;\nimport com.crowdin.cli.properties.Proper...
java
chosen
[ { "from": "system", "value": "Add an utility function to fetch nutritional values of foods" }, { "from": "human", "value": "package com.japlj.healthydiet.api;\n\nimport com.japlj.healthydiet.food.FoodParameterManager;\n\nimport net.minecraft.item.ItemFood;\nimport net.minecraft.item.ItemStack;\n...
java
chosen
[ { "from": "system", "value": "Remove not used timed absence type 'WORK'\n" }, { "from": "human", "value": "package org.synyx.urlaubsverwaltung.availability.api;\n\nimport org.synyx.urlaubsverwaltung.period.DayLength;\n\nimport java.math.BigDecimal;\n\n\n/**\n * Details for a (partial) absence of...
java
chosen
[ { "from": "system", "value": "Fix bug with folders not loading.\n" }, { "from": "human", "value": "package mmbn;\nimport rand.ByteStream;\nimport rand.DataProducer;\n\npublic class FolderProducer implements DataProducer<Folder> {\n protected final RewardProducer rewardProducer;\n \n pub...
java
chosen
[ { "from": "system", "value": "Add getter for packages on AbstractAPI\n" }, { "from": "human", "value": "package ca.ubc.ece.salt.sdjsb.analysis.learning.apis;\n\nimport java.util.List;\n\nimport ca.ubc.ece.salt.sdjsb.analysis.learning.apis.Keyword.KeywordType;\n\n/**\n * Defines the default JavaS...
java
chosen
[ { "from": "system", "value": "Add method to extract playable cards form deck\n\nWithout having to take the detour over the sections\n" }, { "from": "human", "value": "package de.flux.playground.deckcompare.dto;\n\nimport java.util.List;\n\nimport javax.xml.bind.annotation.XmlAccessType;\nimport ...
java
chosen
[ { "from": "system", "value": "Allow null email to pass EmailValidator\n\nSomewhere else will decide if it’s required\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...
java
chosen
[ { "from": "system", "value": "Fix a test that broke with the internal queue changes.\n" }, { "from": "human", "value": "package net.spy.memcached;\n\nimport junit.framework.TestCase;\n\n/**\n * Test connection factory variations.\n */\npublic class ConnectionFactoryTest extends TestCase {\n\n\t/...
java
chosen
[ { "from": "system", "value": "Test intellij idea git commit and push to remote ...\n" }, { "from": "human", "value": "package chile.netty.bio;\n\nimport java.util.concurrent.ArrayBlockingQueue;\nimport java.util.concurrent.ExecutorService;\nimport java.util.concurrent.ThreadPoolExecutor;\nimport...
java
chosen
[ { "from": "system", "value": "Remove equivalentProfileItemExists method from interface. PL-11206.\n" }, { "from": "human", "value": "package com.amee.domain;\n\nimport com.amee.base.domain.ResultsWrapper;\nimport com.amee.domain.data.DataCategory;\nimport com.amee.domain.item.BaseItemValue;\nimp...
java
chosen
[ { "from": "system", "value": "Set DEBUG flag false again.\n" }, { "from": "human", "value": "package com.jakewharton.trakt;\n\nimport junit.framework.TestCase;\n\npublic abstract class BaseTestCase extends TestCase {\n protected static final String API_KEY = \"5abdaea0246b840cb7c709f8e1788fed...
java
chosen
[ { "from": "system", "value": "Add register page and pre-load js functions to API" }, { "from": "human", "value": "package com.decker.essentiallib.API;\r\n\r\npublic class PageAPI {\r\n\r\n}\r\n" }, { "from": "gpt", "value": "package com.decker.essentiallib.API;\r\n\r\nimport com.dec...
java
chosen
[ { "from": "system", "value": "Revert \"CAMEL-14020 - Migrate getOut to getMessage in camel-spring-integration\"\n\nThis reverts commit d3586cc0af2af7719f5612ab3398d079f398e1ef.\n" }, { "from": "human", "value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contri...
java
chosen
[ { "from": "system", "value": "Add functionality for prelimnary layout\n" }, { "from": "human", "value": "package in.co.nebulax.maestro;\n\nimport android.os.Bundle;\n\nimport com.actionbarsherlock.app.SherlockActivity;\n\npublic class RegistrationActivity extends SherlockActivity{\n\n\t@Override...
java
chosen
[ { "from": "system", "value": "Use blocking call to queue and null safe it.\n" }, { "from": "human", "value": "package com.github.ingarabr.mi;\n\nimport java.util.Queue;\nimport java.util.concurrent.LinkedBlockingQueue;\n\nimport org.elasticsearch.client.Client;\n\npublic class EsWriter implement...
java
chosen
[ { "from": "system", "value": "Use configured message to show configuration\n" }, { "from": "human", "value": "package org.konstructs.example;\n\nimport akka.actor.UntypedActor;\nimport akka.actor.Props;\nimport konstructs.plugin.Config;\nimport konstructs.plugin.PluginConstructor;\nimport konstr...
java
chosen
[ { "from": "system", "value": "Hide the top level progress node.\n" }, { "from": "human", "value": "/**\n *\n */\npackage org.jmist.framework.services;\n\nimport java.rmi.RMISecurityManager;\nimport java.util.concurrent.Executor;\nimport java.util.concurrent.Executors;\n\nimport javax.swing.JDial...
java
chosen
[ { "from": "system", "value": "Remove spacing between static and non static variables" }, { "from": "human", "value": "package vooga.request.forwarder;\n\nimport vooga.request.IRequest;\n\n/**\n * An exception capturing when an error occurred during delivery of an request\n * to a known receiver\...
java
chosen
[ { "from": "system", "value": "Put supported clients in alphabetical order\n" }, { "from": "human", "value": "package com.suse.salt.netapi.calls;\n\n/**\n * Possible values for the client parameter in salt netapi calls.\n */\npublic enum Client {\n\n LOCAL(\"local\"),\n LOCAL_BATCH(\"local_...
java
chosen
[ { "from": "system", "value": "Add slash at the end to avoid redirects from server\n" }, { "from": "human", "value": "package com.nmakademija.nmaakademija.api;\n\nimport com.nmakademija.nmaakademija.entity.Article;\nimport com.nmakademija.nmaakademija.entity.ScheduleEvent;\nimport com.nmakademija...
java
chosen
[ { "from": "system", "value": "Access yaml resource using absolute path; hopefully this fixes travis\n" }, { "from": "human", "value": "package folioxml.config;\n\nimport java.io.InputStream;\nimport java.nio.file.Paths;\nimport java.util.Map;\n\n/**\n * Created by nathanael on 5/25/15.\n */\npub...
java
chosen
[ { "from": "system", "value": "Set Heartbeat interval to 5 mins\n" }, { "from": "human", "value": "package net.vexelon.currencybg.srv;\n\nimport javax.ws.rs.core.MediaType;\n\n/**\n * Global constants\n *\n */\npublic final class Defs {\n\n\t/*\n\t * Database parameters\n\t */\n\tpublic static fi...
java
chosen
[ { "from": "system", "value": "Fix detecting if timings are enabled\n" }, { "from": "human", "value": "package com.github.games647.lagmonitor.command.timing;\n\nimport com.github.games647.lagmonitor.LagMonitor;\nimport com.github.games647.lagmonitor.command.LagCommand;\n\nimport net.md_5.bungee.a...
java
chosen
[ { "from": "system", "value": "Fix in low_level_sketches experiment data reader\n" }, { "from": "human", "value": "package edu.rice.bayou.experiments.low_level_sketches;\n\npublic class DAPICallLowLevel extends DASTNodeLowLevel {\n\n String node = \"DAPICall\";\n String _call;\n\n @Overr...
java
chosen
[ { "from": "system", "value": "Test checking to deliberately break the build\n" }, { "from": "human", "value": "package com.fenixinfotech.ehcache.playpen;\n\nimport net.sf.ehcache.CacheManager;\nimport org.junit.Test;\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\n\nimport static org...
java
chosen
[ { "from": "system", "value": "Remove proxy from main class" }, { "from": "human", "value": "package info.u_team.u_team_core;\n\nimport org.apache.logging.log4j.*;\n\nimport info.u_team.u_team_core.api.IModProxy;\nimport info.u_team.u_team_core.intern.proxy.*;\nimport info.u_team.u_team_core.util...
java
chosen
[ { "from": "system", "value": "Improve function to get all menu fetchers" }, { "from": "human", "value": "package io.yancey.menufetcher;\n\nimport java.time.*;\nimport java.util.*;\n\npublic interface MenuFetcher {\n\tpublic List<Meal> getMeals(LocalDate day);\n\t\n\tpublic static List<MenuFetche...
java
chosen
[ { "from": "system", "value": "Fix the header comment to correct the file name and date.\n" }, { "from": "human", "value": "//\n// ConversionAdaptor.java\n// \n//\n// Created by Tom Pelaia on 12/27/11\n// Copyright 2011 Oak Ridge National Lab. All rights reserved.\n//\n\npackage xal.tools.coding;...
java
chosen
[ { "from": "system", "value": "Add scale parameter to Map spell\n" }, { "from": "human", "value": "package com.elmakers.mine.bukkit.spell.builtin;\n\nimport org.bukkit.Bukkit;\nimport org.bukkit.Material;\nimport org.bukkit.World;\nimport org.bukkit.configuration.ConfigurationSection;\nimport org...
java
chosen
[ { "from": "system", "value": "Add LinkedHashMap to toJava of dict object\n" }, { "from": "human", "value": "package org.cafebabepy.runtime.object.java;\n\nimport org.cafebabepy.runtime.PyObject;\nimport org.cafebabepy.runtime.Python;\nimport org.cafebabepy.runtime.object.AbstractPyObjectObject;\...
java
chosen
[ { "from": "system", "value": "Make sure to start the timer after you display the GUI. Otherwise\nyou'll get a blocked thread.\n\n" }, { "from": "human", "value": "package edu.pdx.cs410G.swing;\n\nimport java.awt.BorderLayout;\nimport java.awt.event.ActionEvent;\nimport java.awt.event.ActionList...
java
chosen
[ { "from": "system", "value": "Make methods abstract to force the dev to implement these correctly (it won't work otherwise anyways).\n" }, { "from": "human", "value": "/*\n * Android SDK for Piwik\n *\n * @link https://github.com/piwik/piwik-android-sdk\n * @license https://github.com/piwik/piwi...
java
chosen
[ { "from": "system", "value": "Revert \"Revert \"Ignore test that causes CI to fail on Java 7 - works locally.\"\"\n\nThis reverts commit 58574fd5fb3c4c5121a82935a48d764efadfc434.\n" }, { "from": "human", "value": "package io.hawt.git;\n\nimport org.junit.After;\nimport org.junit.Before;\nimport ...
java
chosen
[ { "from": "system", "value": "Fix incorrect property name for getUserHomeDirectory()\n\nChange-Id: I34f209afae4d5ab2373aef8174bbee0d2fcfca6b\n" }, { "from": "human", "value": "package ru.linachan.yggdrasil.common;\n\nimport java.io.File;\n\npublic class SystemInfo {\n\n public static File get...
java
chosen
[ { "from": "system", "value": "Add helper to easily cancel AsyncMap tasks\n" }, { "from": "human", "value": "/*\n * Copyright 2016 Peter Kenji Yamanaka\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 a StackTraceMBean to the JMX package.\n" }, { "from": "human", "value": "package com.proofpoint.jmx;\n\nimport com.google.inject.Binder;\nimport com.google.inject.Module;\nimport com.google.inject.Scopes;\nimport com.proofpoint.configuration.ConfigurationModule;...
java
chosen
[ { "from": "system", "value": "JasonLeyba: Make a test case insensitive.\n\nr11860\n" }, { "from": "human", "value": "/*\r\nCopyright 2007-2009 WebDriver committers\r\nCopyright 2007-2009 Google Inc.\r\n\r\nLicensed under the Apache License, Version 2.0 (the \"License\");\r\nyou may not use this ...
java
chosen
[ { "from": "system", "value": "Fix SQL column naming conventions\n" }, { "from": "human", "value": "package com.gitrekt.resort.model.entities;\n\nimport javax.persistence.Column;\nimport javax.persistence.Entity;\nimport javax.persistence.EnumType;\nimport javax.persistence.Enumerated;\nimport ja...
java
chosen
[ { "from": "system", "value": "Fix with platform dependent line separator\n\n" }, { "from": "human", "value": "package org.extendedCLI.ioAdapters;\n\nimport java.io.ByteArrayOutputStream;\nimport java.io.OutputStream;\nimport java.io.PrintWriter;\n\nimport org.junit.Before;\nimport org.junit.Test...
java
chosen
[ { "from": "system", "value": "Make a better public constructor for that thing.\n" }, { "from": "human", "value": "package edu.umass.cs.ciir.waltz.io.galago;\n\nimport edu.umass.cs.ciir.waltz.io.streams.SkipInputStream;\nimport edu.umass.cs.ciir.waltz.io.streams.StaticStream;\nimport org.lemurpro...
java
chosen
[ { "from": "system", "value": "Use internal path to name function\n" }, { "from": "human", "value": "package com.github.sormuras.bach.project;\n\nimport java.nio.file.Files;\nimport java.nio.file.Path;\nimport java.util.regex.Pattern;\n\n/**\n * A source directory potentially targeting a specific...
java
chosen
[ { "from": "system", "value": "Set field expanded to false on detach\n" }, { "from": "human", "value": "package org.orienteer.core.widget.command;\n\nimport org.apache.wicket.ajax.AjaxRequestTarget;\nimport org.apache.wicket.model.Model;\nimport org.orienteer.core.component.command.AjaxCommand;\n...
java
chosen
[ { "from": "system", "value": "Update latest Kafka for testing to 6.0.1\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 the License at\n *\...
java
chosen
[ { "from": "system", "value": "Fix service scheduler crashing when service throws an exception\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 cop...
java
chosen
[ { "from": "system", "value": "Raise coverage. Lets see if this can work with JaCoCo\n" }, { "from": "human", "value": "package sortpom.exception;\n\nimport org.apache.maven.plugin.MojoFailureException;\n\n/**\n * Converts internal runtime FailureException in a method to a MojoFailureException in...
java
chosen
[ { "from": "system", "value": "Allow window size override on command line.\n" }, { "from": "human", "value": "//\n// Triple Play - utilities for use in PlayN-based games\n// Copyright (c) 2011-2013, Three Rings Design, Inc. - All rights reserved.\n// http://github.com/threerings/tripleplay/blob/m...
java
chosen
[ { "from": "system", "value": "Add new line at end of file\n" }, { "from": "human", "value": "/*\n * Copyright (C) 2007 The Guava Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except\n * in compliance with the License. You may obtain a...
java
chosen
[ { "from": "system", "value": "Remove the annotations from u core commands and migrate to the new\nsystem" }, { "from": "human", "value": "package info.u_team.u_team_core.intern.init;\n\nimport info.u_team.u_team_core.UCoreMod;\nimport info.u_team.u_team_core.intern.command.UTeamCoreCommand;\nimp...
java
chosen
[ { "from": "system", "value": "Update for cards package refactoring\n" }, { "from": "human", "value": "package jcrib;\n\npublic class Score {\n\n public enum Type { Fifteen, ThirtyOne, Pair, Run, Flush, Nobs, Heels, Go };\n\n private Type type;\n private Card[] cards;\n private int po...
java
chosen
[ { "from": "system", "value": "Make the partial application more explicit\n" }, { "from": "human", "value": "package adapter;\n\nimport static adapter.adapter2.Level.ERROR;\n\npublic interface adapter2 {\n public interface Logger {\n public void log(String message);\n }\n \n public enum Le...
java
chosen
[ { "from": "system", "value": "Document the testing of the InvFFT algorithm\n" }, { "from": "human", "value": "package nom.bdezonia.zorbage.algorithm; class TestInvFFT {}\n" }, { "from": "gpt", "value": "/*\n * Zorbage: an algebraic data hierarchy for use in numeric processing.\n *\n ...
java
chosen
[ { "from": "system", "value": "Remove invalid proxy config from search facade\n\nChange-Id: I0cc7b4bab426a354524fb49f3670370142e8e9be\n" }, { "from": "human", "value": "package com.cgi.eoss.ftep.search;\n\nimport com.cgi.eoss.ftep.catalogue.CatalogueConfig;\nimport com.cgi.eoss.ftep.persistence.P...
java
chosen
[ { "from": "system", "value": "Add describing text to mismatchDescription in case on mismatch\n" }, { "from": "human", "value": "package retromock.matchers;\n\nimport org.hamcrest.Description;\nimport org.hamcrest.TypeSafeDiagnosingMatcher;\n\nimport java.util.regex.Pattern;\n\npublic class IsReg...
java
chosen
[ { "from": "system", "value": "Add test annotation again, ignore overrides this.\n\ngit-svn-id: 6e5f6f61bd1b925b71fe8065f445f9178a317ca5@353 7701cf9b-ed3c-0410-a7c3-1ff289697e89\n" }, { "from": "human", "value": "package com.crawljax.util;\n\nimport static org.junit.Assert.assertEquals;\nimport s...
java
chosen
[ { "from": "system", "value": "Fix NPE when no adding parameters or exceptions\n" }, { "from": "human", "value": "package asteroid.nodes;\n\nimport asteroid.A;\n\nimport java.util.List;\nimport java.util.ArrayList;\n\nimport org.codehaus.groovy.ast.Parameter;\nimport org.codehaus.groovy.ast.Class...
java
chosen