conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Solve even without using HashSet\n"
},
{
"from": "human",
"value": "/**\n * \n */\npackage algorithms.implementation;\n\nimport java.util.LinkedHashSet;\nimport java.util.Scanner;\nimport java.util.Set;\n\n/**\n * Challenge: https://www.hackerrank.com/challenges/man... | java | chosen |
[
{
"from": "system",
"value": "Fix fail on javadoc task.\n"
},
{
"from": "human",
"value": "package com.github.kubode.rxproperty;\n\nimport rx.Observable;\nimport rx.Observer;\nimport rx.Subscriber;\n\n/**\n * Read-only Observable property.\n *\n * @param <T> the type of this property.\n */\npubl... | java | chosen |
[
{
"from": "system",
"value": "Add a helper function to derive StorageDirId from BlockLocation\n"
},
{
"from": "human",
"value": "package tachyon.worker;\n\n/**\n * Where to store a block within a block store. Currently, this is a wrapper on an integer\n * representing the tier to put this block.... | java | chosen |
[
{
"from": "system",
"value": "Revert \"Using java7+ feature to verify java6 sanity check\"\n\nThis reverts commit 0ac6d15118c0240d27fe3efd76eed03956442bd0.\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2007-2008 the original author or authors.\n *\n * Licensed under the Apache License, Ver... | java | chosen |
[
{
"from": "system",
"value": "Test that there is only one entry in the DB.\n"
},
{
"from": "human",
"value": "package javaeems.chapter1.model;\n\nimport static org.junit.Assert.*;\n\nimport javax.persistence.EntityManagerFactory;\nimport javax.persistence.EntityTransaction;\nimport javax.persist... | java | chosen |
[
{
"from": "system",
"value": "Handle more special cases for headers.\n"
},
{
"from": "human",
"value": "package net.morimekta.providence.rpc.handler;\n\nimport com.google.api.client.http.HttpRequest;\nimport com.google.api.client.http.HttpRequestInitializer;\n\nimport java.io.IOException;\nimpor... | java | chosen |
[
{
"from": "system",
"value": "Fix error message when failing to convert a Path\n\nWhen a parameter is of type Path, the PathConverter is used.\nIf the path is not a valid Path, for instance when the user input is an\nuri, a stack trace is shown, where a proper error message is expected.\n\nWhen converting a... | java | chosen |
[
{
"from": "system",
"value": "Change name to texture name"
},
{
"from": "human",
"value": "package info.u_team.u_team_core.item.armor;\n\nimport net.minecraft.entity.Entity;\nimport net.minecraft.inventory.EquipmentSlotType;\nimport net.minecraft.item.*;\n\npublic class UArmorItem extends ArmorI... | java | chosen |
[
{
"from": "system",
"value": "Remove getter and setter of id field\n"
},
{
"from": "human",
"value": "package nl.homeserver.mindergasnl;\n\nimport static javax.persistence.GenerationType.AUTO;\n\nimport javax.persistence.Column;\nimport javax.persistence.Entity;\nimport javax.persistence.Generat... | java | chosen |
[
{
"from": "system",
"value": "Remove unneeded import and format class\n"
},
{
"from": "human",
"value": "/* \n * Copyright 2002-2018 Barcelona Supercomputing Center (www.bsc.es)\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file exc... | java | chosen |
[
{
"from": "system",
"value": "Convert HashSet to LinkedHashSet to maintain FindCommand keyword sequence\n"
},
{
"from": "human",
"value": "package seedu.tache.logic.parser;\n\nimport static seedu.tache.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT;\nimport static seedu.tache.logic.parser.... | java | chosen |
[
{
"from": "system",
"value": "Fix an occurrence of \"the the\" in the javadoc pkg description for the dom pkg\n"
},
{
"from": "human",
"value": "/*\r\n * Copyright 2003-2017 MarkLogic Corporation\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use ... | java | chosen |
[
{
"from": "system",
"value": "Include get methods to access class details"
},
{
"from": "human",
"value": "package edu.dynamic.dynamiz.UI;\n\npublic class StrIntPair {\n\tstatic final int defaultTag = 10;\n\tprivate final String s;\n\tprivate final int intg;\n\tpublic StrIntPair(String s, int i)... | java | chosen |
[
{
"from": "system",
"value": "Add the langusge to the query parameter\n"
},
{
"from": "human",
"value": "package com.spykins.assessment.MainScreen.http;\n\n\n\nimport java.util.List;\n\nimport retrofit2.Call;\nimport retrofit2.http.GET;\nimport retrofit2.http.Query;\n\npublic interface DataFetch... | java | chosen |
[
{
"from": "system",
"value": "Remove unnecessary method calls in undo command\n"
},
{
"from": "human",
"value": "package seedu.address.logic.commands;\n\npublic class UndoCommand extends Command {\n\n public static final String COMMAND_WORD = \"undo\";\n public static final String MESSAGE_... | java | chosen |
[
{
"from": "system",
"value": "Add method update() which is to be called after registerObserver()"
},
{
"from": "human",
"value": "package devopsdistilled.operp.client.abstracts;\n\npublic interface Model<O extends Observer> {\n\tpublic void registerObserver(O observer);\n\n\tpublic void removeOb... | java | chosen |
[
{
"from": "system",
"value": "Fix java client to accept new parameters\n"
},
{
"from": "human",
"value": "package io.aigar.game.models;\n\nimport com.fasterxml.jackson.annotation.JsonIgnore;\n\nimport java.util.List;\n\npublic class GameState {\n private int id;\n private int tick;\n pr... | java | chosen |
[
{
"from": "system",
"value": "Use correct delegate type for for CompositeDialogFragment plugins\n"
},
{
"from": "human",
"value": "package com.pascalwelsch.compositeandroid.dialogfragment;\n\nimport com.pascalwelsch.compositeandroid.core.AbstractPlugin;\nimport com.pascalwelsch.compositeandroid.... | java | chosen |
[
{
"from": "system",
"value": "Add method with ConnectionFactory as an argument\n"
},
{
"from": "human",
"value": "package net.unit8.falchion.jetty9;\n\nimport org.eclipse.jetty.server.Server;\nimport org.eclipse.jetty.server.ServerConnector;\nimport org.eclipse.jetty.util.annotation.Name;\n\nimp... | java | chosen |
[
{
"from": "system",
"value": "Support for CORS pre-flight requests added\n"
},
{
"from": "human",
"value": "package com.giraone.samples.pmspoc1.boundary.core;\n\nimport javax.ws.rs.OPTIONS;\nimport javax.ws.rs.Path;\nimport javax.ws.rs.PathParam;\nimport javax.ws.rs.core.Response;\n\n/**\n * TOD... | java | chosen |
[
{
"from": "system",
"value": "Make /sw list more readable\n"
},
{
"from": "human",
"value": "package net.bitjump.bukkit.subwhitelister.commands;\r\n\r\nimport org.apache.commons.lang.StringUtils;\r\n\r\nimport net.bitjump.bukkit.subwhitelister.util.WhitelistManager;\r\n\r\npublic class ListComma... | java | chosen |
[
{
"from": "system",
"value": "Use HTTPS for Reactome requests\n"
},
{
"from": "human",
"value": "package uk.ac.ebi.atlas.utils;\n\nimport org.apache.commons.lang3.StringUtils;\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\nimport org.springframework.web.client.RestClientException;\n... | java | chosen |
[
{
"from": "system",
"value": "Revert \"Added some debug message for FactionChat/issues/12\"\n\nThis reverts commit 3c86b96f6cdb8848773450f741353a754a8dd90a.\n"
},
{
"from": "human",
"value": "/*\r\n * To change this license header, choose License Headers in Project Properties.\r\n * To change th... | java | chosen |
[
{
"from": "system",
"value": "Remove IDE boilerplate comment at top of file\n"
},
{
"from": "human",
"value": "/*\n * To change this template, choose Tools | Templates\n * and open the template in the editor.\n */\npackage org.jenkinsci.plugins.gitclient;\n\nimport java.util.List;\nimport org.ec... | java | chosen |
[
{
"from": "system",
"value": "Make the Java smoke test of 'TrialsApi' more interesting with an example of 'BigDecimal' versus 'Double'. This exposes a problem with the API - the Java and Scala overloads are fighting each other.\n"
},
{
"from": "human",
"value": "package com.sageserpent.americium... | java | chosen |
[
{
"from": "system",
"value": "Rename parameter Uri variable name to uri instead of url\n"
},
{
"from": "human",
"value": "package com.novoda.simplechromecustomtabs.demo.linkify;\n\nimport android.net.Uri;\n\npublic interface OnWebLinkClickedListener {\n /**\n * Called when a Web link has ... | java | chosen |
[
{
"from": "system",
"value": "Fix compatibility with other addons that have custom sections\n"
},
{
"from": "human",
"value": "package com.btk5h.skriptmirror;\n\nimport ch.njol.skript.log.LogEntry;\nimport ch.njol.skript.log.LogHandler;\nimport com.btk5h.skriptmirror.util.SkriptReflection;\n\npu... | java | chosen |
[
{
"from": "system",
"value": "Add descriptive name to each node type\n"
},
{
"from": "human",
"value": "// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\npackage com.yahoo.config.provision;\n\n/**\n * The possible types of nod... | java | chosen |
[
{
"from": "system",
"value": "Add explicit Superprotected check to Kill action\n"
},
{
"from": "human",
"value": "package com.elmakers.mine.bukkit.action.builtin;\n\nimport com.elmakers.mine.bukkit.api.action.CastContext;\nimport com.elmakers.mine.bukkit.api.spell.SpellResult;\nimport com.elmake... | java | chosen |
[
{
"from": "system",
"value": "Add lazy conversation context parameter\n"
},
{
"from": "human",
"value": "/*\n * JBoss, Home of Professional Open Source\n * Copyright 2013, Red Hat, Inc., and individual contributors\n * by the @authors tag. See the copyright.txt in the distribution for a\n * full... | java | chosen |
[
{
"from": "system",
"value": "[TOOLS-1091] Fix tests intermittent due to board render not ready\n"
},
{
"from": "human",
"value": "package objective.taskboard.it;\n\n/*-\n * [LICENSE]\n * Taskboard\n * ---\n * Copyright (C) 2015 - 2017 Objective Solutions\n * ---\n * This program is free softwar... | java | chosen |
[
{
"from": "system",
"value": "Remove fetch logic from invoke method.\n"
},
{
"from": "human",
"value": "package com.github.hisaichi5518.kise;\n\n\nimport android.support.annotation.NonNull;\n\nimport com.google.android.gms.tasks.OnCompleteListener;\nimport com.google.android.gms.tasks.OnFailureL... | java | chosen |
[
{
"from": "system",
"value": "Add jaxb support to feed model\n"
},
{
"from": "human",
"value": "package me.tdjones.main.model;\n\n/**\n * Created by Tyler on 6/30/2016.\n */\npublic class Feed {\n}\n"
},
{
"from": "gpt",
"value": "package me.tdjones.main.model;\n\nimport com.sun.xml.... | java | chosen |
[
{
"from": "system",
"value": "Check if world is remote so event isn't fired for single player entity tick\n"
},
{
"from": "human",
"value": "package com.matt.forgehax.mods.services;\n\nimport com.matt.forgehax.events.LocalPlayerUpdateEvent;\nimport com.matt.forgehax.util.mod.ServiceMod;\nimport ... | java | chosen |
[
{
"from": "system",
"value": "Add whitelist mechanism in tools for allowing use of UsageManager as control environment with config_version 3 and above.\n\nAlso added validation to ensure if usage manager, use monarch feature is not set.\n-------------\nCreated by MOE: https://github.com/google/moe\nMOE_MIGR... | java | chosen |
[
{
"from": "system",
"value": "Add auth provider parameter to on success callback in mock auth response listener\n"
},
{
"from": "human",
"value": "package com.simperium.test;\n\nimport com.simperium.client.AuthException;\nimport com.simperium.client.AuthResponseListener;\nimport com.simperium.cl... | java | chosen |
[
{
"from": "system",
"value": "Add parameter value suggestion to ActionSpell tab-completion\n"
},
{
"from": "human",
"value": "package com.elmakers.mine.bukkit.api.action;\n\nimport com.elmakers.mine.bukkit.api.spell.Spell;\nimport org.bukkit.configuration.ConfigurationSection;\n\nimport java.uti... | java | chosen |
[
{
"from": "system",
"value": "Fix build from github web"
},
{
"from": "human",
"value": "package reborncore.common.powerSystem;\n\nimport reborncore.common.RebornCoreConfig;\nimport reborncore.common.powerSystem.tesla.TeslaManager;\n\npublic class PowerSystem\n{\n\tpublic static String getLocali... | java | chosen |
[
{
"from": "system",
"value": "Test all methods are found by factory reparceler.\n"
},
{
"from": "human",
"value": "package pl.mg6.testsupport;\n\nimport junit.framework.TestCase;\n\nimport java.util.List;\n\nimport pl.mg6.testsupport.data.Simple;\nimport pl.mg6.testsupport.factory.SimpleFactory;... | java | chosen |
[
{
"from": "system",
"value": "Update Multiple Strings Example for Console and Scanner prototype\n"
},
{
"from": "human",
"value": "/**\n * @file TreeStory.java\n * @author Valery Samovich\n * @version 1\n * @date 2015/05/11\n */\n\npackage com.samovich.basics.concepts.strings.treehouse;\n\nimpor... | java | chosen |
[
{
"from": "system",
"value": "Fix adaptation service Bean issue"
},
{
"from": "human",
"value": "package jp.ac.nii.prl.mape.plan.service;\n\nimport java.util.Optional;\n\nimport org.springframework.beans.factory.annotation.Autowired;\n\nimport jp.ac.nii.prl.mape.plan.model.Adaptation;\nimport jp... | java | chosen |
[
{
"from": "system",
"value": "Implement multi-dim access funcs in VMArray.\n"
},
{
"from": "human",
"value": "package org.perl6.nqp.sixmodel.reprs;\n\nimport java.lang.System;\n\nimport org.perl6.nqp.runtime.ExceptionHandling;\nimport org.perl6.nqp.runtime.ThreadContext;\nimport org.perl6.nqp.si... | java | chosen |
[
{
"from": "system",
"value": "Add empty constructor for GWT\n\ngit-svn-id: 7e8def7d4256e953abb468098d8cb9b4faff0c63@5826 12255794-1b5b-4525-b599-b0510597569d\n"
},
{
"from": "human",
"value": "package com.arondor.common.reflection.bean.java;\n\nimport java.util.List;\n\nimport com.arondor.common... | java | chosen |
[
{
"from": "system",
"value": "Add setVariable & setExpression method\n"
},
{
"from": "human",
"value": "package net.zero918nobita.smilepp.frontend;\n\npublic class AssignStm extends Stm {\n private Variable variable;\n private Expression expression;\n\n public AssignStm(Variable variable, Exp... | java | chosen |
[
{
"from": "system",
"value": "Set URL to null on close"
},
{
"from": "human",
"value": "package com.freshplanet.ane.AirAACPlayer.functions;\n\nimport com.adobe.fre.FREContext;\nimport com.adobe.fre.FREFunction;\nimport com.adobe.fre.FREObject;\nimport com.freshplanet.ane.AirAACPlayer.Extension;\... | java | chosen |
[
{
"from": "system",
"value": "[improve] Split the Optional call on a new line\n"
},
{
"from": "human",
"value": "package net.safedata.springboot.training.d01.s03.service;\n\nimport net.safedata.springboot.training.d01.s03.repository.ProductRepository;\n\nimport java.util.Optional;\n\n/**\n * A s... | java | chosen |
[
{
"from": "system",
"value": "Disable clicks on the Reviews ListView\n"
},
{
"from": "human",
"value": "package com.vinnypalumbo.popularmovies;\n\nimport android.app.Activity;\nimport android.view.LayoutInflater;\nimport android.view.View;\nimport android.view.ViewGroup;\nimport android.widget.A... | java | chosen |
[
{
"from": "system",
"value": "Add pytorch (I99). Neural net continual learning (I100).\n"
},
{
"from": "human",
"value": "/**\n * \n */\n/**\n * @author roart\n *\n */\nmodule mldao {\n exports roart.ml.dao;\n\n requires common.config;\n requires ml.common;\n requires ml.spark;\n ... | java | chosen |
[
{
"from": "system",
"value": "Remove Cookie import to use Cookie from this package"
},
{
"from": "human",
"value": "package com.ca.apm.swat.epaplugins.asm.har;\n\nimport org.json.Cookie;\n\npublic interface Response {\n public int getStatus();\n public String getStatusText();\n public S... | java | chosen |
[
{
"from": "system",
"value": "Make class final to pass a certain check.\n\ngit-svn-id: ed609ce04ec9e3c0bc25e071e87814dd6d976548@187 c7a0535c-eda6-11de-83d8-6d5adf01d787\n"
},
{
"from": "human",
"value": "/*\n * Mutability Detector\n *\n * Licensed under the Apache License, Version 2.0 (the \"Lic... | java | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.