conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "human", "value": "Add statement to problem 79\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 testing for save command\n" }, { "from": "gpt", "value": "package guitests;\n\nimport java.io.File;\nimport java.io.IOException;\n\nimport org.junit.Before;\nimport org.junit.Test;\n\nimport seedu.malitio.commons.exceptions.DataConversionException;\nimport seedu....
java
chosen
[ { "from": "human", "value": "Define a base servlet for use within Gerrit RPC servers\n\nThis servlet can be subclassed to define the servlet for each\nRemoteJsonService implementation needed within Gerrit.\n\nSigned-off-by: Shawn O. Pearce <f3ea74d906fa9fe97c1fef6bad9cb871485c7045@google.com>\n" }, { ...
java
chosen
[ { "from": "human", "value": "Add class for converting to Stata values\n" }, { "from": "gpt", "value": "package org.matthewjwhite.stata.util;\n\nimport com.stata.sfi.SFIToolkit;\n\npublic class Conversion {\n\tpublic static double real(boolean b) {\n\t\treturn b ? 1.0 : 0.0;\n\t}\n\n\tpublic stat...
java
chosen
[ { "from": "human", "value": "Add PYXL_TAG_REFERENCE as a reference token" }, { "from": "gpt", "value": "package com.christofferklang.pyxl;\n\nimport com.intellij.psi.tree.TokenSet;\nimport com.jetbrains.python.PythonDialectsTokenSetContributor;\nimport com.jetbrains.python.PythonTokenSetContribu...
java
chosen
[ { "from": "human", "value": "Test case for librato-reporter not failing from report\n" }, { "from": "gpt", "value": "package com.librato.metrics;\n\nimport com.codahale.metrics.Gauge;\nimport com.codahale.metrics.MetricFilter;\nimport com.codahale.metrics.MetricRegistry;\nimport junit.framework....
java
chosen
[ { "from": "human", "value": "Comment request created. No tests created, because it has literally zero logic. It's a glorified struct\n" }, { "from": "gpt", "value": "package ca.ualberta.lard.model;\n\n/**\n * A CommentRequest is a structure that aids in the retrieving of comments. It unifies the...
java
chosen
[ { "from": "human", "value": "Add JUnit tests for MessageBuilder.\n" }, { "from": "gpt", "value": "package google.main;\n\nimport static org.junit.Assert.assertEquals;\n\nimport org.junit.Test;\n\npublic class MessageBuilderTest {\n\n\t@Test\n\tpublic void testBuilderWithNull() {\n\t\tString expe...
java
chosen
[ { "from": "human", "value": "Add utils to read and write strings from/to files\n" }, { "from": "gpt", "value": "package com.greenyetilab;\n\nimport com.greenyetilab.utils.log.NLog;\n\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.InputStreamReader;\nimport java.io.Outp...
java
chosen
[ { "from": "human", "value": "Add some common lambda conditions\n" }, { "from": "gpt", "value": "/*\n * Copyright (c) 2015 Legend Zero LLC\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"...
java
chosen
[ { "from": "human", "value": "Add support for LocalOptimizeAway action.\n\nAdd source file: manager/action/LocalOptimizeAwayAction.java\n" }, { "from": "gpt", "value": "/*\n * Copyright 2004-2006 Stefan Reuter\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you ma...
java
chosen
[ { "from": "human", "value": "Add utility for content provider\n" }, { "from": "gpt", "value": "package com.amalgam.content;\n\n/**\n */\npublic final class ContentProviderUtils {\n private static final String PLURAL_MIME_TYPE = \"vnd.android.cursor.dir\";\n private static final String SING...
java
chosen
[ { "from": "human", "value": "Add Detail Activity for display the blog or news details\n" }, { "from": "gpt", "value": "package tk.wlemuel.cotable.activity.blog.view;\n\nimport java.lang.ref.WeakReference;\n\nimport tk.wlemuel.cotable.activity.common.SimpleBackActivity;\nimport tk.wlemuel.cotable...
java
chosen
[ { "from": "human", "value": "Introduce Leaderboard class for holding internal ids\n" }, { "from": "gpt", "value": "package com.stefanhoth.ropasclisp.achievements;\n\nimport android.content.Context;\nimport android.support.annotation.StringRes;\n\nimport com.stefanhoth.ropasclisp.R;\n\npublic enu...
java
chosen
[ { "from": "human", "value": "Add --server command line flag\n" }, { "from": "gpt", "value": "/*\n * #%L\n * ImageJ server for RESTful access to ImageJ.\n * %%\n * Copyright (C) 2013 - 2016 Board of Regents of the University of\n * Wisconsin-Madison.\n * %%\n * Licensed under the Apache License, ...
java
chosen
[ { "from": "human", "value": "Add interface for message formatters\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 a ...
java
chosen
[ { "from": "human", "value": "Create test case for MouldOpening Chart\n" }, { "from": "gpt", "value": "package myservlet;\nimport org.junit.*;\nimport org.amc.servlet.model.*;\nimport static org.junit.Assert.*;\n\npublic class TestMouldClosingData \n{\n\t@Test\n\tpublic void testGetMouldClosingTi...
java
chosen
[ { "from": "human", "value": "Implement PRNG recommended by 'Numerical Recipes'.\n" }, { "from": "gpt", "value": "/*\n * Java Genetic Algorithm Library (@__identifier__@).\n * Copyright (c) @__year__@ Franz Wilhelmstötter\n *\n * This library is free software; you can redistribute it and/or\n * m...
java
chosen
[ { "from": "human", "value": "Add cursor toggle key listener object" }, { "from": "gpt", "value": "package com.haxademic.core.ui;\n\nimport com.haxademic.core.app.P;\nimport com.haxademic.core.debug.DebugUtil;\n\nimport processing.event.KeyEvent;\n\npublic class CursorToggle {\n\n\tprotected bool...
java
chosen
[ { "from": "human", "value": "Add java solution for 264. Ugly Number II\n\n264. Ugly Number II: https://leetcode.com/problems/ugly-number-ii/" }, { "from": "gpt", "value": "package leetcode.ugly_number_ii;\n\npublic class Solution {\n public int nthUglyNumber(int n) {\n int[] ugly = new...
java
chosen
[ { "from": "human", "value": "feat(service): Add a service loader helper\n" }, { "from": "gpt", "value": "/**\n * Copyright (C) 2015 The Gravitee team (http://gravitee.io)\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 default implementation of ExtendPeriodic interface.\n" }, { "from": "gpt", "value": "package net.imagej.ops.viewOp;\n\nimport org.scijava.plugin.Plugin;\n\nimport net.imagej.ops.view.ViewOps;\nimport net.imagej.ops.view.ViewOps.ExtendPeriodic;\nimport net.imglib2...
java
chosen
[ { "from": "human", "value": "Include java file to invoke SimpleServlet\n\nInclude java file to invoke SimpleServlet\n" }, { "from": "gpt", "value": "import java.net.*;\nimport java.io.*;\nimport java.net.URLEncoder;\n\npublic class ServletTest {\n public static void main(String[] args) throws E...
java
chosen
[ { "from": "human", "value": "Use to cat an HDFS file " }, { "from": "gpt", "value": "package com.splunk.shep.customsearch;\n\nimport java.net.URI;\n\nimport org.apache.hadoop.conf.Configuration;\nimport org.apache.hadoop.fs.FSDataInputStream;\nimport org.apache.hadoop.fs.FileSystem;\nimport org....
java
chosen
[ { "from": "human", "value": "Create close all tabs menu item.\n" }, { "from": "gpt", "value": "package com.github.aureliano.edocs.app.gui.menu;\n\nimport javax.swing.JMenuItem;\n\npublic class CloseAllTabsMenuItem extends JMenuItem {\n\n\tprivate static final long serialVersionUID = 540250387120...
java
chosen
[ { "from": "human", "value": "Add device support to java bindings.\n" }, { "from": "gpt", "value": "package nanomsg;\n\nimport java.lang.Runnable;\nimport nanomsg.NativeLibrary;\n\n\npublic class Device implements Runnable {\n private final int sourceSocket;\n private final int destSocket;\...
java
chosen
[ { "from": "human", "value": "Add shell util test class.\n" }, { "from": "gpt", "value": "package me.haosdent.cgroup.util;\n\nimport org.junit.After;\nimport org.junit.Before;\nimport org.junit.Test;\n\npublic class TestShell {\n\n @Before\n public void setUp() {}\n\n @After\n public void tea...
java
chosen
[ { "from": "human", "value": "Add some unit tests on serializers\n" }, { "from": "gpt", "value": "package de.timroes.axmlrpc.serializer;\n\nimport static org.junit.Assert.*;\n\nimport java.util.Date;\n\nimport org.junit.Test;\n\nimport de.timroes.axmlrpc.xmlcreator.XmlElement;\n\npublic class Tes...
java
chosen
[ { "from": "human", "value": "Check that the gene_stable_id table is populated in EST databases (needs to be a separate healthcheck from StableIDs since this is required at a different point in the release process).\n" }, { "from": "gpt", "value": "/*\n Copyright (C) 2003 EBI, GRL\n \n This libra...
java
chosen
[ { "from": "human", "value": "Add a test for ViolationText.\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 copyright notice and the followin...
java
chosen
[ { "from": "human", "value": "[remote] Convert all of the HubServer packets so far to protobufs, and implement core message response structures.\n" }, { "from": "gpt", "value": "package to.etc.function;\n\n/**\n * @author <a href=\"mailto:jal@etc.to\">Frits Jalvingh</a>\n * Created on 26-1-19.\n ...
java
chosen
[ { "from": "human", "value": "Add enum for each size already use\n" }, { "from": "gpt", "value": "package com.erudika.scoold.utils.avatars;\n\npublic enum AvatarFormat {\n\tSquare25,\n\tSquare32,\n\tSquare50,\n\tSquare127,\n\tProfile,\n}\n" } ]
java
chosen
[ { "from": "human", "value": "Mark the entire event API volatile for now as we will probably twiddle its bits a few more times.\n" }, { "from": "gpt", "value": "/**\n * @author <a href=\"mailto:johannesd@torchmind.com\">Johannes Donath</a>\n */\n\n@Volatile\npackage org.basinmc.faucet.event;\n\ni...
java
chosen
[ { "from": "human", "value": "Revert \"no longer needed\". Actually used by Bootstrap\n\nThis reverts commit 1fd95b01066ef8b72ae11201ea1797dc9d7a4a21.\n" }, { "from": "gpt", "value": "package com.proofpoint.log;\n\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.String...
java
chosen
[ { "from": "human", "value": "Add of the first tests of the ConvertUtils class\n" }, { "from": "gpt", "value": "package fr.openium.blinkiumandroid;\n\nimport org.junit.Test;\n\nimport java.util.Arrays;\n\nimport fr.openium.blinkiumandroid.utils.ConvertUtils;\n\nimport static junit.framework.Asser...
java
chosen
[ { "from": "human", "value": "Add supported protocols enum in api\n" }, { "from": "gpt", "value": "package com.elastisys.scale.cloudpool.api;\n\nimport com.google.gson.annotations.SerializedName;\n\n/**\n * Supported cloud pool protocols.\n */\npublic enum Protocol {\n /** HTTP protocol. */\n ...
java
chosen
[ { "from": "human", "value": "Change event ranker class name\n" }, { "from": "gpt", "value": "package com.google.sps.utilities;\n\nimport com.google.sps.data.Event;\nimport com.google.sps.data.User;\nimport com.google.sps.data.VolunteeringOpportunity;\nimport java.util.ArrayList;\nimport java.uti...
java
chosen
[ { "from": "human", "value": "Insert into BST recursive , O(N) worst case , O(logn) for balanced BST.\n" }, { "from": "gpt", "value": "package com.sunny.grokkingalgorithms.fasttrack.treesandgraphs;\n\nimport com.sunny.grokkingalgorithms.ctci.c4.util.BinaryTreeNode;\nimport com.sunny.grokkingalgor...
java
chosen
[ { "from": "human", "value": "Create : 434 Number of Segments in a String\n" }, { "from": "gpt", "value": "public class Solution {\n\n public static int countSegments(String s) {\n\n int spaceCount = 0;\n\n s += \" \";\n\n for (int i = 1; i < s.length(); i++) {\n\n ...
java
chosen
[ { "from": "human", "value": "Add unit test for LibUsbException class." }, { "from": "gpt", "value": "/*\n * Copyright (C) 2014 Klaus Reimer <k@ailis.de>\n * See LICENSE.md for licensing information.\n */\n\npackage org.usb4java;\n\nimport static org.junit.Assert.assertEquals;\n\nimport org.junit...
java
chosen
[ { "from": "human", "value": "Create SortCriteria enum test for UniqueTaskList\n" }, { "from": "gpt", "value": "package seedu.ezdo.model.task;\n\nimport org.junit.Test;\nimport org.junit.runner.RunWith;\nimport org.powermock.api.mockito.PowerMockito;\nimport org.powermock.core.classloader.annotat...
java
chosen
[ { "from": "human", "value": "[JENKINS-41511] Add a test showing the problem\n" }, { "from": "gpt", "value": "package jenkins.bugs;\n\nimport org.junit.BeforeClass;\nimport org.junit.Rule;\nimport org.junit.Test;\nimport org.jvnet.hudson.test.JenkinsRule;\n\nimport hudson.security.HudsonPrivateSe...
java
chosen
[ { "from": "human", "value": "Add a session controller to support the documentation\n\nSigned-off-by: Clement Escoffier <6397137e57d1f87002962a37058f2a1c76fca9db@gmail.com>\n" }, { "from": "gpt", "value": "package controllers;\n\nimport org.ow2.chameleon.wisdom.api.DefaultController;\nimport org....
java
chosen
[ { "from": "human", "value": "Test Object for the UberspectorTestCase\n\ngit-svn-id: 10199add9e99fdfd09a887e21850bf0d170bc390@440845 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "gpt", "value": "package org.apache.velocity.test.misc;\n\n/*\n * Copyright 2006 The Apache Software Foundation...
java
chosen
[ { "from": "human", "value": "Add a lazy Iterator advance method\n" }, { "from": "gpt", "value": "/*\n * Copyright (C) 2014 Ohm Data\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by...
java
chosen
[ { "from": "human", "value": "Check in state to determine if a control is in a toolbar." }, { "from": "gpt", "value": "/*\n * Copyright (c) 2009 Kathryn Huxtable and Kenneth Orr.\n *\n * This file is part of the SeaGlass Pluggable Look and Feel.\n *\n * Licensed under the Apache License, Version ...
java
chosen
[ { "from": "human", "value": "Add some tests to problem 59\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": "Support for getting al docs from a pub via sitetree\n\n\ngit-svn-id: f6f45834fccde298d83fbef5743c9fd7982a26a3@43283 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "gpt", "value": "/*\n * Copyright 1999-2004 The Apache Software Foundation\n *\n * Licensed unde...
java
chosen
[ { "from": "human", "value": "[CAMEL-12744] Test SSL communication on Restlet producer\n" }, { "from": "gpt", "value": "package org.apache.camel.component.restlet;\n\nimport org.apache.camel.Exchange;\nimport org.apache.camel.Processor;\nimport org.apache.camel.builder.RouteBuilder;\nimport org.a...
java
chosen
[ { "from": "human", "value": "Test for validation of Reference values for annotation filtering.\n" }, { "from": "gpt", "value": "package uk.ac.ebi.quickgo.annotation.validation;\n\nimport javax.validation.ConstraintValidatorContext;\nimport org.junit.Before;\nimport org.junit.Test;\nimport org.ju...
java
chosen
[ { "from": "human", "value": "Add subjects according to class\n" }, { "from": "gpt", "value": "package in.co.nebulax.maestro.utils;\n\npublic class Subjects {\n\n\tpublic static String[][] subjects = new String[][] {\n\n\t\t\t// Class 1\n\t\t\t{ \"English\", \"Hindi\", \"Maths\", \"E.V.S\" },\n\n...
java
chosen
[ { "from": "human", "value": "Add magic 8 ball demo to lecture 10.\n" }, { "from": "gpt", "value": "/**\n * Let's make our magic 8 ball game work repeatedly!\n * Maybe we'll even allow exiting...\n */\npackage com.comp110.lecture10;\n\nimport java.util.Scanner;\n\npublic class Magic8BallRedux {\n...
java
chosen
[ { "from": "human", "value": "Add default implementation of Translate interface.\n" }, { "from": "gpt", "value": "package net.imagej.ops.views;\n\nimport org.scijava.ItemIO;\nimport org.scijava.plugin.Parameter;\nimport org.scijava.plugin.Plugin;\n\nimport net.imagej.ops.view.ViewOps;\nimport net...
java
chosen
[ { "from": "human", "value": "Add utility for hacking disabling SSL checks if required.\n" }, { "from": "gpt", "value": "package com.github.jmchilton.blend4j.galaxy;\n\nimport javax.net.ssl.HostnameVerifier;\nimport javax.net.ssl.HttpsURLConnection;\nimport javax.net.ssl.SSLContext;\nimport javax...
java
chosen
[ { "from": "human", "value": "Add event with String-based synopsis\n" }, { "from": "gpt", "value": "package galileo.event;\n\nimport java.io.IOException;\n\nimport galileo.serialization.SerializationInputStream;\nimport galileo.serialization.SerializationOutputStream;\n\n/**\n * Encapsulates a ra...
java
chosen
[ { "from": "human", "value": "Add new flow controller to allow internal writes to repo\n" }, { "from": "gpt", "value": "package org.ccnx.ccn.impl.repo;\n\nimport java.io.IOException;\n\nimport org.ccnx.ccn.CCNHandle;\nimport org.ccnx.ccn.impl.CCNFlowControl;\nimport org.ccnx.ccn.protocol.ContentO...
java
chosen
[ { "from": "human", "value": "Add presenter to handle saving and loading data asynchronously\n" }, { "from": "gpt", "value": "package com.zelory.kace.adressbook.presenter;\n\nimport com.zelory.kace.adressbook.data.DataManager;\nimport com.zelory.kace.adressbook.data.model.AddressBook;\nimport rx....
java
chosen
[ { "from": "human", "value": "Add an IT for that.\n" }, { "from": "gpt", "value": "/**\n * Copyright (C) 2009-2013 FoundationDB, LLC\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as published by\n * the...
java
chosen
[ { "from": "human", "value": "Add OutputFactory interface for binary input pairs\n" }, { "from": "gpt", "value": "/*\n * #%L\n * ImageJ software for multidimensional image processing and analysis.\n * %%\n * Copyright (C) 2014 - 2015 Board of Regents of the University of\n * Wisconsin-Madison, Un...
java
chosen
[ { "from": "human", "value": "Refactor duplicate code in a new API Boolean.parseBoolean(String, boolean), which also checks for empty strings in addition to nulls.\n\ngit-svn-id: de5ce936019686f47409c93bcc5e202a9739563b@1501382 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "gpt", "value": ...
java
chosen
[ { "from": "human", "value": "Add controller for REST calls.\n" }, { "from": "gpt", "value": "package webserver;\n\nimport converters.JsonConverter;\nimport datamodel.Job;\nimport datamodel.Request;\nimport org.springframework.http.HttpStatus;\nimport org.springframework.http.ResponseEntity;\nimp...
java
chosen
[ { "from": "system", "value": "[android] Revert discount value for hotel price\n" }, { "from": "human", "value": "package com.mapswithme.maps.widget.placepage;\n\nimport android.support.annotation.NonNull;\n\npublic class HotelPriceInfo\n{\n @NonNull\n private final String mId;\n @NonNull\n p...
java
chosen
[ { "from": "human", "value": "Implement source directly working above samples\n" }, { "from": "gpt", "value": "package cz.cuni.mff.d3s.spl.core.data.storage;\n\nimport java.util.Collection;\n\nimport cz.cuni.mff.d3s.spl.core.data.PrecomputedStatistics;\nimport cz.cuni.mff.d3s.spl.core.data.Sample...
java
chosen
[ { "from": "human", "value": "Add tests for 'Escaper' class.\n" }, { "from": "gpt", "value": "/*\n * Java Genetic Algorithm Library (@__identifier__@).\n * Copyright (c) @__year__@ Franz Wilhelmstötter\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use t...
java
chosen
[ { "from": "human", "value": "Encrypt bean configuration was added.\n" }, { "from": "gpt", "value": "/*\n * Copyright 2016 EPAM Systems\n *\n *\n * This file is part of EPAM Report Portal.\n * https://github.com/reportportal/service-api\n *\n * Report Portal is free software: you can redistribute...
java
chosen
[ { "from": "human", "value": "Refactor server tree into it's own component" }, { "from": "gpt", "value": "/*\n * To change this license header, choose License Headers in Project Properties.\n * To change this template file, choose Tools | Templates\n * and open the template in the editor.\n */\np...
java
chosen
[ { "from": "human", "value": "Add default implementation of Unshear interface.\n" }, { "from": "gpt", "value": "package net.imagej.ops.views;\n\nimport net.imagej.ops.view.ViewOps;\nimport net.imagej.ops.view.ViewOps.UnShear;\nimport net.imglib2.RandomAccessible;\nimport net.imglib2.view.Transfor...
java
chosen
[ { "from": "human", "value": "Add Test to fail LogWriter\n" }, { "from": "gpt", "value": "package Logger;\n\nimport Constant.FilePath;\nimport Database.Config;\nimport org.junit.After;\nimport org.junit.Before;\nimport org.junit.Test;\n\nimport java.io.File;\n\nimport static org.junit.Assert.*;\n...
java
chosen
[ { "from": "human", "value": "Define an exception that is thrown if a request is cancelled\n\nSigned-off-by: Edwin Kempin <d43fb6c98c97e553b671ed9a9318100f1de386e7@google.com>\nChange-Id: Ibd7d788de1f90911ecada25ea45f04c459323e0b\n" }, { "from": "gpt", "value": "// Copyright (C) 2021 The Android ...
java
chosen
[ { "from": "human", "value": "Add new test case for equal method(Fake Implementation) to make red bar" }, { "from": "gpt", "value": "package com.sibisoft.faizaniftikhartdd;\r\n\r\nimport static org.junit.Assert.*;\r\n\r\nimport org.junit.Test;\r\n\r\npublic class DollarEquality {\r\n\r\n\t@Test\r...
java
chosen
[ { "from": "human", "value": "Add Naive solution for Lisas Workbook\n" }, { "from": "gpt", "value": "/**\n * \n */\npackage algorithms.implementation;\n\nimport java.util.Scanner;\n\n/**\n * Challenge: https://www.hackerrank.com/challenges/lisa-workbook\n * \n * @author Sudharsanan Muralidharan\n...
java
chosen
[ { "from": "human", "value": "Add test case for list command\n" }, { "from": "gpt", "value": "package guitests;\n\nimport static org.junit.Assert.assertTrue;\n\nimport org.junit.Test;\n\nimport seedu.jobs.model.task.UniqueTaskList.IllegalTimeException;\nimport seedu.jobs.testutil.TestTask;\n\n//@...
java
chosen
[ { "from": "human", "value": "Add data point modality unit tests.\n" }, { "from": "gpt", "value": "/*\n * Copyright 2014 Open mHealth\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 Jpa converter for ZoneId from the java.time API\n" }, { "from": "gpt", "value": "/*\n * Copyright 2016 Martijn van der Woud - The Crimson Cricket Internet Services\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use...
java
chosen
[ { "from": "human", "value": "Add java solution for 96. Unique Binary Search Trees\n\n96. Unique Binary Search Trees: https://leetcode.com/problems/unique-binary-search-trees/" }, { "from": "gpt", "value": "package leetcode.unique_binary_search_trees;\n\npublic class Solution {\n public int nu...
java
chosen
[ { "from": "human", "value": "Add basic servlet that responds with user info\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 may obt...
java
chosen
[ { "from": "human", "value": "Add java solution for 150. Evaluate Reverse Polish Notation\n\n150. Evaluate Reverse Polish Notation: https://leetcode.com/problems/evaluate-reverse-polish-notation/" }, { "from": "gpt", "value": "package leetcode.evaluate_reverse_polish_notation;\n\nimport java.util...
java
chosen
[ { "from": "human", "value": "Create template of yum package manager.\n" }, { "from": "gpt", "value": "package com.github.aureliano.achmed.os.pkg;\n\nimport com.github.aureliano.achmed.command.CommandResponse;\nimport com.github.aureliano.achmed.resources.properties.PackageProperties;\n\npublic c...
java
chosen
[ { "from": "human", "value": "Create main class od KKM model\n" }, { "from": "gpt", "value": "package edu.agh.tunev.model.kkm;\n\nimport java.util.Vector;\n\nimport edu.agh.tunev.model.AbstractModel;\nimport edu.agh.tunev.model.PersonProfile;\nimport edu.agh.tunev.statistics.Statistics.AddCallbac...
java
chosen
[ { "from": "human", "value": "Add instance model helper class" }, { "from": "gpt", "value": "package to.etc.domui.component.form;\n\nimport to.etc.domui.util.*;\n\npublic class InstanceReadOnlyModel<T> implements IReadOnlyModel<T> {\n\tprivate T m_instance;\n\n\tpublic InstanceReadOnlyModel(T ins...
java
chosen
[ { "from": "human", "value": "Add Json integration test for reading and parsing Json\n" }, { "from": "gpt", "value": "/**\n * Copyright (C) 2012 Gist Labs, LLC. (http://gistlabs.com)\n *\n * This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the ...
java
chosen
[ { "from": "human", "value": "Add simple collect for Map entries to ImmutableMap\n" }, { "from": "gpt", "value": "package com.box.l10n.mojito.collect;\n\nimport com.google.common.collect.ImmutableMap;\n\nimport java.util.Map;\nimport java.util.stream.Collector;\n\npublic class ImmutableMapCollect...
java
chosen
[ { "from": "human", "value": "Add example on how to set the prompt\n\n(cherry picked from commit 2b6757d)\n" }, { "from": "gpt", "value": "package io.vertx.example.shell.prompt;\n\nimport io.vertx.core.AbstractVerticle;\nimport io.vertx.example.util.Runner;\nimport io.vertx.ext.shell.Shell;\nimpo...
java
chosen
[ { "from": "human", "value": "Add interface for parameterization of buttons in forms\n" }, { "from": "gpt", "value": "package org.beanmaker.util;\n\nimport org.jcodegen.html.DivTag;\n\nimport java.util.ResourceBundle;\n\npublic interface HtmlDefaultButtonsHelper {\n\n DivTag getDefaultDialogBu...
java
chosen
[ { "from": "human", "value": "[JENKINS-41511] Add a test showing the problem\n\n(cherry picked from commit a26d71153d7609094e449d371d3ab0f8415b887f)\n" }, { "from": "gpt", "value": "package jenkins.bugs;\n\nimport org.junit.BeforeClass;\nimport org.junit.Rule;\nimport org.junit.Test;\nimport org....
java
chosen
[ { "from": "human", "value": "Implement a class with testing methods\n" }, { "from": "gpt", "value": "package com.google.sps.tool;\n\nimport com.google.appengine.api.datastore.Entity;\nimport com.google.appengine.api.datastore.DatastoreService;\nimport com.google.appengine.api.datastore.Datastore...
java
chosen
[ { "from": "human", "value": "Add Test class to appease github bellyaching\n" }, { "from": "gpt", "value": "package org.numenta.nupic.util;\n\nimport static org.junit.Assert.*;\n\nimport org.junit.Test;\n\n\npublic class MethodSignatureTest {\n\n @Test\n public void testSetParam() {\n ...
java
chosen
[ { "from": "human", "value": "Add datamodel for mentaining information abbout process pid and process output.\n" }, { "from": "gpt", "value": "package datamodel;\n\n\npublic class CommandPidAndResults {\n private long commadnPid;\n private String commandResults;\n\n public CommandPidAndR...
java
chosen
[ { "from": "human", "value": "Add support for persisting Projects." }, { "from": "gpt", "value": "package ca.corefacility.bioinformatics.irida.service;\n\nimport ca.corefacility.bioinformatics.irida.model.Project;\nimport ca.corefacility.bioinformatics.irida.model.Role;\nimport ca.corefacility.bi...
java
chosen
[ { "from": "human", "value": "Add tests for pedicate pushdown\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": "Add a package level Javadoc to try to clarify how the filter solution works.\n" }, { "from": "gpt", "value": "/**\n * Provides the classes necessary to create and process client request filters.\n * <p/>\n * {@link uk.ac.ebi.quickgo.rest.search.filter.RequestFilter} ...
java
chosen
[ { "from": "human", "value": "Create Constants Class for All Hardcoded Texts and URLs\n" }, { "from": "gpt", "value": "package com.lucene;\n\npublic class LuceneConstants {\n\n\tpublic static final String DATA_DIRECTORY \t\t\t= \"/Users/Hurricanc/Documents/Projects/WJLucene-Java/MetaData/Data\";\...
java
chosen
[ { "from": "human", "value": "Add ContentProvider Contract class for ContentProvider sample app.\n\nLeft out of the initial commit for the app. (oops)\n\nI try to avoid Java stubs in sample apps, but in this case, we need\nto define one to follow platform conventions. (It's a bag of \"vals\"\nand functions...
java
chosen
[ { "from": "human", "value": "Add test for handling not found assets\n" }, { "from": "gpt", "value": "package uk.gov.register.functional;\n\nimport org.jsoup.Jsoup;\nimport org.jsoup.nodes.Document;\nimport org.jsoup.select.Elements;\nimport org.junit.Assert;\nimport org.junit.Test;\nimport javax...
java
chosen
[ { "from": "human", "value": "Create the metricCalculator singleton factory.\n" }, { "from": "gpt", "value": "package ie.gmit.sw;\n\n/**\n * Created by Ross Byrne on 10/01/17.\n * A singleton factory for handling the instances of\n * the metric calculators.\n */\npublic class MetricCalculatorFact...
java
chosen
[ { "from": "human", "value": "Include Safari test using options\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 compliance with t...
java
chosen
[ { "from": "human", "value": "Add the annotation for discovering script languages\n\nThese will be discovered by the upcoming script service. Script\nlanguages which are not added via Java 1.6' scripting framework need to\nimplement this interface so that ImageJ2 discovers them.\n\nSigned-off-by: Johannes Sc...
java
chosen
[ { "from": "human", "value": "EST-373: Add additional test for lease term for test\n" }, { "from": "gpt", "value": "package org.estatio.dom.lease;\n\nimport static org.hamcrest.MatcherAssert.assertThat;\nimport static org.hamcrest.Matchers.is;\n\nimport org.joda.time.LocalDate;\nimport org.junit....
java
chosen
[ { "from": "human", "value": "[NOBTS] Add the message refresh for dev\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...
java
chosen
[ { "from": "human", "value": "Replace With next greatest element\n" }, { "from": "gpt", "value": "package com.coderevisited.coding;\n\npublic class ReplaceWithNextGreatest\n{\n public static void main(String[] args)\n {\n int[] array = new int[]{16, 6, 9, 10, 11, 17, 4, 3, 9, 8, 5, 2...
java
chosen