conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "human",
"value": "Add Helper class for multiple result queries\n"
},
{
"from": "gpt",
"value": "/*\n * MIT License\n *\n * Copyright (c) 2017 Dennis Neufeld\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documen... | java | chosen |
[
{
"from": "human",
"value": "Add Linker for saving Tiff images\n\n- TODO: Figure out how to index `write-only' Linkers\n"
},
{
"from": "gpt",
"value": "package edu.emory.cellbio.ijbat.dm;\n\nimport edu.emory.cellbio.ijbat.SlideSet;\nimport edu.emory.cellbio.ijbat.ex.ImgLinkException;\nimport edu... | java | chosen |
[
{
"from": "human",
"value": "Add base class for handling matches\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (c) 2012 Mateusz Parzonka, Eric Bodden\n * All rights reserved. This program and the accompanying materials\n * are made available under the terms of the Eclipse Public License v1.0... | java | chosen |
[
{
"from": "human",
"value": "Test for XWIKI-1558 (anonymous access via XMLRPC).\n\ngit-svn-id: 156c51771a2cd5be8c58241fbd1d5eb8c42029b5@4103 f329d543-caf0-0310-9063-dda96c69346f\n"
},
{
"from": "gpt",
"value": "package com.xpn.xwiki.it.xmlrpc;\n\nimport java.net.URL;\nimport java.util.Map;\n\nim... | java | chosen |
[
{
"from": "human",
"value": "core: Add uniqueness test to AuditLogValue\n\nSince the audit log value is supposed to be unique, this test will enforce\nthe uniqueness of the audit log values\n\nChange-Id: I8e3f58d7ccf8a6477fafbac94d6e1057ecefe23a\nSigned-off-by: Tal Nisan <1e9a2a77a0973eec628efceb273ea890910... | java | chosen |
[
{
"from": "human",
"value": "Implement an adapter for checkBoxed contacts\n\n"
},
{
"from": "gpt",
"value": "package pl.komunikator.komunikator.adapter;\n\nimport android.support.v7.widget.RecyclerView;\nimport android.view.LayoutInflater;\nimport android.view.View;\nimport android.view.ViewGrou... | java | chosen |
[
{
"from": "human",
"value": "Add demo class to test customization of components\n"
},
{
"from": "gpt",
"value": "package bisq.desktop;\n\nimport bisq.desktop.components.InputTextField;\nimport bisq.desktop.components.TitledGroupBg;\nimport bisq.desktop.util.FormBuilder;\n\nimport bisq.common.uti... | java | chosen |
[
{
"from": "human",
"value": "Add tests for latency util\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2014 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 copy o... | java | chosen |
[
{
"from": "human",
"value": "Add needed request for test\n"
},
{
"from": "gpt",
"value": "package org.mashad.jbsbe.iso;\n\nimport java.time.LocalDateTime;\nimport java.time.YearMonth;\n\nimport org.mashad.jbsbe.annotation.AutoStan;\nimport org.mashad.jbsbe.annotation.Iso8583;\nimport org.mashad.... | java | chosen |
[
{
"from": "human",
"value": "Add threads util test class.\n"
},
{
"from": "gpt",
"value": "package me.haosdent.cgroup.util;\n\nimport org.junit.After;\nimport org.junit.Before;\nimport org.junit.Test;\n\npublic class TestThreads {\n\n @Before\n public void setUp() {}\n\n @After\n public void... | java | chosen |
[
{
"from": "human",
"value": "Add test case for if with else inside if without else.\n\nAlso tests precedence of logical OR vs AND.\n"
},
{
"from": "gpt",
"value": "/**\n * Test if with else nested inside if without else, and also\n * precedence of logical OR and AND.\n *\n * @author Elvis Stansv... | java | chosen |
[
{
"from": "human",
"value": "Implement FindForeignKeyConstraintsGenerator for Firebird (CORE-2070)"
},
{
"from": "gpt",
"value": "package liquibase.sqlgenerator.core;\n\nimport liquibase.database.Database;\nimport liquibase.database.core.FirebirdDatabase;\nimport liquibase.exception.ValidationEr... | java | chosen |
[
{
"from": "system",
"value": "Fix typo in unused readUnsignedByte method of MinecraftProtocol\n"
},
{
"from": "human",
"value": "package net.md_5.bungee.protocol;\n\nimport io.netty.buffer.ByteBuf;\nimport lombok.RequiredArgsConstructor;\n\n@RequiredArgsConstructor\npublic class MinecraftInput\n... | java | chosen |
[
{
"from": "human",
"value": "Add an example command implementation.\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2017 Hex <hex@hex.lc>\n * and other copyright owners as documented in the project's IP log.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may ... | java | chosen |
[
{
"from": "human",
"value": "Add unit tests for type models\n"
},
{
"from": "gpt",
"value": "/*\n * This file is part of Lorenz, licensed under the MIT License (MIT).\n *\n * Copyright (c) Jamie Mansfield <https://www.jamierocks.uk/>\n * Copyright (c) contributors\n *\n * Permission is hereby gr... | java | chosen |
[
{
"from": "human",
"value": "Test that the merlin builder configures logging appropriately\n"
},
{
"from": "gpt",
"value": "package com.novoda.merlin;\n\nimport org.junit.Test;\nimport org.junit.runner.RunWith;\nimport org.robolectric.Robolectric;\n\nimport static org.junit.Assert.assertFalse;\n... | java | chosen |
[
{
"from": "human",
"value": "Add Java implementation for Nth Fibonacci number\n"
},
{
"from": "gpt",
"value": "import java.util.*;\n\nclass Fibonacci {\n\n static int nth_fibonacci(int n) {\n if(n<=1) {\n return n;\n }\n\n // Create dp array\n int dp[] =... | java | chosen |
[
{
"from": "human",
"value": "Define a test for the MatrixTrace 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": "Fix a test issue with the new event notification from the admin component\n"
},
{
"from": "gpt",
"value": "package com.silverpeas.notification.mock;\n\nimport javax.inject.Named;\n\nimport com.silverpeas.admin.notification.AdminNotificationService;\n\n@Named(\"adminN... | java | chosen |
[
{
"from": "human",
"value": "Test to increase camera distance\n"
},
{
"from": "gpt",
"value": "package com.haxademic.demo.camera;\n\nimport com.haxademic.core.app.PAppletHax;\nimport com.haxademic.core.camera.CameraUtil;\nimport com.haxademic.core.draw.context.DrawUtil;\n\npublic class Demo_Came... | java | chosen |
[
{
"from": "human",
"value": "Add @nocollapse to deps methods of [] objects. These deps method are called by the framework, so they shouldn't be collapsed.\n\n-------------\nCreated by MOE: https://github.com/google/moe\nMOE_MIGRATED_REVID=152737934\n"
},
{
"from": "gpt",
"value": "/*\n * Copyrig... | java | chosen |
[
{
"from": "human",
"value": "Create visits servlet and obtain visits queries from datastore.\n"
},
{
"from": "gpt",
"value": "package com.google.sps.servlets;\n\nimport com.google.appengine.api.datastore.DatastoreService;\nimport com.google.appengine.api.datastore.DatastoreServiceFactory;\nimpor... | java | chosen |
[
{
"from": "human",
"value": "Add a test for Laplace distribution -- by Da Tang\n\nSimple test, only to test the toString() method and the sampling method.\n"
},
{
"from": "gpt",
"value": "package test.blog.distrib;\n\nimport static org.junit.Assert.assertEquals;\n\nimport java.util.ArrayList;\ni... | java | chosen |
[
{
"from": "human",
"value": "Add schema version unit tests.\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2014 Open mHealth\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy... | java | chosen |
[
{
"from": "human",
"value": "Add java solution for 28. Implement strStr()\n\n28. Implement strStr(): https://leetcode.com/problems/implement-strstr/"
},
{
"from": "gpt",
"value": "package leetcode.implement_strstr;\n\npublic class Solution {\n\tpublic int[] build_table(char[] haystack){\n\t\tint... | java | chosen |
[
{
"from": "human",
"value": "Disable the Hibernate JMX integration\n"
},
{
"from": "gpt",
"value": "package org.hibernate.protean.substitutions;\n\nimport java.util.Map;\nimport javax.management.ObjectName;\n\nimport org.hibernate.jmx.spi.JmxService;\nimport org.hibernate.service.Service;\nimpor... | java | chosen |
[
{
"from": "human",
"value": "Create pager transformer for collections screen\n"
},
{
"from": "gpt",
"value": "package com.ruigoncalo.marvin.utils;\n\nimport android.support.v4.view.ViewPager;\nimport android.view.View;\n\n/**\n * Font: http://developer.android.com/training/animation/screen-slide... | java | chosen |
[
{
"from": "human",
"value": "Add wrapper for Filestack CDN endpoints.\n"
},
{
"from": "gpt",
"value": "package util;\n\nimport okhttp3.ResponseBody;\nimport retrofit2.Call;\nimport retrofit2.http.GET;\nimport retrofit2.http.Path;\nimport retrofit2.http.Streaming;\n\n/**\n * Retrofit wrapper inte... | java | chosen |
[
{
"from": "human",
"value": "Create a custom data type and its associated handler for concepts - TRUNK-3621\n\nCreate a custom data type and its associated handler for concepts - TRUNK-3621\n"
},
{
"from": "gpt",
"value": "/**\n * This Source Code Form is subject to the terms of the Mozilla Publ... | java | chosen |
[
{
"from": "human",
"value": "Add API to easily create named Executors"
},
{
"from": "gpt",
"value": "package org.reactivecouchbase.concurrent;\n\nimport java.util.concurrent.ExecutorService;\nimport java.util.concurrent.Executors;\nimport java.util.concurrent.ScheduledExecutorService;\nimport ja... | java | chosen |
[
{
"from": "human",
"value": "Add new bean for survey\n"
},
{
"from": "gpt",
"value": "package org.tapestry.objects;\n\npublic class DisplayedSurveyResult {\n\tprivate String questionId;\n\tprivate String questionAnswer;\n\tprivate String observerNotes;\n\tprivate String title;\n\tprivate String ... | java | chosen |
[
{
"from": "human",
"value": "Add user profile update servlet\n"
},
{
"from": "gpt",
"value": "package com.google.sps.servlets;\n\nimport com.google.appengine.api.users.UserService;\nimport com.google.appengine.api.users.UserServiceFactory;\nimport com.google.sps.data.User;\nimport com.google.sps... | java | chosen |
[
{
"from": "human",
"value": "Add the interface for parametric transitions.\n"
},
{
"from": "gpt",
"value": "package eu.danieldk.dictomaton.levenshtein;\n\ninterface ParametricTransitions\n{\n /**\n * The number of edit operations this parametric transition table is for.\n * @return Th... | java | chosen |
[
{
"from": "human",
"value": "Add a String processing utility class\n"
},
{
"from": "gpt",
"value": "package com.adenki.smpp.util;\n\n/**\n * Some string utility methods.\n * @version $Id:$\n */\npublic final class StringUtil {\n\n private StringUtil() {\n }\n\n /**\n * Return a Java... | java | chosen |
[
{
"from": "human",
"value": "Create a way to add multiple Capabilities to a single item nicely\n"
},
{
"from": "gpt",
"value": "package com.cjm721.overloaded.storage.builder;\n\nimport net.minecraft.util.EnumFacing;\nimport net.minecraftforge.common.capabilities.Capability;\nimport net.minecraft... | java | chosen |
[
{
"from": "human",
"value": "Package info with links to confluence added\n"
},
{
"from": "gpt",
"value": "/**\n * @see <a href=\"http://confluence.jetbrains.com/display/IDEADEV/Indexing+and+PSI+Stubs+in+IntelliJ+IDEA\">Indexing and PSI Stubs in IntelliJ IDEA</a>\n *\n * @see <a href=\"http://dev... | java | chosen |
[
{
"from": "human",
"value": "Add class for messages that will be ignored.\n"
},
{
"from": "gpt",
"value": "package org.bitcoinj.core;\n\n/**\n * Created by Hash Engineering on 6/26/2017.\n *\n * This is a wrapper to allow a message to be ignored that bitcoinj\n * will not process. This will pre... | java | chosen |
[
{
"from": "human",
"value": "Add test for block deletion journaling\n"
},
{
"from": "gpt",
"value": "package alluxio.master.block;\n\nimport alluxio.AlluxioURI;\nimport alluxio.client.WriteType;\nimport alluxio.client.file.FileSystem;\nimport alluxio.client.file.FileSystemTestUtils;\nimport allu... | java | chosen |
[
{
"from": "human",
"value": "Add stub class to process WoS data"
},
{
"from": "gpt",
"value": "package ch.tkuhn.memetools;\n\nimport java.io.File;\n\nimport com.beust.jcommander.JCommander;\nimport com.beust.jcommander.ParameterException;\n\npublic class PrepareWosData {\n\n\tprivate File logFil... | java | chosen |
[
{
"from": "human",
"value": "Complete unit test for AwsMockException\n"
},
{
"from": "gpt",
"value": "package com.tlswe.awsmock.common.exception;\n\nimport org.junit.Test;\n\n\npublic class AwsMockExceptionTest {\n\n @Test(expected=AwsMockException.class)\n public void TestAwsMockException... | java | chosen |
[
{
"from": "human",
"value": "Add unit tests for TopApps\n\nTest: run ./gradlew test and all tests passed.\n\nSigned-off-by: utzcoz <bf4fcb59289e9979ebf7a02b1609ee526a91bd2d@outlook.com>\n"
},
{
"from": "gpt",
"value": "package com.farmerbb.taskbar.util;\n\nimport android.content.Context;\n\nimpo... | java | chosen |
[
{
"from": "human",
"value": "Add LogInsightClient.java as a starting point of message sending library\n"
},
{
"from": "gpt",
"value": "package com.vmware.loginsight.send;\n\nimport java.util.List;\n\npublic class LogUploadClient {\n\tpublic final String url;\n\tpublic final int port;\n\tpublic f... | java | chosen |
[
{
"from": "human",
"value": "Add a really simple transition that fades in a new screen.\n\nThe old screen is left at full opacity while the new screen fades in front from 0 - 1 alpha.\n"
},
{
"from": "gpt",
"value": "//\n// Triple Play - utilities for use in PlayN-based games\n// Copyright (c) 2... | java | chosen |
[
{
"from": "human",
"value": "Test class for playing back VAD stream\n"
},
{
"from": "gpt",
"value": "package VQVAD;\n\nimport java.io.ByteArrayInputStream;\nimport java.io.ByteArrayOutputStream;\nimport java.io.IOException;\nimport java.net.MalformedURLException;\n\nimport javax.sound.sampled.Au... | java | chosen |
[
{
"from": "human",
"value": "Create example realm config version one migration\n"
},
{
"from": "gpt",
"value": "package br.com.bloder.better_migrations.migrations;\n\nimport br.com.bloder.migration.Migration;\nimport io.realm.DynamicRealm;\n\n/**\n * Created by bloder on 25/09/16.\n */\npublic c... | java | chosen |
[
{
"from": "human",
"value": "Add default implementation of Offset interface.\n"
},
{
"from": "gpt",
"value": "package net.imagej.ops.views;\n\nimport net.imagej.ops.view.ViewOps;\nimport net.imagej.ops.view.ViewOps.Offset;\nimport net.imglib2.RandomAccessible;\nimport net.imglib2.view.MixedTrans... | java | chosen |
[
{
"from": "human",
"value": "Test on winning point for Federer\n"
},
{
"from": "gpt",
"value": "import org.junit.Before;\nimport org.junit.Test;\nimport org.junit.runner.RunWith;\nimport org.mockito.InjectMocks;\nimport org.mockito.Mock;\nimport org.mockito.junit.MockitoJUnitRunner;\n\nimport st... | java | chosen |
[
{
"from": "human",
"value": "Add command to check player balance.\n\nSigned-off-by: Ian Macalinao <08370e385f4778cad8fe504ec5445edd3d45bd9a@gmail.com>\n"
},
{
"from": "gpt",
"value": "/*\n * To change this template, choose Tools | Templates\n * and open the template in the editor.\n */\npackage ... | java | chosen |
[
{
"from": "human",
"value": "Add TestResultConverter to assist in changing intelliJ type\n"
},
{
"from": "gpt",
"value": "package info.maccac.recorder;\n\nimport com.intellij.execution.testframework.AbstractTestProxy;\n\nimport java.util.List;\nimport java.util.stream.Collectors;\n\nfinal class ... | java | chosen |
[
{
"from": "human",
"value": "Solve problem 3 (sort of)\n"
},
{
"from": "gpt",
"value": "package leetcode;\n\nimport java.util.HashMap;\nimport java.util.Map;\n\n/**\n * https://oj.leetcode.com/problems/longest-substring-without-repeating-characters/\n */\npublic class Problem3 {\n public int ... | java | chosen |
[
{
"from": "human",
"value": "Test case showing we could detect more errors if we realized that if a value is equal to a nonnull value, then it must be nonnull as well.\n\n\ngit-svn-id: e7d6bde23f017c9ff4efd468d79d66def666766b@6432 eae3c2d3-9b19-0410-a86e-396b6ccb6ab3\n"
},
{
"from": "gpt",
"valu... | java | chosen |
[
{
"from": "human",
"value": "Add a rule for matching packages.\n\nRELNOTES=n/a\nPiperOrigin-RevId: 456576706\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2022 The Error Prone Authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file exc... | java | chosen |
[
{
"from": "human",
"value": "Add String to Layer converter\n"
},
{
"from": "gpt",
"value": "package org.jpos.qi.minigl;\n\nimport com.vaadin.data.Converter;\nimport com.vaadin.data.Result;\nimport com.vaadin.data.ValueContext;\nimport org.jpos.gl.Journal;\nimport org.jpos.gl.Layer;\n\npublic cla... | java | chosen |
[
{
"from": "human",
"value": "Add some codes to test InputStream."
},
{
"from": "gpt",
"value": "package study.hard.javalib.encodingstring;\n\nimport static org.junit.Assert.*;\n\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.InputStreamR... | java | chosen |
[
{
"from": "system",
"value": "Implement hashCode() when you implement equals()!\n"
},
{
"from": "human",
"value": "package nodomain.freeyourgadget.gadgetbridge.model;\n\n/**\n * Created by steffen on 07.06.16.\n */\npublic class MusicStateSpec {\n public static final int STATE_PLAYING = 0;\n ... | java | chosen |
[
{
"from": "human",
"value": "Add Generic Four Wheel Drive opmode\n"
},
{
"from": "gpt",
"value": "package com.qualcomm.ftcrobotcontroller.opmodes;\n\nimport com.lasarobotics.library.controller.ButtonState;\nimport com.lasarobotics.library.controller.Controller;\nimport com.lasarobotics.library.d... | java | chosen |
[
{
"from": "human",
"value": "Add some tests for LengthPrefixedBinaryTCPClientImpl\n\ngit-svn-id: 7c053b8fbd1fb5868f764c6f9536fc6a9bbe7da9@711667 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "gpt",
"value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * con... | java | chosen |
[
{
"from": "human",
"value": "AMQ-5693: Include component documentation for activemq-camel\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": "Add health check for read coverage data\n\nCompare read counts for individuals between two releases.\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright [1999-2014] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute\n * \n * Licensed under t... | java | chosen |
[
{
"from": "human",
"value": "Define a test for the Partition 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 wit... | java | chosen |
[
{
"from": "human",
"value": "Add test cases for deadline tasks\n"
},
{
"from": "gpt",
"value": "package seedu.jimi.testutil;\n\nimport seedu.jimi.commons.exceptions.IllegalValueException;\nimport seedu.jimi.model.TaskBook;\nimport seedu.jimi.model.task.DeadlineTask;\nimport seedu.jimi.model.task... | java | chosen |
[
{
"from": "human",
"value": "SWITCHYARD-420: Add a web service proxy quickstart\n"
},
{
"from": "gpt",
"value": "/*\n * JBoss, Home of Professional Open Source\n * Copyright 2011 Red Hat Inc. and/or its affiliates and other contributors\n * as indicated by the @authors tag. All rights reserved.\... | java | chosen |
[
{
"from": "system",
"value": "Fix bug in spec of getBatch.\n\n--\nMOS_MIGRATED_REVID=92398218\n"
},
{
"from": "human",
"value": "// Copyright 2014 Google Inc. All rights reserved.\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": "human",
"value": "Add test for Random Variable\n\ngit-svn-id: 5ccfe34f605a6c2f9041ff2965ab60012c62539a@1786531 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "gpt",
"value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreem... | java | chosen |
[
{
"from": "human",
"value": "Apply test for HARMONY-812 (transient fields are serialized)\n\nsvn path=/incubator/harmony/enhanced/classlib/trunk/; revision=420913\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2006 The Apache Software Foundation or its licensors, as\n * applicable\n * \n * Li... | java | chosen |
[
{
"from": "human",
"value": "Use varargs with standard arguments\n\nhttp://ideone.com/e6yBLE"
},
{
"from": "gpt",
"value": "// Use varargs with standard arguments.\nclass VarArgs2 {\n \n // Here, msg is a normal parameter and v is a varargs parameter.\n static void vaTest(String msg, int ... ... | java | chosen |
[
{
"from": "human",
"value": "Add test to add option to load embedded modelInfos\n"
},
{
"from": "gpt",
"value": "package org.cqframework.cql.cql2elm;\n\nimport org.hl7.elm.r1.Library;\nimport org.testng.annotations.AfterClass;\nimport org.testng.annotations.BeforeClass;\nimport org.testng.annota... | java | chosen |
[
{
"from": "human",
"value": "Add tests for LinkedMultiValueMap from Spring 3.2\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 ... | java | chosen |
[
{
"from": "human",
"value": "Add support for reporting errors\n"
},
{
"from": "gpt",
"value": "package error;\n\nimport parse.Loc;\n\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.function.Consumer;\n\npublic class ErrorManager {\n public static final ErrorManager em = ... | java | chosen |
[
{
"from": "human",
"value": "Add new test case for WSS using SslConnextionTest as the base tests"
},
{
"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 ad... | java | chosen |
[
{
"from": "human",
"value": "Add some JUnit tests for HttpSimpleTableControlGui class\n\nSigned-off-by: fhenry <1a33d7d225b0d88c4e9de338ba8e92728b5fb20f@sopra.com>\n"
},
{
"from": "gpt",
"value": "package org.jmeterplugins.protocol.http.control.gui;\n\nimport static org.junit.Assert.assertEquals... | java | chosen |
[
{
"from": "system",
"value": "Use fail() method in tests\n"
},
{
"from": "human",
"value": "package com.sanction.thunder.authentication;\n\nimport com.google.common.base.Optional;\nimport com.google.common.collect.Lists;\n\nimport io.dropwizard.auth.AuthenticationException;\nimport io.dropwizard... | java | chosen |
[
{
"from": "human",
"value": "Add IP addresses to the API-client.\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (c) 2015 University of Ulm\n *\n * See the NOTICE file distributed with this work for additional information\n * regarding copyright ownership. Licensed under the Apache License, V... | java | chosen |
[
{
"from": "human",
"value": "Add test for skipping java.lang.Object methods\n\nrelated to #4\n"
},
{
"from": "gpt",
"value": "package reegnz.processor;\n\nimport static com.google.testing.compile.JavaSourceSubjectFactory.javaSource;\n\nimport javax.tools.JavaFileObject;\n\nimport org.junit.Test;... | java | chosen |
[
{
"from": "human",
"value": "Offline-Imagery: Add a worker to download files\n\nThis change introduces a background worker for downloading files. This\ncontributes to supporting offline-imagery, and will be the mechanism we\nuse to download tile sets for offline viewing.\n\nDownloads are written to the appl... | java | chosen |
[
{
"from": "human",
"value": "Add test coverage for Optional\n"
},
{
"from": "gpt",
"value": "package com.github.mproberts.rxtools.types;\n\nimport io.reactivex.functions.Function;\nimport org.junit.Test;\n\nimport static org.junit.Assert.*;\n\npublic class OptionalTest\n{\n @Test\n public ... | java | chosen |
[
{
"from": "human",
"value": "Add example lend book demo"
},
{
"from": "gpt",
"value": "package com.xeiam.xchange.examples.bitfinex.marketdata;\n\nimport java.io.IOException;\n\nimport com.xeiam.xchange.Exchange;\nimport com.xeiam.xchange.ExchangeFactory;\nimport com.xeiam.xchange.bitfinex.v1.Bit... | java | chosen |
[
{
"from": "human",
"value": "Add missing keystroke java source\n"
},
{
"from": "gpt",
"value": "package core.keyChain;\n\n/**\n * Represents a key stroke on the keyboard.\n */\npublic class KeyStroke {\n\tprivate int key;\n\tprivate int modifier;\n\n\tpublic static KeyStroke Of(int key, int modi... | java | chosen |
[
{
"from": "human",
"value": "Add shared memory benchmark test\n"
},
{
"from": "gpt",
"value": "package galileo.test.fs;\n\nimport galileo.util.PerformanceTimer;\n\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.StandardOpenOption;\nimport java.util.Random;\n\npublic clas... | java | chosen |
[
{
"from": "human",
"value": "Add a new facet to store enumeration and patterns\n\n\ngit-svn-id: 21df804813e9d3638e43477f308dd0be51e5f30f@319312 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "gpt",
"value": "/*\n * The Apache Software License, Version 1.1\n *\n *\n * Copyright (c) 2001, 20... | java | chosen |
[
{
"from": "human",
"value": "[Test] Test ModelManager with task-level method\n"
},
{
"from": "gpt",
"value": "package seedu.address.model;\n\nimport static org.junit.Assert.assertEquals;\nimport static org.junit.Assert.assertFalse;\n\nimport java.util.Collection;\nimport java.util.Collections;\n... | java | chosen |
[
{
"from": "human",
"value": "Add general runtime instructions to package javadoc.\n\ngit-svn-id: de5ce936019686f47409c93bcc5e202a9739563b@1615444 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "gpt",
"value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * co... | java | chosen |
[
{
"from": "human",
"value": "[NGRINDER-68] Add unit test for controller\n\nAdded one test class.\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (C) 2012 - 2012 NHN Corporation\n * All rights reserved.\n *\n * This file is part of The nGrinder software distribution. Refer to\n * the file LICE... | java | chosen |
[
{
"from": "human",
"value": "Add test for RESTEASY-1077 to make sure we won't run into it later.\n\nChange-Id: I775491c309a5e8aefd376eecd2b16b68e33d622d\n"
},
{
"from": "gpt",
"value": "package oasis.web.resteasy;\n\nimport static org.assertj.core.api.Assertions.*;\n\nimport javax.ws.rs.GET;\nim... | java | chosen |
[
{
"from": "human",
"value": "Add ThymeleafView test checking registerTrackingId\n"
},
{
"from": "gpt",
"value": "package uk.gov.register.views;\n\nimport org.junit.Test;\nimport org.junit.runner.RunWith;\nimport org.mockito.Mock;\nimport org.mockito.runners.MockitoJUnitRunner;\nimport uk.gov.reg... | java | chosen |
[
{
"from": "human",
"value": "Add Person Attributes Group Store tester class.\n\n\ngit-svn-id: 477788cc2a8229a747c5b8073e47c1d0f6ec0604@8447 f5dbab47-78f9-eb45-b975-e544023573eb\n"
},
{
"from": "gpt",
"value": "/**\n * Copyright (c) 2004 The JA-SIG Collaborative. All rights reserved.\n *\n * Red... | java | chosen |
[
{
"from": "human",
"value": "Add test to ensure appropriate download pages are returned depending on app configration\n"
},
{
"from": "gpt",
"value": "package uk.gov.register.functional;\n\nimport io.dropwizard.testing.ConfigOverride;\nimport io.dropwizard.testing.ResourceHelpers;\nimport io.dro... | java | chosen |
[
{
"from": "human",
"value": "Add a basic implementation of the Client interface\n\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (c) 2016 MCPhoton <http://mcphoton.org> and contributors.\n *\n * This file is part of the Photon Server Implementation <https://github.com/mcphoton/Photon-Server>.... | java | chosen |
[
{
"from": "human",
"value": "Add NetworkBehaviour class to use on player GameObjects\n"
},
{
"from": "gpt",
"value": "package com.ezardlabs.lostsector.multiplayer;\n\nimport com.ezardlabs.dethsquare.Animator;\nimport com.ezardlabs.dethsquare.multiplayer.Network;\nimport com.ezardlabs.dethsquare.... | java | chosen |
[
{
"from": "system",
"value": "Add expression string to failed expression evaluation exception message to help clarify the context.\n"
},
{
"from": "human",
"value": "package org.springframework.security.access.expression;\n\nimport org.springframework.expression.EvaluationContext;\nimport org.sp... | java | chosen |
[
{
"from": "human",
"value": "Add UserController advice for exception handling\n"
},
{
"from": "gpt",
"value": "package com.aemreunal.controller.user;\n\nimport net.minidev.json.JSONObject;\n\nimport java.util.HashMap;\nimport java.util.Map;\nimport org.springframework.http.HttpStatus;\nimport or... | java | chosen |
[
{
"from": "human",
"value": "Add Json converter for test and application workflow\n"
},
{
"from": "gpt",
"value": "package pl.koszela.jan.persistence.converter;\n\nimport com.google.gson.Gson;\nimport java.io.FileReader;\nimport java.io.IOException;\nimport java.io.Reader;\nimport java.util.Arra... | java | chosen |
[
{
"from": "human",
"value": "Add test to ensure VMStat Scribblets extend properly\n"
},
{
"from": "gpt",
"value": "package net.blackshard.clarity.scribe;\n\nimport static org.hamcrest.CoreMatchers.equalTo;\nimport static org.junit.Assert.*;\n\nimport org.junit.Rule;\nimport org.junit.After;\nimp... | java | chosen |
[
{
"from": "human",
"value": "Extend ScrollView for a view which notifies on reaching the bottom\n"
},
{
"from": "gpt",
"value": "package org.azavea.views;\n\nimport android.content.Context;\nimport android.util.AttributeSet;\nimport android.view.View;\nimport android.widget.ScrollView;\n\npublic... | java | chosen |
[
{
"from": "human",
"value": "Add benchmark for structured types\n"
},
{
"from": "gpt",
"value": "/*\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * h... | java | chosen |
[
{
"from": "human",
"value": "Implement BuildFlow build url calculation\n"
},
{
"from": "gpt",
"value": "package org.jenkinsci.plugins.ghprb.downstreambuilds;\n\nimport java.util.Iterator;\nimport java.util.Set;\n\nimport org.jgrapht.DirectedGraph;\n\nimport com.cloudbees.plugins.flow.FlowRun;\ni... | java | chosen |
[
{
"from": "human",
"value": "Add util class for determine OS type and user catalog absolute path.\n"
},
{
"from": "gpt",
"value": "package app;\n\npublic class SystemUtils {\n\n\t/**\n\t * Get absolute path to user catalog data.\n\t */\n\tpublic static String getUserCatalogAbsPath() {\n\t\tStrin... | java | chosen |
[
{
"from": "human",
"value": "Create interface to be implemented by every sorting algorithm in this repository\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... | java | chosen |
[
{
"from": "human",
"value": "Introduce custom editor for size of graphic features (esp JFreeChart symbols).\n"
},
{
"from": "gpt",
"value": "/*\n * Debrief - the Open Source Maritime Analysis Application\n * http://debrief.info\n *\n * (C) 2000-2014, PlanetMayo Ltd\n *\n * This libra... | java | chosen |
[
{
"from": "human",
"value": "Put the component activity type URI in a sensible place."
},
{
"from": "gpt",
"value": "package net.sf.taverna.t2.component.api.config;\n\npublic interface ComponentConfig {\n\tString URI = \"http://ns.taverna.org.uk/2010/activity/component\";\n}\n"
}
] | java | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.