conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "human", "value": "Add renamed Channel.java, missed in previous commit\n\ngit-svn-id: 51ebfee8793609331cc427b513d959ae09aa9655@1434016 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "gpt", "value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more con...
java
chosen
[ { "from": "human", "value": "Add a demo for the image picker.\n\ngit-svn-id: 9c6ef37dfd7eaa5a3748af7ba0f8d9e7b67c2a4c@3936 1312f61e-266d-0410-97fa-c3b71232c9ac\n" }, { "from": "gpt", "value": "package org.jdesktop.beans.editors;\n\nimport javax.swing.JFrame;\nimport javax.swing.SwingUtilities;\n...
java
chosen
[ { "from": "human", "value": "Add branch index sync test\n" }, { "from": "gpt", "value": "package com.gentics.mesh.search.index;\n\nimport static com.gentics.mesh.core.rest.MeshEvent.INDEX_SYNC_FINISHED;\nimport static com.gentics.mesh.test.ClientHelper.call;\nimport static com.gentics.mesh.test....
java
chosen
[ { "from": "human", "value": "Add small test for proxyAndLocalList()\n" }, { "from": "gpt", "value": "/**\n * Copyright 2017 Palantir Technologies\n *\n * Licensed under the BSD-3 License (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a ...
java
chosen
[ { "from": "human", "value": "Save As action moved to platform and used in PyCharm (PY-4343)\n" }, { "from": "gpt", "value": "package com.intellij.ide.actions;\n\nimport com.intellij.openapi.actionSystem.AnActionEvent;\nimport com.intellij.openapi.actionSystem.DataContext;\nimport com.intellij.op...
java
chosen
[ { "from": "human", "value": "Create specific Spring Context Holder for Cayenne\n" }, { "from": "gpt", "value": "/**\n * Copyright 2014 devacfr<christophefriederich@mac.com>\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in complianc...
java
chosen
[ { "from": "human", "value": "Add convenience exception for security handling" }, { "from": "gpt", "value": "/******************************************************************\n * File: SecurityViolationException.java\n * Created by: Dave Reynolds\n * Created on: 1 May 2016\n * \n * (c)...
java
chosen
[ { "from": "human", "value": "Test for variation database schema. Produces a patch.\n" }, { "from": "gpt", "value": "package org.ensembl.healthcheck.testcase.eg_core;\n\nimport java.sql.Connection;\n\nimport org.ensembl.healthcheck.DatabaseType;\nimport org.ensembl.healthcheck.ReportManager;\nimp...
java
chosen
[ { "from": "human", "value": "Add S3 compressed object test\n" }, { "from": "gpt", "value": "/*\n * Copyright (c) 1998-2019 University Corporation for Atmospheric Research/Unidata\n * See LICENSE for license information.\n */\npackage ucar.nc2;\n\nimport java.io.IOException;\nimport org.junit.Aft...
java
chosen
[ { "from": "human", "value": "Add package info for quarks.analytics.sensors." }, { "from": "gpt", "value": "/*\n# Licensed Materials - Property of IBM\n# Copyright IBM Corp. 2016 \n*/\n\n/**\n * Analytics focused on handling sensor data.\n */\npackage quarks.analytics.sensors;\n\n" } ]
java
chosen
[ { "from": "human", "value": "Add skeleton for template help command.\n" }, { "from": "gpt", "value": "package com.maddenabbott.jenny.command.help;\n\nimport com.maddenabbott.jenny.cli.Parameter;\nimport com.maddenabbott.jenny.cli.Summary;\nimport com.maddenabbott.jenny.command.Command;\n\n@Summa...
java
chosen
[ { "from": "human", "value": "Add the beginning of the IronChest Module\n\n" }, { "from": "gpt", "value": "package xyz.brassgoggledcoders.moarlibs.modules;\n\nimport net.minecraftforge.fml.common.Loader;\nimport xyz.brassgoggledcoders.boilerplate.module.ModuleBase;\nimport xyz.brassgoggledcoders....
java
chosen
[ { "from": "human", "value": "Add the interface for a parametrable translation\n" }, { "from": "gpt", "value": "package com.alexrnl.commons.translation;\n\n/**\n * Interface for configurable translations keys.<br />\n * Classes defining translations for a given dialog, title, label can be paramet...
java
chosen
[ { "from": "human", "value": "Add scheduled service as plugin host object.\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...
java
chosen
[ { "from": "human", "value": "Add test for ftp picker\n" }, { "from": "gpt", "value": "package com.nononsenseapps.filepicker.sample;\n\n\nimport android.support.test.espresso.ViewInteraction;\nimport android.support.test.espresso.action.ViewActions;\nimport android.support.test.rule.ActivityTestR...
java
chosen
[ { "from": "human", "value": "Swap two numbers without using any temp variables. O(1)\n" }, { "from": "gpt", "value": "package com.sunny.grokkingalgorithms.fasttrack.ctcimedium;\n\n/**\n * Created by sundas on 6/16/2018.\n */\npublic class SwapTwoVariablesWithoutTemp {\n\n /**\n *\n * @param...
java
chosen
[ { "from": "human", "value": "Add first test for ResTableConfig.isBetterThan()\n" }, { "from": "gpt", "value": "\npackage org.robolectric.res.android;\n\nimport static com.google.common.truth.Truth.assertThat;\n\nimport org.junit.Test;\nimport org.junit.runner.RunWith;\nimport org.junit.runners.J...
java
chosen
[ { "from": "human", "value": "Add tooltip creator in uteamcore" }, { "from": "gpt", "value": "package info.u_team.u_team_core.util;\n\nimport net.minecraft.block.Block;\nimport net.minecraft.item.Item;\nimport net.minecraft.util.text.TranslationTextComponent;\n\npublic class TooltipCreator {\n\t\...
java
chosen
[ { "from": "human", "value": "Include test to force SafariDriver in a non-Mac machine\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 excep...
java
chosen
[ { "from": "human", "value": "Add long to size converter" }, { "from": "gpt", "value": "package to.etc.domui.converter;\n\nimport java.util.*;\n\nimport to.etc.domui.trouble.*;\nimport to.etc.domui.util.*;\nimport to.etc.util.*;\n\n/**\n * Converter to convert a computer \"size\" to a size in byt...
java
chosen
[ { "from": "human", "value": "Add a dummy async cache handler.\n" }, { "from": "gpt", "value": "package alluxio.worker.netty;\n\nimport alluxio.network.protocol.RPCProtoMessage;\nimport io.netty.channel.ChannelHandlerContext;\nimport io.netty.channel.ChannelInboundHandlerAdapter;\n\n/**\n * Handl...
java
chosen
[ { "from": "human", "value": "Define an interface to generate FlowId\n\nChange-Id: I9279082b7a0803670fed0e38e6f04f7002e64b9d\n" }, { "from": "gpt", "value": "package net.onrc.onos.api.flowmanager;\n\n/**\n * An generator of {@link FlowId}.\n */\npublic interface FlowIdGenerator {\n /**\n *...
java
chosen
[ { "from": "human", "value": "Add new interface for pushing listeners which receive messages from named enpoints, and which require additional glue to make the connection\n" }, { "from": "gpt", "value": "/*\n * $Log: IPortConnectedListener.java,v $\n * Revision 1.1 2007-11-05 12:15:09 europe\\M...
java
chosen
[ { "from": "human", "value": "Add test for a side effect on a specific method.\n\ngit-svn-id: f1f16e7fd6634bd1405f3d991709e5eb3ed978bc@11617 9b982a3c-3ae5-0310-a4bc-d9a3335569bd\n" }, { "from": "gpt", "value": "/*\n * Copyright (c) 2007, Rickard Öberg. All Rights Reserved.\n *\n * Licensed under ...
java
chosen
[ { "from": "human", "value": "Add utility functions aiding Operator implementations\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": "Test renderer for rendering items in blocks\n" }, { "from": "gpt", "value": "package boilerplate.client.renderers;\n\nimport net.minecraft.client.renderer.entity.RenderItem;\nimport net.minecraft.client.renderer.entity.RenderManager;\nimport net.minecraft.entity.item...
java
chosen
[ { "from": "human", "value": "Add test for decimal parsing\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://...
java
chosen
[ { "from": "human", "value": "Add first simple test for getTradeCurrency\n" }, { "from": "gpt", "value": "package io.bisq.common.locale;\n\nimport org.junit.Before;\nimport org.junit.Test;\n\nimport java.util.Locale;\nimport java.util.Optional;\n\nimport static org.junit.Assert.assertFalse;\nimpo...
java
chosen
[ { "from": "human", "value": "Add stub for composing IdSelector's\n" }, { "from": "gpt", "value": "package io.jasonsparc.chemistry.util;\n\n/**\n * Created by Jason on 19/08/2016.\n */\n@UtilityClass\npublic final class IdSelectors {\n\n\t// Factories\n\n\t// Utilities\n\n}\n" } ]
java
chosen
[ { "from": "human", "value": "[FIN-192] Split web code into OG Web project\n\nAdd simple test case\n" }, { "from": "gpt", "value": "/**\n * Copyright (C) 2009 - 2010 by OpenGamma Inc.\n *\n * Please see distribution for license.\n */\npackage com.opengamma.web;\n\nimport static org.mockito.Mockit...
java
chosen
[ { "from": "human", "value": "Test for parallel tangent generation\n" }, { "from": "gpt", "value": "/*\n * Copyright (c) 2009-2015 jMonkeyEngine\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the fo...
java
chosen
[ { "from": "human", "value": "Add new utility class that will check if internet connection is available\n" }, { "from": "gpt", "value": "package eu.redray.trevie.utility;\n\nimport android.content.Context;\nimport android.net.ConnectivityManager;\nimport android.net.NetworkInfo;\n\npublic class C...
java
chosen
[ { "from": "human", "value": "Add free fire command group.\n\nThis command group requires a great amount of AimShooter to horizontally align\ncorrectly, which is not yet done.\n" }, { "from": "gpt", "value": "package org.robockets.stronghold.robot.highgoalshooter;\n\nimport edu.wpi.first.wpilibj....
java
chosen
[ { "from": "human", "value": "Add MIDI notes helper for Launchpad\n" }, { "from": "gpt", "value": "package com.haxademic.core.hardware.midi.devices;\n\npublic class LaunchPad {\n\t\n\tpublic static int gridMidiNote(int x, int y) {\n\t\treturn y * 16 + x;\n\t}\n\t\n\tpublic static int headerColMid...
java
chosen
[ { "from": "system", "value": "Fix window name in JavaCV driver example\n" }, { "from": "human", "value": "import javax.swing.JFrame;\r\n\r\nimport com.github.sarxos.webcam.Webcam;\r\nimport com.github.sarxos.webcam.WebcamPanel;\r\nimport com.github.sarxos.webcam.ds.javacv.JavaCvDriver;\r\n\r\n\r...
java
chosen
[ { "from": "human", "value": "Create resource provider for SQL files\n" }, { "from": "gpt", "value": "package com.codenvy.ide.ext.datasource.client.sqleditor;\n\nimport com.codenvy.ide.api.ui.wizard.newresource.NewResourceProvider;\nimport com.codenvy.ide.ext.datasource.client.SqlEditorExtension;...
java
chosen
[ { "from": "human", "value": "Add task that moves and updates the locations of all necessary agents.\n" }, { "from": "gpt", "value": "/*\n * Copyright 2016 Will Knez <wbknez.dev@gmail.com>\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file exce...
java
chosen
[ { "from": "human", "value": "Add EIP-8 test for P2P hello message\n" }, { "from": "gpt", "value": "package org.ethereum.net.p2p;\n\nimport org.junit.Test;\n\nimport static org.junit.Assert.assertEquals;\nimport static org.spongycastle.util.encoders.Hex.decode;\n\n/**\n * @author Mikhail Kalinin\...
java
chosen
[ { "from": "human", "value": "Implement service handler for RawTableMaster.\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 re...
java
chosen
[ { "from": "human", "value": "Create Asscessment Controller and add the thymeleaf view\n" }, { "from": "gpt", "value": "package com.worth.ifs.assessment.controller;\n\nimport com.worth.ifs.assessment.builder.AssessmentFeedbackResourceBuilder;\nimport com.worth.ifs.assessment.resource.AssessmentFe...
java
chosen
[ { "from": "system", "value": "Update test for GWT 2.8" }, { "from": "human", "value": "package ol.geom;\n\nimport ol.*;\n\n/**\n * A test case for {@link GeometryCollection}.\n * \n * @author sbaumhekel\n */\npublic class GeometryCollectionTest extends BaseTestCase {\n\n public void test() {\...
java
chosen
[ { "from": "human", "value": "Add ARGB color calculator tool\n" }, { "from": "gpt", "value": "package net.acomputerdog.map.tool;\n\npublic class ColorCalc {\n\n public static int getColor(int alpha, int red, int green, int blue) {\n return (alpha << 24) + (red << 16) + (green << 8) + (b...
java
chosen
[ { "from": "system", "value": "Disable for Windows as it doesn't work now.\n" }, { "from": "human", "value": "package org.jetbrains.plugins.terminal;\n\nimport com.intellij.openapi.actionSystem.AnAction;\nimport com.intellij.openapi.actionSystem.AnActionEvent;\nimport com.intellij.openapi.actionS...
java
chosen
[ { "from": "human", "value": "Add tests for registration of events with EventTypes\n\nChange-Id: I5cc2c9ee7eca064f6d9e886445b1566af7cd77eb\n" }, { "from": "gpt", "value": "// Copyright (C) 2015 The Android Open Source Project\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\"...
java
chosen
[ { "from": "human", "value": "Include test which configures WebDriverManager (forceCache)\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 e...
java
chosen
[ { "from": "human", "value": "Add random password generator (for conference/order access codes).\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 th...
java
chosen
[ { "from": "human", "value": "Add java solution for 77. Combinations\n\n77. Combinations: https://leetcode.com/problems/combinations/" }, { "from": "gpt", "value": "package leetcode.combinations;\n\nimport java.util.ArrayList;\n\npublic class Solution {\n\tpublic static void dfs(ArrayList<ArrayLi...
java
chosen
[ { "from": "human", "value": "Add utility to back-port translation updates" }, { "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 regar...
java
chosen
[ { "from": "human", "value": "Check missing prefixes are tested\n\ngit-svn-id: 4741f78aa2d3279ddd0a34c053c42ca3ce19451b@1970 124fc276-1b20-0410-8d16-dc08e6bff5e9\n" }, { "from": "gpt", "value": "package org.simpleframework.xml.core;\r\n\r\nimport java.lang.reflect.Constructor;\r\nimport java.lang...
java
chosen
[ { "from": "human", "value": "Check that certain views/tables required for the Biomart build are not present.\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 ...
java
chosen
[ { "from": "human", "value": "Create test for object validator.\n" }, { "from": "gpt", "value": "package com.github.aureliano.damihilogs.validation;\n\nimport java.util.Set;\n\nimport org.junit.Assert;\nimport org.junit.Test;\n\nimport com.github.aureliano.damihilogs.CustomInputConfig;\nimport co...
java
chosen
[ { "from": "human", "value": "Camel-AWS: Create single Karaf feature tests for single components, aws-eks 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 Exceptions types for email\n" }, { "from": "gpt", "value": "package co.paystack.android.exceptions;\n\n/**\n * Created by i on 24/08/2016.\n */\npublic class InvalidEmailException extends PaystackException {\n\n private String email;\n\n public String getE...
java
chosen
[ { "from": "human", "value": "Add statement to problem 29\n" }, { "from": "gpt", "value": "package com.github.pedrovgs.problem29;\n\n/**\n * Given two Strings passed as parameter, can you write a method to return true if this words are\n * anagrams?\n *\n * For example:\n *\n * Input: ana,naa Out...
java
chosen
[ { "from": "human", "value": "Add a new feature to change the directory of taskmanager.xml\n" }, { "from": "gpt", "value": "package seedu.task.logic.commands;\n\nimport java.io.IOException;\nimport java.util.logging.Logger;\n\nimport seedu.task.MainApp;\nimport seedu.task.commons.core.Config;\nim...
java
chosen
[ { "from": "human", "value": "Add a failing TLCWorkerAndFPSet process that randomly crashes and\nrestarts the FPSet server" }, { "from": "gpt", "value": "// Copyright (c) 2012 Microsoft Corporation. All rights reserved.\n\npackage tlc2.tool.distributed.fp;\n\nimport java.util.Random;\n\nimport t...
java
chosen
[ { "from": "human", "value": "[Scenario] Add model for power/comm costs\n\nAdd class to contain model for power and\ncommunications cost. This will be used to\nstore the persistent state of Activity\nType components, as described in\nnasa/MCT-Plugins#97\n" }, { "from": "gpt", "value": "/*********...
java
chosen
[ { "from": "system", "value": "Check for and reject null event listeners.\n" }, { "from": "human", "value": "/**\n * Copyright 2013 Google 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 ma...
java
chosen
[ { "from": "human", "value": "Add new data processor to compute P from g(sigma)\n" }, { "from": "gpt", "value": "package etomica.cavity;\n\nimport etomica.box.Box;\nimport etomica.data.DataProcessorForked;\nimport etomica.data.IData;\nimport etomica.data.IDataInfo;\nimport etomica.data.types.Data...
java
chosen
[ { "from": "human", "value": "Add test for emitting project\n" }, { "from": "gpt", "value": "package com.kickstarter.viewmodels;\n\nimport android.content.Intent;\n\nimport com.kickstarter.KSRobolectricTestCase;\nimport com.kickstarter.factories.ProjectFactory;\nimport com.kickstarter.models.Proj...
java
chosen
[ { "from": "human", "value": "Test for generating JSON from Avro in local MR\n" }, { "from": "gpt", "value": "package edu.isi.karma.mapreduce.driver;\n\nimport static org.junit.Assert.assertEquals;\n\nimport java.io.File;\nimport java.net.URL;\n\nimport org.apache.hadoop.conf.Configuration;\nimpo...
java
chosen
[ { "from": "human", "value": "feat: Add custom CursorAdapter to display records from favourites database\n" }, { "from": "gpt", "value": "package eu.redray.trevie;\n\nimport android.content.Context;\nimport android.database.Cursor;\nimport android.view.LayoutInflater;\nimport android.view.View;\n...
java
chosen
[ { "from": "human", "value": "Add converter from InputStream to List\n\n\nFormer-commit-id: da0dee4a86088f6871cfc48b57e7ac578ddbe914" }, { "from": "gpt", "value": "package com.boundary.sdk.event.util;\n\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStream;\nimp...
java
chosen
[ { "from": "human", "value": "Add use case for adding a deployment\n" }, { "from": "gpt", "value": "/**\n * AddDeployment Implements Add Deployment Use Case\n *\n * @author Ushahidi Team <team@ushahidi.com>\n * @package com.ushahidi.android.core.usecase.deployment\n * @copyright 2014 Ushahidi\n *...
java
chosen
[ { "from": "human", "value": "Change copyright in Apache 2 license to 2013\ndocumented\ndocumented\nFixed solr gene details page images not limited to expression and gene id!\nimage results works from mp, genedetails and search???\nimages links working on gene details and new server side icon on mp page\nhac...
java
chosen
[ { "from": "human", "value": "Add method to DefaultControlErrorProcessor for hold the swing control\n" }, { "from": "gpt", "value": "/*\n * Copyright 2009-2011 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file e...
java
chosen
[ { "from": "human", "value": "Change name to more logical name\n" }, { "from": "gpt", "value": "/*\n * Copyright (c) 2013 Malhar Inc. ALL Rights Reserved.\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": "human", "value": "Add an exception handling fallback for all controllers.\n" }, { "from": "gpt", "value": "/*\n * Copyright 2014 Open mHealth\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": "human", "value": "Add a synchronous commit notifier\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 documentation ...
java
chosen
[ { "from": "human", "value": "Add core feature test for search\n" }, { "from": "gpt", "value": "package com.autonomy.abc.search;\n\nimport com.autonomy.abc.config.ABCTestBase;\nimport com.autonomy.abc.config.TestConfig;\nimport com.autonomy.abc.framework.KnownBug;\nimport com.autonomy.abc.framewo...
java
chosen
[ { "from": "human", "value": "Add main class that launches the evaluator console\n" }, { "from": "gpt", "value": "/*\n * #%L\n * SciJava mathematical expression parser.\n * %%\n * Copyright (C) 2015 Board of Regents of the University of\n * Wisconsin-Madison.\n * %%\n * Redistribution and use in ...
java
chosen
[ { "from": "human", "value": "Create enum for user action type\n" }, { "from": "gpt", "value": "package org.zanata.common;\n\nimport javax.xml.bind.annotation.XmlType;\n\n@XmlType(name = \"userActionType\")\npublic enum UserActionType\n{\n LAST_TRANSLATED, UPLOAD_DOC, REVIEWED_TRANSLATION;\n}" ...
java
chosen
[ { "from": "human", "value": "Add test class for Xintrinsic\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 org.junit.Test;\n\nimport static junit.framework...
java
chosen
[ { "from": "human", "value": "Add an endpoint state enum for consideration" }, { "from": "gpt", "value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information re...
java
chosen
[ { "from": "human", "value": "Add a \"test\" for SourceRepository\n\nSadly, Mockito 2 doesn't work with spring-boot that well, which means\nthat interfaces' default methods cannot be unit tested.\n" }, { "from": "gpt", "value": "/*\n * Copyright 2016 Jaakko Hannikainen\n *\n * Licensed under the ...
java
chosen
[ { "from": "human", "value": "Implement executor for external commands\n" }, { "from": "gpt", "value": "package io.enmasse.systemtest.executor;\r\n\r\nimport java.io.*;\r\nimport java.util.ArrayList;\r\nimport java.util.concurrent.*;\r\n\r\n/**\r\n * Class provide execution of external command\r\...
java
chosen
[ { "from": "human", "value": "Add a utility class for looking up internationalized messages\n" }, { "from": "gpt", "value": "/*\n * Copyright 2008-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...
java
chosen
[ { "from": "human", "value": "[ONOS-3245] Add the junit test code of DefaultAllocationPool\n\nChange-Id: Ifa4fd9b97ef16fc842e621db40029040a2ac0df7\n" }, { "from": "gpt", "value": "/*\n * Copyright 2015 Open Networking Laboratory\n *\n * Licensed under the Apache License, Version 2.0 (the \"Licens...
java
chosen
[ { "from": "system", "value": "Fix GNOME keymap missing shortcuts.\n" }, { "from": "human", "value": "/*\n * Copyright 2000-2009 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 ...
java
chosen
[ { "from": "human", "value": "Add a filter checking the Authorisation to access the API\n" }, { "from": "gpt", "value": "package net.kencochrane.raven.sentrystub;\n\nimport net.kencochrane.raven.sentrystub.auth.AuthValidator;\nimport net.kencochrane.raven.sentrystub.auth.InvalidAuthException;\n\n...
java
chosen
[ { "from": "human", "value": "Add test to color hex constructor.\n" }, { "from": "gpt", "value": "package net.mostlyoriginal.api.component.graphics;\n\nimport org.junit.Assert;\nimport org.junit.Test;\n\npublic class ColorTest {\n\n\t@Test\n\tpublic void should_convert_hex1_to_r()\n\t{\n\t\tColor...
java
chosen
[ { "from": "human", "value": "Create file provider which implements POSIX pattern on file system commands.\n" }, { "from": "gpt", "value": "package com.github.aureliano.achmed.os.fs;\n\nimport com.github.aureliano.achmed.resources.properties.FileProperties;\n\npublic class PosixFileProvider imple...
java
chosen
[ { "from": "human", "value": "Add a translator for Castor exceptions (IOException, ValidationException, MarshalException) to Spring DataAccessException.\n" }, { "from": "gpt", "value": "package org.opennms.netmgt.dao.support;\n\nimport java.io.IOException;\n\nimport org.exolab.castor.xml.MarshalE...
java
chosen
[ { "from": "human", "value": "Add test for Search request\n" }, { "from": "gpt", "value": "package se.michaelthelin.spotify.methods;\n\nimport org.junit.Test;\nimport org.junit.runner.RunWith;\nimport org.mockito.runners.MockitoJUnitRunner;\nimport se.michaelthelin.spotify.Api;\nimport se.michael...
java
chosen
[ { "from": "human", "value": "Add first ES unit test\n" }, { "from": "gpt", "value": "import stroom.search.elastic.search.SearchExpressionQueryBuilder;\nimport stroom.util.test.StroomJUnit4ClassRunner;\n\nimport org.junit.Assert;\nimport org.junit.Before;\nimport org.junit.Test;\nimport org.junit...
java
chosen
[ { "from": "human", "value": "Move a copy to emojipicker library where there should be one\n" }, { "from": "gpt", "value": "package com.rainliu.emojipanel.span;\n\nimport android.content.Context;\nimport android.graphics.Canvas;\nimport android.graphics.Paint;\nimport android.graphics.drawable.Dr...
java
chosen
[ { "from": "human", "value": "Create unsupported package manager exception.\n" }, { "from": "gpt", "value": "package com.github.aureliano.achmed.exception;\n\npublic class UnsupportedPackageManagerException extends RuntimeException {\n\n\tprivate static final long serialVersionUID = -408989111812...
java
chosen
[ { "from": "human", "value": "Create a superclass for Article Activities\n\nAs all five Categories of Articles will share some common Views (such as\nnames, images, Connections, and Snippets), it would be beneficial to\nleverage inheritance in order to prevent repetition.\n" }, { "from": "gpt", "...
java
chosen
[ { "from": "human", "value": "Check that there are no blank or null db_display_name fields in external_db - would cause problems for web display.\n" }, { "from": "gpt", "value": "package org.ensembl.healthcheck.testcase.generic;\n\n/*\n * Copyright (C) 2003 EBI, GRL\n * \n * This library is free ...
java
chosen
[ { "from": "human", "value": "core: Add minimal tests to XmlUtils\n\nChange-Id: I81c895335dae1ca370320e4dd437dc5da8ba36cd\nSinged-off-by: Idan Shaby <7d282434a997b05b417940edadd292e8428dbe3c@redhat.com>\nSigned-off-by: Allon Mureinik <abc9ddaceaf0c059a5d9bc2aed71f25cb5370dba@redhat.com>\n" }, { "from...
java
chosen
[ { "from": "human", "value": "Test the list method implementation of the workflows rest controller\n\nThe test is an integration test\n" }, { "from": "gpt", "value": "package org.ow2.proactive.workflow_catalog.rest.controller;\n\nimport org.junit.Before;\nimport org.junit.Test;\nimport org.junit....
java
chosen
[ { "from": "system", "value": "Fix typo\nStop programming at late night\n" }, { "from": "human", "value": "package com.gmail.nossr50.events;\n\nimport org.bukkit.entity.Player;\nimport org.bukkit.event.Event;\nimport org.bukkit.event.HandlerList;\n\nimport com.gmail.nossr50.datatypes.SkillType;\n...
java
chosen
[ { "from": "human", "value": "Add parser for parsing PerfMetrics msg date\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 ...
java
chosen
[ { "from": "human", "value": "Add repository class for loading and saving vocab sheet items\n" }, { "from": "gpt", "value": "package com.hewgill.android.nzsldict;\n\nimport android.content.Context;\nimport android.content.SharedPreferences;\n\nimport java.util.ArrayList;\nimport java.util.List;\n...
java
chosen
[ { "from": "human", "value": "Add version support in stalactite\n" }, { "from": "gpt", "value": "package com.duastone.stalactite.controller;\n\nimport com.alibaba.fastjson.JSONObject;\nimport org.springframework.web.bind.annotation.RequestMapping;\nimport org.springframework.web.bind.annotation.R...
java
chosen
[ { "from": "human", "value": "Add the actual java class.\n" }, { "from": "gpt", "value": "/*\n * #%L\n * TestNG System.out printer\n * %%\n * Copyright (C) 2014 Mats Henrikson\n * %%\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in comp...
java
chosen
[ { "from": "human", "value": "Add benchmark for hashing algos\n" }, { "from": "gpt", "value": "package redis.clients.jedis.tests.benchmark;\n\nimport java.io.IOException;\nimport java.net.UnknownHostException;\nimport java.util.ArrayList;\nimport java.util.Calendar;\nimport java.util.Collection;\...
java
chosen
[ { "from": "human", "value": "Move vanilla code back into main source tree\n" }, { "from": "gpt", "value": "package io.trigger.forge.android.modules.tabs;\n\nimport android.webkit.JavascriptInterface;\n\nimport io.trigger.forge.android.core.ForgeLog;\n\n/**\n * Created by antoine on 16/03/18.\n *...
java
chosen
[ { "from": "human", "value": "Add DTO for indexing status.\n" }, { "from": "gpt", "value": "/*\n * Copyright 2010, Red Hat, Inc. and individual contributors as indicated by the\n * @author tags. See the copyright.txt file in the distribution for a full\n * listing of individual contributors.\n * ...
java
chosen
[ { "from": "human", "value": "Check homology_id when used as ForeignKey\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