conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "human", "value": "Add sample for submission to bluemix\n" }, { "from": "gpt", "value": "package bluemix;\n\nimport java.io.File;\nimport java.math.BigInteger;\nimport java.util.HashMap;\nimport java.util.Map;\n\nimport com.ibm.streamsx.topology.TStream;\nimport com.ibm.streamsx.topolo...
java
chosen
[ { "from": "human", "value": "Add script processor for shebang syntax\n\nThis lets a script declare its own intended language.\n\nSee:\nhttps://github.com/hadim/scijava-jupyter-kernel/issues/51#issuecomment-301816226\n" }, { "from": "gpt", "value": "/*\n * #%L\n * SciJava Common shared library fo...
java
chosen
[ { "from": "human", "value": "Add statement for problem 16\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 ShallowEtagHeaderFilter to go with CacheControl headers\n" }, { "from": "gpt", "value": "package com.drumonii.loltrollbuild.config;\n\nimport org.springframework.context.annotation.Bean;\nimport org.springframework.context.annotation.Configuration;\nimport org.sp...
java
chosen
[ { "from": "human", "value": "Create the basic command to follow a wall\n" }, { "from": "gpt", "value": "package org.frc4931.robot.command.autonomous;\n\nimport org.frc4931.robot.Subsystems;\n\nimport edu.wpi.first.wpilibj.command.Command;\n\npublic class FollowWall extends Command{\n\tprivate fi...
java
chosen
[ { "from": "human", "value": "Add destroyable module without parser\n" }, { "from": "gpt", "value": "package in.twizmwaz.cardinal.module.modules.destroyable;\n\nimport in.twizmwaz.cardinal.module.GameObjective;\nimport in.twizmwaz.cardinal.teams.PgmTeam;\nimport org.bukkit.block.Block;\nimport or...
java
chosen
[ { "from": "human", "value": "Add a new BagOfProperties class for a transition\n\nA simple string is not serializable, and if we have to create a wrapper class,\nwe might as well record the previous state.\n" }, { "from": "gpt", "value": "package edu.berkeley.eecs.cfc_tracker.wrapper;\n\n/**\n * ...
java
chosen
[ { "from": "human", "value": "Add some typical stream examples" }, { "from": "gpt", "value": "package com.github.jeffgbutler;\n\nimport static org.hamcrest.core.Is.*;\nimport static org.junit.Assert.assertThat;\n\nimport java.util.Arrays;\nimport java.util.List;\nimport java.util.stream.Collector...
java
chosen
[ { "from": "human", "value": "Check for closing database streams.\n\n\ngit-svn-id: e7d6bde23f017c9ff4efd468d79d66def666766b@2731 eae3c2d3-9b19-0410-a86e-396b6ccb6ab3\n" }, { "from": "gpt", "value": "import java.sql.*;\n\npublic class DatabaseStreams {\n\n public static void method() {\n\n ...
java
chosen
[ { "from": "human", "value": "Add a BodyGenerator backed by a byte array\n" }, { "from": "gpt", "value": "/*\n * Copyright 2010 Ning, Inc.\n *\n * Ning licenses this file to you under the Apache License, version 2.0\n * (the \"License\"); you may not use this file except in compliance with the\n ...
java
chosen
[ { "from": "human", "value": "Feature: Implement facade to retrieve Palladio resource types\n" }, { "from": "gpt", "value": "package de.fabiankeller.palladio.builder.util.impl;\n\nimport de.fabiankeller.palladio.builder.util.PalladioResourceRepository;\nimport org.palladiosimulator.pcm.core.entit...
java
chosen
[ { "from": "human", "value": "Add test for the health-check URL\n" }, { "from": "gpt", "value": "package uk.ac.ebi.atlas.utils;\n\nimport org.junit.Test;\nimport org.junit.runner.RunWith;\nimport org.springframework.test.context.ContextConfiguration;\nimport org.springframework.test.context.junit...
java
chosen
[ { "from": "system", "value": "Revert \"yet another back compatibility fix\"\n\nThis reverts commit 4b8f9e9e3085fca2aefea3176f74dc06710d4e47.\n" }, { "from": "human", "value": "package com.jetbrains.python.console;\n\nimport com.intellij.execution.console.LanguageConsoleViewImpl;\nimport com.inte...
java
chosen
[ { "from": "human", "value": "Add GSPN analysis to PIPE\n" }, { "from": "gpt", "value": "package pipe.gui.plugin.concrete;\n\nimport pipe.gui.analysis.GSPNAnalysis;\nimport pipe.gui.plugin.GuiModule;\nimport uk.ac.imperial.pipe.models.petrinet.PetriNet;\n\nimport javax.swing.*;\nimport java.awt.F...
java
chosen
[ { "from": "human", "value": "[Genomics]: Create the class which will be used when performing joint genotyping.\n" }, { "from": "gpt", "value": "package com.github.sparkcaller.variantdiscovery;\n\nimport com.github.sparkcaller.BaseGATKProgram;\nimport org.broadinstitute.gatk.engine.CommandLineGAT...
java
chosen
[ { "from": "human", "value": "Add contrller for laws page with sample data\n" }, { "from": "gpt", "value": "package wissolsoft.porada.webapp.controller;\n\nimport java.util.ArrayList;\nimport java.util.Date;\nimport java.util.List;\n\nimport org.springframework.stereotype.Controller;\nimport org....
java
chosen
[ { "from": "human", "value": "Update the object stream test" }, { "from": "gpt", "value": "package org.simpleframework.xml.core;\n\nimport java.io.ByteArrayInputStream;\nimport java.io.ByteArrayOutputStream;\nimport java.io.ObjectInputStream;\nimport java.io.ObjectOutputStream;\nimport java.io.Ob...
java
chosen
[ { "from": "system", "value": "Add missing confirmation dialog for hard reset\n\nAdded the missing confirmation dialog for Reset->Hard\naction in History view.\n\nBug: 319947\nChange-Id: I1fab712e20a0087ce6f91903968416c24e3d902a\nSigned-off-by: Jens Baumgart <6d4d33e37bca550188034acaf6d86b3d82efd688@sap.com>...
java
chosen
[ { "from": "human", "value": "Implement simple string message handler\n" }, { "from": "gpt", "value": "package com.tacitknowledge.performance.data;\n\nimport com.tacitknowledge.performance.Component;\n\nimport io.netty.channel.ChannelFutureListener;\nimport io.netty.channel.ChannelHandlerContext;...
java
chosen
[ { "from": "human", "value": "Add tests for the SyntaxHighlighter class.\n" }, { "from": "gpt", "value": "/*\n * Copyright (C) 2016 Reece H. Dunn\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 example of TTS with NCCO\n" }, { "from": "gpt", "value": "package com.nexmo.quickstart.voice;\n\nimport com.nexmo.client.NexmoClient;\nimport com.nexmo.client.voice.Call;\nimport com.nexmo.client.voice.ncco.Ncco;\nimport com.nexmo.client.voice.ncco.TalkAction;\n\...
java
chosen
[ { "from": "human", "value": "Add a DiscreteResources sub type representing an empty set\n\nThis is for ONOS-4281\n\nChange-Id: Ic4b6e2f00555681bb2af39dc1cf764d325ae8744\n(cherry picked from commit abdf2df31ce11ed1fa8ee3ee83c6df41dbb2be4e)\n" }, { "from": "gpt", "value": "/*\n * Copyright 2016-pr...
java
chosen
[ { "from": "human", "value": "Add chapter about Pure Functions\n\n" }, { "from": "gpt", "value": "package de.stevenschwenke.java.writingawesomejavacodeworkshop.programmingstyle;\n\n/**\n * Pure functions can be used to write maintainable code that is much easier to debug.\n */\npublic class PureF...
java
chosen
[ { "from": "human", "value": "Add date time output format serializer\n" }, { "from": "gpt", "value": "package pl.schibsted.flume.interceptor.json;\n\nimport org.apache.commons.lang.StringUtils;\nimport org.apache.flume.Context;\nimport org.apache.flume.conf.ComponentConfiguration;\nimport org.jod...
java
chosen
[ { "from": "human", "value": "[New] Add second java class to demo how to create generic class.\n" }, { "from": "gpt", "value": "package net.dummydigit.qbranch.ut.mocks;\n\nimport net.dummydigit.qbranch.QBranchSerializable;\nimport net.dummydigit.qbranch.annotations.QBranchGeneratedCode;\nimport n...
java
chosen
[ { "from": "human", "value": "Add util to find project configuration\n" }, { "from": "gpt", "value": "package de.retest.recheck.configuration;\n\nimport java.nio.file.Path;\n\npublic class ProjectConfigurationUtil {\n\n\tprivate ProjectConfigurationUtil() {\n\n\t}\n\n\tpublic static Path findProj...
java
chosen
[ { "from": "human", "value": "Add unit test for the QML Command\n" }, { "from": "gpt", "value": "package com.truphone.cascades;\n\nimport java.io.PrintStream;\n\nimport org.junit.Assert;\nimport org.junit.Test;\n\nimport com.truphone.cascades.FakeDevice.FakeDeviceListener;\nimport com.truphone.ca...
java
chosen
[ { "from": "human", "value": "Add snapshot taker for StandardUsernamePasswordCredentials\n" }, { "from": "gpt", "value": "package com.cloudbees.plugins.credentials.impl;\n\nimport com.cloudbees.plugins.credentials.CredentialsSnapshotTaker;\nimport com.cloudbees.plugins.credentials.common.Standard...
java
chosen
[ { "from": "human", "value": "Add spec on @Before call order\n" }, { "from": "gpt", "value": "package com.github.havarunner.beforeafter;\n\nimport com.github.havarunner.HavaRunner;\nimport com.github.havarunner.annotation.RunSequentially;\nimport com.google.common.collect.Lists;\nimport com.googl...
java
chosen
[ { "from": "human", "value": "Add Java package for formatters\n" }, { "from": "gpt", "value": "/*\n * Copyright 2020 Martin Winandy\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with\n * the License. You may obtain a copy ...
java
chosen
[ { "from": "human", "value": "Test package structure as suggested by Sergey Vladimirov\n\ngit-svn-id: 156d99fefae263fe7040597dc4e7b98918e91509@331718 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "gpt", "value": "/*\r\n * Copyright 2004 The Apache Software Foundation\r\n *\r\n * Licensed u...
java
chosen
[ { "from": "human", "value": "Add a basic avg with kryo example in Java\n" }, { "from": "gpt", "value": "/**\n * Illustrates Kryo serialization in Java\n */\npackage com.oreilly.learningsparkexamples.java;\n\nimport java.util.Arrays;\nimport java.util.List;\n\nimport org.apache.commons.lang.Strin...
java
chosen
[ { "from": "human", "value": "Use the test for storage truncation from `core-java`\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 ...
java
chosen
[ { "from": "human", "value": "Create unit tests for the following alias operators: LIKE, NOT_LIKE and\nLINK_TO" }, { "from": "gpt", "value": "package org.cinchapi.concourse;\n\nimport org.cinchapi.concourse.thrift.Operator;\nimport org.cinchapi.concourse.util.TestData;\nimport org.junit.Assert;\n...
java
chosen
[ { "from": "human", "value": "Add support for data URIs in [Part 1]\n" }, { "from": "gpt", "value": "/*\n * Copyright (c) 2015-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of t...
java
chosen
[ { "from": "human", "value": "Add test for the new CommonsCSVInputFormat and CSVRecordToTupleMap\n" }, { "from": "gpt", "value": "package de.bigprak.transform.csv;\n\nimport java.io.File;\nimport java.nio.charset.StandardCharsets;\nimport java.util.Arrays;\n\nimport org.apache.commons.csv.CSVForm...
java
chosen
[ { "from": "human", "value": "Add small util class for converting time intervals to a human readable\nformat" }, { "from": "gpt", "value": "package org.bitrepository.integrityservice.utils;\n\n/**\n * Util class to handle the presentation of time in a human readable form \n */\npublic class TimeU...
java
chosen
[ { "from": "human", "value": "Add test for SQL Locator using config registry\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 basic streaming wordcount example\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 * h...
java
chosen
[ { "from": "human", "value": "Add a few test cases for generated classes\n" }, { "from": "gpt", "value": "package org.reflection_no_reflection.generator.sample;\n\nimport org.junit.Before;\nimport org.junit.Test;\nimport org.reflection_no_reflection.Class;\n\nimport static org.hamcrest.CoreMatche...
java
chosen
[ { "from": "human", "value": "Add test to show CachedInteraction cannot be created\n" }, { "from": "gpt", "value": "package fitnesse.slim.fixtureInteraction;\n\nimport org.junit.Test;\n\npublic class CachedInteractionTest {\n\n @Test\n public void canBeCreated() {\n CachedInteraction interac...
java
chosen
[ { "from": "human", "value": "Add usage tier DTO class\n" }, { "from": "gpt", "value": "/*\n * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.\n *\n * WSO2 Inc. licenses this file to you under the Apache License,\n * Version 2.0 (the \"License\"); you may not use th...
java
chosen
[ { "from": "human", "value": "[AS7-5053] Allow EJB deployments as OSGi bundles\n\nwas: 2a05cfb2ece5bdfe559432cd45faae4c81154f3f\n" }, { "from": "gpt", "value": "/*\n * JBoss, Home of Professional Open Source.\n * Copyright 2010, Red Hat, Inc., and individual contributors\n * as indicated by the @...
java
chosen
[ { "from": "human", "value": "Add unit test for ClassFileTree.\n" }, { "from": "gpt", "value": "package com.yahoo.abicheck;\n\nimport static org.hamcrest.MatcherAssert.assertThat;\nimport static org.hamcrest.Matchers.empty;\nimport static org.hamcrest.Matchers.equalTo;\nimport static org.hamcrest...
java
chosen
[ { "from": "human", "value": "Add helper for creating SpannedString\n" }, { "from": "gpt", "value": "package com.spiddekauga.android.ui;\n\nimport android.support.annotation.StringRes;\nimport android.text.SpannableString;\nimport android.text.Spanned;\nimport android.text.style.ClickableSpan;\n\...
java
chosen
[ { "from": "human", "value": "Add importer to remove current in use hugoSymbol from the alias list\n\nThis closes #763\n" }, { "from": "gpt", "value": "package org.mskcc.cbio.oncokb.importer;\n\nimport org.json.JSONArray;\nimport org.json.JSONObject;\nimport org.mskcc.cbio.oncokb.model.Gene;\nimp...
java
chosen
[ { "from": "human", "value": "Add Executor for Mediator pattern.\n" }, { "from": "gpt", "value": "package jp.ne.naokiur.design.pattern.mediator;\n\nimport jp.ne.naokiur.design.pattern.mediator.character.Cabbage;\nimport jp.ne.naokiur.design.pattern.mediator.character.Farmer;\nimport jp.ne.naokiur...
java
chosen
[ { "from": "human", "value": "Test case for loop unrolling.\n" }, { "from": "gpt", "value": "/*\n * Copyright (c) 2009, 2012, Oracle and/or its affiliates. All rights reserved.\n * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.\n *\n * This code is free software; you can redistribu...
java
chosen
[ { "from": "human", "value": "Make sure Paxos URI Utils behave the way they should\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...
java
chosen
[ { "from": "human", "value": "Add visitor to calculate hours estimation deviation for finished tasks.\n\nFEA: ItEr75S27PerProjectDashboard\n" }, { "from": "gpt", "value": "/*\n * This file is part of LibrePlan\n *\n * Copyright (C) 2011 Igalia, S.L.\n *\n * This program is free software: you can ...
java
chosen
[ { "from": "human", "value": "Add new StyleSpan wrapper (not final version yet)\n" }, { "from": "gpt", "value": "package com.fuzz.indicator.text;\n\nimport android.os.Parcel;\nimport android.support.annotation.NonNull;\nimport android.text.style.StyleSpan;\n\n/**\n * Warning: this class's ancestr...
java
chosen
[ { "from": "human", "value": "Add a validation configuration for providing a Validator bean.\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 Li...
java
chosen
[ { "from": "human", "value": "Add migration to register analytics\n" }, { "from": "gpt", "value": "package flyway.pti;\n\nimport org.flywaydb.core.api.migration.BaseJavaMigration;\nimport org.flywaydb.core.api.migration.Context;\nimport org.oskari.helpers.BundleHelper;\n\nimport java.sql.Connecti...
java
chosen
[ { "from": "human", "value": "Test for previously committed strategy\n\ngit-svn-id: 4b387fe5ada7764508e2ca96c335714e4c1692c6@464 0d517254-b314-0410-acde-c619094fa49f\n" }, { "from": "gpt", "value": "package edu.northwestern.bioinformatics.studycalendar.utils.hibernate;\n\nimport edu.northwestern....
java
chosen
[ { "from": "human", "value": "Test getThreshold of the CategoryClient\n\n\ngit-svn-id: afcf11d89342f630bd950d18a70234a9e277d909@97577 523d945c-050c-4681-91ec-863ad3bb968a\n" }, { "from": "gpt", "value": "package alma.alarmsystem.clients.test;\n/*\n * ALMA - Atacama Large Millimiter Array (c) Euro...
java
chosen
[ { "from": "human", "value": "Add test for neodatis service manager.\n\nSigned-off-by: Michael Handler <331a76cd0f162b0218893a3dfa4df5a8bf659d1e@fullstop.at>\n" }, { "from": "gpt", "value": "/**\n * Copyright 2010 OpenEngSB Division, Vienna University of Technology\n *\n * Licensed under the Apac...
java
chosen
[ { "from": "human", "value": "Add statement to problem 68\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 package for tinylog logging API for Java\n" }, { "from": "gpt", "value": "/*\n * Copyright 2020 Martin Winandy\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with\n * the License. You may o...
java
chosen
[ { "from": "system", "value": "Fix template exception breakpoints default.\n" }, { "from": "human", "value": "/*\n * Copyright 2000-2013 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.\...
java
chosen
[ { "from": "human", "value": "Add an interface for append-only access to an AnsiTerminal\n\nProviding only access to this interface rather than handing\nout a full AnsiTerminal allows a more controlled access. In\nparticular, it will be easier to track the state the terminal\nwill end up in.\n\n--\nChange-Id...
java
chosen
[ { "from": "human", "value": "Add a Form for database connections\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 except in compliance with the Licen...
java
chosen
[ { "from": "human", "value": "Test that demonstrates simple non-dynamic expectations in a mock policy" }, { "from": "gpt", "value": "/*\r\n * Copyright 2009 the original author or authors.\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this fil...
java
chosen
[ { "from": "human", "value": "Add class for local logging of synthesis requests\n\nThis class logs each request to a local file under logs/. Default is\nthe S3 logger.\n" }, { "from": "gpt", "value": "/*\nCopyright 2017 Rice University\n\nLicensed under the Apache License, Version 2.0 (the \"Lice...
java
chosen
[ { "from": "human", "value": "Add few tests for CollectionMembershipOperator\n" }, { "from": "gpt", "value": "package com.hubspot.jinjava.el.ext;\n\nimport static org.assertj.core.api.Assertions.assertThat;\n\nimport com.hubspot.jinjava.Jinjava;\nimport com.hubspot.jinjava.interpret.JinjavaInterp...
java
chosen
[ { "from": "human", "value": "Create account manager interface for acc module (support new method generate UID)\n" }, { "from": "gpt", "value": "package eu.bcvsolutions.idm.acc.service.api;\n\nimport eu.bcvsolutions.idm.acc.entity.SysRoleSystem;\nimport eu.bcvsolutions.idm.core.model.entity.IdmId...
java
chosen
[ { "from": "human", "value": "Add test cases for DROP DATABASE statement\n" }, { "from": "gpt", "value": "package com.orientechnologies.orient.core.sql.executor;\n\nimport com.orientechnologies.orient.core.db.ODatabaseSession;\nimport com.orientechnologies.orient.core.db.OrientDB;\nimport com.ori...
java
chosen
[ { "from": "human", "value": "Test for opening help activity\n" }, { "from": "gpt", "value": "package com.evgenii.aescrypto.test;\n\nimport android.content.Intent;\nimport android.test.ActivityUnitTestCase;\nimport android.test.suitebuilder.annotation.MediumTest;\nimport android.widget.ImageButto...
java
chosen
[ { "from": "human", "value": "Add example using command line interface\n" }, { "from": "gpt", "value": "package exporter.examples;\n\nimport java.util.Date;\n\nimport org.apache.commons.cli.BasicParser;\nimport org.apache.commons.cli.CommandLine;\nimport org.apache.commons.cli.Options;\nimport or...
java
chosen
[ { "from": "human", "value": "Create template of gem package manager.\n" }, { "from": "gpt", "value": "package com.github.aureliano.achmed.os.pkg;\n\nimport com.github.aureliano.achmed.command.CommandResponse;\nimport com.github.aureliano.achmed.resources.properties.PackageProperties;\n\npublic c...
java
chosen
[ { "from": "human", "value": "Implement ParticleType for dumb numerical ID'd particles.\n" }, { "from": "gpt", "value": "package org.spongepowered.common.effect.particle;\n\nimport org.spongepowered.api.ResourceKey;\nimport org.spongepowered.api.effect.particle.ParticleOption;\nimport org.spongep...
java
chosen
[ { "from": "human", "value": "Add an observer that can transfom a list of metrics before forwarding them to the underlying observer\n" }, { "from": "gpt", "value": "/**\n * Copyright 2013 Netflix, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use t...
java
chosen
[ { "from": "human", "value": "Add small test suite for inactive slave manager\n\nAdd a pair of tests for the the `InactiveSlaveManager`. This is mostly\njust to make sure that I get what's going on; in practice the tests\ndon't do much more than run Curator through a very small trial run.\n" }, { "fr...
java
chosen
[ { "from": "human", "value": "Add event to indicate that TARS Storage Directory has changed\n" }, { "from": "gpt", "value": "package tars.commons.events.storage;\n\nimport tars.commons.core.Config;\nimport tars.commons.events.BaseEvent;\n\n/*\n * @@author A0124333U\n * An event where the user cha...
java
chosen
[ { "from": "human", "value": "Include the running app provider" }, { "from": "gpt", "value": "/*******************************************************************************\n * Copyright (c) 2017 Pivotal, Inc.\n * All rights reserved. This program and the accompanying materials\n * are made ava...
java
chosen
[ { "from": "human", "value": "Add unit test for TwitterOutput\n" }, { "from": "gpt", "value": "package co.uk.jiveelection.campaign.output.twitter;\n\nimport co.uk.jiveelection.campaign.jive.Jive;\nimport org.junit.Before;\nimport org.junit.Ignore;\nimport org.junit.Test;\nimport org.junit.runner....
java
chosen
[ { "from": "human", "value": "Add CheckMana action, for stopping a spell if mana does not meet some requirements (empty, full, certain amount)\n" }, { "from": "gpt", "value": "package com.elmakers.mine.bukkit.action.builtin;\n\nimport com.elmakers.mine.bukkit.action.CompoundAction;\nimport com.el...
java
chosen
[ { "from": "human", "value": "Store the default order values of security filters.\n" }, { "from": "gpt", "value": "package org.springframework.security.ui;\n\nimport org.springframework.core.Ordered;\n\n/**\n * Stores the default order numbers of all Spring Security filters for use in configurati...
java
chosen
[ { "from": "human", "value": "Add test to verify activity injection works.\n" }, { "from": "gpt", "value": "package com.example.butterknife;\n\nimport org.junit.Test;\nimport org.junit.runner.RunWith;\nimport org.robolectric.RobolectricTestRunner;\n\nimport static org.fest.assertions.api.ANDROID....
java
chosen
[ { "from": "human", "value": "Add serialization test for Team\n" }, { "from": "gpt", "value": "/*\n * Copyright 2016 Shredder121.\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 cop...
java
chosen
[ { "from": "human", "value": "Add tests that shows the problem\n\nThe empty lines are missing, which causes ugly diffs when you apply from e.g. review.\n" }, { "from": "gpt", "value": "package de.retest.recheck.review.workers;\n\nimport static de.retest.recheck.configuration.ProjectConfiguration....
java
chosen
[ { "from": "human", "value": "Add interface for stack trace locations\n" }, { "from": "gpt", "value": "/*\n * Copyright 2020 Martin Winandy\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with\n * the License. You may obtain...
java
chosen
[ { "from": "human", "value": "Add a unit test for [Issue-14]; minor javadoc improvements\n" }, { "from": "gpt", "value": "package com.fasterxml.jackson.databind.mixins;\n\nimport java.io.IOException;\nimport java.util.Map;\n\nimport com.fasterxml.jackson.annotation.JsonProperty;\nimport com.faste...
java
chosen
[ { "from": "human", "value": "Add TestRemoteHiveMetastor removed by mistake\n\n\n\ngit-svn-id: 1dd3918e4fc7dfd96526d8ea96bfafeec5472371@999761 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "gpt", "value": "/**\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contr...
java
chosen
[ { "from": "human", "value": "Add java solution for 221. Maximal Square\n\n221. Maximal Square: https://leetcode.com/problems/maximal-square/" }, { "from": "gpt", "value": "package leetcode.maximal_square;\n\npublic class Solution {\n public int maximalSquare(char[][] matrix) {\n if(mat...
java
chosen
[ { "from": "system", "value": "Add missing R class to WebView resource rewriting.\n\nWe weren't rewriting the resources for web_contents_delegate_android,\nresulting in crashes any time a resource was loaded by that component\n(e.g. popup bubbles for HTML form validation failures). Add it to the\nlist and al...
java
chosen
[ { "from": "human", "value": "Add tests for NodeConnectionState class.\n" }, { "from": "gpt", "value": "package net.robobalasko.dfa.core;\n\n\nimport net.robobalasko.dfa.core.exceptions.MultipleStartNodesException;\nimport net.robobalasko.dfa.core.exceptions.NodeConnectionException;\nimport org.j...
java
chosen
[ { "from": "human", "value": "TIKA-153: Allow passing of files or memory buffers to parsers\n\nAdd an initial test case for verifying the TikaInputStream functionality\n\ngit-svn-id: fa8893aa956664a85c8d981696777ef1db2d462a@938495 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "gpt", "value...
java
chosen
[ { "from": "human", "value": "Add test biome loading features" }, { "from": "gpt", "value": "package info.u_team.u_team_test.init;\n\nimport net.minecraftforge.event.world.BiomeLoadingEvent;\nimport net.minecraftforge.eventbus.api.*;\n\npublic class TestBiomeLoadingFeatures {\n\t\n\tprivate stati...
java
chosen
[ { "from": "human", "value": "Add map masking operation: intersecting with a set\n" }, { "from": "gpt", "value": "package org.spoofax.interpreter.library.ssl;\n\nimport io.usethesource.capsule.Map;\nimport io.usethesource.capsule.Set;\n\nimport org.spoofax.interpreter.core.IContext;\nimport org.s...
java
chosen
[ { "from": "human", "value": "Add class to deal with expressions in terms of generators\n" }, { "from": "gpt", "value": "import java.util.*; \nclass CoxeterElement {\n private int[] expression;\n private int rank = 0;\n private int length;\n\n public CoxeterElement(int[] input, int ra...
java
chosen
[ { "from": "human", "value": "Implement a variation of the Knapsack problem.\n\nhttps://programmers.stackexchange.com/questions/326378/finding-the-best-combination-of-sets-that-gives-the-maximum-number-of-unique-ite\n" }, { "from": "gpt", "value": "/*\n * Java Genetic Algorithm Library (@__identi...
java
chosen
[ { "from": "human", "value": "Add new activity: chosen target activity.\n" }, { "from": "gpt", "value": "package com.papier.jurani;\n\nimport android.os.Bundle;\nimport android.support.v7.app.AppCompatActivity;\nimport android.support.v7.widget.Toolbar;\nimport android.view.View;\nimport android....
java
chosen
[ { "from": "human", "value": "Add a global tool that handles accelerators in image windows\n\nThis tool actually can fake the Control key.\n\nSigned-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>\n\nThis used to be revision r4194.\n" }, { "from": "gpt", "value": "\npackage imagej.core.t...
java
chosen
[ { "from": "human", "value": "BSM-177: Add test to validate the getLabelFromReductionKey() function.\n" }, { "from": "gpt", "value": "/*******************************************************************************\n * This file is part of OpenNMS(R).\n *\n * Copyright (C) 2012-2016 The OpenNMS G...
java
chosen
[ { "from": "human", "value": "Remove IRecipe and uses IRecipeFactory & Recipe files instead.\n" }, { "from": "gpt", "value": "/*\n * Copyright (c) 2017 3TUSK, Seraph-JACK, yesterday17, et al.\n *\n * This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a cop...
java
chosen
[ { "from": "human", "value": "Add Comparator for @Order-annotated classes.\n" }, { "from": "gpt", "value": "package org.apache.logging.log4j.core.config;\n\nimport java.util.Comparator;\n\nimport org.apache.logging.log4j.core.util.Assert;\n\n/**\n * Comparator for classes annotated with {@link Or...
java
chosen
[ { "from": "human", "value": "Add example for http servlet request introspection" }, { "from": "gpt", "value": "package de.asw.courses.web2016.demo.backend.servlet.introspect;\n\nimport java.io.IOException;\nimport java.io.PrintWriter;\nimport java.util.Arrays;\nimport java.util.Collections;\nimp...
java
chosen
[ { "from": "human", "value": "Add tests for TagService method security\n\n" }, { "from": "gpt", "value": "package at.ac.tuwien.inso.method_security_tests;\n\nimport org.junit.Test;\nimport org.junit.runner.RunWith;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.spring...
java
chosen
[ { "from": "human", "value": "Fix up case of name\n" }, { "from": "gpt", "value": "/* ********************************************************************\n Licensed to Jasig under one or more contributor license\n agreements. See the NOTICE file distributed with this work\n for addition...
java
chosen
[ { "from": "human", "value": "Test case for the BoundingBox implementation.\n\ngit-svn-id: c1447309447e562cc43d70ade9fe6c70ff9b4cec@592750 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "gpt", "value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributo...
java
chosen