conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "human",
"value": "Move serializable session object here for the use of score & score-content projects\n"
},
{
"from": "gpt",
"value": "package com.hp.oo.sdk.content.plugin;\n\nimport java.io.Serializable;\n\n/**\n * Created by IntelliJ IDEA.\n * User: maromben\n * Date: 3/19/12\n * Ti... | java | chosen |
[
{
"from": "human",
"value": "Disable automatic HttpOnly protection on session cookies\n"
},
{
"from": "gpt",
"value": "package se.omegapoint.facepalm.client.config;\n\nimport org.apache.catalina.Context;\nimport org.springframework.boot.context.embedded.EmbeddedServletContainerFactory;\nimport o... | java | chosen |
[
{
"from": "human",
"value": "Add helper factory to create intents for app uninstall\n"
},
{
"from": "gpt",
"value": "package de.philipphager.disclosure.util.device;\n\nimport android.content.Intent;\nimport android.net.Uri;\nimport javax.inject.Inject;\n\npublic class IntentFactory {\n public I... | java | chosen |
[
{
"from": "human",
"value": "[Java] Use shutdown hook to ensure execute statements at the end.\n"
},
{
"from": "gpt",
"value": "class ShutdownHook {\n static public void main(String[] args) throws Exception {\n Runtime.getRuntime().addShutdownHook(new Thread() {\n public voi... | java | chosen |
[
{
"from": "human",
"value": "Check for duplicate entries in the publication table as they are imported from different sources using different primary unique ids\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (C) 2004 EBI, GRL\n * \n * This library is free software; you can redistribute it and... | java | chosen |
[
{
"from": "human",
"value": "Add Logging progress monitor (unused)"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2014 MovingBlocks\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a... | java | chosen |
[
{
"from": "human",
"value": "Add methods for easy checking if db has table\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2016 Exorath\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 obt... | java | chosen |
[
{
"from": "human",
"value": "Add missing file from previous commit.\n\n\ngit-svn-id: 57163235a1b6531f4315e4c2085541e4e396aa2c@1127810 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "gpt",
"value": "/**\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor l... | java | chosen |
[
{
"from": "human",
"value": "Build reverse map from title to productId\n"
},
{
"from": "gpt",
"value": "package com.isuraed.insight;\n\nimport java.io.IOException;\n\nimport org.apache.hadoop.conf.Configuration;\nimport org.apache.hadoop.fs.Path;\nimport org.apache.hadoop.io.LongWritable;\nimpor... | java | chosen |
[
{
"from": "human",
"value": "Add Utility class for Recipes\n"
},
{
"from": "gpt",
"value": "package com.example.profbola.bakingtime.utils;\n\nimport android.content.Context;\n\n/**\n * Created by prof.BOLA on 7/6/2017.\n */\n\npublic class RecipeUtils {\n\n public static int getResourceIdFrom... | java | chosen |
[
{
"from": "human",
"value": "Add message for bulk subscribe\n"
},
{
"from": "gpt",
"value": "package replicant.messages;\n\nimport java.util.Objects;\nimport javax.annotation.Nonnull;\nimport javax.annotation.Nullable;\nimport jsinterop.annotations.JsOverlay;\nimport jsinterop.annotations.JsPack... | java | chosen |
[
{
"from": "human",
"value": "Add a little app to split up a huge TcpDump file into individual traces\n"
},
{
"from": "gpt",
"value": "package edu.colorado.cs.tcpstate;\n\nimport java.io.File;\nimport java.io.FileInputStream;\nimport java.io.FileWriter;\nimport java.io.InputStream;\nimport java.u... | java | chosen |
[
{
"from": "human",
"value": "Add unit tests to build.xml.\n\ngit-svn-id: 311fcc5b8b03427d323cee07bbb9e5a14d8d22e9@328 728ff76a-78ac-11de-a72b-d90af8dea425\n"
},
{
"from": "gpt",
"value": "/*\n ************************************************************************\n **** C A N A D I A N A S ... | java | chosen |
[
{
"from": "human",
"value": "Build playlist demo for WavPlayer\n"
},
{
"from": "gpt",
"value": "package com.haxademic.demo.media.audio.playback;\n\nimport com.haxademic.core.app.P;\nimport com.haxademic.core.app.PAppletHax;\nimport com.haxademic.core.media.audio.analysis.AudioInputBeads;\nimport... | java | chosen |
[
{
"from": "human",
"value": "Solve No.8393 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": "system",
"value": "Initialize the ApplicationModule for Dagger.\n"
},
{
"from": "human",
"value": "package com.studio4plus.homerplayer;\n\nimport android.app.Application;\nimport android.content.Context;\nimport android.content.Intent;\nimport android.content.IntentFilter;\n\npublic c... | java | chosen |
[
{
"from": "human",
"value": "Add the basic move factory\n"
},
{
"from": "gpt",
"value": "package io.github.ddebree.game.ai.core.move;\n\nimport javax.annotation.Nonnull;\nimport java.util.stream.Stream;\n\n/**\n * A factory class that generates all possible move for the player at a particular ga... | java | chosen |
[
{
"from": "human",
"value": "Add unit test for valuestorage\n\ngit-svn-id: f26ccc5efe72c2bd8e1c40f599fe313f2692e4de@6838 a612230a-c5fa-0310-af8b-88eea846685b\n"
},
{
"from": "gpt",
"value": "/*\n * \n * \n * Copyright (C) 2006 SIPfoundry Inc.\n * Licensed by SIPfoundry under the LGPL license.\n ... | java | chosen |
[
{
"from": "human",
"value": "Add solution to Making anagrams problem.\n"
},
{
"from": "gpt",
"value": "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.HashMap;\nimport java.util.Map;\n\n// https://www.hackerrank.com/challenges/ctci... | java | chosen |
[
{
"from": "human",
"value": "Add initial unit-test for FirmataParser\n"
},
{
"from": "gpt",
"value": "package org.firmata4j.firmata.parser;\n\nimport static org.junit.Assert.assertEquals;\n\nimport java.util.concurrent.atomic.AtomicInteger;\n\nimport org.firmata4j.fsm.Event;\nimport org.junit.Af... | java | chosen |
[
{
"from": "human",
"value": "Add SDM coreset version for sparse data\n"
},
{
"from": "gpt",
"value": "package univ.ml.sparse.algorithm;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\nimport org.apache.commons.math3.linear.RealVector;\n\nimport univ.ml.sparse.SparseCentroidCluster;\nim... | java | chosen |
[
{
"from": "human",
"value": "Convert cron job to job\n"
},
{
"from": "gpt",
"value": "package io.kubernetes.client.util.conversion;\n\nimport io.kubernetes.client.openapi.models.V1Job;\nimport io.kubernetes.client.openapi.models.V1JobSpec;\nimport io.kubernetes.client.openapi.models.V1ObjectMeta... | java | chosen |
[
{
"from": "human",
"value": "Add unit test for ActiveContainerStatistics\n"
},
{
"from": "gpt",
"value": "package com.yahoo.jdisc.core;\n\nimport com.yahoo.jdisc.Metric;\nimport com.yahoo.jdisc.ResourceReference;\nimport com.yahoo.jdisc.test.TestDriver;\nimport org.junit.Test;\n\nimport java.uti... | java | chosen |
[
{
"from": "human",
"value": "Add new type representing inline PR comment\n"
},
{
"from": "gpt",
"value": "package com.btkelly.gnag.models;\n\nimport com.google.gson.annotations.SerializedName;\nimport org.jetbrains.annotations.NotNull;\n\npublic final class GitHubPRComment {\n\n @NotNull\n ... | java | chosen |
[
{
"from": "human",
"value": "Include test forcing all String config keys to empty value\n"
},
{
"from": "gpt",
"value": "/*\n * (C) Copyright 2018 Boni Garcia (http://bonigarcia.github.io/)\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file ex... | java | chosen |
[
{
"from": "system",
"value": "Set collection name to 'null' rather than a placeholder for inline\nresults\n"
},
{
"from": "human",
"value": "// MapReduceOutput.java\n\npackage com.mongodb;\n\n/**\n * Represents the result of a map/reduce operation\n * @author antoine\n */\npublic class MapReduce... | java | chosen |
[
{
"from": "system",
"value": "Revert change 00342e052b17 to fix sshlibrary on standalone jar.\n\nUpdate issue 1311\nStatus: Done\n\nRevert change 00342e052b17 to fix sshlibrary on standalone jar.\n"
},
{
"from": "human",
"value": "/* Copyright 2008-2012 Nokia Siemens Networks Oyj\n *\n * License... | java | chosen |
[
{
"from": "human",
"value": "[KARAF-857] Add the OBR command support.\n\ngit-svn-id: 23a5554d8b20ee894ad801d0a5fe136f33ef549e@1170640 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "gpt",
"value": "/*\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use... | java | chosen |
[
{
"from": "human",
"value": "Add many robot combat test"
},
{
"from": "gpt",
"value": "package raw;\n\nimport static org.junit.Assert.assertTrue;\nimport robocode.BattleResults;\nimport robocode.control.events.BattleCompletedEvent;\nimport robocode.control.events.BattleMessageEvent;\nimport robo... | java | chosen |
[
{
"from": "system",
"value": "Fix test data once again\n"
},
{
"from": "human",
"value": "package com.siyeh.ipp.opassign.assignment;\n\nclass StringOpassign {\n\n void foo(String s) {\n s += 1<caret>.0;\n }\n}"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2000-2012 JetBrains s... | java | chosen |
[
{
"from": "human",
"value": "Add trivial splitting strategy, assuming that the file is pre-ordered.\n"
},
{
"from": "gpt",
"value": "package de.lmu.ifi.dbs.elki.index.tree.spatial.rstarvariants.bulk;\n\n/*\n This file is part of ELKI:\n Environment for Developing KDD-Applications Supported by In... | java | chosen |
[
{
"from": "human",
"value": "Add Senor class *not finished*\n"
},
{
"from": "gpt",
"value": "import java.lang.String;\nimport java.net.*;\nimport java.io.*;\n\nimport org.json.*;\n\npublic class Sensor {\n\n private final static int MESSAGE_TAB_SIZE = 100;\n\n private static int sensorId = 0;\... | java | chosen |
[
{
"from": "human",
"value": "Add unit test for RegexTemplate.\n"
},
{
"from": "gpt",
"value": "package com.basgeekball.awesomevalidation.utility;\n\nimport junit.framework.TestCase;\n\nimport java.util.regex.Pattern;\n\npublic class RegexTemplateTest extends TestCase {\n\n @Override\n prot... | java | chosen |
[
{
"from": "human",
"value": "Add tests for likeValue and dislikeValue.\n"
},
{
"from": "gpt",
"value": "\npackage com.uwetrottmann.shopr.algorithm.test;\n\nimport static org.fest.assertions.api.Assertions.assertThat;\n\nimport com.uwetrottmann.shopr.algorithm.AdaptiveSelection;\n\nimport org.jun... | java | chosen |
[
{
"from": "system",
"value": "Update missed file to UTF-8 encoding.\n"
},
{
"from": "human",
"value": "package com.emilsjolander.components.StickyListHeaders;\n\nimport android.content.Context;\nimport android.view.View;\nimport android.widget.LinearLayout;\n/**\n * \n * @author Emil Sjlander\n ... | java | chosen |
[
{
"from": "human",
"value": "Create 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 Public License,\n * v. 2.0. If a copy of the MPL was not distributed with this file, Y... | java | chosen |
[
{
"from": "human",
"value": "Add N choose R mod prime\n"
},
{
"from": "gpt",
"value": "package com.williamfiset.algorithms.math;\n\nimport java.math.BigInteger;\n\npublic class NChooseRModPrime {\n /**\n * Calculate the value of C(N, R) % P using Fermat's Little Theorem.\n *\n * @param N\... | java | chosen |
[
{
"from": "human",
"value": "Add existing tests from Daily Fratze\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2016 EuregJUG.\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 c... | java | chosen |
[
{
"from": "human",
"value": "Add tests for the XQuery language 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.\n * You ma... | java | chosen |
[
{
"from": "human",
"value": "Add class responsible for IO operations\n"
},
{
"from": "gpt",
"value": "/**\n * Project RSA Algorithm.\n * Copyright Michał Szczygieł.\n * Created at Feb 25, 2014.\n */\n\n/**\n * \n * This class is responsible for safe operations on files. This class contatin\n * t... | java | chosen |
[
{
"from": "human",
"value": "Add test using MainCluster class for better coverage\n"
},
{
"from": "gpt",
"value": "package okapi;\n\nimport com.jayway.restassured.RestAssured;\nimport com.jayway.restassured.response.Response;\nimport guru.nidi.ramltester.RamlDefinition;\nimport guru.nidi.ramltes... | java | chosen |
[
{
"from": "system",
"value": "Change cucumber test tag to not run by default\n"
},
{
"from": "human",
"value": "/**\n * Copyright Microsoft Corporation\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": "SOLR-6951: Add basic testing for test ObjectReleaseTracker.\n\ngit-svn-id: 308d55f399f3bd9aa0560a10e81a003040006c48@1650916 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "gpt",
"value": "package org.apache.solr.util;\n\n/*\n * Licensed to the Apache Software F... | java | chosen |
[
{
"from": "human",
"value": "Add time zone table viewr display name column\n"
},
{
"from": "gpt",
"value": "package com.bodastage.e4.clock.ui.internal;\n\nimport java.time.ZoneId;\nimport java.time.format.TextStyle;\nimport java.util.Locale;\n\npublic class TimeZoneDisplayNameColumn extends Time... | java | chosen |
[
{
"from": "human",
"value": "Add Cross Origin Request Filter\n"
},
{
"from": "gpt",
"value": "/*\n * This file is part of COMPASS. It is subject to the license terms in\n * the LICENSE file found in the top-level directory of this distribution.\n * (Also available at http://www.apache.org/licens... | java | chosen |
[
{
"from": "human",
"value": "Add java solution for 141. Linked List Cycle\n\n141. Linked List Cycle: https://leetcode.com/problems/linked-list-cycle/"
},
{
"from": "gpt",
"value": "package leetcode.linked_list_cycle;\n\nimport common.ListNode;\n\npublic class Solution {\n\tpublic boolean hasCycl... | java | chosen |
[
{
"from": "human",
"value": "Add unit test for deep copy\n"
},
{
"from": "gpt",
"value": "package org.modelmapper.functional.config;\r\n\r\nimport org.modelmapper.AbstractTest;\r\nimport org.testng.annotations.BeforeMethod;\r\nimport org.testng.annotations.Test;\r\n\r\nimport static org.testng.A... | java | chosen |
[
{
"from": "human",
"value": "Put in placeholders for client service broker integration tests\n\nWaiting for story https://www.pivotaltracker.com/story/show/118387501.\n\n[#114250797]\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2013-2016 the original author or authors.\n *\n * Licensed unde... | java | chosen |
[
{
"from": "human",
"value": "Add class to compute transitive NFA epsilon transitions.\n\nSigned-off-by: Etienne M. Gagnon <bf06ec0eb40152cd863534753d026b021022c851@j-meg.com>\n"
},
{
"from": "gpt",
"value": "/* This file is part of SableCC ( http://sablecc.org ).\n * \n * See the NOTICE file dis... | java | chosen |
[
{
"from": "human",
"value": "[Genomics]: Add a class which can be used to extract binaries from inside the\nJAR file.\n"
},
{
"from": "gpt",
"value": "package com.github.sparkcaller.utils;\n\nimport java.io.*;\n\npublic class FileExtractor {\n\n public static String extractExecutable(String r... | java | chosen |
[
{
"from": "human",
"value": "Add unit test for VenmoRequest.\n\nSigned-off-by: Steven Shropshire <e0eaefab33cb0c3d300c8879d154a2846a56c9dd@getbraintree.com>\n"
},
{
"from": "gpt",
"value": "package com.braintreepayments.api;\n\nimport org.junit.Test;\n\nimport static org.junit.Assert.*;\n\npubli... | java | chosen |
[
{
"from": "human",
"value": "Add some tests around geometry types\n"
},
{
"from": "gpt",
"value": "package fgis.server.support.geojson;\n\nimport org.geolatte.geom.Geometry;\nimport org.testng.annotations.Test;\nimport static org.testng.Assert.*;\n\npublic final class GjGeometryTest\n extends A... | java | chosen |
[
{
"from": "human",
"value": "Add PDF transform for London School of Economics PDF files\n\n\ngit-svn-id: 293778eaa97c8c94097d610b1bd5133a8f478f36@10303 4f837ed2-42f5-46e7-a7a5-fa17313484d4\n"
},
{
"from": "gpt",
"value": "/*\n * $Id: LondonSchoolOfEconomicsPdfTransform.java,v 1.1 2010-11-12 22:2... | java | chosen |
[
{
"from": "human",
"value": "Add Glide app module for OkHttp integration.\n\nChange-Id: Iae4a870af274e7bda6ce1fad845a93c67141715a\n"
},
{
"from": "gpt",
"value": "package org.wikipedia.dataclient.okhttp;\n\nimport android.content.Context;\n\nimport androidx.annotation.NonNull;\n\nimport com.bump... | java | chosen |
[
{
"from": "human",
"value": "Create : 235 Lowest Common Ancestor of a Binary Search Tree\n"
},
{
"from": "gpt",
"value": "/**\n * Definition for a binary tree node.\n * public class TreeNode {\n * int val;\n * TreeNode left;\n * TreeNode right;\n * TreeNode(int x) { val = x; }\n ... | java | chosen |
[
{
"from": "human",
"value": "Add common deferred register that encapsulate the deferred register (to\nadd methods easier)"
},
{
"from": "gpt",
"value": "package info.u_team.u_team_core.util.registry;\n\nimport java.util.*;\nimport java.util.function.Supplier;\n\nimport net.minecraftforge.eventbu... | java | chosen |
[
{
"from": "human",
"value": "KCIAC-120: Create authorizer and permission for IACUC Custom Data\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2005-2010 The Kuali Foundation\n * \n * Licensed under the Educational Community License, Version 2.0 (the \"License\");\n * you may not use this file ... | java | chosen |
[
{
"from": "human",
"value": "Add package information for dataset.feature\n"
},
{
"from": "gpt",
"value": "/*\nCopyright (c) 2013, Colorado State University\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification,\nare permitted provided that the f... | java | chosen |
[
{
"from": "human",
"value": "Create logger for easier debugging\n"
},
{
"from": "gpt",
"value": "/*\r\n * Copyright 2015 The ISTLab. Use of this source code is governed by a GNU AFFERO GPL 3.0 license\r\n * that can be found in the LICENSE file.\r\n */\r\n\r\npackage gr.aueb.dmst.istlab.unixtool... | java | chosen |
[
{
"from": "human",
"value": "Add Unique Binary Search Trees 2\n"
},
{
"from": "gpt",
"value": "package problems;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class UniqueBinarySearchTrees2 {\n\n public class TreeNode {\n int val;\n TreeNode left, right;\n\n ... | java | chosen |
[
{
"from": "human",
"value": "Add a temporary dummy class for allowing javadoc to pass.\nThis is because javadoc requires to have at least one class to document.\n"
},
{
"from": "gpt",
"value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agre... | java | chosen |
[
{
"from": "human",
"value": "Add example of covariance support for scenarios\n"
},
{
"from": "gpt",
"value": "package com.github.havarunner.scenarios.covariant;\n\nimport com.github.havarunner.HavaRunner;\nimport com.github.havarunner.annotation.Scenarios;\nimport com.google.common.collect.Lists... | java | chosen |
[
{
"from": "human",
"value": "Fix already used migration number\n"
},
{
"from": "gpt",
"value": "package flyway.olcesium;\n\nimport fi.nls.oskari.domain.map.view.Bundle;\nimport fi.nls.oskari.domain.map.view.View;\nimport fi.nls.oskari.log.LogFactory;\nimport fi.nls.oskari.log.Logger;\nimport fi.... | java | chosen |
[
{
"from": "human",
"value": "Add Zeroless Signed Digit left-to-right multiplier"
},
{
"from": "gpt",
"value": "package org.bouncycastle.math.ec;\n\nimport java.math.BigInteger;\n\nclass ZSignedDigitL2RMultiplier implements ECMultiplier\n{\n /**\n * 'Zeroless' Signed Digit Left-to-Right.\n... | java | chosen |
[
{
"from": "human",
"value": "Add some simple tests to make sure extract scheme behaves as expected.\n\ngit-svn-id: c455d203a03ec41bf444183aad31e7cce55db786@1237945 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "gpt",
"value": "package org.apache.commons.vfs2.provider;\r\n\r\nimport junit.... | java | chosen |
[
{
"from": "human",
"value": "Add main(), calling into FMLClientHandler\n"
},
{
"from": "gpt",
"value": "package agaricus.mods.mlia;\n\nimport cpw.mods.fml.client.FMLClientHandler;\nimport net.minecraft.client.Minecraft;\n\npublic class Main {\n\n public static void main(String[] args) {\n\n ... | java | chosen |
[
{
"from": "human",
"value": "Add event listeners to update projections\n"
},
{
"from": "gpt",
"value": "package br.holandajunior.workaday.projections;\n\nimport br.holandajunior.workaday.events.point.PointCreated;\nimport br.holandajunior.workaday.events.user.UserCreated;\nimport br.holandajunio... | java | chosen |
[
{
"from": "human",
"value": "Swap two numbers without using third variable\n"
},
{
"from": "gpt",
"value": "import java.io.*;\n\npublic class SwapTwoNumbers{\n public static void main(String args[]){\n int x = 10;\n int y = 20;\n \n //before\n System.out.pri... | java | chosen |
[
{
"from": "human",
"value": "Read an array of bytes from the keyboard\n\nhttp://ideone.com/l0HFKH"
},
{
"from": "gpt",
"value": "// Read an array of bytes from the keyboard.\n\nimport java.io.*;\n\nclass ReadBytes {\n\tpublic static void main(String args[]) throws IOException {\n\t\tbyte data[] ... | java | chosen |
[
{
"from": "human",
"value": "Add test for listeners entry test\n"
},
{
"from": "gpt",
"value": "package org.realityforge.replicant.client;\n\nimport org.testng.annotations.Test;\nimport static org.testng.Assert.*;\n\npublic class ListenerEntryTest\n{\n @Test\n public void basicConstruction()\n... | java | chosen |
[
{
"from": "human",
"value": "Convert TrecText to simple json gz\n"
},
{
"from": "gpt",
"value": "package jfoley.vocabpress;\n\nimport ciir.jfoley.chai.io.IO;\nimport ciir.jfoley.chai.string.StrUtil;\nimport org.lemurproject.galago.core.parse.Document;\nimport org.lemurproject.galago.core.parse.T... | java | chosen |
[
{
"from": "system",
"value": "Remove Spring Boot example code.\n"
},
{
"from": "human",
"value": "package hello;\n\nimport java.util.Arrays;\n\nimport org.springframework.boot.CommandLineRunner;\nimport org.springframework.boot.SpringApplication;\nimport org.springframework.boot.autoconfigure.Sp... | java | chosen |
[
{
"from": "human",
"value": "[ui] Add tests on content assist.\n\nclose #607\n\nSigned-off-by: Stéphane Galland <23860b554af9116d4237121086bd6767cdd4ff4b@arakhne.org>\n"
},
{
"from": "gpt",
"value": "/*\n * $Id$\n *\n * SARL is an general-purpose agent programming language.\n * More details on h... | java | chosen |
[
{
"from": "human",
"value": "[COLAB-2500] Add basic tests for grouping helper\n"
},
{
"from": "gpt",
"value": "package org.xcolab.util;\n\nimport org.junit.Assert;\nimport org.junit.Test;\n\nimport java.util.Arrays;\nimport java.util.Collections;\nimport java.util.HashMap;\nimport java.util.Hash... | java | chosen |
[
{
"from": "human",
"value": "Solve question 18 in java\n"
},
{
"from": "gpt",
"value": "public class Solution {\n public static String lookAndSay(String s) {\n StringBuilder sb = new StringBuilder();\n int i = 0;\n while (i < s.length()) {\n char cur = s.charAt... | java | chosen |
[
{
"from": "human",
"value": "Add E2E test for the SC JSON payload controller\n"
},
{
"from": "gpt",
"value": "package uk.ac.ebi.atlas.experimentpage;\n\nimport org.junit.Before;\nimport org.junit.Test;\nimport org.junit.runner.RunWith;\nimport org.springframework.beans.factory.annotation.Autowir... | java | chosen |
[
{
"from": "human",
"value": "Define a harmonic mean algorithm\n"
},
{
"from": "gpt",
"value": "/*\n * Zorbage: an algebraic data hierarchy for use in numeric processing.\n *\n * Copyright (C) 2016-2020 Barry DeZonia\n * \n * Redistribution and use in source and binary forms, with or without\n * ... | java | chosen |
[
{
"from": "human",
"value": "Add benchmark for splitting multi-query string\n"
},
{
"from": "gpt",
"value": "/*\n * Licensed to Crate under one or more contributor license agreements.\n * See the NOTICE file distributed with this work for additional\n * information regarding copyright ownership.... | java | chosen |
[
{
"from": "human",
"value": "Define an interface that allows Overlays to redraw\n\nThere might be better ways of doing this. But this allows an Overlay\nto update its graphics in the graphic library of choice.\n"
},
{
"from": "gpt",
"value": "/*\n * #%L\n * ImageJ software for multidimensional i... | java | chosen |
[
{
"from": "human",
"value": "Add SQL Server PreparedStatement lifecycle test\n"
},
{
"from": "gpt",
"value": "package com.vladmihalcea.book.hpjp.jdbc.caching;\n\nimport com.vladmihalcea.book.hpjp.util.AbstractOracleIntegrationTest;\nimport com.vladmihalcea.book.hpjp.util.AbstractSQLServerIntegra... | java | chosen |
[
{
"from": "human",
"value": "Add false positive test case for -effort:more\n\n\ngit-svn-id: e7d6bde23f017c9ff4efd468d79d66def666766b@6268 eae3c2d3-9b19-0410-a86e-396b6ccb6ab3\n"
},
{
"from": "gpt",
"value": "package npe;\n\nimport java.util.logging.Level;\nimport java.util.logging.Logger;\n\npub... | java | chosen |
[
{
"from": "system",
"value": "Fix concurrent modification exception when switching root\n"
},
{
"from": "human",
"value": "package com.reactnativenavigation.events;\n\nimport java.lang.ref.WeakReference;\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.ListIterator;\n\npubl... | java | chosen |
[
{
"from": "human",
"value": "Add FS master client for workers\n"
},
{
"from": "gpt",
"value": "/*\n * Licensed to the University of California, Berkeley under one or more contributor license\n * agreements. See the NOTICE file distributed with this work for additional information regarding\n * c... | java | chosen |
[
{
"from": "human",
"value": "Use StyledText instead of Text in RSV editors\n\nFormer-commit-id: 02c8a1fe545ef55dd178c818de24ce028555c842"
},
{
"from": "gpt",
"value": "package org.jkiss.dbeaver.ui.controls;\r\n\r\nimport org.eclipse.swt.custom.StyledText;\r\nimport org.eclipse.swt.widgets.Compos... | java | chosen |
[
{
"from": "human",
"value": "Add JUnit test for Param 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 javax.xml.namespace.QName;\n\nimport org.junit.Before;\nimport or... | java | chosen |
[
{
"from": "human",
"value": "Move FieldCallBack to own test\n"
},
{
"from": "gpt",
"value": "package com.slackworks.modelcitizen.field;\n\nimport static org.junit.Assert.assertEquals;\nimport static org.junit.Assert.assertNotNull;\nimport static org.junit.Assert.assertTrue;\n\nimport org.junit.B... | java | chosen |
[
{
"from": "human",
"value": "Add references to converter test"
},
{
"from": "gpt",
"value": "package org.simpleframework.xml.convert;\r\n\r\nimport java.util.ArrayList;\r\nimport java.util.List;\r\n\r\nimport junit.framework.TestCase;\r\n\r\nimport org.simpleframework.xml.Default;\r\nimport org.... | java | chosen |
[
{
"from": "human",
"value": "Add image search direct url test.\n"
},
{
"from": "gpt",
"value": "package pt.fccn.arquivo.tests.imagesearch;\n\nimport static org.hamcrest.CoreMatchers.containsString;\nimport static org.hamcrest.MatcherAssert.assertThat;\nimport static org.junit.Assert.assertEquals... | java | chosen |
[
{
"from": "human",
"value": "[WFCORE-1077] Add a test case to test the different permutations regarding the construction of usernames and passwords in the properties files and verification that the regular expression to split these can handle them approriately.\n"
},
{
"from": "gpt",
"value": "/... | java | chosen |
[
{
"from": "human",
"value": "Add helper method to open the play-store (and install nc files app)\n"
},
{
"from": "gpt",
"value": "package de.luhmer.owncloud.accountimporter.helper;\n\nimport android.content.Context;\nimport android.content.Intent;\nimport android.net.Uri;\n\n/**\n * Nextcloud S... | java | chosen |
[
{
"from": "human",
"value": "Add Sesame Empty prefix from TriG round-trip test"
},
{
"from": "gpt",
"value": "package com.github.jsonldjava.sesame;\n\nimport static org.junit.Assert.assertTrue;\n\nimport java.io.StringReader;\nimport java.io.StringWriter;\n\nimport org.junit.Test;\nimport org.op... | java | chosen |
[
{
"from": "human",
"value": "Read in Jena Models using JAX-RS\n\n--HG--\nbranch : jax-rs\n"
},
{
"from": "gpt",
"value": "package com.oreilly.com.rdf.tenuki.jaxrs;\n\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.lang.annotation.Annotation;\nimport java.lang.reflect.Type;... | java | chosen |
[
{
"from": "human",
"value": "Add the array stacks problem\n"
},
{
"from": "gpt",
"value": "package com.ttaylorr.ctci.answers.stacks;\n\nimport com.ttaylorr.ctci.meta.Solution;\n\n@Solution(chapter = 3, problem = 1)\npublic class ArrayStacks {\n public static final int STACK_SIZE = 128;\n\n ... | java | chosen |
[
{
"from": "human",
"value": "Verify delete all works as expected on empty database\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (c) 2002-2016 \"Neo Technology,\"\n * Network Engine for Objects in Lund AB [http://neotechnology.com]\n *\n * This product is licensed to you under the Apache Lic... | java | chosen |
[
{
"from": "human",
"value": "Test project, working OpenSSL Aes decryption\n"
},
{
"from": "gpt",
"value": "package fi.iki.murgo.irssinotifier;\n\nimport javax.crypto.Cipher;\nimport javax.crypto.SecretKeyFactory;\nimport javax.crypto.spec.PBEKeySpec;\n\nimport android.util.Base64;\nimport androi... | java | chosen |
[
{
"from": "human",
"value": "Set initial case base on app creation.\n"
},
{
"from": "gpt",
"value": "\npackage com.uwetrottmann.shopr;\n\nimport android.app.Application;\n\nimport com.uwetrottmann.shopr.algorithm.AdaptiveSelection;\nimport com.uwetrottmann.shopr.algorithm.Utils;\n\npublic class ... | java | chosen |
[
{
"from": "human",
"value": "Add ActivityArea Mapper to split phone from key\n\nAdd ActivityArea Mapper to split phone from key earlier than it\nhappened, to get all different positions in the Reducer accumulate\nmethod. Note that the Reducer is **not yet** adapted.\n"
},
{
"from": "gpt",
"value... | java | chosen |
[
{
"from": "human",
"value": "Add integration test for file upload controller\n"
},
{
"from": "gpt",
"value": "package de.flux.playground.deckcompare.fileupload;\n\nimport static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;\nimport static org.springframework.test.web.s... | java | chosen |
[
{
"from": "human",
"value": "Add JUnit testing for AbstractEvent class.\n\nChange-Id: Iebc184f92e724887ed6e796cd0f0beefbd467352\nSigned-off-by: Alexis de Talhouët <3f85d13b1d0fb141169e8f22f55d7ee87dcd5f00@inocybe.com>\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (c) 2015 Inocybe and others.... | java | chosen |
[
{
"from": "human",
"value": "Add a custom ColorStateList for use with MaterialTextInputSpec\n\nSummary:\nAs discussed on T75973421\n\nColorStateList does not provide an equals() implementation, this causes litho to think usages require an update on every state change. Introducing MaterialTextInputColorState... | java | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.