conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "human",
"value": "ONOS-2728: Define an interface to query about VLAN capability\n\nChange-Id: I53444a7b76902a19548cdac1c557677848a46d1e\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2015 Open Networking Laboratory\n *\n * Licensed under the Apache License, Version 2.0 (the \"Licen... | java | chosen |
[
{
"from": "human",
"value": "Add unit tests for me.zhengjie.utils.StringUtils\n\nThese tests were written using Diffblue Cover.\n"
},
{
"from": "gpt",
"value": "package me.zhengjie.utils;\n\nimport org.junit.Test;\nimport org.springframework.mock.web.MockHttpServletRequest;\n\nimport java.text.S... | java | chosen |
[
{
"from": "human",
"value": "Add a simple id generator that converts uuid to string"
},
{
"from": "gpt",
"value": "package ch.rasc.eds.starter.entity;\n\nimport java.util.UUID;\n\nimport org.bson.codecs.IdGenerator;\n\npublic class UUIDStringGenerator implements IdGenerator {\n\n\t@Override\n\tp... | java | chosen |
[
{
"from": "human",
"value": "Test for addListener() and deliver().\n"
},
{
"from": "gpt",
"value": "package org.cometd.javascript.jquery;\n\nimport java.util.Map;\nimport java.util.concurrent.CountDownLatch;\nimport java.util.concurrent.TimeUnit;\n\nimport org.cometd.Bayeux;\nimport org.cometd.C... | java | chosen |
[
{
"from": "human",
"value": "Add javadoc to the timing package\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2016-2019 Talsma ICT\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain ... | java | chosen |
[
{
"from": "human",
"value": "Add tests for binding to enum with different locale\n\nSee gh-12213\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2012-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 exc... | java | chosen |
[
{
"from": "human",
"value": "Add unit test for SingleLocalDateUriParameter\n"
},
{
"from": "gpt",
"value": "package org.roklib.urifragmentrouting.parameter;\n\nimport org.roklib.urifragmentrouting.parameter.converter.ISO8601ToLocalDateParameterValueConverter;\nimport org.roklib.urifragmentroutin... | java | chosen |
[
{
"from": "human",
"value": "Add unit tests for `InvalidFqnUsageValidator`.\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2017, TeamDev Ltd. All rights reserved.\n *\n * Redistribution and use in source and/or binary forms, with or without\n * modification, must retain the above copyright no... | java | chosen |
[
{
"from": "human",
"value": "Add the Spark SQL Java example\n"
},
{
"from": "gpt",
"value": "/**\n * Load some tweets stored as JSON data and explore them.\n */\npackage com.oreilly.learningsparkexamples.java;\n\nimport java.util.Arrays;\nimport java.util.List;\n\nimport org.apache.commons.lang.... | java | chosen |
[
{
"from": "human",
"value": "Add test and example for SummaryConfusionMatrix\n"
},
{
"from": "gpt",
"value": "package com.bbn.bue.common.evaluation;\n\nimport com.bbn.bue.common.collections.IterableUtils.ZipPair;\nimport com.bbn.bue.common.symbols.Symbol;\n\nimport com.google.common.collect.Immu... | java | chosen |
[
{
"from": "human",
"value": "Add custom drawable to draw hand signs with correct clipping.\n"
},
{
"from": "gpt",
"value": "package com.stefanhoth.ropasclisp;\n\nimport android.graphics.Bitmap;\nimport android.graphics.BitmapShader;\nimport android.graphics.Canvas;\nimport android.graphics.Color... | java | chosen |
[
{
"from": "human",
"value": "ADD THE API OF SHAPE2D\n"
},
{
"from": "gpt",
"value": "/**\n * Created by nadia on 02/10/2016.\n */\npublic abstract class Shape2D extends Shape implements Translatable2D{\n\n private Point2D refPoint ;\n\n public Shape2D(Point2D refPoint) {\n\n this.... | java | chosen |
[
{
"from": "human",
"value": "Improve logs and add check on vim reachability\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (c) 2016 Fraunhofer FOKUS\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 * Y... | java | chosen |
[
{
"from": "human",
"value": "Add a JSR-303 validator configuration\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2015 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... | java | chosen |
[
{
"from": "human",
"value": "Add partial test case for Undo Command\n"
},
{
"from": "gpt",
"value": "package guitests;\n\nimport static org.junit.Assert.assertTrue;\n\nimport org.junit.Test;\n\nimport seedu.tache.logic.commands.UndoCommand;\nimport seedu.tache.testutil.TestTask;\n\npublic class ... | java | chosen |
[
{
"from": "human",
"value": "[WIP] Add support for Polyglot TCK\n\nThis is work in progress, a LanguageProvider is a first step.\n\nI think, the best way forward would be to allow parsing of top-level blocks.\n\nSigned-off-by: Stefan Marr <46f1a0bd5592a2f9244ca321b129902a06b53e03@stefan-marr.de>\n"
},
{... | java | chosen |
[
{
"from": "human",
"value": "Test demonstrating a bug handling COUNT-Queries\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2008 Arne Limburg\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": "Solve No.1316 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 test case for @CheckForNull fields\n\n\ngit-svn-id: e7d6bde23f017c9ff4efd468d79d66def666766b@6603 eae3c2d3-9b19-0410-a86e-396b6ccb6ab3\n"
},
{
"from": "gpt",
"value": "package npe;\n\nimport edu.umd.cs.findbugs.annotations.CheckForNull;\n\npublic class CheckForNu... | java | chosen |
[
{
"from": "human",
"value": "Add filter to the recommendation algorithm to excludes dismissed courses\n\n"
},
{
"from": "gpt",
"value": "package at.ac.tuwien.inso.service.course_recommendation.filters;\n\nimport org.springframework.stereotype.Component;\n\nimport java.util.List;\nimport java.uti... | java | chosen |
[
{
"from": "human",
"value": "Add helpers for rendering wrapped text.\n"
},
{
"from": "gpt",
"value": "package net.darkhax.bookshelf.api.util;\n\nimport com.mojang.blaze3d.vertex.PoseStack;\nimport net.minecraft.client.Minecraft;\nimport net.minecraft.client.gui.Font;\nimport net.minecraft.networ... | java | chosen |
[
{
"from": "human",
"value": "Add an advanced example about the JSplitPane. Using three JSplitPane\nwith colors. Show a confirm dialog and message dialog if the user wants\nto exit."
},
{
"from": "gpt",
"value": "package swing;\r\n\r\nimport java.awt.Color;\r\nimport java.awt.event.WindowAdapter;... | java | chosen |
[
{
"from": "human",
"value": "Add simple streaming log input example\n"
},
{
"from": "gpt",
"value": "/**\n * Illustrates a simple map then filter in Java\n */\npackage com.oreilly.learningsparkexamples.java;\n\nimport java.util.Arrays;\nimport java.util.List;\n\nimport org.apache.commons.lang.St... | java | chosen |
[
{
"from": "human",
"value": "Add test case for AStarGrid::updateWalkable()\n"
},
{
"from": "gpt",
"value": "package de.gurkenlabs.litiengine.entities.behavior;\n\nimport de.gurkenlabs.litiengine.Game;\nimport de.gurkenlabs.litiengine.abilities.Ability;\nimport de.gurkenlabs.litiengine.graphics.I... | java | chosen |
[
{
"from": "human",
"value": " \tUpdate some of the JSNI fix for pluggable datasources "
},
{
"from": "gpt",
"value": "package org.pentaho.platform.dataaccess.datasource.ui.service;\r\n\r\nimport org.pentaho.ui.xul.XulServiceCallback;\r\n\r\nimport com.google.gwt.core.client.JavaScriptObject;\r\n... | java | chosen |
[
{
"from": "human",
"value": "Add base class for dialog fragments\n\nTakes care of navigation and injection.\n"
},
{
"from": "gpt",
"value": "package de.philipphager.disclosure.util.ui;\n\nimport android.os.Bundle;\nimport android.support.annotation.Nullable;\nimport android.support.v7.app.AppCom... | java | chosen |
[
{
"from": "human",
"value": "Apply patch for HARMONY-3606( [classlib][luni]Add tests for java.net.SecureCacheResponse)\n\nsvn path=/harmony/; revision=527773\n"
},
{
"from": "gpt",
"value": "/* Licensed to the Apache Software Foundation (ASF) under one or more\r\n * contributor license agreement... | java | chosen |
[
{
"from": "human",
"value": "Solve No.4344 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": "Include test for gathering logs using Chrome in Docker\n"
},
{
"from": "gpt",
"value": "/*\n * (C) Copyright 2022 Boni Garcia (https://bonigarcia.github.io/)\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file excep... | java | chosen |
[
{
"from": "human",
"value": "Add gif rendering class (used in PAppletHax)"
},
{
"from": "gpt",
"value": "package com.haxademic.core.render;\n\nimport java.awt.image.BufferedImage;\n\nimport processing.core.PApplet;\nimport processing.core.PImage;\n\nimport com.haxademic.core.app.P;\nimport com.h... | java | chosen |
[
{
"from": "human",
"value": "Test case for checking a bug in Guice 1.0\n"
},
{
"from": "gpt",
"value": "/*\n * This file is part of Dimdwarf Application Server <http://dimdwarf.sourceforge.net/>\n *\n * Copyright (c) 2008-2009, Esko Luontola. All Rights Reserved.\n *\n * Redistribution and use i... | java | chosen |
[
{
"from": "human",
"value": "Add some unit tests for FileUtils.\n"
},
{
"from": "gpt",
"value": "package org.csstudio.perspectives;\n\nimport static org.junit.Assert.assertArrayEquals;\nimport static org.junit.Assert.assertEquals;\nimport static org.junit.Assert.assertTrue;\n\nimport java.io.Fil... | java | chosen |
[
{
"from": "human",
"value": "Add a rejection predicate test.\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2018, TeamDev. All rights reserved.\n *\n * Redistribution and use in source and/or binary forms, with or without\n * modification, must retain the above copyright notice and the follow... | java | chosen |
[
{
"from": "human",
"value": "Create helper class to assist with Notification posting\n"
},
{
"from": "gpt",
"value": "package com.bryanjswift.simplenote.app;\n\nimport android.app.Notification;\nimport android.app.NotificationManager;\nimport android.app.PendingIntent;\nimport android.content.Co... | java | chosen |
[
{
"from": "human",
"value": "Add the auto-generated stub for licensing reason (making clear that we start this class from scratch).\n\n\ngit-svn-id: 38d176a088663cba44dd40f58e77e6472acb7674@1495957 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "gpt",
"value": "/*\n * Licensed to the Apach... | java | chosen |
[
{
"from": "human",
"value": "[Core] Add DefaultCancelOrder with pair and id params\n"
},
{
"from": "gpt",
"value": "package org.knowm.xchange.service.trade.params;\n\nimport org.knowm.xchange.currency.CurrencyPair;\n\npublic class DefaultCancelOrderByPairAndIfParams implements CancelOrderByIdPar... | java | chosen |
[
{
"from": "human",
"value": "Add tests to validate that ContextAssetRequestHandler screens out access to WEB-INF, META-INF and .tml files.\n\ngit-svn-id: d9b8539636d91aff9cd33ed5cd52a0cf73394897@935571 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "gpt",
"value": "// Copyright 2010 The Ap... | java | chosen |
[
{
"from": "human",
"value": "[TEST] Add empty test case for FIPS\n\nAll other tests in security:cli are skipped on FIPS JVMs\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one\n * or more contributor license agreements. Licensed u... | java | chosen |
[
{
"from": "system",
"value": "Test cases added for accessing queries and views on closed table\n"
},
{
"from": "human",
"value": "package com.tightdb;\n\nimport org.testng.annotations.Test;\n\nimport com.tightdb.test.TestHelper;\n\npublic class JNICloseTest {\n\n @Test (enabled=true, expected... | java | chosen |
[
{
"from": "human",
"value": "Add test to ensure java6 compatibility"
},
{
"from": "gpt",
"value": "package de.skuzzle.semantic;\n\nimport static org.junit.jupiter.api.Assertions.assertEquals;\n\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.UncheckedIOException;\nimpor... | java | chosen |
[
{
"from": "human",
"value": "Add some tests for ServletContextApplicationContextInitializer\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2012-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 i... | java | chosen |
[
{
"from": "human",
"value": "[hotfix][network][tests] Add new unit tests for ReleaseOnConsumptionResultPartition\n\nThe process of ReleaseOnConsumptionResultPartition#onConsumedSubpartition was not covered by unit tests before, so adding a new test for it.\n"
},
{
"from": "gpt",
"value": "/*\n *... | java | chosen |
[
{
"from": "human",
"value": "Include Internet Explorer test (although disabled)\n"
},
{
"from": "gpt",
"value": "/*\n * (C) Copyright 2017 Boni Garcia (http://bonigarcia.github.io/)\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in ... | java | chosen |
[
{
"from": "human",
"value": "Create standard input configuration parser.\n"
},
{
"from": "gpt",
"value": "package com.github.aureliano.evtbridge.input.standard;\n\nimport java.util.Map;\n\nimport com.github.aureliano.evtbridge.core.config.AbstractConfigInputConverter;\nimport com.github.aurelian... | java | chosen |
[
{
"from": "human",
"value": "Create a skeleton for problem 90\n"
},
{
"from": "gpt",
"value": "package leetcode;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\n/**\n * https://leetcode.com/problems/subsets-ii/\n */\npublic class Problem90 {\n public List<List<Integer>> subsetsWithD... | java | chosen |
[
{
"from": "human",
"value": "Add interface for validated column adapter\n"
},
{
"from": "gpt",
"value": "// The MIT License (MIT)\n//\n// Copyright (c) 2019 Timothy D. Jones\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated d... | java | chosen |
[
{
"from": "human",
"value": "Add example for JAX-RS subresources"
},
{
"from": "gpt",
"value": "package de.asw.courses.web2016.demo.backend.jaxrs;\n\nimport javax.ws.rs.GET;\nimport javax.ws.rs.Path;\nimport javax.ws.rs.core.Context;\nimport javax.ws.rs.core.UriInfo;\n\n@Path(\"/subResourceExamp... | java | chosen |
[
{
"from": "human",
"value": "Add REST demo controller to archetype\n"
},
{
"from": "gpt",
"value": "#set( $symbol_pound = '#' )\n#set( $symbol_dollar = '$' )\n#set( $symbol_escape = '\\' )\npackage ${package}.rest;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.spr... | java | chosen |
[
{
"from": "human",
"value": "Add CastAvailability helper which keeps track of all the available routes and delays onRouteRemoved calls and\n"
},
{
"from": "gpt",
"value": "package nl.rmokveld.castnotifications;\n\nimport android.os.Handler;\nimport android.os.SystemClock;\nimport android.support... | java | chosen |
[
{
"from": "human",
"value": "Implement image file to IJ1 ImageWindow reader\n\nFor opening images, IJ1-style\n"
},
{
"from": "gpt",
"value": "package edu.emory.cellbio.ijbat.dm.read;\n\nimport edu.emory.cellbio.ijbat.dm.FileLinkElement;\nimport edu.emory.cellbio.ijbat.ex.ImgLinkException;\nimpor... | java | chosen |
[
{
"from": "human",
"value": "Add show all selection event class\n"
},
{
"from": "gpt",
"value": "package seedu.address.commons.events.ui;\n\nimport seedu.address.commons.events.BaseEvent;\n\n//@@author A0162877N\n/**\n* This class handles the show all selection change event\n*/\npublic class Sho... | java | chosen |
[
{
"from": "human",
"value": "Add a QueryDSL templates class to centralize the functions specific to PostgreSQL\n"
},
{
"from": "gpt",
"value": "package fr.openwide.core.jpa.querydsl;\n\nimport com.querydsl.core.types.Ops;\nimport com.querydsl.jpa.HQLTemplates;\n\n/**\n * Adds QueryDSL operators ... | java | chosen |
[
{
"from": "human",
"value": "Check whether tables need to be analysed to improve index performance.\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (C) 2004 EBI, GRL\n * \n * This library is free software; you can redistribute it and/or modify it under the terms of the\n * GNU Lesser General P... | java | chosen |
[
{
"from": "human",
"value": "Add migration to remove unnecessary config in db\n"
},
{
"from": "gpt",
"value": "package flyway.asdi;\n\nimport fi.nls.oskari.domain.map.view.Bundle;\nimport fi.nls.oskari.domain.map.view.View;\nimport fi.nls.oskari.log.LogFactory;\nimport fi.nls.oskari.log.Logger;\... | java | chosen |
[
{
"from": "human",
"value": "Check a tailer recovers after getting into a NOT_REACHED state\n"
},
{
"from": "gpt",
"value": "package net.openhft.chronicle.queue;\n\nimport net.openhft.chronicle.core.OS;\nimport net.openhft.chronicle.queue.impl.single.SingleChronicleQueueBuilder;\nimport org.juni... | java | chosen |
[
{
"from": "human",
"value": "Create endpoint to provide dummy response to chat request\n"
},
{
"from": "gpt",
"value": "package com.google.step.coffee.servlets;\n\nimport java.io.IOException;\nimport java.util.Arrays;\nimport java.util.Date;\nimport javax.servlet.ServletException;\nimport javax.... | java | chosen |
[
{
"from": "human",
"value": "Add tests for entry generation\n\n"
},
{
"from": "gpt",
"value": "package xyz.upperlevel.uppercore;\n\nimport org.apache.commons.lang.StringUtils;\nimport org.junit.Test;\nimport xyz.upperlevel.uppercore.board.Board;\n\nimport java.util.HashSet;\nimport java.util.Set... | java | chosen |
[
{
"from": "human",
"value": "Add date time util test case\n"
},
{
"from": "gpt",
"value": "package seedu.address.commons.util;\n\nimport static org.junit.Assert.assertFalse;\nimport static org.junit.Assert.assertTrue;\n\nimport java.util.Date;\n\nimport org.junit.Test;\n\n//@@author A0162877N\n/... | java | chosen |
[
{
"from": "human",
"value": "Create class to hold HTTP related constants\n"
},
{
"from": "gpt",
"value": "package org.jogger.http;\n\n/**\n * Defines HTTP related constants.\n * \n * @author German Escobar\n */\npublic class Http {\n\n\tpublic static class Headers {\n\t\tpublic static final Stri... | java | chosen |
[
{
"from": "human",
"value": "Add test for SGTIN rfid tag parsing\n"
},
{
"from": "gpt",
"value": "package org.epctagcoder.parse.SGTIN;\n\nimport org.epctagcoder.exception.EPCParseException;\nimport org.epctagcoder.result.SGTIN;\nimport org.junit.Test;\n\nimport static org.epctagcoder.parse.SGTIN... | java | chosen |
[
{
"from": "human",
"value": "Test messages with an invalid source are terminated\n"
},
{
"from": "gpt",
"value": "package org.apollo.game.message.handler;\n\nimport org.apollo.cache.def.ItemDefinition;\nimport org.apollo.game.message.impl.ItemOnItemMessage;\nimport org.apollo.game.model.Item;\ni... | java | chosen |
[
{
"from": "human",
"value": "Test on new CreateContent event\n"
},
{
"from": "gpt",
"value": "package com.mcac0006.services.siftscience;\n\nimport com.jayway.jsonpath.JsonPath;\nimport com.mcac0006.siftscience.SiftScienceHelper;\nimport com.mcac0006.siftscience.event.domain.CreateContent;\nimpor... | java | chosen |
[
{
"from": "human",
"value": "Add sort parameter for get query tag values. [rev: ivo.miller]\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2015 Hewlett-Packard Development Company, L.P.\n * Licensed under the MIT License (the \"License\"); you may not use this file except in compliance with t... | java | chosen |
[
{
"from": "human",
"value": "Add some minimal tests that exercise the API layer\n"
},
{
"from": "gpt",
"value": "package org.realityforge.arez.api2.test;\n\nimport org.realityforge.arez.api2.AbstractArezTest;\nimport org.realityforge.arez.api2.ArezContext;\nimport org.realityforge.guiceyloops.sh... | java | chosen |
[
{
"from": "human",
"value": "Add an incomplete test for PitchClassSet.\n"
},
{
"from": "gpt",
"value": "package com.harmoneye.tonecircle;\n\nimport static org.junit.Assert.*;\n\nimport org.junit.Test;\n\npublic class PitchClassSetTest {\n\n\t@Test\n\tpublic void testCanonicalization() {\n\t\tPit... | java | chosen |
[
{
"from": "human",
"value": "Add implementation to satisfy CDI"
},
{
"from": "gpt",
"value": "/*******************************************************************************\n * \n * Copyright FUJITSU LIMITED 2016 ... | java | chosen |
[
{
"from": "human",
"value": "Fix gui bug and add project id to vnfrecord\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (c) 2016 Fraunhofer FOKUS\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 first unit test for Discovery class.\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (C) 2013 Sebastian Kaspari\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 * Yo... | java | chosen |
[
{
"from": "human",
"value": "Add file backed properties to serve as backend for simple user data\n"
},
{
"from": "gpt",
"value": "package com.nitorcreations.willow.utils;\n\nimport static java.nio.file.StandardWatchEventKinds.*;\n\nimport java.io.File;\nimport java.io.FileInputStream;\nimport ja... | java | chosen |
[
{
"from": "human",
"value": "Verify physical disk read byte count matches advertised size\n"
},
{
"from": "gpt",
"value": "package edu.uw.apl.tupelo.model;\n\nimport java.io.File;\nimport java.io.InputStream;\n\nimport org.apache.commons.io.input.CountingInputStream;\n\n/**\n * Testing aspects o... | java | chosen |
[
{
"from": "human",
"value": "Create deferred image data uploading strategy"
},
{
"from": "gpt",
"value": "package com.codingbrothers.futurimages.service.impl;\r\n\r\nimport javax.inject.Inject;\r\nimport javax.inject.Named;\r\n\r\nimport com.codingbrothers.futurimages.domain.Image;\r\nimport com... | java | chosen |
[
{
"from": "human",
"value": "Add compatibility test with node-http-digest\n"
},
{
"from": "gpt",
"value": "package com.albroco.barebonesdigest.compatibility;\n\nimport com.albroco.barebonesdigest.DigestChallenge;\nimport com.albroco.barebonesdigest.DigestChallengeResponse;\n\nimport org.junit.Te... | java | chosen |
[
{
"from": "human",
"value": "Add customized non scrolling listview\n"
},
{
"from": "gpt",
"value": "package com.jshoresdevelopment.conversioncalculator;\n\nimport android.content.Context;\nimport android.util.AttributeSet;\nimport android.view.ViewGroup;\nimport android.widget.ListView;\n\npubli... | java | chosen |
[
{
"from": "human",
"value": "Add new parameter overload annotation which can be used to replace current parameter list with the valid patterns specified but not used in this implementation\n"
},
{
"from": "gpt",
"value": "package io.siddhi.annotation;\n\nimport java.lang.annotation.Retention;\ni... | java | chosen |
[
{
"from": "human",
"value": "Add tests for method security for SubjectService\n\n"
},
{
"from": "gpt",
"value": "package at.ac.tuwien.inso.method_security_tests;\n\nimport org.junit.Test;\nimport org.junit.runner.RunWith;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport or... | java | chosen |
[
{
"from": "human",
"value": "Add results controller unit test\n"
},
{
"from": "gpt",
"value": "package com.htisolutions.poolref.controllers;\n\nimport com.htisolutions.poolref.services.ResultsService;\nimport com.htisolutions.poolref.viewModels.ResultEntryViewModel;\nimport org.junit.Test;\nimpo... | java | chosen |
[
{
"from": "human",
"value": "[ONOS-3232] Add the junit test code of DefaultNeutronNetwork\n\nChange-Id: I17bcc5410fe701cce551f59643e324d59bff1674\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2015 Open Networking Laboratory\n *\n * Licensed under the Apache License, Version 2.0 (the \"Licens... | java | chosen |
[
{
"from": "human",
"value": "Add test class to XlsDecorator"
},
{
"from": "gpt",
"value": "package org.jaexcel.framework.JAEX.annotation;\n\nimport java.lang.annotation.Annotation;\n\nimport org.jaexcel.framework.JAEX.bean.ObjectsBuilderTest;\n\nimport junit.framework.Test;\nimport junit.framewo... | java | chosen |
[
{
"from": "human",
"value": "Add unit tests for parsing pattern elements"
},
{
"from": "gpt",
"value": "package org.monospark.spongematchers.parser.element;\n\nimport static org.hamcrest.CoreMatchers.equalTo;\nimport static org.junit.Assert.assertThat;\n\nimport org.junit.Test;\nimport org.monos... | java | chosen |
[
{
"from": "human",
"value": "Add a few DatabaseInteractor unit tests.\nTesting Realm is tricky since it uses native code on Android. Other\nDatabaseInteractor tests will need to be done as instrumentation tests.\n"
},
{
"from": "gpt",
"value": "package io.github.plastix.forage.data.local;\n\nimp... | java | chosen |
[
{
"from": "human",
"value": "Add package info to test env\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2018, TeamDev. All rights reserved.\n *\n * Redistribution and use in source and/or binary forms, with or without\n * modification, must retain the above copyright notice and the following... | java | chosen |
[
{
"from": "human",
"value": "Add test related with query builder.\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (C) 2015 Karumi.\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 obta... | java | chosen |
[
{
"from": "human",
"value": "Add test for unregistered command\n\nAdd test for unregistered command. Expected behavior:\n1. Partition state is \"ERROR\"\n2. No retry will happen.\n"
},
{
"from": "gpt",
"value": "package org.apache.helix.integration.task;\n\n/*\n * Licensed to the Apache Software... | java | chosen |
[
{
"from": "human",
"value": "Add JUnit testing for NodeConfiguration class.\n\nChange-Id: Iddf2dcfb3c6c24acf473a16ab055751182f66c00\nSigned-off-by: Alexis de Talhouët <3f85d13b1d0fb141169e8f22f55d7ee87dcd5f00@inocybe.com>\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (c) 2015 Inocybe and oth... | java | chosen |
[
{
"from": "human",
"value": "Add time bounded termination strategy\n"
},
{
"from": "gpt",
"value": "package wcanalysis.heuristic;\n\nimport com.google.common.base.Stopwatch;\n\nimport java.util.concurrent.TimeUnit;\n\nimport gov.nasa.jpf.search.Search;\n\n/**\n * @author Kasper Luckow\n */\npubl... | java | chosen |
[
{
"from": "human",
"value": "Add CSR generator for role certificates\n"
},
{
"from": "gpt",
"value": "// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\npackage com.yahoo.vespa.athenz.client.zts.utils;\n\nimport com.yahoo.security.Pk... | java | chosen |
[
{
"from": "human",
"value": "Add small fixes before release\n\nReview URL: http://codereview.chromium.org/7631060\n\ngit-svn-id: 1dc80909446f7a7ee3e21dd4d1b8517df524e9ee@813 fc8a088e-31da-11de-8fef-1f5ae417a2df\n"
},
{
"from": "gpt",
"value": "// Copyright (c) 2011 The Chromium Authors. All righ... | java | chosen |
[
{
"from": "human",
"value": "Add a test of the Genbank Functionality"
},
{
"from": "gpt",
"value": "/**\r\n * \r\n */\r\npackage org.biojava3.core.sequence.io;\r\n\r\nimport java.io.ByteArrayInputStream;\r\nimport java.io.ByteArrayOutputStream;\r\nimport java.io.File;\r\nimport java.util.ArrayLi... | java | chosen |
[
{
"from": "human",
"value": "Add placeholder for bulk test\n"
},
{
"from": "gpt",
"value": "package com.splicemachine.mapreduce;\n\nimport java.io.IOException;\nimport java.sql.Types;\n\nimport org.apache.derby.iapi.error.StandardException;\nimport org.apache.hadoop.hbase.KeyValue;\nimport org.a... | java | chosen |
[
{
"from": "human",
"value": "Add interface to interact with a UI item in a tree"
},
{
"from": "gpt",
"value": "/*-\n * Copyright 2015 Diamond Light Source Ltd.\n * \n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the L... | java | chosen |
[
{
"from": "human",
"value": "[Java] Create class for entries in the AddRemoveQueue\n"
},
{
"from": "gpt",
"value": "/*\n * #%L\n * %%\n * Copyright (C) 2020 BMW Car IT GmbH\n * %%\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compli... | java | chosen |
[
{
"from": "human",
"value": "example: Add extended version of Example2 using new API\n"
},
{
"from": "gpt",
"value": "package org.deidentifier.arx.examples;\n\nimport java.io.IOException;\nimport java.util.ArrayList;\nimport java.util.List;\n\nimport org.deidentifier.arx.ARXAnonymizer;\nimport o... | java | chosen |
[
{
"from": "human",
"value": "Add the integration test; not Windows.\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (c) 2002-2016 \"Neo Technology,\"\n * Network Engine for Objects in Lund AB [http://neotechnology.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can... | java | chosen |
[
{
"from": "human",
"value": "Use dagger to inject fragments\n"
},
{
"from": "gpt",
"value": "package pt.passarola.utils.dagger;\n\n/**\n * Created by ruigoncalo on 31/10/15.\n */\nimport android.os.Bundle;\nimport android.support.v4.app.Fragment;\n\nimport pt.passarola.App;\n\npublic class Dagge... | java | chosen |
[
{
"from": "human",
"value": "Add java solution for 147. Insertion Sort List\n\n147. Insertion Sort List: https://leetcode.com/problems/insertion-sort-list/"
},
{
"from": "gpt",
"value": "package leetcode.insertion_sort_list;\n\nimport java.util.Random;\n\nimport common.ListNode;\n\npublic class ... | java | chosen |
[
{
"from": "human",
"value": "Add exception mapper for UnautherizedOperationException"
},
{
"from": "gpt",
"value": "package org.ndexbio.rest.exceptions.mappers;\n\nimport javax.ws.rs.core.Response;\nimport javax.ws.rs.core.Response.Status;\nimport javax.ws.rs.ext.ExceptionMapper;\n\nimport org.n... | java | chosen |
[
{
"from": "human",
"value": "[ALLUXIO-873] Add Unit Tests for the Block package\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, whi... | java | chosen |
[
{
"from": "human",
"value": "Revise changes to only affect core and test code\n"
},
{
"from": "gpt",
"value": "package com.ibm.watson.developer_cloud.service.model;\n\nimport com.ibm.watson.developer_cloud.util.GsonSingleton;\n\nimport java.util.HashMap;\n\npublic abstract class DynamicModel ext... | java | chosen |
[
{
"from": "human",
"value": "Build a sub class of Vehicle of trucks\n\nhttp://ideone.com/bDrtww"
},
{
"from": "gpt",
"value": "// Build a sub class of Vehicle of trucks.\nclass Vehicle {\n\tprivate int passengers; // number of passengers\n\tprivate int fuelcap; // fuel capacity in gallons\n\t... | java | chosen |
[
{
"from": "human",
"value": "Add the ajp port configuration."
},
{
"from": "gpt",
"value": "/*\n * Copyright 2016 SEARCH-The National Consortium for Justice Information and Statistics\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except i... | java | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.