conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "human",
"value": "Change search table: remove field insert_complete, add field status_id\nand other fields"
},
{
"from": "gpt",
"value": "package org.yeastrc.xlink.enum_classes;\n\n\n/**\n * Enum for is this Search record \n * DB field search.status_id\n * \n * Keep these values in sy... | java | chosen |
[
{
"from": "human",
"value": "Add new test for testing Enum serialization / deserialization\n\n\ngit-svn-id: 1006245cb1bdea2fd4c9095e50bc2ef3d167b18c@242491 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "gpt",
"value": "/*\n * Tapestry Web Application Framework\n * Copyright (c) 2002 by Ho... | java | chosen |
[
{
"from": "human",
"value": "Add unit tests for the SampleConfigurationUtils class.\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2016 Datalogics Inc.\n */\n\npackage com.datalogics.pdf.hsm.samples.util;\n\nimport static org.junit.Assert.assertEquals;\n\nimport org.apache.commons.configurati... | java | chosen |
[
{
"from": "human",
"value": "TEST add test for NumberOf1InBinary\n"
},
{
"from": "gpt",
"value": "package com.matao.Q10;\n\nimport org.junit.jupiter.api.Assertions;\nimport org.junit.jupiter.api.BeforeEach;\nimport org.junit.jupiter.api.Test;\n\npublic class NumberOf1InBinaryTest {\n\n privat... | java | chosen |
[
{
"from": "human",
"value": "Add mapper test for composite keys.\n"
},
{
"from": "gpt",
"value": "package com.datastax.driver.mapping;\n\nimport java.util.Arrays;\nimport java.util.Collection;\n\nimport com.datastax.driver.mapping.annotations.*;\nimport org.testng.annotations.Test;\n\nimport com... | java | chosen |
[
{
"from": "human",
"value": "Add two tests for current sensor reading\n"
},
{
"from": "gpt",
"value": "package com.easternedgerobotics.rov.io;\n\nimport org.junit.Assert;\nimport org.junit.Test;\nimport org.junit.runner.RunWith;\nimport org.junit.runners.Parameterized;\nimport org.junit.runners.... | java | chosen |
[
{
"from": "human",
"value": "Add item adapter, for now only using sample picture.\n"
},
{
"from": "gpt",
"value": "\npackage com.uwetrottmann.shopr.adapters;\n\nimport android.content.Context;\nimport android.view.LayoutInflater;\nimport android.view.View;\nimport android.view.View.OnClickListen... | java | chosen |
[
{
"from": "human",
"value": "Add common pipeline options for portable runners\n"
},
{
"from": "gpt",
"value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional informat... | java | chosen |
[
{
"from": "system",
"value": "[JENKINS-30574] Fix form binding and change default to anonymous\n"
},
{
"from": "human",
"value": "package org.jenkinsci.plugins.authorizeproject;\n\nimport hudson.Extension;\nimport hudson.model.Job;\nimport hudson.model.Queue;\nimport jenkins.security.QueueItemAu... | java | chosen |
[
{
"from": "human",
"value": "Test for DNA->RNA and RNA->protein translation tables.\n\n\ngit-svn-id: ed25c26de1c5325e8eb0deed0b990ab8af8a4def@1589 7c6358e6-4a41-0410-a743-a5b2a554c398\n"
},
{
"from": "gpt",
"value": "/*\n * BioJava development code\n *\n * This code may be fre... | java | chosen |
[
{
"from": "human",
"value": "Add a factory class to allow solr to instantiate MB tokenizer\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 additi... | java | chosen |
[
{
"from": "human",
"value": "Create Dummy UnderFS: This is used when we use Tachyon as pure cache without any backing store\n"
},
{
"from": "gpt",
"value": "/*\n * Licensed to the University of California, Berkeley under one or more contributor license\n * agreements. See the NOTICE file distrib... | java | chosen |
[
{
"from": "human",
"value": "Add test case for different executors used by the evolution engine.\n"
},
{
"from": "gpt",
"value": "/*\n * Java Genetic Algorithm Library (@__identifier__@).\n * Copyright (c) @__year__@ Franz Wilhelmstötter\n *\n * Licensed under the Apache License, Version 2.0 (th... | java | chosen |
[
{
"from": "human",
"value": "Add test of Account model\n"
},
{
"from": "gpt",
"value": "package com.growthbeat.model;\n\nimport static org.junit.Assert.assertEquals;\nimport static org.junit.Assert.assertNotNull;\nimport static org.junit.Assert.fail;\n\nimport org.junit.Test;\n\nimport com.growt... | java | chosen |
[
{
"from": "human",
"value": "Create a skeleton for problem 297\n"
},
{
"from": "gpt",
"value": "package leetcode;\n\n/**\n * https://leetcode.com/problems/serialize-and-deserialize-binary-tree/\n */\npublic class Problem297 {\n public static class TreeNode {\n int val;\n TreeNod... | java | chosen |
[
{
"from": "human",
"value": "Add problem 10 to unit 1\n"
},
{
"from": "gpt",
"value": "import java.util.Scanner;\n\n/**\n * This program computes and prints the nth Fibonacci term\n **/\npublic class Fibonacci {\n public static void main(String[] args) {\n int a = 0, b = 1, c = 0, coun... | java | chosen |
[
{
"from": "human",
"value": "Add integration between CompletableFuture and Ratpack's execution model\n"
},
{
"from": "gpt",
"value": "package gql.ratpack.exec;\n\nimport java.util.concurrent.CompletableFuture;\nimport java.util.function.Supplier;\n\nimport ratpack.exec.Execution;\n\n/**\n * Crea... | java | chosen |
[
{
"from": "human",
"value": "Add test to demonstrate concurrency problem\n"
},
{
"from": "gpt",
"value": "package com.zaxxer.hikari.pool;\n\nimport com.zaxxer.hikari.HikariConfig;\nimport org.junit.Test;\n\nimport com.zaxxer.hikari.HikariDataSource;\nimport java.sql.Connection;\nimport java.sql.... | java | chosen |
[
{
"from": "human",
"value": "Fix Bytes.fromFile to read from JARs.\n"
},
{
"from": "gpt",
"value": "package net.openhft.chronicle.bytes;\n\nimport org.junit.Test;\n\nimport java.io.IOException;\n\nimport static org.junit.Assert.assertTrue;\n\n/**\n * Created by peter on 17/05/2017.\n */\npublic ... | java | chosen |
[
{
"from": "human",
"value": "Add util to use custom font\n"
},
{
"from": "gpt",
"value": "package com.sinyuk.yuk.utils;\n\nimport android.content.Context;\nimport android.graphics.Typeface;\n\nimport java.util.HashMap;\nimport java.util.Map;\n\n/**\n * Adapted from github.com/romannurik/muzei/\n... | java | chosen |
[
{
"from": "human",
"value": "Move complicated parsing of dataType and available JNI libraries into a factory class\n\ngit-svn-id: 67bc77c75b8364e4e9cdff0eb6560f5818674cd8@1213 ca793f91-a31e-0410-b540-2769d408b6a1\n"
},
{
"from": "gpt",
"value": "/**\n * \n */\npackage dr.evomodel.newtreelikeliho... | java | chosen |
[
{
"from": "human",
"value": "Add interface for WarehousePoland Data Access Object"
},
{
"from": "gpt",
"value": "/**\n * Project Distributed Transactions.\n * Copyright Michał Szczygieł, 2013.\n * Created at Jan 2, 2014.\n */\npackage com.m4gik.business.dao;\n\nimport com.m4gik.business.model.Wa... | java | chosen |
[
{
"from": "human",
"value": "Add a transaction store test\n"
},
{
"from": "gpt",
"value": "package peergos.server.tests;\n\nimport org.junit.*;\nimport org.junit.runner.*;\nimport org.junit.runners.*;\nimport peergos.server.sql.*;\nimport peergos.server.storage.*;\nimport peergos.server.util.*;\... | java | chosen |
[
{
"from": "human",
"value": "Add sample code for vm/template convertion.\n"
},
{
"from": "gpt",
"value": "package com.vmware.vim25.mo.samples.vm;\n\nimport java.rmi.RemoteException;\n\nimport com.vmware.vim25.mo.HostSystem;\nimport com.vmware.vim25.mo.InventoryNavigator;\nimport com.vmware.vim25... | java | chosen |
[
{
"from": "human",
"value": "Drop total_records and current_keys tables\n\nThese tables were used before we moved to store records as indexes, and\nare therefore no longer required.\n\nThis migration removes them from the schema.\n"
},
{
"from": "gpt",
"value": "package uk.gov.migration;\n\nimpo... | java | chosen |
[
{
"from": "human",
"value": "Add stub test for CSVSummariser"
},
{
"from": "gpt",
"value": "/**\n * \n */\npackage com.github.ansell.csvsum;\n\nimport static org.junit.Assert.*;\n\nimport org.junit.After;\nimport org.junit.Before;\nimport org.junit.Rule;\nimport org.junit.Test;\nimport org.junit... | java | chosen |
[
{
"from": "human",
"value": "Add test for empty Environment default\n"
},
{
"from": "gpt",
"value": "package org.jpos.core;\n\nimport org.junit.jupiter.api.Test;\n\nimport static org.junit.jupiter.api.Assertions.*;\n\npublic class EnvironmentTest {\n @Test\n public void testEmptyDefault() ... | java | chosen |
[
{
"from": "human",
"value": "Add (minimal) testing of JCP\n"
},
{
"from": "gpt",
"value": "/*\n# Licensed Materials - Property of IBM\n# Copyright IBM Corp. 2015 \n */\npackage com.ibm.streamsx.topology.test.jcp;\n\nimport static org.junit.Assert.assertTrue;\nimport static org.junit.Assume.assu... | java | chosen |
[
{
"from": "human",
"value": "Create : 204 Count Primes\n"
},
{
"from": "gpt",
"value": "public class Solution {\n\n public int countPrimes(int n) {\n\n boolean[] notPrime = new boolean[n];\n\n int count = 0;\n\n for (int i = 2; i < n; i++) {\n\n if (notPrime[i]... | java | chosen |
[
{
"from": "human",
"value": "Add a file describing the new keywords of the gs plugin\n"
},
{
"from": "gpt",
"value": "package org.graphstream.gama.extension;\n\nimport msi.gama.common.interfaces.IKeyword;\n\npublic class IKeywordGSAdditional implements IKeyword {\n\t// New commands\n\t\n\tpublic... | java | chosen |
[
{
"from": "human",
"value": "Add java solution for 187. Repeated DNA Sequences\n\n187. Repeated DNA Sequences: https://leetcode.com/problems/repeated-dna-sequences/"
},
{
"from": "gpt",
"value": "package leetcode.repeated_dna_sequences;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\np... | java | chosen |
[
{
"from": "human",
"value": "Check if two nodes are cousins\n"
},
{
"from": "gpt",
"value": "package com.interview.tree;\n\nimport java.util.Deque;\nimport java.util.LinkedList;\n\n/**\n * http://www.geeksforgeeks.org/check-two-nodes-cousins-binary-tree/\n * Assumption that both a and b are uniq... | java | chosen |
[
{
"from": "human",
"value": "Add EntryProcessor for checking set intersections\n\n- To be used in the implementation of ObjectAuthorizationService\n"
},
{
"from": "gpt",
"value": "package com.kryptnostic.rhizome.hazelcast.processors;\n\nimport java.util.Map.Entry;\n\nimport com.google.common.col... | java | chosen |
[
{
"from": "human",
"value": "Add a custom view animator implement\n"
},
{
"from": "gpt",
"value": "package com.sinyuk.yuk.utils;\n\nimport android.content.Context;\nimport android.util.AttributeSet;\nimport android.widget.ViewAnimator;\n\n/**\n * Custom View Animator which is more easier to be u... | java | chosen |
[
{
"from": "human",
"value": "Create cheat sheet for translating to methods\n"
},
{
"from": "gpt",
"value": "/*\n * Flow-Design for Java\n *\n * Copyright (c) 2015 Falko Schumann\n * Released under the terms of the MIT License (MIT).\n */\n\npackage de.muspellheim.flowdesign;\n\n/**\n * Zeigt wie... | java | chosen |
[
{
"from": "human",
"value": "Copy to new class with renamed name"
},
{
"from": "gpt",
"value": "package info.u_team.u_team_core.gui.render;\n\nimport com.mojang.blaze3d.matrix.MatrixStack;\nimport com.mojang.blaze3d.systems.RenderSystem;\n\nimport info.u_team.u_team_core.util.RGBA;\nimport net.m... | java | chosen |
[
{
"from": "human",
"value": "Save charset list awaiting input from Hixie\n\n--HG--\nextra : convert_revision : svn%3Ae7398766-c432-0410-9565-638d39ca0058/trunk%40237\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (c) 2007 Mozilla Foundation\n *\n * Permission is hereby granted, free of charge... | java | chosen |
[
{
"from": "human",
"value": "Divide json metadata to be run on multiple processes."
},
{
"from": "gpt",
"value": "package boa.datagen.forges.github;\n\nimport java.io.File;\n\n\n\nimport boa.datagen.util.FileIO;\n\n\npublic class JsonSplitter {\n\n\tfinal private int Num_Threads;\n\tprivate Stri... | java | chosen |
[
{
"from": "human",
"value": "Add very simple query test harness\n"
},
{
"from": "gpt",
"value": "package io.sigpipe.sing.adapters;\n\nimport io.sigpipe.sing.dataset.feature.Feature;\nimport io.sigpipe.sing.dataset.feature.FeatureType;\nimport io.sigpipe.sing.graph.FeatureHierarchy;\nimport io.si... | java | chosen |
[
{
"from": "human",
"value": "Implement first draft for graph operations\n"
},
{
"from": "gpt",
"value": "package com.reactlibrary;\n\nimport com.facebook.react.bridge.Promise;\nimport com.facebook.react.bridge.ReactApplicationContext;\nimport com.facebook.react.bridge.ReactContextBaseJavaModule;... | java | chosen |
[
{
"from": "human",
"value": "Add pretty print interval util\n"
},
{
"from": "gpt",
"value": "package com.es.lib.common.time;\n\nimport com.es.lib.common.DateUtil;\nimport com.es.lib.common.Pluralizer;\n\nimport java.time.Duration;\nimport java.time.LocalDateTime;\nimport java.time.Period;\nimpor... | java | chosen |
[
{
"from": "human",
"value": "Add core lazy spawn eggs handler"
},
{
"from": "gpt",
"value": "package info.u_team.u_team_core.intern.init;\n\nimport info.u_team.u_team_core.item.USpawnEggItem;\nimport net.minecraft.block.DispenserBlock;\nimport net.minecraft.entity.*;\nimport net.minecraft.entity... | java | chosen |
[
{
"from": "human",
"value": "ADD: Test case for the intermediate model.\n"
},
{
"from": "gpt",
"value": "package eme.model;\n\nimport static org.junit.Assert.assertEquals;\n\nimport org.junit.Before;\nimport org.junit.Test;\n\npublic class IntermediateModelTest {\n\n IntermediateModel model;\... | java | chosen |
[
{
"from": "human",
"value": "SEC-2633: Add MockMvc tests for insecuremvc\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2002-2014 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with t... | java | chosen |
[
{
"from": "human",
"value": "Add prefixless overload of JsonMessageParser.\n"
},
{
"from": "gpt",
"value": "package com.pinterest.secor.parser;\n\nimport com.pinterest.secor.common.SecorConfig;\n\nimport java.util.Date;\n\npublic class NoDateStampJsonMessageParser extends JsonMessageParser {\n ... | java | chosen |
[
{
"from": "human",
"value": "Add a simple tool for manual testing of the Proxy configuration\n"
},
{
"from": "gpt",
"value": "package com.redhat.ceylon.common.test;\n\nimport java.io.File;\nimport java.io.InputStream;\nimport java.net.MalformedURLException;\nimport java.net.URL;\nimport java.net... | java | chosen |
[
{
"from": "human",
"value": "Add in a placeholder Wear action for compatibility\n"
},
{
"from": "gpt",
"value": "package com.elmakers.mine.bukkit.action.builtin;\n\n/**\n * Not deprecating this yet, but prefer to use EquipAction.\n */\npublic class WearAction extends EquipAction {\n}\n"
}
] | java | chosen |
[
{
"from": "human",
"value": "Add statement to problem 32\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 a utility main that can populate a jar cache dir given another directory of jars.\n\nThis can be used to initialze a node's jar cache ahead of time before it connects to the master. This has performance benefits for the master as it won't have to transfer jars over to the no... | java | chosen |
[
{
"from": "human",
"value": "Add utility class to work with loggers. Initial method is to help with loggers naming convention, based on package name of the class.\n"
},
{
"from": "gpt",
"value": "/*\r\n * Copyright 2008 FatWire Corporation. All Rights Reserved.\r\n *\r\n * Licensed under the Apa... | java | chosen |
[
{
"from": "human",
"value": "Add test code for the plugin\n"
},
{
"from": "gpt",
"value": "/**\n * Copyright 2013 Julien Silland\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 cop... | java | chosen |
[
{
"from": "human",
"value": "feat(member): Add members list per application\n"
},
{
"from": "gpt",
"value": "/**\n * Copyright (C) 2015 The Gravitee team (http://gravitee.io)\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in complia... | java | chosen |
[
{
"from": "human",
"value": "Add java solution for 13\n"
},
{
"from": "gpt",
"value": "import java.util.HashMap;\nimport java.util.Map;\n\n/**\n * Created by drfish on 25/06/2017.\n */\npublic class _013RomanToInteger {\n public int romanToInt(String s) {\n Map<Character, Integer> map ... | java | chosen |
[
{
"from": "human",
"value": "Test for Strings utility class\n"
},
{
"from": "gpt",
"value": "package com.xtremelabs.robolectric.util;\n\nimport org.junit.Test;\n\nimport java.io.InputStream;\nimport java.io.StringBufferInputStream;\n\nimport static junit.framework.Assert.assertEquals;\n\npublic ... | java | chosen |
[
{
"from": "human",
"value": "Add utility impl for ExecutionLifecycleStatus\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2019 Rundeck, Inc. (http://rundeck.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": "Add integration test for verify\n"
},
{
"from": "gpt",
"value": "package arez.integration.verify;\n\nimport arez.Arez;\nimport arez.Disposable;\nimport arez.annotations.ArezComponent;\nimport arez.annotations.Reference;\nimport arez.annotations.ReferenceId;\nimport a... | java | chosen |
[
{
"from": "human",
"value": "Add a test how to handle thrown exceptions thrown in setters.\n"
},
{
"from": "gpt",
"value": "package org.kohsuke.args4j;\n\n// a 'custom' exception\nimport javax.management.InvalidAttributeValueException;\n\n\npublic class CustomExceptionTest extends Args4JTestBase... | java | chosen |
[
{
"from": "human",
"value": "Split up the DefaultsPackageTest into C++ and Java parts. Move some tests out\nof BuildConfigurationTest into a new test class.\n\n--\nMOS_MIGRATED_REVID=89113080\n"
},
{
"from": "gpt",
"value": "// Copyright 2015 Google Inc. All rights reserved.\n//\n// Licensed und... | java | chosen |
[
{
"from": "human",
"value": "Add absolute zero constant -273.15 °C"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2013 Erwin Müller <erwin.mueller@deventm.org>\n *\n * This file is part of globalpom-utils.\n *\n * globalpom-utils is free software: you can redistribute it and/or modify it\n * un... | java | chosen |
[
{
"from": "human",
"value": "Add Android Util Unit Test Classes\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (C) 2012 The Android Open Source Project\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": "Add additional tests for Pair.java\n"
},
{
"from": "gpt",
"value": "package com.sleekbyte.tailor.utils;\n\nimport static org.junit.Assert.assertEquals;\nimport static org.junit.Assert.assertFalse;\n\nimport org.junit.Before;\nimport org.junit.Test;\nimport org.junit.... | java | chosen |
[
{
"from": "human",
"value": "Add helper to retrieve frame, document etc\n"
},
{
"from": "gpt",
"value": "package org.libreoffice.example.helper;\n\nimport com.sun.star.frame.XDesktop;\nimport com.sun.star.frame.XFrame;\nimport com.sun.star.frame.XModel;\nimport com.sun.star.lang.XComponent;\nimp... | java | chosen |
[
{
"from": "human",
"value": "Remove invalid parentheses to get all combinations of result\n"
},
{
"from": "gpt",
"value": "package com.interview.recursion;\n\nimport java.util.*;\n\n/**\n * Created by tushar_v_roy on 2/23/16.\n */\npublic class RemoveInvalidParenthesis {\n\n public List<Strin... | java | chosen |
[
{
"from": "human",
"value": "Add statement 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": "Add tests for archive devices api\n"
},
{
"from": "gpt",
"value": "package io.castle.client;\n\nimport io.castle.client.model.*;\nimport okhttp3.mockwebserver.MockResponse;\nimport okhttp3.mockwebserver.RecordedRequest;\nimport org.assertj.core.api.Assertions;\nimpor... | java | chosen |
[
{
"from": "human",
"value": "Add Test case for AddCommandParser\n"
},
{
"from": "gpt",
"value": "package seedu.tache.logic.parser;\n\nimport static org.junit.Assert.assertTrue;\n\nimport org.junit.Test;\n\nimport seedu.tache.logic.commands.AddCommand;\nimport seedu.tache.logic.commands.Command;\... | java | chosen |
[
{
"from": "human",
"value": "Add a servlet to pull an image and tag it.\n"
},
{
"from": "gpt",
"value": "package com.google.sps.servlets;\n\nimport java.io.IOException;\nimport javax.servlet.ServletException;\nimport javax.servlet.annotation.WebServlet;\nimport javax.servlet.http.HttpServlet;\ni... | java | chosen |
[
{
"from": "human",
"value": "Create NotificationInformation fixtures for testing.\n"
},
{
"from": "gpt",
"value": "package com.novoda.downloadmanager;\n\nimport android.app.Notification;\n\nimport static com.novoda.downloadmanager.NotificationCustomizer.NotificationStackState.SINGLE_PERSISTENT_N... | java | chosen |
[
{
"from": "human",
"value": "Add interface for mapping stage configuration"
},
{
"from": "gpt",
"value": "/*-\n * Copyright © 2016 Diamond Light Source Ltd.\n *\n * This file is part of GDA.\n *\n * GDA is free software: you can redistribute it and/or modify it under the\n * terms of the GNU Gen... | java | chosen |
[
{
"from": "human",
"value": "Add a few tests for charset options in RiakUserMetadata\n"
},
{
"from": "gpt",
"value": "package com.basho.riak.client.core.query.UserMetadata;\n\nimport com.basho.riak.client.core.util.BinaryValue;\nimport org.junit.Test;\n\nimport java.nio.charset.Charset;\n\nimpor... | java | chosen |
[
{
"from": "human",
"value": "Add a null tolerance test\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2019, 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\n ... | java | chosen |
[
{
"from": "human",
"value": "Test that caching widgets works.\nInspect transfered data from server to \nclient and see how widgets are re-used\nafter each panel is once shown in GUI then\"\ntheir contents are not resend.\n\nsvn changeset:2579/svn branch:trunk\n"
},
{
"from": "gpt",
"value": "pac... | java | chosen |
[
{
"from": "human",
"value": "Add a test for Parameter order usage\n\nTest that usage or \"order\" with Parameter and DynamicParameter do result\nin a properly ordered output in usage()\n"
},
{
"from": "gpt",
"value": "package com.beust.jcommander;\n\nimport org.testng.Assert;\nimport org.testng.... | java | chosen |
[
{
"from": "human",
"value": "Add the config manager funtionality to the server\n"
},
{
"from": "gpt",
"value": "/**\n * \n */\npackage config;\n\nimport java.io.BufferedReader;\nimport java.io.FileInputStream;\nimport java.io.FileNotFoundException;\nimport java.io.IOException;\nimport java.io.In... | java | chosen |
[
{
"from": "human",
"value": "Duplicate parenthesis checking using stack.\n"
},
{
"from": "gpt",
"value": "package com.sunny.grokkingalgorithms.basic_2020.warmup;\n\nimport java.util.Stack;\n\npublic class DuplicateParenthesis {\n\n\t\n\tpublic static boolean duplicateParenthesis(String s) {\n\t\... | java | chosen |
[
{
"from": "human",
"value": "Make structure for utility classes\n"
},
{
"from": "gpt",
"value": "package com.amitness.photon.utils;\n\n/**\n * Provides a abstraction to the flashlight hardware\n */\n\nclass FlashLight {\n // TODO: Implement the methods\n\n public void turnOn() {\n }\n\n... | java | chosen |
[
{
"from": "system",
"value": "Add solution to problem 69\n"
},
{
"from": "human",
"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 * Yo... | java | chosen |
[
{
"from": "human",
"value": "Add Servlet to delete keywords\n"
},
{
"from": "gpt",
"value": "package com.google.sps.servlets;\n\nimport com.google.appengine.api.datastore.DatastoreService;\nimport com.google.appengine.api.datastore.DatastoreServiceFactory;\nimport com.google.appengine.api.datast... | java | chosen |
[
{
"from": "human",
"value": "Create empty test case for NoxItemCatalog\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 file except in compliance with the Lic... | java | chosen |
[
{
"from": "human",
"value": "Add test for garbage collection\n\nTests interactions of Bindings, BindingStore, NodeStore and Nodes.\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (c) 2012 Mateusz Parzonka, Eric Bodden\n * All rights reserved. This program and the accompanying materials\n * are... | java | chosen |
[
{
"from": "human",
"value": "Fix CIPANGO-139: cipango-plus is broken\n\ngit-svn-id: a3e743b3c7f6e97b9a019791beffa901f5d7f1d1@662 657f710f-be33-0410-a596-71a6d81f68ef\n"
},
{
"from": "gpt",
"value": "// ========================================================================\r\n// Copyright 2011 ... | java | chosen |
[
{
"from": "human",
"value": "Declare tests to be implemented to test command idempotence.\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2018, TeamDev Ltd. All rights reserved.\n *\n * Redistribution and use in source and/or binary forms, with or without\n * modification, must retain the abov... | java | chosen |
[
{
"from": "human",
"value": "Add another new TLS name space\n"
},
{
"from": "gpt",
"value": "package org.bouncycastle.crypto.tls;\n\n/**\n * RFC 2246 7.4.4\n */\npublic class ClientCertificateType\n{\n public static final short rsa_sign = 1;\n public static final short dss_sign = 2;\n p... | java | chosen |
[
{
"from": "human",
"value": "MOTECH-2033: Add selenium test for adding a new entity in MDS\n"
},
{
"from": "gpt",
"value": "package org.motechproject.uitest.page;\n\nimport org.openqa.selenium.By;\nimport org.openqa.selenium.WebDriver;\n\npublic class DataServicesPage extends AbstractBasePage {\... | java | chosen |
[
{
"from": "human",
"value": "Add statement to problem 74\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 a little test of ImageJ2's context disposal\n\nSee: http://stackoverflow.com/a/33653331/1207769\n"
},
{
"from": "gpt",
"value": "\npackage net.restlesscoder.sandbox;\n\nimport java.awt.event.ActionEvent;\nimport java.awt.event.ActionListener;\n\nimport javax.swin... | java | chosen |
[
{
"from": "human",
"value": "Add the whisper filter tests\n"
},
{
"from": "gpt",
"value": "package org.ethereum.net.shh;\n\nimport org.ethereum.crypto.ECKey;\nimport org.junit.Test;\n\nimport static org.junit.Assert.assertTrue;\n\n/**\n * Created by kest on 6/26/15.\n */\npublic class FilterTest... | java | chosen |
[
{
"from": "human",
"value": "Save the structure of the settings file.\n"
},
{
"from": "gpt",
"value": "package com.mycompany.lab3;\n\n/**\n *\n * @author Burgy Benjamin\n */\npublic final class Settings_default\n{\n public String OpenStack_user = \"\";\n public String OpenStack_tenant_name... | java | chosen |
[
{
"from": "human",
"value": "Add class for the new metric registry\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2015 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 obta... | java | chosen |
[
{
"from": "human",
"value": "Add unit test for CborException\n"
},
{
"from": "gpt",
"value": "package co.nstant.in.cbor;\n\nimport org.junit.Assert;\nimport org.junit.Test;\n\npublic class CborExceptionTest {\n\n @Test\n public void shouldHaveMessage() {\n CborException cborExceptio... | java | chosen |
[
{
"from": "human",
"value": "Define a test for the RModuleZero 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 or w... | java | chosen |
[
{
"from": "human",
"value": "Add new empty FML mod\n"
},
{
"from": "gpt",
"value": "package agaricus.mods.oredupefix;\n\nimport cpw.mods.fml.common.Mod;\nimport cpw.mods.fml.common.Mod.Init;\nimport cpw.mods.fml.common.Mod.Instance;\nimport cpw.mods.fml.common.Mod.PostInit;\nimport cpw.mods.fml.... | java | chosen |
[
{
"from": "human",
"value": "Create interface to operating system types.\n"
},
{
"from": "gpt",
"value": "package com.github.aureliano.achmed.os;\n\nimport com.github.aureliano.achmed.resources.types.OS;\nimport com.github.aureliano.achmed.resources.types.OperatingSystemFamily;\n\npublic interfa... | java | chosen |
[
{
"from": "human",
"value": "Add performance test for Chronicle Queue\n"
},
{
"from": "gpt",
"value": "package net.openhft.chronicle.logger;\n\nimport net.openhft.chronicle.Chronicle;\nimport net.openhft.chronicle.ExcerptAppender;\nimport net.openhft.chronicle.VanillaChronicle;\nimport net.openh... | java | chosen |
[
{
"from": "system",
"value": "Implement get variable for console variables view.\n"
},
{
"from": "human",
"value": "package com.intellij.execution.runners;\n\nimport com.intellij.execution.console.LanguageConsoleViewImpl;\nimport com.intellij.openapi.project.Project;\nimport org.jetbrains.annota... | java | chosen |
[
{
"from": "human",
"value": "Add HTTP headers common values\n"
},
{
"from": "gpt",
"value": "/**\n * Copyright (C) 2015 The Gravitee team (http://gravitee.io)\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the Lic... | java | chosen |
[
{
"from": "human",
"value": "Add simple tests for SourceParameter\n"
},
{
"from": "gpt",
"value": "package fi.jgke.tagger.domain;\n\nimport java.util.UUID;\nimport org.junit.Test;\nimport static org.junit.Assert.*;\n\n/**\n *\n * @author jgke\n */\npublic class SourceParameterTest {\n\n @Test... | java | chosen |
[
{
"from": "human",
"value": "Solve Average 2 in java\n"
},
{
"from": "gpt",
"value": "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n public static void main(String args[]) throws IOException {\n InputStreamReader ... | java | chosen |
[
{
"from": "human",
"value": "Test spawn on galaxy spawn position\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2017 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 obtain a... | java | chosen |
[
{
"from": "human",
"value": "Create class information builders favtory test\n"
},
{
"from": "gpt",
"value": "package com.fixture.generator.builder;\n\nimport static org.junit.Assert.assertEquals;\n\nimport java.util.List;\n\nimport org.junit.Test;\n\npublic class ClassInformationBuildersFactoryT... | java | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.