conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "human",
"value": "Add converter for ImagePlus to PNG\n"
},
{
"from": "gpt",
"value": "/*-\n * #%L\n * SciJava polyglot kernel for Jupyter.\n * %%\n * Copyright (C) 2017 Hadrien Mary\n * %%\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this f... | java | chosen |
[
{
"from": "human",
"value": "Add an implementation of JavaInstallation collector\n"
},
{
"from": "gpt",
"value": "package org.svetovid.installer;\r\n\r\nimport java.util.Set;\r\nimport java.util.TreeSet;\r\n\r\npublic class JavaInstallationSetCollector implements Collector<JavaInstallation> {\r\... | java | chosen |
[
{
"from": "human",
"value": "Add test code of EqualsBuilder."
},
{
"from": "gpt",
"value": "package study.hard;\n\nimport static org.junit.Assert.*;\n\nimport org.apache.commons.lang.builder.EqualsBuilder;\nimport org.junit.Before;\nimport org.junit.Test;\n\nimport study.hard.commons.User;\n\n/*... | java | chosen |
[
{
"from": "human",
"value": "Add examples of flux generation\n"
},
{
"from": "gpt",
"value": "package com.example.spring.react.service;\n\nimport reactor.core.publisher.Flux;\n\nimport java.util.stream.Collectors;\nimport java.util.stream.Stream;\n\npublic class ReactiveService {\n\n public s... | java | chosen |
[
{
"from": "human",
"value": "Test for the timeout behaviour of the LiteTimeoutBlockingWaitStrategy.\n"
},
{
"from": "gpt",
"value": "package com.lmax.disruptor;\n\nimport static org.hamcrest.Matchers.greaterThanOrEqualTo;\nimport static org.junit.Assert.*;\n\nimport java.util.concurrent.TimeUnit... | java | chosen |
[
{
"from": "human",
"value": "Add mapper for android.ApplicationInfo to App model\n\nUsed to transition between the Android model\nand the app’s model.\n"
},
{
"from": "gpt",
"value": "package de.philipphager.disclosure.database.app.mapper;\n\nimport android.content.pm.ApplicationInfo;\nimport an... | java | chosen |
[
{
"from": "human",
"value": "Add the Wildfire details fragment\n"
},
{
"from": "gpt",
"value": "package org.forestguardian.View.Fragments;\n\n\nimport android.os.Bundle;\nimport android.support.v4.app.Fragment;\nimport android.view.LayoutInflater;\nimport android.view.View;\nimport android.view.... | java | chosen |
[
{
"from": "human",
"value": "Add Recipe DB writer task\n"
},
{
"from": "gpt",
"value": "package com.example.profbola.bakingtime.services;\n\nimport android.content.Context;\nimport android.support.annotation.NonNull;\n\nimport com.example.profbola.bakingtime.models.Ingredient;\nimport com.exampl... | java | chosen |
[
{
"from": "human",
"value": "Add Leetcode 53 Maximum Subarray\n\nChange-Id: I321135589702ea32b69480a4b33f9cf528b89b6a\n"
},
{
"from": "gpt",
"value": "// Copyright 2016 The Sawdust Open Source Project\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use ... | java | chosen |
[
{
"from": "human",
"value": "Introduce build test for documentation project \"jigsaw.quick.start\"\n"
},
{
"from": "gpt",
"value": "/*\n * Bach - Java Shell Builder\n * Copyright (C) 2020 Christian Stein\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not us... | java | chosen |
[
{
"from": "human",
"value": "Add some test 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": "Add missing test class for OchSignal\n\nChange-Id: I2cbd0365c31e7328bea8f11b8d2dfc7bdeb79f21\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2015 Open Networking Laboratory\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not us... | java | chosen |
[
{
"from": "human",
"value": "[Scenario] Add worker to export CSV in background\n"
},
{
"from": "gpt",
"value": "/*******************************************************************************\n * Mission Control Technologies, Copyright (c) 2009-2012, United States Government\n * as represented ... | java | chosen |
[
{
"from": "human",
"value": "Add unit tests for fetchPropertyOrEmptyArray\n"
},
{
"from": "gpt",
"value": "package com.mesosphere.sdk.state;\n\nimport com.mesosphere.sdk.storage.MemPersister;\nimport com.mesosphere.sdk.storage.Persister;\nimport org.junit.Test;\n\nimport static org.junit.Assert.... | java | chosen |
[
{
"from": "human",
"value": "Test if data is really deleted after calling /delete-register-data endpoint\n"
},
{
"from": "gpt",
"value": "package uk.gov.register.functional;\n\nimport io.dropwizard.testing.ConfigOverride;\nimport org.junit.Rule;\nimport org.junit.Test;\nimport uk.gov.register.fu... | java | chosen |
[
{
"from": "system",
"value": "Remove hardcoded TitleBar icon dimensions\n"
},
{
"from": "human",
"value": "package com.reactnativenavigation.react;\n\nimport android.graphics.Bitmap;\nimport android.graphics.BitmapFactory;\nimport android.graphics.drawable.BitmapDrawable;\nimport android.graphic... | java | chosen |
[
{
"from": "human",
"value": "[Java]: Add availability to rethrow an exception as unchecked and preserving the stack trace without wrapping.\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2015 Real Logic Ltd.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may... | java | chosen |
[
{
"from": "human",
"value": "Add JUnit Block runner support\n"
},
{
"from": "gpt",
"value": "package fi.vincit.multiusertest.runner;\r\n\r\nimport fi.vincit.multiusertest.test.AbstractUserRoleIT;\r\nimport fi.vincit.multiusertest.util.UserIdentifier;\r\nimport org.junit.runners.BlockJUnit4ClassR... | java | chosen |
[
{
"from": "human",
"value": "Add implementation of Subsample interface.\n"
},
{
"from": "gpt",
"value": "package net.imagej.ops.views;\n\nimport org.scijava.ItemIO;\nimport org.scijava.plugin.Parameter;\nimport org.scijava.plugin.Plugin;\n\nimport net.imagej.ops.Contingent;\nimport net.imagej.op... | java | chosen |
[
{
"from": "human",
"value": "Add statement to problem 75\n"
},
{
"from": "gpt",
"value": "package com.github.pedrovgs.problem75;\n\nimport com.github.pedrovgs.sortingalgorithm.SortingAlgorithm;\n\n/**\n * Given an array full of integers implement a selection sort algorithm to sort the content in... | java | chosen |
[
{
"from": "human",
"value": "Add separate handling of version\n"
},
{
"from": "gpt",
"value": "/**\n *\n * Copyright (c) 2006-2015, Speedment, Inc. All Rights Reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\"); You may not\n * use this file except in compliance wi... | java | chosen |
[
{
"from": "human",
"value": "Add collection of elements that should only be detected\n"
},
{
"from": "gpt",
"value": "package pete.metrics.adaptability.elements;\n\nimport java.util.ArrayList;\nimport java.util.Collection;\nimport java.util.HashMap;\nimport java.util.HashSet;\nimport java.util.L... | java | chosen |
[
{
"from": "human",
"value": "Add basic unit test for ad hoc lot delivery\n"
},
{
"from": "gpt",
"value": "package org.marsik.elshelves.backend.test.unit;\n\nimport static org.mockito.Matchers.any;\nimport static org.mockito.Mockito.doReturn;\n\nimport javax.persistence.EntityManager;\nimport jav... | java | chosen |
[
{
"from": "human",
"value": "Add TextUtil class to retrieve QueryResult from Dialogflow\n"
},
{
"from": "gpt",
"value": "package com.google.sps.utils;\n\nimport com.google.cloud.dialogflow.v2.QueryInput;\nimport com.google.cloud.dialogflow.v2.QueryResult;\nimport com.google.cloud.dialogflow.v2.S... | java | chosen |
[
{
"from": "human",
"value": "Create class to handle temperature conversions.\n"
},
{
"from": "gpt",
"value": "package com.jshoresdevelopment.conversioncalculator;\n\nimport java.text.DecimalFormat;\n\npublic class TemperatureConversions {\n private static DecimalFormat decimalFormat;\n\n /... | java | chosen |
[
{
"from": "human",
"value": "Add some tests for DefaultPooledObjectInfo that currently has zero coverage.\n\ngit-svn-id: a66ef3f0e6c00b14098e182847b4bd646263fa09@1538412 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "gpt",
"value": "/*\n * Licensed to the Apache Software Foundation (ASF) ... | java | chosen |
[
{
"from": "human",
"value": "Fix FELIX-3461 - Issue with collected metadata and manipulation metadata on re-manipulation\n\n* Fix the constructor argument shift by not moving the annotations\n* Fix the method name when it is a manipulated method\n* Cleanup the manipulation metadata\n\n(forgot to add files i... | java | chosen |
[
{
"from": "human",
"value": "Add utility method to get temp directory\n"
},
{
"from": "gpt",
"value": "/**\n *\n * Copyright © 2018 Paul Schaub\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 filter to allow changing character encoding of HTTP request/response.\n"
},
{
"from": "gpt",
"value": "/*\n $Id$\n\n Copyright (C) 2009 Virginia Tech.\n All rights reserved.\n\n SEE LICENSE FOR MORE INFORMATION\n\n Author: Middleware\n Email: middleware@... | java | chosen |
[
{
"from": "human",
"value": "Implement common global loot modifier provider"
},
{
"from": "gpt",
"value": "package info.u_team.u_team_core.data;\n\nimport java.io.IOException;\nimport java.util.*;\nimport java.util.function.Supplier;\nimport java.util.stream.Collectors;\n\nimport com.google.gson... | java | chosen |
[
{
"from": "human",
"value": "Add testcases for SaltStackClientUtils class\n"
},
{
"from": "gpt",
"value": "package com.suse.saltstack.netapi.utils;\n\nimport org.junit.Test;\n\nimport java.io.ByteArrayInputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.util.Scanne... | java | chosen |
[
{
"from": "human",
"value": "Add message types for FIXT 1.1\n"
},
{
"from": "gpt",
"value": "package org.jvirtanen.philadelphia.fixt11;\n\n/**\n * Message types for FIXT 1.1.\n */\npublic class FIXT11MsgTypes {\n\n public static final char Heartbeat = '0';\n public static final char Te... | java | chosen |
[
{
"from": "human",
"value": "Remove duplicates from string Java.\n"
},
{
"from": "gpt",
"value": "public class RemoveDuplicatesFromString {\n\tpublic static void main(String[] args) {\n\t\tRemoveDuplicatesFromString rsd = new RemoveDuplicatesFromString();\n\t\tString input = \"Tree Traversal\";\... | java | chosen |
[
{
"from": "human",
"value": "Add marker interface that tools can implement to show that they know if they have content or not\n\nIssue: SAK-29159\n"
},
{
"from": "gpt",
"value": "package org.sakaiproject.entity.api;\n\n/**\n * Services which implement ContentExistsAware declare that they are abl... | java | chosen |
[
{
"from": "human",
"value": "Add class to read ActiveDirectory config from properties"
},
{
"from": "gpt",
"value": "package com.box.l10n.mojito.security;\n\nimport org.springframework.boot.context.properties.ConfigurationProperties;\nimport org.springframework.stereotype.Component;\n\n/**\n * C... | java | chosen |
[
{
"from": "human",
"value": "Add visitor interface for json generator."
},
{
"from": "gpt",
"value": "/*\n * JsonGeneratorVisitor.java\n *\n */\n\npackage de.uni_stuttgart.vis.vowl.owl2vowl.export;\n\nimport de.uni_stuttgart.vis.vowl.owl2vowl.model.BaseEntity;\nimport de.uni_stuttgart.vis.vowl.o... | java | chosen |
[
{
"from": "human",
"value": "Solve Simple Calculate in java\n"
},
{
"from": "gpt",
"value": "import java.util.Scanner;\n\npublic class Main {\n public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n\n double a, b, c, s = 0.0;\n\n while (sc.hasNe... | java | chosen |
[
{
"from": "human",
"value": "Add test for Number160 (hashing seemed suspicious)\n\nSigned-off-by: Nico Rutishauser <a8643e0e26d5ead82e73aae64966ca144f152d8a@hotmail.ch>"
},
{
"from": "gpt",
"value": "package org.hive2hive.core.tomp2p;\n\nimport java.util.Arrays;\n\nimport net.tomp2p.peers.Number... | java | chosen |
[
{
"from": "human",
"value": "Add holder class for status data.\n"
},
{
"from": "gpt",
"value": "package com.uwetrottmann.wpdisplay.model;\n\n/**\n * Holder object for heat pump controller status data.\n */\npublic class StatusData {\n\n /**\n * Maximum length of data supported. Sent statu... | java | chosen |
[
{
"from": "human",
"value": "Add a demo for the image picker."
},
{
"from": "gpt",
"value": "package org.jdesktop.beans.editors;\n\nimport javax.swing.JFrame;\nimport javax.swing.SwingUtilities;\n\n/**\n * A demo program to showcase {@link PaintPicker}.\n * \n * @author Karl Schaefer\n */\n@Supp... | java | chosen |
[
{
"from": "human",
"value": "Add a basic test for NetworkImageView\n\nChange-Id: I07208cba4c207c3378500fb9e37ac6198ee7dc8d\n"
},
{
"from": "gpt",
"value": "package com.android.volley.toolbox;\n\nimport android.test.InstrumentationTestCase;\nimport android.view.ViewGroup.LayoutParams;\n\npublic c... | java | chosen |
[
{
"from": "human",
"value": "Add @Controller specialisation to control the API version.\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 Licens... | java | chosen |
[
{
"from": "human",
"value": "Add statement to problem 20\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 query parameter generation for date strings\n"
},
{
"from": "gpt",
"value": "package org.rundeck.api;\n\nimport junit.framework.Assert;\nimport org.junit.Test;\nimport org.rundeck.api.query.ExecutionQuery;\n\nimport java.util.Arrays;\nimport java.util.Date;\n\n/... | java | chosen |
[
{
"from": "human",
"value": "Test to determne the size of certain objects.\n\n\ngit-svn-id: 5afc437a751a4ff2ced778146f5faadda0b504ab@2249 75d07b2b-3a1a-0410-a2c5-0572b91ccdca\n"
},
{
"from": "gpt",
"value": "package jmetest.util;\n\nimport com.jme.scene.Node;\nimport com.jme.scene.Spatial;\nimpo... | java | chosen |
[
{
"from": "human",
"value": "Fix incompatibility after class rename\n"
},
{
"from": "gpt",
"value": "// Copyright 2000-2017 JetBrains s.r.o.\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may ... | java | chosen |
[
{
"from": "human",
"value": "Add JUnit category for stateful ParDo tests\n"
},
{
"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 additional information\n... | java | chosen |
[
{
"from": "human",
"value": "Add base class useful for writing tests with Arez components\n"
},
{
"from": "gpt",
"value": "package org.realityforge.replicant.client;\n\nimport arez.Arez;\nimport arez.ArezTestUtil;\nimport arez.Observer;\nimport arez.ObserverError;\nimport java.util.ArrayList;\ni... | java | chosen |
[
{
"from": "human",
"value": "Create integration type rq entity was added\n"
},
{
"from": "gpt",
"value": "package com.epam.ta.reportportal.ws.model.integration;\n\nimport com.fasterxml.jackson.annotation.JsonInclude;\nimport com.fasterxml.jackson.annotation.JsonProperty;\n\nimport java.io.Serial... | java | chosen |
[
{
"from": "human",
"value": "Add simple state machine test.\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2015 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 * Yo... | java | chosen |
[
{
"from": "human",
"value": "Test coverage direct for set / failed futures\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2012-2014 Institut National des Sciences Appliquées de Lyon (INSA-Lyon)\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this ... | java | chosen |
[
{
"from": "human",
"value": "Add an enum to represent different storage options for magic properties\n"
},
{
"from": "gpt",
"value": "package com.elmakers.mine.bukkit.api.magic;\n\n/**\n * Specifies different types of property holders.\n *\n * Properties in Magic can be configured to save in one... | java | chosen |
[
{
"from": "human",
"value": "Create a wrapper class for EventBus for handling subscriber exceptions\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2015 Ryan Gilera.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance wit... | java | chosen |
[
{
"from": "human",
"value": "Add native object for the hash map which can be accessed by index.\n"
},
{
"from": "gpt",
"value": "/*******************************************************************************\n * Copyright (c) 2004 Actuate Corporation.\n * All rights reserved. This program and ... | java | chosen |
[
{
"from": "human",
"value": "Add trust manager that accepts any server certificate\n"
},
{
"from": "gpt",
"value": "// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\npackage com.yahoo.security.tls;\n\nimport javax.net.ssl.SSLEngine;... | java | chosen |
[
{
"from": "human",
"value": "Create test infrastructure for WebDavMessage\n"
},
{
"from": "gpt",
"value": "package com.fsck.k9.mail.store.webdav;\n\nimport com.fsck.k9.mail.MessagingException;\n\nimport org.junit.Before;\nimport org.junit.Test;\nimport org.junit.runner.RunWith;\nimport org.mocki... | java | chosen |
[
{
"from": "human",
"value": "Test executor with Long task overrider"
},
{
"from": "gpt",
"value": "package org.genericsystem.cv.utils;\n\nimport java.util.concurrent.Executors;\nimport java.util.concurrent.ScheduledExecutorService;\nimport java.util.concurrent.TimeUnit;\n\nimport org.testng.anno... | java | chosen |
[
{
"from": "human",
"value": "Add a simple string user type\n"
},
{
"from": "gpt",
"value": "package com.voodoodyne.postguice.usertype;\n\nimport com.google.common.base.Objects;\nimport org.hibernate.HibernateException;\nimport org.hibernate.engine.spi.SharedSessionContractImplementor;\nimport or... | java | chosen |
[
{
"from": "human",
"value": "Customize Sentry client to send x-forwarded for ip address as user address instead of ip address of load balancer\n"
},
{
"from": "gpt",
"value": "package org.cbioportal.logging;\n\nimport io.sentry.*;\nimport io.sentry.dsn.Dsn;\nimport io.sentry.event.helper.Context... | java | chosen |
[
{
"from": "human",
"value": "Add file stub for socket listener"
},
{
"from": "gpt",
"value": "package edu.govschool.govchat.socket;\n\n/**\n * Listener interface for sockets used in GovChat.\n * Based on Oracle documentation. While our two sockets will be inheriting from\n * <code>GCGenericSocke... | java | chosen |
[
{
"from": "human",
"value": "Add javadoc to the java 8 functions package\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2016-2019 Talsma ICT\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": "system",
"value": "[lite] Update benchmark app to try to load flex first if available to support the case when we build the flex version.\n\nPiperOrigin-RevId: 370787699\nChange-Id: I6fb52db0c50a3a2fafb7d698960f6ae57cdce8df\n"
},
{
"from": "human",
"value": "/* Copyright 2018 The Tens... | java | chosen |
[
{
"from": "human",
"value": "Add test for non required constructor injection\n\ngit-svn-id: 4741f78aa2d3279ddd0a34c053c42ca3ce19451b@1601 124fc276-1b20-0410-8d16-dc08e6bff5e9\n"
},
{
"from": "gpt",
"value": "package org.simpleframework.xml.core;\r\n\r\nimport org.simpleframework.xml.Attribute;\r... | java | chosen |
[
{
"from": "human",
"value": "Add `@NonNullApi` to core package `org.gradle.initialization.buildsrc`\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2020 the original author or authors.\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": "Create Mock application for test Spring environments\n"
},
{
"from": "gpt",
"value": "/*\n * MockApplication.java\n *\n * Copyright (C) 2018 [ A Legge Up ]\n *\n * This software may be modified and distributed under the terms\n * of the MIT license. See the LICENSE ... | java | chosen |
[
{
"from": "human",
"value": "Add test for new clear image method."
},
{
"from": "gpt",
"value": "package org.jdesktop.swingx.graphics;\n\nimport static org.hamcrest.CoreMatchers.is;\nimport static org.junit.Assert.assertThat;\n\nimport java.awt.image.BufferedImage;\n\nimport org.junit.Test;\n\np... | java | chosen |
[
{
"from": "human",
"value": "Add a unit test for the LegacyService\n\nSo far, it only tests that the recommended way for ImageJ 1.x plugins\nto obtain the current legacy service or ImageJ2 context works as\nadvertised.\n\nAs we do not allow headless mode to be handled with the LegacyService\nyet, we have to... | java | chosen |
[
{
"from": "system",
"value": "Return empty map if Json metadatafile does not exist\n"
},
{
"from": "human",
"value": "package org.rundeck.storage.data.file;\n\nimport com.fasterxml.jackson.databind.ObjectMapper;\n\nimport java.io.File;\nimport java.io.IOException;\nimport java.util.Map;\n\n/**\n... | java | chosen |
[
{
"from": "human",
"value": "[MJAVADOC-384] Allow whitespace in javadoc exclude list\nmissed a class\n\ngit-svn-id: 6038db50b076e48c7926ed71fd94f8e91be2fbc9@1747275 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "gpt",
"value": "package com.foo.bar.internal;\n\n/*\n * Licensed to the Apach... | java | chosen |
[
{
"from": "human",
"value": "Add a failing test to demonstrate an index-out-of-bounds issue.\n"
},
{
"from": "gpt",
"value": "package com.eatthepath.jvptree.util;\n\nimport com.eatthepath.jvptree.DistanceFunction;\nimport com.eatthepath.jvptree.IntegerDistanceFunction;\nimport org.junit.jupiter.... | java | chosen |
[
{
"from": "human",
"value": "Test for Miguel's sentences added\n"
},
{
"from": "gpt",
"value": "package com.stratio.sdh.meta.structures;\n\npublic class BooleanProperty extends ValueProperty {\n\n private boolean bool;\n\n public BooleanProperty(boolean bool) {\n this.type = TYPE_BO... | java | chosen |
[
{
"from": "human",
"value": "Test case for account state detection in AD\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 additional information regarding copyright ownership.\n ... | java | chosen |
[
{
"from": "human",
"value": "Add a domain annotation for stereotyping stateful beans that have a lifecycle related to requests"
},
{
"from": "gpt",
"value": "/**\n * Copyright (c) 2012 RedEngine Ltd, http://www.redengine.co.nz. All rights reserved.\n *\n * This program is licensed to you under t... | java | chosen |
[
{
"from": "human",
"value": "Add API request for photo upload\n"
},
{
"from": "gpt",
"value": "package de.fu_berlin.cdv.chasingpictures.api;\n\nimport android.content.Context;\n\nimport org.springframework.core.io.FileSystemResource;\nimport org.springframework.http.HttpEntity;\nimport org.sprin... | java | chosen |
[
{
"from": "human",
"value": "Add class for finding common structures in throws comments\n"
},
{
"from": "gpt",
"value": "package edu.iastate.cs.design.spec.analyze;\n\nimport org.eclipse.jdt.core.dom.MethodDeclaration;\n\nimport java.util.List;\n\npublic class ExceptionDocStructureAnalysis imple... | java | chosen |
[
{
"from": "human",
"value": "Add a demonstration of type intersections\n\nAnd another peril of recursive generics.\n"
},
{
"from": "gpt",
"value": "\npackage net.restlesscoder.sandbox;\n\nimport java.util.List;\nimport java.util.Set;\n\nimport net.imglib2.type.NativeType;\nimport net.imglib2.typ... | java | chosen |
[
{
"from": "human",
"value": "Add integration tests to ensure manual scheduling works as expected\n"
},
{
"from": "gpt",
"value": "package arez.integration.observed;\n\nimport arez.Arez;\nimport arez.Flags;\nimport arez.Observer;\nimport arez.annotations.ArezComponent;\nimport arez.annotations.Ob... | java | chosen |
[
{
"from": "human",
"value": "[ELY-365] Add support for algorithm-aware authentication evidence\n"
},
{
"from": "gpt",
"value": "/*\n * JBoss, Home of Professional Open Source.\n * Copyright 2015 Red Hat, Inc., and individual contributors\n * as indicated by the @author tags.\n *\n * Licensed und... | java | chosen |
[
{
"from": "human",
"value": "Add simple cluster lifecycle test\n"
},
{
"from": "gpt",
"value": "package com.basho.riak.client.api;\n\n\nimport com.basho.riak.client.api.commands.kv.StoreValue;\nimport com.basho.riak.client.core.RiakCluster;\nimport com.basho.riak.client.core.RiakFuture;\nimport ... | java | chosen |
[
{
"from": "human",
"value": "Add a test for the compile-js tool\n"
},
{
"from": "gpt",
"value": "package com.redhat.ceylon.compiler.js;\n\nimport java.util.Arrays;\nimport java.util.List;\n\nimport junit.framework.Assert;\n\nimport org.junit.Test;\n\nimport com.redhat.ceylon.common.tool.Argument... | java | chosen |
[
{
"from": "human",
"value": "Add a new test for Compatibility package\n\nThis test should pass in any supported Android version.\n"
},
{
"from": "gpt",
"value": "package cgeo.geocaching.test;\n\nimport cgeo.geocaching.cgeo;\nimport cgeo.geocaching.compatibility.Compatibility;\n\nimport android.t... | java | chosen |
[
{
"from": "human",
"value": "Add a general sampling for RealIndex or IntegerIndex sets\n"
},
{
"from": "gpt",
"value": "/*\n * Zorbage: an algebraic data hierarchy for use in numeric processing.\n *\n * Copyright (C) 2016-2017 Barry DeZonia\n * \n * Redistribution and use in source and binary fo... | java | chosen |
[
{
"from": "human",
"value": "ONOS-2729: Define an interface to query about MPLS capability\n\nChange-Id: I509720b0c9ee8a9b652aa966ec19c77aacac8573\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2015 Open Networking Laboratory\n *\n * Licensed under the Apache License, Version 2.0 (the \"Licen... | java | chosen |
[
{
"from": "human",
"value": "Add model for Realm get request\n"
},
{
"from": "gpt",
"value": "package mansonheart.com.database;\n\nimport io.realm.RealmQuery;\nimport rx.functions.Func1;\nimport rx.subjects.BehaviorSubject;\n\n/**\n * Created by Zherebtsov Alexandr on 02.01.2016.\n */\npublic cl... | java | chosen |
[
{
"from": "human",
"value": "Add java solution for 55. Jump Game\n\n55. Jump Game: https://leetcode.com/problems/jump-game/"
},
{
"from": "gpt",
"value": "package leetcode.jump_game;\n\npublic class Solution {\n public boolean canJump(int[] A) {\n if(A == null || A.length == 0) return ... | java | chosen |
[
{
"from": "human",
"value": "Add java solution for 154. Find Minimum in Rotated Sorted Array II\n\n154. Find Minimum in Rotated Sorted Array II: https://leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii/"
},
{
"from": "gpt",
"value": "package leetcode.find_minimum_in_rotated_sorted_a... | java | chosen |
[
{
"from": "human",
"value": "PDFBOX-4075: Split highlight, underline, strikeout and squiggly from text markup annotation\n\ngit-svn-id: c3ad59981690829a43dc34c293c4e2cd04bcd994@1821760 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2018 The Apache Software... | java | chosen |
[
{
"from": "human",
"value": "Add unit test for RouletteWheelSampler\n"
},
{
"from": "gpt",
"value": "package com.github.rnowling.bps.datagenerator.algorithms.samplers;\n\nimport static org.junit.Assert.assertThat;\nimport static org.junit.matchers.JUnitMatchers.*;\n\nimport java.util.Map;\n\nimp... | java | chosen |
[
{
"from": "human",
"value": "Add the oacs.issues test package for adding tests specific to an issue (and its fix, if any).\n\n\ngit-svn-id: af8b92d546565e7258615209d6223c117422c4d5@608640 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "gpt",
"value": "/*\n * Licensed to the Apache Software... | java | chosen |
[
{
"from": "human",
"value": "Create a thread by implementing Runnable\n\nhttp://ideone.com/b8BVcF"
},
{
"from": "gpt",
"value": "// Create a thread by implementing Runnable.\n\nclass MyThread implements Runnable {\n\tint count;\n\tString thrdName;\n\t\n\tMyThread(String name) {\n\t\tcount = 0;\n... | java | chosen |
[
{
"from": "human",
"value": "Test suite for thread safety tests\n\n\nFormer-commit-id: 414f8d96ad8c8cce3179cbe4ccb5b8c8b79c90bd"
},
{
"from": "gpt",
"value": "/*******************************************************************************\n * Copyright (c) 1998, 2007 Oracle. All rights reserved... | java | chosen |
[
{
"from": "human",
"value": "[SYNCOPE-6] Test cases added to selenium profile\n\ngit-svn-id: 51e9c0635e05060c2a7639df764e0b3ebb09013f@1298457 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "gpt",
"value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contri... | java | chosen |
[
{
"from": "human",
"value": "Add service that returns information about the user (for testing)\n"
},
{
"from": "gpt",
"value": "package com.royalrangers.controller;\n\nimport com.royalrangers.security.JwtUser;\nimport org.springframework.security.access.prepost.PreAuthorize;\nimport org.springfr... | java | chosen |
[
{
"from": "human",
"value": "Put back class removed by mistake\n"
},
{
"from": "gpt",
"value": "/*\n * See the NOTICE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modify it\n * under th... | java | chosen |
[
{
"from": "human",
"value": "Add security context resolver for section-session direct reference.\n"
},
{
"from": "gpt",
"value": "package org.slc.sli.api.security.context;\n\nimport org.slc.sli.api.config.EntityDefinitionStore;\nimport org.slc.sli.api.config.EntityNames;\nimport org.slc.sli.doma... | java | chosen |
[
{
"from": "human",
"value": "Add the Save and Delete methods to the Rule Service\n"
},
{
"from": "gpt",
"value": "package cec.service;\r\n\r\nimport java.util.UUID;\r\n\r\nimport cec.model.FolderFactory;\r\nimport cec.model.Rule;\r\nimport cec.model.RuleBuilder;\r\nimport cec.model.RuleSet;\r\ni... | java | chosen |
[
{
"from": "human",
"value": "Copy List With Random Pointer\n"
},
{
"from": "gpt",
"value": "\n/**\n*Question Description:\n*\n*A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null.\n*\n*Return a deep copy of the list.\... | java | chosen |
[
{
"from": "human",
"value": "Add jcstress test which reveals issue with compacting during removal from SingleWriterHashSet\n"
},
{
"from": "gpt",
"value": "package org.jctools.sets;\n\nimport org.openjdk.jcstress.annotations.Actor;\nimport org.openjdk.jcstress.annotations.JCStressTest;\nimport o... | java | chosen |
[
{
"from": "human",
"value": "Solve problem 153 (it's not log N yet)\n"
},
{
"from": "gpt",
"value": "package leetcode;\n\n/**\n * https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/\n */\npublic class Problem153 {\n public int findMin(int[] nums) {\n int min = nums[0];\... | java | chosen |
[
{
"from": "human",
"value": "Add a skeleton for problem 200\n"
},
{
"from": "gpt",
"value": "package leetcode;\n\n/**\n * https://leetcode.com/problems/number-of-islands/\n */\npublic class Problem200 {\n public int numIslands(char[][] grid) {\n return 0;\n }\n\n public static vo... | java | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.