conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Increase BDB test ID timeout: 20 to 150 ms\n\n20 ms is too tightly tuned for some test environments\n"
},
{
"from": "human",
"value": "package com.thinkaurelius.titan.blueprints;\n\nimport com.thinkaurelius.titan.BerkeleyStorageSetup;\nimport com.thinkaurelius.titan... | java | chosen |
[
{
"from": "human",
"value": "Create router to redirect frontend html5 paths\n"
},
{
"from": "gpt",
"value": "package com.aleggeup.confagrid.router;\n\nimport org.springframework.stereotype.Controller;\nimport org.springframework.web.bind.annotation.RequestMapping;\n\n@Controller\npublic class Ro... | java | chosen |
[
{
"from": "human",
"value": "Add test for boundary conditions\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 regarding c... | java | chosen |
[
{
"from": "human",
"value": "Add converter to upload files\n"
},
{
"from": "gpt",
"value": "package br.com.caelum.vraptor.musicjungle.converter;\n\nimport java.util.ResourceBundle;\n\nimport javax.servlet.http.HttpServletRequest;\n\nimport br.com.caelum.vraptor.Convert;\nimport br.com.caelum.vra... | java | chosen |
[
{
"from": "human",
"value": "Add date_trunc with time zone parameter\n"
},
{
"from": "gpt",
"value": "package com.vladmihalcea.book.hpjp.hibernate.query.function;\n\nimport com.vladmihalcea.book.hpjp.util.AbstractPostgreSQLIntegrationTest;\nimport org.hibernate.boot.MetadataBuilder;\nimport org.... | java | chosen |
[
{
"from": "human",
"value": "Add dummy for container tests\n"
},
{
"from": "gpt",
"value": "package com.yahoo.vespa.hosted.controller.api.integration.stubs;\n\nimport com.yahoo.vespa.hosted.controller.api.integration.BuildService;\n\npublic class MockBuildService implements BuildService {\n\n ... | java | chosen |
[
{
"from": "human",
"value": "Add the missing interface class\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2008 Novamente LLC\n * Copyright 2009 Linas Vepstas\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the... | java | chosen |
[
{
"from": "human",
"value": "Support Fahrenheit and Kelvin Unit(ter)\n"
},
{
"from": "gpt",
"value": "package fr.tvbarthel.apps.simplethermometer;\n\n\nimport android.app.AlertDialog;\nimport android.app.Dialog;\nimport android.content.DialogInterface;\nimport android.content.SharedPreferences;\... | java | chosen |
[
{
"from": "human",
"value": "Fix nullability problems in org.gradle.integtests.fixtures.validation\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2022 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except... | java | chosen |
[
{
"from": "human",
"value": "Add unit test for VM failure simulator.\n"
},
{
"from": "gpt",
"value": "import cloudsimulator.clustersimulator.SimulateFailures;\nimport cloudsimulator.clustersimulator.dto.SimulatedCluster;\nimport cloudsimulator.clustersimulator.dto.TCGroup;\nimport org.junit.Test... | java | chosen |
[
{
"from": "human",
"value": "Add non-blocking CompactProtocol conformance test\n"
},
{
"from": "gpt",
"value": "package com.bendb.thrifty.integration;\n\nimport com.bendb.thrifty.protocol.CompactProtocol;\nimport com.bendb.thrifty.protocol.Protocol;\nimport com.bendb.thrifty.testing.ServerProtoc... | java | chosen |
[
{
"from": "human",
"value": "[ING] Add test case for RSS feed\n\n- user model changes: no\n- storage format changes: no\n- interface changes: no\n\ndetails:\n- Added a simple test case for RSSRecordReader which fetches records\n from dummy website.\n\nChange-Id: I146a54ab069deda56f5ee611d761ec645d2497e6\nR... | java | chosen |
[
{
"from": "human",
"value": "Add java solution for 89. Gray Code\n\n89. Gray Code: https://leetcode.com/problems/gray-code/"
},
{
"from": "gpt",
"value": "package leetcode.gray_code;\n\nimport java.util.ArrayList;\n\npublic class Solution {\n public ArrayList<Integer> grayCode(int n) {\n ... | java | chosen |
[
{
"from": "human",
"value": "Add basic shadow tro prevent NPE when dereferencing.\n"
},
{
"from": "gpt",
"value": "package org.robolectric.shadows;\n\nimport static android.os.Build.VERSION_CODES.O;\n\nimport android.service.autofill.FillEventHistory;\nimport android.view.autofill.AutofillManage... | java | chosen |
[
{
"from": "human",
"value": "Add of a block generator.\n"
},
{
"from": "gpt",
"value": "package gameEngine.meshGenerator;\n\nimport gameEngine.Material;\nimport gameEngine.Mesh;\n\npublic class BlockGenerator {\n\tpublic static Mesh generate(float xLength, float yLength, float zLength, Material ... | java | chosen |
[
{
"from": "human",
"value": "Add abstract class for declartions\n"
},
{
"from": "gpt",
"value": "package absyn;\n\nimport env.Env;\nimport parse.Loc;\nimport types.Type;\n\npublic abstract class Dec extends AST {\n\n public Dec(Loc loc) {\n super(loc);\n }\n\n // Do semantic analysis ... | java | chosen |
[
{
"from": "human",
"value": "Add data package for representing datasets\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (c) 2014, Colorado State University All rights reserved.\n * \n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided ... | java | chosen |
[
{
"from": "human",
"value": "Add read json array recipe\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2015 Square, 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 copy of ... | java | chosen |
[
{
"from": "human",
"value": "Add test that bverifies dagger feature for single component\n"
},
{
"from": "gpt",
"value": "package arez.integration;\n\nimport arez.Arez;\nimport arez.annotations.ArezComponent;\nimport arez.annotations.Injectible;\nimport arez.annotations.Observable;\nimport dagge... | java | chosen |
[
{
"from": "human",
"value": "Add integration test for actions that switch to environments\n"
},
{
"from": "gpt",
"value": "package arez.integration.action;\n\nimport arez.Arez;\nimport arez.ArezContext;\nimport arez.Environment;\nimport arez.Function;\nimport arez.SafeFunction;\nimport arez.anno... | java | chosen |
[
{
"from": "human",
"value": "GS-8294: Test RemotingUtils.buildMethodToHashLookupForInterface which calls RemotingUtils.getAllInterfacesForInterface with the relevant change in interface hierarchy.\n\nsvn path=/trunk/openspaces/; revision=76211\n\n\nFormer-commit-id: 61f23ca90143c422ae5a470a53961765f42aec9b"... | java | chosen |
[
{
"from": "human",
"value": "Clean session taglib variable after logout"
},
{
"from": "gpt",
"value": "/**\n* OpenCPS is the open source Core Public Services software\n* Copyright (C) 2016-present OpenCPS community\n\n* This program is free software: you can redistribute it and/or modify\n* it u... | java | chosen |
[
{
"from": "human",
"value": "Add one row to tree 623\n"
},
{
"from": "gpt",
"value": "/**\n * Definition for a binary tree node.\n * public class TreeNode {\n * int val;\n * TreeNode left;\n * TreeNode right;\n * TreeNode(int x) { val = x; }\n * }\n * Given the root of a binary t... | java | chosen |
[
{
"from": "human",
"value": "Add the DeploymentSource object to provide when the source doesn't exits anymore.\n"
},
{
"from": "gpt",
"value": "package alien4cloud.rest.deployment;\n\nimport alien4cloud.model.deployment.IDeploymentSource;\nimport lombok.AllArgsConstructor;\nimport lombok.Getter;... | java | chosen |
[
{
"from": "human",
"value": "Add missing parser mark expression\n"
},
{
"from": "gpt",
"value": "package com.btk5h.skriptmirror.skript.custom;\n\nimport org.bukkit.event.Event;\n\nimport ch.njol.skript.ScriptLoader;\nimport ch.njol.skript.Skript;\nimport ch.njol.skript.lang.Expression;\nimport c... | java | chosen |
[
{
"from": "human",
"value": "Add support for custom alignment of human readable text (add missing file)\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2018 Daniel Gredler\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in complian... | java | chosen |
[
{
"from": "human",
"value": "Add test to EmployeeManager's findBy method\n"
},
{
"from": "gpt",
"value": "package com.yammer.stresstime.managers;\n\nimport com.yammer.stresstime.entities.Employee;\nimport com.yammer.stresstime.test.DatabaseTest;\nimport org.junit.Before;\nimport org.junit.Test;\... | java | chosen |
[
{
"from": "human",
"value": "Add test to jvm metrics module\n"
},
{
"from": "gpt",
"value": "package com.tqdev.metrics.jvm;\n\nimport static org.assertj.core.api.Assertions.assertThat;\n\nimport java.lang.management.ManagementFactory;\n\nimport org.junit.Test;\n\nimport com.sun.management.Operat... | java | chosen |
[
{
"from": "human",
"value": "Add preprocessor that assigns default values\n\nUnresolved module items should be assigned their default value,\nas given by the ModuleService#getDefaultValue() method, before\nanything else (even module initialization!) happens.\n"
},
{
"from": "gpt",
"value": "/*\n... | java | chosen |
[
{
"from": "human",
"value": "Add hackerrank week of code 30 solution\n"
},
{
"from": "gpt",
"value": "package week_of_code_30;\n\nimport java.util.Scanner;\n\npublic class CandyReplenishingRobot {\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int n = ... | java | chosen |
[
{
"from": "human",
"value": "Add test for S3UnderFileSystem Factory.\n"
},
{
"from": "gpt",
"value": "/*\n * Licensed to the University of California, Berkeley under one or more contributor license\n * agreements. See the NOTICE file distributed with this work for additional information regardin... | java | chosen |
[
{
"from": "human",
"value": "Add map based implementation of GlobalScope\n"
},
{
"from": "gpt",
"value": "package com.impossibl.stencil.api.impl;\n\nimport java.util.Map;\n\nimport com.impossibl.stencil.api.GlobalScope;\n\n/**\n * GlobalScope backed by Map\n * \n * @author kdubb\n *\n */\npublic... | java | chosen |
[
{
"from": "human",
"value": "Add queue based ring buffer\n"
},
{
"from": "gpt",
"value": "package net.openhft.chronicle.queue;\n\nimport net.openhft.chronicle.core.OS;\nimport net.openhft.chronicle.wire.DocumentContext;\nimport net.openhft.chronicle.wire.Wire;\nimport org.junit.Test;\n\nimport j... | java | chosen |
[
{
"from": "human",
"value": "Add statement to problem 40\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 tests for context property scoping.\n"
},
{
"from": "gpt",
"value": "/*\n * $Header$\n * \n * Copyright (c) OSGi Alliance (2010). All Rights Reserved.\n * \n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except ... | java | chosen |
[
{
"from": "human",
"value": "Add basic unit tests for Activity\n\nEasier to write tests in java since we mostly follow\n http://developer.android.com/training/activity-testing/preparing-activity-testing.html\n http://developer.android.com/training/activity-testing/activity-basic-testing.html\n\nAble to acce... | java | chosen |
[
{
"from": "human",
"value": "Add vertex class for prims\n"
},
{
"from": "gpt",
"value": "package prims;\n\n/*\n\tThis class defines vertex for Prims Minimum Spanning Tree algorithm.\n*/\n\nclass Vertex{\n\n\tprivate int name = -1;\t\t\t\t\t// Vertex name\n\tprivate int parent = -1;\t\t\t// Paren... | java | chosen |
[
{
"from": "human",
"value": "Add Reducer to fusion total vars\n\nThis Reducer implements MACRO_mobmx_MobVar_fusiontotalvars\n"
},
{
"from": "gpt",
"value": "package es.tid.cosmos.mobility.activityarea;\n\nimport java.io.IOException;\n\nimport com.twitter.elephantbird.mapreduce.io.ProtobufWritabl... | java | chosen |
[
{
"from": "human",
"value": "Implement tests for authenticate action.\n"
},
{
"from": "gpt",
"value": "package controllers;\n\nimport com.google.common.collect.ImmutableMap;\nimport org.junit.Before;\nimport org.junit.Test;\nimport play.mvc.Result;\nimport play.test.WithApplication;\n\nimport st... | java | chosen |
[
{
"from": "human",
"value": "Add abstract declare commands handler\n"
},
{
"from": "gpt",
"value": "package us.myles.ViaVersion.api.rewriters;\n\nimport org.jetbrains.annotations.Nullable;\nimport us.myles.ViaVersion.api.PacketWrapper;\nimport us.myles.ViaVersion.api.protocol.ClientboundPacketTy... | java | chosen |
[
{
"from": "human",
"value": "Add test for IOCKey class\n"
},
{
"from": "gpt",
"value": "package io.github.omskscream.ioc;\n\nimport org.junit.Test;\n\nimport java.util.List;\n\nimport static org.junit.Assert.assertEquals;\nimport static org.junit.Assert.assertNotEquals;\n\n/**\n * @author omsksc... | java | chosen |
[
{
"from": "human",
"value": "Add linked list deep copy problem\n"
},
{
"from": "gpt",
"value": "/**\n * A linked list is given such that each node contains an additional random pointer \n * which could point to any node in the list or null.\n * Return a deep copy of the list.\n */\npublic class ... | java | chosen |
[
{
"from": "human",
"value": "Create a helper class which helps to test IndexPage class\n"
},
{
"from": "gpt",
"value": "package com.twu.biblioteca.helpers;\n\nimport com.twu.biblioteca.IndexPage;\nimport com.twu.biblioteca.OutputWriter;\n\npublic class IndexPageTestHelper extends IndexPage {\n\n... | java | chosen |
[
{
"from": "human",
"value": "Move more tests to test tree\n\ngit-svn-id: 52ad764cdf1b64a6e804f4e5ad13917d3c4b2253@349011 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "gpt",
"value": "/*\r\n * Copyright 2001-2005 The Apache Software Foundation.\r\n *\r\n * Licensed under the Apache Licens... | java | chosen |
[
{
"from": "human",
"value": "Introduce new ping healthcheck endpoint\n"
},
{
"from": "gpt",
"value": "package com.sbsk.web.configuration;\n\nimport org.springframework.boot.actuate.endpoint.Endpoint;\nimport org.springframework.context.annotation.Bean;\nimport org.springframework.context.annotat... | java | chosen |
[
{
"from": "human",
"value": "Add Free over ConsoleFileCoproduct - untested\n\nSigned-off-by: Ricky Elrod <3de8762d49a778edd8b1aa9f381ea5a9ccb62944@elrod.me>\n"
},
{
"from": "gpt",
"value": "package me.elrod.pureio;\n\nimport java.util.function.Function;\n\n/**\n * <code>Free (F =></code> {@li... | java | chosen |
[
{
"from": "human",
"value": "Add demo to restart within certain hours after a certain uptime\n"
},
{
"from": "gpt",
"value": "package com.haxademic.demo.system;\n\nimport com.haxademic.core.app.P;\nimport com.haxademic.core.app.PAppletHax;\nimport com.haxademic.core.file.FileUtil;\nimport com.ha... | java | chosen |
[
{
"from": "human",
"value": "Change the field names for gene product name and synonyms so that match the ones used in the Annotation model.\n"
},
{
"from": "gpt",
"value": "package uk.ac.ebi.quickgo.annotation.download;\n\nimport java.util.Arrays;\nimport java.util.List;\n\n/**\n * Holds a list ... | java | chosen |
[
{
"from": "human",
"value": "Use synchronize to control access\n\nhttp://ideone.com/ezMWzK"
},
{
"from": "gpt",
"value": "// Use synchronize to control access.\n\nclass SumArray {\n\tprivate int sum;\n\t\n\tsynchronized int sumArray(int nums[]) {\n\t\tsum = 0; // reset sum\n\t\t\n\t\tfor(int i=0... | java | chosen |
[
{
"from": "human",
"value": "Add maximum matching cluster accuracy\n"
},
{
"from": "gpt",
"value": "/*\n * This file is part of ELKI:\n * Environment for Developing KDD-Applications Supported by Index-Structures\n * \n * Copyright (C) 2020\n * ELKI Development Team\n * \n * This program is free ... | java | chosen |
[
{
"from": "human",
"value": "Add JUnits for CNP validator\n"
},
{
"from": "gpt",
"value": "package com.vrachieru.cnp4j;\n\nimport com.vrachieru.cnp4j.exception.Cnp4jException;\n\nimport org.junit.Rule;\nimport org.junit.Test;\nimport org.junit.rules.ExpectedException;\n\npublic class CnpValidato... | java | chosen |
[
{
"from": "human",
"value": "Change to use ZonedDateTime object directory for datetime in message payload .\n"
},
{
"from": "gpt",
"value": "package jp.gr.java_conf.hhayakawa_jp.beehive_client;\n\nimport java.io.IOException;\nimport java.time.ZonedDateTime;\nimport java.time.format.DateTimeForma... | java | chosen |
[
{
"from": "human",
"value": "Add a place-holder interface for syntax highlighter plugins\n\nThis will allow third-party components to provide their own syntax\nhighlighting plugins for additional languages.\n\nThe next commit will actually convert all of our custom syntax\nhighlighters into such plugins so ... | java | chosen |
[
{
"from": "human",
"value": "Add DImPos data class for storing World and BlockPos.\n"
},
{
"from": "gpt",
"value": "package org.cyclops.cyclopscore.datastructure;\n\nimport lombok.Data;\nimport net.minecraft.util.BlockPos;\nimport net.minecraft.world.World;\n\n/**\n * A simple data class for a b... | java | chosen |
[
{
"from": "human",
"value": "Add Binary Adder (2011) solution\n"
},
{
"from": "gpt",
"value": "package year2011;\n\nimport java.util.Scanner;\n\n/**\n * <h3>Binary Adder</h3></h3>\n * <p>Create an application that accepts a binary number and a decimal number as input.\n * Add these numbers. Disp... | java | chosen |
[
{
"from": "human",
"value": "Add solution of 'Single Number'\n"
},
{
"from": "gpt",
"value": "package com.ggcoke.oj.leetcode;\n\nimport java.util.Hashtable;\nimport java.util.Iterator;\n\n/**\n * @author Wang Huisong <ggcoke@foxmail.com>\n */\npublic class SingleNumber {\n\n public static voi... | java | chosen |
[
{
"from": "human",
"value": "Verify that the DllFile class correctly compares real .dll files\n\nWhen recompiling an empty .c file into a .dll, it is a pretty surprising\nthing for the unsuspecting developer that the result is not byte-wise\nidentical. The reason is that several time date stamps are part of... | java | chosen |
[
{
"from": "human",
"value": "Add a base data transfer object.\n"
},
{
"from": "gpt",
"value": "package com.ziffit.autoconfigure.spring.web;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class CommonDTO {\n\n private List<String> eventMessages;\n private List<String> erro... | java | chosen |
[
{
"from": "human",
"value": "Add solution for Word Pattern\n\nWord Pattern: https://leetcode.com/problems/word-pattern/\n"
},
{
"from": "gpt",
"value": "package leetcode.word_pattern;\n\nimport java.util.HashMap;\n\npublic class Solution {\n public boolean wordPattern(String pattern, String s... | java | chosen |
[
{
"from": "human",
"value": "Support to read eap file\n"
},
{
"from": "gpt",
"value": "package ea.tool.checker;\n\nimport ea.tool.api.EAUtil;\nimport org.junit.Test;\n\nimport java.util.List;\n\npublic class EAUtilTest {\n @Test\n public void testGetElementList() {\n// System.out.pr... | java | chosen |
[
{
"from": "human",
"value": "Add substitution for problematic JMX method\n"
},
{
"from": "gpt",
"value": "package org.jboss.shamrock.runtime.graal;\n\nimport javax.management.JMX;\nimport javax.management.MBeanServerConnection;\nimport javax.management.ObjectName;\n\nimport com.oracle.svm.core.a... | java | chosen |
[
{
"from": "human",
"value": "Test that our generated hashCode is deep enough\n\nThis could be made obsolete by using EqualsVerifier\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2016 Palantir Technologies\n * \n * Licensed under the BSD-3 License (the \"License\");\n * you may not use this ... | java | chosen |
[
{
"from": "human",
"value": "Add statement to problem 24\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 module to hook the authorizer into WE.\n"
},
{
"from": "gpt",
"value": "package com.skcraft.plume.module;\n\nimport com.sk89q.worldedit.forge.ForgePermissionsProvider;\nimport com.sk89q.worldedit.forge.ForgeWorldEdit;\nimport com.sk89q.worldedit.util.eventbus.Sub... | java | chosen |
[
{
"from": "human",
"value": "Add tests for retryable exceptions\n"
},
{
"from": "gpt",
"value": "package nakadi;\n\nimport com.google.common.collect.ImmutableMap;\nimport java.io.EOFException;\nimport java.io.IOException;\nimport java.io.UncheckedIOException;\nimport java.util.Map;\nimport org.j... | java | chosen |
[
{
"from": "human",
"value": "Add enum holding intrinsic function name (need to be populated)\n"
},
{
"from": "gpt",
"value": "/*\n * This file is released under terms of BSD license\n * See LICENSE file for more information\n */\npackage claw.tatsu.xcodeml.xnode.fortran;\n\nimport java.util.Hash... | java | chosen |
[
{
"from": "human",
"value": "Add a health indicator for caches\n"
},
{
"from": "gpt",
"value": "package top.quantic.sentry.health;\n\nimport com.google.common.cache.Cache;\nimport com.google.common.cache.CacheStats;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.spri... | java | chosen |
[
{
"from": "human",
"value": "Add some tests for MessageService\n"
},
{
"from": "gpt",
"value": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 Norwegian Defence Research Establishment / NTNU\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this... | java | chosen |
[
{
"from": "human",
"value": "Add base class for mods which are versionable\n"
},
{
"from": "gpt",
"value": "package org.cyclops.cyclopscore.init;\n\nimport org.cyclops.cyclopscore.tracking.IModVersion;\n\n/**\n * A {@link ModBase} which is also a {@link org.cyclops.cyclopscore.tracking.IModVersi... | java | chosen |
[
{
"from": "human",
"value": "Check for sequence that does not match GTACN.\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 Lesser General Public\n License as published by t... | java | chosen |
[
{
"from": "human",
"value": "Add integration test to verify that manual scheduling does not work if not OnDepsChanged\n"
},
{
"from": "gpt",
"value": "package arez.integration.observed;\n\nimport arez.Observer;\nimport arez.annotations.ArezComponent;\nimport arez.annotations.Observable;\nimport ... | java | chosen |
[
{
"from": "human",
"value": "Handle group sizes in layout profile - 13"
},
{
"from": "gpt",
"value": "/*\r\n * Copyright (C) ExBin Project\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 with the License.\r\n * Yo... | java | chosen |
[
{
"from": "human",
"value": "Add file that was lost by IntelliJ\n"
},
{
"from": "gpt",
"value": "// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\npackage com.yahoo.vespa.hosted.controller.api.integration.stubs;\n\nimport com.... | java | chosen |
[
{
"from": "human",
"value": "Add first version of unit test\n\nThe test currently calls main() and does nothing else, not even\nasserting results (there's nothing to assert, really).\n\nIt also passes an empty argument list, letting the sample print the\ndefault document.\n"
},
{
"from": "gpt",
... | java | chosen |
[
{
"from": "human",
"value": "Generator: Add event for every file generated\n"
},
{
"from": "gpt",
"value": "/**\n *\n * Copyright (c) 2006-2016, Speedment, Inc. All Rights Reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\"); You may not\n * use this file except in ... | java | chosen |
[
{
"from": "human",
"value": "Add FileUtils and NetworkUtils with a few functions\n"
},
{
"from": "gpt",
"value": "package com.javier.util;\n\nimport android.os.Handler;\n\n/**\n * Extends handler post and postDelayed functions. Remembers last called runnable and allows to\n * cancel it.\n *\n * ... | java | chosen |
[
{
"from": "human",
"value": "Create main class to launch a frame.\n"
},
{
"from": "gpt",
"value": "package com.github.aureliano.edocs.app;\n\nimport java.awt.BorderLayout;\nimport java.awt.Dimension;\n\nimport javax.swing.JFrame;\nimport javax.swing.JPanel;\nimport javax.swing.SwingUtilities;\n\... | java | chosen |
[
{
"from": "human",
"value": "Add unit test for Session\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 License at\n *\n * http://www... | java | chosen |
[
{
"from": "human",
"value": "Add an interface for maps that support fast iteration\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2017 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 Lic... | java | chosen |
[
{
"from": "human",
"value": "Test class for the queue implementation\n"
},
{
"from": "gpt",
"value": "package algorithms.CardGame;\n\nimport org.junit.Test;\n\nimport static org.junit.Assert.*;\n\npublic class ArrayQueueTest {\n private ArrayQueue<String> queue;\n\n public ArrayQueueTest()... | java | chosen |
[
{
"from": "human",
"value": "Add a deploiement service to launch war in jetty\n"
},
{
"from": "gpt",
"value": "package org.gozer.services;\n\nimport org.eclipse.jetty.server.Server;\nimport org.eclipse.jetty.webapp.WebAppContext;\n\npublic class DeploiementService {\n\n\n public void deploy()... | java | chosen |
[
{
"from": "human",
"value": "Add string:to_integer/1 and string:to_float/1 BIFs"
},
{
"from": "gpt",
"value": "package erjang.m.string;\n\nimport java.math.BigInteger;\nimport java.util.regex.Matcher;\nimport java.util.regex.Pattern;\n\nimport erjang.BIF;\nimport erjang.EAtom;\nimport erjang.EDo... | java | chosen |
[
{
"from": "human",
"value": "Add an exception type for implementation error. Including here\nuntil a common base package has been set up.\n"
},
{
"from": "gpt",
"value": "/*\n * OpenRemote, the Home of the Digital Home.\n * Copyright 2008-2014, OpenRemote Inc.\n *\n * See the contributors.txt fi... | java | chosen |
[
{
"from": "human",
"value": "Add tests for AddMovie class.\n"
},
{
"from": "gpt",
"value": "/**\n * This source file is subject to the license that is bundled with this package in the file LICENSE.\n */\npackage com.codeup.movies.catalog;\n\nimport com.codeup.movies.Movie;\nimport com.codeup.mov... | java | chosen |
[
{
"from": "human",
"value": "Add a location type backed by a byte array\n"
},
{
"from": "gpt",
"value": "/*\n * #%L\n * SciJava Common shared library for SciJava software.\n * %%\n * Copyright (C) 2009 - 2015 Board of Regents of the University of\n * Wisconsin-Madison, Broad Institute of MIT and... | java | chosen |
[
{
"from": "human",
"value": "Add unit tests for Locales class.\n"
},
{
"from": "gpt",
"value": "/* -*- Mode: Java; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: nil; -*-\n * This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not... | java | chosen |
[
{
"from": "human",
"value": "Add Java memory buffer transport implementation.\n\nWraps a TByteArrayOutputStream.\n\n\ngit-svn-id: 8d8e29b1fb681c884914062b88f3633e3a187774@665561 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "gpt",
"value": "// Copyright (c) 2006- Facebook\n// Distributed ... | java | chosen |
[
{
"from": "human",
"value": "Implement tree list item with base tree list item\n"
},
{
"from": "gpt",
"value": "package com.aesthetikx.hubski.adapter;\n\nimport java.util.List;\n\npublic class BaseTreeListItem implements TreeListItem {\n\n private boolean visible;\n private boolean expande... | java | chosen |
[
{
"from": "human",
"value": "Add model to represent doctor\n"
},
{
"from": "gpt",
"value": "package com.aviras.mrassistant.models;\n\nimport io.realm.annotations.PrimaryKey;\n\n/**\n * Created by ashish on 8/6/16.\n */\npublic class Doctor {\n\n @PrimaryKey\n private int id;\n\n private... | java | chosen |
[
{
"from": "human",
"value": "Add type to hold parameters of issued repair commands\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 Licen... | java | chosen |
[
{
"from": "human",
"value": "Rename ElementCounter and mark for deprecation\n\n\nFormer-commit-id: f415e75cb6cda62449582fb60584b3d9dbc0c896"
},
{
"from": "gpt",
"value": "package pete.metrics.adaptability;\n\nimport java.io.IOException;\nimport java.io.PrintWriter;\nimport java.nio.charset.Chars... | java | chosen |
[
{
"from": "human",
"value": "Create : 1 Two Sum\n"
},
{
"from": "gpt",
"value": "public class Solution {\n\n public int[] twoSum(int[] nums, int target) {\n\n for (int i = 0; i < nums.length; i++) {\n\n for (int j = i + 1; j < nums.length; j++) {\n\n if (nums[... | java | chosen |
[
{
"from": "human",
"value": "Test für den ApplicationController erstellt"
},
{
"from": "gpt",
"value": "/*\n * Copyright © 2015 by Frank W. Rahn. Alle Rechte vorbehalten. All rights reserved.\n */\npackage de.rahn.finances.web;\n\nimport static org.hamcrest.Matchers.containsString;\nimport stati... | java | chosen |
[
{
"from": "human",
"value": "Add a utility for caching/recomputing computations\n"
},
{
"from": "gpt",
"value": "// Copyright 2013 The Apache Software Foundation\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the ... | java | chosen |
[
{
"from": "human",
"value": "Camel-AWS: Create single Karaf feature tests for single components, aws-sdb test\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 * ... | java | chosen |
[
{
"from": "human",
"value": "Create : 155 Min Stack\n"
},
{
"from": "gpt",
"value": "import java.util.Stack;\n\npublic class MinStack {\n\n private int min;\n private Stack<Integer> stack;\n\n /** initialize your data structure here. */\n public MinStack() {\n\n min = Integer.... | java | chosen |
[
{
"from": "human",
"value": "Add Callback for Component Workers\n"
},
{
"from": "gpt",
"value": "/**\n * Copyright 2016, RadiantBlue Technologies, 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.\... | java | chosen |
[
{
"from": "system",
"value": "Fix test: remove copyright notice from testdata file\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2000-2017 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 ... | java | chosen |
[
{
"from": "system",
"value": "Add helper methods for returning indicator status\n"
},
{
"from": "human",
"value": "package com.netflix.karyon.health;\n\npublic abstract class AbstractHealthIndicator implements HealthIndicator {\n private final String name;\n\n public AbstractHealthIndicato... | java | chosen |
[
{
"from": "human",
"value": "Test para o contexto da app\n"
},
{
"from": "gpt",
"value": "package br.com.rogrs;\n\nimport org.junit.Test;\nimport org.junit.runner.RunWith;\nimport org.springframework.boot.test.context.SpringBootTest;\nimport org.springframework.test.context.junit4.SpringRunner;\... | java | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.