conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "human",
"value": "Tests: Add noop test to prevent test failures\n\nFollow up for elastic/x-pack-elasticsearch@a15338415ac1bd06fdebad1bf93c5e2fec45de5c\n\nOriginal commit: elastic/x-pack-elasticsearch@c0a46a5977fe0dd28a955c8ab3760f0861b9394a\n"
},
{
"from": "gpt",
"value": "/*\n * Copy... | java | chosen |
[
{
"from": "human",
"value": "Add tests for DeconvolveNamespace built-ins\n"
},
{
"from": "gpt",
"value": "/*\n * #%L\n * ImageJ software for multidimensional image processing and analysis.\n * %%\n * Copyright (C) 2014 - 2015 Board of Regents of the University of\n * Wisconsin-Madison, Universit... | java | chosen |
[
{
"from": "human",
"value": "Add example with usage of factory\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2016 Timothy Brooks\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 a descriptor class for annotations\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 compliance with the License.\n * You m... | java | chosen |
[
{
"from": "human",
"value": "Create password reset token model"
},
{
"from": "gpt",
"value": "package com.coding4people.mosquitoreport.api.models;\n\nimport com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBAttribute;\nimport com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBHashKey;\n... | java | chosen |
[
{
"from": "human",
"value": "Add test for spark shuffling\n\n\nFormer-commit-id: 36ed85487f2a074c3604c66f2d93608d62d75173"
},
{
"from": "gpt",
"value": "package org.deeplearning4j.spark.data;\n\nimport org.apache.spark.api.java.JavaRDD;\nimport org.deeplearning4j.spark.BaseSparkTest;\nimport org... | java | chosen |
[
{
"from": "human",
"value": "Add lumongo test case that extends lucene test case\n"
},
{
"from": "gpt",
"value": "package org.lumongo.test.storage;\n\nimport java.io.IOException;\nimport java.net.UnknownHostException;\n\nimport org.apache.lucene.store.BaseDirectoryWrapper;\nimport org.apache.luc... | java | chosen |
[
{
"from": "human",
"value": "Add main method to easily verify the webhook invocation\n"
},
{
"from": "gpt",
"value": "package nu.studer.teamcity.buildscan;\n\nimport java.io.IOException;\nimport java.net.URL;\nimport java.util.Arrays;\nimport java.util.HashMap;\nimport java.util.Map;\n\npublic f... | java | chosen |
[
{
"from": "human",
"value": "Add package docs for vector similarity.\n"
},
{
"from": "gpt",
"value": "/*\n * LensKit, an open source recommender systems toolkit.\n * Copyright 2010-2012 Regents of the University of Minnesota and contributors\n *\n * This program is free software; you can redistr... | java | chosen |
[
{
"from": "human",
"value": "Define a test for the RModuleReshape algorithm\n"
},
{
"from": "gpt",
"value": "/*\n * Zorbage: an algebraic data hierarchy for use in numeric processing.\n *\n * Copyright (C) 2016-2019 Barry DeZonia\n * \n * Redistribution and use in source and binary forms, with o... | java | chosen |
[
{
"from": "human",
"value": "Solve No.2675 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": "Create unit test for 'respawn' command\n\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2019 MovingBlocks\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obt... | java | chosen |
[
{
"from": "human",
"value": "Add unit test to verify newly added getKeyAsString method\n"
},
{
"from": "gpt",
"value": "package io.searchbox.core.search.aggregation;\n\nimport static org.junit.Assert.*;\nimport io.searchbox.core.BulkResult;\nimport io.searchbox.core.search.aggregation.TermsAggre... | java | chosen |
[
{
"from": "human",
"value": "Annotate webvtt package with @NonNullApi\n\nPiperOrigin-RevId: 277916734\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (C) 2019 The Android Open Source Project\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 functional test for Verifiable log resource\n"
},
{
"from": "gpt",
"value": "package uk.gov.register.presentation.functional;\n\nimport org.junit.Before;\nimport org.junit.Test;\n\nimport javax.ws.rs.core.Response;\nimport java.util.List;\nimport java.util.Map;\n... | java | chosen |
[
{
"from": "human",
"value": "Add new test based on user password\n"
},
{
"from": "gpt",
"value": "package com.evolveum.midpoint.testing.selenium;\r\n\r\nimport static org.junit.Assert.assertEquals;\r\nimport static org.junit.Assert.assertNotSame;\r\nimport static org.junit.Assert.assertTrue;\r\n... | java | chosen |
[
{
"from": "human",
"value": "Create compat ripples that are based on MaterialShapeDrawable and only draw when enabled and in the pressed, focused, or hovered states.\n\nPiperOrigin-RevId: 253783048\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2019 The Android Open Source Project\n *\n * Lic... | java | chosen |
[
{
"from": "human",
"value": "Add test for bug interacting with JUnit expected exception handler."
},
{
"from": "gpt",
"value": "package net.ttsui.junit.rules.pending;\n\nimport static org.junit.Assert.fail;\n\nimport org.junit.Rule;\nimport org.junit.Test;\n\n\npublic class SupportJUnitExpectedE... | java | chosen |
[
{
"from": "human",
"value": "Convert nodes at each level of a binary tree to linked lists using level\norder traversal. O(n) time and O(n) space.\n"
},
{
"from": "gpt",
"value": "package com.sunny.grokkingalgorithms.fasttrack.treesandgraphs;\n\nimport com.sunny.grokkingalgorithms.ctc.c2.util.Lin... | java | chosen |
[
{
"from": "human",
"value": "Add class for gson to fill.\n"
},
{
"from": "gpt",
"value": "package eic.beike.projectx.eicapi;\n\nimport com.google.gson.annotations.SerializedName;\n\n/**\n * Created by alex on 9/22/15.\n */\npublic class ResponseEntry implements Comparable<ResponseEntry>{\n @S... | java | chosen |
[
{
"from": "human",
"value": "Allow to work with CSR protection\n"
},
{
"from": "gpt",
"value": "package org.jenkinsci.plugins.ghprb;\n\nimport hudson.Extension;\nimport hudson.security.csrf.CrumbExclusion;\n\nimport javax.servlet.FilterChain;\nimport javax.servlet.ServletException;\nimport javax... | java | chosen |
[
{
"from": "human",
"value": "Create new command for adjusting pickup speed based on linear scaling of battery voltage\n"
},
{
"from": "gpt",
"value": "// RobotBuilder Version: 0.0.2\n//\n// This file was generated by RobotBuilder. It contains sections of\n// code that are automatically generated... | java | chosen |
[
{
"from": "human",
"value": "Add EqualsUtils unit test cases\n"
},
{
"from": "gpt",
"value": "package com.jajinba.android.utils;\n\n\nimport org.junit.Assert;\nimport org.junit.Test;\n\npublic class EqualUtilsUnitTest {\n\n @Test\n public void isEqual_Array_isCorrect() throws Exception {\n ... | java | chosen |
[
{
"from": "human",
"value": "Add benchmark for HeapByteBuf implementations.\n\nMotivation:\n\nTo prove one implementation is faster as the other we should have a benchmark.\n\nModifications:\n\nAdd benchmark which benchmarks the unsafe and non-unsafe implementation of HeapByteBuf.\n\nResult:\n\nAble to comp... | java | chosen |
[
{
"from": "human",
"value": "Add support for a user ViewDefinitionRepository\nAdd ViewDefinitionRepository and SecurityMaster to RemoteClient, etc\nAdd all this into the demo engine\n"
},
{
"from": "gpt",
"value": "/**\n * Copyright (C) 2009 - 2010 by OpenGamma Inc.\n *\n * Please see distributi... | java | chosen |
[
{
"from": "human",
"value": "Add test to show \"surprising\" NoSuchMethodExceptions in JPF\n\nJPF provides its own implementation of some standard Java classes, but\nthose implementations are in some cases incomplete, i.e. there are\nmethods missing from the JPF implementation that are part of the\npublic A... | java | chosen |
[
{
"from": "human",
"value": "Add an event reporting about downloading progress \n\nThe ProgressInputStream provides unstructured information about progress\nof downloading files in the form of Progress events. Add a new event\ntype, to be posted over the event bus, providing structured information\nabout th... | java | chosen |
[
{
"from": "human",
"value": "Add test for hashtable of long"
},
{
"from": "gpt",
"value": "package org.formulachess.util.tests;\n\n\nimport static org.junit.jupiter.api.Assertions.*;\n\nimport org.formulachess.util.HashtableOfLong;\nimport org.junit.jupiter.api.DisplayName;\nimport org.junit.jup... | java | chosen |
[
{
"from": "human",
"value": "Add delete string feature column transform tests\n"
},
{
"from": "gpt",
"value": "package com.airbnb.aerosolve.core.transforms;\n\nimport com.airbnb.aerosolve.core.FeatureVector;\n\nimport java.util.HashMap;\nimport java.util.HashSet;\nimport java.util.Map;\nimport j... | java | chosen |
[
{
"from": "human",
"value": "Solve No.7287 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 unit test for Application\n"
},
{
"from": "gpt",
"value": "package com.github.devnied.emvnfccard.model;\n\nimport org.fest.assertions.Assertions;\nimport org.junit.Test;\n\nimport java.util.Arrays;\nimport java.util.Collections;\nimport java.util.List;\n\npublic ... | java | chosen |
[
{
"from": "human",
"value": "Add utility class to get logging jersey client\n"
},
{
"from": "gpt",
"value": "package de.fau.amos.virtualledger.server.banking.adorsys.api;\n\nimport org.glassfish.jersey.logging.LoggingFeature;\nimport org.slf4j.Logger;\n\nimport javax.ws.rs.client.Client;\nimport... | java | chosen |
[
{
"from": "human",
"value": "Add migration to remove camera controls 3d bundle from publish view\n"
},
{
"from": "gpt",
"value": "package flyway.pti3d;\n\nimport java.sql.Connection;\nimport java.sql.PreparedStatement;\nimport java.sql.ResultSet;\nimport java.sql.SQLException;\n\nimport org.flyw... | java | chosen |
[
{
"from": "human",
"value": "Add a greyscale color set.\n"
},
{
"from": "gpt",
"value": "package de.lmu.ifi.dbs.elki.visualization.colors;\n\nimport org.apache.batik.util.SVGConstants;\n\n/**\n * Simple color library using a few grey values for printing.\n * \n * @author Erich Schubert\n */\npub... | java | chosen |
[
{
"from": "human",
"value": "Camel-AWS: Create single Karaf feature tests for single components, aws-cw test\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 * t... | java | chosen |
[
{
"from": "human",
"value": "Add test case for error handling\n\n- closes gh-10\n"
},
{
"from": "gpt",
"value": "package eu.hinsch.spring.propertiesdecrypter;\n\nimport org.jasypt.exceptions.EncryptionOperationNotPossibleException;\nimport org.junit.Rule;\nimport org.junit.Test;\nimport org.juni... | java | chosen |
[
{
"from": "human",
"value": "Fix json release-group primary type output\n"
},
{
"from": "gpt",
"value": "/* Copyright (c) 2018 Sambhav Kothari\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the fol... | java | chosen |
[
{
"from": "human",
"value": "Add possible interval count metrics implementation\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2016 Timothy Brooks\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 *... | java | chosen |
[
{
"from": "human",
"value": "Add ability to execute some code on admin DB, if required\n"
},
{
"from": "gpt",
"value": "package ru.ydn.wicket.wicketorientdb.utils;\n\nimport java.io.Serializable;\n\nimport ru.ydn.wicket.wicketorientdb.DefaultODatabaseThreadLocalFactory;\nimport ru.ydn.wicket.wic... | java | chosen |
[
{
"from": "human",
"value": "Add a wrapper to more easily retrieve alarm clocks from cursors.\n"
},
{
"from": "gpt",
"value": "/*\n * USER: mslm\n * DATE: 4/5/2017\n */\n\npackage com.gedder.gedderalarm.controller;\n\nimport android.database.Cursor;\nimport android.database.CursorWrapper;\n\nimp... | java | chosen |
[
{
"from": "human",
"value": "Add new test for Upsert by non-PK\n"
},
{
"from": "gpt",
"value": "package com.vladmihalcea.book.hpjp.hibernate.query.upsert;\n\nimport com.vladmihalcea.book.hpjp.hibernate.identifier.composite.CompositeIdIdentityGeneratedTest;\nimport com.vladmihalcea.book.hpjp.util... | java | chosen |
[
{
"from": "human",
"value": "Add map reduce function to calculate sum of weights\n\nBy tower and date\n\nSigned-off-by: diogorosa <955978867e0afd27c6161feaba06f034fdd74ce8@gmail.com>\n"
},
{
"from": "gpt",
"value": "import java.io.IOException;\nimport java.util.StringTokenizer;\n\nimport org.apa... | java | chosen |
[
{
"from": "human",
"value": "Add missing file from the last commit. Spotted by Sami.\n\n\ngit-svn-id: dd969ffd0b1e2aca00ff23b3edadceba2772a27a@536618 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "gpt",
"value": "package org.apache.nutch.parse;\n\nimport java.util.HashMap;\nimport java.ut... | java | chosen |
[
{
"from": "human",
"value": "Add a placeholder for mapping RunKeeper weight sets\n"
},
{
"from": "gpt",
"value": "package org.openmhealth.shim.runkeeper.mapper;\n\nimport com.fasterxml.jackson.databind.JsonNode;\nimport org.openmhealth.schema.domain.omh.BodyWeight;\nimport org.openmhealth.schema... | java | chosen |
[
{
"from": "human",
"value": "Add utility for inflating item layouts\n"
},
{
"from": "gpt",
"value": "package io.jasonsparc.chemistry.util;\n\nimport android.content.Context;\nimport android.support.annotation.LayoutRes;\nimport android.support.annotation.NonNull;\nimport android.view.LayoutInfla... | java | chosen |
[
{
"from": "human",
"value": "Add statement to problem 19\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 'Module9/' and sub-directories. Add textbook code listing 12-1 in 'etc/src/'\n"
},
{
"from": "gpt",
"value": "/*\n * Code Listing 12-1 | ShowWindow.java\n * Chapter 12.2: Creating Windows\n * (pg. 765)\n*/\n\nimport javax.swing.JFrame;\n\n/*\n * This pr... | java | chosen |
[
{
"from": "human",
"value": "Check in. Facility for using user-supplied input and output streams for the in\nand out link of the SMSC.\n\n"
},
{
"from": "gpt",
"value": "/*\n * Java SMPP API\n * Copyright (C) 1998 - 2001 by Oran Kelly\n * \n * This library is free software; you can redistribute ... | java | chosen |
[
{
"from": "human",
"value": "Add test for overriding name and domain\n"
},
{
"from": "gpt",
"value": "package com.cognifide.aet.executor.model;\n\nimport org.junit.Test;\n\nimport java.util.Collections;\n\nimport static org.hamcrest.MatcherAssert.assertThat;\nimport static org.hamcrest.Matchers.... | java | chosen |
[
{
"from": "human",
"value": "Test cases for Identified Surgical Pathology Report\n\n\nSVN-Revision: 9875\n"
},
{
"from": "gpt",
"value": "package edu.wustl.catissuecore.bizlogic.test;\r\n\r\nimport java.util.Iterator;\r\nimport java.util.List;\r\n\r\nimport edu.wustl.catissuecore.domain.Biohazar... | java | chosen |
[
{
"from": "human",
"value": "Create jobsubmission package for job management.\n\nThis package contains classes that enable SDKs to submit jobs\nto runners. In general it delivers the capabilities promised\nby the `beam_job_api` GRPC definition in\n`model/job-management`.\n"
},
{
"from": "gpt",
... | java | chosen |
[
{
"from": "human",
"value": "Add another nashorn sample of dynamically invoking java code at runtime\n"
},
{
"from": "gpt",
"value": "package com.winterbe.java8;\n\nimport javax.script.Invocable;\nimport javax.script.ScriptEngine;\nimport javax.script.ScriptEngineManager;\nimport javax.script.Sc... | java | chosen |
[
{
"from": "human",
"value": "Create unit test for filtering, added first test exclude impaired\nhearing"
},
{
"from": "gpt",
"value": "package org.lodder.subtools.multisubdownloader.lib.control.subtitles;\n\nimport static org.junit.Assert.assertEquals;\nimport static org.mockito.Mockito.mock;\ni... | java | chosen |
[
{
"from": "human",
"value": "Add a unit test for AnnotationDescriptorBuilder\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 compliance with the License.\... | java | chosen |
[
{
"from": "human",
"value": "Test case for infeasible exception edge\n\n\ngit-svn-id: e7d6bde23f017c9ff4efd468d79d66def666766b@1473 eae3c2d3-9b19-0410-a86e-396b6ccb6ab3\n"
},
{
"from": "gpt",
"value": "\nclass Infeasible {\n\n int foo() {\n\tInfeasible a,b;\n\ta = null;\n\ttry {\n\t\ta = new In... | java | chosen |
[
{
"from": "human",
"value": "Add End-to-End test for configuration page\n"
},
{
"from": "gpt",
"value": "package org.jenkinsci.plugins.globalEventsPlugin;\n\nimport com.gargoylesoftware.htmlunit.WebAssert;\nimport com.gargoylesoftware.htmlunit.html.HtmlPage;\nimport org.junit.Rule;\nimport org.j... | java | chosen |
[
{
"from": "human",
"value": "Add testing for the change\n"
},
{
"from": "gpt",
"value": "/**\n * Copyright 2016 Palantir Technologies\n *\n * Licensed under the BSD-3 License (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the ... | java | chosen |
[
{
"from": "human",
"value": "Create facility demographic estimate controller\n"
},
{
"from": "gpt",
"value": "/*\n * This program was produced for the U.S. Agency for International Development. It was prepared by the USAID | DELIVER PROJECT, Task Order 4. It is part of a project which utilizes c... | java | chosen |
[
{
"from": "human",
"value": "Add unparser for serializing out with OSATE\n"
},
{
"from": "gpt",
"value": "/**\n * Copyright (c) 2017, Rockwell Collins.\n * \n * Developed with the sponsorship of Defense Advanced Research Projects Agency\n * (DARPA).\n * \n * Permission is hereby granted, free of... | java | chosen |
[
{
"from": "human",
"value": "Add an example of using mutability detector at runtime.\n\ngit-svn-id: ed609ce04ec9e3c0bc25e071e87814dd6d976548@618 c7a0535c-eda6-11de-83d8-6d5adf01d787\n"
},
{
"from": "gpt",
"value": "package org.mutabilitydetector.runtime;\n\nimport org.mutabilitydetector.Analysis... | java | chosen |
[
{
"from": "human",
"value": "Add turn table enable PID.\n"
},
{
"from": "gpt",
"value": "package org.robockets.stronghold.robot.highgoalshooter;\n\nimport org.robockets.stronghold.robot.Robot;\n\nimport edu.wpi.first.wpilibj.command.Command;\n\n/**\n * Enable the PIDController for the hood part ... | java | chosen |
[
{
"from": "human",
"value": "Add missing union type builder\n\nThis type was missing and should not be generated over and over again.\n\nChange-Id: Ife3e97c2c639e29ca2115429b53e6dec62440db7\nSigned-off-by: Robert Varga <b8bd3df785fdc0ff42dd1710c5d91998513c57ef@cisco.com>\n"
},
{
"from": "gpt",
"... | java | chosen |
[
{
"from": "human",
"value": "SO-3379: Add POJO class for easier CSV conversion"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2011-2019 B2i Healthcare Pte Ltd, http://b2i.sg\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": "system",
"value": "Add getters, based upon properties values\n\n"
},
{
"from": "human",
"value": "package uk.ac.ed.inf.Metabolic.ndomAPI;\n\nimport java.util.List;\n\npublic interface IModel extends IModelObject {\n\tpublic List<ICompartment> getCompartmentList();\n\n\tpublic List<IR... | java | chosen |
[
{
"from": "human",
"value": "Revert \"drop old io exception dialog\"\n\nThis reverts commit 48d33bf0fee6f5b304fa73ac783d942ecda932ec.\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2000-2014 JetBrains s.r.o.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may... | java | chosen |
[
{
"from": "human",
"value": "Add unit tests for IdWithTextParameterValueConverter\n"
},
{
"from": "gpt",
"value": "package org.roklib.urifragmentrouting.parameter;\n\nimport org.junit.Test;\nimport org.roklib.urifragmentrouting.exception.ParameterValueConversionException;\nimport org.roklib.urif... | java | chosen |
[
{
"from": "human",
"value": "Add unit test to ensure names don't change.\n"
},
{
"from": "gpt",
"value": "package com.yahoo.config.model.api.container;\n\nimport org.junit.Test;\n\nimport static com.yahoo.config.model.api.container.ContainerServiceType.CLUSTERCONTROLLER_CONTAINER;\nimport static... | java | chosen |
[
{
"from": "human",
"value": "Create controller to manage group tasks\n"
},
{
"from": "gpt",
"value": "package com.jmb.springfactory.controller.api;\n\nimport java.util.List;\n\nimport javax.validation.Valid;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springfram... | java | chosen |
[
{
"from": "human",
"value": "Test that deleting topic returns HTTP status 204\n\nBug: Issue 4237\nChange-Id: Ie345dfc1b1161d9892cc58a18a76bbb6e2a39220\n"
},
{
"from": "gpt",
"value": "// Copyright (C) 2016 The Android Open Source Project\n//\n// Licensed under the Apache License, Version 2.0 (th... | java | chosen |
[
{
"from": "human",
"value": "Add maven goal to delete all topics.\n"
},
{
"from": "gpt",
"value": "package io.jean_eudes.maven;\n\nimport static org.apache.maven.plugins.annotations.LifecyclePhase.POST_INTEGRATION_TEST;\nimport java.util.Properties;\nimport java.util.concurrent.TimeUnit;\nimport... | java | chosen |
[
{
"from": "human",
"value": "Add spec for @AfterAll failures\n"
},
{
"from": "gpt",
"value": "package com.github.havarunner.beforeafter;\n\nimport com.github.havarunner.HavaRunner;\nimport com.github.havarunner.annotation.AfterAll;\nimport org.junit.Test;\nimport org.junit.runner.notification.Ru... | java | chosen |
[
{
"from": "human",
"value": "Add event for today selection at left panel\n"
},
{
"from": "gpt",
"value": "package seedu.address.commons.events.ui;\n\nimport seedu.address.commons.events.BaseEvent;\n\npublic class LeftPanelTodaySelectionChangedEvent extends BaseEvent {\n\n public LeftPanelToda... | java | chosen |
[
{
"from": "human",
"value": "Add missing generated response test class."
},
{
"from": "gpt",
"value": "package mir.responses.responsesAllElementTypesToAllElementTypes.simpleChangesTests;\r\n\r\nimport allElementTypes.Root;\r\nimport org.eclipse.emf.ecore.EObject;\r\nimport tools.vitruv.extension... | java | chosen |
[
{
"from": "human",
"value": "Add test case with multiple sort\n"
},
{
"from": "gpt",
"value": "package org.codingmatters.poom.services.domain.repositories.inmemory;\n\nimport org.codingmatters.poom.services.domain.property.query.PropertyQuery;\nimport org.codingmatters.poom.services.domain.repos... | java | chosen |
[
{
"from": "human",
"value": "Implement RecyclerView touch event handling\n"
},
{
"from": "gpt",
"value": "package com.example.todocloud.listener;\n\nimport android.content.Context;\nimport android.support.v7.widget.RecyclerView;\nimport android.view.GestureDetector;\nimport android.view.MotionEv... | java | chosen |
[
{
"from": "human",
"value": "Update snowball and add arabic and tamil stemmers\n"
},
{
"from": "gpt",
"value": "// BSD License (http://lemurproject.org/galago-license)\npackage org.lemurproject.galago.core.parse.stem;\n\nimport org.tartarus.snowball.ext.arabicStemmer;\n\npublic class SnowballAra... | java | chosen |
[
{
"from": "human",
"value": "Add unit test for uuid stuff\n"
},
{
"from": "gpt",
"value": "import junit.framework.TestCase;\n\nimport traildb.*;\n\nimport java.util.UUID;\nimport java.io.FileNotFoundException;\n\npublic class TestUUIDs extends TestCase {\n\tUUID cookie1;\n\tUUID cookie2;\n\tprot... | java | chosen |
[
{
"from": "human",
"value": "Add data structure for storing schedule message\n"
},
{
"from": "gpt",
"value": "package com.uet.beman;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\n/**\n * Created by thanhpd on 3/12/2015.\n */\npublic class GroupNode extends Node {\n\n private List<... | java | chosen |
[
{
"from": "human",
"value": "Add lowercase first word filter\n"
},
{
"from": "gpt",
"value": "package com.joliciel.talismane.tokeniser.filters;\n\nimport java.util.Set;\nimport java.util.regex.Pattern;\n\nimport com.joliciel.talismane.TalismaneSession;\nimport com.joliciel.talismane.tokeniser.To... | java | chosen |
[
{
"from": "human",
"value": "Add unit test for InMemoryMetastore\n\nInMemoryMetastore is a mock implementation of HiveMetastore which is used\nto test BridgingHiveMetastore without a real Metastore.\n"
},
{
"from": "gpt",
"value": "/*\n * Licensed under the Apache License, Version 2.0 (the \"Lic... | java | chosen |
[
{
"from": "human",
"value": "Add test case for leaf span.\n"
},
{
"from": "gpt",
"value": "package org.skywalking.apm.agent.core.context;\n\nimport java.util.Map;\nimport org.junit.Assert;\nimport org.junit.Test;\n\n/**\n * @author wusheng\n */\npublic class LeafSpanTestCase {\n @Test\n pu... | java | chosen |
[
{
"from": "human",
"value": "[PLAT-1279] Make batch master more standard\n\nSplit BatchMaster and BatchRunMaster\n"
},
{
"from": "gpt",
"value": "/**\n * Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies\n *\n * Please see distribution for license.\n */\npackage... | java | chosen |
[
{
"from": "system",
"value": "Support configuring integration tests with env. variables\n"
},
{
"from": "human",
"value": "package com.microsoft.azure.services.blob;\n\nimport org.junit.Before;\nimport org.junit.BeforeClass;\n\nimport com.microsoft.azure.configuration.Configuration;\n\npublic ab... | java | chosen |
[
{
"from": "human",
"value": "Introduce helper methods for calculating standard metrics across tests.\n"
},
{
"from": "gpt",
"value": "package com.custardsource.parfait.benchmark;\n\nimport java.util.List;\n\npublic class BlockedMetricHelper {\n private BlockedMetricHelper() {\n }\n\n st... | java | chosen |
[
{
"from": "human",
"value": "Add small test for checking speed of RDF manipulation"
},
{
"from": "gpt",
"value": "package won.node.service.linkeddata.generate;\n\nimport java.net.URI;\nimport java.util.List;\nimport java.util.stream.Collectors;\nimport java.util.stream.Stream;\n\nimport org.apac... | java | chosen |
[
{
"from": "human",
"value": "Create open about dialog command.\n"
},
{
"from": "gpt",
"value": "package com.github.aureliano.edocs.app.cmd;\n\nimport com.github.aureliano.edocs.app.EdocsApp;\nimport com.github.aureliano.edocs.app.gui.HelpDialog;\n\npublic class OpenAboutDialogCommand implements ... | java | chosen |
[
{
"from": "human",
"value": "Add tool to print agent status\n"
},
{
"from": "gpt",
"value": "package edu.brown.cs.systems.pivottracing.tools;\n\nimport java.io.FileNotFoundException;\nimport java.io.IOException;\n\nimport edu.brown.cs.systems.pivottracing.PTAgentProtos.AgentStatus;\nimport edu.b... | java | chosen |
[
{
"from": "human",
"value": "Add mechanism for defining simulation dynamics.\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 except in compliance with t... | java | chosen |
[
{
"from": "human",
"value": "Cover `org.gradle.util` with nullability annotations\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2017 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 wi... | java | chosen |
[
{
"from": "human",
"value": "Add a POST /integration-support/generate/pom.xml api endpoint so that the UI can get a pom.xml for the integration currently being edited so it can pass it to the data mapper."
},
{
"from": "gpt",
"value": "/**\n * Copyright (C) 2016 Red Hat, Inc.\n *\n * Licensed un... | java | chosen |
[
{
"from": "human",
"value": "Create helper class to manage DbBeanFile filenames\n"
},
{
"from": "gpt",
"value": "package org.beanmaker.util;\n\nimport org.apache.commons.io.FileUtils;\n\nimport java.io.File;\nimport java.io.IOException;\n\npublic class DbBeanFileFilenameFixes {\n\n public sta... | java | chosen |
[
{
"from": "human",
"value": "Check for newlines & tabs in gene descriptions - causes problems for TSV dumping.\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\n * terms of the GNU Lesse... | java | chosen |
[
{
"from": "human",
"value": "Add test to check browser config form Docker Hub\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 co... | java | chosen |
[
{
"from": "system",
"value": "Add integration test for deployability analysis\n"
},
{
"from": "human",
"value": "package prope.executables;\n\nimport java.nio.file.Paths;\n\nimport org.junit.Test;\n\npublic class AnalysisWorkflowTests {\n\n\t@Test(expected = IllegalArgumentException.class)\n\tpu... | java | chosen |
[
{
"from": "human",
"value": "[Java] Sort array with only 0s and/or 1s and/or 2s.\n"
},
{
"from": "gpt",
"value": "package sorting;\n\nimport common.ArrayUtils;\n\n/**\n * Sort an array containing only 0s and/or 1s and/or 2s.\n */\npublic class Sort012 {\n\n\tpublic static void sort012(int[] arra... | java | chosen |
[
{
"from": "human",
"value": "Add custom exception messages to the new exceptions created\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2015 Ryan Gilera.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the Licen... | java | chosen |
[
{
"from": "human",
"value": "Add two tests to MainActivity checking LynxView visibility inside MainActivity\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 may not use this f... | java | chosen |
[
{
"from": "human",
"value": "Add about activity test file with header test\n"
},
{
"from": "gpt",
"value": "package com.cwainner.chris.recipecentral;\n\nimport android.os.Build;\nimport android.widget.TextView;\n\nimport org.junit.Before;\nimport org.junit.Test;\nimport org.junit.runner.RunWith;... | java | chosen |
[
{
"from": "human",
"value": "Add original code (note: to run copy into eclipse)\n"
},
{
"from": "gpt",
"value": "import org.dalton.DaltonStock;\n\n/**\n *\n */\n\n/**\n * @author student\n *\n */\npublic class Stock {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\... | java | chosen |
[
{
"from": "human",
"value": "Add dummy HTTP sampler for use in generic HTTP tests\n\n\ngit-svn-id: https://svn.apache.org/repos/asf/jakarta/jmeter/trunk@324763 13f79535-47bb-0310-9956-ffa450edef68\n\nFormer-commit-id: 1a2c9a26225308f6f0fa93c4a3551122f1f5b1da"
},
{
"from": "gpt",
"value": "//$Hea... | java | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.