conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "human",
"value": "Add example for writing 24-bit RGB movies.\n\n"
},
{
"from": "gpt",
"value": "//\n// WriteRGBMovie.java\n//\n\nimport loci.formats.*;\nimport loci.formats.meta.IMetadata;\n\n/**\n * Demonstrates writing multiple RGB image planes to a movie.\n *\n * <dl><dt><b>Source ... | java | chosen |
[
{
"from": "human",
"value": "Add probe for tracing open Jar files\n"
},
{
"from": "gpt",
"value": "import java.util.Map;\nimport java.util.concurrent.ConcurrentHashMap;\nimport java.util.concurrent.atomic.AtomicBoolean;\n\nimport com.sun.btrace.annotations.BTrace;\nimport com.sun.btrace.annotati... | java | chosen |
[
{
"from": "human",
"value": "Add basic tests for ingest plugins setup\n"
},
{
"from": "gpt",
"value": "/*\n * Licensed to Elasticsearch under one or more contributor\n * license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright\n * owne... | java | chosen |
[
{
"from": "human",
"value": "Create mapper delegator that delegates mapping to mappers retrieved from\nmapper factory"
},
{
"from": "gpt",
"value": "package pl.openrest.dto.mapper;\n\nimport pl.openrest.dto.registry.DtoInformation;\n\npublic class MapperDelegator implements CreateMapper<Object, ... | java | chosen |
[
{
"from": "human",
"value": "Create a placeholder AbstractAction stub.\n"
},
{
"from": "gpt",
"value": "package actions;\n\nimport java.awt.event.*;\nimport javax.swing.*;\n\npublic class PlaceholderAction extends AbstractAction\n{\n private String actionName;\n\n public PlaceholderAction(Stri... | java | chosen |
[
{
"from": "human",
"value": "Solve No.2439 from Baekjoon Online Judge\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2017 haeun kim\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain... | java | chosen |
[
{
"from": "human",
"value": "Support HL7 v2 to XML transformation\n\nSVN-Revision: 2788\n"
},
{
"from": "gpt",
"value": "package gov.nih.nci.cbiit.cmts.transform.hl7v2;\r\n\r\nimport java.io.IOException;\r\n\r\nimport javax.xml.bind.JAXBException;\r\nimport javax.xml.xquery.XQException;\r\n\r\ni... | java | chosen |
[
{
"from": "human",
"value": "Add comparator for files, by size\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2011 Eric F. Savage, code@efsavage.com\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the Licen... | java | chosen |
[
{
"from": "human",
"value": "Use a builder pattern, sort of\n"
},
{
"from": "gpt",
"value": "package se.soy.gpg;\n\npublic class GPG {\n // FIXME Remove when done\n static<T> void println(T arg) { System.out.println(arg); }\n\n public static void main(String[] args) {\n println(\"main\");\... | java | chosen |
[
{
"from": "human",
"value": "Add time module to jvm library\n"
},
{
"from": "gpt",
"value": "package neon;\n\npublic class Time {\n\n public static neon.type.Number now() {\n return new neon.type.Number(System.currentTimeMillis()).divide(new neon.type.Number(1000));\n }\n\n}\n"
}
... | java | chosen |
[
{
"from": "human",
"value": "Add test to demonstrate bug in TextBody.getSize()\n"
},
{
"from": "gpt",
"value": "package com.fsck.k9.mail.internet;\n\n\nimport java.io.IOException;\n\nimport com.fsck.k9.mail.MessagingException;\nimport okio.Buffer;\nimport org.apache.james.mime4j.util.MimeUtil;\n... | java | chosen |
[
{
"from": "human",
"value": "Create : 628 Maximum Product of Three Numbers\n"
},
{
"from": "gpt",
"value": "import java.util.Arrays;\n\npublic class Solution {\n\n public int maximumProduct(int[] nums) {\n\n Arrays.sort(nums);\n\n int pattern1 = nums[nums.length - 1] * nums[nums... | java | chosen |
[
{
"from": "human",
"value": "Implement get post use case\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (c) 2015 Ushahidi Inc\n *\n * This program is free software: you can redistribute it and/or modify it under\n * the terms of the GNU Affero General Public License as published by the Free\... | java | chosen |
[
{
"from": "human",
"value": "Add class for populating our database with a sequence file\n"
},
{
"from": "gpt",
"value": "package edu.iastate.cs.design.spec.input;\n\n/**\n * This class defines the entry point for the executable which will take a Boa AST sequence file as input and insert\n * all ... | java | chosen |
[
{
"from": "human",
"value": "Add some basic tests for TranslationFileServiceImpl\n\n Just testing a few of the utility methods, nothing for the core\n behaviour yet.\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2013, Red Hat, Inc. and individual contributors\n * as indicated by the @a... | java | chosen |
[
{
"from": "human",
"value": "Add todo route and implements the post method\n"
},
{
"from": "gpt",
"value": "package cobr.edu.cesmac;\n\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.Optional;\nimport java.util.concurrent.atomic.AtomicInteger;\n\nimport org.jooby.Result;\n... | java | chosen |
[
{
"from": "human",
"value": "test: Add a simple runner that allows to run Watcher from the IDE and work out of the box with Sense.\n\nOriginal commit: elastic/x-pack-elasticsearch@8c4100258e1c9a74d312c68547f5601489cb07a3\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright Elasticsearch B.V. and/or... | java | chosen |
[
{
"from": "human",
"value": "Move module loading to module class to make way for improvments to modularity and runtime module changes\n"
},
{
"from": "gpt",
"value": "package modules;\n\nimport java.util.HashSet;\n\npublic class Modules {\n\t\n\tpublic static HashSet<Module> loadAll(){\n\t\tHash... | java | chosen |
[
{
"from": "human",
"value": "Add main helper to compile Hogan.js templates\n"
},
{
"from": "gpt",
"value": "package net.champemont.jean.hogancompile.helper;\r\n\r\nimport java.io.File;\r\nimport java.io.FileReader;\r\nimport java.io.IOException;\r\nimport java.io.Reader;\r\nimport java.net.URISy... | java | chosen |
[
{
"from": "human",
"value": "Add support for stopBit encoded small decimal.\n"
},
{
"from": "gpt",
"value": "package net.openhft.chronicle.wire.marshallable;\n\nimport net.openhft.chronicle.bytes.Bytes;\nimport net.openhft.chronicle.bytes.BytesStore;\nimport net.openhft.chronicle.wire.AbstractMa... | java | chosen |
[
{
"from": "human",
"value": "Add test on value methods of values assert"
},
{
"from": "gpt",
"value": "package org.assertj.db.api;\n\nimport static org.assertj.core.api.Assertions.assertThat;\nimport static org.assertj.db.api.Assertions.assertThat;\n\nimport org.assertj.db.common.AbstractTest;\n... | java | chosen |
[
{
"from": "human",
"value": "Introduce utility class that provides access to the default font\n"
},
{
"from": "gpt",
"value": "package MWC.GUI;\n\nimport java.awt.Font;\n\npublic class Defaults\n{\n public static interface FontProvider\n {\n public Font getDefaultFont();\n }\n\n private s... | java | chosen |
[
{
"from": "human",
"value": "[FUSEQE-1371] Add after hook that saves server/integration logs\n"
},
{
"from": "gpt",
"value": "package io.syndesis.qe.rest.tests.hooks;\n\nimport cucumber.api.Scenario;\nimport cucumber.api.java.After;\nimport io.syndesis.qe.utils.OpenShiftUtils;\nimport lombok.ext... | java | chosen |
[
{
"from": "human",
"value": "Add stopwatch class for testing"
},
{
"from": "gpt",
"value": "package test;\r\n\r\npublic class Stopwatch {\r\n\tlong _start;\r\n\tlong _elapsed;\r\n\t\r\n\tpublic Stopwatch() {}\r\n\t\r\n\tpublic void start() {\r\n\t\t_start = System.currentTimeMillis();\r\n\t}\r\n... | java | chosen |
[
{
"from": "human",
"value": "Add test for updated method.\n"
},
{
"from": "gpt",
"value": "package com.uwetrottmann.thetvdb.services;\n\nimport com.uwetrottmann.thetvdb.BaseTestCase;\nimport com.uwetrottmann.thetvdb.entities.SeriesUpdate;\nimport com.uwetrottmann.thetvdb.entities.SeriesUpdatesRe... | java | chosen |
[
{
"from": "human",
"value": "Add suite for those tests which can be run quickly.\n\n\ngit-svn-id: 6bd94cac40bd5c1df74b384d972046d926de6ffa@10457 a8845c50-7012-0410-95d3-8e1449b9b1e4\n"
},
{
"from": "gpt",
"value": "/**\r\n\r\n * Copyright (c) 2005-2006 Grameen Foundation USA\r\n\r\n * 1029 Vermo... | java | chosen |
[
{
"from": "human",
"value": "feat: Return the required HAProxy mode for the implemented service\n\nWhen generating service keys the Service Brokers uses the correct mode\nof the HAProxy to forward requests\n"
},
{
"from": "gpt",
"value": "/**\r\n * \r\n */\r\npackage de.evoila.cf.broker.service.... | java | chosen |
[
{
"from": "human",
"value": "Add recommendations service test cases.\n"
},
{
"from": "gpt",
"value": "package com.jakewharton.trakt.services;\n\nimport java.util.List;\nimport com.jakewharton.trakt.BaseTestCase;\nimport com.jakewharton.trakt.entities.Movie;\nimport com.jakewharton.trakt.entities... | java | chosen |
[
{
"from": "human",
"value": "Add a method for creating a full-stack GitilesServlet for tests\n\nChange-Id: Ieb4fc7c456492f6614535b49d30be73ec600b4b9\n"
},
{
"from": "gpt",
"value": "// Copyright 2012 Google Inc. All Rights Reserved.\n//\n// Licensed under the Apache License, Version 2.0 (the \"L... | java | chosen |
[
{
"from": "human",
"value": "Add a logger that displays no message at the end of build\n"
},
{
"from": "gpt",
"value": "package org.realityforge.antix;\n\nimport org.apache.tools.ant.BuildEvent;\nimport org.apache.tools.ant.NoBannerLogger;\n\npublic class BasicLogger\n extends NoBannerLogger\n{... | java | chosen |
[
{
"from": "human",
"value": "Add minor test for HCLPsiUtil\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2000-2016 JetBrains s.r.o.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtai... | java | chosen |
[
{
"from": "human",
"value": "Create a basic message localization component\n"
},
{
"from": "gpt",
"value": "/*\r\n * Copyright (c) 2010 Célio Cidral Junior\r\n * \r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance wi... | java | chosen |
[
{
"from": "human",
"value": "Add file which should have been part of previous checkin.\n\n\ngit-svn-id: 23fe82866435bfad55a63e1848058f1c8ce5423e@89 97720ae0-9849-0410-b17a-8398f3d9df07\n"
},
{
"from": "gpt",
"value": "package net.sourceforge.mayfly;\n\n/**\n * This is suitable for errors which w... | java | chosen |
[
{
"from": "human",
"value": "Add skeleton for bootstrapping task\n"
},
{
"from": "gpt",
"value": "package co.phoenixlab.dn.dngearsim.bootstrap;\n\nimport javafx.concurrent.Task;\n\nimport java.lang.reflect.Method;\nimport java.util.function.Consumer;\n\npublic class BootstrapTask extends Task<Me... | java | chosen |
[
{
"from": "human",
"value": ":snowflake: Add query for computing minima\n"
},
{
"from": "gpt",
"value": "package weatherhandler.processor.query;\n\nimport java.io.OutputStream;\nimport java.io.PrintStream;\nimport java.util.Map;\nimport java.util.HashMap;\nimport java.util.function.Function;\nim... | java | chosen |
[
{
"from": "human",
"value": "ROUT-7: Implement User Mongo repository interface\n"
},
{
"from": "gpt",
"value": "package repositories;\n\nimport java.util.List;\nimport java.util.Optional;\n\nimport models.User;\n\nimport org.springframework.data.repository.Repository;\n\npublic interface UserRep... | java | chosen |
[
{
"from": "human",
"value": "Add a new filter that denies any event with no throwable information\n\nCan be added to your log4j.properties like so:\nlog4j.appender.sentry.filter.1=org.sakaiproject.sentry.filter.ThrowableInfoOnlyFilter\n"
},
{
"from": "gpt",
"value": "/**\n * Copyright (c) 2015 A... | java | chosen |
[
{
"from": "human",
"value": "Add a test case for side-effects / evaluation order.\n"
},
{
"from": "gpt",
"value": "class SideEffectsAndEvalOrder {\n public static void main(String[] args) {\n IncredibleMachine m;\n m = new IncredibleMachine();\n System.out.println(m.run()... | java | chosen |
[
{
"from": "human",
"value": "Add random pwd generator tests.\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2015, 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 and the fo... | java | chosen |
[
{
"from": "human",
"value": "InlineEdit: Add container to represent change edit\n\nChange edits are created on top of patch sets and are virtual patch\nsets that don't exist in the database. A max of one edit per user per\nchange is stored on ref:\n\n refs/users/UU/UUUU/edit-CCCC\n\nfor edit by user UUUU o... | java | chosen |
[
{
"from": "human",
"value": "Hide the creation of RequestFilters from the client so we have a chance to interpret the request and do the right thing with the filter values.\n"
},
{
"from": "gpt",
"value": "package uk.ac.ebi.quickgo.annotation.model;\n\nimport uk.ac.ebi.quickgo.rest.search.filter... | java | chosen |
[
{
"from": "human",
"value": "Add java solution for 117. Populating Next Right Pointers in Each Node II\n\n117. Populating Next Right Pointers in Each Node II: https://leetcode.com/problems/populating-next-right-pointers-in-each-node-ii/"
},
{
"from": "gpt",
"value": "package leetcode.populating_... | java | chosen |
[
{
"from": "human",
"value": "Add first test for Content provider\n"
},
{
"from": "gpt",
"value": "package sleepyweasel.purplefluffernutter;\n\nimport org.junit.Test;\nimport org.junit.runner.RunWith;\nimport org.robolectric.Robolectric;\nimport org.robolectric.RobolectricGradleTestRunner;\nimpor... | java | chosen |
[
{
"from": "human",
"value": "Create class to store invariants\n"
},
{
"from": "gpt",
"value": "package com.google.sps.data;\n\npublic class Invariants {\n private float minCredits;\n private float maxCredits;\n\n public Invariants(float minCredits, float maxCredits){\n this.minCredits = mi... | java | chosen |
[
{
"from": "human",
"value": "Add Player test skeleton (empty for now)\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (c) 2015 Justin White <jw@justinwhite.net>\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitte... | java | chosen |
[
{
"from": "human",
"value": "Fix Batoto not working sometimes.\n"
},
{
"from": "gpt",
"value": "package android.text;\n\n\nimport android.graphics.drawable.Drawable;\nimport org.jetbrains.annotations.NotNull;\nimport org.jsoup.Jsoup;\nimport org.jsoup.safety.Whitelist;\nimport org.xml.sax.XMLRea... | java | chosen |
[
{
"from": "human",
"value": "Initialize plugin module for Apache Nutch\n\ngit-svn-id: dbf9d33165e6be7f805c18c8e24fe708a00b279c@74 5bf80810-9c81-6ef6-3109-74533bb38634\n"
},
{
"from": "gpt",
"value": "package com.cybozu.labs.nutch.plugin;\r\n\r\nimport org.apache.hadoop.conf.Configuration;\r\nimp... | java | chosen |
[
{
"from": "human",
"value": "Add a HTTP Servlet for Sentry API requests\n"
},
{
"from": "gpt",
"value": "package net.kencochrane.raven.sentrystub;\n\nimport javax.servlet.ServletException;\nimport javax.servlet.annotation.WebServlet;\nimport javax.servlet.http.HttpServlet;\nimport javax.servlet.... | java | chosen |
[
{
"from": "human",
"value": "Add tests for the AsyncConnection\n"
},
{
"from": "gpt",
"value": "package net.kencochrane.raven.connection;\n\nimport net.kencochrane.raven.event.Event;\nimport net.kencochrane.raven.event.EventBuilder;\nimport org.junit.Before;\nimport org.junit.Test;\nimport org.j... | java | chosen |
[
{
"from": "human",
"value": "Add test code to use Calendar class."
},
{
"from": "gpt",
"value": "package study.hard.javalib.calendar;\n\nimport java.util.Calendar;\nimport java.util.Date;\n\nimport org.apache.commons.lang.time.DateUtils;\nimport org.junit.Test;\n\npublic class CalendarTest {\n\n... | java | chosen |
[
{
"from": "human",
"value": "Add unit test to fix the behavior of ValidationReport.\n"
},
{
"from": "gpt",
"value": "package azkaban.project.validator;\n\nimport static org.junit.Assert.*;\n\nimport java.util.HashSet;\nimport java.util.Set;\n\nimport org.junit.Test;\n\n/**\n * Test\n */\npublic ... | java | chosen |
[
{
"from": "human",
"value": "Create a new integration test for legacy JSON API navigation\n"
},
{
"from": "gpt",
"value": "package uk.ac.ebi.biosamples;\n\nimport org.springframework.hateoas.MediaTypes;\nimport org.springframework.hateoas.client.Traverson;\nimport uk.ac.ebi.biosamples.client.Bio... | java | chosen |
[
{
"from": "human",
"value": " Remove duplicates in a strinmg.\n"
},
{
"from": "gpt",
"value": "package com.sunny.grokkingalgorithms.gfg.nfx;\n\nimport java.util.HashSet;\nimport java.util.Set;\n\n/**\n * Created by sundas on 5/23/2018.\n */\npublic class RemoveDuplicatesFromAString {\n\n public... | java | chosen |
[
{
"from": "human",
"value": "Create fragment class for username\n"
},
{
"from": "gpt",
"value": "package ca.ualberta.cs.cmput301f14t14.questionapp.view;\n\nimport android.os.Bundle;\nimport android.support.v4.app.Fragment;\nimport android.view.LayoutInflater;\nimport android.view.View;\nimport a... | java | chosen |
[
{
"from": "human",
"value": "Check in new file needed by previous check-in, and do ignores\n"
},
{
"from": "gpt",
"value": "package org.intermine.sql.writebatch;\n\n/*\n * Copyright (C) 2002-2007 FlyMine\n *\n * This code may be freely distributed and modified under the\n * terms of the GNU Less... | java | chosen |
[
{
"from": "human",
"value": "Add generic service class that can be extended for basic crud support."
},
{
"from": "gpt",
"value": "package ca.corefacility.bioinformatics.irida.service.impl;\n\nimport ca.corefacility.bioinformatics.irida.repositories.CRUDRepository;\nimport ca.corefacility.bioinf... | java | chosen |
[
{
"from": "human",
"value": "Create exception to unsupported or unknown resource types.\n"
},
{
"from": "gpt",
"value": "package com.github.aureliano.achmed.exception;\n\npublic class NoSuchResourceException extends RuntimeException {\n\n\tprivate static final long serialVersionUID = 14044053984... | java | chosen |
[
{
"from": "human",
"value": " Introduce new resource life cycle listener\n\n add files\n"
},
{
"from": "gpt",
"value": "package com.cloud.resource;\r\n\r\nimport java.net.URI;\r\nimport java.util.List;\r\nimport java.util.Map;\r\n\r\nimport com.cloud.host.HostVO;\r\n\r\npublic interface Resource... | java | chosen |
[
{
"from": "human",
"value": "Add UI for users to change projection\n"
},
{
"from": "gpt",
"value": "package flyway.asdi;\n\nimport fi.nls.oskari.db.BundleHelper;\nimport fi.nls.oskari.domain.map.view.Bundle;\nimport fi.nls.oskari.domain.map.view.View;\nimport fi.nls.oskari.map.view.ViewService;\... | java | chosen |
[
{
"from": "human",
"value": "[ENG-109] Write unit test of ViewComputationResultModelImpl\n"
},
{
"from": "gpt",
"value": "/**\n * Copyright (C) 2009 - 2010 by OpenGamma Inc.\n *\n * Please see distribution for license.\n */\n\npackage com.opengamma.engine.view;\n\nimport static org.junit.Assert.... | java | chosen |
[
{
"from": "human",
"value": "Add tests for sync center\n"
},
{
"from": "gpt",
"value": "package edu.cmu.sv.trailscribe.tests;\n\nimport android.test.ActivityInstrumentationTestCase2;\nimport edu.cmu.sv.trailscribe.view.SynchronizationCenterActivity;\nimport edu.cmu.sv.trailscribe.R;\nimport andr... | java | chosen |
[
{
"from": "human",
"value": "Check if a BT is a BST\n\nChange-Id: I4b1159e7f9c44138c05c76f90a6f537c02637cb2\n"
},
{
"from": "gpt",
"value": "// Copyright 2016 The Sawdust Open Source Project\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file ... | java | chosen |
[
{
"from": "human",
"value": "Add workaround to initialize terminal size while execute bash with tty.\n"
},
{
"from": "gpt",
"value": "/**\n * Copyright (C) 2015 Red Hat, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in complia... | java | chosen |
[
{
"from": "human",
"value": "Add Dashboard configuration save response\n"
},
{
"from": "gpt",
"value": "package gr.demokritos.iit.ydsapi.responses;\n\nimport com.google.gson.GsonBuilder;\n\npublic class DashboardConfigSaveResponse extends BaseResponse implements IResponse {\n private Object d... | java | chosen |
[
{
"from": "human",
"value": "Add tests for NetworkElementFactory.getNodesWithIpLike with multiple interfaces on the same node. This uses the new iplike functionality in PopulatedTemporaryDatabaseTestCase\n"
},
{
"from": "gpt",
"value": "package org.opennms.web.element;\n\nimport java.sql.Connec... | java | chosen |
[
{
"from": "human",
"value": "Check if a string is asubsequence to another , brute force.\n"
},
{
"from": "gpt",
"value": "package com.sunny.grokkingalgorithms.boot2019.phleps;\n\npublic class StringSubsequenceProblem {\n\n /*\n Given two strings, find if first string is a subsequence of s... | java | chosen |
[
{
"from": "human",
"value": "Add HBase table creation java example\n"
},
{
"from": "gpt",
"value": "package com.test.habse.examples;\n\nimport org.apache.commons.configuration.ConfigurationException;\nimport org.apache.commons.configuration.PropertiesConfiguration;\n\nimport org.apache.hadoop.hb... | java | chosen |
[
{
"from": "human",
"value": "Add type mismatch error message\n"
},
{
"from": "gpt",
"value": "package error;\n\nimport parse.Loc;\nimport types.Type;\n\nimport static error.ErrorManager.em;\n\npublic interface CommonErrors {\n\n default void typeMismatch(Loc loc, Type found, Type... expected) ... | java | chosen |
[
{
"from": "human",
"value": "Add a skeleton for problem 213\n"
},
{
"from": "gpt",
"value": "package leetcode;\n\n/**\n * https://leetcode.com/problems/house-robber-ii/\n */\npublic class Problem213 {\n public int rob(int[] nums) {\n // TODO\n return 0;\n }\n\n public stat... | java | chosen |
[
{
"from": "human",
"value": "Add Command Line Interface for Patching"
},
{
"from": "gpt",
"value": "import java.io.File;\n\npublic class Main {\n public static void main(String[] args) {\n if (args.length < 3) {\n System.err.println(\"You must specify 3 arguments!\");\n ... | java | chosen |
[
{
"from": "human",
"value": "Add a simple position component\n"
},
{
"from": "gpt",
"value": "package starpunk.components;\n\nimport com.artemis.Component;\n\npublic class Position\n extends Component\n{\n private float _x;\n private float _y;\n\n public float getX()\n {\n return _x;\n ... | java | chosen |
[
{
"from": "human",
"value": "Add assertThrows convenience function and a new home :)\n"
},
{
"from": "gpt",
"value": "package TestUtil;\n\nimport org.hamcrest.BaseMatcher;\nimport org.hamcrest.Description;\nimport org.hamcrest.Matcher;\nimport org.junit.Assert;\n\npublic class TestUtil {\n pu... | java | chosen |
[
{
"from": "human",
"value": "Add IVAABBs for AABB intersections\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2014 Lukas Tenbrink\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 tests for percentile aggregate function.\n"
},
{
"from": "gpt",
"value": "package com.groupon.lex.metrics.timeseries.expression;\n\nimport com.groupon.lex.metrics.MetricValue;\nimport com.groupon.lex.metrics.timeseries.TimeSeriesMetricDeltaSet;\nimport com.groupo... | java | chosen |
[
{
"from": "human",
"value": "Add servlet for retrieving single volunteering opportunity.\n"
},
{
"from": "gpt",
"value": "package com.google.sps.servlets;\n\nimport com.google.sps.data.VolunteeringOpportunity;\nimport com.google.sps.utilities.CommonUtils;\nimport com.google.sps.utilities.Databas... | java | chosen |
[
{
"from": "human",
"value": "Introduce report type for service dump\n"
},
{
"from": "gpt",
"value": "// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\npackage com.yahoo.vespa.hosted.node.admin.maintenance.servicedump;\n\nimport com.... | java | chosen |
[
{
"from": "human",
"value": "Create base class with resourse properties implementation.\n"
},
{
"from": "gpt",
"value": "package com.github.aureliano.achmed.resources.properties;\n\nimport java.util.HashMap;\nimport java.util.Map;\n\npublic class ResourceProperties implements IResourceProperties... | java | chosen |
[
{
"from": "system",
"value": "Support for junit 4.7+ maven test runner, previously this test would not have been run and without this change it receives a No runnable methods found error.\n"
},
{
"from": "human",
"value": "/************************************************************************... | java | chosen |
[
{
"from": "human",
"value": "Add string replacement utility tests\n\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (c) 2019.\n *\n * This file is part of AvaIre.\n *\n * AvaIre is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as ... | java | chosen |
[
{
"from": "human",
"value": "Create a skeleton for problem 338\n"
},
{
"from": "gpt",
"value": "package leetcode;\n\nimport java.util.Arrays;\n\n/**\n * https://leetcode.com/problems/counting-bits/\n */\npublic class Problem338 {\n public int[] countBits(int num) {\n\n }\n\n public stat... | java | chosen |
[
{
"from": "human",
"value": "Add unit tests for com.alibaba.nacos.client.utils.StringUtils\n\nThese tests were written using Diffblue Cover.\n"
},
{
"from": "gpt",
"value": "package com.alibaba.nacos.client;\n\nimport com.alibaba.nacos.client.utils.StringUtils;\nimport org.junit.Test;\n\nimport ... | java | chosen |
[
{
"from": "human",
"value": "Solve No.2577 from Baekjoon Online Judge\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2017 haeun kim\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain... | java | chosen |
[
{
"from": "human",
"value": "Add test for Hello world activity\n"
},
{
"from": "gpt",
"value": "package com.ustwo.boilerplate.feature.helloworld;\n\nimport android.support.test.rule.ActivityTestRule;\n\nimport com.ustwo.boilerplate.R;\n\nimport org.junit.Rule;\nimport org.junit.Test;\n\nimport s... | java | chosen |
[
{
"from": "human",
"value": "Add converter for ij.measure.ResultsTable to HTML\n"
},
{
"from": "gpt",
"value": "/*-\n * #%L\n * SciJava polyglot kernel for Jupyter.\n * %%\n * Copyright (C) 2017 Hadrien Mary\n * %%\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may... | java | chosen |
[
{
"from": "human",
"value": "Introduce benchmarks of reduce operation\n"
},
{
"from": "gpt",
"value": "package _3_reducing;\n\nimport org.junit.Test;\nimport org.openjdk.jmh.annotations.Benchmark;\nimport org.openjdk.jmh.annotations.Level;\nimport org.openjdk.jmh.annotations.Mode;\nimport org.op... | java | chosen |
[
{
"from": "human",
"value": "[PUBDEV-928] Test (ignored) - deep learing is failing on empty chunks.\n"
},
{
"from": "gpt",
"value": "package hex.deeplearning;\n\nimport org.junit.BeforeClass;\nimport org.junit.Ignore;\nimport org.junit.Test;\nimport water.DKV;\nimport water.H2O;\nimport water.Ke... | java | chosen |
[
{
"from": "human",
"value": "Add sample for infinite streams\n"
},
{
"from": "gpt",
"value": "package com.winterbe.java8;\n\nimport java.security.SecureRandom;\nimport java.util.Arrays;\nimport java.util.stream.IntStream;\n\n/**\n * @author Benjamin Winterberg\n */\npublic class Streams13 {\n\n ... | java | chosen |
[
{
"from": "human",
"value": "Update The Comparator Interface Test\n"
},
{
"from": "gpt",
"value": "package checkpoint.andela.readersclub;\n\nimport checkpoint.andela.members.*;\nimport org.junit.Test;\n\nimport static junit.framework.Assert.assertEquals;\n\n/**\n * Created by Semiu on 05/12/2015... | java | chosen |
[
{
"from": "human",
"value": "Create an Interface for Activities w/ BottomBar\n"
},
{
"from": "gpt",
"value": "package com.averi.worldscribe.views;\n\nimport com.averi.worldscribe.Category;\n\n/**\n * Created by mark on 23/08/16.\n *\n * Interface for Activities that contain a {@link BottomBar} V... | java | chosen |
[
{
"from": "human",
"value": "Add test creation rule for local DynamoDB\n"
},
{
"from": "gpt",
"value": "package com.exorath.service.treasurehunt.test.dynamodb;\n\nimport com.amazonaws.auth.BasicAWSCredentials;\nimport com.amazonaws.services.dynamodbv2.AmazonDynamoDB;\nimport com.amazonaws.servic... | java | chosen |
[
{
"from": "human",
"value": "Create one test AddressEmailUserAddressTest instead of three\n\nсоздан один общий тест на проверку телефонов, адреса и email-ов вместо\nтрех отдельны тестов\n"
},
{
"from": "gpt",
"value": "package ru.sfwt.mt.addressbook.tests;\n\n\nimport org.hamcrest.CoreMatchers;\... | java | chosen |
[
{
"from": "human",
"value": "Add empty junit class for ES multiSource storage\n"
},
{
"from": "gpt",
"value": "/***************************** BEGIN LICENSE BLOCK ***************************\r\n\r\nThe contents of this file are subject to the Mozilla Public License, v. 2.0.\r\nIf a copy of the MP... | java | chosen |
[
{
"from": "human",
"value": " Add common functionality of commit notifiers.\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (c) 2013 Red Rainbow IT Solutions GmbH, Germany\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy of\n * this software and associated d... | java | chosen |
[
{
"from": "human",
"value": "Add the connectorConfig file to git\n"
},
{
"from": "gpt",
"value": "package org.openengsb.opencit.core.projectmanager.model;\n\nimport java.io.Serializable;\nimport java.util.Map;\n\n@SuppressWarnings(\"serial\")\npublic class ConnectorConfig implements Serializable... | java | chosen |
[
{
"from": "human",
"value": "Implement a builder for AnnotationDescriptor\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2015 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 *... | java | chosen |
[
{
"from": "human",
"value": "Remove FIXME 1.5 signature cause it was fixed\n\nsvn path=/harmony/; revision=487447\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... | java | chosen |
[
{
"from": "human",
"value": "Add test for 'die' command handler\n\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2019 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 ... | java | chosen |
[
{
"from": "human",
"value": "Add test checking that inheritence is noticed even with annotations present\n"
},
{
"from": "gpt",
"value": "import java.io.*;\nimport java.lang.annotation.*;\n\npublic class Test {\n\n @Target({ElementType.METHOD, ElementType.FIELD, ElementType.PARAMETER, ElementTy... | java | chosen |
[
{
"from": "human",
"value": "Add solution for NobleIntegers in an array\n"
},
{
"from": "gpt",
"value": "package array;\n\nimport java.util.Arrays;\n\npublic class NobleIntegersInArray {\n\n public int nobleInteger(int[] arr) {\n Arrays.sort(arr);\n for (int i = 0; i < arr.length; i++) {\... | java | chosen |
[
{
"from": "human",
"value": "Load keywords.propertis using iso8859-1 and converts each key to utf-8 when reading\n"
},
{
"from": "gpt",
"value": "package com.codificando.jbehavei18n;\n\nimport org.jbehave.scenario.PropertyBasedConfiguration;\nimport org.jbehave.scenario.Scenario;\nimport org.jbe... | java | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.