conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "human", "value": "Add not call integration to test if it is called only the right times" }, { "from": "gpt", "value": "package info.u_team.u_team_test.integration;\n\nimport org.apache.logging.log4j.*;\n\nimport info.u_team.u_team_core.api.integration.*;\n\n@Integration(\"xyz\")\npubl...
java
chosen
[ { "from": "human", "value": "Add abstract superclass for CenterAwareComputerOps\n\nSigned-off-by: squareys <b4e1335d2c774058f7a95112f52894dcc752fd3f@googlemail.com>\n" }, { "from": "gpt", "value": "/*\n * #%L\n * ImageJ software for multidimensional image processing and analysis.\n * %%\n * Copy...
java
chosen
[ { "from": "human", "value": "Create a simple transacted receive example" }, { "from": "gpt", "value": "/*\n *\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\...
java
chosen
[ { "from": "human", "value": "Add trust store configurator with Athenz CA certificates\n" }, { "from": "gpt", "value": "// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\npackage com.yahoo.vespa.hosted.controller.athenz.filter;\...
java
chosen
[ { "from": "human", "value": "[ELY-2446] Add a test class for RegexNameRewriter\n" }, { "from": "gpt", "value": "package org.wildfly.security.auth.util;\n\nimport org.junit.Test;\nimport java.util.regex.Pattern;\n\nimport static org.junit.Assert.assertEquals;\n\npublic class RegexNameRewriterTest...
java
chosen
[ { "from": "human", "value": "Add a test for uploading using the file: protocol\n\nWe now advertise Dropbox as a method to provide an update site,\nso we better make sure that the localhost side of it actually works.\n\nSigned-off-by: Johannes Schindelin <53fb8db7833fca1e1746dd8592f61048d350f64c@gmx.de>\n" ...
java
chosen
[ { "from": "human", "value": "Add a first version of a JLine interpreter" }, { "from": "gpt", "value": "package apostov;\r\n\r\nimport java.io.FileDescriptor;\r\nimport java.io.FileInputStream;\r\nimport java.io.IOException;\r\nimport java.io.InputStream;\r\nimport java.io.PrintWriter;\r\n\r\nimp...
java
chosen
[ { "from": "human", "value": "Add a test which fails probabilistically, to test retry-on-failure\n" }, { "from": "gpt", "value": "package com.cloudera.disttest;\n\nimport java.io.BufferedReader;\nimport java.io.InputStream;\nimport java.io.InputStreamReader;\nimport java.util.Random;\n\nimport or...
java
chosen
[ { "from": "human", "value": "Add a small test for redirections\n\ngit-svn-id: e057f57e93a604d3b43d277ae69bde5ebf332112@1735999 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "gpt", "value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license a...
java
chosen
[ { "from": "human", "value": "Print hello world to terminal" }, { "from": "gpt", "value": "\n/******************************************************************************\n * Compilation: javac HelloWorld.java\n * Execution: java HelloWorld\n *\n * Prints \"Hello, World\". By tradition, ...
java
chosen
[ { "from": "human", "value": "Add source object for reputation\n" }, { "from": "gpt", "value": "package de.passau.uni.sec.compose.reputation;\n\npublic class Source \n{\n\tprivate String soid;\n\t\n\tprivate String streamid;\n\n\tpublic String getSoid() {\n\t\treturn soid;\n\t}\n\n\tpublic void s...
java
chosen
[ { "from": "human", "value": "Create request command prefix AI intent\n\n" }, { "from": "gpt", "value": "package com.avairebot.orion.ai.intents;\n\nimport ai.api.model.AIResponse;\nimport com.avairebot.orion.Orion;\nimport com.avairebot.orion.commands.Category;\nimport com.avairebot.orion.command...
java
chosen
[ { "from": "human", "value": "Include simple test example (\"Hello World\" kinda)\n" }, { "from": "gpt", "value": "/*\n * (C) Copyright 2017 Boni Garcia (http://bonigarcia.github.io/)\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in...
java
chosen
[ { "from": "human", "value": "Add some basic integration tests that use repository extensions\n" }, { "from": "gpt", "value": "package org.realityforge.arez.integration;\n\nimport java.util.List;\nimport javax.annotation.Nonnull;\nimport org.realityforge.arez.Arez;\nimport org.realityforge.arez.A...
java
chosen
[ { "from": "human", "value": "Add details page checking command\n" }, { "from": "gpt", "value": "package org.pdxfinder.commands.postload;\n\nimport joptsimple.OptionParser;\nimport joptsimple.OptionSet;\nimport org.pdxfinder.graph.dao.ModelCreation;\nimport org.pdxfinder.services.DataImportServic...
java
chosen
[ { "from": "human", "value": "Add Base Class for WebSocket Unit testing\n\n* addOns/websocket/src/test/java/org/zaproxy/zap/extension/websocket/WebSocketAddonTestUtils.java:\n" }, { "from": "gpt", "value": "/*\n * Zed Attack Proxy (ZAP) and its related class files.\n *\n * ZAP is an HTTP/HTTPS pr...
java
chosen
[ { "from": "human", "value": "Add tests for the Shogun2JsonObjectMapper\n" }, { "from": "gpt", "value": "package de.terrestris.shogun2.util.json;\n\nimport static org.hamcrest.CoreMatchers.instanceOf;\nimport static org.junit.Assert.assertEquals;\nimport static org.junit.Assert.assertFalse;\nimpo...
java
chosen
[ { "from": "human", "value": "Add expression statement effect for effect commands\n" }, { "from": "gpt", "value": "package com.btk5h.skriptmirror.skript;\n\nimport ch.njol.skript.Skript;\nimport ch.njol.skript.lang.Effect;\nimport ch.njol.skript.lang.Expression;\nimport ch.njol.skript.lang.Skript...
java
chosen
[ { "from": "human", "value": "Add test for long combo box." }, { "from": "gpt", "value": "package com.seaglasslookandfeel.demo;\r\n\r\nimport javax.swing.SwingUtilities;\r\nimport javax.swing.JPanel;\r\nimport javax.swing.JFrame;\r\nimport javax.swing.JComboBox;\r\nimport javax.swing.UIManager;\r...
java
chosen
[ { "from": "human", "value": "XWIKI-99: Add support for removing class properties\nAdded Struts action for synchronizing document objects with their current classes.\n\n\ngit-svn-id: d23d7a6431d93e1bdd218a46658458610974b053@29590 f329d543-caf0-0310-9063-dda96c69346f\n" }, { "from": "gpt", "value"...
java
chosen
[ { "from": "system", "value": "Include absolute paths in error\n" }, { "from": "human", "value": "/*\n */\npackage org.datadryad.rest.responses;\n\nimport javax.ws.rs.core.UriInfo;\n\n/**\n *\n * @author Dan Leehr <dan.leehr@nescent.org>\n */\npublic class ResponseFactory {\n public static Err...
java
chosen
[ { "from": "human", "value": "Create a db schema class for timetables\n" }, { "from": "gpt", "value": "package com.satsumasoftware.timetable.db;\n\nimport android.provider.BaseColumns;\n\nimport com.satsumasoftware.timetable.db.util.SchemaUtilsKt;\n\npublic final class TimetablesSchema implements...
java
chosen
[ { "from": "human", "value": "Set up an item loader class which should load all items on preInit\n" }, { "from": "gpt", "value": "package com.skcraft.smes.item;\n\nimport net.minecraft.item.Item;\n\npublic class SMESItems {\n public static Item itemYttriumDust;\n \n public static void pr...
java
chosen
[ { "from": "human", "value": "Add interface for indexing strategies\n" }, { "from": "gpt", "value": "/*\n * Copyright (c) 2012 Mateusz Parzonka, Eric Bodden\n * All rights reserved. This program and the accompanying materials\n * are made available under the terms of the Eclipse Public License v1...
java
chosen
[ { "from": "human", "value": "Add tests for crossfold sort order\n\nThis adds unit tests for the crossfolder's SortOrder code.\n" }, { "from": "gpt", "value": "/*\n * LensKit, an open source recommender systems toolkit.\n * Copyright 2010-2014 LensKit Contributors. See CONTRIBUTORS.md.\n * Work ...
java
chosen
[ { "from": "human", "value": "Add servlet for retrieving userdata when loggging in\n" }, { "from": "gpt", "value": "// Copyright 2019 Google LLC\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You m...
java
chosen
[ { "from": "human", "value": "Camel-AWS: Create single Karaf feature tests for single components, Aws-ec2 test\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\n * ...
java
chosen
[ { "from": "human", "value": "Add a Puzzler-specific annotation to control/manipulate test execution when running inside the Puzzler." }, { "from": "gpt", "value": "package to.etc.puzzler;\n\nimport java.lang.annotation.*;\n\n/**\n * This annotation sets options for the Puzzler's JUnit test runne...
java
chosen
[ { "from": "human", "value": "Add benchmark entity to DominanceTree/NoDelayedInsertion.\n" }, { "from": "gpt", "value": "package ru.ifmo.jmh;\n\nimport ru.ifmo.DominanceTree;\nimport ru.ifmo.NonDominatedSortingFactory;\n\n@SuppressWarnings(\"unused\")\npublic class JMH_DominanceTree_NoDelayedInse...
java
chosen
[ { "from": "human", "value": "Implement Jackson XML message body writer\n" }, { "from": "gpt", "value": "package org.slc.sli.api.resources.config;\n\nimport java.io.IOException;\nimport java.io.OutputStream;\nimport java.io.Writer;\nimport java.lang.annotation.Annotation;\nimport java.lang.reflec...
java
chosen
[ { "from": "human", "value": "Add Android secure compare tests" }, { "from": "gpt", "value": "package com.cossacklabs.themis.test;\n\nimport java.util.Random;\n\nimport com.cossacklabs.themis.SecureCompare;\nimport com.cossacklabs.themis.SecureCompareException;\n\nimport android.test.AndroidTestC...
java
chosen
[ { "from": "human", "value": "Handle JSON Result Object in TableLayout\n" }, { "from": "gpt", "value": "package lucene.hurricanc.com.wjlucene_android;\n\n/**\n * Created by Hurricanc on 11/4/15.\n */\n\nimport android.app.ActionBar;\nimport android.app.Activity;\nimport android.content.Intent;\ni...
java
chosen
[ { "from": "human", "value": "Add a test for Project::addService and Project::getServices\n" }, { "from": "gpt", "value": "/**\n * Copyright 2011 OpenEngSB Division, Vienna University of Technology\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this ...
java
chosen
[ { "from": "human", "value": "Copy List with Random Pointer\n" }, { "from": "gpt", "value": "/*\n * Key point: \n * 1.common solution: insert a copy after each \n * original node(ignore random pointer now), then copy random pointer,\n * finally, split the original list and copi...
java
chosen
[ { "from": "human", "value": "Add genUtils for the Alloy Generator." }, { "from": "gpt", "value": "package org.eclipse.cmf.occi.core.gen.alloy.services;\n\nimport java.util.Date;\n\nimport org.eclipse.cmf.occi.core.Attribute;\nimport org.eclipse.cmf.occi.core.Category;\nimport org.eclipse.cmf.occ...
java
chosen
[ { "from": "human", "value": "Add java class to run checker\n" }, { "from": "gpt", "value": "package fuzion24.device.vulnerability.vulnerabilities.framework.graphics;\n\nimport android.content.Context;\n\nimport fuzion24.device.vulnerability.vulnerabilities.VulnerabilityTest;\n\n/**\n * Created b...
java
chosen
[ { "from": "human", "value": "Test to create static documentation" }, { "from": "gpt", "value": "package com.bitmonlab.osiris.api.map.swagger;\r\n\r\nimport java.io.File;\r\nimport java.io.IOException;\r\nimport java.util.Arrays;\r\n\r\nimport io.github.robwin.markup.builder.MarkupLanguage;\r\nim...
java
chosen
[ { "from": "human", "value": "Add a + b problem solution\n" }, { "from": "gpt", "value": "package com.lintcode;\n\n/**\n * @author : Joshua\n * Date: 1/25/16\n * @see <a href=\"http://www.lintcode.com/zh-cn/problem/a-b-problem/\">A + B 问题</a>\n */\npublic class APlusB {\n public int aplusb...
java
chosen
[ { "from": "human", "value": ":white_check_mark: Add simple test for ExperimentalController for coverage\n" }, { "from": "gpt", "value": "/*\n * ExperimentalControllerTest.java\n *\n * Copyright (C) 2018 [ A Legge Up ]\n *\n * This software may be modified and distributed under the terms\n * of t...
java
chosen
[ { "from": "human", "value": "[example] Add an instance of upnp-discovery in upnp-config bundle\n" }, { "from": "gpt", "value": "package org.ow2.chameleon.fuchsia.upnp.examples.config;\n\nimport org.apache.felix.ipojo.configuration.Configuration;\nimport org.apache.felix.ipojo.configuration.Insta...
java
chosen
[ { "from": "human", "value": "Add new data model class\n" }, { "from": "gpt", "value": "package ch.hevs.aislab.magpie.broker.model;\n\n/**\n * Object sent by the publisher to notify\n * the decision for a subscription request\n */\npublic class SubscriptionResult {\n\t\n\tprivate long subscriberI...
java
chosen
[ { "from": "human", "value": "Add the open wizard sample" }, { "from": "gpt", "value": "package com.opcoach.training.e4.codesamples;\n\nimport org.eclipse.e4.core.contexts.ContextInjectionFactory;\nimport org.eclipse.e4.core.contexts.IEclipseContext;\nimport org.eclipse.e4.core.di.annotations.Exe...
java
chosen
[ { "from": "human", "value": "Create an event type for status updates.\n" }, { "from": "gpt", "value": "package net.devrieze.chatterbox.client;\n\nimport net.devrieze.chatterbox.client.StatusEvent.StatusLevel;\n\nimport com.google.gwt.event.shared.EventHandler;\nimport com.google.gwt.event.shared...
java
chosen
[ { "from": "human", "value": "Enable metadata for Spring MVC.\n" }, { "from": "gpt", "value": "package org.skyscreamer.yoga.demo.test.controller;\n\nimport org.skyscreamer.yoga.metadata.MetaDataService;\nimport org.skyscreamer.yoga.metadata.TypeMetaData;\nimport org.springframework.beans.factory....
java
chosen
[ { "from": "human", "value": "Add AST node for NamedAugmentationDeclaration\n\nooops... should have done this earlier...\n" }, { "from": "gpt", "value": "/*\n * Copyright 2012-2014 Institut National des Sciences Appliquees de Lyon (INSA-Lyon)\n *\n * Licensed under the Apache License, Version 2.0...
java
chosen
[ { "from": "human", "value": "Add IsolationLevel regression test with Kafka 2.4\n\nThis commit makes sure that our copy of the IsolationLevel enum is\nconsistent with what Kafka 2.4 provides\n\nCloses gh-20822\n" }, { "from": "gpt", "value": "/*\n * Copyright 2012-2020 the original author or auth...
java
chosen
[ { "from": "human", "value": "Add file path changed event\n" }, { "from": "gpt", "value": "package seedu.tasklist.commons.events.storage;\n\nimport seedu.tasklist.commons.events.BaseEvent;\n\n//@@author A0141993X\n/**\n * Indicates a changed in the file storage location\n */\npublic class TaskLis...
java
chosen
[ { "from": "human", "value": "Add test to ensure getSentry provided by ServiceLoader\n" }, { "from": "gpt", "value": "package net.kencochrane.raven.getsentry;\n\nimport net.kencochrane.raven.RavenFactory;\nimport org.hamcrest.Matchers;\nimport org.testng.annotations.Test;\n\nimport java.util.Serv...
java
chosen
[ { "from": "human", "value": "Add an annotation model overlay" }, { "from": "gpt", "value": "/*******************************************************************************\n * Copyright (c) 2014 Codenvy, S.A.\n * All rights reserved. This program and the accompanying materials\n * are made avai...
java
chosen
[ { "from": "human", "value": "Add a launcher that TestNG can run (or exclude, if necessary)\n\n\nr5646\n" }, { "from": "gpt", "value": "package com.thoughtworks.selenium;\r\n\r\nimport org.openqa.selenium.server.RemoteControlConfiguration;\r\nimport org.openqa.selenium.server.SeleniumServer;\r\ni...
java
chosen
[ { "from": "human", "value": "Add builder for http request\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 * http://...
java
chosen
[ { "from": "human", "value": "Create simple test for ProcessMetrics\n" }, { "from": "gpt", "value": "package se.christianjensen.maintenance.sigar;\n\nimport org.hyperic.sigar.Sigar;\nimport org.hyperic.sigar.SigarException;\nimport org.junit.Before;\nimport org.junit.Test;\nimport se.christianjen...
java
chosen
[ { "from": "human", "value": "Add utilities class for resource sets" }, { "from": "gpt", "value": "package tools.vitruv.framework.util;\n\nimport java.util.Map;\n\nimport org.eclipse.emf.ecore.resource.Resource;\nimport org.eclipse.emf.ecore.resource.ResourceSet;\nimport org.eclipse.emf.ecore.xmi...
java
chosen
[ { "from": "human", "value": "[ADD] Add insertion sort and test case\n" }, { "from": "gpt", "value": "package Sorting;\n\nimport java.util.Arrays;\n\n/**\n * Created by matao on 8/14/16.\n */\npublic class InsertionSort extends BaseSort {\n\n @Override\n public void sort(Comparable[] a) {\n...
java
chosen
[ { "from": "human", "value": "Add in a translating example.\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\n * this work for additional information regarding copy...
java
chosen
[ { "from": "human", "value": "gs-cv: Add test program for MeshgridRadon\n" }, { "from": "gpt", "value": "package org.genericsystem.cv.application;\n\nimport org.genericsystem.cv.AbstractApp;\nimport org.genericsystem.cv.Img;\nimport org.genericsystem.cv.utils.NativeLibraryLoader;\nimport org.open...
java
chosen
[ { "from": "human", "value": "Add request utils for getting a gson instance that can handle deserializing requests\n" }, { "from": "gpt", "value": "package com.cloudycrew.cloudycar.utils;\n\nimport com.cloudycrew.cloudycar.models.requests.AcceptedRequest;\nimport com.cloudycrew.cloudycar.models.r...
java
chosen
[ { "from": "human", "value": "Define a fake test that makes sure api code can compile correctly\n" }, { "from": "gpt", "value": "package nom.bdezonia.zorbage.type.data.float64.complex;\n\nimport static org.junit.Assert.assertTrue;\n\nimport org.junit.Test;\n\nimport nom.bdezonia.zorbage.algorithm...
java
chosen
[ { "from": "human", "value": "Create render class for magnifying glass\n" }, { "from": "gpt", "value": "package com.InfinityRaider.AgriCraft.renderers.items;\n\nimport net.minecraft.client.renderer.RenderBlocks;\nimport net.minecraft.client.renderer.Tessellator;\nimport net.minecraft.entity.item....
java
chosen
[ { "from": "system", "value": "Fix difficulty test to run correctly via Gradle\n" }, { "from": "human", "value": "package org.ethereum.jsontestsuite;\n\nimport org.ethereum.core.BlockHeader;\nimport org.json.simple.parser.ParseException;\nimport org.junit.FixMethodOrder;\nimport org.junit.Test;\n...
java
chosen
[ { "from": "human", "value": "Introduce exception for unmapped modules\n" }, { "from": "gpt", "value": "/*\n * Bach - Java Shell Builder\n * Copyright (C) 2020 Christian Stein\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in complia...
java
chosen
[ { "from": "human", "value": "Add application Launcher with a main method\n\nIt constructs and connects the MVC components and\nask the user for providing a file.\n" }, { "from": "gpt", "value": "/*\n * Copyright (C) 2015 Atanas Gegov\n *\n * Licensed under the Apache License, Version 2.0 (the \"...
java
chosen
[ { "from": "human", "value": "Add unit tests for us.codecraft.webmagic.utils.NumberUtils\n\nThese tests were written using Diffblue Cover.\n" }, { "from": "gpt", "value": "package us.codecraft.webmagic.utils;\n\nimport org.junit.Assert;\nimport org.junit.Test;\n\npublic class NumberUtilsTest {\n\...
java
chosen
[ { "from": "human", "value": "[BLC-631] Add a content interceptor that will respect a cache control\npolicy\n" }, { "from": "gpt", "value": "/*\n * Copyright 2012 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this fil...
java
chosen
[ { "from": "human", "value": "Add default implementation for commit notifications.\n" }, { "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 associ...
java
chosen
[ { "from": "human", "value": "Add paid android test to 4.09\n" }, { "from": "gpt", "value": "package com.udacity.gradle.testing;\n\nimport android.test.AndroidTestCase;\n\nimport com.udacity.gradle.testing.paid.PaidEcho;\n\nimport java.util.Collection;\n\npublic class PaidEchoAndroidTest extends ...
java
chosen
[ { "from": "human", "value": "Add serialization tests for ONetworkAck\n" }, { "from": "gpt", "value": "package com.orientechnologies.orient.distributed.impl.coordinator.network;\n\nimport com.orientechnologies.orient.distributed.impl.coordinator.ONodeResponse;\nimport com.orientechnologies.orient...
java
chosen
[ { "from": "human", "value": "Create conversion helper with parse json to configuration method.\n" }, { "from": "gpt", "value": "package com.github.aureliano.evtbridge.converter.helper;\n\nimport java.util.Map;\n\nimport com.github.aureliano.evtbridge.converter.ConfigurationConverter;\nimport com...
java
chosen
[ { "from": "human", "value": "Create factory for both launcher prensenter and adapter\n" }, { "from": "gpt", "value": "package com.codenvy.ide.ext.datasource.client.sqllauncher;\n\npublic interface SqlRequestLauncherFactory {\n\n SqlRequestLauncherPresenter createSqlRequestLauncherPresenter();...
java
chosen
[ { "from": "human", "value": "Add test for ambiguous token services\n" }, { "from": "gpt", "value": "/*\n * Copyright 2015-2016 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the Lic...
java
chosen
[ { "from": "human", "value": "Add status handling tests for the aggregate storage.\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 copyri...
java
chosen
[ { "from": "human", "value": "Add the change password command.\n" }, { "from": "gpt", "value": "/**\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * reg...
java
chosen
[ { "from": "human", "value": "DSS-373: Add the full chain related to the signing certificate...\n" }, { "from": "gpt", "value": "\npackage eu.europa.ec.markt.dss.ws.signature;\n\nimport javax.xml.bind.annotation.XmlAccessType;\nimport javax.xml.bind.annotation.XmlAccessorType;\nimport javax.xml.b...
java
chosen
[ { "from": "human", "value": "Add new exception in the data model" }, { "from": "gpt", "value": "package org.ndexbio.model.exceptions;\r\n\r\npublic class UnautherizedOperationException extends NdexException {\r\n\r\n\tprivate static final long serialVersionUID = 1002L;\r\n\r\n public Unauther...
java
chosen
[ { "from": "human", "value": "Add ability to dump a Native View Hierarchy\n\nDifferential Revision: D3411095\n\nfbshipit-source-id: cc7e26eea63b0146250177c2e1b780ecc03da02f\n" }, { "from": "gpt", "value": "/**\n * Copyright (c) 2015-present, Facebook, Inc.\n * All rights reserved.\n *\n * This so...
java
chosen
[ { "from": "human", "value": "Add CORS Filter for spring api project\n" }, { "from": "gpt", "value": "package com.tce.oauth2.spring.api.filter;\n\nimport java.io.IOException;\n\nimport javax.servlet.Filter;\nimport javax.servlet.FilterChain;\nimport javax.servlet.FilterConfig;\nimport javax.servl...
java
chosen
[ { "from": "human", "value": "Add Control - Reader control" }, { "from": "gpt", "value": "package control;\r\n\r\nimport java.util.ArrayList;\r\nimport java.util.List;\r\n\r\nimport vo.Reader;\r\n\r\npublic class ReaderControl {\r\n\tpublic static boolean newReader(Reader reader) {\r\n\t\t// TODO...
java
chosen
[ { "from": "human", "value": "Add a package annotation to neighborhood.\n" }, { "from": "gpt", "value": "/**\n * The {@code neighborhood} package contains neighborhood sizing strategy\n * classes to parametrize the way self-organizing maps measure the size of the\n * neuron grid's neighborhood. ...
java
chosen
[ { "from": "human", "value": "Add test for adding 2 volumes via script\n\nBased on https://github.com/scenerygraphics/sciview/discussions/405#discussioncomment-1390351\n" }, { "from": "gpt", "value": "package sc.iview;\n\nimport org.scijava.command.CommandService;\nimport org.scijava.script.Scrip...
java
chosen
[ { "from": "human", "value": "Add a test for Owl.getTableName()\n" }, { "from": "gpt", "value": "package ironbreakowl;\n\nimport junit.framework.TestCase;\n\npublic class OwlTest extends TestCase {\n @Table(\"test_owl\")\n private interface TestOwl {\n }\n\n public void testGetTableNa...
java
chosen
[ { "from": "human", "value": "Make tree height statistic available\n\ngit-svn-id: 67bc77c75b8364e4e9cdff0eb6560f5818674cd8@3209 ca793f91-a31e-0410-b540-2769d408b6a1\n" }, { "from": "gpt", "value": "package dr.evomodelxml.tree;\r\n\r\nimport dr.evolution.tree.Tree;\r\nimport dr.evomodel.tree.TreeH...
java
chosen
[ { "from": "system", "value": "Apply changes in FOSS because of prioprietary merges\n" }, { "from": "human", "value": "/**\n * Copyright (C) 2010 Cloud.com, Inc. All rights reserved.\n * \n * This software is licensed under the GNU General Public License v3 or later.\n * \n * It is free softwar...
java
chosen
[ { "from": "human", "value": "Add common interface to be implemented by CreateEntityPane\n\nOPEN - task 51: Create CRUD packages for Product entity \nhttp://github.com/DevOpsDistilled/OpERP/issues/issue/51" }, { "from": "gpt", "value": "package devopsdistilled.operp.client.abstracts;\n\nimport de...
java
chosen
[ { "from": "human", "value": "Add delayer for computing the time to sleep before try to deliver the message again. See JAMES-977\n\ngit-svn-id: 88158f914d5603334254b4adf21dfd50ec107162@919131 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "gpt", "value": "/**********************************...
java
chosen
[ { "from": "human", "value": "Add a simple StreamedJsonContentConverter test case.\n" }, { "from": "gpt", "value": "package com.nesscomputing.httpclient.response;\n\nimport static org.junit.Assert.assertEquals;\n\nimport java.io.ByteArrayInputStream;\nimport java.io.InputStream;\nimport java.util...
java
chosen
[ { "from": "human", "value": "XCOMMONS-1527: Create an HTML Displayer interface\n\n* Add tests to improve the coverage.\n" }, { "from": "gpt", "value": "/*\n * See the NOTICE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free softwar...
java
chosen
[ { "from": "system", "value": "Correct the formating of the period in tostring" }, { "from": "human", "value": "/**\n * Copyright (c) 2011 RedEngine Ltd, http://www.RedEngine.co.nz. All rights reserved.\n *\n * This program is licensed to you under the Apache License Version 2.0,\n * and you may ...
java
chosen
[ { "from": "human", "value": "Add converter to convert branch names between branch entity (nullable) and locale branch name (non nullable)\n" }, { "from": "gpt", "value": "package com.box.l10n.mojito.service.assetExtraction;\n\nimport com.box.l10n.mojito.localtm.merger.Branch;\nimport org.joda.ti...
java
chosen
[ { "from": "human", "value": "Add test for GenericHelixController thread leak\n" }, { "from": "gpt", "value": "package org.apache.helix.integration.controller;\n\n/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n *...
java
chosen
[ { "from": "human", "value": "Add a test case to confirm expected schema generated by ReShapeOperation; also added a couple of headers to the various test cases\n\ngit-svn-id: b0f10281c9a1a817905b9aa75a7907aa928f8a7d@38591 e5c1c795-43da-0310-a71f-fac65c449510\n" }, { "from": "gpt", "value": "/*\n...
java
chosen
[ { "from": "human", "value": "Check in an Amazon Appstore rating provider.\n" }, { "from": "gpt", "value": "package com.apptentive.android.sdk.module.rating.impl;\n\nimport android.content.Context;\nimport android.content.Intent;\nimport android.net.Uri;\nimport com.apptentive.android.sdk.R;\nimp...
java
chosen
[ { "from": "human", "value": "[hotfix][network,tests] Add new unit tests for PartitionRequestServerHandler\n\nIt is necessary to make sure the network server would not transform or swallow the PartitionNotFoundException thrown by ResultPartitionManager, so a new unit test\nis added for PartitionReuqestServer...
java
chosen
[ { "from": "human", "value": "Add integration tests to the pojo sample\n" }, { "from": "gpt", "value": "/*\n * Copyright 2016-2017 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the ...
java
chosen
[ { "from": "human", "value": "Migrate betas with brackets in description\n" }, { "from": "gpt", "value": "package db.migration;\n\nimport org.flywaydb.core.api.migration.spring.SpringJdbcMigration;\nimport org.springframework.jdbc.core.JdbcTemplate;\n\n/**\n * Created by emma on 06/04/2016.\n *\n...
java
chosen
[ { "from": "human", "value": "Add missing file in previous commit.\n" }, { "from": "gpt", "value": "/*\n * Copyright (C) 2010 reuillon\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free...
java
chosen
[ { "from": "human", "value": "Test cases for SpecialFunctions class \"decode\" method\n" }, { "from": "gpt", "value": "package hydrograph.engine.transformation.standardfunctions;\n\nimport org.junit.Assert;\nimport org.junit.Test;\n\n/**\n * Created by shivarajn on 3/15/2017.\n */\npublic class S...
java
chosen
[ { "from": "human", "value": "SO-1635: Add replacement test cases for versioning API" }, { "from": "gpt", "value": "package com.b2international.snowowl.snomed.api.rest.versioning;\n\nimport static com.b2international.snowowl.test.commons.rest.RestExtensions.givenAuthenticatedRequest;\n\nimport ja...
java
chosen
[ { "from": "system", "value": "Fix for even? and odd?\n\ngit-svn-id: 4d643f7da126170ce1f05d01cf12027d96868c5b@200 07aa23ea-853d-4461-9545-5093946fcb7a\n" }, { "from": "human", "value": "package globals;\r\n\r\nimport util.KawaWrap;\r\n\r\npublic class WMath extends Globals {\r\n\t/**\r\n\t * Add ...
java
chosen
[ { "from": "human", "value": "Add util class for work with db. Add db columns, main table name to this class.\n" }, { "from": "gpt", "value": "package db;\n\npublic class DBUtils {\n\n\tprivate static final String DB_NAME = \"fmps.db\";\n\tpublic static final String TABLE_FMPS_MAIN = \"fmps_main\...
java
chosen
[ { "from": "human", "value": "Solve No.10817 from Baekjoon Online Judge\n" }, { "from": "gpt", "value": "/*\n * Copyright 2017 haeun kim\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