conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "human",
"value": "Add tests for caching resolver.\n"
},
{
"from": "gpt",
"value": "package com.groupon.lex.metrics.resolver;\n\nimport java.util.ArrayList;\nimport java.util.Collection;\nimport java.util.List;\nimport java.util.concurrent.CompletableFuture;\nimport org.joda.time.Durat... | java | chosen |
[
{
"from": "human",
"value": "Add test cases for RecordBoundaryRemover\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2016 Deutsche Nationalbibliothek\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": "Project10: Create ContentProvider and implement query and onCreate method\n"
},
{
"from": "gpt",
"value": "package com.example.georgekaraolanis.project10_inventoryapp.data;\n\nimport android.content.ContentProvider;\nimport android.content.ContentUris;\nimport androi... | java | chosen |
[
{
"from": "human",
"value": "Add java solution for 109. Convert Sorted List to Binary Search Tree\n\n109. Convert Sorted List to Binary Search Tree: https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree/"
},
{
"from": "gpt",
"value": "package leetcode.convert_sorted_list_to_bin... | java | chosen |
[
{
"from": "human",
"value": "Add new script to detect project with unkown tools\n"
},
{
"from": "gpt",
"value": "import fr.inria.spirals.jtravis.entities.Build;\nimport fr.inria.spirals.jtravis.entities.BuildStatus;\nimport fr.inria.spirals.jtravis.entities.BuildTool;\nimport fr.inria.spirals.jt... | java | chosen |
[
{
"from": "human",
"value": "Add key derivation class for PBKDF\n"
},
{
"from": "gpt",
"value": "package com.xdrop.passlock.crypto;\n\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\n\nimport javax.crypto.SecretKey;\nimport javax.crypto.SecretKeyFactory;\nimport javax.crypto.spec.PBEK... | java | chosen |
[
{
"from": "human",
"value": "Connect Auth impl. that can take password rather than prompt for it\n"
},
{
"from": "gpt",
"value": "package org.libvirt;\n\nimport java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\n/**\n * Modified ConnectAuthDefault, that takes the password in the ctor ... | java | chosen |
[
{
"from": "human",
"value": ":innocent: Add TSV File storage processor\n"
},
{
"from": "gpt",
"value": "package weatherhandler.processor;\n\nimport java.io.BufferedWriter;\nimport java.io.FileWriter;\nimport java.io.PrintWriter;\nimport java.io.IOException;\nimport java.util.List;\n\nimport weat... | java | chosen |
[
{
"from": "human",
"value": "Create performance test for getWebSocketContainer()\n\ngit-svn-id: 79cef5a5a257cc9dbe40a45ac190115b4780e2d0@1828501 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "gpt",
"value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * c... | java | chosen |
[
{
"from": "system",
"value": "Convert roles to GrantedAuthorities in constructor to ease up things\n"
},
{
"from": "human",
"value": "package io.cfp.domain.common;\n\nimport io.cfp.entity.Role;\nimport io.cfp.entity.User;\nimport org.springframework.security.core.Authentication;\nimport org.spri... | java | chosen |
[
{
"from": "human",
"value": "Test component implementing a JTree with the specific purpose of displaying a set of LocalePaths structures. Not used yet, perhaps will be dropped"
},
{
"from": "gpt",
"value": "/*\n * This Source Code Form is subject to the terms of the Mozilla Public\n * License, v... | java | chosen |
[
{
"from": "system",
"value": "Add API for setting logger parent"
},
{
"from": "human",
"value": "package org.dynmap;\n\nimport java.util.logging.Level;\nimport java.util.logging.Logger;\n\npublic class Log {\n protected static Logger log = Logger.getLogger(\"Dynmap\");\n protected static S... | java | chosen |
[
{
"from": "human",
"value": "Add util function for copying streams more efficiently, with a progress callback\n"
},
{
"from": "gpt",
"value": "package com.rnziparchive;\n\n\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.OutputStream;\n\nimport static com.facebook.commo... | java | chosen |
[
{
"from": "human",
"value": "Create armor and item material for Arcana tools.\n"
},
{
"from": "gpt",
"value": "package com.latenighters.runicarcana.common.items.tools;\n\nimport net.minecraft.inventory.EquipmentSlotType;\nimport net.minecraft.item.IArmorMaterial;\nimport net.minecraft.item.IItem... | java | chosen |
[
{
"from": "human",
"value": "Add an interface to facilitate the provision of EOEnterpriseObjects\n\nThe `EOProvider` interface is a type of `Provider` that receives an `EOEditingContext` as a parameter and returns an instance of an `EOEnterpriseObject`. This interface is useful when one needs to fetch enter... | java | chosen |
[
{
"from": "human",
"value": "Test against one specified problem with one language, for debug only\n"
},
{
"from": "gpt",
"value": "package org.algohub.engine.judge;\n\nimport java.io.File;\nimport java.io.IOException;\nimport java.nio.charset.StandardCharsets;\nimport java.nio.file.Paths;\nimpor... | java | chosen |
[
{
"from": "human",
"value": "Add thread subclass to send unsynced notes to the server\n"
},
{
"from": "gpt",
"value": "package com.simplenote.android.thread;\n\nimport android.app.Activity;\n\nimport com.simplenote.android.Constants;\nimport com.simplenote.android.model.Note;\nimport com.simplen... | java | chosen |
[
{
"from": "human",
"value": "Create first test for fanOut method\n"
},
{
"from": "gpt",
"value": "package pl.ciruk.blog.fanout;\n\nimport com.google.common.collect.ImmutableList;\nimport org.junit.Test;\n\nimport java.util.concurrent.CompletableFuture;\nimport java.util.stream.Stream;\n\nimport ... | java | chosen |
[
{
"from": "human",
"value": "Add Datastructure for Set of Stacks using HashMap to track\n"
},
{
"from": "gpt",
"value": "package chapter_3.stack_queue;\n\nimport java.util.HashMap;\nimport java.util.Map;\n\npublic class SetOfStacks<T> extends AbstractStack<T> {\n private Map<Integer, CustomStac... | java | chosen |
[
{
"from": "human",
"value": "Add more tests for the new URIType\n"
},
{
"from": "gpt",
"value": "package org.corpus_tools.annis.gui.hibernate.type;\n\nimport static org.junit.Assert.assertEquals;\nimport static org.junit.Assert.assertNull;\nimport static org.junit.Assert.assertThrows;\nimport st... | java | chosen |
[
{
"from": "human",
"value": "Enforce architecture by failing on wrong package dependencies\n"
},
{
"from": "gpt",
"value": "package net.sf.jabref;\n\nimport com.google.common.base.Charsets;\nimport org.junit.Assert;\nimport org.junit.Test;\nimport org.junit.runner.RunWith;\nimport org.junit.runn... | java | chosen |
[
{
"from": "human",
"value": "Add an annotation for creating components\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2016 Michael Rozumyanskiy\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": "system",
"value": "Fix Iron Grip calculations using incorrect values."
},
{
"from": "human",
"value": "package com.gmail.nossr50.skills.unarmed;\r\n\r\nimport org.bukkit.ChatColor;\r\nimport org.bukkit.entity.Player;\r\n\r\nimport com.gmail.nossr50.util.Misc;\r\n\r\npublic class IronG... | java | chosen |
[
{
"from": "human",
"value": "Test demonstrating lazy reference behaviour with missing referent\n"
},
{
"from": "gpt",
"value": "package com.google.code.morphia.mapping.lazy;\r\n\r\nimport java.util.Iterator;\r\n\r\nimport org.bson.types.ObjectId;\r\nimport org.junit.Test;\r\n\r\nimport com.googl... | java | chosen |
[
{
"from": "human",
"value": "Add assert example with if\n"
},
{
"from": "gpt",
"value": "/**\n * @file AssertTest.java\n * @author Valery Samovich\n * @version 1.0.0\n * @date 12/16/2014\n *\n * Demonstrates the assert with if statement with input.\n */\n\npackage com.valerysamovich.java.advance... | java | chosen |
[
{
"from": "human",
"value": "Make the tips adapter work like the other group based adapters.\n\ncommitter: Joe LaPenna <16a9a54ddf4259952e3c118c763138e83693d7fd@joelapenna.com>\n"
},
{
"from": "gpt",
"value": "/**\n * Copyright 2009 Joe LaPenna\n */\npackage com.joelapenna.foursquared.widget;\n\... | java | chosen |
[
{
"from": "human",
"value": "Add some tests to problem 39\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": "Check for varchar columns that contain the string \"NULL\" rather than a proper NULL value.\n"
},
{
"from": "gpt",
"value": "/*\n Copyright (C) 2003 EBI, GRL\n \n This library is free software; you can redistribute it and/or\n modify it under the terms of the GNU Les... | java | chosen |
[
{
"from": "human",
"value": "Add a default display for all objects\n\nThis display has a very low priority, with the idea that it should only\nbe used if no higher-priority displays are available.\n\nThis used to be revision r5489.\n"
},
{
"from": "gpt",
"value": "/*\n * #%L\n * ImageJ software ... | java | chosen |
[
{
"from": "human",
"value": "Test notify and wait in a case\n\nThe case is using 2 stacks as a queue, more consumers and more producers.\nMake sure the running time of get be O(1).\n\nThere is sitll space to improve in current way.\n\nChange-Id: Ic90462f3699b447d69b7be37f9604db814a2e1c2\n"
},
{
"fro... | java | chosen |
[
{
"from": "human",
"value": "Add java solution for 217. Contains Duplicate\n\n217. Contains Duplicate: https://leetcode.com/problems/contains-duplicate/"
},
{
"from": "gpt",
"value": "package leetcode.contains_duplicate;\n\nimport java.util.HashSet;\nimport java.util.Set;\n\npublic class Solutio... | java | chosen |
[
{
"from": "human",
"value": "Add a test for mapped listeners\n"
},
{
"from": "gpt",
"value": "package name.falgout.jeffrey.fx.collections;\n\nimport static org.junit.Assert.assertSame;\nimport static org.junit.Assert.assertTrue;\nimport static org.mockito.Mockito.times;\nimport static org.mockit... | java | chosen |
[
{
"from": "human",
"value": "Define a matrix trace computation algorithm\n"
},
{
"from": "gpt",
"value": "/*\n * Zorbage: an algebraic data hierarchy for use in numeric processing.\n *\n * Copyright (C) 2016-2018 Barry DeZonia\n * \n * Redistribution and use in source and binary forms, with or w... | java | chosen |
[
{
"from": "human",
"value": "Add class that stores most recent player selections\n"
},
{
"from": "gpt",
"value": "package me.jacobcrofts.simplestructureloader.util;\n\nimport org.bukkit.Location;\n\npublic class Selection {\n\t\n\tprivate Location left;\n\tprivate Location right;\n\t\n\tpublic S... | java | chosen |
[
{
"from": "human",
"value": "Add first version of Max array sum solution: it works but is too slow.\n"
},
{
"from": "gpt",
"value": "import java.util.*;\nimport java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.IOException;\n\npublic class MaxArraySum {\n\n private stat... | java | chosen |
[
{
"from": "human",
"value": "Add fs worker client heartbeat executor.\n"
},
{
"from": "gpt",
"value": "package alluxio.client.file;\n\n\nimport alluxio.heartbeat.HeartbeatExecutor;\n\n/**\n * Session client that sends periodic heartbeats to the file system worker in order to preserve\n * its sta... | java | chosen |
[
{
"from": "human",
"value": "Add a tool that prints out an arbitrary block given its hash.\n\ngit-svn-id: 222f534b05ab2d99128b129c3f2ba69c893481ce@129 a743e126-8abc-4207-e589-8f9b47be99bf\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2011 Google Inc.\n *\n * Licensed under the Apache License... | java | chosen |
[
{
"from": "human",
"value": "Add class for command line argument manipulation.\n"
},
{
"from": "gpt",
"value": "package helpers;\n\nimport org.apache.commons.cli.*;\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\n\n/**\n * Parse command line arguments.\n */\npublic class CommandLineA... | java | chosen |
[
{
"from": "human",
"value": "Add a command to show the console\n"
},
{
"from": "gpt",
"value": "/*\n * #%L\n * SciJava UI components for Java Swing.\n * %%\n * Copyright (C) 2010 - 2015 Board of Regents of the University of\n * Wisconsin-Madison.\n * %%\n * Redistribution and use in source and b... | java | chosen |
[
{
"from": "human",
"value": "Add marker annotation for entities that adhere to the profile concept\n"
},
{
"from": "gpt",
"value": "/*\n * #%L\n * BroadleafCommerce Common Libraries\n * %%\n * Copyright (C) 2009 - 2013 Broadleaf Commerce\n * %%\n * Licensed under the Apache License, Version 2.0 ... | java | chosen |
[
{
"from": "human",
"value": "Create a placeholder for equation parsing code\n"
},
{
"from": "gpt",
"value": "/*\n * Zorbage: an algebraic data hierarchy for use in numeric processing.\n *\n * Copyright (C) 2016-2018 Barry DeZonia\n * \n * Redistribution and use in source and binary forms, with o... | java | chosen |
[
{
"from": "human",
"value": "Add class for protocol spinner\n\ngit-svn-id: 0a6f2aeebe3a339de06b6162ef5a6b6b6e2abc00@38 b8d320ad-ce4d-463a-8333-51e6c77ad906\n"
},
{
"from": "gpt",
"value": "/*\n * ServeStream: A HTTP stream browser/player for Android\n * Copyright 2010 William Seemann\n * \n * Li... | java | chosen |
[
{
"from": "human",
"value": "Introduce tests for Theme class\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2015-2017 the original author or authors.\n *\n * All rights reserved. This program and the accompanying materials are\n * made available under the terms of the Eclipse Public License v... | java | chosen |
[
{
"from": "human",
"value": "Add log entity for markers\n"
},
{
"from": "gpt",
"value": "package org.pdxfinder.services.reporting;\n\n/*\n * Created by csaba on 28/02/2019.\n */\npublic class MarkerLogEntity extends LogEntity{\n\n private String usedMarkerSymbol;\n private String suggested... | java | chosen |
[
{
"from": "human",
"value": "Create Twitter output configuration converter.\n"
},
{
"from": "gpt",
"value": "package com.github.aureliano.damihilogs.converter.output;\n\nimport java.util.HashMap;\nimport java.util.Map;\nimport java.util.Properties;\n\nimport org.junit.Assert;\nimport org.junit.T... | java | chosen |
[
{
"from": "human",
"value": "Add unit tests for calculatePersonalAllowance method\n"
},
{
"from": "gpt",
"value": "package com.blocksolid.income;\n\nimport org.junit.Test;\n\n\nimport static org.junit.Assert.assertEquals;\n\npublic class TaxCalculatorTest {\n\n // Tests for calculatePersonalA... | java | chosen |
[
{
"from": "human",
"value": "Add CTS tests for ObserverSpec.\n\nBug: 221867488\nTest: ObserverSpecCtsTest\nChange-Id: I96ad99e9911c1649424b67c74f058fb0757dc71c\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2022 The Android Open Source Project\n *\n * Licensed under the Apache License, Versio... | java | chosen |
[
{
"from": "human",
"value": "Add enum for cast operations"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2017 Volker Berlin (i-net software)\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... | java | chosen |
[
{
"from": "human",
"value": "Test file for SinusOpponent.java <testing\n"
},
{
"from": "gpt",
"value": "package nl.github.martijn9612.fishy;\n\nimport static org.junit.Assert.*;\nimport static org.mockito.Mockito.mock;\n\nimport org.junit.Test;\nimport org.newdawn.slick.GameContainer;\n\npublic ... | java | chosen |
[
{
"from": "human",
"value": "Add contract test for AssetDataSource\n\nPiperOrigin-RevId: 352532853\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (C) 2021 The Android Open Source Project\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file ex... | java | chosen |
[
{
"from": "human",
"value": "Add Solution for 43. Multiply Strings"
},
{
"from": "gpt",
"value": "//43. Multiply Strings\n/**\n * Given two non-negative integers num1 and num2 represented as strings, return the product of num1 and num2.\n * \n * Note:\n * 1. The length of both num1 and num2 is <... | java | chosen |
[
{
"from": "human",
"value": "Add minimal unit test for BibtexEntry\n"
},
{
"from": "gpt",
"value": "package net.sf.jabref.model.entry;\n\n\nimport net.sf.jabref.JabRefPreferences;\nimport org.junit.Test;\n\npublic class BibtexEntryTests {\n\n private BibtexEntry entry;\n\n @Test\n publi... | java | chosen |
[
{
"from": "human",
"value": "Add entity type deferred register to make the build method a bit nicer"
},
{
"from": "gpt",
"value": "package info.u_team.u_team_core.util.registry;\n\nimport java.util.function.Supplier;\n\nimport net.minecraft.entity.*;\nimport net.minecraft.entity.EntityType.Build... | java | chosen |
[
{
"from": "human",
"value": "Add AuthenticationConfiguration hash and equality tests\n"
},
{
"from": "gpt",
"value": "/*\n * JBoss, Home of Professional Open Source.\n * Copyright 2017 Red Hat, Inc., and individual contributors\n * as indicated by the @author tags.\n *\n * Licensed under the Apa... | java | chosen |
[
{
"from": "human",
"value": "Add tests for TCP connection\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 */\npackage ships.c... | java | chosen |
[
{
"from": "human",
"value": "Add simple unit test for MetricsProxyContainer.\n"
},
{
"from": "gpt",
"value": "package com.yahoo.vespa.model.admin.metricsproxy;\n\nimport com.yahoo.vespa.model.VespaModel;\nimport com.yahoo.vespa.model.test.VespaModelTester;\nimport org.junit.Test;\n\nimport stati... | java | chosen |
[
{
"from": "human",
"value": "Cut the Rod initial implementation\n"
},
{
"from": "gpt",
"value": "package com.problems.geeksforgeeks;\n\n/**\n * Created by Maks on 6/10/2017.\n */\npublic class CutRod {\n public int recutsiveSolution(int[] price, int n){\n if(n<=0){\n return ... | java | chosen |
[
{
"from": "human",
"value": "Rename to be consistent with function\n"
},
{
"from": "gpt",
"value": "// Copyright 2014 Boundary, 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 obtain a... | java | chosen |
[
{
"from": "human",
"value": "Add an initially failing test case to show that Config beans are not bound as singletons.\n"
},
{
"from": "gpt",
"value": "package com.nesscomputing.config;\n\nimport junit.framework.Assert;\n\nimport org.junit.Test;\n\nimport com.google.inject.AbstractModule;\nimpor... | java | chosen |
[
{
"from": "human",
"value": "Make better use of sorted tree in repo ContentTree matching.\n"
},
{
"from": "gpt",
"value": "package com.parc.ccn.library.profiles;\n\n/**\n * A place for now to place command markers\n * We are using 0xC0 and 0xC1 for these\n * \n * @author rasmusse\n *\n */\npubli... | java | chosen |
[
{
"from": "human",
"value": "Add statement to problem 23\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (C) 2014 Pedro Vicente Gómez Sánchez.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You ... | java | chosen |
[
{
"from": "human",
"value": "Add test for objects that align poorly with FSTInt2ObjectMap\n"
},
{
"from": "gpt",
"value": "package ser;\n\nimport java.io.ByteArrayInputStream;\nimport java.io.Externalizable;\nimport java.io.IOException;\nimport java.io.ObjectInput;\nimport java.io.ObjectOutput;\... | java | chosen |
[
{
"from": "human",
"value": "Add a factory class to allow solr to instantiate MB tokenizer filter\n"
},
{
"from": "gpt",
"value": "package org.musicbrainz.search.analysis;\n\n/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NO... | java | chosen |
[
{
"from": "human",
"value": "Move ICompletableFuture adapter to Rhizome\n"
},
{
"from": "gpt",
"value": "package com.dataloom.hazelcast;\n\nimport com.google.common.util.concurrent.ListenableFuture;\nimport com.hazelcast.core.ExecutionCallback;\nimport com.hazelcast.core.ICompletableFuture;\nimp... | java | chosen |
[
{
"from": "human",
"value": "Add exception for conveying AMQP errors.\n\nSigned-off-by: Kai Hudalla <6c3288b94355003a6c5f12ba233f9fc06ef02a62@bosch-si.com>"
},
{
"from": "gpt",
"value": "/**\n * Copyright (c) 2017 Bosch Software Innovations GmbH.\n *\n * All rights reserved. This program and the... | java | chosen |
[
{
"from": "human",
"value": "Add missing file from HDFS-5141\n\ngit-svn-id: bfa48d55d04d89a028096ea0fa51836e9a086984@1519819 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "gpt",
"value": "/**\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license ag... | java | chosen |
[
{
"from": "human",
"value": "Add a generator for bold text\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2016 Philip Cohn-Cort\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": "Fix cli-test breakage (3) groovyc 1.8.3 has stricter rules wrt usage of cached ClassNode instances\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2010-2011 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n ... | java | chosen |
[
{
"from": "human",
"value": "[FLINK-7086] Add Flip-6 standalone session cluster entry point\n\nThis closes #4272.\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 wi... | java | chosen |
[
{
"from": "human",
"value": "Test commit one source file\n"
},
{
"from": "gpt",
"value": "package ca.thoughtwire.concurrent;\n\n/**\n * Since {@link java.util.concurrent.atomic.AtomicLong} is not an interface, distributed\n * implementations need to be wrapped and their operations delegated. Thi... | java | chosen |
[
{
"from": "human",
"value": "Add the controller to be able to save Submission via rest calls."
},
{
"from": "gpt",
"value": "/*\n * Copyright 2016 SEARCH-The National Consortium for Justice Information and Statistics\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * y... | java | chosen |
[
{
"from": "human",
"value": "Add back ObjectMapper provider that was accidentally deleted\n"
},
{
"from": "gpt",
"value": "package com.yahoo.vespa.orchestrator.resources.providers;\n\nimport com.fasterxml.jackson.databind.ObjectMapper;\nimport com.fasterxml.jackson.module.scala.DefaultScalaModul... | java | chosen |
[
{
"from": "human",
"value": "Call result listener listens on call result events raised by Voxeo\n"
},
{
"from": "gpt",
"value": "package org.motechproject.ScheduleTrackingDemo.listeners;\n\n\nimport org.motechproject.ivr.event.IVREventDelegate;\nimport org.motechproject.ivr.model.CallDetailRecor... | java | chosen |
[
{
"from": "human",
"value": "Add helper class for RpcError interface\n\nChange-Id: I981d63d0c6ccc899a3f2db5985b16d31c8e2742e\nSigned-off-by: Michal Rehak <ed647b1080b812bfbe42faed634d1d6f3097d57e@cisco.com>\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (c) 2013 Cisco Systems, Inc. and others... | java | chosen |
[
{
"from": "human",
"value": "Add class to handle processing of servlet\n"
},
{
"from": "gpt",
"value": "package com.boundary.sdk.action;\n\nimport org.apache.camel.Exchange;\nimport org.apache.camel.Message;\nimport org.apache.camel.Processor;\n\npublic class ServletActionProcessor {\n\npublic v... | java | chosen |
[
{
"from": "human",
"value": "XWIKI-13128: Add the ability to output source maps in LESS compiled files.\n\n* Add test for LESSConfiguration\n"
},
{
"from": "gpt",
"value": "/*\n * See the NOTICE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n *... | java | chosen |
[
{
"from": "human",
"value": "Create an enum class to store aliases of option"
},
{
"from": "gpt",
"value": "package main;\n\nimport java.util.Arrays;\nimport java.util.HashMap;\nimport java.util.List;\nimport java.util.Map;\n\npublic enum OptionType {\n\tPRIORITY(\"-p\", \"--priority\", \"priori... | java | chosen |
[
{
"from": "human",
"value": "Add class with logical bug and performance concerns.\n"
},
{
"from": "gpt",
"value": "import java.util.HashMap;\nimport java.util.Map;\n\npublic class Buggy {\n\n public void run() {\n Map<String, Integer> map = new HashMap<String, Integer>();\n\n ma... | java | chosen |
[
{
"from": "human",
"value": "Add a unit test exhibiting a bug in NavigableSets.union().\n"
},
{
"from": "gpt",
"value": "\n/*\n * Copyright (C) 2015 Archie L. Cobbs. All rights reserved.\n */\n\npackage org.jsimpledb;\n\nimport java.util.NavigableSet;\nimport java.util.UUID;\n\nimport org.jsimpl... | java | chosen |
[
{
"from": "human",
"value": "Create : 303 Range Sum Query - Immutable\n"
},
{
"from": "gpt",
"value": "public class NumArray {\n\n private int[] sums;\n\n public NumArray(int[] nums) {\n\n for (int i = 1; i < nums.length; i++) {\n nums[i] += nums[i - 1];\n }\n\n ... | java | chosen |
[
{
"from": "human",
"value": "Implement a exception to indicate that an entity have not been founded\n"
},
{
"from": "gpt",
"value": "package com.jmb.springfactory.exceptions;\n\npublic class NotFoundException extends Exception {\n\n private static final long serialVersionUID = -7835455020535088... | java | chosen |
[
{
"from": "human",
"value": "Add a custom setting callback specific to players."
},
{
"from": "gpt",
"value": "package me.anxuiz.settings.bukkit;\n\nimport javax.annotation.Nonnull;\n\nimport me.anxuiz.settings.Setting;\nimport me.anxuiz.settings.SettingCallback;\nimport me.anxuiz.settings.Setti... | java | chosen |
[
{
"from": "human",
"value": "Make it possible to recursively exclude elements from candidates. This means an element will be excluded even when an ancestor is marked for exclusion.\n\nalso moved all the static stuff (from PropertiesHelper) out of the CanidateElementExtractor, and wrote a unit test class tha... | java | chosen |
[
{
"from": "human",
"value": "Implement container for movie element storage, and as Parceable\n"
},
{
"from": "gpt",
"value": "package com.chrisahn.popularmovies;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\npublic class MovieContainer implements Parcelable{\n private String ... | java | chosen |
[
{
"from": "human",
"value": "Test to ensure resetting charset is not possible.\n"
},
{
"from": "gpt",
"value": "package ie.omk.smpp.encoding;\n\nimport ie.omk.smpp.SMPPRuntimeException;\n\nimport java.io.UnsupportedEncodingException;\n\nimport org.testng.annotations.Test;\n\n@Test\npublic class ... | java | chosen |
[
{
"from": "human",
"value": "Support backward-compatible Driver classname in JDBC\n"
},
{
"from": "gpt",
"value": "/*\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the Licens... | java | chosen |
[
{
"from": "human",
"value": "Add a guide file for one of the use cases\n"
},
{
"from": "gpt",
"value": "import java.util.ArrayList;\nimport java.util.List;\n\npublic class TopLevel\n{\n\tvoid test(Item[] items)\n\t{\n\t\t// Do something else\n\n\n\t\tfor (int i = 0; i < items.length; ++i)\n\t\t{... | java | chosen |
[
{
"from": "human",
"value": "Add a read only data source filter\n"
},
{
"from": "gpt",
"value": "/*\n * Zorbage: an algebraic data hierarchy for use in numeric processing.\n *\n * Copyright (C) 2016-2019 Barry DeZonia\n * \n * Redistribution and use in source and binary forms, with or without\n ... | java | chosen |
[
{
"from": "human",
"value": "Refactor the code for findFiles and getOutputFileName\n"
},
{
"from": "gpt",
"value": "package dbtools.common.file;\n\nimport dbtools.common.utils.StrUtils;\n\nimport java.io.File;\nimport java.io.FilenameFilter;\n\npublic class FileUtils {\n public static String ... | java | chosen |
[
{
"from": "human",
"value": "Create the Profile Measures class\n"
},
{
"from": "gpt",
"value": "package sizebay.catalog.client.model;\n\nimport com.fasterxml.jackson.annotation.JsonIgnoreProperties;\nimport lombok.Data;\nimport lombok.NoArgsConstructor;\nimport lombok.experimental.Accessors;\n\n... | java | chosen |
[
{
"from": "human",
"value": "Add task to update all agents (using a random collection).\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2016 Will Knez <wbknez.dev@gmail.com>\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compli... | java | chosen |
[
{
"from": "human",
"value": "Add helper class to check OS Type"
},
{
"from": "gpt",
"value": "package org.lodder.subtools.sublibrary;\n\n/**\n * helper class to check the operating system this Java VM runs in\n * \n * please keep the notes below as a pseudo-license\n * \n * http://stackoverflow.... | java | chosen |
[
{
"from": "human",
"value": "Add rudimentary request body handler.\n"
},
{
"from": "gpt",
"value": "// Copyright 2014, Kevin Ko <kevin@faveset.com>\n\npackage com.faveset.khttp;\n\nimport java.nio.ByteBuffer;\nimport java.util.Map;\n\nclass MessageBodyHandler implements StateHandler {\n publi... | java | chosen |
[
{
"from": "human",
"value": "Add another new TLS name space from RFC 4492\n"
},
{
"from": "gpt",
"value": "package org.bouncycastle.crypto.tls;\n\n/**\n * RFC 4492 5.1.2\n */\npublic class ECPointFormat\n{\n public static final short uncompressed = 0;\n public static final short ansiX962_c... | java | chosen |
[
{
"from": "human",
"value": "Add junit test for SMTPAuthSuccessful matcher\n\ngit-svn-id: de9d04cf23151003780adc3e4ddb7078e3680318@416426 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "gpt",
"value": "/***********************************************************************\n * Copyright (... | java | chosen |
[
{
"from": "human",
"value": "Add class to set base data sources"
},
{
"from": "gpt",
"value": "/**\n * Project Distributed Transactions.\n * Copyright Michał Szczygieł, 2013.\n * Created at Dec 28, 2013.\n */\npackage com.m4gik;\n\nimport java.io.File;\n\nimport javax.sql.DataSource;\n\nimport o... | java | chosen |
[
{
"from": "human",
"value": "TEST add unit test for reconstruct binary tree\n"
},
{
"from": "gpt",
"value": "package com.matao.Q6;\n\nimport com.matao.common.TreeNode;\nimport org.junit.jupiter.api.BeforeEach;\nimport org.junit.jupiter.api.Test;\n\npublic class ConstructBinaryTreeTest {\n\n p... | java | chosen |
[
{
"from": "human",
"value": "Create a class containing some file related utilities commonly used in this\nproject.\n"
},
{
"from": "gpt",
"value": "package com.github.sparkcaller;\n\nimport picard.vcf.MergeVcfs;\n\nimport java.io.File;\nimport java.io.FileInputStream;\nimport java.io.IOException... | java | chosen |
[
{
"from": "human",
"value": "Add interface that allows Gerrit to check whether a request is cancelled\n\nAt the moment Gerrit doesn't get to know when a client disconnects until\nthe response is written. This means that requests continue to run even\nif the is client is no longer waiting for a response. Thi... | java | chosen |
[
{
"from": "human",
"value": "Bugfix: Switch case fall through caused save on fog of war toggle.\n"
},
{
"from": "gpt",
"value": "package jsettlers.main;\n\nimport java.io.File;\nimport java.util.List;\n\nimport jsettlers.common.resources.ResourceManager;\nimport jsettlers.graphics.startscreen.IS... | java | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.