conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "human",
"value": "Add simple application test to interact with MSCAPI\n"
},
{
"from": "gpt",
"value": "package eu.europa.esig.dss.token;\n\nimport java.util.List;\n\nimport org.apache.commons.codec.binary.Base64;\n\nimport eu.europa.esig.dss.DigestAlgorithm;\nimport eu.europa.esig.dss... | java | chosen |
[
{
"from": "human",
"value": "Add Google Spanner unit test.\n"
},
{
"from": "gpt",
"value": "\n/*\n * Copyright (C) 2015 Archie L. Cobbs. All rights reserved.\n */\n\npackage org.jsimpledb.kv.spanner;\n\nimport com.google.cloud.spanner.SpannerOptions;\n\nimport org.jsimpledb.kv.KVDatabase;\nimpor... | java | chosen |
[
{
"from": "system",
"value": "Create JavaEE Web Page action\n"
},
{
"from": "human",
"value": "package com.jetbrains.python.actions;\n\nimport com.intellij.ide.actions.CreateFileFromTemplateDialog;\nimport com.intellij.ide.actions.CreateFromTemplateAction;\nimport com.intellij.openapi.project.Du... | java | chosen |
[
{
"from": "human",
"value": "Add JUnit test for Grammars class in rest modeling module.\n"
},
{
"from": "gpt",
"value": "package org.slc.sli.modeling.rest;\n\nimport static org.junit.Assert.*;\n\nimport java.util.ArrayList;\n\nimport org.junit.Before;\nimport org.junit.Test;\n\n/**\n * JUnit tes... | java | chosen |
[
{
"from": "human",
"value": "Add framework for parser object and String to Object method\n"
},
{
"from": "gpt",
"value": "package edu.grinnell.tranchri.cohnhan.deweytyl.hardtmad;\n\n/**\n * JSONParser Class\n * \n * @author Hannah Cohn\n * @author Ty Dewey\n * @author Madeleine Hardt\n * @author... | java | chosen |
[
{
"from": "human",
"value": "Add null safe math operations\n\nSigned-off-by: Sebastian Hoß <1d6e1cf70ec6f9ab28d3ea4b27a49a77654d370e@shoss.de>"
},
{
"from": "gpt",
"value": "package de.xn__ho_hia.quality.null_analysis;\n\nimport java.math.BigInteger;\n\nimport org.eclipse.jdt.annotation.NonNull;... | java | chosen |
[
{
"from": "human",
"value": "Add listener interface for topic creation events.\n"
},
{
"from": "gpt",
"value": "/*******************************************************************************\n * Copyright (C) 2017 Push Technology Ltd.\n *\n * Licensed under the Apache License, Version 2.0 (the... | java | chosen |
[
{
"from": "human",
"value": "Add unit test for AuthenticationDaoImpl\n\ngit-svn-id: f26ccc5efe72c2bd8e1c40f599fe313f2692e4de@5685 a612230a-c5fa-0310-af8b-88eea846685b\n"
},
{
"from": "gpt",
"value": "/*\n * \n * \n * Copyright (C) 2005 SIPfoundry Inc.\n * Licensed by SIPfoundry under the LGPL li... | java | chosen |
[
{
"from": "human",
"value": "Add Davis' staircase CTCI challenge\n\n"
},
{
"from": "gpt",
"value": "package com.github.conradoqg.studydsa.hackerrank.challenges.ctci;\n\nimport java.util.HashMap;\nimport java.util.Scanner;\n\npublic class DavisStaircase {\n private static HashMap<Integer, Inte... | java | chosen |
[
{
"from": "human",
"value": "Create a simple command to use in testing things"
},
{
"from": "gpt",
"value": "package org.usfirst.frc4915.MecanumDrive.commands;\n\nimport edu.wpi.first.wpilibj.command.Command;\n\npublic class GenericTestCommand extends Command {\n\t\n\tint count = 0;\n\tint i;\n\... | java | chosen |
[
{
"from": "human",
"value": "Add solution for problem Java String Compare\n\nJava String Compare from HackerRank/Strings/Java String Compare\n"
},
{
"from": "gpt",
"value": "package javaStringCompare;\n\nimport java.util.Arrays;\nimport java.util.Scanner;\n\npublic class Solution {\n\t\n\tpublic... | java | chosen |
[
{
"from": "human",
"value": "Add java solution for 70. Climbing Stairs\n\n70. Climbing Stairs: https://leetcode.com/problems/climbing-stairs/"
},
{
"from": "gpt",
"value": "package leetcode.climbing_stairs;\n\npublic class Solution {\n public int climbStairs(int n) {\n int a = 1, b = 1... | java | chosen |
[
{
"from": "human",
"value": "Add java solution for 56. Merge Intervals\n\n56. Merge Intervals: https://leetcode.com/problems/merge-intervals/"
},
{
"from": "gpt",
"value": "package leetcode.merge_intervals;\n\nimport java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.Comparato... | java | chosen |
[
{
"from": "human",
"value": "Add histogram class for HSB/HSV colors.\n"
},
{
"from": "gpt",
"value": "package experimentalcode.erich.data.images;\n\nimport java.awt.Color;\nimport java.util.List;\n\nimport de.lmu.ifi.dbs.elki.utilities.optionhandling.IntParameter;\nimport de.lmu.ifi.dbs.elki.uti... | java | chosen |
[
{
"from": "human",
"value": "Add image cycler (w/glsl transitions) test"
},
{
"from": "gpt",
"value": "package com.haxademic.sketch.test;\n\nimport com.haxademic.core.app.AppSettings;\nimport com.haxademic.core.app.PAppletHax;\nimport com.haxademic.core.draw.image.ImageCyclerBuffer;\nimport com.... | java | chosen |
[
{
"from": "human",
"value": "Add missing eclipse util class"
},
{
"from": "gpt",
"value": "package de.evorepair.analysis.solver.eclipse;\r\n\r\nimport org.eclipse.ui.IEditorPart;\r\nimport org.eclipse.ui.IWorkbenchPage;\r\nimport org.eclipse.ui.PlatformUI;\r\n\r\npublic class EclipseUtil {\r\n\t... | java | chosen |
[
{
"from": "human",
"value": "Add UniqueID Provider as public class\n\nPreviously this functionality existed internally in the\nHeaderIdAttributeProvider. This has been stripped out into its own\nfunctional class that can be used by other packages. The language\nattempts to divorce it from its original headi... | java | chosen |
[
{
"from": "human",
"value": "Add test for number of threads used by AbstractGelfTransport\n\nRefs #35\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2018 Graylog, Inc.\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": "system",
"value": "Enable Jackson on jaxrs clients\n"
},
{
"from": "human",
"value": "package com.opentable.jaxrs;\n\nimport org.springframework.context.annotation.Bean;\nimport org.springframework.context.annotation.Configuration;\nimport org.springframework.core.env.PropertyResolver... | java | chosen |
[
{
"from": "human",
"value": "Implement a part listener that sets contexts automatically\n"
},
{
"from": "gpt",
"value": "/**\n * \n */\npackage org.corpus_tools.atomic.api.events;\n\nimport org.eclipse.core.runtime.IConfigurationElement;\nimport org.eclipse.core.runtime.Platform;\nimport org.ecl... | java | chosen |
[
{
"from": "human",
"value": "Add main configuration class that tests will use to build the application context\n"
},
{
"from": "gpt",
"value": "package com.github.gabrielruiu.spring.cloud.config.redis;\n\nimport org.springframework.boot.SpringApplication;\nimport org.springframework.boot.autocon... | java | chosen |
[
{
"from": "human",
"value": "Add java solution for 24. Swap Nodes in Pairs\n\n24. Swap Nodes in Pairs: https://leetcode.com/problems/swap-nodes-in-pairs/"
},
{
"from": "gpt",
"value": "package leetcode.swap_nodes_in_pairs;\n\nimport java.util.ArrayList;\n\nimport common.ListNode;\n\npublic class... | java | chosen |
[
{
"from": "human",
"value": "[loadreport] Add test page, fix 1st issues.\n"
},
{
"from": "gpt",
"value": "package to.etc.domui.component.delayed;\n\nimport to.etc.domui.component.misc.MsgBox;\nimport to.etc.domui.dom.html.Div;\nimport to.etc.domui.dom.html.HTag;\nimport to.etc.domui.util.Msgs;\n... | java | chosen |
[
{
"from": "system",
"value": "Fix NPE for command with no arguments\n\n[jes: fixed whitespace and commit message]\n\nSigned-off-by: Johannes Schindelin <53fb8db7833fca1e1746dd8592f61048d350f64c@gmx.de>\n"
},
{
"from": "human",
"value": "package com.github.maven_nar;\n\nimport java.util.ArrayList... | java | chosen |
[
{
"from": "human",
"value": "Package info added for code generation"
},
{
"from": "gpt",
"value": "/**\r\n * Enable to use HibernateIdGenerator on identifiers in the package: <code>@GeneratedValue(generator = HibernateIdGenerator.NAME)</code>\r\n */\r\n@org.hibernate.annotations.GenericGenerator... | java | chosen |
[
{
"from": "human",
"value": "[PLAT-6431] Add a NULL bloomberg ref data statistics component factory\n"
},
{
"from": "gpt",
"value": "/**\n * Copyright (C) 2014 - present by OpenGamma Inc. and the OpenGamma group of companies\n * \n * Please see distribution for license.\n */\npackage com.opengam... | java | chosen |
[
{
"from": "human",
"value": "Add basic test for undo command\n"
},
{
"from": "gpt",
"value": "package guitests;\n\nimport guitests.guihandles.TaskCardHandle;\nimport static org.junit.Assert.assertTrue;\nimport static seedu.task.logic.commands.UpdateCommand.MESSAGE_UPDATE_TASK_SUCCESS;\n\nimport ... | java | chosen |
[
{
"from": "human",
"value": "Create a basic user main\n"
},
{
"from": "gpt",
"value": "package com.einevault.users;\n\nimport static spark.Spark.get;\n\n/**\n * Created by einevea on 16/08/15.\n */\npublic class UsersApp {\n\n public static void main(String[] args) {\n get(\"/hello\", ... | java | chosen |
[
{
"from": "human",
"value": "Add test case for Resources\n"
},
{
"from": "gpt",
"value": "/*\n * Bach - Java Shell Builder\n * Copyright (C) 2019 Christian Stein\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": "Add redirect sevlet, a non tomcat specific version of the Tomcat SubdomainRouter\n"
},
{
"from": "gpt",
"value": "/**\n * @license\n * Copyright 2018 The FOAM Authors. All Rights Reserved.\n * http://www.apache.org/licenses/LICENSE-2.0\n */\n\npackage foam.nanos.serv... | java | chosen |
[
{
"from": "human",
"value": "Add progress bar to loading of Surveillence page\n"
},
{
"from": "gpt",
"value": "package org.opennms.web.svclayer;\n\npublic class ProgressMonitor {\n\t\n\tprivate int m_phaseCount = 1;\n\tprivate int m_phase = 0;\n\tprivate String m_phaseLabel = \"Loading\";\n\tpri... | java | chosen |
[
{
"from": "human",
"value": "Add a unit test for the shell command.\n"
},
{
"from": "gpt",
"value": "/*\n * The Alluxio Open Foundation licenses this work under the Apache License, version 2.0\n * (the \"License\"). You may not use this work except in compliance with the License, which is\n * av... | java | chosen |
[
{
"from": "human",
"value": "Add set to fragment pager adapter\n"
},
{
"from": "gpt",
"value": "package org.app.material.widget;\n\nimport android.support.annotation.StringRes;\nimport android.support.v4.app.Fragment;\n\npublic class FragmentSet {\n\n private Fragment fragment;\n private C... | java | chosen |
[
{
"from": "human",
"value": "Add RunListener to be used in combination with TeamCity so that start and end time of each page is recorded in the build log in a format that TeamCity can interpret. (Can be used as listener instead of JUnitXMLPerPageListener.)\n"
},
{
"from": "gpt",
"value": "packag... | java | chosen |
[
{
"from": "human",
"value": "Add annotation for default plugin values.\n\n - Use this to specify the string value you'd want as the default fallback value for a @PluginAttribute, @PluginValue, or @SensitivePluginValue.\n - Part of LOG4J2-652.\n\ngit-svn-id: de5ce936019686f47409c93bcc5e202a9739563b@1597360... | java | chosen |
[
{
"from": "human",
"value": "Change way of processing lines from List<String> to Stream<String> in\norder to process the 15 billion lines csv file!"
},
{
"from": "gpt",
"value": "package br.inpe.cap.evolution.processor;\r\n\r\nimport java.io.File;\r\nimport java.io.IOException;\r\nimport java.ni... | java | chosen |
[
{
"from": "human",
"value": "Add class for 3 component vector functionality\n"
},
{
"from": "gpt",
"value": "package com.nucleus.vecmath;\n\n/**\n * 3 Component vector utilities\n * \n * @author Richard Sahlin\n *\n */\npublic class Vector3D extends VecMath {\n\n /**\n * Returns the cross... | java | chosen |
[
{
"from": "human",
"value": "Test Random Class, comme dans le livre pg 310"
},
{
"from": "gpt",
"value": "/*\r\n8.6.2 The Random Class\r\npage 309\r\n*/\r\n\r\npackage epfc.cours3449;\r\n\r\nimport java.util.Random;\r\n\r\npublic class TestRandom {\r\n public static void main(String[] args) {... | java | chosen |
[
{
"from": "human",
"value": "Add delete launches response entity\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2018 EPAM Systems\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 java solution for 13. Roman to Integer\n\n13. Roman to Integer: https://leetcode.com/problems/roman-to-integer/"
},
{
"from": "gpt",
"value": "package leetcode.roman_to_integer;\n\nimport java.util.HashMap;\nimport java.util.Map;\n\npublic class Solution {\n\tpub... | java | chosen |
[
{
"from": "human",
"value": "Add prolog predicate to determine number of parents\n\nThis change introduces a new prolog predicate for the\nnumber of parents of a given patch set. This can be used to determine\nfrom within the \"rules.pl\" file whether a change\nis a merge commit or not.\n\nThis can be usefu... | java | chosen |
[
{
"from": "human",
"value": "Add some tests to problem 56\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 unit test for interface impl feature\n\ngit-svn-id: 9326b53cbc4a8f4c3d02979b62b178127d5150fe@1445 c7d0bf07-ec0d-0410-b2cc-d48fa9be22ba\n"
},
{
"from": "gpt",
"value": "package org.codehaus.xfire.aegis.type.basic;\n\nimport org.codehaus.xfire.aegis.AbstractXFireAe... | java | chosen |
[
{
"from": "human",
"value": "Add option to use native code in Fresco\n\nSummary: Add class with setter and getter for option to use native code in Fresco\n\nReviewed By: oprisnik\n\nDifferential Revision: D17602042\n\nfbshipit-source-id: e098360cd79afa934a6691ea385b22877eb57eb0\n"
},
{
"from": "gpt"... | java | chosen |
[
{
"from": "human",
"value": "Add missing package info file\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright © 2014 <code@io7m.com> http://io7m.com\n * \n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that t... | java | chosen |
[
{
"from": "human",
"value": "Solve Simple Sum in java\n"
},
{
"from": "gpt",
"value": "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n public static void main(String args[]) throws IOException {\n InputStreamReader... | java | chosen |
[
{
"from": "human",
"value": "Add abstract class for variables\n"
},
{
"from": "gpt",
"value": "package absyn;\n\nimport env.Env;\nimport parse.Loc;\nimport types.Type;\n\npublic abstract class Var extends AST {\n\n // Type of the expression, calculated by the semantic analyser\n public Type ... | java | chosen |
[
{
"from": "human",
"value": "[OSFUSE-34] Introduce clean mojo for cleaning up namespaces.\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2005-2014 Red Hat, Inc.\n *\n * Red Hat licenses this file to you under the Apache License, version\n * 2.0 (the \"License\"); you may not use this file exc... | java | chosen |
[
{
"from": "human",
"value": "Add UI tests for Login page.\n"
},
{
"from": "gpt",
"value": "import org.junit.Test;\nimport org.openqa.selenium.WebDriver;\nimport org.openqa.selenium.WebElement;\nimport org.openqa.selenium.firefox.FirefoxDriver;\nimport org.openqa.selenium.support.ui.WebDriverWait... | java | chosen |
[
{
"from": "human",
"value": "Add a JUnit test for the selectBestCombination() method\n"
},
{
"from": "gpt",
"value": "package apostov;\r\n\r\nimport static apostov.Suit.CLUBS;\r\nimport static apostov.Suit.DIAMONDS;\r\nimport static apostov.Suit.HEARTS;\r\nimport static apostov.Suit.SPADES;\r\ni... | java | chosen |
[
{
"from": "human",
"value": "zero: Allow for vibration intensity to be configured\n\nChange-Id: I46d63e101a69fcd07815853ed685ae93271ed102\nSigned-off-by: Brandon McAnsh <b221b0128acc8543b2071d143ea6dbc7b1554a73@gmail.com>\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (C) 2016 The CyanogenMod... | java | chosen |
[
{
"from": "human",
"value": "Add smoke test for standalone bootstrappedInstance\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (c) 2008-2020, Hazelcast, Inc. All Rights Reserved.\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 unit test for evaluate_classifier_predictions\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 a... | java | chosen |
[
{
"from": "human",
"value": "Add test case for True\n"
},
{
"from": "gpt",
"value": "/**\n * The MIT License (MIT)\n *\n * Copyright (c) 2017 Yegor Bugayenko\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation fil... | java | chosen |
[
{
"from": "human",
"value": "Create first tests for Console class.\n"
},
{
"from": "gpt",
"value": "/**\n * This source file is subject to the license that is bundled with this package in the file LICENSE.\n */\npackage com.codeup.console;\n\nimport com.codeup.validation.Validator;\nimport org.j... | java | chosen |
[
{
"from": "human",
"value": "Add file that contains all plugin permissions\n"
},
{
"from": "gpt",
"value": "package io.github.aquerr.eaglefactions;\n\npublic abstract class PluginPermissions\n{\n public static final String AllPermissions = \"eaglefactions\";\n public static final String Al... | java | chosen |
[
{
"from": "human",
"value": "Add some basic methods to list modules\n"
},
{
"from": "gpt",
"value": "package org.squiddev.plethora.integration;\n\nimport com.google.common.collect.Sets;\nimport dan200.computercraft.api.lua.LuaException;\nimport net.minecraft.util.ResourceLocation;\nimport org.sq... | java | chosen |
[
{
"from": "human",
"value": "Add a parser for recursive parens plus contents\n\nAnswer to this question on parboiled-users:\n\nhttp://users.parboiled.org/Recursion-grouping-question-tp4024358p4024360.html\n"
},
{
"from": "gpt",
"value": "package com.github.fge.grappa.examples.recursiveparens;\n\... | java | chosen |
[
{
"from": "human",
"value": "Add tests for .gitmodules validation\n\nAdd tests to ensure that pushes containing invalid .gitmodules\ncontent are rejected. Without the previous commit that updates\nJGit to fix CVE-2018-17456 [1], these tests fail.\n\n[1] https://nvd.nist.gov/vuln/detail/CVE-2018-17456\n\nCha... | java | chosen |
[
{
"from": "human",
"value": "Add mapper for Version model\n\nFilters out an apps version from android.PackageInfo\n"
},
{
"from": "gpt",
"value": "package de.philipphager.disclosure.database.version.mapper;\n\nimport android.content.pm.PackageInfo;\nimport de.philipphager.disclosure.database.ver... | java | chosen |
[
{
"from": "human",
"value": "Create test for example loader"
},
{
"from": "gpt",
"value": "package de.tudresden.inf.lat.born.owlapi.example;\n\nimport java.util.List;\n\nimport org.junit.Assert;\nimport org.junit.Test;\n\n/**\n * \n * @author Julian Mendez\n *\n */\npublic class ExampleLoaderTes... | java | chosen |
[
{
"from": "human",
"value": "Add one regression test case\n"
},
{
"from": "gpt",
"value": "/*******************************************************************************\n * Copyright (c) 2004 Actuate Corporation. All rights reserved. This program and\n * the accompanying materials are made av... | java | chosen |
[
{
"from": "human",
"value": "Add Testcase for Person's hashcode\n"
},
{
"from": "gpt",
"value": "package seedu.address.model;\n\nimport static org.junit.Assert.*;\n\nimport org.junit.Test;\n\nimport seedu.address.commons.exceptions.IllegalValueException;\nimport seedu.address.model.person.Person... | java | chosen |
[
{
"from": "human",
"value": "Test for bean validation directives\n"
},
{
"from": "gpt",
"value": "package io.quarkus.smallrye.graphql.deployment;\n\nimport static io.restassured.RestAssured.get;\nimport static org.hamcrest.Matchers.containsString;\n\nimport javax.validation.Valid;\nimport javax.... | java | chosen |
[
{
"from": "human",
"value": "Add example about usage of the JSplitPane used by buttons."
},
{
"from": "gpt",
"value": "package swing;\r\n\r\nimport java.awt.BorderLayout;\r\n\r\nimport javax.swing.JButton;\r\nimport javax.swing.JFrame;\r\nimport javax.swing.JSplitPane;\r\n\r\npublic class TestJS... | java | chosen |
[
{
"from": "human",
"value": "Add sample to test basic Path and Files methods"
},
{
"from": "gpt",
"value": "package edu.java.cosc111.samples;\n\nimport java.io.File;\nimport java.io.IOException;\nimport java.nio.file.Files;\nimport java.nio.file.Path;\nimport java.nio.file.Paths;\nimport java.ut... | java | chosen |
[
{
"from": "human",
"value": "Add exception propagation demo for thenCompose\n"
},
{
"from": "gpt",
"value": "package com.millross.blog.async;\n\nimport org.junit.Test;\n\nimport java.util.Optional;\nimport java.util.concurrent.CompletableFuture;\nimport java.util.concurrent.CompletionException;\... | java | chosen |
[
{
"from": "human",
"value": "Convert Sorted List to Binary Search Tree\n"
},
{
"from": "gpt",
"value": "package leetcode101_110;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\n/**Given a singly linked list where elements are sorted in ascending order,\n convert it to a height balanced... | java | chosen |
[
{
"from": "human",
"value": "Add JUnit test for DetectCycle\n"
},
{
"from": "gpt",
"value": "package com.test.graphs;\n\nimport com.graphs.DetectCycle;\nimport com.graphs.GraphAdjacencyListRepresentation;\n\nimport junit.framework.TestCase;\n\npublic class TestDetectCycle extends TestCase {\n\n ... | java | chosen |
[
{
"from": "human",
"value": "Introduce new argument filter annotation\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 t... | java | chosen |
[
{
"from": "system",
"value": "Javafx: Disable assertions in Scene Builder because of false positives (IDEA-162542)\n"
},
{
"from": "human",
"value": "package org.jetbrains.plugins.javaFX.sceneBuilder;\n\nimport com.intellij.openapi.fileEditor.FileEditor;\nimport com.intellij.openapi.fileEditor.F... | java | chosen |
[
{
"from": "human",
"value": "Add sanity checks for reflectively-generated sets in MaterialUtil\n"
},
{
"from": "gpt",
"value": "package net.glowstone.block;\n\nimport static org.junit.jupiter.api.Assertions.assertTrue;\n\nimport org.junit.jupiter.api.Test;\n\nclass MaterialUtilTest {\n @Test\... | java | chosen |
[
{
"from": "human",
"value": "Add test to demonstrate event deserialization\n\nAdds a basic test to demonstrate how to deserialize an event and then\ntypecast the `StripeObject` nested in it to a model that's appropriate\nbased on the type of event.\n\nNot a true fix for #297, but at least produces some samp... | java | chosen |
[
{
"from": "human",
"value": "Add MongoSession.isExpired interval < 0 Test\n\nIssue gh-629\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2014-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 ... | java | chosen |
[
{
"from": "human",
"value": "Add java solution for 226. Invert Binary Tree\n\n226. Invert Binary Tree: https://leetcode.com/problems/invert-binary-tree/"
},
{
"from": "gpt",
"value": "package leetcode.invert_binary_tree;\n\nimport common.TreeNode;\n\npublic class Solution {\n public TreeNode ... | java | chosen |
[
{
"from": "human",
"value": "Add currency flags UI handler\n"
},
{
"from": "gpt",
"value": "package net.vexelon.bgrates.ui;\n\nimport java.util.Map;\n\nimport com.google.common.collect.Maps;\n\nimport net.vexelon.bgrates.R;\n\npublic class UIFlags {\n\n\tprivate static final Map<String, Integer>... | java | chosen |
[
{
"from": "human",
"value": "Add test case for path command\n"
},
{
"from": "gpt",
"value": "package guitests;\n\nimport static org.junit.Assert.assertTrue;\n\nimport java.io.File;\n\nimport org.junit.Test;\n\n//@@author A0164440M\npublic class PathCommandTest extends TaskBookGuiTest {\n\n @T... | java | chosen |
[
{
"from": "human",
"value": "fix: Add unit test for new classes\n"
},
{
"from": "gpt",
"value": "package com.consol.citrus.simulator.http;\n\nimport java.io.IOException;\nimport java.nio.charset.Charset;\n\nimport com.consol.citrus.http.controller.HttpMessageController;\nimport org.springframewo... | java | chosen |
[
{
"from": "human",
"value": "Add test for photo upload\n"
},
{
"from": "gpt",
"value": "package de.fu_berlin.cdv.chasingpictures.api;\n\nimport android.graphics.Bitmap;\nimport android.graphics.BitmapFactory;\nimport android.test.AndroidTestCase;\nimport android.util.Log;\n\nimport org.springfra... | java | chosen |
[
{
"from": "human",
"value": "Move the package. Container user info\n\n\nSVN-Revision: 1077\n"
},
{
"from": "gpt",
"value": "package gov.nih.nci.calab.dto.common;\n\n/**\n * This class includes properties for User Authentication and Authorization .\n * \n * \n * @author doswellj\n * \n */\n\npub... | java | chosen |
[
{
"from": "human",
"value": ":sparkles: Create Firebase sign up task\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (C) 2017 Joao Paulo Fernandes Ventura, Udi Cohen\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 an example of a JUnit test where JUnit itself iterates over\nsome user provided set of data.\n\ncom.bdt.kiradb.IterableTest\n\nReference: http://www.mkyong.com/unittest/junit-4-tutorial-6-parameterized-test/\n"
},
{
"from": "gpt",
"value": "package com.bdt.kirad... | java | chosen |
[
{
"from": "human",
"value": "Add Binary Tree Upside Down\n"
},
{
"from": "gpt",
"value": "package problems;\n\nimport java.util.Stack;\n\npublic class BinaryTreeUpsideDown {\n\n class TreeNode {\n int val;\n TreeNode left, right;\n\n public TreeNode(int value) {\n ... | java | chosen |
[
{
"from": "human",
"value": "Add unit testing for text annotations"
},
{
"from": "gpt",
"value": "package simple.xml.load;\n\nimport java.io.FileOutputStream;\nimport java.io.StringWriter;\n\nimport simple.xml.ValidationTestCase;\nimport simple.xml.ElementArray;\nimport simple.xml.Element;\nimpo... | java | chosen |
[
{
"from": "system",
"value": "Add Status in Certificate Predicates\n\nSigned-off-by: Claudio Mezzasalma <acdb73fa11473662b10f45613ec005f8be976786@eurotech.com>\n"
},
{
"from": "human",
"value": "/*******************************************************************************\n * Copyright (c) 20... | java | chosen |
[
{
"from": "human",
"value": "Add the command listener showcase\n"
},
{
"from": "gpt",
"value": "package org.jboss.forge.addons.envers.commands;\n\nimport org.jboss.forge.addon.configuration.Configuration;\nimport org.jboss.forge.addon.configuration.facets.ConfigurationFacet;\nimport org.jboss.fo... | java | chosen |
[
{
"from": "system",
"value": "Return CAS for get operation\n\nChange-Id: I50d3851dd1954e96c3046e69e507caa6622b6412\nReviewed-on: http://review.couchbase.org/11954\nTested-by: Sergey Avseyev <87f6d5e4fd3644c3c20800cde7fd3ad1569370b3@gmail.com>\nReviewed-by: Trond Norbye <60edd2ef23891a753f231b0c6f161dc634079... | java | chosen |
[
{
"from": "human",
"value": "Add minor unit tests for HexUtil\n"
},
{
"from": "gpt",
"value": "package org.jsmpp.util;\n\n\nimport static org.testng.Assert.assertEquals;\nimport org.testng.annotations.Test;\n\n\npublic class HexUtilTest {\n\t\n\t@Test\n\tpublic void testEncode()\n\t{\n\t\tString... | java | chosen |
[
{
"from": "human",
"value": "Add test for contract xml loading.\n"
},
{
"from": "gpt",
"value": "/*\n * Licensed to the University of California, Berkeley under one or more contributor license\n * agreements. See the NOTICE file distributed with this work for additional information regarding\n *... | java | chosen |
[
{
"from": "human",
"value": "Add plain old Java main class with a script REPL\n"
},
{
"from": "gpt",
"value": "package com.madisp.bad;\n\nimport com.madisp.bad.eval.BadConverter;\nimport com.madisp.bad.eval.BadScope;\nimport com.madisp.bad.expr.Expression;\nimport com.madisp.bad.expr.ExpressionF... | java | chosen |
[
{
"from": "human",
"value": "Copy virtual to virtual command implemented.\n"
},
{
"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 */\... | java | chosen |
[
{
"from": "human",
"value": "Build all test projects as part of the integration tests\n"
},
{
"from": "gpt",
"value": "import static org.junit.jupiter.api.Assertions.assertEquals;\nimport static org.junit.jupiter.api.Assertions.assertLinesMatch;\nimport static org.junit.jupiter.api.Assertions.as... | java | chosen |
[
{
"from": "human",
"value": "[UNDERTOW-143] Test for SPNEGO authentication in issolation.\n\nTo be continued...\n"
},
{
"from": "gpt",
"value": "/*\n * JBoss, Home of Professional Open Source.\n * Copyright 2013 Red Hat, Inc., and individual contributors\n * as indicated by the @author tags.\n *... | java | chosen |
[
{
"from": "human",
"value": "Add implementation for quick select\n"
},
{
"from": "gpt",
"value": "public class QuickSelect\n{\n /**\n * @param nums Unsorted array\n * @param k k-th smallest element to return\n * @return k-th smallest element\n */\n public int quickSelect(in... | java | chosen |
[
{
"from": "human",
"value": "Use length variable to help copy an array"
},
{
"from": "gpt",
"value": "// Use length variable to help copy an array.\nclass ACopy {\n\tpublic static void main(String args[]) {\n\t\tint i;\n\t\tint nums1[] = new int[10];\n\t\tint nums2[] = new int[10];\n\t\t\n\t\tfo... | java | chosen |
[
{
"from": "human",
"value": "Add a test that checks that the default-recheck.ignore is not faulty\n"
},
{
"from": "gpt",
"value": "import static de.retest.recheck.ignore.FilterLoader.load;\nimport static java.nio.file.Paths.get;\nimport static org.assertj.core.api.Assertions.assertThat;\n\nimpor... | java | chosen |
[
{
"from": "human",
"value": "[PIXELS] Add enum for pixel colors\n\nTests:\n- none\n"
},
{
"from": "gpt",
"value": "package com.bert.pixels.models;\n\n/**\n * Possible colors for a pixel\n */\npublic enum Color {\n /**\n * Red pixels can only more right.\n */\n RED,\n /**\n * Yellow pixe... | java | chosen |
[
{
"from": "human",
"value": "Create TaskTesk.java to test for 3 types of task\n"
},
{
"from": "gpt",
"value": "package seedu.tasklist.model;\n\nimport static org.junit.Assert.assertEquals;\n\nimport java.util.Date;\n\nimport org.junit.Before;\nimport org.junit.Test;\n\nimport seedu.tasklist.comm... | java | chosen |
[
{
"from": "human",
"value": "Use commas in a for statement"
},
{
"from": "gpt",
"value": "// Use commas in a for statement.\nclass Comma {\n\tpublic static void main(String args[]) {\n\t\tint i, j;\n\t\t\n\t\tfor(i=0, j=10; i < j; i++, j--)\n\t\t\tSystem.out.println(\"i and j: \" + i + \" \" + j... | java | chosen |
[
{
"from": "human",
"value": "Add tests for node.js require('path')\n"
},
{
"from": "gpt",
"value": "package org.projectodd.nodej;\n\nimport static org.fest.assertions.Assertions.assertThat;\n\nimport java.io.IOException;\n\nimport org.dynjs.runtime.DynObject;\nimport org.dynjs.runtime.Types;\nim... | java | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.