conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "human",
"value": "Implement a simple checksum generator\n"
},
{
"from": "gpt",
"value": "package checksum;\n\nimport java.io.BufferedInputStream;\nimport java.io.File;\nimport java.io.FileInputStream;\nimport java.io.InputStream;\nimport java.io.IOException;\nimport java.security.Dige... | java | chosen |
[
{
"from": "human",
"value": "Add converter from infix to postfix notation.\n"
},
{
"from": "gpt",
"value": "import java.util.Collections;\nimport java.util.HashMap;\nimport java.util.Map;\nimport java.util.Stack;\n\npublic class RegExConverter {\n\n\t/** Operators precedence map. */\n\tprivate s... | java | chosen |
[
{
"from": "human",
"value": "Add an I/O plugin for text formats\n\nIt standardizes incoming text to HTML, so that it can ultimately be\ndisplayed in an HTML-based rich text viewer.\n\nThe implementation is nice and simple thanks to the TextService.\n"
},
{
"from": "gpt",
"value": "/*\n * #%L\n *... | java | chosen |
[
{
"from": "human",
"value": "Add helper class for implementing 'equals' method.\n"
},
{
"from": "gpt",
"value": "/*\n * Java Genetic Algorithm Library (@__identifier__@).\n * Copyright (c) @__year__@ Franz Wilhelmstötter\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n... | java | chosen |
[
{
"from": "human",
"value": "Extend vanilla text widget to allow persistent use. Keeps state across screen resizing.\n"
},
{
"from": "gpt",
"value": "package aeronicamc.mods.mxtune.gui.widget;\n\nimport net.minecraft.client.Minecraft;\nimport net.minecraft.client.gui.FontRenderer;\nimport net.mi... | java | chosen |
[
{
"from": "human",
"value": "Add test for lock interactor\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2016 Peter Kenji Yamanaka\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain ... | java | chosen |
[
{
"from": "human",
"value": "Add java solution for 20. Valid Parentheses\n\n20. Valid Parentheses: https://leetcode.com/problems/valid-parentheses/"
},
{
"from": "gpt",
"value": "package leetcode.valid_parentheses;\n\npublic class Solution {\n\tpublic boolean isValid(String s) {\n\t\tStringBuild... | java | chosen |
[
{
"from": "human",
"value": "Add class to initialize from Protege"
},
{
"from": "gpt",
"value": "package de.tudresden.inf.lat.born.protege.ui;\n\nimport java.awt.BorderLayout;\n\nimport org.protege.editor.owl.ui.view.cls.AbstractOWLClassViewComponent;\nimport org.semanticweb.owlapi.model.OWLClas... | java | chosen |
[
{
"from": "human",
"value": "Add a class of a naive implementation of Allocator interface\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... | java | chosen |
[
{
"from": "human",
"value": "Add class to manage preference keys\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2020 Google LLC\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 a function class to the model\n"
},
{
"from": "gpt",
"value": "package no.ssb.vtl.model;\n\n/*-\n * ========================LICENSE_START=================================\n * Java VTL\n * %%\n * Copyright (C) 2016 - 2017 Hadrien Kohl\n * %%\n * Licensed under the... | java | chosen |
[
{
"from": "human",
"value": "Add unit tests for com.hankcs.hanlp.algorithm.EditDistance\n\nThese tests were written using Diffblue Cover.\n"
},
{
"from": "gpt",
"value": "package com.hankcs.hanlp.algorithm;\n\nimport com.hankcs.hanlp.corpus.synonym.Synonym;\nimport com.hankcs.hanlp.dictionary.co... | java | chosen |
[
{
"from": "human",
"value": "Add in the buffer usage strategy (client API equivalent of Buffer\nManagement strategy)\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2014 Real Logic Ltd.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file exce... | java | chosen |
[
{
"from": "human",
"value": "Add better unit tests for PetriNetComponentRemovalVisitor\n"
},
{
"from": "gpt",
"value": "package pipe.models.visitor;\n\nimport org.junit.Before;\nimport org.junit.Test;\nimport pipe.models.*;\nimport pipe.views.viewComponents.RateParameter;\n\nimport java.awt.*;\n... | java | chosen |
[
{
"from": "human",
"value": "Add a test for arrays' support in HSQLDB\n\nVerify that we can save and retrieve arrays from a HSQLDB database\nusing the HSQLDB driver.\n"
},
{
"from": "gpt",
"value": "/*\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this... | java | chosen |
[
{
"from": "human",
"value": "Add remote test for WebRTC with Firefox\n"
},
{
"from": "gpt",
"value": "/*\n * (C) Copyright 2017 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 except in compliance ... | java | chosen |
[
{
"from": "human",
"value": "Add basic type conversion for REST requests.\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2016 The Winston Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * ... | java | chosen |
[
{
"from": "human",
"value": "Add a test to reproduce [JACKSON-877]\n"
},
{
"from": "gpt",
"value": "package com.fasterxml.jackson.failing;\n\nimport com.fasterxml.jackson.annotation.*;\n\nimport com.fasterxml.jackson.databind.*;\n\nimport java.util.*;\n\npublic class TestIssue877TypingWithId ext... | java | chosen |
[
{
"from": "human",
"value": "Add a coarse testing facility to run some tests infinitely many times.\n"
},
{
"from": "gpt",
"value": "package ru.ifmo.nds;\n\nimport java.io.IOException;\nimport java.util.Random;\n\npublic class RunTestInfinitely {\n private static void run(NonDominatedSorting ... | java | chosen |
[
{
"from": "human",
"value": "Add loader that grabs a user's info\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (C) 2012 Brian Muramatsu\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 o... | java | chosen |
[
{
"from": "human",
"value": "Add package-level doc. for filters\n\ngit-svn-id: 25ca64b629f24bdef6d1cceac138f74b13f55e41@659162 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2008 The Apache Software Foundation\n *\n * Licensed to the Apache Software Founda... | java | chosen |
[
{
"from": "system",
"value": "Fix for exception when an argument is missing (vs just being empty)"
},
{
"from": "human",
"value": "package gherkin.formatter;\n\nimport java.util.List;\n\npublic class StepPrinter {\n public void writeStep(NiceAppendable out, Format textFormat, Format argFormat... | java | chosen |
[
{
"from": "human",
"value": "Create : 225 Implement Stack using Queues\n"
},
{
"from": "gpt",
"value": "import java.util.LinkedList;\nimport java.util.Queue;\n\npublic class MyStack {\n\n private Queue<Integer> queue;\n\n /** Initialize your data structure here. */\n public MyStack() {\... | java | chosen |
[
{
"from": "human",
"value": "Add cross prediciton test case"
},
{
"from": "gpt",
"value": "package net.lifove.research.utils;\n\nimport static org.junit.Assert.*;\nimport net.lifove.research.utils.WekaUtils;\n\nimport org.junit.Test;\n\nimport weka.core.Instances;\n\npublic class CrossPrediction... | java | chosen |
[
{
"from": "human",
"value": "Create ArcEffect. Creates an arc from location to location with custom\nheight."
},
{
"from": "gpt",
"value": "package de.slikey.effectlib.effect;\n\nimport org.bukkit.Location;\nimport org.bukkit.util.Vector;\n\nimport de.slikey.effectlib.EffectManager;\nimport de.s... | java | chosen |
[
{
"from": "human",
"value": "Create a new base business object to represente object in business layer\n"
},
{
"from": "gpt",
"value": "package com.jmb.springfactory.model.bo;\n\npublic class BusinessObjectBase {\n\n private String id;\n\n public String getId() {\n return id;\n }\n\n publi... | java | chosen |
[
{
"from": "human",
"value": "Introduce a very basic test\n"
},
{
"from": "gpt",
"value": "package router.client;\n\nimport javax.annotation.Nonnull;\nimport org.powermock.api.mockito.PowerMockito;\nimport org.powermock.core.classloader.annotations.PrepareForTest;\nimport org.powermock.modules.te... | java | chosen |
[
{
"from": "human",
"value": "Add generic UUID ID generator for Hibernate that does not use that many characters.\n"
},
{
"from": "gpt",
"value": "package to.etc.domui.hibernate.idgen;\n\nimport org.hibernate.HibernateException;\nimport org.hibernate.engine.SessionImplementor;\nimport org.hiberna... | java | chosen |
[
{
"from": "human",
"value": "Refactor json cell formatting into own class\n\n\nFormer-commit-id: ff2289c99591625a7a7a3b36d52287a889d4457d"
},
{
"from": "gpt",
"value": "package org.intermine.webservice.server.output;\n\nimport java.util.HashMap;\nimport java.util.Map;\n\nimport org.intermine.api... | java | chosen |
[
{
"from": "human",
"value": "Add default implementation of CollapseNumeric to CompositeIntervalView.\n"
},
{
"from": "gpt",
"value": "package net.imagej.ops.views;\n\nimport net.imagej.ops.view.ViewOps.CollapseNumeric;\nimport net.imglib2.RandomAccessibleInterval;\nimport net.imglib2.type.numeri... | java | chosen |
[
{
"from": "human",
"value": "Fix mime type for css (and test)\n"
},
{
"from": "gpt",
"value": "package org.springframework.test.integration;\n\nimport static org.junit.Assert.assertEquals;\nimport static org.junit.Assert.assertTrue;\n\nimport java.io.IOException;\nimport java.util.concurrent.Cal... | java | chosen |
[
{
"from": "human",
"value": "Add autonomous command for drawbridge.\n"
},
{
"from": "gpt",
"value": "package org.robockets.stronghold.robot.autonomous;\n\nimport org.robockets.stronghold.robot.Direction;\nimport org.robockets.stronghold.robot.drivetrain.AssistedDrive;\nimport org.robockets.stron... | java | chosen |
[
{
"from": "human",
"value": "Add tests for ExactTextCaseSensitive condition\n"
},
{
"from": "gpt",
"value": "package com.codeborne.selenide.conditions;\n\nimport com.codeborne.selenide.Driver;\n\nimport org.junit.jupiter.api.BeforeEach;\nimport org.junit.jupiter.api.Test;\nimport org.openqa.sele... | java | chosen |
[
{
"from": "human",
"value": "Add entity manager utils for unit testing\n"
},
{
"from": "gpt",
"value": "package com.enginemobi.core.generic.util;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.orm.jpa.EntityManagerFactoryUtils;\nimport org.springfra... | java | chosen |
[
{
"from": "human",
"value": "Add test cases for SystemConsoleInout\n"
},
{
"from": "gpt",
"value": "/**\n * Copyright 2008-2017 Juho Jeong\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": "Test assumptions regarding keytool check\n\ngit-svn-id: 5ccfe34f605a6c2f9041ff2965ab60012c62539a@1544901 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "gpt",
"value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor li... | java | chosen |
[
{
"from": "human",
"value": "Create TDD test for utils.\n"
},
{
"from": "gpt",
"value": "package com.m4gik.util;\n\nimport static org.hamcrest.MatcherAssert.assertThat;\nimport static org.hamcrest.Matchers.is;\nimport static org.hamcrest.Matchers.notNullValue;\n\nimport java.util.Arrays;\nimport... | java | chosen |
[
{
"from": "human",
"value": "Add generic Online KDE exception\n"
},
{
"from": "gpt",
"value": "/*\nCopyright (c) 2016, Colorado State University\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification,\nare permitted provided that the following co... | java | chosen |
[
{
"from": "human",
"value": "Add test class for binary search\n"
},
{
"from": "gpt",
"value": "package search;\n\nimport search.BinarySearch; \t\t// My implementation of binary search in package search\n/*\n\tThis class tests class BinarySearch\n*/\n\nclass TestSearch{\n\n\t// Tests binary searc... | java | chosen |
[
{
"from": "system",
"value": "Add solution to problem 76\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 forgotten unit test for adding a new service task\n\ngit-svn-id: f26ccc5efe72c2bd8e1c40f599fe313f2692e4de@9231 a612230a-c5fa-0310-af8b-88eea846685b\n"
},
{
"from": "gpt",
"value": "/*\n * \n * \n * Copyright (C) 2007 SIPfoundry Inc.\n * Licensed by SIPfoundry und... | java | chosen |
[
{
"from": "human",
"value": "Add codec for Long (needed by TargetCompleteEvent).\n\nPiperOrigin-RevId: 199965139\n"
},
{
"from": "gpt",
"value": "// Copyright 2018 The Bazel Authors. All rights reserved.\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not us... | java | chosen |
[
{
"from": "system",
"value": "Fix for fonts (Class might be removed in the future b/c unnecessary\n"
},
{
"from": "human",
"value": "package com.github.andlyticsproject;\n\nimport android.content.res.AssetManager;\nimport android.graphics.Typeface;\nimport android.widget.TextView;\n\npublic clas... | java | chosen |
[
{
"from": "human",
"value": "Add tests for the `AbstractEntity` 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 copyright notice ... | java | chosen |
[
{
"from": "human",
"value": "Include test installing browser extension in Firefox\n"
},
{
"from": "gpt",
"value": "/*\n * (C) Copyright 2021 Boni Garcia (https://bonigarcia.github.io/)\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": "Revert \"can't use dedicated handler just yet, will have to be local vs network specific\"\n\nThis reverts commit 97a981d064af275a714ef839324407f7218c0b97.\n"
},
{
"from": "gpt",
"value": "package net.thechunk.playpen.netty.handlers;\n\nimport io.netty.channel.Channe... | java | chosen |
[
{
"from": "human",
"value": "Add a test for Internal.getTags().\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2017, OpenCensus Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may ob... | java | chosen |
[
{
"from": "human",
"value": "Update the conversion spec (use a single interface inside the org.osgi.service.blueprint.container package)\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (c) OSGi Alliance (2008, 2009). All Rights Reserved.\n *\n * Licensed under the Apache License, Version 2.0 (... | java | chosen |
[
{
"from": "human",
"value": "Add Favourite workflow detail activity\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 * re... | java | chosen |
[
{
"from": "human",
"value": "Add Spring Boot application class\n"
},
{
"from": "gpt",
"value": "package com.epam.itweek.boosenger;\n\nimport org.springframework.boot.SpringApplication;\nimport org.springframework.boot.autoconfigure.EnableAutoConfiguration;\nimport org.springframework.context.ann... | java | chosen |
[
{
"from": "human",
"value": "Add a shutdown listener to print a quick message right before the game disconnects everyone.\n"
},
{
"from": "gpt",
"value": "/*\n * EmergentMUD - A modern MUD with a procedurally generated world.\n * Copyright (C) 2016 Peter Keeler\n *\n * This file is part of Emerg... | java | chosen |
[
{
"from": "human",
"value": "[test] Add tests for installer conditions\n"
},
{
"from": "gpt",
"value": "/*-\n * Copyright (c) 2014 Red Hat, 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 ... | java | chosen |
[
{
"from": "human",
"value": "Add some tests to problem 51\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 a start on testing TX producer with failover."
},
{
"from": "gpt",
"value": "/**\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional informat... | java | chosen |
[
{
"from": "human",
"value": "Add unit test to document read/write access to deployment id and protect it against regression\n"
},
{
"from": "gpt",
"value": "package org.camunda.bpm.extension.junit5;\n\nimport org.camunda.bpm.extension.junit5.test.ProcessEngineExtension;\nimport org.junit.jupiter... | java | chosen |
[
{
"from": "human",
"value": "Update attributes for myplaces baselayer\n"
},
{
"from": "gpt",
"value": "package flyway.myplaces;\n\nimport fi.nls.oskari.db.DatasourceHelper;\nimport fi.nls.oskari.geoserver.GeoserverPopulator;\nimport org.flywaydb.core.api.migration.jdbc.JdbcMigration;\nimport org... | java | chosen |
[
{
"from": "human",
"value": "Add excell sheet column number\n"
},
{
"from": "gpt",
"value": "public class ExcelSheetColumnNumber {\n public int titleToNumber(String s) {\n int length = s.length();\n int number = 0;\n\n for (int i = 0; i < length; i++) {\n number += (s.charAt(i) - ... | java | chosen |
[
{
"from": "human",
"value": "Add unit tests for Handles class\n"
},
{
"from": "gpt",
"value": "// Copyright © 2013-2015 Esko Luontola <www.orfjackal.net>\n// This software is released under the Apache License 2.0.\n// The license text is at http://www.apache.org/licenses/LICENSE-2.0\n\npackage n... | java | chosen |
[
{
"from": "human",
"value": "Add a SegmentCollection in the form of a List\n\nAdded because SegmentMap is already used as a List, since the keys are\nthe indices.\n"
},
{
"from": "gpt",
"value": "package io.github.programminglife2016.pl1_2016.parser;\n\nimport com.google.gson.Gson;\nimport com.g... | java | chosen |
[
{
"from": "human",
"value": "Check that aggregation closes the stream it uses\n"
},
{
"from": "gpt",
"value": "package no.ssb.vtl.script.operations;\n\nimport com.google.common.collect.ImmutableList;\nimport no.ssb.vtl.model.*;\nimport no.ssb.vtl.script.support.DatasetCloseWatcher;\nimport org.j... | java | chosen |
[
{
"from": "human",
"value": "Support for atomic filterable junit4 tests and junit3 suite methods\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2010 Henry Coles\n * \n * Licensed under the Apache License, Version 2.0 (the \"License\"); \n * you may not use this file except in compliance with ... | java | chosen |
[
{
"from": "human",
"value": "SEAMFACES-95: Make ProjectStage available from EL\n"
},
{
"from": "gpt",
"value": "package org.jboss.seam.faces.environment;\n\nimport javax.enterprise.inject.Produces;\nimport javax.faces.context.FacesContext;\nimport javax.inject.Named;\n\n/**\n * <p>\n * A produce... | java | chosen |
[
{
"from": "human",
"value": "Test class for ObjectStoreAbstractImpl. Has a blank inner class and just tests the methods in ObjectStoreAbstractImpl\n\n"
},
{
"from": "gpt",
"value": "package org.flymine.objectstore;\n\nimport junit.framework.TestCase;\n\nimport java.util.List;\n\nimport org.flymi... | java | chosen |
[
{
"from": "human",
"value": "Add missed file for interop\n"
},
{
"from": "gpt",
"value": "package org.perl6.nqp.runtime;\n\n/** Throw this to propagate a specific Java exception into Javaland. */\npublic class JavaCallinException extends ControlException {\n public JavaCallinException(Throwab... | java | chosen |
[
{
"from": "human",
"value": "Test sign up when email already exists"
},
{
"from": "gpt",
"value": "package com.coding4people.mosquitoreport.api.controllers;\r\n\r\nimport static org.junit.Assert.assertEquals;\r\nimport static org.mockito.Matchers.eq;\r\nimport static org.mockito.Mockito.verify;\... | java | chosen |
[
{
"from": "human",
"value": "Change the licence information\ndataTable modification code\n"
},
{
"from": "gpt",
"value": "/**\n * Copyright © 2011-2012 EMBL - European Bioinformatics Institute\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 resilient future class that will be returned by the api\n"
},
{
"from": "gpt",
"value": "package fault;\n\nimport java.util.concurrent.ExecutionException;\nimport java.util.concurrent.Future;\nimport java.util.concurrent.TimeUnit;\nimport java.util.concurren... | java | chosen |
[
{
"from": "human",
"value": "Define a DAO for Users.\n"
},
{
"from": "gpt",
"value": "package nl.tehdreamteam.se42.data.dao;\n\nimport nl.tehdreamteam.se42.domain.User;\n\n/**\n * Manages the data for the {@link User} class.\n *\n * @author Lesley\n */\npublic interface UserDAO extends DAO<Long,... | java | chosen |
[
{
"from": "human",
"value": "Add Elsie-Dee Sight Fiegn Client.\n"
},
{
"from": "gpt",
"value": "package nl.ekholabs.nlp.client;\n\nimport feign.codec.Encoder;\nimport feign.form.spring.SpringFormEncoder;\nimport org.springframework.cloud.netflix.feign.FeignClient;\nimport org.springframework.con... | java | chosen |
[
{
"from": "human",
"value": "Add command argument for fonts installed on the client.\n"
},
{
"from": "gpt",
"value": "package net.darkhax.bookshelf.impl.commands.args;\n\nimport com.google.gson.JsonObject;\nimport com.mojang.brigadier.StringReader;\nimport com.mojang.brigadier.arguments.Argument... | java | chosen |
[
{
"from": "human",
"value": "Add helper method to find the path to a node in a tree"
},
{
"from": "gpt",
"value": "/*-\n * Copyright 2015 Diamond Light Source Ltd.\n *\n * All rights reserved. This program and the accompanying materials\n * are made available under the terms of the Eclipse Publi... | java | chosen |
[
{
"from": "human",
"value": "Add WebListener for the backend server\n"
},
{
"from": "gpt",
"value": "package com.google.slurp.servlets;\n\nimport java.io.IOException;\nimport javax.servlet.ServletContextEvent;\nimport javax.servlet.ServletContextListener;\nimport javax.servlet.annotation.WebList... | java | chosen |
[
{
"from": "system",
"value": "api: Remove resourceType, use only entityType\n\nSigned-off-by: Rohit Yadav <0fa72ca37c4b5fa62675187ce32ea6c9f842fd52@apache.org>\n"
},
{
"from": "human",
"value": "// Licensed to the Apache Software Foundation (ASF) under one\n// or more contributor license agreeme... | java | chosen |
[
{
"from": "human",
"value": "Test for writing into the blockchain"
},
{
"from": "gpt",
"value": "import static org.assertj.core.api.Assertions.assertThat;\r\n\r\nimport java.math.BigInteger;\r\nimport java.util.List;\r\nimport java.util.concurrent.ExecutionException;\r\nimport java.util.concurre... | java | chosen |
[
{
"from": "human",
"value": "Add a test for SummaryStatistics\n"
},
{
"from": "gpt",
"value": "package com.cmput402w2016.t1.simulator;\n\nimport org.apache.commons.math3.stat.descriptive.SummaryStatistics;\n\nimport junit.framework.TestCase;\n\npublic class SimulatorDataModelTest extends TestCas... | java | chosen |
[
{
"from": "human",
"value": "Add a test I'd forgotten to commit\n"
},
{
"from": "gpt",
"value": "\npackage com.github.tracinstant.app.data;\n\nimport static org.hamcrest.CoreMatchers.is;\nimport static org.junit.Assert.*;\n\nimport com.github.tracinstant.app.data.Ticket;\nimport org.junit.Test;\... | java | chosen |
[
{
"from": "human",
"value": "Reset the blob order sequence to be in sync with the data\n\nIn a previous migration we added this field, and backpopulated\nthe data so that existing blobs had an order value.\n\nI assumed when we updated the data in this way, the sequence\nwould automatically advance its value... | java | chosen |
[
{
"from": "human",
"value": "Add a creature shadow image effect to the engine.\n"
},
{
"from": "gpt",
"value": "package de.gurkenlabs.litiengine.graphics;\n\nimport java.awt.Color;\nimport java.awt.Graphics2D;\nimport java.awt.RenderingHints;\nimport java.awt.geom.Ellipse2D;\nimport java.awt.ima... | java | chosen |
[
{
"from": "human",
"value": "Add L&F utility class, and VisBio launch script for Linux.\n\n"
},
{
"from": "gpt",
"value": "//\n// LAFUtil.java\n//\n\n/*\nVisBio application for visualization of multidimensional\nbiological image data. Copyright (C) 2002-2004 Curtis Rueden.\n\nThis program is fre... | java | chosen |
[
{
"from": "human",
"value": "Create new date formatter class\n"
},
{
"from": "gpt",
"value": "package tars.ui.formatter;\n\nimport java.time.LocalDateTime;\nimport java.time.format.DateTimeFormatter;\n\n/**\n * Container for formatting dates\n * \n * @@author A0139924W\n */\npublic class DateFor... | java | chosen |
[
{
"from": "human",
"value": "Add Place from Place ID loading task\n\nAllows retrieval of Place objects from given Place IDs\n"
},
{
"from": "gpt",
"value": "package home.climax708.librecarpool;\n\nimport android.os.AsyncTask;\n\nimport com.google.android.gms.common.api.GoogleApiClient;\nimport c... | java | chosen |
[
{
"from": "human",
"value": "Implement a very simple raw text visualizer.\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2013 SFB 632.\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": "Define a test for the DeepCopy algorithm\n"
},
{
"from": "gpt",
"value": "/*\n * Zorbage: an algebraic data hierarchy for use in numeric processing.\n *\n * Copyright (C) 2016-2019 Barry DeZonia\n * \n * Redistribution and use in source and binary forms, with or with... | java | chosen |
[
{
"from": "human",
"value": "Test to see if the encoding and decoding of default MessageBuffer\nprotocol works as expected."
},
{
"from": "gpt",
"value": "package org.menacheri.protocols.impl;\r\n\r\nimport static org.junit.Assert.assertEquals;\r\nimport static org.junit.Assert.assertFalse;\r\n\... | java | chosen |
[
{
"from": "human",
"value": "Add white box test module\n"
},
{
"from": "gpt",
"value": "/*\n * Bach - Java Shell Builder\n * Copyright (C) 2019 Christian Stein\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the Li... | java | chosen |
[
{
"from": "human",
"value": "Add unit tests for base element parsing"
},
{
"from": "gpt",
"value": "package org.monospark.spongematchers.parser.element;\n\nimport static org.hamcrest.CoreMatchers.equalTo;\nimport static org.junit.Assert.assertThat;\n\nimport org.junit.Test;\nimport org.monospark... | java | chosen |
[
{
"from": "human",
"value": "Add a simple shop edited event, not yet working\n"
},
{
"from": "gpt",
"value": "package com.Acrobot.ChestShop.Events;\n\nimport org.bukkit.block.Sign;\nimport org.bukkit.entity.Player;\nimport org.bukkit.event.Event;\nimport org.bukkit.event.HandlerList;\n\n/**\n * ... | java | chosen |
[
{
"from": "human",
"value": "Add package test suite for comparators\n\ngit-svn-id: cb61607abf5ac23ab48a85ccf5b9d9390a6837ee@611447 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "gpt",
"value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor licen... | java | chosen |
[
{
"from": "human",
"value": "Define new beans change event introduced in 1.5\n\nsvn path=/incubator/harmony/enhanced/classlib/trunk/; revision=414210\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2006 The Apache Software Foundation or its licensors, as\n * applicable.\n * \n * Licensed under... | java | chosen |
[
{
"from": "human",
"value": "Send Java Mail from Zoho\n"
},
{
"from": "gpt",
"value": "package com.rawsanj.mail;\n\nimport java.util.Properties;\n\nimport javax.mail.Message;\nimport javax.mail.MessagingException;\nimport javax.mail.PasswordAuthentication;\nimport javax.mail.Session;\nimport jav... | java | chosen |
[
{
"from": "human",
"value": "Add core feature tests for keywords\n"
},
{
"from": "gpt",
"value": "package com.autonomy.abc.keywords;\n\nimport com.autonomy.abc.config.ABCTestBase;\nimport com.autonomy.abc.config.TestConfig;\nimport com.autonomy.abc.framework.categories.CoreFeature;\nimport com.a... | java | chosen |
[
{
"from": "human",
"value": "Add an ignored failing test for LOG4J2-2301\n"
},
{
"from": "gpt",
"value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information re... | java | chosen |
[
{
"from": "human",
"value": "Add menu object to database."
},
{
"from": "gpt",
"value": "package com.athena.dolly.controller.web.user;\n\nimport java.util.List;\n\nimport javax.persistence.Column;\nimport javax.persistence.Entity;\nimport javax.persistence.FetchType;\nimport javax.persistence.Id... | java | chosen |
[
{
"from": "human",
"value": "Add missing player wake up listener class.\n"
},
{
"from": "gpt",
"value": "package net.darkhax.bookshelf.api.event.entity.player;\n\nimport net.minecraft.world.entity.player.Player;\n\npublic interface IPlayerWakeUpEvent {\n\n void apply(Player player);\n}\n"
}... | java | chosen |
[
{
"from": "human",
"value": "Add simple example for dumping converted OME-XML.\n"
},
{
"from": "gpt",
"value": "//\n// DumpOMEXML.java\n//\n\nimport java.io.IOException;\nimport loci.common.services.DependencyException;\nimport loci.common.services.ServiceException;\nimport loci.common.services.... | java | chosen |
[
{
"from": "human",
"value": "Add in a static render access class for optifine and other render editing mods to use\n"
},
{
"from": "gpt",
"value": "/*\n * The FML Forge Mod Loader suite.\n * Copyright (C) 2012 cpw\n *\n * This library is free software; you can redistribute it and/or modify it un... | java | chosen |
[
{
"from": "human",
"value": "Add factory for SAX Parser factory preventing from XXE"
},
{
"from": "gpt",
"value": "package de.businesscode.util.xml;\n\nimport javax.xml.parsers.ParserConfigurationException;\nimport javax.xml.parsers.SAXParserFactory;\n\nimport org.xml.sax.SAXNotRecognizedExcepti... | java | chosen |
[
{
"from": "human",
"value": "Create data writing listener interface.\n"
},
{
"from": "gpt",
"value": "package com.github.aureliano.evtbridge.core.listener;\n\nimport com.github.aureliano.evtbridge.core.event.AfterWritingEvent;\nimport com.github.aureliano.evtbridge.core.event.BeforeWritingEvent;... | java | chosen |
[
{
"from": "human",
"value": "Add unit tests for org.gridkit.util.formating.Formats\n\nThese tests were written using Diffblue Cover.\n"
},
{
"from": "gpt",
"value": "package org.gridkit.util.formating;\n\nimport org.junit.Test;\n\nimport static org.gridkit.util.formating.Formats.*;\nimport stati... | java | chosen |
[
{
"from": "human",
"value": "Read file with multiline in it\n"
},
{
"from": "gpt",
"value": "package com.samovich.cop2800.chapter13;\n\nimport java.io.BufferedInputStream;\nimport java.io.BufferedReader;\nimport java.io.InputStream;\nimport java.io.InputStreamReader;\nimport java.nio.file.Files... | java | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.