conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "human",
"value": "Add enumiration for overlay positioning."
},
{
"from": "gpt",
"value": "/*\n * Copyright 2016 Serge Silaev aka iSergio <s.serge.b@gmail.com>.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance ... | java | chosen |
[
{
"from": "human",
"value": "Add Unit Test to test ItemModel.saveAndUpdateModel()"
},
{
"from": "gpt",
"value": "package devopsdistilled.operp.client.items.model;\n\nimport static org.junit.Assert.assertEquals;\nimport static org.junit.Assert.assertNotNull;\n\nimport javax.inject.Inject;\n\nimpo... | java | chosen |
[
{
"from": "human",
"value": "Revert \"adding userinfo presenter and view imp\"\n\nThis reverts commit f39a7d54f759611ea85303fef851be48b53bf218.\n"
},
{
"from": "gpt",
"value": "package com.zzsoft.githubandroidclientsample;\n\nimport android.support.v7.app.AppCompatActivity;\nimport android.os.Bu... | java | chosen |
[
{
"from": "human",
"value": "Add Attitude law wrapper provider.\n"
},
{
"from": "gpt",
"value": "package org.orekit.attitudes;\n\nimport org.orekit.errors.OrekitException;\nimport org.orekit.frames.Frame;\nimport org.orekit.time.AbsoluteDate;\nimport org.orekit.utils.PVCoordinatesProvider;\n\n/*... | java | chosen |
[
{
"from": "human",
"value": "Add command for adjusting the cannon\n\nisFinished() probably shouldn't return false, but we'll leave it at that until we have something better.\n"
},
{
"from": "gpt",
"value": "package org.robockets.tshirtcannon.subsystems.cannon;\n\nimport edu.wpi.first.wpilibj.com... | java | chosen |
[
{
"from": "human",
"value": "Add a functional interface for bounded random generators.\n"
},
{
"from": "gpt",
"value": "package org.uma.jmetal.util.pseudorandom;\n\n/**\n * A {@link BoundedRandomGenerator} aims to provide a random value within a\n * specific range. The range is inclusive, such t... | java | chosen |
[
{
"from": "human",
"value": "Add a byte buf marshaller for use until Concrete 0.0.7+ is on maven.\n"
},
{
"from": "gpt",
"value": "package com.elytradev.movingworld.common.network.marshallers;\n\nimport io.github.elytra.concrete.Marshaller;\nimport io.netty.buffer.ByteBuf;\nimport net.minecraftf... | java | chosen |
[
{
"from": "human",
"value": "Add the episodes/watched (DELETE) request\n"
},
{
"from": "gpt",
"value": "package com.alexrnl.jbetaseries.request.episodes;\n\nimport com.alexrnl.jbetaseries.request.APIAddresses;\nimport com.alexrnl.jbetaseries.request.Request;\nimport com.alexrnl.jbetaseries.reque... | java | chosen |
[
{
"from": "human",
"value": "Move discovery module loader to core, to avoid cyclic dependencies\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2015 Rackspace\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with... | java | chosen |
[
{
"from": "human",
"value": "Insert new files, Alura, Projeto de Algoritmos 1, Aula 6\n"
},
{
"from": "gpt",
"value": "public class TestaMenorPreco {\n\n public static void main(String[] args) {\n\n double precos[] = new double[5];\n precos[0] = 1000000;\n precos[1] = 46000;\n preco... | java | chosen |
[
{
"from": "human",
"value": "Add unit test to make sure return values are not sliced\n"
},
{
"from": "gpt",
"value": "package com.github.dnault.therapi.core;\n\nimport com.github.dnault.therapi.core.annotation.Remotable;\nimport org.junit.Before;\nimport org.junit.Test;\n\nimport java.util.Array... | java | chosen |
[
{
"from": "human",
"value": "Add test for geojson entity\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (c) 2015 Ushahidi Inc\n *\n * This program is free software: you can redistribute it and/or modify it under\n * the terms of the GNU Affero General Public License as published by the Free\... | java | chosen |
[
{
"from": "human",
"value": "Add a simple test for RestProxyFactoryImpl\n"
},
{
"from": "gpt",
"value": "package si.mazi.rescu;\n\nimport org.testng.annotations.Test;\n\nimport static org.assertj.core.api.Assertions.assertThat;\n\npublic class RestProxyFactoryImplTest {\n\n @Test\n public ... | java | chosen |
[
{
"from": "human",
"value": "[APPDEV-442] Create class for data transferring between two fragments\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (c) 2016 Stichting Yona Foundation\n *\n * This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of th... | java | chosen |
[
{
"from": "human",
"value": "Add missing new file, remixer widget\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2016 Google Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a... | java | chosen |
[
{
"from": "human",
"value": "Add basic test for the AddOn class\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2018 Daniel Gredler\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain ... | java | chosen |
[
{
"from": "human",
"value": "Add a test, currently failing, for the google.com redirectors.\n"
},
{
"from": "gpt",
"value": "package com.chimbori.crux.urls;\n\nimport org.junit.Test;\n\nimport static org.junit.Assert.assertEquals;\n\npublic class RedirectorsTest {\n @Test\n public void testGoo... | java | chosen |
[
{
"from": "human",
"value": "Add unit tests for org.rapidpm.frp.model.Triple\nThese tests were written using Diffblue Cover.\n"
},
{
"from": "gpt",
"value": "package junit.org.rapidpm.frp.model;\n\nimport static org.junit.jupiter.api.Assertions.assertEquals;\nimport static org.junit.jupiter.api.... | java | chosen |
[
{
"from": "human",
"value": "Add a test showing HexDumpBytes is little endian (on machines which are little endian)\n"
},
{
"from": "gpt",
"value": "package net.openhft.chronicle.wire;\n\nimport net.openhft.chronicle.bytes.Bytes;\nimport net.openhft.chronicle.bytes.HexDumpBytes;\nimport org.juni... | java | chosen |
[
{
"from": "human",
"value": "[core] Add unit test for Cut String source\n"
},
{
"from": "gpt",
"value": "package org.museautomation.builtins.value.string;\n\nimport org.junit.jupiter.api.*;\nimport org.museautomation.builtins.value.file.*;\nimport org.museautomation.core.*;\nimport org.museautom... | java | chosen |
[
{
"from": "human",
"value": "Add UserIs matcher junit test\n\ngit-svn-id: de9d04cf23151003780adc3e4ddb7078e3680318@416435 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "gpt",
"value": "/***********************************************************************\n * Copyright (c) 2006 The Apac... | java | chosen |
[
{
"from": "human",
"value": "Add stub for binary search example\n"
},
{
"from": "gpt",
"value": "package codesample.algorithms.mix;\n\nimport java.util.List;\n\npublic class BinarySearch<T extends Comparable<T>> {\n\n public static <T> List<T> search (List<T> array) {\n return null;\n ... | java | chosen |
[
{
"from": "human",
"value": "Add some tests to problem 27\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 BigDecimal-related test (wrt holding precision)\n"
},
{
"from": "gpt",
"value": "package com.fasterxml.jackson.dataformat.xml.deser;\n\nimport java.math.BigDecimal;\n\nimport com.fasterxml.jackson.annotation.JsonProperty;\nimport com.fasterxml.jackson.annotation.... | java | chosen |
[
{
"from": "human",
"value": "Add unit test for LoginActivityEntity (DEV-15)\n"
},
{
"from": "gpt",
"value": "package sg.ncl.testbed_interface.repositories.jpa.entities;\n\nimport org.apache.commons.lang3.RandomStringUtils;\nimport org.junit.Test;\n\nimport java.time.ZonedDateTime;\nimport java.u... | java | chosen |
[
{
"from": "human",
"value": "Define exception for exceeding the maximum size of a UniqueBoundedList"
},
{
"from": "gpt",
"value": "package de.darthpumpkin.pkmnlib;\n\n/**\n * Thrown to indicate that a {@link Team} has been expanded above its allowed\n * maximum size.\n * \n * @author dominik\n *... | java | chosen |
[
{
"from": "human",
"value": "Add custom EventBus events for Guava\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2015 Ryan Gilera.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain ... | java | chosen |
[
{
"from": "human",
"value": "Use for-each style for on a two-dimensional array"
},
{
"from": "gpt",
"value": "// Use for-each style for on a two-dimensional array.\nclass ForEach2 {\n\tpublic static void main(String args[]) {\n\t\tint sum = 0;\n\t\tint nums[][] = new int[3][5];\n\t\t\n\t\t// giv... | java | chosen |
[
{
"from": "human",
"value": "Test for MinecraftUser equals Method\n"
},
{
"from": "gpt",
"value": "package de.craften.craftenlauncher.logic.auth;\n\nimport org.junit.Test;\n\nimport static org.junit.Assert.*;\n\npublic class MinecraftUserTest {\n\n @Test\n public void testEquals() throws E... | java | chosen |
[
{
"from": "human",
"value": "Add test class (still empty)\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (C) 2015 Jasper Huzen\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a co... | java | chosen |
[
{
"from": "human",
"value": "Add custom exception class for problems during command execution\n"
},
{
"from": "gpt",
"value": "package brooklyn.cli.commands;\n\n/**\n * Exception that can happen during the execution of a {@link BrooklynCommand}\n */\npublic class CommandExecutionException extend... | java | chosen |
[
{
"from": "human",
"value": "Test for correctness of core schemas, suggests a patch, if the schemas differ.\n"
},
{
"from": "gpt",
"value": "package org.ensembl.healthcheck.testcase.eg_core;\n\nimport static org.ensembl.healthcheck.DatabaseType.CDNA;\nimport static org.ensembl.healthcheck.Databa... | java | chosen |
[
{
"from": "human",
"value": "Add ActionHandler for getting systems default views\n"
},
{
"from": "gpt",
"value": "package fi.nls.oskari.control.view;\n\nimport java.io.ByteArrayOutputStream;\nimport java.io.IOException;\nimport java.io.OutputStream;\nimport java.util.ArrayList;\nimport java.util... | java | chosen |
[
{
"from": "human",
"value": "Add test for route planner\n"
},
{
"from": "gpt",
"value": "// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\npackage ai.vespa.util.http.hc5;\n\nimport org.apache.hc.client5.http.HttpRoute;\nimport org.a... | java | chosen |
[
{
"from": "human",
"value": "Add basic integration test that checks a simple retrieval of an Environment object.\nSeveral other tests will be added later\n"
},
{
"from": "gpt",
"value": "package com.github.gabrielruiu.spring.cloud.config.redis;\n\nimport com.google.common.collect.Lists;\nimport ... | java | chosen |
[
{
"from": "human",
"value": "Create open license dialog command.\n"
},
{
"from": "gpt",
"value": "package com.github.aureliano.edocs.app.cmd;\n\nimport com.github.aureliano.edocs.app.EdocsApp;\nimport com.github.aureliano.edocs.app.gui.LicenseDialog;\n\npublic class OpenLicenseDialogCommand impl... | java | chosen |
[
{
"from": "human",
"value": "Add tests for SuperBook class\n\n"
},
{
"from": "gpt",
"value": "package com.bkromhout.minerva.data;\n\nimport nl.siegmann.epublib.domain.Author;\nimport nl.siegmann.epublib.domain.Book;\nimport org.junit.Test;\n\n/**\n * Tests the {@link SuperBook} class.\n */\npubl... | java | chosen |
[
{
"from": "human",
"value": "Add fibonacci numbers CTCI challenge\n\n"
},
{
"from": "gpt",
"value": "package com.github.conradoqg.studydsa.hackerrank.challenges.ctci;\n\nimport java.util.Scanner;\n\npublic class FibonacciNumbers {\n public static int fibonacci(int n) {\n if (n <= 0)\n ... | java | chosen |
[
{
"from": "human",
"value": "Test the Cucumber + JUnit integration\n\n This class tests the integration with various junit features (@BeforeClass and @AfterClass). It also has the side effect of testing that the same Gherkin rules and the same Cucumber Step Definitions may appear in more than one file witho... | java | chosen |
[
{
"from": "human",
"value": "Revert \"remove now uneeded calendar format handler\"\n\nThis reverts commit 586c5f9bb5495aa709a9c0adca5e17bb941f5ee2.\n"
},
{
"from": "gpt",
"value": "package org.commcare.engine.extensions;\n\nimport android.content.Context;\n\nimport org.commcare.dalvik.R;\nimport... | java | chosen |
[
{
"from": "human",
"value": "Add interface for testing contingencies\n"
},
{
"from": "gpt",
"value": "/*\n * #%L\n * A framework for reusable algorithms.\n * %%\n * Copyright (C) 2014 Board of Regents of the University of\n * Wisconsin-Madison and University of Konstanz.\n * %%\n * Redistributio... | java | chosen |
[
{
"from": "human",
"value": "Add disabled tests for TIKA-808 (parser needs fixing so that tests can pass)\n\ngit-svn-id: de575e320ab8ef6bd6941acfb783cdb8d8307cc1@1213131 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "gpt",
"value": "/*\n * Licensed to the Apache Software Foundation (ASF) ... | java | chosen |
[
{
"from": "human",
"value": "Support for adding the HTML link to the mail and better exception handling in the publish test\n"
},
{
"from": "gpt",
"value": "package jsystem.runner.agent.publisher;\n\n/**\n * Exception to throw in case something went wrong while publishing.\n * \n * @author itai_... | java | chosen |
[
{
"from": "human",
"value": "Improve the code coverage for a utility class.\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2016, 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 no... | java | chosen |
[
{
"from": "human",
"value": "Split out how we locate the bean manager for the test\n"
},
{
"from": "gpt",
"value": "package org.jboss.weld.test;\n\nimport org.jboss.testharness.impl.runner.servlet.ServletTestRunner;\nimport org.jboss.weld.BeanManagerImpl;\nimport org.jboss.weld.Container;\nimpor... | java | chosen |
[
{
"from": "human",
"value": "Move this out of Cashier\n"
},
{
"from": "gpt",
"value": "/*\n * The contents of this file are subject to the OpenMRS Public License\n * Version 1.1 (the \"License\"); you may not use this file except in\n * compliance with the License. You may obtain a copy of the L... | java | chosen |
[
{
"from": "human",
"value": "Add the Reader implementation for the SubRip format\n"
},
{
"from": "gpt",
"value": "package com.alexrnl.subtitlecorrector.io.subrip;\n\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.text.ParseException;\nimport java.text.SimpleDateFormat;\... | java | chosen |
[
{
"from": "human",
"value": "Add default implementation for SagaTimeoutRequest"
},
{
"from": "gpt",
"value": "/*\n * Copyright (c) 2013 Red Rainbow IT Solutions GmbH, Germany\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy of\n * this software and associated ... | java | chosen |
[
{
"from": "human",
"value": "Add entity provider for IT harvester\n"
},
{
"from": "gpt",
"value": "package org.smartdeveloperhub.harvesters.it.backend.exhibitor;\n\nimport com.sun.jersey.core.provider.AbstractMessageReaderWriterProvider;\n\nimport org.apache.commons.codec.Charsets;\nimport org.a... | java | chosen |
[
{
"from": "system",
"value": "SEC-1674: Test to check that absolute URLs work in SimpleUrlLogoutSuccessHandler."
},
{
"from": "human",
"value": "package org.springframework.security.web.authentication.logout;\n\nimport static org.junit.Assert.*;\nimport static org.mockito.Mockito.mock;\n\nimport... | java | chosen |
[
{
"from": "human",
"value": "Add Flyway migration to add printout- bundle to user and default views\n"
},
{
"from": "gpt",
"value": "package flyway.asdi;\n\nimport java.sql.Connection;\nimport java.util.List;\n\nimport org.flywaydb.core.api.migration.jdbc.JdbcMigration;\n\nimport fi.nls.oskari.u... | java | chosen |
[
{
"from": "human",
"value": "Add test for Java 6 new classes URIParameter\n\nsvn path=/harmony/; revision=597576\n"
},
{
"from": "gpt",
"value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\... | java | chosen |
[
{
"from": "human",
"value": "Add tests for resetRegister method in RegisterContext\n"
},
{
"from": "gpt",
"value": "package uk.gov.register.core;\n\nimport org.flywaydb.core.Flyway;\nimport org.junit.Before;\nimport org.junit.Test;\nimport org.skife.jdbi.v2.DBI;\nimport uk.gov.register.configura... | java | chosen |
[
{
"from": "human",
"value": "Add contract test for CacheDataSource\n\nPiperOrigin-RevId: 352385310\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (C) 2021 The Android Open Source Project\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file ex... | java | chosen |
[
{
"from": "human",
"value": "Add new class to represent actions (mazurkiewicz).\n"
},
{
"from": "gpt",
"value": "package org.cifasis.mc1;\n\n/**\n * An action represents the visible actions of the processes in the shared state.\n * Created by Cristian on 22/06/15.\n */\npublic class Action {\n\n... | java | chosen |
[
{
"from": "human",
"value": "Add serialization tests for ONetworkSubmitRequest\n"
},
{
"from": "gpt",
"value": "package com.orientechnologies.orient.distributed.impl.coordinator.network;\n\nimport com.orientechnologies.orient.distributed.impl.coordinator.OSubmitRequest;\nimport com.orientechnolo... | java | chosen |
[
{
"from": "human",
"value": "Choose evolution genetic algorithm (I225).\n"
},
{
"from": "gpt",
"value": "package roart.evolution.marketfilter.common.gene.impl;\n\nimport java.util.Random;\n\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\n\nimport roart.common.constants.Constants;\nim... | java | chosen |
[
{
"from": "human",
"value": "Create a simple example program\n"
},
{
"from": "gpt",
"value": "package ch.bisi.jicon.examples;\n\nimport ch.bisi.jicon.Jicon;\nimport ch.bisi.jicon.common.JiconIcon;\nimport edu.umd.cs.findbugs.annotations.SuppressFBWarnings;\nimport java.io.IOException;\nimport ja... | java | chosen |
[
{
"from": "human",
"value": "Fix Compilation failure for cloudify 2\n"
},
{
"from": "gpt",
"value": "package alien4cloud.paas.exception;\n\nimport alien4cloud.paas.IPaaSProvider;\n\n/**\n * Exception to be thrown in case the {@link IPaaSProvider} fail to find a resource for one of the elments in... | java | chosen |
[
{
"from": "system",
"value": "Write correct HTTP error code in REST Internal Error\n\nSigned-off-by: Claudio Mezzasalma <acdb73fa11473662b10f45613ec005f8be976786@eurotech.com>\n"
},
{
"from": "human",
"value": "/*******************************************************************************\n * ... | java | chosen |
[
{
"from": "human",
"value": "Add form model data mapper\n"
},
{
"from": "gpt",
"value": "package com.ushahidi.android.presentation.model.mapper;\n\nimport com.ushahidi.android.domain.entity.Form;\nimport com.ushahidi.android.presentation.model.FormModel;\n\nimport java.util.ArrayList;\nimport ja... | java | chosen |
[
{
"from": "human",
"value": "Add test to the model\n"
},
{
"from": "gpt",
"value": "package alexandria.israelferrer.com.libraryofalexandria;\n\nimport android.content.SharedPreferences;\n\nimport junit.framework.TestCase;\n\nimport org.mockito.invocation.InvocationOnMock;\nimport org.mockito.stu... | java | chosen |
[
{
"from": "human",
"value": "[misc] Add a test tools to easily inject a usable ConfigurationSource associated to \"xwikiproperties\"\n"
},
{
"from": "gpt",
"value": "/*\n * See the NOTICE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This i... | java | chosen |
[
{
"from": "human",
"value": "OODT-568: Support the ability to run PGE Task Instances on Windows (Cygwin) executable environments\n\ngit-svn-id: cd5c091416a298f3e35c4136755389c696553b5d@1452619 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "gpt",
"value": "/*\n * Licensed to the Apache Sof... | java | chosen |
[
{
"from": "human",
"value": "Add a test for connecting to a Go Lang test server\n"
},
{
"from": "gpt",
"value": "package com.github.arteam.dropwizard.http2.client;\n\nimport com.codahale.metrics.MetricRegistry;\nimport com.fasterxml.jackson.databind.ObjectMapper;\nimport io.dropwizard.jersey.val... | java | chosen |
[
{
"from": "human",
"value": "Move rotation helper to utils\n"
},
{
"from": "gpt",
"value": "package boq.utils.render;\n\nimport net.minecraftforge.common.ForgeDirection;\n\nimport org.lwjgl.opengl.GL11;\n\nimport boq.utils.log.Log;\nimport boq.utils.misc.Rotation;\n\npublic class RotationHelper ... | java | chosen |
[
{
"from": "human",
"value": "Test for the Schedule Reconsent Command\n"
},
{
"from": "gpt",
"value": "package edu.northwestern.bioinformatics.studycalendar.web.schedule;\n\nimport edu.northwestern.bioinformatics.studycalendar.service.StudyService;\nimport edu.northwestern.bioinformatics.studycal... | java | chosen |
[
{
"from": "human",
"value": "Add an annotation descriptor class which describes annotation fields\n"
},
{
"from": "gpt",
"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 complian... | java | chosen |
[
{
"from": "human",
"value": "Add statement to problem 15\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": "system",
"value": "Add missing \"return this;\" to options class\n"
},
{
"from": "human",
"value": "package com.microsoft.windowsazure.services.queue.models;\n\n\npublic class CreateMessageOptions extends QueueServiceOptions {\n private Integer visibilityTimeoutInSeconds;\n priv... | java | chosen |
[
{
"from": "human",
"value": "Add some basic testing around proeprty provider\n"
},
{
"from": "gpt",
"value": "package org.realityforge.gwt.appcache.server.propertyprovider;\n\nimport javax.servlet.http.HttpServletRequest;\nimport org.testng.annotations.DataProvider;\nimport org.testng.annotation... | java | chosen |
[
{
"from": "human",
"value": "Deal with a bad file rename - phase II\n"
},
{
"from": "gpt",
"value": "/****************************************************************************\r\n* *\r\n* OpenNI 1.x Alpha ... | java | chosen |
[
{
"from": "human",
"value": "Add tests to verify optional requirements are not treated as mandatory.\n\ngit-svn-id: f3027bd689517dd712b868b0d3f5f59c3162b83d@1449268 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "gpt",
"value": "package org.apache.aries.subsystem.obr.internal;\n\nimport st... | java | chosen |
[
{
"from": "human",
"value": "Add ENV based environment config\n"
},
{
"from": "gpt",
"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 * htt... | java | chosen |
[
{
"from": "human",
"value": "[WFCORE-4770] Add interface to invoke additional boot operations from CLI\n"
},
{
"from": "gpt",
"value": "/*\n * JBoss, Home of Professional Open Source\n * Copyright 2019, JBoss Inc., and individual contributors as indicated\n * by the @authors tag.\n *\n * License... | java | chosen |
[
{
"from": "human",
"value": "Implement direct s3a output stream.\n"
},
{
"from": "gpt",
"value": "/*\n * The Alluxio Open Foundation licenses this work under the Apache License, version 2.0\n * (the \"License\"). You may not use this work except in compliance with the License, which is\n * avail... | java | chosen |
[
{
"from": "system",
"value": "Clarify unsupported left button exception message\n"
},
{
"from": "human",
"value": "package com.reactnativenavigation.params.parsers;\n\nimport android.os.Bundle;\n\nimport com.balysv.materialmenu.MaterialMenuDrawable;\nimport com.reactnativenavigation.params.Title... | java | chosen |
[
{
"from": "human",
"value": "Add prometheus telemetry manager unit test\n\nChange-Id: I45d7776a7ec945bf0d16e2d4a2889d47a65723d0\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2018-present Open Networking Foundation\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * ... | java | chosen |
[
{
"from": "human",
"value": "Add Domain User Detail Login\n"
},
{
"from": "gpt",
"value": "package com.rizki.mufrizal.belajar.oauth2.service;\n\nimport com.rizki.mufrizal.belajar.oauth2.domain.UserRole;\nimport com.rizki.mufrizal.belajar.oauth2.repository.UserRepository;\nimport org.springframew... | java | chosen |
[
{
"from": "system",
"value": "Replace the enum adapter tag map with an integer BST.\n\nBy not using a the map we avoid boxing the integer in both directions and the overhead of the underlying wrapper objects. The sorted array of enum values and the mirrored key array allows us to use a binary-search for rev... | java | chosen |
[
{
"from": "human",
"value": "Add a test for the select entity by ID query.\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2017, 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 not... | java | chosen |
[
{
"from": "human",
"value": "Remove work-firebase package-level docs from being generated.\n\nTest: genDocs\nChange-Id: I41df0b6e00fc2c10d06f082c567b195ab8015228\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2018 The Android Open Source Project\n *\n * Licensed under the Apache License, Vers... | java | chosen |
[
{
"from": "human",
"value": "Add Jdbc Source Task (To be continued)\n"
},
{
"from": "gpt",
"value": "\n\n/*\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 re... | java | chosen |
[
{
"from": "human",
"value": "Create service to upload pictures\n"
},
{
"from": "gpt",
"value": "package fr.alecharp.picshare.service;\n\nimport com.google.inject.Singleton;\nimport fr.alecharp.picshare.domain.Picture;\nimport net.codestory.http.Part;\n\nimport javax.inject.Inject;\nimport javax.... | java | chosen |
[
{
"from": "human",
"value": "Test correct/expected parsing of value requirement strings.\n"
},
{
"from": "gpt",
"value": "/**\n * Copyright (C) 2012 - present by OpenGamma Inc. and the OpenGamma group of companies\n * \n * Please see distribution for license.\n */\npackage com.opengamma.language... | java | chosen |
[
{
"from": "human",
"value": "Add test case to trigger deployment of entire compass-deployment artifact.\n"
},
{
"from": "gpt",
"value": "/*\n * This file is part of COMPASS. It is subject to the license terms in\n * the LICENSE file found in the top-level directory of this distribution.\n * (Als... | java | chosen |
[
{
"from": "human",
"value": "Create a class that is responsible for indicating when a field is searchable or not.\n"
},
{
"from": "gpt",
"value": "package uk.ac.ebi.quickgo.annotation.service.search;\n\nimport uk.ac.ebi.quickgo.annotation.common.document.AnnotationFields;\nimport uk.ac.ebi.quick... | java | chosen |
[
{
"from": "human",
"value": "Add test for performance check\n"
},
{
"from": "gpt",
"value": "package com.rchab.menshykov.increasingsequence.advancedcase;\r\n\r\nimport org.junit.Test;\r\n\r\nimport java.util.ArrayList;\r\nimport java.util.List;\r\nimport java.util.Random;\r\n\r\npublic class App... | java | chosen |
[
{
"from": "human",
"value": "Add route param for meta\n"
},
{
"from": "gpt",
"value": "package io.dongyue.at15.tree.server.controllers;\n\nimport org.springframework.web.bind.annotation.PathVariable;\nimport org.springframework.web.bind.annotation.RequestMapping;\nimport org.springframework.web.... | java | chosen |
[
{
"from": "human",
"value": "Test for exception throwing of the User Profile Manager added."
},
{
"from": "gpt",
"value": "package org.hive2hive.core.test.network.data;\n\nimport org.hive2hive.core.exceptions.GetFailedException;\nimport org.hive2hive.core.exceptions.PutFailedException;\nimport o... | java | chosen |
[
{
"from": "human",
"value": "Test case for validation on non-existing attribute\n\nCreating an instance of a Definition with attributes set that don't exist on the component should throw an error.\n\n@bug W-1483429@\n\n@rev rjayaramappa@\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (C) 2012... | java | chosen |
[
{
"from": "system",
"value": "Use simple name iso full class name to choose a port\n"
},
{
"from": "human",
"value": "package be.bagofwords.web;\n\nimport be.bagofwords.application.MainClass;\nimport be.bagofwords.application.annotations.BowConfiguration;\nimport be.bagofwords.util.HashUtils;\ni... | java | chosen |
[
{
"from": "human",
"value": "Use a nested try block\n\nhttp://ideone.com/7ITiXF"
},
{
"from": "gpt",
"value": "// Use a nested try block.\nclass NestTrys {\n public static void main(String args[]) {\n // Here, numer is longer than denom.\n int numer[] = { 4, 8, 16, 32, 64, 128, 256, 512 }... | java | chosen |
[
{
"from": "human",
"value": "Add API for handler that know the SDocumentGraph of the editor\n"
},
{
"from": "gpt",
"value": "/**\n * \n */\npackage org.corpus_tools.atomic.api.commands;\n\nimport org.corpus_tools.atomic.api.editors.DocumentGraphEditor;\nimport org.corpus_tools.salt.common.SDocum... | java | chosen |
[
{
"from": "human",
"value": "Add test for case insensitive sorted value sets in AnnisAttribute.\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2013 SFB 632.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the Li... | java | chosen |
[
{
"from": "human",
"value": "Add test for websocket+HTTP root path\n\nTest for #22053\n"
},
{
"from": "gpt",
"value": "package io.quarkus.websockets.test;\n\nimport java.net.URI;\nimport java.util.concurrent.LinkedBlockingDeque;\nimport java.util.concurrent.TimeUnit;\n\nimport javax.websocket.Cl... | java | chosen |
[
{
"from": "human",
"value": "Add tests for BSON ObjectID key generation\n"
},
{
"from": "gpt",
"value": "package com.mmnaseri.utils.spring.data.domain.impl.key;\n\nimport org.bson.types.ObjectId;\nimport org.testng.annotations.BeforeMethod;\nimport org.testng.annotations.Test;\n\nimport java.uti... | java | chosen |
[
{
"from": "human",
"value": "Add daily forecast data model.\n"
},
{
"from": "gpt",
"value": "package fr.tvbarthel.apps.simpleweatherforcast.openweathermap;\n\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\npublic class DailyForecastModel implements Parcelable {\n\n\tprivate long m... | java | chosen |
[
{
"from": "system",
"value": "Fix version endpoint returning a Content-Type of application/xml instead of application/json when client specifies Accept-Content-Type: application/xml\n\nRB=596810\nG=pinot-dev-reviewers\nR=kgopalak,jfim,ssubrama,dpatel,mshrivas\nA=mshrivas\n"
},
{
"from": "human",
... | java | chosen |
[
{
"from": "human",
"value": "Add (high-level) package documentation to 'uml' package\n\nSigned-off-by: Sjoerd Talsma <1dafb4c4a7acdc6e1eca32ff35fda03e0e9cd976@talsma-ict.nl>\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2016-2019 Talsma ICT\n *\n * Licensed under the Apache License, Version ... | java | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.