conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "human",
"value": "Add default implementation of HyperSlice interface.\n"
},
{
"from": "gpt",
"value": "package net.imagej.ops.views;\n\nimport net.imagej.ops.view.ViewOps;\nimport net.imagej.ops.view.ViewOps.HyperSlice;\nimport net.imglib2.RandomAccessible;\nimport net.imglib2.view.Mi... | java | chosen |
[
{
"from": "human",
"value": "Add Anonymous LoginStrategy from trunk\n"
},
{
"from": "gpt",
"value": "package org.dcache.auth;\n\nimport java.security.Principal;\nimport java.util.Collections;\nimport java.util.Set;\nimport java.util.regex.Matcher;\nimport java.util.regex.Pattern;\n\nimport javax... | java | chosen |
[
{
"from": "human",
"value": "Add a UI for timeline tweets\n"
},
{
"from": "gpt",
"value": "/*\n * The MIT License\n *\n * Copyright 2015 Ryan Gilera.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the ... | java | chosen |
[
{
"from": "human",
"value": "Add some tests to problem 61\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (C) 2014 Pedro Vicente Gómez Sánchez.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You... | java | chosen |
[
{
"from": "human",
"value": "Create skeleton for problem 238\n"
},
{
"from": "gpt",
"value": "package leetcode;\n\n/**\n * https://leetcode.com/problems/product-of-array-except-self/\n */\npublic class Problem238 {\n public int[] productExceptSelf(int[] nums) {\n return null;\n }\n \... | java | chosen |
[
{
"from": "human",
"value": "Add items which classfile has.\n"
},
{
"from": "gpt",
"value": "package sophomore;\n\nimport sophomore.classfile.Attributes;\nimport sophomore.classfile.Fields;\nimport sophomore.classfile.Methods;\nimport sophomore.classfile.ConstantPool;\n\npublic class ClassFile {... | java | chosen |
[
{
"from": "human",
"value": "Add a {de}serialization codec for byte[].\n\nAdd a codes for serialization/deserialization of byte[] objects.\n\nPiperOrigin-RevId: 309953338\n"
},
{
"from": "gpt",
"value": "// Copyright 2020 The Bazel Authors. All rights reserved.\n//\n// Licensed under the Apache ... | java | chosen |
[
{
"from": "human",
"value": "[Genomics]: Add a class which can be used to move files in parallel.\n"
},
{
"from": "gpt",
"value": "package com.github.sparkcaller;\n\nimport org.apache.spark.api.java.function.Function;\nimport java.io.File;\n\npublic class FileMover implements Function<File, File... | java | chosen |
[
{
"from": "human",
"value": "Add implementation for the help command."
},
{
"from": "gpt",
"value": "package org.yi.happy.archive;\n\nimport java.io.PrintStream;\nimport java.util.Set;\n\nimport org.yi.happy.archive.commandLine.Env;\n\npublic class HelpMain implements MainCommand {\n private ... | java | chosen |
[
{
"from": "human",
"value": "Add config file parser class\n"
},
{
"from": "gpt",
"value": "package fi.bittiraha.util;\n\nimport java.util.*;\n\n/**\n * Property file reader which contains handy content validation and\n * shortcuts for common data types. Best practise is to load\n * configuration... | java | chosen |
[
{
"from": "human",
"value": "Solve homework3-problem2: Generate 3-Letter Words\n"
},
{
"from": "gpt",
"value": "import java.util.Scanner;\n\nclass GenerateThreeLetterWords {\n \n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String base =... | java | chosen |
[
{
"from": "human",
"value": "Add test for class Movie\n"
},
{
"from": "gpt",
"value": "package com.twu.biblioteca;\n\nimport org.junit.Test;\n\nimport static org.junit.Assert.assertEquals;\n\npublic class MovieTest {\n\n @Test\n public void test_the_rating_should_between_1to10_or_unrated()... | java | chosen |
[
{
"from": "human",
"value": "Add preliminary test for DataDeichmanAdapterDefault\n"
},
{
"from": "gpt",
"value": "package no.deichman.ls.consumer;\n\nimport static org.junit.Assert.*;\n\nimport java.io.FileNotFoundException;\n\nimport no.deichman.ls.adapter.DataDeichmanAdapter;\nimport no.deichm... | java | chosen |
[
{
"from": "human",
"value": "Add class for event result.\n"
},
{
"from": "gpt",
"value": "package com.google.sps.data;\n\nimport java.util.Comparator;\nimport java.lang.Float;\n\n/* Class that represent an event result in search. */\npublic class EventResult {\n private String eventId;\n priva... | java | chosen |
[
{
"from": "human",
"value": "Create skeletons for simple getters in course controller\n"
},
{
"from": "gpt",
"value": "package se.kits.gakusei.controller;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.http.MediaType;\nimport org.springframework.htt... | java | chosen |
[
{
"from": "human",
"value": "Fix command based on feedback\n"
},
{
"from": "gpt",
"value": "package seedu.tasklist.model.task;\n\nimport java.time.LocalDate;\nimport java.time.format.DateTimeFormatter;\nimport java.time.temporal.ChronoUnit;\n\nimport seedu.tasklist.commons.exceptions.IllegalValu... | java | chosen |
[
{
"from": "human",
"value": "Fix re-creation of the overview.\n"
},
{
"from": "gpt",
"value": "package experimentalcode.remigius.gui.runnables;\n\nimport org.w3c.dom.Element;\n\npublic class NodeAdder implements Runnable {\n\n private Element parent;\n private Element child;\n \n public Node... | java | chosen |
[
{
"from": "human",
"value": "Test for downloading all features\n"
},
{
"from": "gpt",
"value": "package no.vegvesen.nvdbapi.client.clients;\n\nimport no.vegvesen.nvdbapi.client.util.Stopwatch;\nimport org.junit.jupiter.api.Disabled;\nimport org.junit.jupiter.api.Test;\n\npublic class RoadobjectC... | java | chosen |
[
{
"from": "human",
"value": "Add JBoss transaction manager factory\n\n\ngit-svn-id: aa171c635fe092da43bc3212e891e07172936fe5@471928 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "gpt",
"value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor lice... | java | chosen |
[
{
"from": "human",
"value": "Fix build by uploading missing thrift-gen file\n"
},
{
"from": "gpt",
"value": "/**\n * Autogenerated by Thrift Compiler (0.9.3)\n *\n * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING\n * @generated\n */\npackage alluxio.thrift;\n\n\nimport java.ut... | java | chosen |
[
{
"from": "human",
"value": "Add java solution for 54. Spiral Matrix\n\n54. Spiral Matrix: https://leetcode.com/problems/spiral-matrix/"
},
{
"from": "gpt",
"value": "package leetcode.spiral_matrix;\n\nimport java.util.ArrayList;\n\npublic class Solution {\n public ArrayList<Integer> spiralOr... | java | chosen |
[
{
"from": "human",
"value": "Solve No.11654 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 obtai... | java | chosen |
[
{
"from": "human",
"value": "Move the common graph construct functionality to Util\n"
},
{
"from": "gpt",
"value": "package datastructures.util;\n\nimport datastructures.graph.AbstractGraph;\nimport datastructures.graph.Vertex;\n\npublic class GraphUtil {\n\n @SuppressWarnings({ \"unchecked\", ... | java | chosen |
[
{
"from": "human",
"value": "Create an event class to auto parse JSon files\n"
},
{
"from": "gpt",
"value": "package net.kencochrane.raven.sentrystub.event;\n\nimport com.fasterxml.jackson.annotation.JsonProperty;\n\nimport java.util.Date;\nimport java.util.Map;\n\npublic class Event {\n @Jso... | java | chosen |
[
{
"from": "human",
"value": "Add Inventory interface - in progress\n"
},
{
"from": "gpt",
"value": "/**\n * Steven Ward\n * VendingMachine.java | Drink Machine Project\n *\n * This file contains the definition of the VendingMachine interface, which is described below.\n *\n * Due Date: December ... | java | chosen |
[
{
"from": "human",
"value": "Add a wrapping providers that overrides an injector of its delegate provider\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2016 Michael Rozumyanskiy\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in ... | java | chosen |
[
{
"from": "human",
"value": "Add a fixture for a network response.\n"
},
{
"from": "gpt",
"value": "package com.novoda.downloadmanager;\n\nimport java.io.ByteArrayInputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\n\nclass NetworkResponseFixtures {\n\n private int code = 2... | java | chosen |
[
{
"from": "human",
"value": "Add class to manage work sets.\n\nSigned-off-by: Etienne M. Gagnon <bf06ec0eb40152cd863534753d026b021022c851@j-meg.com>\n"
},
{
"from": "gpt",
"value": "/* This file is part of SableCC ( http://sablecc.org ).\n * \n * See the NOTICE file distributed with this work fo... | java | chosen |
[
{
"from": "human",
"value": "Add TestCase to decrypt text"
},
{
"from": "gpt",
"value": "package com.sec.ax.restful.crypt.aes;\r\n\r\nimport org.apache.log4j.Level;\r\nimport org.apache.log4j.Logger;\r\n\r\nimport com.sec.ax.restful.crypt.AxCryptException;\r\n\r\nimport junit.framework.TestCase;... | java | chosen |
[
{
"from": "human",
"value": "feature: Add the number of bitmaps as a new feature\n"
},
{
"from": "gpt",
"value": "package paprika.metrics;\n\nimport paprika.entities.PaprikaApp;\n\n/**\n * Created by antonin on 16-04-29.\n */\npublic class NumberOfBitmaps extends UnaryMetric<Integer> {\n\n pr... | java | chosen |
[
{
"from": "human",
"value": "Add utility for sub-slices of DocIdSets\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2012 Greplin, Inc. All Rights Reserved.\n */\n\npackage com.greplin.lucene.query;\n\nimport org.apache.lucene.search.DocIdSet;\nimport org.apache.lucene.search.DocIdSetIterator;... | java | chosen |
[
{
"from": "human",
"value": "Add missing file from previous commit\n\ngit-svn-id: fad5a61f0599d0fa6686745ed37d3649e5fd7db1@1197494 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "gpt",
"value": "/**\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor lice... | java | chosen |
[
{
"from": "human",
"value": "Add STest for API calls\n"
},
{
"from": "gpt",
"value": "package pinterest;\n\nimport com.google.gson.Gson;\nimport fields.PinFields;\nimport org.apache.commons.io.IOUtils;\nimport org.junit.Test;\nimport responses.Pin;\nimport responses.Pins;\n\nimport java.io.IOExc... | java | chosen |
[
{
"from": "human",
"value": "Create a skeleton for problem 304\n"
},
{
"from": "gpt",
"value": "package leetcode;\n\n/**\n * https://leetcode.com/problems/range-sum-query-2d-immutable/\n */\npublic class Problem304 {\n public static class NumMatrix {\n\n public NumMatrix(int[][] matrix... | java | chosen |
[
{
"from": "human",
"value": "Add review program for seniors for first day\n"
},
{
"from": "gpt",
"value": "import java.util.Scanner;\n\npublic class Review {\n public static void main(String[] args) {\n // Printing to STDOUT\n System.out.println(\"Hello, world!\");\n\n //... | java | chosen |
[
{
"from": "human",
"value": "Add test to fail on CF-ish GOES16 Product\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (c) 2020 University Corporation for Atmospheric Research/Unidata\n * See LICENSE for license information.\n */\npackage ucar.nc2.dataset;\n\nimport static com.google.common.tr... | java | chosen |
[
{
"from": "human",
"value": "Add solution for 066 plus one"
},
{
"from": "gpt",
"value": "//66. Plus One\n/**\n * Given a non-negative integer represented as a non-empty array of digits, plus one to the integer.\n * \n * You may assume the integer do not contain any leading zero, except the numb... | java | chosen |
[
{
"from": "human",
"value": "Test for COMETD-226 (Client's cometd.disconnect() call does not trigger RemoveListener's removed() method immediately).\n"
},
{
"from": "gpt",
"value": "package org.cometd.server;\n\nimport java.util.concurrent.CountDownLatch;\nimport java.util.concurrent.TimeUnit;\n... | java | chosen |
[
{
"from": "human",
"value": "Add quick sort test for Java implementation\n"
},
{
"from": "gpt",
"value": "import org.junit.Test;\nimport java.util.Arrays;\n\npublic class QuickSortTest {\n\n @Test\n public void test() {\n int list[] = { -5, 8, 0, 12, 55, 1, -66, 35, 3 };\n in... | java | chosen |
[
{
"from": "human",
"value": "Add the integer array transform"
},
{
"from": "gpt",
"value": "\r\n\r\npackage simple.xml.transform;\r\n\r\nimport simple.xml.transform.Transform;\r\n\r\npublic class IntegerArrayTransform implements Transform<Integer[]> {\r\n\r\n private final StringArrayTransform... | java | chosen |
[
{
"from": "human",
"value": "Use image loading strategy for Header\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2015 Hippo Seven\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 for icons in table headers."
},
{
"from": "gpt",
"value": "package com.seaglasslookandfeel.demo;\n\nimport java.awt.BorderLayout;\nimport java.awt.Component;\n\nimport javax.swing.Icon;\nimport javax.swing.ImageIcon;\nimport javax.swing.JComponent;\nimport j... | java | chosen |
[
{
"from": "human",
"value": "Add Util class for commands supporting multiple indexes\n"
},
{
"from": "gpt",
"value": "package seedu.ezdo.commons.util;\n\nimport java.util.ArrayList;\n\nimport seedu.ezdo.commons.core.UnmodifiableObservableList;\nimport seedu.ezdo.model.todo.ReadOnlyTask;\n//@@aut... | java | chosen |
[
{
"from": "human",
"value": "Add tests for method security for UisUserService\n\n"
},
{
"from": "gpt",
"value": "package at.ac.tuwien.inso.method_security_tests;\n\n\nimport org.junit.Test;\nimport org.junit.runner.RunWith;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport ... | java | chosen |
[
{
"from": "human",
"value": "Add test case for possible bug with multiple pending annotations.\n"
},
{
"from": "gpt",
"value": "package net.ttsui.junit.rules.pending;\n\nimport org.junit.Rule;\nimport org.junit.Test;\n\nimport junit.framework.Assert;\n\npublic class BugWithMultiplePendingAnnotat... | java | chosen |
[
{
"from": "human",
"value": "Rule: Add test for bug in handling of prop_as_expr_flag\n\nDoesn't read the PV when expression contains \"pv0\""
},
{
"from": "gpt",
"value": "/*******************************************************************************\n * Copyright (c) 2015-2016 Oak Ridge Natio... | java | chosen |
[
{
"from": "human",
"value": "Add stub of \"more clever\" bot\n\nCode provides stub of stateful bot. It iterates over set of commands.\n"
},
{
"from": "gpt",
"value": "package gsg.client;\n\nimport gsg.infrastructure.MessageRegistrator;\nimport gsg.threads.IJob;\nimport gsg.threads.JobRunnerConfi... | java | chosen |
[
{
"from": "human",
"value": "Add some tests for RxFireDroidRemoteConfig\n"
},
{
"from": "gpt",
"value": "package de.goddchen.android.rxfiredroid.tests;\n\nimport android.support.test.runner.AndroidJUnit4;\n\nimport org.junit.Test;\nimport org.junit.runner.RunWith;\n\nimport de.goddchen.android.r... | java | chosen |
[
{
"from": "human",
"value": "Add test for maximum matching cluster accuracy\n"
},
{
"from": "gpt",
"value": "/*\n * This file is part of ELKI:\n * Environment for Developing KDD-Applications Supported by Index-Structures\n *\n * Copyright (C) 2019\n * ELKI Development Team\n *\n * This program i... | java | chosen |
[
{
"from": "human",
"value": "Add tests for link builder\n"
},
{
"from": "gpt",
"value": "package ca.uhn.fhir.mdm.api.paging;\n\nimport org.junit.jupiter.api.Test;\n\nimport static org.hamcrest.CoreMatchers.is;\nimport static org.hamcrest.MatcherAssert.assertThat;\nimport static org.hamcrest.Matc... | java | chosen |
[
{
"from": "system",
"value": "Fix Overscroll when we're using Mode.BOTH\n"
},
{
"from": "human",
"value": "package com.handmark.pulltorefresh.library;\n\nimport com.handmark.pulltorefresh.library.PullToRefreshBase.Mode;\n\nfinal class OverscrollHelper {\n\n\tstatic void overScrollBy(PullToRefres... | java | chosen |
[
{
"from": "system",
"value": "Fix quoting for MANIFEST.MF Import-Package\n"
},
{
"from": "human",
"value": "import java.io.FileInputStream;\nimport java.io.FileOutputStream;\nimport java.io.InputStream;\nimport java.io.OutputStream;\nimport java.util.jar.Attributes;\nimport java.util.jar.Manifes... | java | chosen |
[
{
"from": "human",
"value": "Create an integration test for Equipment Operational Status Mapper\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 proje... | java | chosen |
[
{
"from": "human",
"value": "Add class wrapping a SecureRandom instance which is recreated after a certain number of operations are performed.\n"
},
{
"from": "gpt",
"value": "package com.warrenstrange.googleauth;\n\nimport java.security.NoSuchAlgorithmException;\nimport java.security.NoSuchProv... | java | chosen |
[
{
"from": "human",
"value": "Add default implementation of Collapse to CompositeView.\n"
},
{
"from": "gpt",
"value": "package net.imagej.ops.views;\n\nimport net.imagej.ops.view.ViewOps;\nimport net.imagej.ops.view.ViewOps.Collapse;\nimport net.imglib2.RandomAccessible;\nimport net.imglib2.view... | java | chosen |
[
{
"from": "human",
"value": "Add 1 test for other class with view injection\n"
},
{
"from": "gpt",
"value": "package com.github.stephanenicolas.injectview;\n\nimport android.app.Activity;\nimport android.content.Context;\nimport android.os.Bundle;\nimport android.view.View;\nimport android.widge... | java | chosen |
[
{
"from": "human",
"value": "Add a cloud task to upload an archive to gcs.\n"
},
{
"from": "gpt",
"value": "package com.google.sps.tasks;\n\nimport com.google.appengine.tools.cloudstorage.GcsFileOptions;\nimport com.google.appengine.tools.cloudstorage.GcsFilename;\nimport com.google.appengine.to... | java | chosen |
[
{
"from": "human",
"value": "Add failing listener factory for testing purposes"
},
{
"from": "gpt",
"value": "package us.kbase.workspace.listener;\n\nimport java.util.Map;\n\n/** Doesn't have a zero argument constructor, and so fails to start.\n * @author gaprice@lbl.gov\n *\n */\npublic class B... | java | chosen |
[
{
"from": "human",
"value": "Add initial code for r.js via Rhino, include comments for next steps\n"
},
{
"from": "gpt",
"value": "package com.semperos.screwdriver.js;\n\nimport java.util.HashMap;\n\n/**\n * @todo Steps needed:\n * * Create generic {@link org.mozilla.javascript.ScriptableObjec... | java | chosen |
[
{
"from": "human",
"value": "Test for report format v2\n"
},
{
"from": "gpt",
"value": "package de.otto.jlineup.report;\n\nimport de.otto.jlineup.file.FileService;\nimport org.junit.Before;\nimport org.junit.Test;\nimport org.mockito.Mock;\nimport org.mockito.Mockito;\n\nimport static java.util.... | java | chosen |
[
{
"from": "human",
"value": "Add class for tracking library version\n"
},
{
"from": "gpt",
"value": "/*\n * This file is part of whereisthat-android\n *\n * Unless otherwise stated in a separate LICENSE file for this project\n * or agreed via contract, all rights reserved by the author.\n */\n\n... | java | chosen |
[
{
"from": "human",
"value": "[ONOS-3231] Add the junit test code of PhysicalNetwork\n\nChange-Id: I14a88859593739cbe7cb7ed480cdcad63437d915\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2015 Open Networking Laboratory\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\... | java | chosen |
[
{
"from": "human",
"value": "Add a main class that runs a test given from the console on all algos.\n"
},
{
"from": "gpt",
"value": "package ru.ifmo.nds;\n\nimport java.util.Arrays;\nimport java.util.Locale;\nimport java.util.Scanner;\n\npublic class RunGivenTest {\n public static void main(S... | java | chosen |
[
{
"from": "human",
"value": "Create file for the task №10. Done the task №10 (a,b)\n"
},
{
"from": "gpt",
"value": "package ru.stqa.selenium.example;\n\nimport org.junit.Test;\nimport org.openqa.selenium.By;\nimport org.openqa.selenium.WebElement;\nimport org.openqa.selenium.support.pagefactory.... | java | chosen |
[
{
"from": "human",
"value": "Add component for automatically synchronising an Animator component between multiplayer clients\n"
},
{
"from": "gpt",
"value": "package com.ezardlabs.dethsquare.multiplayer;\n\nimport java.nio.ByteBuffer;\n\npublic class NetworkAnimator extends NetworkBehaviour {\n\... | java | chosen |
[
{
"from": "human",
"value": "Add a test to use to check for performance changes during refactoring of data formatting.\n\ngit-svn-id: 79cef5a5a257cc9dbe40a45ac190115b4780e2d0@1834044 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "gpt",
"value": "/*\n * Licensed to the Apache Software Fou... | java | chosen |
[
{
"from": "human",
"value": "Add a constants class for block actions (atm only two: destory and build)\n"
},
{
"from": "gpt",
"value": "package org.hollowcraft.model;\n/*\n * HollowCraft License\n * Copyright (c) 2010 Caleb Champlin.\n * All rights reserved\n * This license must be include in... | java | chosen |
[
{
"from": "human",
"value": "Add private access for BlockMaster\n"
},
{
"from": "gpt",
"value": "/*\n * Licensed to the University of California, Berkeley under one or more contributor license\n * agreements. See the NOTICE file distributed with this work for additional information regarding\n *... | java | chosen |
[
{
"from": "human",
"value": "Add acceptance test to retrieve group via REST\n\nChange-Id: Ib48016b695bd7707821fc4e1da2e5a1a97923f06\nSigned-off-by: Edwin Kempin <b444e279ad95fdef4fbdd82c813b624595df204a@sap.com>\n"
},
{
"from": "gpt",
"value": "// Copyright (C) 2013 The Android Open Source Proje... | java | chosen |
[
{
"from": "human",
"value": "Add a database manager to manage database instances.\n"
},
{
"from": "gpt",
"value": "package de.philipphager.disclosure.database;\n\nimport com.squareup.sqlbrite.BriteDatabase;\nimport com.squareup.sqlbrite.SqlBrite;\nimport javax.inject.Inject;\nimport rx.scheduler... | java | chosen |
[
{
"from": "human",
"value": "Add one back reference test\n\nMore to come later.\n"
},
{
"from": "gpt",
"value": "//\n// BackReferenceTest.java\n//\n\n/*\nOME Bio-Formats package for reading and converting biological file formats.\nCopyright (C) 2005-@year@ UW-Madison LOCI and Glencoe Software, I... | java | chosen |
[
{
"from": "human",
"value": "Add JUnit test for Request class in rest modeling module.\n"
},
{
"from": "gpt",
"value": "package org.slc.sli.modeling.rest;\n\nimport static org.junit.Assert.*;\n\nimport java.util.ArrayList;\n\nimport org.junit.Before;\nimport org.junit.Test;\n\n/**\n * JUnit test... | java | chosen |
[
{
"from": "human",
"value": "Use simple test case for FieldSampleComparator.\n\ngit-svn-id: 5ccfe34f605a6c2f9041ff2965ab60012c62539a@1719686 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "gpt",
"value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contrib... | java | chosen |
[
{
"from": "human",
"value": "Add skeleton class for exporting Boa specs\n"
},
{
"from": "gpt",
"value": "package edu.iastate.cs.design.spec.export;\n\nimport boa.types.Spec;\n\nimport java.util.List;\n\npublic class JmlToBoa {\n\n public static List<Spec.Specification> JmlToBoaProtobuf(String... | java | chosen |
[
{
"from": "human",
"value": "Add code for Twist In The Tale 4.3\n"
},
{
"from": "gpt",
"value": "/**\n * Twist in the Tale 4.3 from the OCA Java SE 7 book by Mala Gupta (Manning Publications)\n * Created by Josef on 1/3/14.\n */\npublic class TwistInTheTale4_3 {\n public static void main(Stri... | java | chosen |
[
{
"from": "human",
"value": "Create dedicated interface for Migratory spans\n\n(it's got an imaginative name)\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2016 Philip Cohn-Cort\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": "Set of values for Arithlang\n"
},
{
"from": "gpt",
"value": "package arithlang;\n\npublic interface Value {\n\tpublic String toString();\n\tstatic class NumVal implements Value {\n\t\tprivate double _val;\n\t public NumVal(double v) { _val = v; } \n\t public do... | java | chosen |
[
{
"from": "human",
"value": "Add test sample for question 182872 on stackoverflow.com\n\ngit-svn-id: 326906f25eac0196cf968068262a06313b1d5d7a@21 9a24f7ba-d458-11dd-86d7-074df07e0730\n"
},
{
"from": "gpt",
"value": "package com.googlecode.gentyref;\n\nimport java.lang.reflect.Method;\nimport java... | java | chosen |
[
{
"from": "human",
"value": "Add Data Servlet, handles putting video data into DataStore\n"
},
{
"from": "gpt",
"value": "\nimport com.google.appengine.api.datastore.DatastoreService;\nimport com.google.appengine.api.datastore.DatastoreServiceFactory;\nimport com.google.appengine.api.datastore.E... | java | chosen |
[
{
"from": "human",
"value": "Add a test for `MuteLogging`.\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 followin... | java | chosen |
[
{
"from": "human",
"value": "Add Digester-Factory for the JmsRealmFactory object to retrieve it from spring beans factory instead of old helper-bean-object.\n"
},
{
"from": "gpt",
"value": "/*\n * $Log: JmsRealmsFactory.java,v $\n * Revision 1.1 2007-10-23 09:18:28 europe\\M00035F\n * Add Dige... | java | chosen |
[
{
"from": "human",
"value": "Add JPA Converter so Instance types can be persisted cleanly"
},
{
"from": "gpt",
"value": "/******************************************************************************\n * *\n * ... | java | chosen |
[
{
"from": "human",
"value": "[misc] Add class missing in previous commit\n"
},
{
"from": "gpt",
"value": "/*\n * See the NOTICE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modify it\n ... | java | chosen |
[
{
"from": "human",
"value": "Implement an Input Reader which takes input from user\n"
},
{
"from": "gpt",
"value": "package com.twu.biblioteca;\n\nimport java.util.Scanner;\n\npublic class InputReader {\n\n String readFromConsole() {\n Scanner scanner = new Scanner(System.in);\n ... | java | chosen |
[
{
"from": "human",
"value": "Add tests for the ListenerCollection\n"
},
{
"from": "gpt",
"value": "package ca.antonious.viewcelladapter;\n\nimport org.junit.Before;\nimport org.junit.Test;\n\nimport static org.junit.Assert.*;\n\n/**\n * Created by George on 2016-12-18.\n */\n\npublic class Liste... | java | chosen |
[
{
"from": "human",
"value": "Move the unit tests of the profiler package to logging\n"
},
{
"from": "gpt",
"value": "package org.sagebionetworks.profiler;\r\n\r\nimport static org.junit.Assert.assertEquals;\r\nimport static org.junit.Assert.assertNotNull;\r\n\r\nimport java.io.IOException;\r\n\r... | java | chosen |
[
{
"from": "human",
"value": "Add Optional email address validator.\n\nChange-Id: Ifc8ca757700db2dd19db89715e95f6c1df15e999\nReviewed-on: http://gerrit.dmdirc.com/3613\nAutomatic-Compile: DMDirc Build Manager\nReviewed-by: Chris Smith <711c73f64afdce07b7e38039a96d2224209e9a6c@dmdirc.com>\n"
},
{
"fro... | java | chosen |
[
{
"from": "human",
"value": "Add retrieve info for all calls example.\n"
},
{
"from": "gpt",
"value": "package com.nexmo.quickstart.voice;\n\nimport com.fasterxml.jackson.databind.ObjectMapper;\nimport com.nexmo.client.NexmoClient;\nimport com.nexmo.client.auth.JWTAuthMethod;\nimport com.nexmo.c... | java | chosen |
[
{
"from": "human",
"value": "Make the warnings guard that allow suppressing specific groups by path public\n\n-------------\nCreated by MOE: https://github.com/google/moe\nMOE_MIGRATED_REVID=132504067\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2016 The Closure Compiler Authors.\n *\n * Li... | java | chosen |
[
{
"from": "human",
"value": "Add interface to get the names of all possible permissions.\n"
},
{
"from": "gpt",
"value": "package de.cinovo.cloudconductor.api.interfaces;\n\nimport java.util.Set;\n\nimport javax.annotation.security.RolesAllowed;\nimport javax.ws.rs.Consumes;\nimport javax.ws.rs.... | java | chosen |
[
{
"from": "human",
"value": "Allow the execution of arbitrary code in runtime.\n\n\nFormer-commit-id: e6094929d2c3b8f96f1f30667bc6904dd0856259"
},
{
"from": "gpt",
"value": "package leveledit;\n\nimport java.util.ArrayList;\n\npublic class ArbitraryCode {\t\n\t/**\n\t * You can write your own co... | java | chosen |
[
{
"from": "system",
"value": "Make java example fail. More fun.\n"
},
{
"from": "human",
"value": "package cucumber.demo;\n\npublic class Hello {\n public String greet(String who, String from) {\n return \"Hi, \" + who + \". I'm \" + from;\n }\n \n public boolean isFriend(Stri... | java | chosen |
[
{
"from": "human",
"value": "Add custom jul.Level for unit tests.\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 additional information regarding... | java | chosen |
[
{
"from": "human",
"value": "Add @Named utility class that wraps AnnotationBuilder.\n"
},
{
"from": "gpt",
"value": "/*\n * Grapht, an open source dependency injector.\n * Copyright 2010-2012 Regents of the University of Minnesota and contributors\n *\n * This program is free software; you can r... | java | chosen |
[
{
"from": "human",
"value": "Add test coverage for the ServletRequestListener\n"
},
{
"from": "gpt",
"value": "package net.kencochrane.raven.servlet;\n\nimport mockit.Injectable;\nimport mockit.NonStrictExpectations;\nimport mockit.Tested;\nimport org.testng.annotations.AfterMethod;\nimport org.... | java | chosen |
[
{
"from": "human",
"value": "Add some tests for compound filter mechanics\n"
},
{
"from": "gpt",
"value": "package io.github.xxyy.quietcord.filter;\n\nimport org.junit.Test;\n\nimport java.util.logging.Filter;\nimport java.util.logging.Level;\nimport java.util.logging.LogRecord;\nimport java.uti... | java | chosen |
[
{
"from": "human",
"value": "Create interface to resource types.\n"
},
{
"from": "gpt",
"value": "package com.github.aureliano.achmed.resources;\n\nimport com.github.aureliano.achmed.resources.properties.IResourceProperties;\n\npublic interface IResource {\n\n\tpublic abstract void make(IResourc... | java | chosen |
[
{
"from": "human",
"value": "Add create friends and groups\n"
},
{
"from": "gpt",
"value": "package com.maraudersapp.android;\n\nimport android.app.AlertDialog;\nimport android.content.Context;\nimport android.content.DialogInterface;\nimport android.text.InputType;\nimport android.util.Log;\nim... | java | chosen |
[
{
"from": "human",
"value": "Add test for exception escaping\n"
},
{
"from": "gpt",
"value": "package nl.hsac.fitnesse.fixture.slim;\n\nimport fitnesse.testsystems.slim.results.SlimExceptionResult;\nimport org.junit.Test;\n\nimport static org.junit.Assert.*;\n\npublic class SlimFixtureExceptionT... | java | chosen |
[
{
"from": "human",
"value": "Increase of-renderer coverage on QoSExecutor.\n\n QoSExecutor.java\n\nChange-Id: Ia047885e122d70dc95e5a76813b6d510d6d13f5b\nSigned-off-by: Victor Mota <a399842758ce81a1b2704ada69a36369cee4aa4d@atlantico.com.br>\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (c)... | java | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.