conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Fix event name not being added in constructor." }, { "from": "human", "value": "package com.woopra;\n\nimport java.util.Properties;\n/**\n * @author Woopra on 1/26/2013\n * \n */\npublic class WoopraEvent {\n\tprivate String eventName = null;\n\tprivate Properties p...
java
chosen
[ { "from": "system", "value": "Update starter test class for step 4\n" }, { "from": "human", "value": "package com.mattcalthrop.examples.selenium;\n\npublic class Selenium3ExampleIT {\n}\n" }, { "from": "gpt", "value": "package com.mattcalthrop.examples.selenium;\n\nimport static org....
java
chosen
[ { "from": "system", "value": "Enforce software renderng pipeline to avoid flickering" }, { "from": "human", "value": "package ${package};\n\nimport net.java.html.boot.BrowserBuilder;\n\npublic final class Main {\n private Main() {\n }\n\n public static void main(String... args) throws E...
java
chosen
[ { "from": "system", "value": "Fix a problem with writing in the correct communication matrix index\n" }, { "from": "human", "value": "\npublic class Message {\n\n\tpublic static final String Start = \"Start\";\n\tpublic static final String Token = \"Token\";\n\tpublic static final String Request...
java
chosen
[ { "from": "system", "value": "Sort mediathek shows by timestamp by default\n" }, { "from": "human", "value": "package de.christinecoenen.code.zapp.mediathek.api;\n\n\nimport java.util.ArrayList;\nimport java.util.List;\n\n@SuppressWarnings(\"unused\")\npublic class QueryRequest {\n\n\tprivate fi...
java
chosen
[ { "from": "system", "value": "Fix typo resouceGroup -> resourceGroup\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 *\n ...
java
chosen
[ { "from": "system", "value": "Add activating and stopping states.\n" }, { "from": "human", "value": "package sg.ncl.service.realization.domain;\n\n/**\n * Created by Desmond.\n */\npublic enum RealizationState {\n ACTIVE, STOP, WARNING\n}\n" }, { "from": "gpt", "value": "package s...
java
chosen
[ { "from": "system", "value": "Update copyright notice with MIT license" }, { "from": "human", "value": "/*++\r\n\r\nNASM Assembly Language Plugin\r\nCopyright (c) 2017-2018 Aidan Khoury. All rights reserved.\r\n\r\nThis program is free software: you can redistribute it and/or modify\r\nit under ...
java
chosen
[ { "from": "system", "value": "Add support to multiple ontologies as well as add the unitText and unitCode fields\n" }, { "from": "human", "value": "package uk.ac.ebi.biosamples.model;\n\nimport com.fasterxml.jackson.annotation.JsonInclude;\nimport com.fasterxml.jackson.annotation.JsonProperty;\n...
java
chosen
[ { "from": "system", "value": "Fix bug when changing volume using PCM\n\nFixes a bug when changing volume using PCM. Not sure if this is the proper way..." }, { "from": "human", "value": "package com.sedmelluq.discord.lavaplayer.format.transcoder;\n\nimport com.sedmelluq.discord.lavaplayer.format...
java
chosen
[ { "from": "system", "value": "Use proper CC version id (this only works with versions older than CC1.6, but we can't do nothing about that)\n" }, { "from": "human", "value": "package openperipheral;\n\npublic class ModInfo {\n\tpublic static final String ID = \"OpenPeripheralCore\";\n\tpublic st...
java
chosen
[ { "from": "system", "value": "Fix up a parse error\n\nThe non-generic ParseQueryAdapter class fails when results are read due\nto a cast error:\n\n java.lang.ClassCastException: com.parse.ParseObject cannot be cast to org.ashanet.typedef.Event\n \tat org.ashanet.adapter.EventListAdapter.getItemView(Ev...
java
chosen
[ { "from": "system", "value": "Make event type more explicit in examples\n" }, { "from": "human", "value": "package eventstore.j.examples;\n\nimport eventstore.EventData;\nimport eventstore.j.EventDataBuilder;\n\nimport java.util.UUID;\n\npublic class EventDataBuilderExample {\n\n final EventD...
java
chosen
[ { "from": "system", "value": "Add support for linux with File.separator\n" }, { "from": "human", "value": "package org.apache.maven.siteindexer.mojo;\n\nimport java.io.IOException;\n\nimport org.apache.maven.plugin.AbstractMojo;\nimport org.apache.maven.plugin.MojoExecutionException;\nimport org...
java
chosen
[ { "from": "system", "value": "Modify datasource example to actually show driver name\n" }, { "from": "human", "value": "package org.wildfly.swarm.examples.ds.war;\n\nimport java.sql.Connection;\nimport java.sql.SQLException;\n\nimport javax.naming.Context;\nimport javax.naming.InitialContext;\ni...
java
chosen
[ { "from": "system", "value": "Check if MergeManager's addResourceToMerge(String, String) had been called\n" }, { "from": "human", "value": "package com.izforge.izpack.compiler.packager.impl;\n\nimport static org.junit.Assert.fail;\n\nimport java.io.IOException;\n\nimport org.dom4j.dom.DOMElement...
java
chosen
[ { "from": "system", "value": "Change version in specific version for Edge test\n" }, { "from": "human", "value": "/*\n * (C) Copyright 2015 Boni Garcia (http://bonigarcia.github.io/)\n *\n * All rights reserved. This program and the accompanying materials\n * are made available under the terms o...
java
chosen
[ { "from": "system", "value": "Add LatLng list support for direction request\n" }, { "from": "human", "value": "/*\n\nCopyright 2015 Akexorcist\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a ...
java
chosen
[ { "from": "system", "value": "Revert \"Revert \"Доработки в тесте на модификацию группы\"\"\n\nThis reverts commit 6ea561d6543351b6c4c1977a470eabef096b69e6.\n" }, { "from": "human", "value": "package ru.stqa.pft.addressbook.tests;\n\nimport org.testng.annotations.Test;\nimport ru.stqa.pft.addres...
java
chosen
[ { "from": "system", "value": "Fix re-evaluation loop with assignment expression\n" }, { "from": "human", "value": "package com.madisp.bad.expr;\n\nimport com.madisp.bad.eval.BadConverter;\nimport com.madisp.bad.eval.Scope;\nimport com.madisp.bad.eval.Watcher;\n\n/**\n * Created with IntelliJ IDE...
java
chosen
[ { "from": "system", "value": "Add access to list of elements\n" }, { "from": "human", "value": "package com.grayben.riskExtractor.htmlScorer;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class ScoredText {\n\tprivate List<ScoredTextElement> text;\n\n\tpublic ScoredText() {\n\...
java
chosen
[ { "from": "system", "value": "Remove some unneeded code, as StringHelper.readCommaSeperatedString already trims values\n" }, { "from": "human", "value": "package com.khorn.terraincontrol.configuration.settingType;\n\nimport com.khorn.terraincontrol.exception.InvalidConfigException;\nimport com.k...
java
chosen
[ { "from": "system", "value": "Use Class.forName instead of class loader\n\nClass loader seems to be null on the bootclasspath\n\nSigned-off-by: Stefan Marr <46f1a0bd5592a2f9244ca321b129902a06b53e03@stefan-marr.de>\n" }, { "from": "human", "value": "package bd.settings;\n\n/**\n * VmSettings are ...
java
chosen
[ { "from": "system", "value": "Fix misleading test method name to avoid confusion.\n\nsvn path=/incubator/harmony/enhanced/classlib/trunk/; revision=380843\n" }, { "from": "human", "value": "/* Copyright 2006 The Apache Software Foundation or its licensors, as applicable\r\n * \r\n * Licensed und...
java
chosen
[ { "from": "system", "value": "Add javadocs for drive position\n" }, { "from": "human", "value": "package org.robockets.stronghold.robot.commands;\n\nimport org.robockets.stronghold.robot.highgoalshooter.MoveHood;\nimport org.robockets.stronghold.robot.highgoalshooter.MoveTurnTable;\nimport org.r...
java
chosen
[ { "from": "system", "value": "Add some codes to test Class object." }, { "from": "human", "value": "package study.hard.javalib.nativelib;\n\npublic class GetClassTest {\n\n\tpublic static void main(String[] args) {\n\t\tGetClassTest tester = new GetClassTest();\n\t\tExtendedClassA extendedA = te...
java
chosen
[ { "from": "system", "value": "Add place to put constructors\n" }, { "from": "human", "value": "package THE_PACKAGE;\n\nimport org.jruby.Ruby;\nimport org.jruby.javasupport.util.RuntimeHelpers;\nimport org.jruby.runtime.builtin.IRubyObject;\nimport org.jruby.javasupport.JavaUtil;\nimport org.jrub...
java
chosen
[ { "from": "system", "value": "Fix test for new nexus gallery structure\n" }, { "from": "human", "value": "package me.devsaki.hentoid.json.sources;\n\nimport com.annimon.stream.Stream;\n\nimport java.util.List;\n\npublic class NexusGallery {\n private String b;\n private String r;\n priv...
java
chosen
[ { "from": "system", "value": "Handle back pressure in MGDelay - it should drop.\n" }, { "from": "human", "value": "package com.miguelgaeta.bootstrap.mg_delay;\n\nimport java.util.concurrent.TimeUnit;\n\nimport rx.Observable;\n\n/**\n * Created by Miguel Gaeta on 2/17/15.\n */\nclass MGDelayUtil ...
java
chosen
[ { "from": "system", "value": "Update PostgreSQL transaction id query\n" }, { "from": "human", "value": "package com.vladmihalcea.book.hpjp.util.providers.queries;\n\n/**\n * @author Vlad Mihalcea\n */\npublic class PostgreSQLQueries implements Queries {\n\n public static final Queries INSTANC...
java
chosen
[ { "from": "system", "value": "Fix NullPointerException when referencing an already deleted ent\n\nNullPointerExceptions could happen when logging a debug message\nrelated to an entity that has already been removed from the\nEntityCollection.\n" }, { "from": "human", "value": "package skadistats....
java
chosen
[ { "from": "system", "value": "Fix problem with context load\n" }, { "from": "human", "value": "package com.jmb.springfactory.service.productionschedule;\n\nimport org.springframework.beans.factory.annotation.Autowired;\n\nimport com.jmb.springfactory.dao.GenericMySQLService;\nimport com.jmb.spri...
java
chosen
[ { "from": "system", "value": "Print command usage on errors\n" }, { "from": "human", "value": "package forager.newui;\n\nimport java.util.HashMap;\nimport java.util.Map;\n\npublic class Launcher {\n\n public static void main(String[] args) throws Exception {\n if (args.length < 1) {\n ...
java
chosen
[ { "from": "system", "value": "Check if music is playing before skipping in music skip command\n\n" }, { "from": "human", "value": "package com.avairebot.orion.commands.music;\n\nimport com.avairebot.orion.Orion;\nimport com.avairebot.orion.audio.AudioHandler;\nimport com.avairebot.orion.contract...
java
chosen
[ { "from": "system", "value": "Throw 404 exception when accessing with invalid userId\n" }, { "from": "human", "value": "package com.sangdol.experiment.portableDb;\n\nimport com.codahale.metrics.annotation.Timed;\n\nimport javax.ws.rs.*;\nimport javax.ws.rs.core.MediaType;\nimport java.util.List;...
java
chosen
[ { "from": "system", "value": "Add method to process headers\n" }, { "from": "human", "value": "package uk.ac.ebi.spot.goci.service;\n\nimport org.apache.poi.xssf.usermodel.XSSFSheet;\nimport uk.ac.ebi.spot.goci.model.AssociationUploadRow;\n\nimport java.util.Collection;\n\n/**\n * Created by emm...
java
chosen
[ { "from": "system", "value": "[FIX] Fix wrong member in getter.\n" }, { "from": "human", "value": "package de.apileipzig.mediahandbook.entity;\n\n/**\n * Default implementation of a Branch.\n *\n * @author cpieloth\n */\npublic class DefaultBranch implements Branch {\n private int id;\n pr...
java
chosen
[ { "from": "system", "value": "BUG-2459: Fix netconf-monitoring not reusing JAXB context\n\nJAXBContext can be freely reused, so cache it, as it has significant\nfootprint in testing tool.\n\nChange-Id: If2f53b9dfd4a1d30390580fd800aa2f5eb4e2b72\nSigned-off-by: Robert Varga <b8bd3df785fdc0ff42dd1710c5d9199851...
java
chosen
[ { "from": "system", "value": "Make canUndo true because @jaredlll08 told me to.\n" }, { "from": "human", "value": "package joshie.harvest.plugins.crafttweaker;\n\nimport minetweaker.IUndoableAction;\nimport minetweaker.api.item.IIngredient;\nimport minetweaker.api.oredict.IOreDictEntry;\nimport ...
java
chosen
[ { "from": "system", "value": "Make missing password and error\n\nIf the URL is set but no password\nthis is clearly a config error.\n" }, { "from": "human", "value": "package io.quarkus.vertx.http.deployment.devmode;\n\nimport java.util.Optional;\n\nimport org.jboss.logging.Logger;\n\nimport io....
java
chosen
[ { "from": "system", "value": "Set VM policy for Strict Mode\n" }, { "from": "human", "value": "package com.wkovacs64.mtorch;\n\nimport android.app.Application;\nimport android.os.Build;\nimport android.os.StrictMode;\n\nimport timber.log.Timber;\n\npublic final class CustomApplication extends Ap...
java
chosen
[ { "from": "system", "value": "Add QR Code scanning functionality\n" }, { "from": "human", "value": "package io.github.shark_app.shark;\n\nimport android.support.v7.app.AppCompatActivity;\nimport android.os.Bundle;\n\npublic class ScanActivity extends AppCompatActivity {\n\n @Override\n pro...
java
chosen
[ { "from": "system", "value": "Return logging removed in 1b3de81d\n\nI think this logging should still be here. Is that right, @slifty?\n" }, { "from": "human", "value": "//package org.openhmis.provider;\n//\n//import javax.ws.rs.WebApplicationException;\n//import javax.ws.rs.core.Response;\n//i...
java
chosen
[ { "from": "system", "value": "Use exact bar height calculations.\n" }, { "from": "human", "value": "/*\n * #%L\n * GwtMaterial\n * %%\n * Copyright (C) 2015 - 2017 GwtMaterialDesign\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": "Test all JUnit vintage annotations from TestCaseFinder\n" }, { "from": "human", "value": "package de.retest.recheck;\n\nimport static org.assertj.core.api.Assertions.assertThat;\n\nimport org.junit.Test;\n\npublic class TestCaseFinderJunitVintageTest {\n\n\t@Test\n\...
java
chosen
[ { "from": "system", "value": "Enable SerializeFeature.MapSortField for deterministic order\n" }, { "from": "human", "value": "package com.alibaba.json.bvt.jsonp;\n\nimport com.alibaba.fastjson.JSON;\nimport com.alibaba.fastjson.JSONObject;\nimport com.alibaba.fastjson.JSONPObject;\nimport com.al...
java
chosen
[ { "from": "system", "value": "Reset setup of step zero\n" }, { "from": "human", "value": "import java.util.spi.ToolProvider;\n\n/** Use tool provider to find and run javac tool. */\nclass Tool0 {\n public static void main(String... args) {\n ToolProvider.findFirst(\"javac\").orElseThrow().ru...
java
chosen
[ { "from": "system", "value": "Switch back to DROP IF EXISTS\n" }, { "from": "human", "value": "package me.xdrop.passlock.datasource.sqlite;\n\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\n\nimport java.sql.Connection;\nimport java.sql.PreparedStatement;\nimport java.sql.SQLExceptio...
java
chosen
[ { "from": "system", "value": "Remove constructor w/o fbUrl; empty string guaranteed\n" }, { "from": "human", "value": "package edu.deanza.calendar.models;\n\n/**\n * Created by soso1 on 8/8/2016.\n */\n\npublic class Organization {\n\n protected String name;\n protected String description;...
java
chosen
[ { "from": "system", "value": "Augment error message during testing to include full cause of problem. (round 2 to avoid null ptr)\n\nSigned-off-by: Terence Parr <275b89323d950c58c02f5ad8c33bac7ecb40d004@antlr.org>\n" }, { "from": "human", "value": "/*\n * Copyright (c) 2012-2022 The ANTLR Project...
java
chosen
[ { "from": "system", "value": "Add thread name to the state machine\n" }, { "from": "human", "value": "package org.elasticsoftware.elasticactors.kubernetes.cluster.statemachine.impl;\n\nimport io.fabric8.kubernetes.api.model.apps.StatefulSet;\nimport org.elasticsoftware.elasticactors.kubernetes.c...
java
chosen
[ { "from": "system", "value": "Remove single slider entry from plugin settings\n\n" }, { "from": "human", "value": "package com.github.slidekb.back.settings;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class PluginSettings {\n String usedSlider;\n List<String> processes...
java
chosen
[ { "from": "system", "value": "Allow conversion to Integer from constant.\n" }, { "from": "human", "value": "package mytown.protection.segment.getter;\n\npublic class GetterConstant extends Getter {\n\n public final Object constant;\n\n public GetterConstant(Object constant) {\n this...
java
chosen
[ { "from": "system", "value": "Change window size for desktop\n" }, { "from": "human", "value": "package cc.clv.BlueRobe.desktop;\n\nimport com.badlogic.gdx.backends.lwjgl.LwjglApplication;\nimport com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration;\n\nimport cc.clv.BlueRobe.BlueRobe;\...
java
chosen
[ { "from": "system", "value": "Use static imports for standard test utilities\n\n\n\npr-link: Alluxio/alluxio#8985\nchange-id: cid-2520d114c17da815ef1c596fb55e0b9a64d7070d" }, { "from": "human", "value": "/*\n * The Alluxio Open Foundation licenses this work under the Apache License, version 2.0\...
java
chosen
[ { "from": "system", "value": "Make the validation query constant private\n" }, { "from": "human", "value": "package com.github.arteam.jdbi3;\n\nimport com.codahale.metrics.health.HealthCheck;\nimport io.dropwizard.db.TimeBoundHealthCheck;\nimport io.dropwizard.util.Duration;\nimport org.jdbi.v3....
java
chosen
[ { "from": "system", "value": "Increase max message size for responses\n" }, { "from": "human", "value": "/**\n * Copyright 2016 Gertjan Al\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 ob...
java
chosen
[ { "from": "system", "value": "Add Javadoc for 'error' package.\n" }, { "from": "human", "value": "/*\n * Copyright 2015, TeamDev Ltd. 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 and th...
java
chosen
[ { "from": "system", "value": "Disable call to Analytics in the background_crash process\n" }, { "from": "human", "value": "package com.ianhanniballake.contractiontimer;\n\nimport android.app.Application;\n\nimport com.google.firebase.analytics.FirebaseAnalytics;\nimport com.ianhanniballake.contr...
java
chosen
[ { "from": "system", "value": "JNI: Rename member variable to fit with usage.\n\nPage_getSeparation() does the corresponding conversion.\n" }, { "from": "human", "value": "package com.artifex.mupdf.fitz;\n\npublic class Separation\n{\n\tpublic String name;\n\tpublic int rgba;\n\tpublic int cmyk;\...
java
chosen
[ { "from": "system", "value": "Add alias \"state\" for condition type \"status\"." }, { "from": "human", "value": "package de.iani.cubequest.conditions;\r\n\r\n\r\npublic enum ConditionType {\r\n \r\n NEGATED(NegatedQuestCondition.class),\r\n RENAMED(RenamedCondition.class),\r\n GAMEM...
java
chosen
[ { "from": "system", "value": "Replace anonymous type with lambda\n\n\n\npr-link: Alluxio/alluxio#8648\nchange-id: cid-50ff894a3d0e24b07fe4fb2585530b5032008f0b" }, { "from": "human", "value": "/*\n * The Alluxio Open Foundation licenses this work under the Apache License, version 2.0\n * (the \"L...
java
chosen
[ { "from": "system", "value": "Add UP and DOWN enums\n" }, { "from": "human", "value": "package org.robockets.stronghold.robot.intake;\n\npublic enum Direction {\n\tFORWARD,\n\tBACKWARD,\n\tLEFT,\n\tRIGHT,\n\tSTOP;\n}\n" }, { "from": "gpt", "value": "package org.robockets.stronghold.r...
java
chosen
[ { "from": "system", "value": "Add onError in WebSocket example\n" }, { "from": "human", "value": "package edu.javacourse.websocket;\n\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\n\nimport javax.websocket.*;\nimport javax.websocket.server.ServerEndpoint;\n\n/**\n * @author Artem Pr...
java
chosen
[ { "from": "system", "value": "Add empty implementations of now-default methods for backwards compatibility\n\nTook 8 minutes\n" }, { "from": "human", "value": "package com.darkyen;\n\nimport com.intellij.openapi.application.Application;\nimport com.intellij.openapi.application.ApplicationManager...
java
chosen
[ { "from": "system", "value": "Add confirmation box before exit\n" }, { "from": "human", "value": "package es.ucm.fdi.tp.views.swing.controlpanel;\n\nimport java.awt.FlowLayout;\nimport java.awt.event.ActionEvent;\nimport java.awt.event.ActionListener;\n\nimport javax.swing.JButton;\nimport javax...
java
chosen
[ { "from": "system", "value": "Maintain Java 6 compatibility for now\n" }, { "from": "human", "value": "/*\n * Copyright (C) 2011 Information Management Services, Inc.\n */\npackage com.imsweb.seerapi.client.cs;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\nimport org.codehaus.jackson...
java
chosen
[ { "from": "system", "value": "Fix calendarId not being returned in response\n" }, { "from": "human", "value": "package com.google.step.coffee.data;\n\nimport com.google.appengine.api.datastore.*;\nimport com.google.step.coffee.entity.Event;\n\npublic class EventStore {\n private DatastoreServic...
java
chosen
[ { "from": "system", "value": "Add missing serial version id\n" }, { "from": "human", "value": "/*\n * Copyright 2015 michael-simons.eu.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtai...
java
chosen
[ { "from": "system", "value": "Add a mechanism for creating and deleting a bucket after a dataflow test.\n" }, { "from": "human", "value": "package com.neverwinterdp.scribengin.dataflow.test;\n\nimport com.beust.jcommander.Parameter;\nimport com.beust.jcommander.ParametersDelegate;\nimport com.ne...
java
chosen
[ { "from": "system", "value": "Update JavaDoc references in EvalCommand\n" }, { "from": "human", "value": "package org.metaborg.spoofax.shell.commands;\n\nimport java.util.function.Consumer;\n\nimport com.google.inject.Inject;\nimport com.google.inject.name.Named;\n\n/**\n * Command for evaluatin...
java
chosen
[ { "from": "system", "value": "Refresh access token while we're at it.\n" }, { "from": "human", "value": "package com.uwetrottmann.getglue;\n\nimport junit.framework.TestCase;\nimport org.apache.oltu.oauth2.common.exception.OAuthProblemException;\nimport org.apache.oltu.oauth2.common.exception.OA...
java
chosen
[ { "from": "system", "value": "Switch dropconnect to native op\n" }, { "from": "human", "value": "package org.deeplearning4j.util;\n\nimport org.deeplearning4j.nn.api.Layer;\nimport org.nd4j.linalg.api.ndarray.INDArray;\nimport org.nd4j.linalg.api.ops.impl.transforms.DropOutInverted;\nimport org....
java
chosen
[ { "from": "system", "value": "Test getting activity for at least two movies.\n" }, { "from": "human", "value": "package com.jakewharton.trakt.services;\n\nimport com.jakewharton.trakt.BaseTestCase;\nimport com.jakewharton.trakt.entities.Activity;\n\npublic class ActivityServiceTest extends BaseT...
java
chosen
[ { "from": "system", "value": "Use UnixDocket in OkHttp as well" }, { "from": "human", "value": "package com.github.dockerjava.okhttp;\n\nimport com.github.dockerjava.transport.DomainSocket;\n\nimport javax.net.SocketFactory;\nimport java.io.IOException;\nimport java.net.InetAddress;\nimport java...
java
chosen
[ { "from": "system", "value": "Revert \"Revert \"add line separator\"\"\n\nThis reverts commit 41e1b3ffd43fd15eba9aff564e90abc91dc5f49d.\n" }, { "from": "human", "value": "package ru.stqa.pft.addressbook.tests;\n\nimport org.testng.annotations.Test;\nimport ru.stqa.pft.addressbook.model.ContactDa...
java
chosen
[ { "from": "system", "value": "Use mockito in data listener tests.\n" }, { "from": "human", "value": "// Copyright (c) 2014 Eugene Zhuk.\n// Use of this source code is governed by the MIT license that can be found\n// in the LICENSE file.\n\npackage com.ezhuk.wear.common;\n\nimport com.google.and...
java
chosen
[ { "from": "system", "value": "Make the UI use the native look and feel of the system itself.. Don't hardcode it!\n" }, { "from": "human", "value": "import guiLayer.startUpFrame;\nimport javax.swing.*;\nimport javax.swing.border.EmptyBorder;\nimport java.awt.*;\nimport java.sql.SQLException;\n\np...
java
chosen
[ { "from": "system", "value": "Allow late subscribers to immediately get the visibility status\n" }, { "from": "human", "value": "package com.gramboid.rxappfocus;\n\nimport android.app.Activity;\nimport android.app.Application;\nimport android.app.Application.ActivityLifecycleCallbacks;\n\nimport...
java
chosen
[ { "from": "system", "value": "Improve comparison between two pojos\n" }, { "from": "human", "value": "package fr.neamar.kiss.pojo;\n\nimport java.util.Comparator;\n\npublic class PojoComparator implements Comparator<Pojo> {\n @Override\n public int compare(Pojo lhs, Pojo rhs) {\n re...
java
chosen
[ { "from": "system", "value": "Implement the in memory event store so unit test passes.\n" }, { "from": "human", "value": "package com.sloshydog.eventuate.inmemory;\n\nimport com.sloshydog.eventuate.api.Event;\nimport com.sloshydog.eventuate.api.EventSpecification;\nimport com.sloshydog.eventuate...
java
chosen
[ { "from": "system", "value": "Use a generic key instead of PublicKey\n" }, { "from": "human", "value": "package org.rmatil.sync.persistence.core.dht;\n\nimport net.tomp2p.peers.Number160;\nimport net.tomp2p.utils.Utils;\nimport org.rmatil.sync.persistence.api.IPathElement;\n\nimport java.securit...
java
chosen
[ { "from": "system", "value": "Put shiro module into an easily overridable function\n" }, { "from": "human", "value": "package com.nitorcreations.willow.servers;\n\nimport javax.servlet.ServletContext;\nimport javax.servlet.ServletContextEvent;\n\nimport org.apache.shiro.guice.web.ShiroWebModule;...
java
chosen
[ { "from": "system", "value": "Refactor and follow codacy.com best practices" }, { "from": "human", "value": "/*\r\n * To change this license header, choose License Headers in Project Properties.\r\n * To change this template file, choose Tools | Templates\r\n * and open the template in the edito...
java
chosen
[ { "from": "system", "value": "Add methods for converting resolution independent pixels (dp) to real pixels and the other way round.\n" }, { "from": "human", "value": "/*\n * *\n * * LayoutUtil.java\n * * as part of mkcommons-android\n * *\n * * Created by michaelkuck, last updated on 7/25/14...
java
chosen
[ { "from": "system", "value": "Add constants for the msg metrics and rest endpoints\n" }, { "from": "human", "value": "package org.jboss.rhiot.services.api;\n\n/**\n * Created by sstark on 5/25/16.\n */\npublic interface IRHIoTTagScanner {\n}\n" }, { "from": "gpt", "value": "package o...
java
chosen
[ { "from": "system", "value": "Move test to asserting the result of the script instead of doing a simple text comparison.\n" }, { "from": "human", "value": "package net.symphonious.commonjs;\n\nimport org.junit.Test;\n\nimport static org.hamcrest.CoreMatchers.is;\nimport static org.junit.Assert.a...
java
chosen
[ { "from": "system", "value": "Fix generated package name\nAdded license information" }, { "from": "human", "value": "/**\n * Common utility classes.\n */\npackage com.github.dkorotych.test.utils;\n" }, { "from": "gpt", "value": "/*\n * Copyright 2016 Dmitry Korotych (dkorotych at gma...
java
chosen
[ { "from": "system", "value": "Break unit tests to verify travis functionality\n" }, { "from": "human", "value": "package com.lasarobotics.library;\n\nimport com.lasarobotics.library.util.MathUtil;\n\nimport org.junit.Test;\n\nimport static org.hamcrest.CoreMatchers.is;\nimport static org.junit.A...
java
chosen
[ { "from": "system", "value": "Remove unused method and add some javadoc.\n" }, { "from": "human", "value": "package com.github.pedrovgs.nox.path;\n\n/**\n * Spiral Path implementation used to place NoxItem objects in a equiangular spiral starting from\n * the center of the view. NoxItem instance...
java
chosen
[ { "from": "system", "value": "Add iterative solution to problem 39\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 Licen...
java
chosen
[ { "from": "system", "value": "Add proper string for arm64 arch\n" }, { "from": "human", "value": "package fuzion24.device.vulnerability.util;\n\npublic enum CPUArch {\n ARM(\"armeabi\"),\n ARM7(\"armeabi-v7a\"),\n ARM8(\"arm64\"),\n X86(\"x86\"),\n X64(\"x64\"),\n MIPS(\"MIPS\"...
java
chosen
[ { "from": "system", "value": "Fix: Add strong attributes of Sizebay\n" }, { "from": "human", "value": "package sizebay.catalog.client.model;\n\nimport java.io.Serializable;\nimport java.util.Map;\nimport lombok.*;\nimport lombok.experimental.Accessors;\n\n@Data\n@Accessors(chain = true)\n@NoArgs...
java
chosen
[ { "from": "system", "value": "Modify package info with the default namespace\n" }, { "from": "human", "value": "/*\n ChargeTime.eu - Java-OCA-OCPP\n \n MIT License\n\n Copyright (C) 2016-2018 Thomas Volden <tv@chargetime.eu>\n\n Permission is hereby granted, free of charge, to any...
java
chosen
[ { "from": "system", "value": "Revert \"xls Parser fix for ignore last lines\"\n" }, { "from": "human", "value": "package com.health.input;\n\nimport java.util.List;\n\nimport com.health.Record;\nimport com.health.Table;\n\n<<<<<<< HEAD\n/**\n * A class for functions with can be called on all inp...
java
chosen
[ { "from": "system", "value": "Correct extra * in javadoc.\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 copy...
java
chosen
[ { "from": "system", "value": "Tweak to error message propagation" }, { "from": "human", "value": "package uk.ac.ebi.biosamples.neo;\n\nimport java.util.Collection;\nimport java.util.Random;\n\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\nimport org.springframework.dao.ConcurrencyFa...
java
chosen
[ { "from": "system", "value": "Fix anchor used to check if animations should run\n" }, { "from": "human", "value": "package io.doist.recyclerviewext.flippers;\n\nimport android.support.v4.view.ViewCompat;\nimport android.view.View;\n\n/**\n * Flips between views with a common ancestor using a {@l...
java
chosen
[ { "from": "system", "value": "NXP-11577: Fix Sonar Major violation: Hide Utility Class Constructor\n" }, { "from": "human", "value": "package org.nuxeo.drive.service.impl;\n\nimport java.util.HashSet;\nimport java.util.LinkedHashMap;\nimport java.util.Map;\nimport java.util.Set;\n\nimport org.ap...
java
chosen
[ { "from": "system", "value": "Add (failed) attempt to grant ourselves READ_LOGS permission\n" }, { "from": "human", "value": "package com.innovattic.logeverywhere;\n\nimport android.app.Activity;\nimport android.content.Intent;\nimport android.os.Bundle;\n\nimport butterknife.ButterKnife;\nimpor...
java
chosen