conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "human",
"value": "Add probe for finding out where URLClassLoaders are created\n"
},
{
"from": "gpt",
"value": "import java.util.Map;\nimport java.util.concurrent.atomic.AtomicInteger;\n\nimport com.sun.btrace.annotations.BTrace;\nimport com.sun.btrace.annotations.OnMethod;\nimport com... | java | chosen |
[
{
"from": "human",
"value": "Support for sending custom headers such as request time.\n"
},
{
"from": "gpt",
"value": "package outland.feature.server.resources;\n\nimport javax.ws.rs.core.Response;\n\npublic class Headers {\n\n public Headers() {\n }\n\n Response.ResponseBuilder enrich(Respon... | java | chosen |
[
{
"from": "human",
"value": "Change copyright in Apache 2 license to 2013\ndocumented\nimaging java classes added\n"
},
{
"from": "gpt",
"value": "/**\n * Copyright © 2011-2013 EMBL - European Bioinformatics Institute\n * \n * Licensed under the Apache License, Version 2.0 (the \"License\"); \n ... | java | chosen |
[
{
"from": "human",
"value": "Define action interface for UI\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 * regarding... | java | chosen |
[
{
"from": "human",
"value": "Add min-max implementation of View interface.\n"
},
{
"from": "gpt",
"value": "package net.imagej.ops.viewOp;\n\nimport org.scijava.ItemIO;\nimport org.scijava.plugin.Parameter;\nimport org.scijava.plugin.Plugin;\n\nimport net.imagej.ops.view.ViewOps;\nimport net.ima... | java | chosen |
[
{
"from": "human",
"value": "Test for previously committed strategy\n"
},
{
"from": "gpt",
"value": "package edu.northwestern.bioinformatics.studycalendar.utils.hibernate;\n\nimport edu.northwestern.bioinformatics.studycalendar.testing.StudyCalendarTestCase;\nimport edu.northwestern.bioinformati... | java | chosen |
[
{
"from": "human",
"value": "Add tests for `Map.Entry` `hashCode` contract verification\n"
},
{
"from": "gpt",
"value": "package nl.jqno.equalsverifier.integration.extended_contract;\n\nimport nl.jqno.equalsverifier.EqualsVerifier;\nimport nl.jqno.equalsverifier.internal.testhelpers.ExpectedExce... | java | chosen |
[
{
"from": "human",
"value": "Add a simple message printer protocol\n\nIt prints out the received message, but does not create a response\n"
},
{
"from": "gpt",
"value": "package communication.protocols;\n\nimport communication.messages.Message;\n\npublic class MessagePrinterProtocol implements P... | java | chosen |
[
{
"from": "system",
"value": "Add todo on verifying the version number on lock\n"
},
{
"from": "human",
"value": "package org.hibernate.ogm.dialect.infinispan;\n\nimport java.io.Serializable;\n\nimport org.infinispan.AdvancedCache;\n\nimport org.hibernate.EntityMode;\nimport org.hibernate.JDBCEx... | java | chosen |
[
{
"from": "human",
"value": "Add a common row value class for PQS\n"
},
{
"from": "gpt",
"value": "package sqlancer.common.schema;\n\nimport java.util.List;\nimport java.util.Map;\nimport java.util.stream.Collectors;\n\npublic abstract class AbstractRowValue<T extends AbstractTables<?, C>, C ext... | java | chosen |
[
{
"from": "human",
"value": "Add movement method to directly swap two unhappy 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 except in complian... | java | chosen |
[
{
"from": "human",
"value": "Add model for CPU usage.\n"
},
{
"from": "gpt",
"value": "package datamodel;\n\nimport java.util.Date;\nimport java.util.List;\n\npublic class CpuUsageResults {\n private long pid;\n private Date startTime;\n private List<String> cpuPerSecond;\n\n public ... | java | chosen |
[
{
"from": "human",
"value": "Add java solution for 200. Number of Islands\n\n200. Number of Islands: https://leetcode.com/problems/number-of-islands/"
},
{
"from": "gpt",
"value": "package leetcode.number_of_islands;\n\nimport java.util.LinkedList;\nimport java.util.Queue;\n\npublic class Soluti... | java | chosen |
[
{
"from": "system",
"value": "Rename odometer to one word\n"
},
{
"from": "human",
"value": "/**\n * \n */\npackage org.traccar;\n\nimport org.traccar.helper.DistanceCalculator;\nimport org.traccar.helper.Log;\nimport org.traccar.model.Position;\n\n/**\n * <p>\n * ODO Meter handler\n * </p>\n *... | java | chosen |
[
{
"from": "human",
"value": "Add enclosure model for grabbing episode url\n"
},
{
"from": "gpt",
"value": "package me.tdjones.main.model;\n\nimport javax.xml.bind.annotation.XmlAttribute;\n\n/**\n * Created by Tyler on 7/3/2016.\n */\npublic class Enclosure {\n @XmlAttribute\n private Stri... | java | chosen |
[
{
"from": "human",
"value": "Add a Resources class of REST\n"
},
{
"from": "gpt",
"value": "package org.fedorahosted.flies.core.action;\n\nimport javax.persistence.EntityManager;\nimport javax.ws.rs.GET;\nimport javax.ws.rs.Path;\nimport javax.ws.rs.PathParam;\nimport javax.ws.rs.ProduceMime;\n\... | java | chosen |
[
{
"from": "human",
"value": "Write a skeleton for problem 227\n"
},
{
"from": "gpt",
"value": "package leetcode;\n\nimport java.util.Stack;\n\n/**\n * https://leetcode.com/problems/basic-calculator-ii/\n */\npublic class Problem227 {\n public int calculate(String s) {\n String str = s.... | java | chosen |
[
{
"from": "human",
"value": "Add private access harness for FileSystemWorker\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 ... | java | chosen |
[
{
"from": "human",
"value": "Add circuit breaker motor module\n\nCloses #49\n"
},
{
"from": "gpt",
"value": "package com.thegongoliers.output.motors;\n\nimport com.thegongoliers.input.current.HighCurrentSensor;\nimport com.thegongoliers.input.time.Clock;\nimport com.thegongoliers.input.time.Robo... | java | chosen |
[
{
"from": "human",
"value": "Add new class for the metrics."
},
{
"from": "gpt",
"value": "/*\n * OntologyMetric.java\n *\n */\n\npackage de.uni_stuttgart.vis.vowl.owl2vowl.model;\n\n/**\n *\n */\npublic class OntologyMetric {\n\tprivate int classCount;\n\tprivate int objectPropertyCount;\n\tpri... | java | chosen |
[
{
"from": "human",
"value": "Add java solution for 63. Unique Paths II\n\n63. Unique Paths II: https://leetcode.com/problems/unique-paths-ii/"
},
{
"from": "gpt",
"value": "package leetcode.unique_paths_ii;\n\npublic class Solution {\n public int uniquePathsWithObstacles(int[][] obstacleGrid)... | java | chosen |
[
{
"from": "human",
"value": "Create some tests for the `FailureBus.Builder`.\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2017, TeamDev Ltd. All rights reserved.\n *\n * Redistribution and use in source and/or binary forms, with or without\n * modification, must retain the above copyright n... | java | chosen |
[
{
"from": "human",
"value": "Create a task to download top posts JSON\n"
},
{
"from": "gpt",
"value": "package ar.edu.unc.famaf.redditreader.backend;\n\nimport android.os.AsyncTask;\n\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.net.HttpURLConnection;\nimport java.net.U... | java | chosen |
[
{
"from": "human",
"value": "Introduce a base class for sessions\n"
},
{
"from": "gpt",
"value": "package org.realityforge.replicant.client.transport;\n\nimport javax.annotation.Nonnull;\n\n/**\n * Abstract representation of client session.\n * Simply tracks the session identifier and job sequen... | java | chosen |
[
{
"from": "human",
"value": "Add helper class for test bundles\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.container.plugin.mojo;\n\nimport org.apache.maven.project.MavenProje... | java | chosen |
[
{
"from": "human",
"value": "[tests] Add test for a program with very fast failure rates.\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 additio... | java | chosen |
[
{
"from": "human",
"value": "Add tests for file case checker rule\n"
},
{
"from": "gpt",
"value": "package com.cflint;\n\nimport static org.junit.Assert.assertEquals;\n\nimport java.io.IOException;\nimport java.util.Collection;\nimport java.util.List;\nimport java.util.Map;\n\nimport org.junit.B... | java | chosen |
[
{
"from": "human",
"value": "Add test to see if ContentProvider is registered\n"
},
{
"from": "gpt",
"value": "package com.example.android.sunshine.app.data;\n\nimport android.content.ComponentName;\nimport android.content.pm.PackageManager;\nimport android.content.pm.ProviderInfo;\nimport andro... | java | chosen |
[
{
"from": "human",
"value": "Add a quick example on how to forward requests\n"
},
{
"from": "gpt",
"value": "/*\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\n * FOR A PARTICUL... | java | chosen |
[
{
"from": "human",
"value": "Integrate the Persistent Shortcuts app into Taskbar (2 of 2)\n"
},
{
"from": "gpt",
"value": "/* Copyright 2020 Braden Farmer\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 documentation for o.g.r.p.meta package\n"
},
{
"from": "gpt",
"value": "/**\n * Meta-annotations for describing recommender parameters.\n * <p>\n * RefLens makes heavy use of annotations to describe parameters to allow Guice\n * to be used to provide parameter va... | java | chosen |
[
{
"from": "human",
"value": "Add tcp client for testing\n"
},
{
"from": "gpt",
"value": "package jmemproxy.test;\n\nimport java.io.BufferedReader;\nimport java.io.DataOutputStream;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.net.Socket;\nimport java.net.UnknownHo... | java | chosen |
[
{
"from": "human",
"value": "Add initial testing for LEDIS\n"
},
{
"from": "gpt",
"value": "package co.phoenixlab.common.lang.io;\n\nimport org.junit.*;\n\nimport java.io.ByteArrayInputStream;\nimport java.io.DataInputStream;\n\nimport static org.junit.Assert.*;\n\npublic class LittleEndianDataI... | java | chosen |
[
{
"from": "human",
"value": "Add UTF-8 response filter for WebSphere\n"
},
{
"from": "gpt",
"value": "package jaxrs;\n\nimport javax.ws.rs.container.ContainerRequestContext;\nimport javax.ws.rs.container.ContainerResponseContext;\nimport javax.ws.rs.container.ContainerResponseFilter;\nimport jav... | java | chosen |
[
{
"from": "human",
"value": "Add tests for AwesomeValidation's constructor\n"
},
{
"from": "gpt",
"value": "package com.basgeekball.awesomevalidation;\n\nimport com.basgeekball.awesomevalidation.validators.BasicValidator;\nimport com.basgeekball.awesomevalidation.validators.ColorationValidator;\... | java | chosen |
[
{
"from": "human",
"value": "Use wait() and notify() for thread communication\n\nhttp://ideone.com/yOMIBR"
},
{
"from": "gpt",
"value": "// Use wait() and notify() to create a ticking clock.\n\nclass TickTock {\n\t\n\tsynchronized void tick(boolean running) {\n\t\tif(!running) { // stop the cloc... | java | chosen |
[
{
"from": "human",
"value": "Add test case for shift operator."
},
{
"from": "gpt",
"value": "package study.hard.javalib.nativelib;\n\nimport static org.junit.Assert.*;\n\nimport org.junit.Test;\n\n/**\n * A test case for shift operator.\n * @author iandmyhand@gmail.com\n */\npublic class ShiftO... | java | chosen |
[
{
"from": "human",
"value": "65: Implement simple security with local logins \n\nTask-Url: http://github.com/tgradl/colreg/issues/issue/65"
},
{
"from": "gpt",
"value": "package eu.dariah.de.colreg.security;\n\nimport javax.servlet.http.HttpServletRequest;\nimport javax.servlet.http.HttpServletR... | java | chosen |
[
{
"from": "human",
"value": "Create auto settings dash object."
},
{
"from": "gpt",
"value": "/**\r\n * \r\n */\r\npackage org.usfirst.frc.team2339.Barracuda.smartdashboard;\r\n\r\nimport edu.wpi.first.wpilibj.Sendable;\r\nimport edu.wpi.first.wpilibj.tables.ITable;\r\n\r\n/**\r\n * @author Robo... | java | chosen |
[
{
"from": "human",
"value": "Split out static String to its own class\n\ngit-svn-id: 03a8048b5ee8463be5048a3801110fb50f378627@10052 d0ab736e-dc22-4aeb-8dc9-08def0aa14fd\n"
},
{
"from": "gpt",
"value": "package org.micromanager.intelligentacquisition;\n\n/**\n * Strings needed in various classes ... | java | chosen |
[
{
"from": "human",
"value": "Rework Play Music chain to improve reliability, eliminate clicks and pops on abrupt cutoff. Part 1\n"
},
{
"from": "gpt",
"value": "/**\n * Aeronica's mxTune MOD\n * Copyright {2016} Paul Boese a.k.a. Aeronica\n *\n * Licensed under the Apache License, Version 2.0 (t... | java | chosen |
[
{
"from": "human",
"value": "Add model for transparent transformation of collections to List\n"
},
{
"from": "gpt",
"value": "package ru.ydn.wicket.wicketorientdb.model;\n\nimport java.util.ArrayList;\nimport java.util.Collection;\nimport java.util.List;\n\nimport org.apache.wicket.WicketRuntime... | java | chosen |
[
{
"from": "human",
"value": "Print current (actual) date in form as \"dd MM yyyy\"\n"
},
{
"from": "gpt",
"value": "package com.javarush.test.level05.lesson12.home04;\n\n\n\n/* Вывести на экран сегодняшнюю дату\nВывести на экран текущую дату в аналогичном виде \"21 02 2014\".\n*/\n// ресурс http... | java | chosen |
[
{
"from": "human",
"value": "Add utility combine method for ConfigurationAwareModule\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 Lic... | java | chosen |
[
{
"from": "human",
"value": "Add /motd command to allow user to set motd without restarting/stopping server\n"
},
{
"from": "gpt",
"value": "package net.md_5.bungee.command;\n\nimport net.md_5.bungee.BungeeCord;\nimport net.md_5.bungee.Permission;\n\n/**\n * Command to set a temp copy of the mot... | java | chosen |
[
{
"from": "human",
"value": "Implement a class visitor for parsing annotation classes\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2015 Michael Rozumyanskiy\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the ... | java | chosen |
[
{
"from": "human",
"value": "Add a page that always throws an exception."
},
{
"from": "gpt",
"value": "package com.webkreator.qlue.example.pages;\r\n\r\nimport com.webkreator.qlue.Page;\r\nimport com.webkreator.qlue.view.View;\r\n\r\npublic class exceptionTest extends Page {\r\n\t\r\n\t@Overrid... | java | chosen |
[
{
"from": "human",
"value": "Add stub for handling post install"
},
{
"from": "gpt",
"value": "package com.boundary.plugin.sdk;\n\n/**\n * Stub class for handling post install configuration\n *\n */\npublic class PostInstall {\n\n\t/**\n\t * Default constructor\n\t */\n\tpublic PostInstall() {\n... | java | chosen |
[
{
"from": "human",
"value": "Create a new Alert Dialog that allows users to decide whether they would like their tasks to be transferred over to the new directory\n"
},
{
"from": "gpt",
"value": "package seedu.task.alerts;\n\nimport java.util.Optional;\n\nimport javafx.scene.control.Alert;\nimpo... | java | chosen |
[
{
"from": "human",
"value": "Add test case for quoteAtoms().\n\n"
},
{
"from": "gpt",
"value": "package com.fsck.k9.helper;\r\n\r\nimport junit.framework.TestCase;\r\n\r\npublic class Utility_quoteAtoms extends TestCase\r\n{\r\n public void testNoQuote() {\r\n // Alpha\r\n noQuo... | java | chosen |
[
{
"from": "human",
"value": "Add unfinished xbox controller map\n"
},
{
"from": "gpt",
"value": "package org.team2471.frc.lib.io.maps;\n\nimport java.util.function.IntSupplier;\n\n// TODO: update values\npublic final class XboxMap {\n public static final class Buttons {\n public static final... | java | chosen |
[
{
"from": "human",
"value": "Add gaussian blur filter class."
},
{
"from": "gpt",
"value": "package pl.vgtworld.imagedraw.filters.gaussianblur;\n\nimport pl.vgtworld.imagedraw.ImageDrawEntity;\nimport pl.vgtworld.imagedraw.filters.ImageDrawFilter;\nimport pl.vgtworld.imagedraw.filters.matrix.Mat... | java | chosen |
[
{
"from": "human",
"value": "Revert \"merge change from github\"\n\nThis reverts commit f8821f8d9f1cbf06052649eb239c7750b5c03d82.\n"
},
{
"from": "gpt",
"value": "/*\r\n * Copyright(c) - CdC 2015, Tous droits réservés.\r\n * -----------------------------------------------------------\r\n * Centr... | java | chosen |
[
{
"from": "human",
"value": "Add unit tests for org.rapidpm.frp.model.Pair\nThese tests were written using Diffblue Cover.\n"
},
{
"from": "gpt",
"value": "package junit.org.rapidpm.frp.model;\n\nimport static org.junit.jupiter.api.Assertions.assertEquals;\nimport static org.junit.jupiter.api.As... | java | chosen |
[
{
"from": "human",
"value": "Add Java Stdin and Stdout 2 solution\n"
},
{
"from": "gpt",
"value": "import java.util.Scanner;\n\n\npublic class JavaStdinAndStdout2 {\n\n public static void main(String[] args) {\n\n Scanner scanner = new Scanner(System.in);\n\n int integerInput = ... | java | chosen |
[
{
"from": "human",
"value": "Create new package for 'aggregate' type JPA entities\n"
},
{
"from": "gpt",
"value": "/*\n *\n * Copyright 2019 Netflix, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with th... | java | chosen |
[
{
"from": "human",
"value": "Add solution for \"Pascal's Triangle\"\n"
},
{
"from": "gpt",
"value": "package com.ggcoke.oj.leetcode;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\n/**\n * @author Wang Huisong <ggcoke@foxmail.com>\n */\npublic class PascalsTriangle {\n\n public stat... | java | chosen |
[
{
"from": "human",
"value": "Add simple unit test for table locking\n\nVerifies #128 is fixed\n"
},
{
"from": "gpt",
"value": "/**\n * Copyright (c) 2013, impossibl.com\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permi... | java | chosen |
[
{
"from": "human",
"value": "Implement finding closest points to a point in a graph (adhip's question\nto me)"
},
{
"from": "gpt",
"value": "package com.misc.coding.problems;\n\npublic class ClosestPoints {\n\n\t/**\n\t * Given the xy axis, We have the origin (0,0) and multiple points in the\n\t... | java | chosen |
[
{
"from": "human",
"value": "Add test for FileHelper class\n"
},
{
"from": "gpt",
"value": "import org.junit.Test;\n\nimport java.io.BufferedReader;\n\nimport static org.junit.Assert.assertNotNull;\nimport static org.junit.Assert.assertNull;\n\n/**\n * Created by blockost on 29/04/17.\n */\npubl... | java | chosen |
[
{
"from": "human",
"value": "Add test case for encryption factory\n"
},
{
"from": "gpt",
"value": "package com.orientechnologies.orient.core.encryption.impl;\n\nimport com.orientechnologies.orient.core.encryption.OEncryption;\nimport com.orientechnologies.orient.core.encryption.OEncryptionFactor... | java | chosen |
[
{
"from": "human",
"value": "Add abstract base class for REST endpoints\n"
},
{
"from": "gpt",
"value": "package cz.muni.fi.pv243.rest;\n\nimport java.net.URI;\nimport java.util.List;\n\nimport javax.inject.Inject;\nimport javax.validation.Valid;\nimport javax.ws.rs.Consumes;\nimport javax.ws.rs... | java | chosen |
[
{
"from": "human",
"value": "Create AbstractDetailsPane with common button panel\n\nOPEN - task 64: Create CRUD functionality for Brand entity \nhttp://github.com/DevOpsDistilled/OpERP/issues/issue/64"
},
{
"from": "gpt",
"value": "package devopsdistilled.operp.client.abstracts;\n\nimport java.a... | java | chosen |
[
{
"from": "human",
"value": "Add java solution for 237. Delete Node in a Linked List\n\n237. Delete Node in a Linked List: https://leetcode.com/problems/delete-node-in-a-linked-list/"
},
{
"from": "gpt",
"value": "package leetcode.delete_node_in_a_linked_list;\n\nimport common.ListNode;\n\npubli... | java | chosen |
[
{
"from": "human",
"value": "Add security avoiding '-1 vehicles' waiting at a crossroad\n"
},
{
"from": "gpt",
"value": "package fr.unice.polytech.al.trafficlight.crossroad;\n\n/**\n * Created by nathael on 20/01/17.\n */\npublic class NoVehiclesToRemove {\n}\n"
}
] | java | chosen |
[
{
"from": "human",
"value": "Add a test for the license header reatchet behavior in the maven plugin."
},
{
"from": "gpt",
"value": "/*\n * Copyright 2020 DiffPlug\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with th... | java | chosen |
[
{
"from": "human",
"value": "Add file missing from last commit."
},
{
"from": "gpt",
"value": "package org.mutabilitydetector.benchmarks.mutabletofield.jdktypefields;\n\npublic final class HasAStringField {\n private final String stringField;\n\n public HasAStringField(String stringField) ... | java | chosen |
[
{
"from": "human",
"value": "Test hinzugefügt für den EUREKA Registration-Service\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (c) 2016. Joshua Braun\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with ... | java | chosen |
[
{
"from": "human",
"value": "Add a ClassRunner for Command plugins\n\nMigrated from the CommandJavaRunner of scijava/scripting-java.\n"
},
{
"from": "gpt",
"value": "/*\n * #%L\n * SciJava Common shared library for SciJava software.\n * %%\n * Copyright (C) 2009 - 2016 Board of Regents of the Un... | java | chosen |
[
{
"from": "human",
"value": "mutablestream: Add source that wraps an existing stream\n\n"
},
{
"from": "gpt",
"value": "/**\n *\n * Copyright (c) 2006-2016, Speedment, Inc. All Rights Reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\"); You may not\n * use this fil... | java | chosen |
[
{
"from": "human",
"value": "Add test case for ALTER SECURITY POLICY statement\n"
},
{
"from": "gpt",
"value": "package com.orientechnologies.orient.core.sql.executor;\n\nimport com.orientechnologies.orient.core.db.*;\nimport com.orientechnologies.orient.core.metadata.security.OSecurityInternal;... | java | chosen |
[
{
"from": "human",
"value": "Add bootstrap for handoff example"
},
{
"from": "gpt",
"value": "package de.asw.courses.web2016.demo.backend.servlet.handoff;\n\nimport java.io.IOException;\n\nimport javax.servlet.RequestDispatcher;\nimport javax.servlet.ServletException;\nimport javax.servlet.annot... | java | chosen |
[
{
"from": "human",
"value": "Add test case for overloaded methods\n"
},
{
"from": "gpt",
"value": "/***\n * \n * Copyright 2014 Andrew Hall\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 o... | java | chosen |
[
{
"from": "human",
"value": "Add missing class in previous commit\n\ngit-svn-id: 64c7115bac0e45f25b6ef7317621bf38f6d5f89e@1174524 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "gpt",
"value": "/*\n *\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor li... | java | chosen |
[
{
"from": "human",
"value": "Add default implementation of wave listener"
},
{
"from": "gpt",
"value": "package org.jrebirth.af.core.wave;\r\n\r\n/**\r\n * The class <strong>DefaultWaveListener</strong> is the default empty implementation.\r\n * \r\n * You can use it as base class to only overri... | java | chosen |
[
{
"from": "human",
"value": "Add class for double-valued statistics\n"
},
{
"from": "gpt",
"value": "package de.lmu.ifi.dbs.elki.logging.statistics;\n\n/*\n This file is part of ELKI:\n Environment for Developing KDD-Applications Supported by Index-Structures\n\n Copyright (C) 2013\n Ludwig-Maxi... | java | chosen |
[
{
"from": "human",
"value": "ADD: Edit -> Inputs Bindings menu item that shows publicGetInputHandler().openKeybindingsGuiEditor()\n"
},
{
"from": "gpt",
"value": "package sc.iview.commands.edit;\n\nimport org.scijava.command.Command;\nimport org.scijava.plugin.Menu;\nimport org.scijava.plugin.Pa... | java | chosen |
[
{
"from": "human",
"value": "Add new move command, a variant of change directory that overwrites given file path\n"
},
{
"from": "gpt",
"value": "package seedu.taskmanager.logic.commands;\n\nimport java.io.IOException;\nimport java.util.Optional;\n\nimport seedu.taskmanager.commons.core.Config;\... | java | chosen |
[
{
"from": "human",
"value": "Add some tests to problem 48\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 \"white box\" test module descriptor\n"
},
{
"from": "gpt",
"value": "/*\n * Bach - Java Shell Builder\n * Copyright (C) 2019 Christian Stein\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in complia... | java | chosen |
[
{
"from": "human",
"value": "Add unit tests for FileHandle\n"
},
{
"from": "gpt",
"value": "/*\n * #%L\n * SciJava Common shared library for SciJava software.\n * %%\n * Copyright (C) 2009 - 2015 Board of Regents of the University of\n * Wisconsin-Madison, Broad Institute of MIT and Harvard, and... | java | chosen |
[
{
"from": "human",
"value": "Add code snippets from blog discussion.\n\ngit-svn-id: ed609ce04ec9e3c0bc25e071e87814dd6d976548@648 c7a0535c-eda6-11de-83d8-6d5adf01d787\n"
},
{
"from": "gpt",
"value": "package org.mutabilitydetector.blogexamples;\n\npublic class MutableMischief extends Immutable {\... | java | chosen |
[
{
"from": "human",
"value": "Add some tests for the LengthUtils class\n\nCurrently the LengthUtils class has no tests. This commit\nadds some basic tests for the distance computations.\n"
},
{
"from": "gpt",
"value": "package fr.free.nrw.commons;\n\nimport static org.hamcrest.CoreMatchers.is;\n\... | java | chosen |
[
{
"from": "human",
"value": "Remove nth node from end of list\n"
},
{
"from": "gpt",
"value": "class ListNode {\n int val;\n ListNode next;\n ListNode(int x) { val = x; next = null;}\n}\n\npublic class RemoveNthFromEnd {\n /**\n * Given a linked list, remove the nth node from the ... | java | chosen |
[
{
"from": "human",
"value": "Migrate associations with a description that just contains string increase or decrease\n"
},
{
"from": "gpt",
"value": "package db.migration;\n\nimport org.flywaydb.core.api.migration.spring.SpringJdbcMigration;\nimport org.springframework.jdbc.core.JdbcTemplate;\n\n... | java | chosen |
[
{
"from": "human",
"value": "Add serialization tests for ONetworkConfirm\n"
},
{
"from": "gpt",
"value": "package com.orientechnologies.orient.distributed.impl.coordinator.network;\n\nimport com.orientechnologies.orient.distributed.impl.log.OLogId;\nimport org.junit.Assert;\nimport org.junit.Tes... | java | chosen |
[
{
"from": "human",
"value": "Add unit tests for GT06 frame decoder\n"
},
{
"from": "gpt",
"value": "package org.traccar.protocol;\n\nimport org.junit.Assert;\nimport org.junit.Test;\nimport org.traccar.ProtocolTest;\n\npublic class Gt06FrameDecoderTest extends ProtocolTest {\n\n @Test\n pu... | java | chosen |
[
{
"from": "human",
"value": "Convert a Pod object to a MemberContext\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 unit test for OIDCSessionDataCache\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (c) 2021, 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 no... | java | chosen |
[
{
"from": "human",
"value": "Add example with semantic difference for string\n"
},
{
"from": "gpt",
"value": "package com.samovich.cs6310;\n\n/**\n * Filename StringSemantic\n * Created by Valery Samovich\n * Written on 1/15/17\n */\npublic class StringSemantic {\n\n public static void main(S... | java | chosen |
[
{
"from": "human",
"value": "Use constructors and access levels\n"
},
{
"from": "gpt",
"value": "package com.javarush.test.level05.lesson12.home03;\n\n/* Создай классы Dog, Cat, Mouse\nСоздай классы Dog, Cat, Mouse. Добавь по три поля в каждый класс, на твой выбор. Создай объекты для героев муль... | java | chosen |
[
{
"from": "human",
"value": "Create a skeleton for problem 201\n"
},
{
"from": "gpt",
"value": "package leetcode;\n\n/**\n * https://leetcode.com/problems/bitwise-and-of-numbers-range/\n */\npublic class Problem201 {\n public int rangeBitwiseAnd(int m, int n) {\n return 0;\n }\n ... | java | chosen |
[
{
"from": "human",
"value": "Add a skeleton for problem 209\n"
},
{
"from": "gpt",
"value": "package leetcode;\n\n/**\n * https://leetcode.com/problems/minimum-size-subarray-sum/\n */\npublic class Problem209 {\n public int minSubArrayLen(int s, int[] nums) {\n // TODO\n return ... | java | chosen |
[
{
"from": "human",
"value": "Add tests for snippets used in JShell-based scripts\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 use this file except... | java | chosen |
[
{
"from": "human",
"value": "Add Selenium testable page for testing DateInput.\n"
},
{
"from": "gpt",
"value": "package to.etc.domui.pages;\n\nimport java.text.*;\nimport java.util.*;\n\nimport javax.annotation.*;\n\nimport to.etc.domui.annotations.*;\nimport to.etc.domui.component.buttons.*;\ni... | java | chosen |
[
{
"from": "human",
"value": "Add fn to get size of a bitmap without loading\n"
},
{
"from": "gpt",
"value": "/*\n * BitmapUtils.java\n *\n * Author: Ming Tsang\n * Copyright (c) 2015 Ming Tsang\n * Refer to LICENSE for details\n */\n\npackage com.nkming.utils.graphic;\n\nimport android.graphics.... | java | chosen |
[
{
"from": "human",
"value": "Add a batch game validator, for cleaning up game repositories.\n\ngit-svn-id: 4739e81c2fe647bfb539b919360e2c658e6121ea@655 716a755e-b13f-cedc-210d-596dafc6fb9b\n"
},
{
"from": "gpt",
"value": "package org.ggp.base.apps.validator;\n\nimport org.ggp.base.util.game.Clou... | java | chosen |
[
{
"from": "human",
"value": "Add failing test to reproduce bug\n"
},
{
"from": "gpt",
"value": "import org.junit.Test;\n\nimport static org.assertj.core.api.Assertions.fail;\n\npublic class TempFailingTest {\n\n\n @Test\n public void test() {\n fail(\"This test is failing to reprodu... | java | chosen |
[
{
"from": "human",
"value": "Add helper class for getting device info\n"
},
{
"from": "gpt",
"value": "package fuzion24.device.vulnerability.util;\n\nimport android.os.Build;\n\nimport java.io.BufferedReader;\nimport java.io.InputStream;\nimport java.io.InputStreamReader;\n\n/**\n * Created by f... | java | chosen |
[
{
"from": "human",
"value": "Add crc32 checksum, checkum tests and a bugfix.\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 informat... | java | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.