conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "human", "value": "Delete Chars to equalize strings\n" }, { "from": "gpt", "value": "package dev.codefoundry.string;\n\npublic class DeleteCharsToEqualizeStrings {\n\tpublic int solve(String a, String b) {\n int[][] dp = new int[a.length() + 1][b.length() + 1];\n\n for (i...
java
chosen
[ { "from": "human", "value": "Use Drupal PDF hash filter" }, { "from": "gpt", "value": "/*\n * $Id$\n */\n\n/*\n\n Copyright (c) 2000-2016 Board of Trustees of Leland Stanford Jr. University,\n all rights reserved.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n...
java
chosen
[ { "from": "human", "value": "Add unit test for DecimalValueDecoder\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 regardi...
java
chosen
[ { "from": "human", "value": "[jingle] Add unit test to check that there are no redundant namespaces\n\nRelated to SMACK-917.\n" }, { "from": "gpt", "value": "/**\n *\n * Copyright 2021 Florian Schmaus\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use t...
java
chosen
[ { "from": "human", "value": "Add REST controller for new database schema\n" }, { "from": "gpt", "value": "package de.fu_berlin.agdb.crepe.rest.controller;\n\nimport org.springframework.web.bind.annotation.RequestMapping;\nimport org.springframework.web.bind.annotation.RestController;\n\n/**\n * ...
java
chosen
[ { "from": "human", "value": "Add a test class for the UserGroupService\n" }, { "from": "gpt", "value": "package de.terrestris.shogun2.service;\n\nimport de.terrestris.shogun2.dao.UserGroupDao;\nimport de.terrestris.shogun2.model.UserGroup;\n\npublic class UserGroupServiceTest extends\n\t\tAbstra...
java
chosen
[ { "from": "human", "value": "Implement a metadata loader that loads data from resources\n" }, { "from": "gpt", "value": "/*\n * Copyright (C) 2016 Michael Rozumyanskiy\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance wit...
java
chosen
[ { "from": "human", "value": "Add project service that searches for config file.\n" }, { "from": "gpt", "value": "package org.metaborg.core.project;\n\nimport java.util.Map;\nimport java.util.concurrent.ConcurrentMap;\n\nimport org.apache.commons.vfs2.FileName;\nimport org.apache.commons.vfs2.Fil...
java
chosen
[ { "from": "human", "value": "Put the gameloop class up\n" }, { "from": "gpt", "value": "import java.util.concurrent.TimeUnit;\n\nimport model.Model;\n\n\npublic class GameLoop {\n\tprivate Model model;\n\tpublic GameLoop(Model model){\n\t\tthis.model = model;\n\t}\n\tpublic void startLoop(){\n\t...
java
chosen
[ { "from": "human", "value": "Add tests for containsSubsequence public API method.\n" }, { "from": "gpt", "value": "/**\r\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with\r\n * the License. You may obtain a copy of the Licen...
java
chosen
[ { "from": "human", "value": "Add service event class. It contains state, profile type and profile proxy object.\n" }, { "from": "gpt", "value": "package com.github.ivbaranov.rxbluetooth;\n\nimport android.bluetooth.BluetoothProfile;\n\n/**\n * Event container class. Contains state (whether the ...
java
chosen
[ { "from": "human", "value": "Create : 206 Reverse Linked List\n" }, { "from": "gpt", "value": "/**\n * Definition for singly-linked list.\n * public class ListNode {\n * int val;\n * ListNode next;\n * ListNode(int x) { val = x; }\n * }\n */\n\npublic class Solution {\n\n public L...
java
chosen
[ { "from": "human", "value": "Add java solution for 105. Construct Binary Tree from Preorder and Inorder Traversal\n\n105. Construct Binary Tree from Preorder and Inorder Traversal: https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/" }, { "from": "gpt", "valu...
java
chosen
[ { "from": "human", "value": "Add HBase-backend MapReduce re(move)index tests\n\nSimilar to 008934d24585c9a65362d1b6147b0a68a7cee5f0, except the test\ncases in this commit are backed by HBase instead of Cassandra.\n" }, { "from": "gpt", "value": "package com.thinkaurelius.titan.hadoop;\n\nimport ...
java
chosen
[ { "from": "human", "value": "Fix DDLRecord issues: due some Liferay 7 changes, all records are detected as outdated\n" }, { "from": "gpt", "value": "/**\n * Copyright (c) 2015-present Jorge Díaz All rights reserved.\n *\n * This library is free software; you can redistribute it and/or modify it ...
java
chosen
[ { "from": "human", "value": "Add integration test for jar files.\n\nSigned-off-by: Kate Stanley <59c12a62b1d23be702ac06d493bad7887a15d0c5@uk.ibm.com>\n" }, { "from": "gpt", "value": "/*******************************************************************************\n * Copyright (c) 2016 IBM Corp....
java
chosen
[ { "from": "human", "value": "Add JUnit to test the Edge list representation of graph\n" }, { "from": "gpt", "value": "package com.test.graphs;\n\nimport com.graphs.GraphEdgeListRepresentation;\n\nimport junit.framework.TestCase;\n\npublic class TestGraphEdgeListRepresentation extends TestCase{\n...
java
chosen
[ { "from": "human", "value": "[ONOS-3252] Add the junit test code of VirtualPortId\n\nChange-Id: Ia26594913a7c33406379a0015464c89567790a42\n" }, { "from": "gpt", "value": "/*\n * Copyright 2015 Open Networking Laboratory\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n ...
java
chosen
[ { "from": "human", "value": "Add file parameters checker to show, what you can get with NIO\n" }, { "from": "gpt", "value": "package learntocode.javaapi.io_and_nio.nio;\r\n\r\nimport java.nio.file.Files;\r\nimport java.nio.file.Path;\r\n\r\n/**\r\n * Show some methods\r\n */\r\npublic class File...
java
chosen
[ { "from": "human", "value": "Add test for acro forms\n" }, { "from": "gpt", "value": "package org.verapdf.model.impl.pb.pd;\n\nimport org.junit.AfterClass;\nimport org.junit.Assert;\nimport org.junit.BeforeClass;\nimport org.junit.Test;\nimport org.verapdf.model.baselayer.Object;\nimport org.ver...
java
chosen
[ { "from": "human", "value": "Check that only genes have projected xrefs.\n" }, { "from": "gpt", "value": "/*\n Copyright (C) 2010 EBI, GRL\n \n This library is free software; you can redistribute it and/or\n modify it under the terms of the GNU Lesser General Public\n License as published by the...
java
chosen
[ { "from": "human", "value": "Create a Console for Img Packs Panel" }, { "from": "gpt", "value": "/**\r\n * IzPack - Copyright 2001-2008 Julien Ponge, All Rights Reserved.\r\n * \r\n * http://izpack.org/\r\n * http://izpack.codehaus.org/\r\n * \r\n * Copyright 2003 Jonathan Halliday\r\n * \r\n * ...
java
chosen
[ { "from": "human", "value": "Add constants interface for the explorer" }, { "from": "gpt", "value": "package com.codenvy.ide.ext.datasource.client.explorer;\n\nimport com.google.gwt.i18n.client.Constants;\n\npublic interface DatasourceExplorerConstants extends Constants {\n\n @DefaultStringVa...
java
chosen
[ { "from": "human", "value": "Test for ScheduledArmDao (loading is more rigorously tested in ScheduledCalendarDaoTest)\n\ngit-svn-id: 4b387fe5ada7764508e2ca96c335714e4c1692c6@607 0d517254-b314-0410-acde-c619094fa49f\n" }, { "from": "gpt", "value": "package edu.northwestern.bioinformatics.studycal...
java
chosen
[ { "from": "human", "value": "Test for NPE when calling getClass() in RefreshScope\n\nfixes gh-297\n" }, { "from": "gpt", "value": "/*\n * Copyright 2006-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 ex...
java
chosen
[ { "from": "human", "value": "Add Spring Boot JPA Start Sample" }, { "from": "gpt", "value": "/*\n * Copyright (C) 2016 Thinkenterprise\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": "Align mock mvc behaviour with real http client\n" }, { "from": "gpt", "value": "package org.springframework.mock.http.client;\n\n/*\n * ⁣​\n * Riptide\n * ⁣⁣\n * Copyright (C) 2015 - 2016 Zalando SE\n * ⁣⁣\n * Licensed under the Apache License, Version 2.0 (the \"Lic...
java
chosen
[ { "from": "human", "value": "Add Chronicle FIX 4.4. and use the LATEST build otherwise a specific version doesn't get updated.\n" }, { "from": "gpt", "value": "/*\n * Copyright (c) 2016-2019 Chronicle Software Ltd\n */\n\npackage net.openhft.chronicle.wire;\n\npublic class WatermarkedMicroTimest...
java
chosen
[ { "from": "human", "value": "Support rules of type ExternalResource\n\nnew integration test with 2 rules\nand after invocation verification\n\n#433\n" }, { "from": "gpt", "value": "/*\n * Copyright 2015-2016 the original author or authors.\n *\n * All rights reserved. This program and the accomp...
java
chosen
[ { "from": "human", "value": "Add builder to help prepare expected instances of PropertySource in tests\nIt's better than doing everything (instantiating the PropertySource along with the Map) inside the test itself, which would occupy much space\n" }, { "from": "gpt", "value": "package com.githu...
java
chosen
[ { "from": "human", "value": "Test case for HARMONY-50 (rightly part of revision 389232)\n\nsvn path=/incubator/harmony/enhanced/classlib/trunk/; revision=389257\n" }, { "from": "gpt", "value": "/* Copyright 2006 The Apache Software Foundation or its licensors, as applicable\r\n * \r\n * Licensed...
java
chosen
[ { "from": "human", "value": "Add metric endpoint for events\n" }, { "from": "gpt", "value": "package com.nitorcreations.willow.metrics;\n\nimport com.nitorcreations.willow.messages.event.EventMessage;\n\nimport javax.inject.Named;\nimport javax.servlet.http.HttpServletRequest;\nimport java.util....
java
chosen
[ { "from": "human", "value": "Add unit tests for GrpcWebServerModule\n" }, { "from": "gpt", "value": "package net.spals.appbuilder.app.grpc;\n\nimport com.google.inject.Guice;\nimport com.google.inject.Module;\nimport io.grpc.*;\nimport net.spals.appbuilder.graph.model.ServiceGraph;\nimport org.t...
java
chosen
[ { "from": "human", "value": "Add notification strategy for release build\n" }, { "from": "gpt", "value": "package io.github.droidkaigi.confsched2017.debug;\n\nimport com.tomoima.debot.strategy.DebotStrategy;\n\nimport android.app.Activity;\nimport android.support.annotation.NonNull;\n\nimport ja...
java
chosen
[ { "from": "human", "value": "Add Helper class for common functionality\n" }, { "from": "gpt", "value": "package org.oskari.control.userlayer;\n\nimport org.oskari.map.userlayer.service.UserLayerDbService;\n\nimport fi.nls.oskari.control.ActionConstants;\nimport fi.nls.oskari.control.ActionDenied...
java
chosen
[ { "from": "human", "value": "Create a skeleton for problem 306\n" }, { "from": "gpt", "value": "package leetcode;\n\n/**\n * https://leetcode.com/problems/additive-number/\n */\npublic class Problem306 {\n public boolean isAdditiveNumber(String num) {\n // TODO:\n return false;\...
java
chosen
[ { "from": "human", "value": "Create a skeleton for problem 310\n" }, { "from": "gpt", "value": "package leetcode;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\n/**\n * https://leetcode.com/problems/minimum-height-trees/\n */\npublic class Problem310 {\n public List<Integer> findMi...
java
chosen
[ { "from": "human", "value": "Use StyledText instead of Text in RSV editors" }, { "from": "gpt", "value": "package org.jkiss.dbeaver.ui.controls;\r\n\r\nimport org.eclipse.swt.custom.StyledText;\r\nimport org.eclipse.swt.widgets.Composite;\r\n\r\n/**\r\n * Advanced styled text control\r\n */\r\np...
java
chosen
[ { "from": "human", "value": "Add some tests to problem 64\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": "Define tests for the ReadOnlyDataSource class\n" }, { "from": "gpt", "value": "/*\n * Zorbage: an algebraic data hierarchy for use in numeric processing.\n *\n * Copyright (C) 2016-2019 Barry DeZonia\n * \n * Redistribution and use in source and binary forms, with or...
java
chosen
[ { "from": "human", "value": "Add tool provider related helper\n" }, { "from": "gpt", "value": "package com.github.sormuras.bach.internal;\n\nimport java.lang.module.ModuleDescriptor;\nimport java.util.Optional;\nimport java.util.spi.ToolProvider;\n\npublic class ToolProviders {\n\n public stati...
java
chosen
[ { "from": "human", "value": "Fix CalendarBooking permissions bug (entries were detected as outdated)\n" }, { "from": "gpt", "value": "/**\n * Copyright (c) 2015-present Jorge Díaz All rights reserved.\n *\n * This library is free software; you can redistribute it and/or modify it under\n * the t...
java
chosen
[ { "from": "human", "value": "Add Sierpinski example based on rule declaration.\n" }, { "from": "gpt", "value": "/**\n * \n */\npackage zoo;\n\nimport java.io.IOException;\n\nimport shapegrammar.Node;\nimport turtle.TextualTurtle;\nimport turtle.Turtle;\nimport turtle.TurtleInterpreter;\n\n/**\n ...
java
chosen
[ { "from": "human", "value": "util: Add a test for RequestUtil.\n" }, { "from": "gpt", "value": "package utils;\n\nimport java.util.HashMap;\n\nimport org.junit.Test;\n\nimport static org.fest.assertions.Assertions.assertThat;\n\npublic class RequestUtilTest {\n\n @Test\n public void getFir...
java
chosen
[ { "from": "human", "value": "Create custom expected condition class. Add new expected condition for element has stopped moving\n" }, { "from": "gpt", "value": "package com.persado.oss.quality.stevia.selenium.core;\n\n/*\n * #%L\n * Stevia QA Framework - Core\n * %%\n * Copyright (C) 2013 - 2016 ...
java
chosen
[ { "from": "human", "value": "Create util class to make broadcast receivers less awkward\n" }, { "from": "gpt", "value": "package io.particle.android.sdk.devicesetup;\n\n\nimport android.content.BroadcastReceiver;\nimport android.content.Context;\nimport android.content.Intent;\nimport android.co...
java
chosen
[ { "from": "human", "value": "Add a test for the immutable context\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 regardin...
java
chosen
[ { "from": "human", "value": "Add code to generate test data in same directory structure as training data\n" }, { "from": "gpt", "value": "package com.tom_e_white.set_game.preprocess;\n\nimport boofcv.io.image.UtilImageIO;\nimport com.tom_e_white.set_game.model.Card;\n\nimport java.io.File;\nimpo...
java
chosen
[ { "from": "human", "value": "Add basic fluid inventory container" }, { "from": "gpt", "value": "package info.u_team.u_team_test.container;\n\nimport info.u_team.u_team_core.container.UTileEntityContainer;\nimport info.u_team.u_team_test.init.TestContainers;\nimport info.u_team.u_team_test.tileen...
java
chosen
[ { "from": "human", "value": "ROO-196: Introduce simple XML Element builder to improve DOM generation tasks \n\n" }, { "from": "gpt", "value": "package org.springframework.roo.support.util;\n\nimport org.w3c.dom.Document;\nimport org.w3c.dom.Element;\n\n/**\n * Very simple convenience Builder for...
java
chosen
[ { "from": "human", "value": "Add package for runtime implementations\n" }, { "from": "gpt", "value": "/*\n * Copyright 2020 Martin Winandy\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with\n * the License. You may obtain...
java
chosen
[ { "from": "human", "value": "Add test case for GeoDistanceUDF.\n" }, { "from": "gpt", "value": "package org.gbif.occurrence.hive.udf;\n\nimport org.junit.jupiter.api.Test;\n\nimport static org.junit.jupiter.api.Assertions.assertFalse;\nimport static org.junit.jupiter.api.Assertions.assertTrue;\n...
java
chosen
[ { "from": "human", "value": "Use default renderer for all flow management interceptors\n\ngit-svn-id: 15d4771d83c46956b550e66b034a1e73d7ee3103@85 d594d982-de57-441b-9a2b-38caaf397e83\n" }, { "from": "gpt", "value": "/*\r\n * Copyright 2008 the original author or authors.\r\n * \r\n * Licensed un...
java
chosen
[ { "from": "human", "value": "Fix a couple of defects\n" }, { "from": "gpt", "value": "package uk.gov.dvla.services.authentication.exceptions;\n\npublic class DWPNegativeMatchException extends AuthenticationException {\n\n public DWPNegativeMatchException(String msg) {\n super(msg);\n ...
java
chosen
[ { "from": "human", "value": "[ENG-113] Test of .hashCode and equals on CalculationJobSpecification.\n" }, { "from": "gpt", "value": "/**\n * Copyright (C) 2009 - 2010 by OpenGamma Inc.\n *\n * Please see distribution for license.\n */\npackage com.opengamma.engine.view.calcnode;\n\nimport static...
java
chosen
[ { "from": "human", "value": "Remove link config from toolbar\n" }, { "from": "gpt", "value": "package flyway.ptimigration;\n\nimport fi.nls.oskari.util.JSONHelper;\nimport org.json.JSONObject;\n\n/**\n * Removes mapUrlPrefix config from toolbar if available\n */\npublic class V1_11__Remove_mapur...
java
chosen
[ { "from": "human", "value": "Add scaling API for Operator instances\n" }, { "from": "gpt", "value": "package ac.at.tuwien.infosys.visp.runtime.restAPI;\n\nimport java.util.List;\n\nimport ac.at.tuwien.infosys.visp.common.operators.Operator;\nimport ac.at.tuwien.infosys.visp.runtime.configuration...
java
chosen
[ { "from": "human", "value": "Add a test for RootCauseMatcher." }, { "from": "gpt", "value": "package com.googlecode.jslint4java.maven;\n\nimport static com.googlecode.jslint4java.maven.RootCauseMatcher.*;\nimport static org.hamcrest.CoreMatchers.*;\nimport static org.junit.Assert.*;\n\nimport or...
java
chosen
[ { "from": "human", "value": "Add unit test for CodeCoverageMetrics\n\nReally just trolling for coverage at this point, but I noticed a large\namount of uncovered code in here which was easy to knock out.\n" }, { "from": "gpt", "value": "// Copyright (c) 2015 Uber Technologies, Inc.\n//\n// Permi...
java
chosen
[ { "from": "human", "value": "Test the item-item model accumulator\n" }, { "from": "gpt", "value": "package org.grouplens.lenskit.knn.item;\n\nimport static org.junit.Assert.*;\nimport static org.hamcrest.Matchers.*;\n\nimport it.unimi.dsi.fastutil.longs.LongAVLTreeSet;\nimport it.unimi.dsi.fastu...
java
chosen
[ { "from": "human", "value": "Add generic equipment configuration repository.\n" }, { "from": "gpt", "value": "package au.gov.ga.geodesy.domain.model;\n\nimport java.util.Date;\nimport java.util.List;\n\nimport org.springframework.data.jpa.repository.JpaRepository;\nimport org.springframework.dat...
java
chosen
[ { "from": "human", "value": "Implement a class visitor that changes JVM version of a class\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 compliance with...
java
chosen
[ { "from": "human", "value": "Add instanceHolder class to keep the enabled / disabled instances" }, { "from": "gpt", "value": "package com.linkedin.clustermanager.controller;\n\nimport java.util.List;\nimport java.util.Map;\nimport java.util.TreeMap;\n\nimport com.linkedin.clustermanager.core.Clu...
java
chosen
[ { "from": "human", "value": "Introduce external module lookup builder class\n" }, { "from": "gpt", "value": "package com.github.sormuras.bach.lookup;\n\nimport java.net.URI;\nimport java.nio.file.Path;\n\n/** A builder of external module objects. */\npublic class ExternalModuleLookupBuilder {\n\...
java
chosen
[ { "from": "human", "value": "[ONOS-3233] Add the junit test code of TenantNetworkId\n\nChange-Id: Ibd30b8bb7bd936ea2e21477e5229edfe65ef9b2f\n" }, { "from": "gpt", "value": "/*\n * Copyright 2015 Open Networking Laboratory\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\...
java
chosen
[ { "from": "system", "value": "Add some more *Configuration super-classes to simplify boiler-plate stuff.\n" }, { "from": "human", "value": "/**\n * Copyright 2015 Red Hat, Inc, and individual contributors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not ...
java
chosen
[ { "from": "human", "value": "Add a dev-mode test for the Spring Web module\n" }, { "from": "gpt", "value": "package io.quarkus.spring.web.test;\n\nimport static io.restassured.RestAssured.when;\nimport static org.hamcrest.Matchers.is;\n\nimport org.jboss.shrinkwrap.api.ShrinkWrap;\nimport org.jb...
java
chosen
[ { "from": "human", "value": "Add javadoc to the java 8 futures package\n" }, { "from": "gpt", "value": "/*\n * Copyright 2016-2019 Talsma ICT\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may...
java
chosen
[ { "from": "human", "value": "Add lonely integer CTCI challenge\n\n" }, { "from": "gpt", "value": "package com.github.conradoqg.studydsa.hackerrank.challenges.ctci;\n\nimport java.util.Scanner;\n\npublic class LonelyInteger {\n public static int lonelyInteger(int[] a) {\n int lonelyOne ...
java
chosen
[ { "from": "human", "value": "Add test for openshift client\n" }, { "from": "gpt", "value": "/*\n * Copyright 2016 Red Hat 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 copy ...
java
chosen
[ { "from": "human", "value": "Remove Duplicates from Sorted List II\n" }, { "from": "gpt", "value": "package com.cyq7on.leetcode.linked_list;\n\n/**\n * @author cyq7on\n * @description Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the...
java
chosen
[ { "from": "human", "value": "Add a configuration that can be imported by applications to enable the docx4j renderers\n\n#226\n" }, { "from": "gpt", "value": "package org.springframework.content.docx4j.config;\n\nimport internal.org.springframework.content.docx4j.JpegToPngRenditionProvider;\nimpo...
java
chosen
[ { "from": "human", "value": "Add test cases for GreekRedundancyRule\n" }, { "from": "gpt", "value": "package org.languagetool.rules.el;\n\nimport org.junit.Before;\nimport org.junit.Test;\nimport org.languagetool.JLanguageTool;\nimport org.languagetool.TestTools;\nimport org.languagetool.languag...
java
chosen
[ { "from": "human", "value": "Add warmup servlet for AppEngine instance start request.\n" }, { "from": "gpt", "value": "/*\n * Copyright 2019, TeamDev. 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": "Create input config types enum.\n" }, { "from": "gpt", "value": "package com.github.aureliano.damihilogs.config.input;\n\npublic enum InputConfigTypes {\n\n\tEXTERNAL_COMMAND,\n\tFILE_INPUT,\n\tFILE_TAILER,\n\tSTANDARD_INPUT,\n\tURL,\n\tJDBC_INPUT,\n\tTWITTER_INPUT;\...
java
chosen
[ { "from": "human", "value": "Add the class used to find which parts of the BAM file which requires BQSR.\n" }, { "from": "gpt", "value": "package com.github.sparkcaller.preprocessing;\n\nimport com.github.sparkcaller.BaseGATKProgram;\nimport com.github.sparkcaller.Utils;\nimport org.apache.spark...
java
chosen
[ { "from": "human", "value": "Add unit test for StringListParameterValueConverter\n" }, { "from": "gpt", "value": "package org.roklib.urifragmentrouting.parameter.converter;\n\nimport org.junit.Test;\nimport org.roklib.urifragmentrouting.exception.ParameterValueConversionException;\n\nimport java...
java
chosen
[ { "from": "human", "value": "Add type representing a produced artifact\n\nInclude asset classification and compress flag in addition to file location.\n" }, { "from": "gpt", "value": "// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\npackag...
java
chosen
[ { "from": "human", "value": "Remove duplicate elements using hashig.\n" }, { "from": "gpt", "value": "package com.sunny.grokkingalgorithms.boot2019.phleps;\n\nimport java.util.HashSet;\nimport java.util.Set;\n\npublic class RemoveDuplicateElementsFromString {\n\n\n public static char[] remove...
java
chosen
[ { "from": "human", "value": "CHE-8265: Add an interface to apply Workspace.Next objects to internal environment\n\nSigned-off-by: Oleksandr Garagatyi <4052944973da826587020fa2673f873866877623@redhat.com>\n" }, { "from": "gpt", "value": "/*\n * Copyright (c) 2012-2018 Red Hat, Inc.\n * All rights...
java
chosen
[ { "from": "human", "value": "Add test for form fields\n" }, { "from": "gpt", "value": "package org.verapdf.model.impl.pb.pd;\n\nimport org.junit.AfterClass;\nimport org.junit.Assert;\nimport org.junit.BeforeClass;\nimport org.junit.Test;\nimport org.verapdf.model.baselayer.Object;\nimport org.ve...
java
chosen
[ { "from": "human", "value": "Add an integration test that has default read and write outside transaction set\n" }, { "from": "gpt", "value": "package arez.integration.observable;\n\nimport arez.annotations.ArezComponent;\nimport arez.annotations.Feature;\nimport arez.annotations.Observable;\nimp...
java
chosen
[ { "from": "human", "value": "Make sure the SoftReference can actually be garbage collected.\n\ngit-svn-id: fd52ae19693b7be904def34076a5ebbd6e132215@1729183 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "gpt", "value": "package org.apache.commons.jcs.engine.memory.util;\r\n\r\n/*\r\n * Lic...
java
chosen
[ { "from": "human", "value": "Add Misfit physical activity mapper tests\n" }, { "from": "gpt", "value": "package org.openmhealth.shim.misfit.mapper;\n\nimport com.fasterxml.jackson.databind.JsonNode;\nimport org.openmhealth.schema.domain.omh.*;\nimport org.openmhealth.shim.common.mapper.DataPoint...
java
chosen
[ { "from": "human", "value": "Add integration test for Verifier-rules using ErrorCollector example from JUnit 4\n\nThis test would fail correctly if commented in so serves as documentation only.\n\n#433\n" }, { "from": "gpt", "value": "/*\n * Copyright 2015-2016 the original author or authors.\n...
java
chosen
[ { "from": "human", "value": "Add interface for classes that have a result." }, { "from": "gpt", "value": "\npackage org.jenkinsci.plugins.relution_publisher.model;\n\nimport hudson.model.Result;\n\n\n/**\n * Interface definition for a class that holds a {@link Result}.\n */\npublic interface Res...
java
chosen
[ { "from": "human", "value": "Add model to represent medicine\n" }, { "from": "gpt", "value": "package com.aviras.mrassistant.models;\n\nimport io.realm.RealmObject;\nimport io.realm.annotations.PrimaryKey;\n\n/**\n * Represent medicine\n * <p/>\n * Created by ashish on 8/6/16.\n */\npublic class...
java
chosen
[ { "from": "human", "value": "Implement a network manager for the dataset clients to talk to the result distributing nodes.\n\ngit-svn-id: 45400e483b316c70cab0969c275555ef2720fd29@2511 123451ca-8445-de46-9d55-352943316053\n" }, { "from": "gpt", "value": "/*\n * Copyright 2009-2010 by The Regents ...
java
chosen
[ { "from": "human", "value": "Add testcase for RFE 2958584\n\ngit-svn-id: e7d6bde23f017c9ff4efd468d79d66def666766b@12187 eae3c2d3-9b19-0410-a86e-396b6ccb6ab3\n" }, { "from": "gpt", "value": "package sfBugs;\r\n\r\nimport java.io.Serializable;\r\nimport java.util.List;\r\n\r\npublic class RFE29585...
java
chosen
[ { "from": "human", "value": "Add simple security filters that returns 403 forbidden\n" }, { "from": "gpt", "value": "// Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\npackage com.yahoo.vespa.hosted.controller.restapi.filter;\n...
java
chosen
[ { "from": "human", "value": "Add @Formula test with currentdate\n" }, { "from": "gpt", "value": "package com.vladmihalcea.book.hpjp.hibernate.mapping.calculated;\n\nimport com.vladmihalcea.book.hpjp.util.AbstractPostgreSQLIntegrationTest;\nimport org.hibernate.annotations.Formula;\nimport org.ju...
java
chosen
[ { "from": "human", "value": "Test the failure to load the source of metadata information for annotations.\n" }, { "from": "gpt", "value": "package uk.ac.ebi.quickgo.annotation.controller;\n\nimport uk.ac.ebi.quickgo.annotation.AnnotationREST;\nimport uk.ac.ebi.quickgo.rest.metadata.MetaDataConfi...
java
chosen
[ { "from": "human", "value": "Add example of the use of a WrapFactory.\n" }, { "from": "gpt", "value": "/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-\n *\n * The contents of this file are subject to the Netscape Public\n * License Version 1.1 (the \"License\"); you...
java
chosen
[ { "from": "human", "value": "Add tests on AssertOnNumberOfChanges assertion method\n" }, { "from": "gpt", "value": "/**\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with\n * the License. You may obtain a copy of the License ...
java
chosen
[ { "from": "human", "value": "Add an adapter for gwt-rpc calls\n" }, { "from": "gpt", "value": "package org.realityforge.replicant.client.gwt;\n\nimport com.google.gwt.user.client.rpc.AsyncCallback;\nimport java.util.Objects;\nimport javax.annotation.Nonnull;\n\npublic final class ReplicantGwtRpc...
java
chosen
[ { "from": "human", "value": "Add API result object for picture requests\n" }, { "from": "gpt", "value": "package de.fu_berlin.cdv.chasingpictures.api;\n\nimport com.fasterxml.jackson.annotation.JsonIgnoreProperties;\n\nimport java.util.List;\n\n/**\n * @author Simon Kalt\n */\n@JsonIgnorePropert...
java
chosen
[ { "from": "human", "value": "Add a list implementation that is a live view of concatenation of multiple lists\n" }, { "from": "gpt", "value": "package org.svetovid.util;\r\n\r\nimport java.util.AbstractList;\r\nimport java.util.ArrayList;\r\nimport java.util.List;\r\n\r\npublic class CompoundLis...
java
chosen
[ { "from": "human", "value": "Add a constant class for database entity properties" }, { "from": "gpt", "value": "package com.codenvy.ide.ext.datasource.client.properties;\n\nimport com.google.gwt.i18n.client.Constants;\n\npublic interface DataEntityPropertiesConstants extends Constants {\n\n @...
java
chosen
[ { "from": "human", "value": "Add new cache to store computed datasets" }, { "from": "gpt", "value": "/*-\n * Copyright 2017 Diamond Light Source Ltd.\n *\n * All rights reserved. This program and the accompanying materials\n * are made available under the terms of the Eclipse Public License v1.0...
java
chosen
[ { "from": "human", "value": "Add monitoring class for CPU usage.\n" }, { "from": "gpt", "value": "package benchmarking;\n\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.lang.reflect.Field;\nimport java.util.Date;\n\npublic class CpuMo...
java
chosen