conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "human",
"value": "Add java solution for 83. Remove Duplicates from Sorted List\n\n83. Remove Duplicates from Sorted List: https://leetcode.com/problems/remove-duplicates-from-sorted-list/"
},
{
"from": "gpt",
"value": "package leetcode.remove_duplicates_from_sorted_list;\n\nimport jav... | java | chosen |
[
{
"from": "human",
"value": "engine: Add test for ValidName annotation\n\nChange-Id: Ica4ef1fd43a1c6144bb722b57a036a160d713c57\nSigned-off-by: Moti Asayag <da1debb83a8e12b6e8822edf2c275f55cc51b720@redhat.com>\n"
},
{
"from": "gpt",
"value": "package org.ovirt.engine.core.common.utils;\n\nimport ... | java | chosen |
[
{
"from": "human",
"value": "JiayaoYu: Add Message.java for the i18n test\n\nr4811\n"
},
{
"from": "gpt",
"value": "package com.googlecode.webdriver;\n\nimport java.util.MissingResourceException;\nimport java.util.ResourceBundle;\n\npublic class Messages {\n\tprivate static final String BUNDLE_N... | java | chosen |
[
{
"from": "human",
"value": "Create : 20 Valid Parentheses\n"
},
{
"from": "gpt",
"value": "import java.util.Stack;\n\npublic class Solution {\n\n public boolean isValid(String s) {\n\n Stack<Character> stack = new Stack<Character>();\n\n for (char curBracket : s.toCharArray()) ... | java | chosen |
[
{
"from": "human",
"value": "Add an exception for database config errors\n"
},
{
"from": "gpt",
"value": "package com.codenvy.ide.ext.datasource.shared.exception;\n\n/**\n * Exception used when a database definition is incorrect.\n * \n * @author \"Mickaël Leduque\"\n */\npublic class DatabaseDe... | java | chosen |
[
{
"from": "human",
"value": "XWIKI-19523: Improve query author check\n* add test\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 modi... | java | chosen |
[
{
"from": "human",
"value": "Add java solution for 223. Rectangle Area\n\n223. Rectangle Area: https://leetcode.com/problems/rectangle-area/"
},
{
"from": "gpt",
"value": "package leetcode.rectangle_area;\n\npublic class Solution {\n public int computeArea(int A, int B, int C, int D, int E, i... | java | chosen |
[
{
"from": "human",
"value": "Add solution for left rotation problem in Java.\n"
},
{
"from": "gpt",
"value": "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.IOException;\n\nimport java.util.List;\nimport java.util.ArrayList;\n\npublic class LeftRotation {\n\n ... | java | chosen |
[
{
"from": "human",
"value": "Add file forgotten in last commit.\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (c) 2011 United ID. All rights reserved.\n * Copyright (c) 2011 Yubico AB. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may ... | java | chosen |
[
{
"from": "human",
"value": "Handle only .xls Files in Data Path Directory\n\n* Avoid handling other types\n"
},
{
"from": "gpt",
"value": "package com.lucene;\n\nimport java.io.File;\nimport java.io.FileFilter;\n\npublic class TextFileFilter implements FileFilter {\n\n\t@Override\n\tpublic bool... | java | chosen |
[
{
"from": "human",
"value": "Create Artifactory server on startup\n"
},
{
"from": "gpt",
"value": "package org.jfrog.hudson;\n\nimport hudson.Extension;\nimport hudson.model.Computer;\nimport hudson.model.TaskListener;\nimport hudson.slaves.ComputerListener;\nimport jenkins.model.Jenkins;\nimpor... | java | chosen |
[
{
"from": "human",
"value": "Add get parameter function to utilities.\n"
},
{
"from": "gpt",
"value": "package com.google.sps.utilities;\nimport com.google.gson.Gson;\nimport com.google.sps.utilities.CommonUtils;\nimport java.util.ArrayList;\nimport java.util.List;\nimport javax.servlet.http.Htt... | java | chosen |
[
{
"from": "human",
"value": "Add implementation of offset with interval as input.\n"
},
{
"from": "gpt",
"value": "package net.imagej.ops.views;\n\nimport net.imagej.ops.OpService;\nimport net.imagej.ops.view.ViewOps.Offset;\nimport net.imagej.ops.view.ViewOps.View;\nimport net.imglib2.Interval;... | java | chosen |
[
{
"from": "human",
"value": "db: Add a helper for database operations\n\nSigned-off-by: Sanjeev Premi <e2c59cdd009c02452534cc3986d2bb876e0e4eac@ymail.com>\n"
},
{
"from": "gpt",
"value": "/*\n * [Nayati] DbHelper.java\n *\n * Implements helper for database operations.\n *\n * (c) 2015 Sanjeev Pr... | java | chosen |
[
{
"from": "human",
"value": "Add statement to problem 27\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": "Fix return empty data with JsonView on Page object.\n"
},
{
"from": "gpt",
"value": "package com.royalrangers.configuration;\n\nimport java.io.IOException;\n\nimport org.springframework.context.annotation.Bean;\nimport org.springframework.context.annotation.Configura... | java | chosen |
[
{
"from": "human",
"value": "Add test for ImageTags response object\n"
},
{
"from": "gpt",
"value": "package com.filestack;\n\nimport com.google.gson.Gson;\nimport java.util.Map;\nimport org.junit.Assert;\nimport org.junit.Test;\n\npublic class TestImageTags {\n\n @Test\n public void test() {\... | java | chosen |
[
{
"from": "human",
"value": "Test basic Dropwizard server constructor\n"
},
{
"from": "gpt",
"value": "package macrobase.runtime;\n\nimport com.codahale.metrics.MetricRegistry;\nimport com.fasterxml.jackson.databind.ObjectMapper;\nimport io.dropwizard.setup.Bootstrap;\nimport io.dropwizard.setup... | java | chosen |
[
{
"from": "human",
"value": "Add unit tests for SkillSet\n"
},
{
"from": "gpt",
"value": "package org.apollo.game.model.entity;\n\nimport org.junit.Test;\n\nimport static org.junit.Assert.*;\n\n/**\n * Tests the {@link SkillSet} class.\n *\n * @author munggs\n */\npublic final class SkillSetTest... | java | chosen |
[
{
"from": "human",
"value": "Create simple program for running the test on different sorting algorithms\n"
},
{
"from": "gpt",
"value": "package sortingalgorithms;\n\n/**\n * A simple class for running tests on sorting algorithms.\n * \n * @author Joel Abrahamsson\n * @version %G%\n */\npub... | java | chosen |
[
{
"from": "human",
"value": "Create an Adapter class for the ListView\n"
},
{
"from": "gpt",
"value": "package com.andela.webservice;\n\nimport android.app.Activity;\nimport android.content.Context;\nimport android.view.LayoutInflater;\nimport android.view.View;\nimport android.view.ViewGroup;\n... | java | chosen |
[
{
"from": "human",
"value": "Test of several visual artifacts connected to the same Zoom instance\n"
},
{
"from": "gpt",
"value": "//-----------------------------------------------------------------------//\n// //\n// ... | java | chosen |
[
{
"from": "human",
"value": "Solve No.10039 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": "Add test for inline lists"
},
{
"from": "gpt",
"value": "package simple.xml.load;\n\nimport java.io.StringWriter;\nimport java.util.List;\n\nimport simple.xml.Attribute;\nimport simple.xml.ElementList;\nimport simple.xml.Root;\nimport simple.xml.Text;\nimport simple.... | java | chosen |
[
{
"from": "human",
"value": "Create a skeleton for problem 128\n"
},
{
"from": "gpt",
"value": "package leetcode;\n\n/**\n * https://leetcode.com/problems/longest-consecutive-sequence/\n */\npublic class Problem128 {\n public int longestConsecutive(int[] nums) {\n // TODO\n retu... | java | chosen |
[
{
"from": "human",
"value": "Fix bugs with previous commit\n"
},
{
"from": "gpt",
"value": "/*\n * To change this template, choose Tools | Templates\n * and open the template in the editor.\n */\npackage edu.stuy.commands;\n\n\n/**\n *\n * @author admin\n */\npublic class ArmGamepadControl exten... | java | chosen |
[
{
"from": "human",
"value": "Add unit tests for \"Threads\" class\n\nSummary: Closes https://github.com/facebook/buck/pull/532\n\nTest Plan: Imported from GitHub, without a `Test Plan:` line.\n\nReviewed By: svcscm\n\nPulled By: sdwilsh\n\nfb-gh-sync-id: a814b48\n"
},
{
"from": "gpt",
"value": "... | java | chosen |
[
{
"from": "human",
"value": "Add minimal test for Node\n"
},
{
"from": "gpt",
"value": "package org.realityforge.arez.api2;\n\nimport javax.annotation.Nonnull;\nimport javax.annotation.Nullable;\nimport org.realityforge.guiceyloops.shared.ValueUtil;\nimport org.testng.annotations.Test;\nimport s... | java | chosen |
[
{
"from": "human",
"value": "Create : 367 Valid Perfect Square\n"
},
{
"from": "gpt",
"value": "public class Solution {\n\n public boolean isPerfectSquare(int num) {\n\n for (int i = 1; num > 0; i += 2) {\n num -= i;\n }\n\n return num == 0;\n\n }\n\n}\n"
... | java | chosen |
[
{
"from": "human",
"value": "Add new test: filter URL feature\n"
},
{
"from": "gpt",
"value": "/*\n * (C) Copyright 2016 Boni Garcia (http://bonigarcia.github.io/)\n *\n * All rights reserved. This program and the accompanying materials\n * are made available under the terms of the GNU Lesser Ge... | java | chosen |
[
{
"from": "human",
"value": "Set up new project controller test shell\n\nmostly committing this because my computer just restarted…\n"
},
{
"from": "gpt",
"value": "package squire.controllers;\n\nimport org.junit.After;\nimport org.junit.Before;\nimport org.junit.Test;\n\nimport static org.junit... | java | chosen |
[
{
"from": "human",
"value": "Add an exception to throw for incorrect API usage\n"
},
{
"from": "gpt",
"value": "package boilerplate.common;\n\npublic class IncorrectAPIUsageException extends RuntimeException\n{\n\tstatic String message = \"A mod is using SteamAPI incorrectly :(\";\n\n\tprivate s... | java | chosen |
[
{
"from": "human",
"value": "Read HTTP request traces and compute number of requests that time outed.\n"
},
{
"from": "gpt",
"value": "import java.io.IOException;\nimport java.nio.charset.Charset;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\nimport java.util.Comparator;\n\npublic c... | java | chosen |
[
{
"from": "human",
"value": "Add a testcase for DateUtil to debug the recent Java 9 failures (may be extended)\n\ngit-svn-id: 308d55f399f3bd9aa0560a10e81a003040006c48@1690031 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "gpt",
"value": "package org.apache.solr.common.util;\n\n/*\n * Lice... | java | chosen |
[
{
"from": "human",
"value": "Delete Arbitrary Node in Linked list\n"
},
{
"from": "gpt",
"value": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 CodeRevisited.com\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated do... | java | chosen |
[
{
"from": "human",
"value": "Add unit tests for Atomic.String class\n"
},
{
"from": "gpt",
"value": "package org.mapdb;\n\nimport junit.framework.TestCase;\n\npublic class AtomicStringTest extends TestCase {\n\n DB db;\n Atomic.String ai;\n\n\n @Override\n protected void setUp() thro... | java | chosen |
[
{
"from": "human",
"value": "Add new file for the task 9. Done the task 9(a)\n"
},
{
"from": "gpt",
"value": "package ru.stqa.selenium.example;\n\nimport org.junit.Test;\nimport org.openqa.selenium.By;\nimport org.openqa.selenium.WebElement;\n\nimport java.util.List;\n\npublic class Countries ex... | java | chosen |
[
{
"from": "human",
"value": "Add java solution for 66. Plus One\n\n66. Plus One: https://leetcode.com/problems/plus-one/"
},
{
"from": "gpt",
"value": "package leetcode.plus_one;\n\npublic class Solution {\n public int[] plusOne(int[] digits) {\n \tint carry = 1;\n \tfor(int i = digits.... | java | chosen |
[
{
"from": "human",
"value": "Add a program that measures confirmation time for a given fee level.\n\nThis is a complementary approach to what the estimatefees code for Core does, because Core cannot really measure confirmation time for a fee level if nobody is setting it.\n"
},
{
"from": "gpt",
... | java | chosen |
[
{
"from": "human",
"value": "Add tests for Poker class\n"
},
{
"from": "gpt",
"value": "package in.webplay.poker;\n\nimport org.junit.Test;\nimport static org.junit.Assert.*;\n\npublic class PokerTest {\n @Test\n public void canConstructAPokerWithAName() {\n Poker poker = new Poker(... | java | chosen |
[
{
"from": "human",
"value": "Add a test program for DTLS (for use with external GnuTLS echo server)"
},
{
"from": "gpt",
"value": "package org.bouncycastle.crypto.tls.test;\r\n\r\nimport java.io.IOException;\r\nimport java.net.DatagramSocket;\r\nimport java.net.InetAddress;\r\nimport java.securi... | java | chosen |
[
{
"from": "human",
"value": "Add statement to problem 33\n"
},
{
"from": "gpt",
"value": "package com.github.pedrovgs.problem33;\n\n/**\n * Can you write a method to analyze some strings with regular expressions and return true if the\n * expression matches with the word? Expressions supported a... | java | chosen |
[
{
"from": "human",
"value": "Add Spring based job runner factory\n"
},
{
"from": "gpt",
"value": "package com.s24.redjob.worker;\n\nimport com.fasterxml.jackson.annotation.JsonTypeName;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.beans.factory.conf... | java | chosen |
[
{
"from": "system",
"value": "Throw ImportException instead of RuntimeException.\n"
},
{
"from": "human",
"value": "package io.bit3.jsass.importer;\n\nimport io.bit3.jsass.context.ImportStack;\n\nimport java.net.URI;\nimport java.net.URISyntaxException;\nimport java.util.Collection;\nimport java... | java | chosen |
[
{
"from": "human",
"value": "Add javadoc to the `nl.talsmasoftware.umldoclet.configuration` package\n\nSigned-off-by: Sjoerd Talsma <1dafb4c4a7acdc6e1eca32ff35fda03e0e9cd976@talsma-ict.nl>\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2016-2019 Talsma ICT\n *\n * Licensed under the Apache Li... | java | chosen |
[
{
"from": "human",
"value": "Add example for explicitly listed property classes\n"
},
{
"from": "gpt",
"value": "package de.springbootbuch.extconfig;\n\nimport de.springbootbuch.extconfig.ApplicationConfig.BarProperties;\nimport de.springbootbuch.extconfig.ApplicationConfig.FooProperties;\nimpor... | java | chosen |
[
{
"from": "human",
"value": "Support for dropping files to the GUI\n"
},
{
"from": "gpt",
"value": "//----------------------------------------------------------------------------//\n// //\n// F i l e... | java | chosen |
[
{
"from": "human",
"value": "Add sample of changing user password for Windows/Linx guestOS\n"
},
{
"from": "gpt",
"value": "package com.vmware.vim25.mo.samples.guestos;\n\nimport java.net.MalformedURLException;\nimport java.rmi.RemoteException;\n\nimport com.vmware.vim25.GuestProcessInfo;\nimpor... | java | chosen |
[
{
"from": "human",
"value": "Add utility class to stop component implementing 'LifecycleAware'\nquietly."
},
{
"from": "gpt",
"value": "package cn.shiyanjun.platform.api.utils;\n\nimport cn.shiyanjun.platform.api.LifecycleAware;\n\npublic class ComponentUtils {\n\n\tpublic static void stopAllQui... | java | chosen |
[
{
"from": "human",
"value": "Create the Java Servlet for the chart.\n"
},
{
"from": "gpt",
"value": "package com.google.sps.servlets;\n\nimport com.google.gson.Gson;\nimport java.io.IOException;\nimport java.util.LinkedHashMap;\nimport java.util.Scanner;\nimport javax.servlet.annotation.WebServl... | java | chosen |
[
{
"from": "human",
"value": "Determine when a thread ends\n\nhttp://ideone.com/WrFrXb"
},
{
"from": "gpt",
"value": "// Determing when a thread ends.\n\nclass MyThread implements Runnable {\n\tint count;\n\tThread thrd;\n\t\n\t// Construct a new thread.\n\tMyThread(String name) {\n\t\tthrd = new... | java | chosen |
[
{
"from": "system",
"value": "Package hasn't changed - version doesn't need to change either.\n"
},
{
"from": "human",
"value": "/*\n * #%L\n * ACS AEM Commons Bundle\n * %%\n * Copyright (C) 2016 Adobe\n * %%\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not ... | java | chosen |
[
{
"from": "human",
"value": "Add a new convenience class for filtering feedback messages.\n\ngit-svn-id: a346edc3f722475ad04b72d65977aa35d4befd55@623 3a26569e-5468-0410-bb2f-b495330926e5\n"
},
{
"from": "gpt",
"value": "/**\n * Copyright 2010 55 Minutes (http://www.55minutes.com)\n *\n * License... | java | chosen |
[
{
"from": "human",
"value": "Set rows and columns of an mxn matrix to zero if any of the lements is\nzero.\n"
},
{
"from": "gpt",
"value": "package com.sunny.grokkingalgorithms.ctci.c1;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\n/**\n * Created by sundas on 3/13/2018.\n */\nclass ... | java | chosen |
[
{
"from": "human",
"value": "Add Solution for Prime Factor Exercise\n"
},
{
"from": "gpt",
"value": "import java.util.ArrayList;\nimport java.util.Scanner;\n\n/**\n * Created by Nathan_Zeplowitz on 4/11/15.\n */\npublic class PrimeFactors {\n public static void main(String[] args) {\n ... | java | chosen |
[
{
"from": "human",
"value": "Add performance test for use with profilers.\n"
},
{
"from": "gpt",
"value": "/*\n * To change this license header, choose License Headers in Project Properties.\n * To change this template file, choose Tools | Templates\n * and open the template in the editor.\n */\... | java | chosen |
[
{
"from": "human",
"value": "Add `@NonNullApi` to newly introduced package\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2021 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 the ... | java | chosen |
[
{
"from": "human",
"value": "Add a unit test for class path handling in SimpleJavaProcessConfig\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2017 Viktor Csomor\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 utility class for instantiating generic classes from a Guice injector.\n"
},
{
"from": "gpt",
"value": "package org.metaborg.util.inject;\n\nimport java.lang.reflect.ParameterizedType;\nimport java.lang.reflect.Type;\n\nimport com.google.inject.Injector;\nimport ... | java | chosen |
[
{
"from": "human",
"value": "Add code for Twist in the Tale 3.3\n"
},
{
"from": "gpt",
"value": "/**\n * Twist in the Tale 3.3 from the OCA Java SE 7 book by Mala Gupta (Manning Publications)\n * Created by Josef on 12/27/13.\n */\nclass Phone2 {\n public String model;\n private double wei... | java | chosen |
[
{
"from": "system",
"value": "Change lobby branding to stratus\n"
},
{
"from": "human",
"value": "package tc.oc.commons.core.format;\n\nimport javax.inject.Inject;\n\nimport net.md_5.bungee.api.chat.BaseComponent;\nimport tc.oc.commons.core.chat.Component;\n\nimport static net.md_5.bungee.api.Ch... | java | chosen |
[
{
"from": "human",
"value": "Add some more test coverage\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2014 Hippo B.V. (http://www.onehippo.com)\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * ... | java | chosen |
[
{
"from": "human",
"value": "Add number of islands 200\n"
},
{
"from": "gpt",
"value": "\n/**\n * Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. \n * An island is surrounded by water and is formed by connecting adjacent lands horizontally or vertically. \n * Yo... | java | chosen |
[
{
"from": "human",
"value": "Add example of Http Server and fix package name\n"
},
{
"from": "gpt",
"value": "/**\n * @file SimpleHttpServer.java\n * @author Valery Samovich\n * @version 1\n * @date 2015/02/06\n */\n\npackage com.samovich.specialized.httpserver;\n\nimport java.io.IOException;\ni... | java | chosen |
[
{
"from": "human",
"value": "Implement a raw sample client hammering the HTTPExampleServer with requests.\n"
},
{
"from": "gpt",
"value": "import juglr.Box;\nimport juglr.BoxParser;\nimport juglr.JSonBoxParser;\nimport juglr.net.HTTP;\nimport juglr.net.HTTPRequestWriter;\nimport juglr.net.HTTPRe... | java | chosen |
[
{
"from": "human",
"value": "Add false positive test case for interaction with assertion methods\n\n\ngit-svn-id: e7d6bde23f017c9ff4efd468d79d66def666766b@6382 eae3c2d3-9b19-0410-a86e-396b6ccb6ab3\n"
},
{
"from": "gpt",
"value": "package npe;\n\n\npublic class GuaranteedDereferenceInteractionWit... | java | chosen |
[
{
"from": "human",
"value": "Add file missing from last commit.\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2015 Hewlett-Packard Development Company, L.P.\n * Licensed under the MIT License (the \"License\"); you may not use this file except in compliance with the License.\n */\n\npackage ... | java | chosen |
[
{
"from": "human",
"value": "Add JUnit test for SelectionSort\n"
},
{
"from": "gpt",
"value": "package com.test.sorting;\n\nimport com.sorting.SelectionSort;\n\nimport junit.framework.TestCase;\n\npublic class TestSelectionSort extends TestCase {\n\n public void testSelectionSort() {\n\n ... | java | chosen |
[
{
"from": "human",
"value": "Add model for GitHub's error response.\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2015 Henrik Olsson\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 JUnit test for Application 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 ... | java | chosen |
[
{
"from": "human",
"value": "Add individual test for motors\n"
},
{
"from": "gpt",
"value": "package com.easternedgerobotics.rov.integration;\n\nimport com.easternedgerobotics.rov.event.EventPublisher;\nimport com.easternedgerobotics.rov.event.UdpEventPublisher;\nimport com.easternedgerobotics.r... | java | chosen |
[
{
"from": "human",
"value": "Check that coord_system table is the same across all databases for a species.\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (C) 2004 EBI, GRL\n * \n * This library is free software; you can redistribute it and/or modify it under the terms of the\n * GNU Lesser Ge... | java | chosen |
[
{
"from": "human",
"value": "Create Intervals from text (JSON ATM) "
},
{
"from": "gpt",
"value": "package nl.tudelft.watchdog.logic.interval.active;\n\nimport java.util.HashMap;\nimport java.util.Map;\n\nimport nl.tudelft.watchdog.util.GSONUtil;\n\n/**\n * Construct intervals from textual repre... | java | chosen |
[
{
"from": "human",
"value": "Test case to trigger build.\n\n\ngit-svn-id: 44110302500ff4d6168e3867631ad1bb4eb9722b@11199 6cd15df7-5b2d-4548-a7df-5dcce267a22b\n"
},
{
"from": "gpt",
"value": "package org.tensorics;\n\n/**\n * Created by kkrol on 29/10/2015.\n */\npublic class KamilTest {\n\n p... | java | chosen |
[
{
"from": "human",
"value": "Add JSONDataSource for jasper portlet"
},
{
"from": "gpt",
"value": "/**\n* OpenCPS is the open source Core Public Services software\n* Copyright (C) 2016-present OpenCPS community\n\n* This program is free software: you can redistribute it and/or modify\n* it under ... | java | chosen |
[
{
"from": "human",
"value": "Add datasource for pool of connections to postgres\n"
},
{
"from": "gpt",
"value": "package ro.gov.ithub.infotranspub.sql;\nimport java.io.IOException;\nimport java.sql.SQLException;\n\nimport org.apache.commons.dbcp.BasicDataSource;\n\n\npublic class DataSource {\n\... | java | chosen |
[
{
"from": "human",
"value": "Add interface for updating reddit data in an activity.\n"
},
{
"from": "gpt",
"value": "package com.antew.redditinpictures.library.interfaces;\n\nimport android.content.Intent;\n\nimport com.antew.redditinpictures.library.reddit.MySubreddits;\nimport com.antew.reddit... | java | chosen |
[
{
"from": "human",
"value": "Add JUnit testing for FloatingIPHandler class.\n\nChange-Id: I1a5dc5fb7c7bc9b4a856925bb0ff731bf0d48e8b\nSigned-off-by: Alexis de Talhouët <3f85d13b1d0fb141169e8f22f55d7ee87dcd5f00@inocybe.com>\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (c) 2015 Inocybe and oth... | java | chosen |
[
{
"from": "human",
"value": "ASN-27: Add parser for parsing IMPORTS section\n"
},
{
"from": "gpt",
"value": "/*\n * Created by brightSPARK Labs\n * www.brightsparklabs.com\n */\n\npackage com.brightsparklabs.asanti.reader.parser;\n\nimport java.text.ParseException;\nimport java.util.Map;\nimport... | java | chosen |
[
{
"from": "human",
"value": "Add solution for 371. Sum of Two Integers"
},
{
"from": "gpt",
"value": "//371. Sum of Two Integers\n/**\n * Calculate the sum of two integers a and b, \n * but you are not allowed to use the operator + and -.\n * \n * Example:\n * Given a = 1 and b = 2, return 3.\n ... | java | chosen |
[
{
"from": "human",
"value": "Add exception for event handler linking errors\n"
},
{
"from": "gpt",
"value": "/*\nCopyright (c) 2015, Colorado State University\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification,\nare permitted provided that th... | java | chosen |
[
{
"from": "human",
"value": "Add a context listener to metrics-servlet.\n\nCloses #360.\n"
},
{
"from": "gpt",
"value": "package com.codahale.metrics.servlet;\n\nimport com.codahale.metrics.MetricRegistry;\n\nimport javax.servlet.ServletContextEvent;\nimport javax.servlet.ServletContextListener;... | java | chosen |
[
{
"from": "human",
"value": "Add abstract superclass for Crypto resources\n\nNecessary for implementing scheme-independant resource management.\n\nExample: A media source needs to have ownership of a crypto resource\nwhile samples are in buffer (but not yet in the renderer).\nPiperOrigin-RevId: 241698575\n"... | java | chosen |
[
{
"from": "human",
"value": "Create skeleton for problem 78\n"
},
{
"from": "gpt",
"value": "package leetcode;\n\nimport java.util.List;\n\n/**\n * https://leetcode.com/problems/subsets/\n */\npublic class Problem78 {\n public List<List<Integer>> subsets(int[] nums) {\n return null;\n ... | java | chosen |
[
{
"from": "human",
"value": "Solve No.1008 from Baekjoon Online Judge\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2017 haeun kim\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain... | java | chosen |
[
{
"from": "human",
"value": "Add test directory and JUnit test\n"
},
{
"from": "gpt",
"value": "package com.boundary.plugin.sdk;\n\nimport static org.junit.Assert.*;\n\nimport org.junit.After;\nimport org.junit.AfterClass;\nimport org.junit.Before;\nimport org.junit.BeforeClass;\nimport org.juni... | java | chosen |
[
{
"from": "human",
"value": "Add Community nb Mini échange\n"
},
{
"from": "gpt",
"value": "import java.util.*;\nimport java.io.*;\nimport java.math.*;\n\n/**\n * Auto-generated code below aims at helping you parse\n * the standard input according to the problem statement.\n **/\nclass Solution ... | java | chosen |
[
{
"from": "human",
"value": "Add test for CustomPropertyProvider implementation.\n"
},
{
"from": "gpt",
"value": "package de.gurkenlabs.litiengine.environment.tilemap.xml;\n\nimport org.junit.Test;\n\nimport junit.framework.Assert;\n\npublic class CustomPropertyProviderTests {\n\n @Test\n publ... | java | chosen |
[
{
"from": "human",
"value": "Create a test for Spring Data\n"
},
{
"from": "gpt",
"value": "package org.wildfly.swarm.it.springdata;\n\nimport org.jboss.arquillian.drone.api.annotation.Drone;\nimport org.jboss.arquillian.junit.Arquillian;\nimport org.junit.Test;\nimport org.junit.runner.RunWith;... | java | chosen |
[
{
"from": "human",
"value": "Add tests for security for UserCreationService\n\n"
},
{
"from": "gpt",
"value": "package at.ac.tuwien.inso.method_security_tests;\n\nimport org.junit.Test;\nimport org.junit.runner.RunWith;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.... | java | chosen |
[
{
"from": "human",
"value": "Add an initial data loader class for default/test.\n"
},
{
"from": "gpt",
"value": "package hello.config.data;\n\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.con... | java | chosen |
[
{
"from": "human",
"value": "Test assumptions regarding keytool check\n\ngit-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1544901 13f79535-47bb-0310-9956-ffa450edef68\n\nFormer-commit-id: f1630236f4ad20b255344b162ec57ca38f01684d"
},
{
"from": "gpt",
"value": "/*\n * Licensed to the Apac... | java | chosen |
[
{
"from": "human",
"value": "Add a test for scheduling work when the thread is interrupted\n\ngit-svn-id: 0b89cb198aff298a3b54656df1faf72b8dabb985@2788 15291643-af16-0410-b526-a589213603f9\n"
},
{
"from": "gpt",
"value": "/*\n * JBoss, Home of Professional Open Source\n * Copyright 2007, Red Hat... | java | chosen |
[
{
"from": "human",
"value": "Add an XQuery Update Facility 1.0 parser test class.\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (C) 2016 Reece H. Dunn\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 enum that enumerates allowable gene product types.\n"
},
{
"from": "gpt",
"value": "package uk.ac.ebi.quickgo.geneproduct.common.document;\n\n/**\n * Enumeration that expresses the possible types of gene products.\n *\n * @author Ricardo Antunes\n */\npublic enum... | java | chosen |
[
{
"from": "human",
"value": "Add entity for notification_method_type table\n\nChange-Id: I85142882654f65bbf9b47b661484a7d0ccf48ea2\nPartially-implements: blueprint notification-engine-plugin\nImplements: blueprint Notification Engine Plugin System\n"
},
{
"from": "gpt",
"value": "/*\n * (C) Copy... | java | chosen |
[
{
"from": "human",
"value": "Add interface to more easily create new colour categories through extension points"
},
{
"from": "gpt",
"value": "/*-\n * Copyright 2016 Diamond Light Source Ltd.\n *\n * All rights reserved. This program and the accompanying materials\n * are made available under th... | java | chosen |
[
{
"from": "human",
"value": "Add utility class to sort EntityMessages\n"
},
{
"from": "gpt",
"value": "package org.realityforge.replicant.example.server.service.tyrelll.replicate;\n\nimport java.util.ArrayList;\nimport java.util.Collection;\nimport java.util.Collections;\nimport java.util.Compar... | java | chosen |
[
{
"from": "human",
"value": "HV-381: Add fail fast unit tests.\n"
},
{
"from": "gpt",
"value": "package org.hibernate.validator.test.engine.failfast;\n\nimport java.util.Set;\nimport javax.validation.ConstraintViolation;\nimport javax.validation.Validator;\nimport javax.validation.ValidatorFacto... | java | chosen |
[
{
"from": "human",
"value": "SO-2881: Add enum for defining the RF2 reference set export type"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2018 B2i Healthcare Pte Ltd, http://b2i.sg\n * \n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except... | java | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.