conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "human",
"value": "Send speed commands and read status of a thruster\n"
},
{
"from": "gpt",
"value": "package com.easternedgerobotics.rov.io;\n\nimport com.easternedgerobotics.rov.event.EventPublisher;\nimport com.easternedgerobotics.rov.value.ThrusterValue;\n\nimport java.io.IOExcepti... | java | chosen |
[
{
"from": "human",
"value": "Add custom JSON deserializer for Supplier\n\nThis deserializer is useful for plugins to deserialize Events wrapped in\nthe Supplier interface.\n\nDeserialization using EventDeserializer was broken by change 73527 [1].\n\n[1] https://gerrit-review.googlesource.com/73527\n\nChange... | java | chosen |
[
{
"from": "human",
"value": "Add a test for service loading.\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2019, TeamDev. 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 follow... | java | chosen |
[
{
"from": "human",
"value": "Create a custom class to contain info about each needed. This info is used to decompose the tiles and to account for any offsets that need to be applied to get the right tile for a given ascii code."
},
{
"from": "gpt",
"value": "package com.kevlindev.tvm.display;\n\... | java | chosen |
[
{
"from": "human",
"value": "Add jax-rs app file, as newer versions of swarm will no longer infer it.\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2018 Red Hat, Inc. and/or its affiliates.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this fil... | java | chosen |
[
{
"from": "human",
"value": "Move tests for RootElementDifference from review\n"
},
{
"from": "gpt",
"value": "package de.retest.recheck.ui.diff;\n\nimport static org.assertj.core.api.Assertions.assertThat;\nimport static org.mockito.Mockito.mock;\nimport static org.mockito.Mockito.when;\n\nimpo... | java | chosen |
[
{
"from": "human",
"value": "Add a clock that uses System.currentTimeMillis() and System.nanoTime().\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2017, Google Inc.\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with t... | java | chosen |
[
{
"from": "human",
"value": "Test exception handling behavior of TestingHttpClient\n"
},
{
"from": "gpt",
"value": "package com.proofpoint.http.client.testing;\n\nimport com.google.common.base.Function;\nimport com.proofpoint.http.client.AsyncHttpClient.AsyncHttpResponseFuture;\nimport com.proof... | java | chosen |
[
{
"from": "human",
"value": "Add Context which read properties file\n\n#26 Start Implementation\n"
},
{
"from": "gpt",
"value": "/*\n * MIT License\n *\n * Copyright (c) 2018 Ilia Rogozhin (@smallcreep) <ilia.rogozhin@gmail.com>\n *\n * Permission is hereby granted, free of charge, to any person... | java | chosen |
[
{
"from": "human",
"value": "Update to parent pom 27\n\ngit-svn-id: 6eed74fe9a15c8da84b9a8d7f2960c0406113ece@1753903 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "gpt",
"value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements.... | java | chosen |
[
{
"from": "human",
"value": "Select querry implementation with meta data upsidedown\n"
},
{
"from": "gpt",
"value": "import java.sql.Connection;\nimport java.sql.PreparedStatement;\nimport java.sql.ResultSet;\nimport java.sql.ResultSetMetaData;\nimport java.sql.SQLException;\n\npublic class Sele... | java | chosen |
[
{
"from": "human",
"value": "Add JBoss transaction manager factory\n\n\ngit-svn-id: 8b22924fe593b58bc3cb32731943cdf19d9802ec@471928 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "gpt",
"value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor lice... | java | chosen |
[
{
"from": "human",
"value": "Test XXHash32 with huge length array added to unprocessed bytes."
},
{
"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 addit... | java | chosen |
[
{
"from": "human",
"value": "Add utility for the fragment\n\n- invalidate options menu\n- obtain content resolver\n"
},
{
"from": "gpt",
"value": "package com.amalgam.app;\n\nimport android.annotation.TargetApi;\nimport android.content.ContentResolver;\nimport android.os.Build;\n\n/**\n * @autho... | java | chosen |
[
{
"from": "system",
"value": "Use a singleton object for anonymous identities\n"
},
{
"from": "human",
"value": "/*\n * digitalpetri OPC-UA SDK\n *\n * Copyright (C) 2015 Kevin Herron\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU A... | java | chosen |
[
{
"from": "human",
"value": "Add wrapper for texture lerp shader\n"
},
{
"from": "gpt",
"value": "package com.haxademic.core.draw.filters.shaders;\n\nimport com.haxademic.core.draw.filters.shaders.shared.BaseFilter;\n\nimport processing.core.PApplet;\nimport processing.core.PImage;\n\npublic cla... | java | chosen |
[
{
"from": "human",
"value": "Add in simple Kairos connection test\n"
},
{
"from": "gpt",
"value": "/**\n * \n */\npackage org.robotbrains.data.cloud.timeseries.server.database;\n\nimport org.kairosdb.client.HttpClient;\nimport org.kairosdb.client.response.GetResponse;\n\n/**\n * @author Keith M.... | java | chosen |
[
{
"from": "human",
"value": "Create : 172 Factorial Trailing Zeroes\n"
},
{
"from": "gpt",
"value": "public class Solution {\n\n public int trailingZeroes(int n) {\n\n int result = 0;\n\n while (n > 0) {\n\n result += (n / 5);\n n /= 5;\n\n }\n\n ... | java | chosen |
[
{
"from": "human",
"value": "Insert new files, Alura, Projeto de Algoritmos 1, Aula 19\n"
},
{
"from": "gpt",
"value": "public class TestaOrdenacao {\n\n public static void main(String[] args) {\n\n Produto produtos[] = {\n new Produto(\"Lamborghini\", 1000000),\n new Produto(\"Jip... | java | chosen |
[
{
"from": "human",
"value": "[compare] Add comparsion operators as a wrapper for Comparator\n"
},
{
"from": "gpt",
"value": "package com.hashnot.u.compare;\n\nimport java.util.Comparator;\n\n/**\n * @author Rafał Krupiński\n */\npublic interface CompareOp<T> {\n /**\n * Allows parameters ... | java | chosen |
[
{
"from": "human",
"value": "Cover ProtocPluginFiles with unit test\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2019, TeamDev. 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... | java | chosen |
[
{
"from": "human",
"value": "Add statement to problem 72\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": "Write controller to depict initial PApplet state\n"
},
{
"from": "gpt",
"value": "package de.uulm.mi.gdg;\n\nimport processing.core.PApplet;\n\n/**\n * The Equalizer class is the main controller for the Animation.\n *\n * @author Tobias Lahmann\n */\npublic class Equ... | java | chosen |
[
{
"from": "human",
"value": "Test that nocache is honored by CachedContentFetcher\n\n\ngit-svn-id: 2d40e98957f9f20f5ce77bde55198011fc5ba896@646542 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "gpt",
"value": "/**\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more ... | java | chosen |
[
{
"from": "human",
"value": "Add test cases for FodexContract\n"
},
{
"from": "gpt",
"value": "package com.dyhpoon.fodex;\n\nimport android.content.ContentUris;\nimport android.net.Uri;\nimport android.test.AndroidTestCase;\n\nimport com.dyhpoon.fodex.data.actual.FodexContract;\n\nimport java.ut... | java | chosen |
[
{
"from": "human",
"value": "Add Hibernate Type to store null Date values as 9999-01-01.\n"
},
{
"from": "gpt",
"value": "package to.etc.domui.hibernate.types;\n\nimport org.hibernate.HibernateException;\nimport org.hibernate.usertype.UserType;\nimport to.etc.util.DateUtil;\n\nimport java.io.Ser... | java | chosen |
[
{
"from": "human",
"value": "Add a class for doing serial arithmetic.\n\n"
},
{
"from": "gpt",
"value": "// Copyright (c) 2003 Brian Wellington (bwelling@xbill.org)\n\npackage org.xbill.DNS;\n\n/**\n * Helper functions for doing serial arithmetic. These should be used when\n * setting/checking ... | java | chosen |
[
{
"from": "human",
"value": "Add solution for problem 003\n\n3. Longest Substring Without Repeating Characters"
},
{
"from": "gpt",
"value": "import java.util.HashMap;\n//3. Longest Substring Without Repeating Characters\n/**\n * Given a string, find the length of the longest substring without r... | java | chosen |
[
{
"from": "human",
"value": "Add skeleton for auto shoot cleat\n"
},
{
"from": "gpt",
"value": "package org.robockets.stronghold.robot.autonomous;\n\nimport org.robockets.stronghold.robot.drivetrain.AssistedDrive;\nimport org.robockets.stronghold.robot.drivetrain.AssistedRotateType;\nimport org.... | java | chosen |
[
{
"from": "human",
"value": "Disable allows backup. Creates problem with using this library with other apps.\n"
},
{
"from": "gpt",
"value": "package net.the4thdimension.android;\n\nimport android.os.Environment;\nimport android.support.test.runner.AndroidJUnit4;\nimport android.test.AndroidTest... | java | chosen |
[
{
"from": "human",
"value": "Add a TargetNode builder for AndroidBuildConfig\n\nSummary: Add a node builder to be used in tests later in this stack of changes.\n\nReviewed By: cute-jumper\n\nshipit-source-id: dc8eac55f0\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2019-present Facebook, Inc... | java | chosen |
[
{
"from": "human",
"value": "Create a class which is used to mark all duplicate reads.\n\nThis program also creates a metrics text file, contaning information about ex.\nhow many duplicates that was found.\n"
},
{
"from": "gpt",
"value": "package com.github.sparkcaller.preprocessing;\n\nimport c... | java | chosen |
[
{
"from": "human",
"value": "Write and then read back binary data\n\nhttp://ideone.com/HnFXv1"
},
{
"from": "gpt",
"value": "// Write and then read back binary data.\nimport java.io.*;\n\nclass RWData {\n\tpublic static void main(String args[]) throws IOException {\n\t\tDataOutputStream dataOut;... | java | chosen |
[
{
"from": "human",
"value": "Add Dummy app for VSimRTI with TBUS\n"
},
{
"from": "gpt",
"value": "/**\n * \n */\npackage de.hhu.tbus.applications.testapp;\n\nimport com.dcaiti.vsimrti.fed.app.api.interfaces.Application;\nimport com.dcaiti.vsimrti.fed.app.api.interfaces.ApplicationLayer;\nimport ... | java | chosen |
[
{
"from": "human",
"value": "Move bootstrap op to custom command"
},
{
"from": "gpt",
"value": "/*\n * JBoss, Home of Professional Open Source\n * Copyright 2011 Red Hat Inc. and/or its affiliates and other contributors\n * as indicated by the @author tags. All rights reserved.\n * See the copyr... | java | chosen |
[
{
"from": "human",
"value": "Add utility for verifying equality of multiline strings against content in files.\n"
},
{
"from": "gpt",
"value": "package com.maddenabbott.jenny.test;\n\nimport java.io.IOException;\nimport java.net.URI;\nimport java.net.URISyntaxException;\nimport java.net.URL;\nim... | java | chosen |
[
{
"from": "human",
"value": "Create Red Hat operating system.\n"
},
{
"from": "gpt",
"value": "package com.github.aureliano.achmed.os;\n\nimport com.github.aureliano.achmed.os.pkg.IPackageManager;\nimport com.github.aureliano.achmed.os.pkg.PackageManagerFactory;\nimport com.github.aureliano.achm... | java | chosen |
[
{
"from": "human",
"value": "Add java solution for 51. N-Queens\n\n51. N-Queens: https://leetcode.com/problems/n-queens/"
},
{
"from": "gpt",
"value": "package leetcode.n_queens;\n\nimport java.util.ArrayList;\n\npublic class Solution {\n\tpublic void dfs(ArrayList<String[]> ans, char[][] board,... | java | chosen |
[
{
"from": "human",
"value": "Check in a rough draft of what a detection interface might look like\n"
},
{
"from": "gpt",
"value": "package net.alexrose.rofretta.detection;\n\nimport net.alexrose.rofretta.core.Instrument;\nimport net.alexrose.rofretta.core.InstrumentString;\nimport net.alexrose.r... | java | chosen |
[
{
"from": "human",
"value": "Add unit tests for DiscoveryClientManager\n"
},
{
"from": "gpt",
"value": "package io.dropwizard.discovery.client;\n\nimport org.junit.Test;\n\nimport static org.assertj.core.api.Assertions.failBecauseExceptionWasNotThrown;\nimport static org.mockito.Mockito.mock;\ni... | java | chosen |
[
{
"from": "human",
"value": "Add missing blend equation test"
},
{
"from": "gpt",
"value": "package com.io7m.jcanephora;\n\nimport org.junit.Assert;\nimport org.junit.Test;\n\nimport com.io7m.jaux.UnreachableCodeException;\n\npublic final class LWJGL30BlendEquationES2Test\n{\n /**\n * ∀f. ble... | java | chosen |
[
{
"from": "human",
"value": "Add new reference no-op logger\n"
},
{
"from": "gpt",
"value": "package org.owasp.appsensor.logging.impl;\n\n/**\n * A simple no-op logger implementation for those that need it. \n * \n * @author John Melton (jtmelton@gmail.com) http://www.jtmelton.com/\n */\npublic ... | java | chosen |
[
{
"from": "human",
"value": "Add class to display pop-up notification (disappering is an option)\n"
},
{
"from": "gpt",
"value": "package fortiss.gui;\n\nimport java.awt.event.ActionEvent;\n\nimport javax.swing.AbstractAction;\nimport javax.swing.ImageIcon;\nimport javax.swing.JDialog;\nimport j... | java | chosen |
[
{
"from": "human",
"value": "Add build test for test project MultiRelease-11\n"
},
{
"from": "gpt",
"value": "package test.projects;\n\nimport static org.junit.jupiter.api.Assertions.assertLinesMatch;\nimport static org.junit.jupiter.api.Assertions.assertTrue;\n\nimport com.github.sormuras.bach.... | java | chosen |
[
{
"from": "human",
"value": "Add a unit test for the ByteArrayUtil class\n\nTest cases added:\n- Ensure that the ByteArrayUtil class is a proper\n utility class.\n- Test that passing in a null array results in an empty string\n- Test the formatting of real data into a hex string\n\nChange-Id: Ibbfd2ebdf8c5... | java | chosen |
[
{
"from": "human",
"value": "OAK-7268: Create charset encoding utility that detects malformed input\n\ngit-svn-id: 67138be12999c61558c3dd34328380c8e4523e73@1824253 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "gpt",
"value": "/*\n* Licensed to the Apache Software Foundation (ASF) under o... | java | chosen |
[
{
"from": "human",
"value": "Test for childof SceneNode, addComponenta and worldspace transform of root\n"
},
{
"from": "gpt",
"value": "/*\n * This file is part of COMPASS. It is subject to the license terms in\n * the LICENSE file found in the top-level directory of this distribution.\n * (Als... | java | chosen |
[
{
"from": "human",
"value": "Solve No.2440 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 tests for CI build\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2012-2013 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 in compliance with the License.\n * You m... | java | chosen |
[
{
"from": "human",
"value": "Add connection pool client unit test.\n"
},
{
"from": "gpt",
"value": "package net.rubyeye.xmemcached.test.unittest;\r\n\r\nimport java.net.InetSocketAddress;\r\nimport java.util.List;\r\n\r\nimport net.rubyeye.xmemcached.MemcachedClientBuilder;\r\nimport net.rubyeye... | java | chosen |
[
{
"from": "human",
"value": "Add a test to ensure MDB_val field order preserved\n"
},
{
"from": "gpt",
"value": "package org.lmdbjava;\n\nimport static java.lang.Long.BYTES;\nimport static org.hamcrest.CoreMatchers.is;\nimport static org.hamcrest.MatcherAssert.assertThat;\nimport org.junit.Test;... | java | chosen |
[
{
"from": "human",
"value": "Add some basic tests around the permutation class\n"
},
{
"from": "gpt",
"value": "package org.realityforge.gwt.appcache.server;\n\nimport java.util.HashSet;\nimport org.testng.annotations.Test;\nimport static org.testng.Assert.*;\n\npublic class PermutationTest\n{\n... | java | chosen |
[
{
"from": "human",
"value": "Add missing test for StringValueParser\n"
},
{
"from": "gpt",
"value": "package com.statemachinesystems.envy.parsers;\n\nimport org.junit.Test;\n\nimport static org.hamcrest.CoreMatchers.is;\nimport static org.junit.Assert.assertThat;\n\npublic class StringValueParse... | java | chosen |
[
{
"from": "system",
"value": "Apply code formatter and code style"
},
{
"from": "human",
"value": "/*******************************************************************************\n * Copyright (c) 2011, 2016 Eurotech and/or its affiliates\n *\n * All rights reserved. This program and the accomp... | java | chosen |
[
{
"from": "human",
"value": "Add a collections infinite recursion bug\n"
},
{
"from": "gpt",
"value": "\npackage net.restlesscoder.sandbox;\n\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.List;\n\npublic class CollectionReferenceRecursion {\n\n\tpublic static void main... | java | chosen |
[
{
"from": "human",
"value": "Include test using sel.jup.vnc.create.redirect.html.page key\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 ... | java | chosen |
[
{
"from": "human",
"value": "Work on custom data souce"
},
{
"from": "gpt",
"value": "package net.jgp.labs.spark.l000_ingestion;\n\nimport org.apache.spark.sql.Dataset;\nimport org.apache.spark.sql.Row;\nimport org.apache.spark.sql.SparkSession;\n\n/**\n * Turning a custom data source to a Datas... | java | chosen |
[
{
"from": "human",
"value": "Add a splat helper just for rational numbers\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 ... | java | chosen |
[
{
"from": "human",
"value": "Add test for abstract PlatformImplBase.\n\ngit-svn-id: 9ba7b058a3825ad085cc988a898da8cc978da7ce@331926 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "gpt",
"value": "package org.apache.ddlutils.platform;\r\n\r\n/*\r\n * Copyright 1999-2005 The Apache Software ... | java | chosen |
[
{
"from": "human",
"value": "Add some tests to problem 65\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": "Create fragment for About dialog\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2013 That Amazing Web Ltd.\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": "Add statement to problem 60\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": "Test exposing MultiSplitPane model reset issue.\n"
},
{
"from": "gpt",
"value": "package org.jdesktop.swingx;\nimport java.awt.BorderLayout;\nimport java.awt.Color;\nimport java.awt.Dimension;\nimport java.awt.event.ActionEvent;\n\nimport javax.swing.AbstractAction;\... | java | chosen |
[
{
"from": "human",
"value": "Add test coverage for some issues fixed in the AnnotatedField enum\n"
},
{
"from": "gpt",
"value": "package com.google.sps.data;\n\nimport org.junit.Assert;\nimport org.junit.Test;\nimport org.junit.runner.RunWith;\nimport org.junit.runners.JUnit4;\n\n/*\n * Ensure t... | java | chosen |
[
{
"from": "human",
"value": "Cover `ShardingKey` equality with tests.\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2018, 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 a... | java | chosen |
[
{
"from": "human",
"value": "Add endpoint to extend session cookies\n"
},
{
"from": "gpt",
"value": "package au.gov.dto.dibp.appointments.session;\n\nimport org.springframework.web.bind.annotation.RequestMapping;\nimport org.springframework.web.bind.annotation.RequestMethod;\nimport org.springfr... | java | chosen |
[
{
"from": "human",
"value": "Test case improvement for 'Add Expected AE to Agent.'\n\nSVN-Revision: 16963\n"
},
{
"from": "gpt",
"value": "package gov.nih.nci.cabig.caaers.web;\n\nimport gov.nih.nci.cabig.caaers.domain.Agent;\nimport gov.nih.nci.cabig.caaers.domain.repository.AgentRepository;\ni... | java | chosen |
[
{
"from": "human",
"value": "Create sample test case to validate if gradle test task works\n"
},
{
"from": "gpt",
"value": "package com.dropwizard.steroids.quickstart.hello;\n\nimport org.junit.Test;\n\nimport static org.junit.Assert.assertTrue;\n\npublic class HelloWorldResourceTest {\n @Tes... | java | chosen |
[
{
"from": "human",
"value": "Add test to be manually checked by human-eye on a real console\nHint: it uses the same example code released on the README.md\n"
},
{
"from": "gpt",
"value": "package com.diogonunes.jcdp.tests.acceptance;\n\nimport com.diogonunes.jcdp.bw.Printer;\nimport com.diogonun... | java | chosen |
[
{
"from": "human",
"value": "Cover the identity conversion method in `SimpleColumnType`.\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... | java | chosen |
[
{
"from": "human",
"value": "Create tests for the `ApproveValidator` 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 no... | java | chosen |
[
{
"from": "human",
"value": "Add a default LogService Implementation.\n"
},
{
"from": "gpt",
"value": "package org.ow2.chameleon.rose.util;\n\nimport org.osgi.framework.ServiceReference;\nimport org.osgi.service.log.LogService;\n\npublic class DefaultLogService implements LogService {\n\n\tpubli... | java | chosen |
[
{
"from": "human",
"value": "Make o.t.world.sun available for modules\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2013 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 obt... | java | chosen |
[
{
"from": "human",
"value": "Add rp auto registration unit test\n"
},
{
"from": "gpt",
"value": "/**\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for\n * license information.\n */\n\npackage com.microsoft.az... | java | chosen |
[
{
"from": "human",
"value": "Add test for missing months in text output\n\nMissing months in the textual output should be filled with \"-1\" in all\nactivity area fields.\n"
},
{
"from": "gpt",
"value": "package es.tid.cosmos.mobility.activityarea;\n\nimport com.twitter.elephantbird.mapreduce.io... | java | chosen |
[
{
"from": "human",
"value": "Add item and block model abstraction\n"
},
{
"from": "gpt",
"value": "package org.cyclops.cyclopscore.client.model;\n\nimport net.minecraft.block.state.IBlockState;\nimport net.minecraft.client.renderer.block.model.BakedQuad;\nimport net.minecraft.client.renderer.blo... | java | chosen |
[
{
"from": "human",
"value": "Add regression test for HARMONY-1369 ([classlib][beans] compatibility: java.beans.beancontext.BeanContextServicesSupport.addService(..) returns true on RI and false on Harmony)\n\nsvn path=/harmony/; revision=561851\n"
},
{
"from": "gpt",
"value": "/* \n * Licensed t... | java | chosen |
[
{
"from": "system",
"value": "Update test to not use red for success."
},
{
"from": "human",
"value": "package com.vaadin.tests.components.ui;\n\nimport com.vaadin.annotations.Theme;\nimport com.vaadin.server.VaadinRequest;\nimport com.vaadin.tests.components.AbstractTestUI;\nimport com.vaadin.u... | java | chosen |
[
{
"from": "human",
"value": "Add new category realm model. \n\n"
},
{
"from": "gpt",
"value": "package com.sebastian.sokolowski.auctionhunter.database.models;\n\nimport io.realm.RealmObject;\nimport io.realm.annotations.PrimaryKey;\n\n/**\n * Created by Sebastian Sokołowski on 03.03.17.\n */\n\n... | java | chosen |
[
{
"from": "human",
"value": "Add a matcher class for SequentialEntryIterable and its iterator\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (C) 2014 Ohm Data\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Publi... | java | chosen |
[
{
"from": "human",
"value": "Add java solution for 12. Integer to Roman\n\n12. Integer to Roman: https://leetcode.com/problems/integer-to-roman/"
},
{
"from": "gpt",
"value": "package leetcode.integer_to_roman;\n\nimport java.util.HashMap;\nimport java.util.Map;\n\npublic class Solution {\n p... | java | chosen |
[
{
"from": "human",
"value": "Split out RE2.compile test into its own parameterized JUnit4 test\n"
},
{
"from": "gpt",
"value": "package com.google.re2j;\n\nimport static org.junit.Assert.fail;\n\nimport org.junit.Test;\nimport org.junit.runner.RunWith;\nimport org.junit.runners.Parameterized;\ni... | java | chosen |
[
{
"from": "human",
"value": "Add test item tags provider\n"
},
{
"from": "gpt",
"value": "package info.u_team.u_team_test.data.provider;\n\nimport info.u_team.u_team_core.data.*;\n\npublic class TestItemTagsProvider extends CommonItemTagsProvider {\n\t\n\tpublic TestItemTagsProvider(GenerationDa... | java | chosen |
[
{
"from": "human",
"value": "Move the association view creation to this service rather that controller\n"
},
{
"from": "gpt",
"value": "package uk.ac.ebi.spot.goci.curation.service;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.scheduling.annotatio... | java | chosen |
[
{
"from": "human",
"value": "Add estimator for Wald, untested.\n"
},
{
"from": "gpt",
"value": "package de.lmu.ifi.dbs.elki.math.statistics.distribution.estimator;\n\n/*\n This file is part of ELKI:\n Environment for Developing KDD-Applications Supported by Index-Structures\n\n Copyright (C) 201... | java | chosen |
[
{
"from": "human",
"value": "Add startup consistency check unit test\n"
},
{
"from": "gpt",
"value": "/*\n * The Alluxio Open Foundation licenses this work under the Apache License, version 2.0\n * (the \"License\"). You may not use this work except in compliance with the License, which is\n * a... | java | chosen |
[
{
"from": "human",
"value": "Add a definition to handle camera changes\n"
},
{
"from": "gpt",
"value": "package net.alcuria.umbracraft.definitions.skill.actions;\n\nimport net.alcuria.umbracraft.Game;\nimport net.alcuria.umbracraft.Listener;\nimport net.alcuria.umbracraft.engine.entities.Entity;... | java | chosen |
[
{
"from": "human",
"value": "Package JavaDoc to clarify what this artifact is & does\n\nFull disclosure: I LIKE the concept of what one could call\nMockitoNotImplementedExceptionAnswer, and have separately implemented\nthe same (one can find this idea publicly on the web in several places).\n\nI don't think... | java | chosen |
[
{
"from": "human",
"value": "Add rule to check if .cfm files start with an upper case letter\n"
},
{
"from": "gpt",
"value": "package com.cflint.plugins.core;\n\nimport ro.fortsoft.pf4j.Extension;\nimport net.htmlparser.jericho.Element;\nimport cfml.parsing.cfscript.CFExpression;\nimport cfml.pa... | java | chosen |
[
{
"from": "human",
"value": "Add test to check if the application is starting.\n"
},
{
"from": "gpt",
"value": "package nl.ekholabs.nlp;\n\nimport org.junit.Test;\nimport org.junit.runner.RunWith;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.boot.te... | java | chosen |
[
{
"from": "human",
"value": "Define tests for LongUtils class\n"
},
{
"from": "gpt",
"value": "package nom.bdezonia.zorbage.misc;\n\nimport static org.junit.Assert.*;\n\nimport org.junit.Test;\n\npublic class TestLongUtils {\n\n\t@Test\n\tpublic void test() {\n\t\tassertEquals(0, LongUtils.numEl... | java | chosen |
[
{
"from": "human",
"value": "Add edge detection filter implementation."
},
{
"from": "gpt",
"value": "package pl.vgtworld.imagedraw.filters.edgedetect;\n\nimport pl.vgtworld.imagedraw.ImageDrawEntity;\nimport pl.vgtworld.imagedraw.filters.ImageDrawFilter;\nimport pl.vgtworld.imagedraw.filters.ma... | java | chosen |
[
{
"from": "human",
"value": "Add basic unit tests for RuleResult."
},
{
"from": "gpt",
"value": "/*\r\n * To change this license header, choose License Headers in Project Properties.\r\n * To change this template file, choose Tools | Templates\r\n * and open the template in the editor.\r\n */\r\... | java | chosen |
[
{
"from": "human",
"value": "Camel-AWS: Create single Karaf feature tests for single components, aws-swf 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": "Add unit test for TrieUtils.\n\ngit-svn-id: 53f0c1087cb9b05f99ff63ab1f4d1687a227fef1@1540644 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "gpt",
"value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreem... | java | chosen |
[
{
"from": "human",
"value": "Create a skeleton for problem 42\n"
},
{
"from": "gpt",
"value": "package leetcode;\n\n/**\n * https://leetcode.com/problems/trapping-rain-water/\n */\npublic class Problem42 {\n public int trap(int[] height) {\n return 0;\n }\n \n public static vo... | java | chosen |
[
{
"from": "human",
"value": "Implement app utility class and open chrome custom tabs method\n"
},
{
"from": "gpt",
"value": "package io.github.droidkaigi.confsched2017.util;\n\nimport android.app.Activity;\nimport android.net.Uri;\nimport android.support.annotation.NonNull;\nimport android.suppo... | java | chosen |
[
{
"from": "human",
"value": "Add feature: maximum distance from start point"
},
{
"from": "gpt",
"value": "package de.biomedical_imaging.traJ.features;\n\nimport javax.vecmath.Point3d;\n\nimport de.biomedical_imaging.traJ.Trajectory;\n\n/**\n * Maximum distance from start point\n * @author Thors... | java | chosen |
[
{
"from": "human",
"value": "Add partial search algorithm and data structure\n"
},
{
"from": "gpt",
"value": "package seedu.address.model.datastructure;\n\nimport java.util.HashSet;\nimport java.util.Set;\n\n/**\n * This class will handle the partial search algorithm and the search function itse... | java | chosen |
[
{
"from": "human",
"value": "[ONOS-3247] Add the junit test code of SubnetId\n\nChange-Id: Ifc205e24ff8ef28bf86afbf495abb7133e5fd788\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2015 Open Networking Laboratory\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you... | java | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.