conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "human",
"value": "Add test for evaluatejs activity\n"
},
{
"from": "gpt",
"value": "package com.evgenii.jsevaluatortests;\n\nimport android.test.ActivityInstrumentationTestCase2;\n\npublic class EvaluateJsActivityTests extends\n\t\tActivityInstrumentationTestCase2<EvaluateJsStringActi... | java | chosen |
[
{
"from": "human",
"value": "Add constants for ML classifier names.\n"
},
{
"from": "gpt",
"value": "package roart.config;\n\npublic class MLConstants {\n public static final String MCP = \"MCP\";\n public static final String LR = \"LR\";\n public static final String OVR = \"OVR\";\n ... | java | chosen |
[
{
"from": "human",
"value": "Add mimetype mapping for self hosted webfonts"
},
{
"from": "gpt",
"value": "package ch.rasc.eds.starter.config;\n\nimport org.springframework.boot.context.embedded.ConfigurableEmbeddedServletContainer;\nimport org.springframework.boot.context.embedded.EmbeddedServle... | java | chosen |
[
{
"from": "human",
"value": "Issue-102: Test repeatable after stage methods when used in two consecutive stages\n\nSigned-off-by: l-1sqared <927badf1468b689b17391b1b1cb5895e9b797b96@users.noreply.github.com>\n"
},
{
"from": "gpt",
"value": "package com.tngtech.jgiven.junit;\n\nimport static org.... | java | chosen |
[
{
"from": "human",
"value": "Add a test for the reset case.\n\nSigned-off-by: Jon Seymour <13015cd9b4bd75fb137ba1a80810e07fcd27c10e@gmail.com>\n"
},
{
"from": "gpt",
"value": "package com.wildducktheories.api.impl;\n\nimport org.junit.Assert;\nimport org.junit.Test;\n\nimport com.wildducktheorie... | java | chosen |
[
{
"from": "human",
"value": "Add script to detect which classes are being used (i.e. a new instance being creaetd) in examples.\n"
},
{
"from": "gpt",
"value": "import java.io.File;\nimport java.io.FileWriter;\nimport org.apache.bcel.Repository;\nimport org.apache.bcel.classfile.*;\nimport org.j... | java | chosen |
[
{
"from": "human",
"value": "Add an adapter for JHotDraw's selection tool\n\nThis will allow us to require more functionality of our JHotDraw-based\ntools.\n\nSigned-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>\n\nThis used to be revision r5035.\n"
},
{
"from": "gpt",
"value": "//\n/... | java | chosen |
[
{
"from": "human",
"value": "Add coop leaderboard (without ranking)\n"
},
{
"from": "gpt",
"value": "package com.faforever.api.data.domain;\n\nimport com.yahoo.elide.annotation.Include;\n\nimport javax.persistence.Basic;\nimport javax.persistence.Column;\nimport javax.persistence.Entity;\nimport... | java | chosen |
[
{
"from": "human",
"value": "Make compiler happy by adding a java file to the injection-test project\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 compl... | java | chosen |
[
{
"from": "human",
"value": "Add package info for multiport tests\n"
},
{
"from": "gpt",
"value": "/*\nCopyright (c) 2014, Colorado State University\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification,\nare permitted provided that the followin... | java | chosen |
[
{
"from": "human",
"value": "Test that fields come out in same order they are defined.\n"
},
{
"from": "gpt",
"value": "package com.thoughtworks.xstream.converters.reflection;\n\nimport junit.framework.TestCase;\n\nimport java.util.Iterator;\nimport java.lang.reflect.Field;\n\npublic class Field... | java | chosen |
[
{
"from": "human",
"value": "Create enum responsible to : define the title orientation type when\nwriting into the Excel."
},
{
"from": "gpt",
"value": "package org.jaexcel.framework.JAEX.definition;\n\n/**\n * This will define the title orientation type when writing into the Excel. <br>\n * \n ... | java | chosen |
[
{
"from": "human",
"value": "Create quaternary alignment relations ENUM"
},
{
"from": "gpt",
"value": "package org.biojava.nbio.structure.align.quaternary;\n\n/**\n * The Quaternary Structure Relation describes the pairwise relation between two\n * quaternary structures.\n * \n * @author Aleix L... | java | chosen |
[
{
"from": "human",
"value": "Add an annotation for factory interfaces\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2018 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 the License.\n * You... | java | chosen |
[
{
"from": "human",
"value": "Add test class for class permutation\n"
},
{
"from": "gpt",
"value": "/*\n\tThis class tests class Permutation\n*/\n\npackage permutation;\nimport java.util.ArrayList;\nimport permutation.Permutation;\nimport java.util.Arrays;\n\nclass TestPermutation{\n\n\t// tests ... | java | chosen |
[
{
"from": "human",
"value": "Add program to add titles\n"
},
{
"from": "gpt",
"value": "package com.formulasearchengine.mathosphere.mlp.gold;\n\nimport com.fasterxml.jackson.databind.ObjectMapper;\n\nimport org.apache.commons.csv.CSVFormat;\nimport org.apache.commons.csv.CSVRecord;\nimport org.j... | java | chosen |
[
{
"from": "human",
"value": "Write test for RandomUtil class\n"
},
{
"from": "gpt",
"value": "package org.jenkinsci.plugins.ewm.utils;\n\nimport org.junit.Test;\n\nimport static org.hamcrest.Matchers.is;\nimport static org.junit.Assert.assertThat;\n\n/**\n * Tests for {@link RandomUtil}.\n *\n *... | java | chosen |
[
{
"from": "human",
"value": "Add solution for count half nodes in a binary tree\n"
},
{
"from": "gpt",
"value": "package binarytree;\n\nimport java.util.HashMap;\nimport java.util.Map;\n\nimport datastructures.tree.BinaryTree;\nimport datastructures.tree.TreeNode;\n\npublic class CountHalfNodesB... | java | chosen |
[
{
"from": "human",
"value": "Add statement to problem 48\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": "Create abstract implementation of CacheEventListener\n\nSummary: Add `BaseCacheEventListener` which implements all methods to ease the creation of listeners which are only interested in particular events.\n\nReviewed By: lambdapioneer\n\nDifferential Revision: D4938357\n\nfbship... | java | chosen |
[
{
"from": "human",
"value": "Solve java 1d array intro\n"
},
{
"from": "gpt",
"value": "import java.util.*;\n\npublic class Solution {\n\n public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n\n // Write your solut... | java | chosen |
[
{
"from": "human",
"value": "Create tester... add tests for toStr\n"
},
{
"from": "gpt",
"value": "package edu.grinnell.callaway;\n\nimport static org.junit.Assert.*;\n\nimport java.io.Serializable;\nimport java.util.HashMap;\nimport java.util.Vector;\n\nimport org.junit.Test;\n\npublic class J... | java | chosen |
[
{
"from": "human",
"value": "Check if a binary tree is full.\n"
},
{
"from": "gpt",
"value": "package com.sunny.grokkingalgorithms.fasttrack.week1;\n\nimport com.sunny.grokkingalgorithms.ctci.c4.util.BinaryTreeNode;\nimport com.sunny.grokkingalgorithms.ctci.c4.util.TreeUtils;\n\n/**\n * Created ... | java | chosen |
[
{
"from": "human",
"value": "Add tests for database manager\n"
},
{
"from": "gpt",
"value": "import edu.pdx.cs510.agile.team3.db.DBManager;\nimport org.junit.Test;\nimport org.junit.Assert;\n\nimport java.sql.SQLException;\n\n/**\n * Created by dsanchez on 8/1/17.\n */\npublic class DBTest {\n\n... | java | chosen |
[
{
"from": "human",
"value": "Add skeleton for problem 318\n"
},
{
"from": "gpt",
"value": "package leetcode;\n\n/**\n * https://leetcode.com/problems/maximum-product-of-word-lengths/\n */\npublic class Problem318 {\n public int maxProduct(String[] words) {\n // TODO:\n return 0;... | java | chosen |
[
{
"from": "human",
"value": "Add test base class for 'Seq' interface.\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 * modify it u... | java | chosen |
[
{
"from": "human",
"value": "Add file which should have been part of last checkin.\n\n\ngit-svn-id: 6bd94cac40bd5c1df74b384d972046d926de6ffa@11375 a8845c50-7012-0410-95d3-8e1449b9b1e4\n"
},
{
"from": "gpt",
"value": "package org.mifos.application.rolesandpermission.business;\r\n\r\nimport junit.... | java | chosen |
[
{
"from": "human",
"value": "Add selection sort test for Java implementation\n"
},
{
"from": "gpt",
"value": "import org.junit.Test;\nimport java.util.Arrays;\n\npublic class SelectionSortTest {\n\n @Test\n public void test() {\n int list[] = { -5, 8, 0, 12, 55, 1, -66, 35, 3 };\n ... | java | chosen |
[
{
"from": "human",
"value": "Test for adding a card using POST.\n\nSigned-off-by: joelso <18eaca8d2012d90d448985477d4cb18b3fab3fa4@gmail.com>\n"
},
{
"from": "gpt",
"value": "package org.trello4j;\n\nimport java.io.IOException;\nimport java.util.HashMap;\nimport java.util.Map;\nimport java.util.... | java | chosen |
[
{
"from": "human",
"value": "Add basic skeleton for automatic shoveling.\n"
},
{
"from": "gpt",
"value": "package org.robockets.stronghold.robot.intake;\n\nimport org.robockets.stronghold.robot.Robot;\nimport org.robockets.stronghold.robot.drivetrain.AssistedDrive;\nimport org.robockets.strongho... | java | chosen |
[
{
"from": "human",
"value": "Create : 383 Ransom Note\n"
},
{
"from": "gpt",
"value": "public class Solution {\n\n public boolean canConstruct(String ransomNote, String magazine) {\n\n int[] alphabetsCount = new int[26];\n\n for (int i = 0; i < magazine.length(); i++) {\n ... | java | chosen |
[
{
"from": "human",
"value": "Create : 521 Longest Uncommon Subsequence I\n"
},
{
"from": "gpt",
"value": "public class Solution {\n\n public int findLUSlength(String a, String b) {\n\n if (a.equals(b)) {\n return -1;\n } else {\n return Math.max(a.length(),... | java | chosen |
[
{
"from": "human",
"value": "Add mechanism for performing a single movement operation on an agent list.\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2016 Will Knez <wbknez.dev@gmail.com>\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file ... | java | chosen |
[
{
"from": "human",
"value": "Add basic unit test for Disputes\n"
},
{
"from": "gpt",
"value": "package com.braintreegateway.unittest;\n\nimport org.junit.Test;\nimport static org.junit.Assert.assertEquals;\n\nimport com.braintreegateway.Dispute;\nimport com.braintreegateway.util.SimpleNodeWrappe... | java | chosen |
[
{
"from": "human",
"value": "Include test using options and driver in constructor\n"
},
{
"from": "gpt",
"value": "/*\n * (C) Copyright 2019 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 i... | java | chosen |
[
{
"from": "human",
"value": "Update changelog to use new activity\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2016 Peter Kenji Yamanaka\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 test for Employee entity\n\nJust test for the assignments association.\n"
},
{
"from": "gpt",
"value": "package com.yammer.stresstime.entities;\n\nimport com.yammer.stresstime.managers.EmployeeManager;\nimport com.yammer.stresstime.test.DatabaseTest;\nimport org.... | java | chosen |
[
{
"from": "human",
"value": "Add utility class that decides whether code runs under test, to control things like debug logs\n"
},
{
"from": "gpt",
"value": "package to.etc.testutil;\n\n/**\n * @author <a href=\"mailto:jal@etc.to\">Frits Jalvingh</a>\n * Created on 15-04-22.\n */\nfinal public cl... | java | chosen |
[
{
"from": "human",
"value": "Add a class with our hueristics to check if a device was updated\n"
},
{
"from": "gpt",
"value": "package fuzion24.device.vulnerability.vulnerabilities.helper;\n\nimport android.content.Context;\nimport android.content.SharedPreferences;\nimport android.os.Build;\nim... | java | chosen |
[
{
"from": "human",
"value": "Add webhook endpoint for github's label payload\n"
},
{
"from": "gpt",
"value": "package rotateit.controller;\n\nimport org.springframework.web.bind.annotation.RequestBody;\nimport org.springframework.web.bind.annotation.RequestMapping;\nimport org.springframework.we... | java | chosen |
[
{
"from": "human",
"value": "Implement a basic API for AvContent persistence\n\nAvContent can be used on other stuff than TV Channels.\nBecause of this, some clients might want to save them\nfor future use. Implement an API that possibly gives the\npossibility to do so.\n"
},
{
"from": "gpt",
"v... | java | chosen |
[
{
"from": "human",
"value": "Add test case for False\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 fi... | java | chosen |
[
{
"from": "human",
"value": "Add a test drive for the new remote updater feature\n\nSigned-off-by: Johannes Schindelin <53fb8db7833fca1e1746dd8592f61048d350f64c@gmx.de>\n"
},
{
"from": "gpt",
"value": "/*\n * #%L\n * ImageJ software for multidimensional image processing and analysis.\n * %%\n * ... | java | chosen |
[
{
"from": "human",
"value": "Add noop security filter for controller\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\nimport com.ya... | java | chosen |
[
{
"from": "human",
"value": "Add shoot position command that unsticks the ball\n"
},
{
"from": "gpt",
"value": "package org.robockets.stronghold.robot.highgoalshooter;\n\nimport org.robockets.stronghold.robot.flipper.FireShooter;\nimport org.robockets.stronghold.robot.hood.MoveHood;\n\nimport ed... | java | chosen |
[
{
"from": "human",
"value": "Introduce the line selector panel based on a table\n\ngit-svn-id: 4e353c0944fe8da334633afc35765ef362dec675@4241 b4e469a2-07ce-4b26-9273-4d7d95a670c7\n"
},
{
"from": "gpt",
"value": "package org.helioviewer.plugins.eveplugin.view.linedataselector;\n\nimport java.awt.G... | java | chosen |
[
{
"from": "human",
"value": "Include test using Chrome and global capabilities (mobile emulation)\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 th... | java | chosen |
[
{
"from": "human",
"value": "Add empty lambda test case\n"
},
{
"from": "gpt",
"value": "package edu.columbia.cs.psl.test.phosphor;\n\nimport static org.junit.Assert.*;\n\nimport org.junit.Test;\n\npublic class LambdaIntTagITCase {\n\t@Test\n\tpublic void testEmptyLambda() throws Exception {\n\t... | java | chosen |
[
{
"from": "human",
"value": "Add a (failing) test to demonstrate confusing behavior when mixing SqlObject and GetHandle\n\nYou'd expect to be able to use the SqlObject from within, but if you do so it releases the handle, causing mass chaos.\nIf these constructs cannot coexist, then it should at least fail ... | java | chosen |
[
{
"from": "human",
"value": "Implement Animation Helper class to have methods for animation\n"
},
{
"from": "gpt",
"value": "package com.zulip.android.util;\n\nimport android.animation.Animator;\nimport android.support.v4.view.animation.FastOutSlowInInterpolator;\nimport android.view.View;\nimpo... | java | chosen |
[
{
"from": "human",
"value": "Add supporting by tag interface\n"
},
{
"from": "gpt",
"value": "/**\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for\n * license information.\n */\n\npackage com.microsoft.azure... | java | chosen |
[
{
"from": "human",
"value": "Make Trip class to use throughout servlets\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 obtain ... | java | chosen |
[
{
"from": "human",
"value": "Add java solution for 74. Search a 2D Matrix\n\n74. Search a 2D Matrix: https://leetcode.com/problems/search-a-2d-matrix/"
},
{
"from": "gpt",
"value": "package leetcode.search_a_2d_matrix;\n\npublic class Solution {\n\tpublic boolean searchMatrix(int[][] matrix, int... | java | chosen |
[
{
"from": "human",
"value": "Create : 504 Base 7\n"
},
{
"from": "gpt",
"value": "public class Solution {\n\n public String convertToBase7(int num) {\n\n if (num < 0) {\n return '-' + convertToBase7(-num);\n }\n\n if (num < 7) {\n return Integer.toSt... | java | chosen |
[
{
"from": "human",
"value": "SDACK-18: Add support for arbitrary client events"
},
{
"from": "gpt",
"value": "//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n// This file is a part of the 'esoco-common' project.\n// Copyright 2016 Elmar Sonnenschein, esoco GmbH, F... | java | chosen |
[
{
"from": "human",
"value": "Add default implementation of MinFilterOp\n\nSigned-off-by: squareys <b4e1335d2c774058f7a95112f52894dcc752fd3f@googlemail.com>\n"
},
{
"from": "gpt",
"value": "\npackage net.imagej.ops.filter.min;\n\nimport net.imagej.ops.ComputerOp;\nimport net.imagej.ops.Ops;\nimpo... | java | chosen |
[
{
"from": "human",
"value": "Copy over the reformat code from a fork of pedro."
},
{
"from": "gpt",
"value": "package net.chrizzly.csharp4netbeans.utils;\r\n\r\nimport java.util.ArrayList;\r\nimport java.util.List;\r\nimport java.util.Scanner;\r\nimport java.util.stream.IntStream;\r\n\r\n/**\r\n... | java | chosen |
[
{
"from": "human",
"value": "Test get updates in endless loop\n"
},
{
"from": "gpt",
"value": "package com.pengrad.telegrambot;\n\nimport com.pengrad.telegrambot.model.Chat;\nimport com.pengrad.telegrambot.model.Message;\nimport com.pengrad.telegrambot.model.Update;\nimport com.pengrad.telegramb... | java | chosen |
[
{
"from": "human",
"value": "Add implode to join strings\n"
},
{
"from": "gpt",
"value": "/*\n * StrUtils.java\n *\n * Author: Ming Tsang\n * Copyright (c) 2015 Ming Tsang\n * Refer to LICENSE for details\n */\n\npackage com.nkming.utils.str;\n\nimport java.util.Collection;\n\npublic class StrUt... | java | chosen |
[
{
"from": "human",
"value": "Create interface for sorting algorithms\n"
},
{
"from": "gpt",
"value": "package sortingalgorithms;\n\n/**\n * An interface for sorting algorithms. A class must implement \n * SortingAlgorithm to work with SortingTest.\n *\n * @author Joel Abrahamsson\n * @versi... | java | chosen |
[
{
"from": "human",
"value": "Use Jupiter annotation to skip gui tests, instead of using maven profile\n"
},
{
"from": "gpt",
"value": "package ch.skymarshall.tcwriter.jupiter;\n\nimport java.lang.annotation.ElementType;\nimport java.lang.annotation.Retention;\nimport java.lang.annotation.Retenti... | java | chosen |
[
{
"from": "human",
"value": "Add unit tests for shell helper.\n"
},
{
"from": "gpt",
"value": "package fi.helsinki.cs.tmc.cli.command;\n\nimport fi.helsinki.cs.tmc.cli.Application;\nimport fi.helsinki.cs.tmc.cli.CliContext;\nimport fi.helsinki.cs.tmc.cli.io.TestIo;\n\nimport org.junit.Before;\ni... | java | chosen |
[
{
"from": "human",
"value": "Create a Main2activity and buton to MainActivity\n"
},
{
"from": "gpt",
"value": "package com.iesebre.dam2.roger.todos;\n\nimport android.content.Intent;\nimport android.os.Bundle;\nimport android.support.design.widget.FloatingActionButton;\nimport android.support.de... | java | chosen |
[
{
"from": "human",
"value": "Implement turtle activity commands subset\n"
},
{
"from": "gpt",
"value": "package commands;\n\nimport MovementAndImageAPI.*;\n\npublic class ActivityCommand extends CommandsTurtle {\n\n public enum CommandType {HIDE, SHOW, PICK_UP, PUT};\n private CommandType ... | java | chosen |
[
{
"from": "human",
"value": "Create a junit class to test the fails in the Controller."
},
{
"from": "gpt",
"value": "package cl.fatman.capital.fund;\n\nimport static org.junit.Assert.*;\nimport org.junit.After;\nimport org.junit.Before;\nimport org.junit.Test;\n\nimport java.util.List;\n\npubli... | java | chosen |
[
{
"from": "human",
"value": "Add solution for problem Java Datatypes, HackerRank/Introduction/Java Datatypes\n"
},
{
"from": "gpt",
"value": "package javaDatatypes;\n\nimport java.util.*;\n\n\nclass Solution{\n\t\n\tpublic static void getNumberAndOutoutType(Scanner sc){\n\t\ttry\n {\n ... | java | chosen |
[
{
"from": "human",
"value": "Add Google Fit geoposition mapper\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2017 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 c... | java | chosen |
[
{
"from": "human",
"value": "Check for any xref.info_type that are blank ('') - they should be NULL for various other things to work.\n"
},
{
"from": "gpt",
"value": "/*\n Copyright (C) 2003 EBI, GRL\n\n This library is free software; you can redistribute it and/or\n modify it under the terms of... | java | chosen |
[
{
"from": "human",
"value": "Add tests for Context class\n"
},
{
"from": "gpt",
"value": "package org.springframework.data.datastore.repository;\n\nimport static org.hamcrest.Matchers.contains;\nimport static org.hamcrest.Matchers.empty;\nimport static org.junit.Assert.assertThat;\n\nimport java... | java | chosen |
[
{
"from": "human",
"value": "Test that ATHROW instructions are assumed to have a null check.\n\ngit-svn-id: e7d6bde23f017c9ff4efd468d79d66def666766b@8609 eae3c2d3-9b19-0410-a86e-396b6ccb6ab3\n"
},
{
"from": "gpt",
"value": "package npe;\n\npublic class CheckATHROW {\n\tpublic void doNotReport(Th... | java | chosen |
[
{
"from": "human",
"value": "Add option of configuring using <plugins>\n"
},
{
"from": "gpt",
"value": "package com.oriordank;\n\nimport com.oriordank.plist.MapDbPListStore;\nimport org.apache.activemq.broker.Broker;\nimport org.apache.activemq.broker.BrokerPlugin;\n\npublic class MapDbBrokerPlu... | java | chosen |
[
{
"from": "human",
"value": "Add default action list model implementation.\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (C) 2011 0xlab - http://0xlab.org/\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the Li... | java | chosen |
[
{
"from": "human",
"value": "Add physical activity data generation service.\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 m... | java | chosen |
[
{
"from": "human",
"value": "Test that samples can be added to a project without previously being persisted.\n"
},
{
"from": "gpt",
"value": "package ca.corefacility.bioinformatics.irida.web.controller.test.integration;\n\nimport com.google.common.net.HttpHeaders;\nimport com.jayway.restassured.... | java | chosen |
[
{
"from": "human",
"value": "Package private no-op filter for testing with."
},
{
"from": "gpt",
"value": "package org.apache.markt;\n\nimport java.io.IOException;\n\nimport javax.servlet.Filter;\nimport javax.servlet.FilterChain;\nimport javax.servlet.FilterConfig;\nimport javax.servlet.Servlet... | java | chosen |
[
{
"from": "human",
"value": "[ASRG] Implement resource group termination step - backward compatibility\n"
},
{
"from": "gpt",
"value": "package com.sequenceiq.environment.environment.repository.converter;\n\nimport java.util.Optional;\n\nimport com.sequenceiq.cloudbreak.converter.DefaultEnumConv... | java | chosen |
[
{
"from": "human",
"value": "Add test on constructor of AssertionsOnColumnOfChangeType\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 Lice... | java | chosen |
[
{
"from": "human",
"value": "Add vertex interface to support colored edges\n"
},
{
"from": "gpt",
"value": "package com.codemelon.graph.vertex.interfaces;\n\nimport com.codemelon.graph.common.Color;\n\n/**\n * Vertex that supports colored edges\n * @author Marshall Farrier\n * @version Dec 10, 2... | java | chosen |
[
{
"from": "human",
"value": "Add a class with some utility methods\n"
},
{
"from": "gpt",
"value": "package me.izstas.rfs.server.service;\n\nimport java.io.IOException;\nimport java.nio.file.*;\n\nimport me.izstas.rfs.server.RfsException;\n\nclass PathUtils {\n static RfsException wrapExcepti... | java | chosen |
[
{
"from": "human",
"value": "Add test for method type variables that reference a class-level bounded wildcard generic\n"
},
{
"from": "gpt",
"value": "package org.jboss.jandex.test;\n\nimport org.jboss.jandex.ClassInfo;\nimport org.jboss.jandex.DotName;\nimport org.jboss.jandex.Index;\nimport or... | java | chosen |
[
{
"from": "human",
"value": "Add Customer soap web service\n"
},
{
"from": "gpt",
"value": "package com.dreamchain.skeleton.WS;\n\nimport com.dreamchain.skeleton.model.Customer;\nimport com.dreamchain.skeleton.model.User;\nimport com.dreamchain.skeleton.service.CustomerService;\nimport com.dream... | java | chosen |
[
{
"from": "human",
"value": "Put both test cases for use case 2 in here and changed the name so that it would potentially compile\n"
},
{
"from": "gpt",
"value": "/* Covers test cases for use cases:\n * 2\n * \n * http://stackoverflow.com/questions/10845937/how-to-do-junit-testing-in-android\n *... | java | chosen |
[
{
"from": "human",
"value": "Add a dialog fragment skeleton for the temperature unit selection\n"
},
{
"from": "gpt",
"value": "package fr.tvbarthel.apps.simpleweatherforcast.fragments;\n\nimport android.app.AlertDialog;\nimport android.app.Dialog;\nimport android.content.DialogInterface;\nimpor... | java | chosen |
[
{
"from": "human",
"value": "Test case for [ 1908621 ] Null Pointer Dereference\n\ngit-svn-id: e7d6bde23f017c9ff4efd468d79d66def666766b@9385 eae3c2d3-9b19-0410-a86e-396b6ccb6ab3\n"
},
{
"from": "gpt",
"value": "package sfBugs;\r\n\r\npublic class Bug1908621 {\r\n\tpublic static Boolean get_bool(... | java | chosen |
[
{
"from": "human",
"value": "Add a helper for casting some common collection types into generic form\n"
},
{
"from": "gpt",
"value": "package cpw.mods.fml.common.functions;\n\nimport java.util.Collection;\nimport java.util.List;\nimport com.google.common.collect.Collections2;\nimport com.google.... | java | chosen |
[
{
"from": "human",
"value": "Add Test for External Volumes\n\nAdd a test for External Volumes that verifies the rquest is proper\nJSON and the response is parsed correctly.\n"
},
{
"from": "gpt",
"value": "package mesosphere.marathon.client.model.v2;\n\nimport com.google.gson.Gson;\nimport com.g... | java | chosen |
[
{
"from": "human",
"value": "Add basic tests on the parser\n"
},
{
"from": "gpt",
"value": "package de.timroes;\n\nimport static org.junit.Assert.*;\n\nimport de.timroes.axmlrpc.ResponseParser;\nimport de.timroes.axmlrpc.XMLRPCClient;\nimport de.timroes.axmlrpc.XMLRPCServerException;\nimport de.... | java | chosen |
[
{
"from": "human",
"value": "Add JUnit test for MostDirectPath\n"
},
{
"from": "gpt",
"value": "package com.test.graphs;\n\nimport java.util.LinkedList;\n\nimport com.graphs.GraphAdjacencyListRepresentation;\nimport com.graphs.MostDirectPath;\n\nimport junit.framework.TestCase;\n\npublic class T... | java | chosen |
[
{
"from": "human",
"value": "[NGRINDER-315] Add agent which is used for specific user. "
},
{
"from": "gpt",
"value": "package net.grinder.util;\n\nimport static org.hamcrest.Matchers.not;\nimport static org.hamcrest.Matchers.notNullValue;\nimport static org.junit.Assert.assertThat;\n\nimport or... | java | chosen |
[
{
"from": "human",
"value": "XWIKI-15787: Add a \"Delete all\" button on the recycle bin\n\n * Add the missing new interface\n"
},
{
"from": "gpt",
"value": "/*\n * See the NOTICE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free ... | java | chosen |
[
{
"from": "human",
"value": "Test case for Mapper injection (fail)\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2013 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the... | java | chosen |
[
{
"from": "human",
"value": "Add a test utility that randomize datasets\n"
},
{
"from": "gpt",
"value": "package no.ssb.vtl.test;\n\nimport com.google.common.collect.ForwardingObject;\nimport com.google.common.collect.ImmutableMap;\nimport com.google.common.collect.Lists;\nimport no.ssb.vtl.mode... | java | chosen |
[
{
"from": "human",
"value": "Fix strage test failure in Travis environment"
},
{
"from": "gpt",
"value": "package com.exp.tracker.services.impl;\n\nimport java.util.List;\n\nimport javax.faces.model.SelectItem;\n\nimport org.junit.Assert;\nimport org.junit.Test;\nimport org.junit.runner.RunWith;... | java | chosen |
[
{
"from": "human",
"value": "Add full name test case......\n"
},
{
"from": "gpt",
"value": "package com.xqbase.bn.schema;\n\nimport org.junit.Assert;\nimport org.junit.Test;\nimport org.junit.runner.RunWith;\nimport org.junit.runners.Parameterized;\n\nimport java.util.Arrays;\nimport java.util.C... | java | chosen |
[
{
"from": "human",
"value": "Add statement to problem 57\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": "Create testcase for starting builds with RevisionParameterAction\n\nCovering existing behaviour where later builds with different revisions are ignored.\n"
},
{
"from": "gpt",
"value": "/*\n * The MIT License\n *\n * Copyright (c) 2012, Chris Johnson\n *\n * Permissi... | java | chosen |
[
{
"from": "human",
"value": "Test case for a TabSheet containing icons\n\nsvn changeset:6604/svn branch:trunk\n"
},
{
"from": "gpt",
"value": "package com.itmill.toolkit.tests.components.tabsheet;\r\n\r\nimport com.itmill.toolkit.terminal.ThemeResource;\r\nimport com.itmill.toolkit.tests.compone... | java | chosen |
[
{
"from": "human",
"value": "Test similar to push-lots-of-data but using the HTTP-based java client. "
},
{
"from": "gpt",
"value": "/**\n * Sample file using the RiakClient#store(RiakObject, ...) API\n */\n\npackage com.trifork.riak_http;\n\nimport java.io.IOException;\n\nimport com.basho.riak.... | java | chosen |
[
{
"from": "human",
"value": "Add a marker class to identify our version of bcel6.\n"
},
{
"from": "gpt",
"value": "/*\r\n * This is a special marker class used to differentiate our special\r\n * version of BCEL used for running Daikon/Chicory from any other\r\n * version that may be on the class... | java | chosen |
[
{
"from": "human",
"value": "Add example test for Java8 style assertions\n"
},
{
"from": "gpt",
"value": "package fi.vincit.mutrproject.service;\n\nimport static fi.vincit.multiusertest.rule.expection.Expectations.call;\nimport static fi.vincit.multiusertest.util.UserIdentifiers.ifAnyOf;\n\nimpo... | java | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.