conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "human",
"value": "SO-1702: Introduce util class for booleans\n\nhttps://snowowl.atlassian.net/browse/SO-1702"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2011-2015 B2i Healthcare Pte Ltd, http://b2i.sg\n * \n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * y... | java | chosen |
[
{
"from": "human",
"value": "Add provider for map-based item name DAO.\n"
},
{
"from": "gpt",
"value": "/*\n * LensKit, an open source recommender systems toolkit.\n * Copyright 2010-2014 LensKit Contributors. See CONTRIBUTORS.md.\n * Work on LensKit has been funded by the National Science Foun... | java | chosen |
[
{
"from": "human",
"value": "Add a security configuration to support method security.\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.... | java | chosen |
[
{
"from": "human",
"value": "Add initial code for exporting to hugin .net bayesian network format.\n\ngit-svn-id: https://aic-praise.googlecode.com/svn/trunk@1300 e74e62f3-1872-5a1b-a7a8-c7220c51b9cb\n\nFormer-commit-id: fbb04eebd066b2b097c7b7aa6410cd3facfe6868"
},
{
"from": "gpt",
"value": "pac... | java | chosen |
[
{
"from": "human",
"value": "Add JMH benchmark for Deductive Sort.\n"
},
{
"from": "gpt",
"value": "package ru.ifmo.jmh;\n\nimport ru.ifmo.DeductiveSort;\nimport ru.ifmo.NonDominatedSortingFactory;\n\n@SuppressWarnings(\"unused\")\npublic class JMH_DeductiveSort extends AbstractBenchmark {\n ... | java | chosen |
[
{
"from": "system",
"value": "Add --config \"ui.merge=internal:fail\" to merge call\n"
},
{
"from": "human",
"value": "/*******************************************************************************\r\n * Copyright (c) 2008 VecTrace (Zingo Andersen) and others.\r\n * All rights reserved. This p... | java | chosen |
[
{
"from": "human",
"value": "Add new Package for encryption\n"
},
{
"from": "gpt",
"value": "package roman.com.cryptobox.Encryption;\n\n/**\n * Created by avishai on 17/09/2016.\n */\npublic class keysManager {\n\n private keysManager()\n {\n\n }\n\n\n}\n"
}
] | java | chosen |
[
{
"from": "human",
"value": "Add JUnit rule for loading fixtures into MongoDB\n"
},
{
"from": "gpt",
"value": "package com.groupon.jenkins.mongo;\n\nimport com.groupon.jenkins.SetupConfig;\nimport com.mongodb.BasicDBList;\nimport com.mongodb.BasicDBObject;\nimport com.mongodb.DB;\nimport com.mon... | java | chosen |
[
{
"from": "human",
"value": "Fix json medium format output\n"
},
{
"from": "gpt",
"value": "/* Copyright (c) 2018 Sambhav Kothari\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following condit... | java | chosen |
[
{
"from": "human",
"value": "Add camera-controls-3d bundle to 3D views\n"
},
{
"from": "gpt",
"value": "package flyway.pti3d;\n\nimport java.sql.Connection;\nimport java.sql.PreparedStatement;\nimport java.sql.ResultSet;\nimport java.sql.SQLException;\nimport java.util.ArrayList;\nimport java.ut... | java | chosen |
[
{
"from": "human",
"value": "Add interface for reddit data (subreddit, category, age), from the ImageGridActivity, since it controls the dropdown navigation.\n"
},
{
"from": "gpt",
"value": "package com.antew.redditinpictures.library.interfaces;\n\nimport com.antew.redditinpictures.library.reddi... | java | chosen |
[
{
"from": "human",
"value": "Implement PushTask to get backends from server\n"
},
{
"from": "gpt",
"value": "package com.zulip.android.networking;\n\nimport com.zulip.android.ZulipApp;\n\npublic class AsyncGetBackends extends ZulipAsyncPushTask {\n\n public AsyncGetBackends(ZulipApp app) {\n ... | java | chosen |
[
{
"from": "human",
"value": "Add class for swerve steering PID controller"
},
{
"from": "gpt",
"value": "package org.usfirst.frc.team2339.Barracuda.components;\n\nimport edu.wpi.first.wpilibj.Encoder;\nimport edu.wpi.first.wpilibj.PIDController;\nimport edu.wpi.first.wpilibj.SpeedController;\n\n... | java | chosen |
[
{
"from": "human",
"value": "Move RoundingParams vito conversion functions to util class\n\nReviewed By: oprisnik\n\nDifferential Revision: D32374624\n\nfbshipit-source-id: 5a684a2a9ab943960eb53bfc2b26255ad9395111\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (c) Facebook, Inc. and its affil... | java | chosen |
[
{
"from": "human",
"value": "Revert \"Test was not written yet but created an error\"\n\nThis reverts commit 78e654388b59326b5b13d2f9e33fba31cb14f8a6.\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (c) OSGi Alliance (2010). All Rights Reserved.\n * \n * Licensed under the Apache License, Vers... | java | chosen |
[
{
"from": "human",
"value": "Create test suite for all integration tests\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2017 Realm Inc.\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 ob... | java | chosen |
[
{
"from": "human",
"value": "Add java 9 new API features\n"
},
{
"from": "gpt",
"value": "package codesample;\n\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.Map;\nimport java.util.Set;\nimport java.util.stream.Collectors;\n\npublic class NewStuff {\n public static vo... | java | chosen |
[
{
"from": "human",
"value": "Add an abstract aggregation function to allow dynamic typing\n"
},
{
"from": "gpt",
"value": "package no.ssb.vtl.script.operations.aggregation;\n\nimport no.ssb.vtl.model.VTLNumber;\nimport no.ssb.vtl.model.VTLObject;\nimport no.ssb.vtl.model.VTLTyped;\n\nimport java... | java | chosen |
[
{
"from": "human",
"value": "Add pdf signature info test case\n"
},
{
"from": "gpt",
"value": "/**\n* OpenCPS PKI is the open source PKI Integration 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 the ... | java | chosen |
[
{
"from": "system",
"value": "Add results to LoadSessionServlet model.\n\nEach reservation may contain many results. Since clients may\nbe depending on these results we will want to keep them\nconstant when loading sessions from the CMS. This means that\nresults must be included in the model that is used to... | java | chosen |
[
{
"from": "human",
"value": "SOLR-6165: Add tests for convertType and BigDecimal implicit conversion\n\ngit-svn-id: 308d55f399f3bd9aa0560a10e81a003040006c48@1611985 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "gpt",
"value": "package org.apache.solr.handler.dataimport;\n\n/*\n * License... | java | chosen |
[
{
"from": "human",
"value": "Make the appengine-web.xml file optional in the runtime: adding test."
},
{
"from": "gpt",
"value": "/**\n * Copyright 2015 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... | java | chosen |
[
{
"from": "human",
"value": "Add backwards compatibility Hibernate dialect\n"
},
{
"from": "gpt",
"value": "package org.broadleafcommerce.common.dialect;\n\nimport org.hibernate.dialect.MySQL5InnoDBDialect;\n\n/**\n * @author Jeff Fischer\n */\npublic class Broadleaf2CompatibilityMySQL5InnoDBDia... | java | chosen |
[
{
"from": "human",
"value": "Add the missing files for HDFS-8009.\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 information\n * reg... | java | chosen |
[
{
"from": "human",
"value": "Add unit test to verify now-deprecated (and unused) method\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2016-2019 Talsma ICT\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 HTTP request keys to utilities.\n"
},
{
"from": "gpt",
"value": "/*\n *\n * * Copyright 2020 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 compliance wi... | java | chosen |
[
{
"from": "human",
"value": "Add rectangle containing a table segment\n"
},
{
"from": "gpt",
"value": "package ro.gov.ithub.infotranspub.tools.transcoder.metrorex.decode;\n\npublic class TablePosition {\n RowCol topLeft = null;\n RowCol rightBottom = null;\n\n TablePosition(RowCol topLe... | java | chosen |
[
{
"from": "human",
"value": "Add unit test showing problem\n"
},
{
"from": "gpt",
"value": "package fitnesse.testsystems.slim.result;\n\nimport fitnesse.testsystems.slim.results.SlimExceptionResult;\nimport org.junit.Test;\n\nimport static org.junit.Assert.*;\n\npublic class SlimExceptionResultT... | java | chosen |
[
{
"from": "human",
"value": "Add application utils for debug mode check\n"
},
{
"from": "gpt",
"value": "package com.amalgam.app;\n\nimport android.app.Application;\nimport android.content.pm.ApplicationInfo;\n\n/**\n * Utility for application object.\n */\npublic final class ApplicationUtils {\... | java | chosen |
[
{
"from": "human",
"value": "Add a test for MultiScanTableMapReduceUtil\n\nCheck to make sure the number of scans returned is the\nexpected number.\n"
},
{
"from": "gpt",
"value": "/**\n * Copyright 2012 Mozilla Foundation\n *\n * Licensed to the Apache Software Foundation (ASF) under one\n * or... | java | chosen |
[
{
"from": "human",
"value": "Create tests for the `ParametrizedTypeImpl` class.\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2017, TeamDev Ltd. All rights reserved.\n *\n * Redistribution and use in source and/or binary forms, with or without\n * modification, must retain the above copyrigh... | java | chosen |
[
{
"from": "human",
"value": "Add sum of nodes to root's hierarchy binary tree probblem.\n"
},
{
"from": "gpt",
"value": "package com.sunny.grokkingalgorithms.fasttrack.dynamicprogrammingandrecursion;\n\nimport com.sunny.grokkingalgorithms.ctci.c4.util.BinaryTreeNode;\nimport com.sunny.grokkingal... | java | chosen |
[
{
"from": "human",
"value": "Test the CompletableValue version of the taxonomy injector.\n"
},
{
"from": "gpt",
"value": "package uk.ac.ebi.quickgo.annotation.service.comm.rest.ontology.transformer.completablevalue;\n\nimport uk.ac.ebi.quickgo.annotation.service.comm.rest.ontology.model.BasicTax... | java | chosen |
[
{
"from": "human",
"value": "Define a message object including parsing, string generation and validation"
},
{
"from": "gpt",
"value": "package robottables;\n\npublic class Message {\n\n public class Type {\n\n public final static int INVALID = 0;\n public final static int QUERY... | java | chosen |
[
{
"from": "human",
"value": "Add JDK 5.0 annotation to suppress warnings\n\n\ngit-svn-id: e7d6bde23f017c9ff4efd468d79d66def666766b@3138 eae3c2d3-9b19-0410-a86e-396b6ccb6ab3\n"
},
{
"from": "gpt",
"value": "\npackage edu.umd.cs.findbugs.annotations;\n\nimport java.lang.annotation.*;\nimport java.... | java | chosen |
[
{
"from": "human",
"value": "Check equality btw three numbers\n"
},
{
"from": "gpt",
"value": "/*----------------------------------------------------------------\n * Author: Samuel Miravet-Verde\n * Written: 02/10/2015\n * Last updated: 02/10/2015\n *\n * Compilation: javac ex... | java | chosen |
[
{
"from": "human",
"value": "Test JSON byte array serialization\n"
},
{
"from": "gpt",
"value": "package de.vorb.platon.web.rest.json;\n\nimport com.fasterxml.jackson.core.JsonGenerator;\nimport com.fasterxml.jackson.databind.SerializerProvider;\nimport org.junit.Test;\nimport org.junit.runner.R... | java | chosen |
[
{
"from": "human",
"value": "Create a db utils class for assignments\n"
},
{
"from": "gpt",
"value": "package com.satsumasoftware.timetable.db;\n\nimport android.content.ContentValues;\nimport android.content.Context;\nimport android.database.Cursor;\nimport android.database.sqlite.SQLiteDatabas... | java | chosen |
[
{
"from": "human",
"value": "Add item loader, for now only loading samples.\n"
},
{
"from": "gpt",
"value": "\npackage com.uwetrottmann.shopr.loaders;\n\nimport android.content.Context;\n\nimport com.uwetrottmann.shopr.model.Item;\nimport com.uwetrottmann.shopr.utils.Lists;\n\nimport java.util.L... | java | chosen |
[
{
"from": "human",
"value": "Create lectureList class to provide list helper methods\n"
},
{
"from": "gpt",
"value": "package nerd.tuxmobil.fahrplan.congress;\n\nimport java.util.ArrayList;\n\npublic class LectureList extends ArrayList<Lecture> {\n\n public Lecture getLecture(String lectureId... | java | chosen |
[
{
"from": "human",
"value": "Add another example (a small calculator-like program that can do addition)\n"
},
{
"from": "gpt",
"value": "package com.jeromecompsci.dgui.examples;\n\nimport com.jeromecompsci.dgui.*;\n\n/**\n * @author Derek Wang\n */\npublic class AdditionProgram {\n\n private ... | java | chosen |
[
{
"from": "human",
"value": "Add common interface for restartable objects.\n"
},
{
"from": "gpt",
"value": "/*\n * JBoss, Home of Professional Open Source.\n * Copyright 2021, Red Hat, Inc., and individual contributors\n * as indicated by the @author tags. See the copyright.txt file in the\n * d... | java | chosen |
[
{
"from": "human",
"value": "Add java solution for 80. Remove Duplicates from Sorted Array II\n\n80. Remove Duplicates from Sorted Array II: https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/"
},
{
"from": "gpt",
"value": "package leetcode.remove_duplicates_from_sorted_array_i... | java | chosen |
[
{
"from": "human",
"value": "Improve Queue latency tests to consider the impact of encryption.\n"
},
{
"from": "gpt",
"value": "package net.openhft.chronicle.core.util;\n\nimport java.security.SecureRandom;\n\n/**\n * Created by peter on 03/02/2017.\n */\npublic class ThreadLocalSecureRandom {\n... | java | chosen |
[
{
"from": "human",
"value": "Add implementation for Topological Sort\n"
},
{
"from": "gpt",
"value": "package io.nnyy.algorithms.graph;\n\npublic class TopologicalSort\n{\n public void topologicalSort(HashMap<String, List<String>> adjList)\n {\n if (adjList == null) return;\n\n ... | java | chosen |
[
{
"from": "system",
"value": "Add a constructor that takes a cause Exception.\n\n\ngit-svn-id: becfadaebdf67c7884f0d18099f2460615305e2e@1638 c76caeb1-94fd-44dd-870f-0c9d92034fc1\n"
},
{
"from": "human",
"value": "// Copyright (c) 1999-2004 Brian Wellington (bwelling@xbill.org)\n\npackage org.xbi... | java | chosen |
[
{
"from": "human",
"value": "Add benchmark test for export item to json"
},
{
"from": "gpt",
"value": "package com.temporaryteam.noticeditor.model;\n\nimport com.carrotsearch.junitbenchmarks.BenchmarkOptions;\nimport com.carrotsearch.junitbenchmarks.BenchmarkRule;\nimport org.json.JSONException;... | java | chosen |
[
{
"from": "human",
"value": "Add new glassfish v3 command. This command allow to enable DAS mode.\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (c) 2010, Paul Merlin. All Rights Reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file ... | java | chosen |
[
{
"from": "human",
"value": "Add statement to problem 45\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": "system",
"value": "Add solution to problem 70\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 unit test for InetAddressConverter."
},
{
"from": "gpt",
"value": "/**\n * Copyright (C) 2010 the original author or authors.\n * See the notice.md file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * Licensed unde... | java | chosen |
[
{
"from": "human",
"value": "Add another way of calculating binomial coefficient\n"
},
{
"from": "gpt",
"value": "package algorithms;\n\npublic class BinomialCoefficientAdditive {\n private long[][] vals = new long[Integer.MAX_VALUE][Integer.MAX_VALUE];\n public long nChooseK(int n, int k) {\n... | java | chosen |
[
{
"from": "human",
"value": "Set test for kymograph builder\n"
},
{
"from": "gpt",
"value": "package fiji.plugin.filamentdetector.tests;\n\nimport java.util.List;\n\nimport org.scijava.Context;\nimport org.scijava.log.LogService;\n\nimport fiji.plugin.filamentdetector.detection.DetectionParamete... | java | chosen |
[
{
"from": "human",
"value": "Add missing file from the configuration refactor commit.\n"
},
{
"from": "gpt",
"value": "package com.topsy.jmxproxy;\n\nimport com.fasterxml.jackson.annotation.JsonProperty;\n\nimport com.yammer.dropwizard.json.JsonSnakeCase;\n\nimport javax.validation.constraints.M... | java | chosen |
[
{
"from": "human",
"value": "Add an init endpoint returning the type of identification required on the back\n"
},
{
"from": "gpt",
"value": "package fr.insee.pogues.webservice.rest;\n\nimport javax.ws.rs.GET;\nimport javax.ws.rs.Path;\nimport javax.ws.rs.Produces;\nimport javax.ws.rs.core.MediaT... | java | chosen |
[
{
"from": "human",
"value": "Add demo to switch font size of the whole area by CSS.\n"
},
{
"from": "gpt",
"value": "package org.fxmisc.richtext.demo;\n\nimport javafx.application.Application;\nimport javafx.scene.Scene;\nimport javafx.scene.control.Button;\nimport javafx.scene.layout.HBox;\nimp... | java | chosen |
[
{
"from": "human",
"value": "Add JUnit tests for InternalException.\n\nSigned-off-by: Patrick Pelletier <4307fca26d0353058fbfb17dc5f40867e5e6b8e6@gmail.com>\nSigned-off-by: Etienne M. Gagnon <bf06ec0eb40152cd863534753d026b021022c851@j-meg.com>\n"
},
{
"from": "gpt",
"value": "/* This file is par... | java | chosen |
[
{
"from": "human",
"value": "Create : 561 Array Partition I\n"
},
{
"from": "gpt",
"value": "import java.util.Arrays;\n\npublic class Solution {\n\n public int arrayPairSum(int[] nums) {\n\n Arrays.sort(nums);\n\n int result = 0;\n\n for (int i = 0; i < nums.length; i += ... | java | chosen |
[
{
"from": "human",
"value": "Add test for request handler\n"
},
{
"from": "gpt",
"value": "package com.scorpiac.javarant.services;\n\nimport org.testng.annotations.Test;\n\nimport java.net.URI;\n\nimport static org.testng.Assert.assertEquals;\n\npublic class RequestHandlerTest {\n @Test\n ... | java | chosen |
[
{
"from": "system",
"value": "Add getInt, getFloat, getBoolean to variables\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2014-2015 See AUTHORS file.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the Licens... | java | chosen |
[
{
"from": "human",
"value": "Add fluid inventory render class"
},
{
"from": "gpt",
"value": "package info.u_team.u_team_core.gui.render;\n\nimport net.minecraft.client.Minecraft;\nimport net.minecraft.client.renderer.texture.TextureAtlasSprite;\nimport net.minecraft.inventory.container.PlayerCon... | java | chosen |
[
{
"from": "human",
"value": "Test Sample : Test Driver (1)\nTestObject를 호출하여 테스트하는 Driver 생성\n- main 메소드에서 TestObject를 호출하도록 테스트 코드 작성"
},
{
"from": "gpt",
"value": "package co.kr.godo.test.driver;\n\npublic class TestObjectDriver {\n\n\tpublic static void main(String[] args) {\n\t\tTestObject t... | java | chosen |
[
{
"from": "human",
"value": "Add date time util class\n"
},
{
"from": "gpt",
"value": "package seedu.address.commons.util;\n\nimport java.util.Date;\n\n//@@author A0162877N\npublic class DateTimeUtil {\n\n public static final String DEFAULT_STARTTIME = \"00:00:00\";\n public static final S... | java | chosen |
[
{
"from": "human",
"value": "Add unit tests for speed conversion in DeviceDto\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (C) 2016 Datamatica (dev@datamatica.pl)\n * \n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero Gener... | java | chosen |
[
{
"from": "human",
"value": "[ENKINS-36923] Add a test for the /instance-identity root action\n"
},
{
"from": "gpt",
"value": "package jenkins.model.identity;\n\nimport com.gargoylesoftware.htmlunit.html.HtmlPage;\nimport hudson.ExtensionList;\nimport hudson.model.UnprotectedRootAction;\nimport ... | java | chosen |
[
{
"from": "human",
"value": "Add test block tags provider\n"
},
{
"from": "gpt",
"value": "package info.u_team.u_team_test.data.provider;\n\nimport info.u_team.u_team_core.data.*;\n\npublic class TestBlockTagsProvider extends CommonBlockTagsProvider {\n\t\n\tpublic TestBlockTagsProvider(Generati... | java | chosen |
[
{
"from": "system",
"value": "[multiworld] Fix client crash caused by %s in the exception message."
},
{
"from": "human",
"value": "package com.forgeessentials.multiworld;\n\npublic class MultiworldException extends Exception\n{\n\tprivate static final long serialVersionUID = 1L;\n\t\n\tpublic s... | java | chosen |
[
{
"from": "human",
"value": "Move State interface out of channels, move to core module and make it generic\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2015 Google Inc. All Rights Reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this fi... | java | chosen |
[
{
"from": "human",
"value": "Create a skeleton for problem 34\n"
},
{
"from": "gpt",
"value": "package leetcode;\n\nimport java.util.Arrays;\n\n/**\n * https://leetcode.com/problems/search-for-a-range/\n */\npublic class Problem34 {\n public int[] searchRange(int[] nums, int target) {\n ... | java | chosen |
[
{
"from": "human",
"value": "Support for Camel/Spring-WS routing using standard Spring-WS EndpointMapping implementations"
},
{
"from": "gpt",
"value": "/**\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed... | java | chosen |
[
{
"from": "human",
"value": "Fix performance regression introduced by using InetSocketAddress.getHostName()\nPatch provided by Scott Harrington, improved upon by Kris Jurka\n"
},
{
"from": "gpt",
"value": "/*-------------------------------------------------------------------------\n*\n* Copyrigh... | java | chosen |
[
{
"from": "human",
"value": "Add enum with supported 'bitcoind' notification types (ALERT, BLOCK, WALLET)\n"
},
{
"from": "gpt",
"value": "package com.neemre.btcdcli4j.core.daemon;\n\nimport lombok.AllArgsConstructor;\nimport lombok.Getter;\nimport lombok.ToString;\n\n/**An enumeration specifyin... | java | chosen |
[
{
"from": "human",
"value": "Add test for property dates\n\n"
},
{
"from": "gpt",
"value": "package com.altamiracorp.lumify.core.model.ontology;\n\nimport org.junit.Test;\nimport org.junit.runner.RunWith;\nimport org.junit.runners.JUnit4;\n\nimport java.util.TimeZone;\n\nimport static org.junit.... | java | chosen |
[
{
"from": "human",
"value": "Test that all parents are set\n\ngit-svn-id: e0a7080a86b4679b823146ccb1bf7147a527563d@12262 bf327186-88b3-11dd-a302-d386e5130c1c\n"
},
{
"from": "gpt",
"value": "package uk.org.taverna.scufl2.api.common;\n\nimport org.junit.Test;\n\nimport uk.org.taverna.scufl2.api.E... | java | chosen |
[
{
"from": "human",
"value": "Add base for wet tiles.\n"
},
{
"from": "gpt",
"value": "import java.util.*;\n\n// Wet Tiles can be found at:\n// https://open.kattis.com/problems/wettiles\n//\n// This starter program will read in the input.\n// The rest is up to you!\npublic class WetTiles {\n\n s... | java | chosen |
[
{
"from": "system",
"value": "Fix test case to work with newest version of datastax java driver\n"
},
{
"from": "human",
"value": "package com.pardot.rhombus.functional;\n\nimport static org.junit.Assert.*;\n\nimport com.datastax.driver.core.exceptions.InvalidConfigurationInQueryException;\nimpo... | java | chosen |
[
{
"from": "human",
"value": "Add new infinite scrolling setting for activity stream.\n"
},
{
"from": "gpt",
"value": "\npackage com.battlelancer.seriesguide.settings;\n\nimport android.content.Context;\nimport android.preference.PreferenceManager;\n\n/**\n * Access settings related to the activi... | java | chosen |
[
{
"from": "human",
"value": "Add skeleton GraphWidget query generator.\n\n\n\nFormer-commit-id: 993b0880adac7166cfaacf485d455257b295bb6b"
},
{
"from": "gpt",
"value": "package org.intermine.web.logic.widget;\n\nimport org.intermine.api.profile.InterMineBag;\nimport org.intermine.objectstore.Obje... | java | chosen |
[
{
"from": "human",
"value": "Add skeleton for problem 55\n"
},
{
"from": "gpt",
"value": "package leetcode;\n\npublic class Problem55 {\n public boolean canJump(int[] nums) {\n for (int i = 0; i < nums.length; i++) {\n }\n return false;\n }\n \n public static voi... | java | chosen |
[
{
"from": "system",
"value": "Remove @Component - client spring config should configure this bean if its required\n"
},
{
"from": "human",
"value": "package com.mangofactory.swagger.configuration;\n\nimport com.fasterxml.jackson.module.scala.DefaultScalaModule;\nimport org.springframework.beans.... | java | chosen |
[
{
"from": "human",
"value": "Send 406 codes when appropriate\n\n\nFormer-commit-id: e9acf252c1e2123e7f5935c6003ee0b3289fb625"
},
{
"from": "gpt",
"value": "package org.intermine.webservice.server.exceptions;\n\nimport org.intermine.webservice.server.output.Output;\n\npublic class UnauthorizedExc... | java | chosen |
[
{
"from": "human",
"value": "Add the servlet that gets a list of all the product sets available\n"
},
{
"from": "gpt",
"value": "package com.google.sps.servlets;\n \n\nimport javax.servlet.annotation.WebServlet;\nimport javax.servlet.http.HttpServlet;\nimport javax.servlet.http.HttpServletReques... | java | chosen |
[
{
"from": "human",
"value": "Create no fragment chosen view.\n"
},
{
"from": "gpt",
"value": "package com.jshoresdevelopment.conversioncalculator;\n\nimport android.os.Bundle;\nimport android.support.v4.app.Fragment;\nimport android.view.LayoutInflater;\nimport android.view.View;\nimport android... | java | chosen |
[
{
"from": "human",
"value": "Add some utility tests for the `StreamObservers` utility class.\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2017, TeamDev Ltd. All rights reserved.\n *\n * Redistribution and use in source and/or binary forms, with or without\n * modification, must retain the a... | java | chosen |
[
{
"from": "human",
"value": "Add interface for compile-time DI of PlayFOP into Java apps\n"
},
{
"from": "gpt",
"value": "package com.dmanchester.playfop.japi;\n\nimport com.dmanchester.playfop.jinternal.PlayFopImpl;\n\n/**\n * An interface for dependency-injecting PlayFOP into Java applications... | java | chosen |
[
{
"from": "human",
"value": "Verify that instanceId is accessible from plugins\n\nAdd integration tests to verify that instanceId is accessible from\nplugins.\n\nFeature: Issue 12730\nChange-Id: I4094cb5a7b75641214c3d89d9db978afb37dd611\n"
},
{
"from": "gpt",
"value": "// Copyright (C) 2020 The ... | java | chosen |
[
{
"from": "human",
"value": "Add a test for PlainResultFormatter.\n\nI still think it needs some encoding work."
},
{
"from": "gpt",
"value": "package com.googlecode.jslint4java.ant;\n\nimport com.googlecode.jslint4java.Issue;\nimport com.googlecode.jslint4java.Issue.IssueBuilder;\nimport java.i... | java | chosen |
[
{
"from": "human",
"value": "Move bidi string<->stringlist converter here\n"
},
{
"from": "gpt",
"value": "package to.etc.domui.converter;\n\nimport org.eclipse.jdt.annotation.Nullable;\nimport to.etc.domui.component.binding.IBidiBindingConverter;\n\nimport java.util.Arrays;\nimport java.util.Co... | java | chosen |
[
{
"from": "human",
"value": "Make cooperation with library easier\n"
},
{
"from": "gpt",
"value": "package service;\n\nimport java.util.HashMap;\n\nimport net.sourceforge.scuba.smartcards.IResponseAPDU;\n\n/**\n * Simple type declaration for a HashMap containing responses to protocol commands.\n... | java | chosen |
[
{
"from": "human",
"value": "Add java solution for 235. Lowest Common Ancestor of a Binary Search Tree\n\n235. Lowest Common Ancestor of a Binary Search Tree: https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/"
},
{
"from": "gpt",
"value": "package leetcode.lowest_comm... | java | chosen |
[
{
"from": "human",
"value": "Add a demo for the Start class\n"
},
{
"from": "gpt",
"value": "package org.svetovid.demo;\r\n\r\nimport org.svetovid.run.Start;\r\n\r\npublic class Calculator {\r\n\r\n public static class Inner {\r\n public int add(int a) {\r\n return a + 1;\r\... | java | chosen |
[
{
"from": "human",
"value": "Test to check string links are correctly formatted and evidence codes\n"
},
{
"from": "gpt",
"value": "/*\n * The Gemma project\n * \n * Copyright (c) 2010 University of British Columbia\n * \n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * y... | java | chosen |
[
{
"from": "human",
"value": "Add a simple generator. This should be encoded.\n"
},
{
"from": "gpt",
"value": "package org.realityforge.replicant.example.server.service.tyrell;\n\nimport java.util.LinkedList;\nimport java.util.List;\nimport javax.annotation.Nonnull;\nimport javax.annotation.Nulla... | java | chosen |
[
{
"from": "human",
"value": "Add view pager adapter for handsign\n"
},
{
"from": "gpt",
"value": "package com.stefanhoth.ropasclisp.playing;\n\nimport android.support.v4.app.Fragment;\nimport android.support.v4.app.FragmentManager;\nimport android.support.v4.app.FragmentPagerAdapter;\n\nclass Ha... | java | chosen |
[
{
"from": "human",
"value": "Create a basic Appender for log4j2\n"
},
{
"from": "gpt",
"value": "package net.kencochrane.raven.log4j2;\n\nimport net.kencochrane.raven.Raven;\nimport net.kencochrane.raven.event.Event;\nimport net.kencochrane.raven.event.EventBuilder;\nimport net.kencochrane.raven... | java | chosen |
[
{
"from": "human",
"value": "Fix test cases after HEMERA-2994\n"
},
{
"from": "gpt",
"value": "package com.camunda.fox.cycle.connector.test.util;\n\nimport org.springframework.context.annotation.Bean;\nimport org.springframework.context.annotation.Configuration;\n\nimport com.camunda.fox.cycle.c... | java | chosen |
[
{
"from": "human",
"value": "Extend Service to manage subscriptions."
},
{
"from": "gpt",
"value": "package it.smartcommunitylab.aac.apimanager.model;\n\nimport it.smartcommunitylab.aac.jaxbmodel.Service;\n\npublic class ExtendedService extends Service {\n\n\tprivate String apiId;\n\tprivate Str... | java | chosen |
[
{
"from": "human",
"value": "Add unit test related to VFS-519\n\ngit-svn-id: c455d203a03ec41bf444183aad31e7cce55db786@1640486 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "gpt",
"value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license ag... | java | chosen |
[
{
"from": "human",
"value": "Create a RecyclerView adapter for displaying terms\n"
},
{
"from": "gpt",
"value": "package com.satsumasoftware.timetable.ui.adapter;\n\nimport android.support.v7.widget.RecyclerView;\nimport android.view.LayoutInflater;\nimport android.view.View;\nimport android.vie... | java | chosen |
[
{
"from": "human",
"value": "Add some initial thoughts on simplifying the transaction API\n\nPossible to create a simpler model for handling transactions compared to\nolder proton-j by making the coordinator a first class citizen of the\nAPI."
},
{
"from": "gpt",
"value": "/*\n * Licensed to the... | java | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.