conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "human",
"value": "[CONTINUUM-1696] Add a utility class as a workaround to purge old build results from the database until it is possible through the scheduled purge.\n\ngit-svn-id: 14f2065c7afdeb19086ae32a80b5e7aec819bae3@790715 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "gpt",
... | java | chosen |
[
{
"from": "human",
"value": "Add a test for batch analysis session.\n\ngit-svn-id: ed609ce04ec9e3c0bc25e071e87814dd6d976548@685 c7a0535c-eda6-11de-83d8-6d5adf01d787\n"
},
{
"from": "gpt",
"value": "package org.mutabilitydetector.cli;\n\nimport static com.google.common.collect.Lists.newArrayList;... | java | chosen |
[
{
"from": "human",
"value": "Include tests for saving a file with content.\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.\n *\n * WSO2 Inc. licenses this file to you under the Apache License,\n * Version 2.0 (the \"License\"); you... | java | chosen |
[
{
"from": "human",
"value": "Apply regression test for HARMONY-5491 ([classlib][awt] GifDecoder not always passes ColorModel through setPixels method)\n\nsvn path=/harmony/; revision=632300\n"
},
{
"from": "gpt",
"value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more... | java | chosen |
[
{
"from": "human",
"value": "Add simple test for result parser\n"
},
{
"from": "gpt",
"value": "package com.example.playground.monadic.parser.combinators;\n\nimport org.junit.Test;\n\nimport java.util.List;\nimport java.util.stream.IntStream;\n\nimport static com.example.playground.monadic.parse... | java | chosen |
[
{
"from": "human",
"value": "Add unit test for HsmLoginParameters class\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2016 Datalogics Inc.\n */\n\npackage com.datalogics.pdf.security;\n\nimport static org.junit.Assert.assertEquals;\n\nimport org.junit.Test;\n\n/**\n * Unit test for HsmLoginP... | java | chosen |
[
{
"from": "human",
"value": "Create a custom data type and its associated handler for locations - TRUNK-3622\n\nCreate a custom data type and its associated handler for locations - TRUNK-3622\n"
},
{
"from": "gpt",
"value": "/**\n * This Source Code Form is subject to the terms of the Mozilla Pu... | java | chosen |
[
{
"from": "human",
"value": "Add the class which actually performs the realignment based on the intervals\nfound by the IndelTargetCreator.\n"
},
{
"from": "gpt",
"value": "package com.github.sparkcaller.preprocessing;\n\nimport com.github.sparkcaller.Utils;\nimport org.apache.spark.api.java.fun... | java | chosen |
[
{
"from": "human",
"value": "Add command to seek to a specific place\n"
},
{
"from": "gpt",
"value": "package stream.flarebot.flarebot.commands.music;\n\nimport com.arsenarsen.lavaplayerbridge.player.Track;\nimport net.dv8tion.jda.core.entities.Member;\nimport net.dv8tion.jda.core.entities.Messa... | java | chosen |
[
{
"from": "human",
"value": "Add dummy large bit list.\n"
},
{
"from": "gpt",
"value": "package net.katsuster.strview.io;\n\nimport net.katsuster.strview.util.*;\n\n/**\n * <p>\n * ไฝใใใชใ LargeList ใฏใฉในใงใใ\n * </p>\n */\npublic class DummyBitList extends AbstractLargeBitList\n implements Cl... | java | chosen |
[
{
"from": "human",
"value": "Add missing executor annotation class\n"
},
{
"from": "gpt",
"value": "package net.codingwell.weave;\r\n\r\nimport java.lang.annotation.Retention;\r\nimport java.lang.annotation.RetentionPolicy;\r\nimport java.lang.annotation.ElementType;\r\nimport java.lang.annotati... | java | chosen |
[
{
"from": "human",
"value": "Add first draft for a Formatter that decodes values"
},
{
"from": "gpt",
"value": "package at.innovative_solutions.tlv;\r\n\r\nimport java.io.UnsupportedEncodingException;\r\nimport java.util.HashMap;\r\nimport java.util.List;\r\n\r\nimport at.innovative_solutions.tl... | java | chosen |
[
{
"from": "human",
"value": "Build MTE-style index from @brendano's anno files\n"
},
{
"from": "gpt",
"value": "package edu.umass.cs.jfoley.coop;\n\nimport ciir.jfoley.chai.io.Directory;\nimport ciir.jfoley.chai.io.LinesIterable;\nimport ciir.jfoley.chai.time.Debouncer;\nimport edu.umass.cs.jfol... | java | chosen |
[
{
"from": "human",
"value": "Add integration test for computed\n"
},
{
"from": "gpt",
"value": "package arez.integration.computed_value;\n\nimport arez.Arez;\nimport arez.ArezContext;\nimport arez.Environment;\nimport arez.Function;\nimport arez.SafeFunction;\nimport arez.annotations.ArezCompone... | java | chosen |
[
{
"from": "human",
"value": "Include test forcing to create browser list from properties\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 e... | java | chosen |
[
{
"from": "human",
"value": "[test] Add basic dependency extractor test\n"
},
{
"from": "gpt",
"value": "/*-\n * Copyright (c) 2013 Red Hat, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You... | java | chosen |
[
{
"from": "human",
"value": "Add default HTTP-Gateway connector callbacks\n"
},
{
"from": "gpt",
"value": "/*\n * #%L\n * mosaic-cloudlets\n * %%\n * Copyright (C) 2010 - 2012 Institute e-Austria Timisoara (Romania)\n * %%\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n *... | java | chosen |
[
{
"from": "human",
"value": "Add example that may cause the interpreter trying to throw an AnyAtomicValue\n"
},
{
"from": "gpt",
"value": "/**\n * If an exception is a field of class, it's initialized as null, \n * then assigned to some exception object, and throw it, the interpreter\n * would t... | java | chosen |
[
{
"from": "human",
"value": "Add test mod 2 class"
},
{
"from": "gpt",
"value": "package info.u_team.u_team_test2;\n\nimport org.apache.logging.log4j.*;\n\nimport info.u_team.u_team_core.util.verify.JarSignVerifier;\nimport net.minecraftforge.fml.common.Mod;\n\n@Mod(TestMod2.MODID)\npublic class... | java | chosen |
[
{
"from": "human",
"value": "Add unit tests for com.github.eirslett.maven.plugins.frontend.lib.Utils\n\nThese tests were written using Diffblue Cover.\n"
},
{
"from": "gpt",
"value": "package com.github.eirslett.maven.plugins.frontend.lib;\n\nimport java.util.ArrayList;\nimport java.util.Arrays;... | java | chosen |
[
{
"from": "human",
"value": "Add unit test for SocketInfo\n\nChange-Id: Ifd8fea3a65db3431f337208fabfb966c057c55d4\nSigned-off-by: matthieu <6868fb583940e18c5e820cc27b612d32aaa9154f@inocybe.com>\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (c) 2017 Inocybe, Inc. and others. All rights reserv... | java | chosen |
[
{
"from": "human",
"value": "Remove all occurrences of given number from array\n"
},
{
"from": "gpt",
"value": "import java.util.Arrays;\n\npublic class RemoveElement {\n public int removeElement(int[] nums, int val) {\n int index = 0;\n for (int n : nums) {\n if (n !... | java | chosen |
[
{
"from": "human",
"value": "Add support for digital IO on MIO pins"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2011 - 2022 NTB University of Applied Sciences in Technology\n * Buchs, Switzerland, http://www.ntb.ch/inf\n * \n * Licensed under the Apache License, Version 2.0 (the \"License\")... | java | chosen |
[
{
"from": "human",
"value": "Move TabPanel out of WorkbenchPanel."
},
{
"from": "gpt",
"value": "/*\n * Copyright 2012 JBoss Inc\n * \n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not\n * use this file except in compliance with the License. You may obtain a copy o... | java | chosen |
[
{
"from": "human",
"value": "Add some basic service helper methods"
},
{
"from": "gpt",
"value": "package us.kbase.common.utils;\n\nimport java.text.SimpleDateFormat;\nimport java.util.Date;\nimport java.util.Map;\n\nimport org.apache.commons.lang3.StringUtils;\n\npublic class ServiceUtils {\n\n... | java | chosen |
[
{
"from": "human",
"value": "Add a class representing federation info\n"
},
{
"from": "gpt",
"value": "package io.github.saidie.plantuml_api;\n\nimport javax.persistence.EmbeddedId;\nimport javax.persistence.Entity;\nimport javax.persistence.ManyToOne;\nimport javax.validation.constraints.NotNul... | java | chosen |
[
{
"from": "human",
"value": "Create Encoder wrapper class & constructors\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 */\n... | java | chosen |
[
{
"from": "system",
"value": "Use a byte array in the ping handler for simplicity\n"
},
{
"from": "human",
"value": "package net.md_5.bungee.connection;\n\nimport io.netty.buffer.ByteBuf;\nimport io.netty.buffer.Unpooled;\nimport io.netty.channel.Channel;\nimport lombok.RequiredArgsConstructor;\... | java | chosen |
[
{
"from": "human",
"value": "Add JUnit testing for ProviderNetworkManagerImpl.\n\nChange-Id: Ie195e64d2e6f80fea11dee7ea6bfc1d3635567da\nSigned-off-by: Alexis de Talhouรซt <3f85d13b1d0fb141169e8f22f55d7ee87dcd5f00@inocybe.com>\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (c) 2015 Inocybe and ... | java | chosen |
[
{
"from": "human",
"value": ":white_check_mark: Add silly test for empty exception to get coverage\n"
},
{
"from": "gpt",
"value": "/*\n * InvalidLoginExceptionTest.java\n *\n * Copyright (C) 2018 [ A Legge Up ]\n *\n * This software may be modified and distributed under the terms\n * of the MIT... | java | chosen |
[
{
"from": "human",
"value": "Test HttpResourceModel streaming support check\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (c) WSO2 Inc. (http://www.wso2.org) All Rights Reserved.\n *\n * WSO2 Inc. licenses this file to you under the Apache License,\n * Version 2.0 (the \"License\"); you may ... | java | chosen |
[
{
"from": "human",
"value": "Delete a test which is not compatible to our current design\n"
},
{
"from": "gpt",
"value": "package ca.ualberta.team7project.test;\n\nimport java.util.Collection;\n\nimport android.test.ActivityInstrumentationTestCase2;\nimport ca.ualberta.team7project.MainActivity;... | java | chosen |
[
{
"from": "human",
"value": "Create tile view GUI component\n"
},
{
"from": "gpt",
"value": "package j2048.jgamegui;\n\nimport j2048.Tile;\n\nimport java.awt.Color;\nimport java.awt.Font;\nimport java.awt.Graphics2D;\nimport java.awt.geom.RoundRectangle2D;\n\nimport jgame.GMessage;\nimport jgame... | java | chosen |
[
{
"from": "human",
"value": "Test class to improve coverage of WAS-specific preauth code."
},
{
"from": "gpt",
"value": "package org.springframework.security.web.authentication.preauth.websphere;\n\nimport static org.junit.Assert.assertEquals;\nimport static org.mockito.Matchers.any;\nimport sta... | java | chosen |
[
{
"from": "human",
"value": "Add convert base 10 to base 7\n"
},
{
"from": "gpt",
"value": "import org.junit.Test;\nimport org.junit.runner.RunWith;\nimport org.junit.runners.Parameterized;\n\nimport java.math.BigInteger;\nimport java.util.Arrays;\nimport java.util.Collection;\n\nimport static ... | java | chosen |
[
{
"from": "human",
"value": "Add test case for AbstractTransformationModel\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (c) 2009-2013 Topi Nieminen\n */\npackage fi.tnie.db.model;\n\nimport fi.tnie.db.model.cm.AbstractTransformationModel;\nimport junit.framework.TestCase;\n\npublic class Tr... | java | chosen |
[
{
"from": "human",
"value": "Add some tests for XPathUtil\n\ngit-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1780115 13f79535-47bb-0310-9956-ffa450edef68\n\nFormer-commit-id: 831a5a693114a8760709c25066d51db11093d7c2"
},
{
"from": "gpt",
"value": "/*\n * Licensed to the Apache Software ... | java | chosen |
[
{
"from": "human",
"value": "CAMEL-13886: Add integration test to camel-servlet-starter\n"
},
{
"from": "gpt",
"value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additiona... | java | chosen |
[
{
"from": "human",
"value": "Add Future based thread pool that can return stuff"
},
{
"from": "gpt",
"value": "/**\n * \n */\npackage codemining.util.parallel;\n\nimport static com.google.common.base.Preconditions.checkArgument;\n\nimport java.util.ArrayList;\nimport java.util.Collection;\nimpor... | java | chosen |
[
{
"from": "human",
"value": "Add a greyscale color progression.\n"
},
{
"from": "gpt",
"value": "package cs437.som.visualization;\n\nimport java.awt.*;\n\n/**\n * A color progression from white (#FFFFFF) to black (#000000).\n */\npublic class GreyScaleHeat implements ColorProgression {\n priv... | java | chosen |
[
{
"from": "system",
"value": "Read audio book titles with a softer voice.\n"
},
{
"from": "human",
"value": "package com.studio4plus.homerplayer.ui;\n\nimport android.content.Context;\nimport android.speech.tts.TextToSpeech;\n\nimport java.util.Locale;\n\nclass Speaker implements TextToSpeech.On... | java | chosen |
[
{
"from": "human",
"value": "WHAT: Add unit test for Events\n"
},
{
"from": "gpt",
"value": "package com.shopwiki.roger.event;\n\nimport java.io.IOException;\n\nimport org.junit.Assert;\nimport org.junit.Test;\n\nimport com.shopwiki.roger.example.ExampleEventHandler;\nimport com.shopwiki.roger.e... | java | chosen |
[
{
"from": "human",
"value": "Put common persistence test code in abstract class PersistenceTest\n\ngit-svn-id: 311fcc5b8b03427d323cee07bbb9e5a14d8d22e9@624 728ff76a-78ac-11de-a72b-d90af8dea425\n"
},
{
"from": "gpt",
"value": "package ca.nrc.cadc.vos;\n\nimport javax.sql.DataSource;\n\nimport org... | java | chosen |
[
{
"from": "human",
"value": "Add worker test utils for resetting static state\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... | java | chosen |
[
{
"from": "human",
"value": "Add java solution for 17. Letter Combinations of a Phone Number\n\n17. Letter Combinations of a Phone Number: https://leetcode.com/problems/letter-combinations-of-a-phone-number/"
},
{
"from": "gpt",
"value": "package leetcode.letter_combinations_of_a_phone_number;\n... | java | chosen |
[
{
"from": "human",
"value": "Introduce a interface to save and get cookies\n"
},
{
"from": "gpt",
"value": "package mil.nga.mapcache.io.network;\n\nimport java.util.Map;\n\n/**\n * Stores cookies for specific servers.\n */\npublic interface CookieJar {\n\n /**\n * Stores the cookies for t... | java | chosen |
[
{
"from": "human",
"value": "Add this back, maybe its needed, who knows\n"
},
{
"from": "gpt",
"value": "package fi.nls.oskari.wfs;\n\nimport fi.nls.oskari.cache.JedisSubscriber;\nimport fi.nls.oskari.log.LogFactory;\nimport fi.nls.oskari.log.Logger;\nimport fi.nls.oskari.util.JSONHelper;\nimpor... | java | chosen |
[
{
"from": "human",
"value": "Add algo to compute string permutations\n"
},
{
"from": "gpt",
"value": "package com.anuragkapur.pie.recursion;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\n/**\n * @author anuragkapur\n */\npublic class Permutations {\n\n public List<String> getPermu... | java | chosen |
[
{
"from": "human",
"value": "Create class for TDD of haval algorithm\n"
},
{
"from": "gpt",
"value": "package com.m4gik;\n\nimport static org.hamcrest.MatcherAssert.assertThat;\nimport static org.hamcrest.Matchers.equalTo;\nimport static org.hamcrest.Matchers.is;\nimport static org.hamcrest.Matc... | java | chosen |
[
{
"from": "human",
"value": "Solve No.2438 from Baekjoon Online Judge\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2017 haeun kim\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain... | java | chosen |
[
{
"from": "human",
"value": "Add interface for generic processing over exception documentation\n"
},
{
"from": "gpt",
"value": "package edu.iastate.cs.design.spec.analyze;\n\nimport org.eclipse.jdt.core.dom.MethodDeclaration;\n\nimport java.util.List;\n\npublic interface ExceptionDocProcessor {\... | java | chosen |
[
{
"from": "human",
"value": "Include sun.security.util.Resources bundle in native image\n"
},
{
"from": "gpt",
"value": "package io.quarkus.deployment.steps;\n\nimport io.quarkus.deployment.annotations.BuildStep;\nimport io.quarkus.deployment.builditem.nativeimage.NativeImageResourceBundleBuildI... | java | chosen |
[
{
"from": "human",
"value": "Support getting config properties from a file."
},
{
"from": "gpt",
"value": "package io.miti.shortstop.server;\n\nimport io.miti.shortstop.util.Utility;\n\nimport java.io.File;\nimport java.io.FileInputStream;\nimport java.io.FileNotFoundException;\nimport java.io.I... | java | chosen |
[
{
"from": "human",
"value": "Add handler servlet for task scheduling\n"
},
{
"from": "gpt",
"value": "/* Copyright 2020 Google Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a ... | java | chosen |
[
{
"from": "human",
"value": "Use services to abstract database\n"
},
{
"from": "gpt",
"value": "package com.pollistics.services;\n\nimport java.util.List;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.stereotype.Service;\n\nimport com.pollistics.mo... | java | chosen |
[
{
"from": "human",
"value": "Check that repeat features are present\n"
},
{
"from": "gpt",
"value": "package org.ensembl.healthcheck.testcase.eg_core;\n\nimport java.util.List;\n\nimport org.ensembl.healthcheck.DatabaseRegistryEntry;\nimport org.ensembl.healthcheck.ReportManager;\n\npublic class... | java | chosen |
[
{
"from": "human",
"value": "Add very simple test case to test some Gamepad buttons.\n"
},
{
"from": "gpt",
"value": "package de.gurkenlabs.litiengine.input;\n\nimport static org.junit.jupiter.api.Assertions.assertEquals;\n\nimport org.junit.jupiter.api.Test;\n\npublic class GamepadTests {\n\n ... | java | chosen |
[
{
"from": "system",
"value": "Fix warning about missing type parameter\n\nSigned-off-by: Jens Reimann <d1bf62d29e711fdf0a5795916341a7b53d204e2a@redhat.com>"
},
{
"from": "human",
"value": "/*******************************************************************************\n * Copyright (c) 2011, 20... | java | chosen |
[
{
"from": "human",
"value": "Rename ElementCounter and mark for deprecation\n"
},
{
"from": "gpt",
"value": "package pete.metrics.adaptability;\n\nimport java.io.IOException;\nimport java.io.PrintWriter;\nimport java.nio.charset.Charset;\nimport java.nio.file.Files;\nimport java.nio.file.Path;\n... | java | chosen |
[
{
"from": "human",
"value": "Check that no genes are named after numeric EntrezGene identifiers.\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (C) 2003 EBI, GRL\n * \n * This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public L... | java | chosen |
[
{
"from": "human",
"value": "Create the interface to use retofix\n"
},
{
"from": "gpt",
"value": "package com.andela.webservice;\n\nimport com.andela.webservice.model.Flower;\n\nimport java.util.List;\n\nimport retrofit.Callback;\nimport retrofit.http.GET;\n\n/**\n * Created by Spykins on 21/06/... | java | chosen |
[
{
"from": "human",
"value": "Add some test for toString"
},
{
"from": "gpt",
"value": "package net.vergien.beanautoutils.demo;\n\nimport static org.hamcrest.CoreMatchers.endsWith;\nimport static org.hamcrest.CoreMatchers.is;\nimport static org.hamcrest.CoreMatchers.not;\nimport static org.junit.... | java | chosen |
[
{
"from": "human",
"value": "Add Spring Data Redis via lettuce client\n"
},
{
"from": "gpt",
"value": "package com.github.changeworld.redis.client.lettuce;\n\nimport com.github.changeworld.redis.client.SpringDataRedisClient;\nimport org.junit.AfterClass;\nimport org.junit.BeforeClass;\nimport or... | java | chosen |
[
{
"from": "human",
"value": "leetcode: Merge k Sorted Lists ๅบๆฐๆๅบ่งฃๆณ\n"
},
{
"from": "gpt",
"value": "package main.algorithm.leetcode;\n\nimport main.algorithm.leetcode.structure.ListNode;\nimport main.algorithm.leetcode.util.LCUtil;\nimport org.junit.Test;\n\n/**\n * Title : main.algorithm.leetco... | java | chosen |
[
{
"from": "human",
"value": "Create servlet for displaying students/TAs on dashboard.\n"
},
{
"from": "gpt",
"value": "package com.google.sps.servlets.course;\n\nimport com.google.appengine.api.datastore.DatastoreService;\nimport com.google.appengine.api.datastore.DatastoreServiceFactory;\nimpor... | java | chosen |
[
{
"from": "human",
"value": "Implement chapter 1, problem 2\n"
},
{
"from": "gpt",
"value": "package com.ttaylorr.ctci.answers.chapter_1;\n\nimport com.ttaylorr.ctci.meta.Solution;\n\n@Solution(chapter = 1, problem = 2)\npublic class StringReverser {\n protected final String str;\n\n publi... | java | chosen |
[
{
"from": "human",
"value": "Add a constraint for valid resids\n"
},
{
"from": "gpt",
"value": "package io.jasonsparc.chemistry.util;\n\nimport android.support.annotation.AnyRes;\nimport android.support.annotation.IntRange;\n\nimport java.lang.annotation.Documented;\nimport java.lang.annotation.... | java | chosen |
[
{
"from": "human",
"value": "Add of Test Class which tests the conditioning module explicitely, the goal of this is to reproduce the results of the python version or beyond."
},
{
"from": "gpt",
"value": "/*\n * Here comes the text of your license\n * Each line should be prefixed with * \n */\n... | java | chosen |
[
{
"from": "human",
"value": "Add unit test for SimpleMessage (MAILBOX-179)\n\ngit-svn-id: 3e91be830998880cf64a843733475f92c6afa332@1347536 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "gpt",
"value": "/****************************************************************\n * Licensed to the A... | java | chosen |
[
{
"from": "human",
"value": "Add zoomify tilez size calculation enumiration."
},
{
"from": "gpt",
"value": "/*\n * Copyright 2016 Serge Silaev aka iSergio <s.serge.b@gmail.com>.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in comp... | java | chosen |
[
{
"from": "human",
"value": "Add test that the search box appears correctly, to cover CSA-2040\n"
},
{
"from": "gpt",
"value": "package com.autonomy.abc.search;\n\nimport com.autonomy.abc.config.HostedTestBase;\nimport com.autonomy.abc.config.TestConfig;\nimport com.autonomy.abc.framework.KnownB... | java | chosen |
[
{
"from": "system",
"value": "Add support for DriverManager and JDBC URL-based pool configuration.\n"
},
{
"from": "human",
"value": "/*\n * Copyright (C) 2014 Brett Wooldridge\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": "Use Spring Security to manage Basic Authentication\n"
},
{
"from": "gpt",
"value": "package com.netply.botchan.web.model;\n\npublic class Account {\n private String username;\n private String password;\n\n\n public Account() {\n }\n\n public Account(St... | java | chosen |
[
{
"from": "human",
"value": "Solve java pattern syntax checker\n"
},
{
"from": "gpt",
"value": "import java.util.Scanner;\nimport java.util.regex.*;\n\npublic class Solution\n{\n\tpublic static void main(String[] args){\n\t\tScanner in = new Scanner(System.in);\n\t\tint testCases = Integer.parse... | java | chosen |
[
{
"from": "human",
"value": "Add invalid property exception file.\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2013 Franklin Bristow <franklin.bristow@phac-aspc.gc.ca>.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in complian... | java | chosen |
[
{
"from": "human",
"value": "[java] Add test fixture for capturing output through System.out.\n"
},
{
"from": "gpt",
"value": "import org.junit.Test;\nimport org.junit.Before;\nimport org.junit.After;\nimport static org.junit.Assert.*;\nimport java.io.ByteArrayOutputStream;\nimport java.io.Print... | java | chosen |
[
{
"from": "human",
"value": "Add bfs shortest reach CTCI challenge\n\n"
},
{
"from": "gpt",
"value": "package com.github.conradoqg.studydsa.hackerrank.challenges.ctci;\n\nimport java.util.LinkedList;\nimport java.util.Scanner;\n\npublic class BFSShortestReach {\n public static class Node {\n ... | java | chosen |
[
{
"from": "human",
"value": "Test generating a cookie body that can be authorized.\n\nissue #2\n"
},
{
"from": "gpt",
"value": "package umm3601.digitalDisplayGarden.Authentication;\n\n\nimport org.junit.Before;\nimport org.junit.Test;\n\nimport java.security.NoSuchAlgorithmException;\n\nimport s... | java | chosen |
[
{
"from": "human",
"value": "Add rudimentary testing of FxAsync class.\n"
},
{
"from": "gpt",
"value": "package moe.tristan.easyfxml.util;\n\nimport javafx.application.Platform;\nimport moe.tristan.easyfxml.spring.SpringContext;\nimport org.junit.Before;\nimport org.junit.Test;\nimport org.junit... | java | chosen |
[
{
"from": "human",
"value": "Add a mojo to reserve a list of random and unused network ports and place in a configurable maven project properties\n\ngit-svn-id: 194011dfe2cc7b86c43175a0957ab3bfc09bff25@7298 52ab4f32-60fc-0310-b215-8acea882cd1b\n"
},
{
"from": "gpt",
"value": "package org.codehau... | java | chosen |
[
{
"from": "human",
"value": "Add test cases that parse tokens\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2008-2017 Juho Jeong\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 zero padded storage capability\n"
},
{
"from": "gpt",
"value": "/*\n * Zorbage: an algebraic data hierarchy for use in numeric processing.\n *\n * Copyright (C) 2016-2018 Barry DeZonia\n * \n * Redistribution and use in source and binary forms, with or without\n ... | java | chosen |
[
{
"from": "human",
"value": "Add a package annotation to learningrate.\n"
},
{
"from": "gpt",
"value": "/**\n * The {@code learningrate} package contains strategy classes to parametrize\n * self-organizing maps. The classes are intended to be created by the user\n * and given to a self-organizi... | java | chosen |
[
{
"from": "human",
"value": "Create BST with minimal height from sorted inoput array.\n"
},
{
"from": "gpt",
"value": "package com.sunny.grokkingalgorithms.fasttrack.treesandgraphs;\n\nimport com.sunny.grokkingalgorithms.ctci.c4.util.BinaryTreeNode;\nimport com.sunny.grokkingalgorithms.ctci.c4.u... | java | chosen |
[
{
"from": "human",
"value": "Add Solution for 002 add two numbers"
},
{
"from": "gpt",
"value": "package ListNode;\n\n//2. Add Two Numbers\n/**\n * You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes cont... | java | chosen |
[
{
"from": "human",
"value": "Add test case for using remove on map while iterating through it\n\n\ngit-svn-id: e7d6bde23f017c9ff4efd468d79d66def666766b@5545 eae3c2d3-9b19-0410-a86e-396b6ccb6ab3\n"
},
{
"from": "gpt",
"value": "import java.util.HashMap;\nimport java.util.HashSet;\nimport java.uti... | java | chosen |
[
{
"from": "human",
"value": "Add a simple unit test for EID"
},
{
"from": "gpt",
"value": "/*******************************************************************************\n * Copyright (c) 2017 Red Hat Inc and others.\n * All rights reserved. This program and the accompanying materials\n * are ... | java | chosen |
[
{
"from": "human",
"value": "Transform with an associated output stream.\n\n\ngit-svn-id: 293778eaa97c8c94097d610b1bd5133a8f478f36@18759 4f837ed2-42f5-46e7-a7a5-fa17313484d4\n"
},
{
"from": "gpt",
"value": "/*\n * $Id: OutputStreamTransform.java,v 1.1 2012-07-12 04:09:20 thib_gc Exp $\n */\n\n/*... | java | chosen |
[
{
"from": "human",
"value": "Add unit tests to verify behaviour of StatementExceptions.limit\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... | java | chosen |
[
{
"from": "human",
"value": "Add integration test as examples for primitive type usage\n\nRefers to #1\n"
},
{
"from": "gpt",
"value": "package co.vorobyev.exitsign;\n\n\nimport org.junit.Rule;\nimport org.junit.Test;\nimport org.junit.contrib.java.lang.system.ExpectedSystemExit;\n\n/** imports ... | java | chosen |
[
{
"from": "human",
"value": "Create an initial application class\n"
},
{
"from": "gpt",
"value": "package ch.fihlon.moodini;\n\nimport ch.fihlon.moodini.business.question.boundary.QuestionsResource;\nimport com.codahale.metrics.MetricRegistry;\nimport com.codahale.metrics.health.HealthCheckRegis... | java | chosen |
[
{
"from": "human",
"value": "Add a simple scheduled job\n\nThis little job logs the current thermostat state every hour\n\nEventually, we'll want to put this into metrics collection and such..."
},
{
"from": "gpt",
"value": "package org.pioto.thermostat.jobs;\n\nimport org.pioto.thermostat.devic... | java | chosen |
[
{
"from": "human",
"value": "Add weighted edge directed graph.\n"
},
{
"from": "gpt",
"value": "package me.alivecode.algs4;\n\nimport edu.princeton.cs.algs4.In;\n\nimport java.util.Objects;\n\n/**\n * Created by oujt on 17-3-9.\n */\npublic class EdgeWeightedDigraph {\n private static final ... | java | chosen |
[
{
"from": "human",
"value": "Add runtime exception type which could be used for some error handling"
},
{
"from": "gpt",
"value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for... | java | chosen |
[
{
"from": "human",
"value": "Add statement to problem 25\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 (failing) tests for expected behavior\n"
},
{
"from": "gpt",
"value": "package de.retest.recheck;\n\nimport static org.assertj.core.api.Assertions.assertThat;\nimport static org.mockito.Mockito.mock;\n\nimport org.junit.jupiter.api.Test;\n\nclass RecheckOptionsTe... | java | chosen |
[
{
"from": "human",
"value": "Add a test for TcMaps.merge()\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (C) 2011 Herve Quiroz\n *\n * This library is free software; you can redistribute it and/or modify it under\n * the terms of the GNU Lesser General Public License as published by the Free... | java | chosen |
[
{
"from": "human",
"value": "Add test to TraceRenderer to check is rendering trace information as expected inside the TextView\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (C) 2015 Pedro Vicente Gomez Sanchez.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you... | java | chosen |
[
{
"from": "human",
"value": "Add 'Clock' implementation with nano second precision.\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\"... | java | chosen |
[
{
"from": "human",
"value": "Move RPM processing to separate class\n"
},
{
"from": "gpt",
"value": "package org.fedoraproject.javadeptools.impl;\n\nimport java.io.File;\nimport java.io.IOException;\nimport java.util.jar.JarEntry;\nimport java.util.jar.JarInputStream;\n\nimport org.apache.commons... | java | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.