conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Clean exit from the command line client\n\n- 'bye' keyword exits the client\n"
},
{
"from": "human",
"value": "package net.bourgau.philippe.concurrency.kata;\n\nimport java.util.Scanner;\n\npublic class Client implements Broadcast {\n\n private final ChatRoom cha... | java | chosen |
[
{
"from": "system",
"value": "Add class for competitor info\n"
},
{
"from": "human",
"value": "\n// Copyright 2021 Google LLC\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 copy o... | java | chosen |
[
{
"from": "system",
"value": "Remove the TestUnit code dependency\n"
},
{
"from": "human",
"value": "package org.apache.cassandra.heartbeat.extra;\r\n\r\nimport java.nio.ByteBuffer;\r\nimport java.util.TreeMap;\r\n\r\nimport org.apache.cassandra.Util;\r\nimport org.apache.cassandra.db.Cell;\r\ni... | java | chosen |
[
{
"from": "system",
"value": "Print a message if method reflection returns null.\n"
},
{
"from": "human",
"value": "package com.twitter.diagnostics;\n\nimport java.lang.reflect.Method;\nimport java.lang.NoSuchMethodException;\n\nimport junit.framework.Test;\nimport junit.framework.TestCase;\nimp... | java | chosen |
[
{
"from": "system",
"value": "Switch to assertJ to trigger Github Action\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2021 Jasha Joachimsthal\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": "system",
"value": "Add test: check that documents are parsed only when they are asked to be loaded\n"
},
{
"from": "human",
"value": "/**\r\n * Copyright (c) 2008-2010, http://www.snakeyaml.org\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may... | java | chosen |
[
{
"from": "system",
"value": "Check author to project name\n"
},
{
"from": "human",
"value": "package cal;\n\n/**\n * \n * This is a concrete\n * class that is used \n * to representing \n * a division object\n * which is extending the\n * abstract operator class\n * \n * @author LewisHo\n *\n *... | java | chosen |
[
{
"from": "system",
"value": "Replace anonymous class with lambda\n"
},
{
"from": "human",
"value": "package com.admicro.vertx.core;\n\npublic interface HttpServerContext {\n\n static final String ROOT_TAG = \"server\";\n\n String configurationPath();\n\n static HttpServerContext defaul... | java | chosen |
[
{
"from": "system",
"value": "Load FunkSVD learning rate from a property.\n"
},
{
"from": "human",
"value": "package org.grouplens.reflens.svd;\n\nimport java.util.Collection;\n\nimport org.grouplens.reflens.Recommender;\nimport org.grouplens.reflens.bench.BenchmarkRecommenderFactory;\nimport or... | java | chosen |
[
{
"from": "system",
"value": "Remove unnecessary synchronization on a PrintStream instance\n"
},
{
"from": "human",
"value": "/*\n * Copyright (C) 2004 - 2014 Brian McCallister\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compl... | java | chosen |
[
{
"from": "system",
"value": "Add console for console actions\n"
},
{
"from": "human",
"value": "package org.kantega.niagara.action;\n\nimport org.kantega.niagara.task.Action;\nimport org.kantega.niagara.task.Console;\nimport org.kantega.niagara.task.RTS;\n\npublic class ActionExample {\n\n\n ... | java | chosen |
[
{
"from": "system",
"value": "Update comment on authToken field"
},
{
"from": "human",
"value": "/*\n * Copyright 2012 GitHub Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a c... | java | chosen |
[
{
"from": "system",
"value": "Disable Encoding not specified inspection in console.\n"
},
{
"from": "human",
"value": "package com.jetbrains.python.console;\n\nimport com.intellij.psi.PsiFile;\nimport com.jetbrains.python.inspections.*;\nimport com.jetbrains.python.validation.DocStringAnnotator;... | java | chosen |
[
{
"from": "system",
"value": "Fix typo following previous commit"
},
{
"from": "human",
"value": "package com.mangopay.core.enumerations;\n\n/**\n * Legal person type enumeration.\n */\npublic enum LegalPersonType {\n /**\n * Not specified.\n */\n NotSpecified,\n\n /**\n * B... | java | chosen |
[
{
"from": "system",
"value": "Fix typo in JSON property name.\n"
},
{
"from": "human",
"value": "package io.dropwizard.bundles.apikey;\n\nimport com.fasterxml.jackson.annotation.JsonCreator;\nimport com.fasterxml.jackson.annotation.JsonProperty;\nimport com.google.common.base.Optional;\nimport c... | java | chosen |
[
{
"from": "system",
"value": "Fix for \"java.lang.IllegalArgumentException: Cannot pass a null GrantedAuthority array\"\n"
},
{
"from": "human",
"value": "/**\n *\n */\npackage org.jenkinsci.plugins;\n\nimport edu.umd.cs.findbugs.annotations.SuppressFBWarnings;\nimport org.acegisecurity.GrantedA... | java | chosen |
[
{
"from": "system",
"value": "Change function name of getServer"
},
{
"from": "human",
"value": "package org.sipc.se.plugin;\n\n\nimport java.util.Map;\n\nimport javax.servlet.http.HttpServletRequest;\nimport javax.servlet.http.HttpServletResponse;\n\nimport org.apache.logging.log4j.LogManager;\... | java | chosen |
[
{
"from": "system",
"value": "Add error message for failed data send\n"
},
{
"from": "human",
"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 with the License.\n * You may ob... | java | chosen |
[
{
"from": "system",
"value": "Add a simple and wrong data aggregation.\n"
},
{
"from": "human",
"value": "package it.uniroma2.ember;\n\nimport org.apache.flink.api.java.functions.KeySelector;\nimport org.apache.flink.api.java.tuple.Tuple2;\n\n/**\n * This is a utility class for aggregate statist... | java | chosen |
[
{
"from": "system",
"value": "Call hasNext in next to make sure we have an element available\n"
},
{
"from": "human",
"value": "package uk.co.jezuk.mango.iterators;\n\nimport java.util.Iterator;\nimport java.util.List;\nimport java.util.ArrayList;\n\npublic class ChainIterator<T> implements Iter... | java | chosen |
[
{
"from": "system",
"value": "Use File.createTempFile() instead of hardcoded path."
},
{
"from": "human",
"value": "package com.darwinsys.todo.test;\n\nimport static org.junit.Assert.*;\n\nimport java.io.BufferedOutputStream;\nimport java.io.FileInputStream;\nimport java.io.FileOutputStream;\nim... | java | chosen |
[
{
"from": "system",
"value": "Use FileChannel rather than SeekableByteChannel for Android compatibility\n"
},
{
"from": "human",
"value": "package org.mp4parser;\n\nimport java.io.IOException;\nimport java.nio.ByteBuffer;\nimport java.nio.channels.ReadableByteChannel;\nimport java.nio.channels.S... | java | chosen |
[
{
"from": "system",
"value": "Add sorting with the Activation Date\n"
},
{
"from": "human",
"value": "/**\n * Copyright 2012 Google Inc. All Rights Reserved. \n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the Lic... | java | chosen |
[
{
"from": "system",
"value": "Annotate status draft for versions < 2.15\n"
},
{
"from": "human",
"value": "/*\n * Copyright (C) 2016 Jorge Ruesga\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": "system",
"value": "Insert new files, Alura, Projeto de Algoritmos 1, Aula 11\n"
},
{
"from": "human",
"value": "public class TestaMenorPreco {\n\n public static void main(String[] args) {\n\n Produto produtos[] = {\n new Produto(\"Lamborghini\", 1000000),\n new Produto(\... | java | chosen |
[
{
"from": "system",
"value": "Revert \"Trying direct printing instead of logs\"\n\nThis reverts commit 92953b6f541fc94e7f4b93d5d8ac1faa8d240ca9.\n"
},
{
"from": "human",
"value": "package org.zalando.nakadi;\n\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\n\nimport java.io.Closeable... | java | chosen |
[
{
"from": "system",
"value": "Reduce double precision delta in tests\n\nThis should reduce the occurrence of random test failures caused by\nnumerical imprecision.\n"
},
{
"from": "human",
"value": "/*\n * Copyright © 2016 <code@io7m.com> http://io7m.com\n *\n * Permission to use, copy, modify, ... | java | chosen |
[
{
"from": "system",
"value": "Add missing mechanism-too-weak SASL Error\n"
},
{
"from": "human",
"value": "/**\n *\n * Copyright 2014 Florian Schmaus\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 *... | java | chosen |
[
{
"from": "system",
"value": "Fix compile error in WayPointsTest.java\n\n- as they are currently excluded in gradle, this did not affect the build\n"
},
{
"from": "human",
"value": "package cgeo.geocaching.connector.gc;\n\nimport static org.assertj.core.api.Assertions.assertThat;\n\nimport cgeo.... | java | chosen |
[
{
"from": "system",
"value": "Index instead of row number\n"
},
{
"from": "human",
"value": "package model.rules;\n\npublic class ReferenceParser {\n \n public static Interval parseIntervalReference(String refStr){\n String[] refs = refStr.split(\"-\");\n if(refs.length != 2) throw new N... | java | chosen |
[
{
"from": "system",
"value": "Add to secure hash map test\n"
},
{
"from": "human",
"value": "/*\n * JBoss, Home of Professional Open Source.\n * Copyright 2012 Red Hat, Inc., and individual contributors\n * as indicated by the @author tags.\n *\n * Licensed under the Apache License, Version 2.0 ... | java | chosen |
[
{
"from": "system",
"value": "Update error message for Select command (if a task is already done)\n"
},
{
"from": "human",
"value": "package seedu.ezdo.commons.core;\n\n/**\n * Container for user visible messages.\n */\npublic class Messages {\n\n public static final String MESSAGE_UNKNOWN_CO... | java | chosen |
[
{
"from": "system",
"value": "Remove title in Key Picker dialog\n"
},
{
"from": "human",
"value": "package com.roly.nfc.crypto.view.nfc;\n\nimport android.app.AlertDialog;\nimport android.app.Dialog;\nimport android.content.DialogInterface;\nimport android.os.Bundle;\nimport android.support.v4.a... | java | chosen |
[
{
"from": "system",
"value": "Add abstract method in order to make prototypes.\n"
},
{
"from": "human",
"value": "package com.github.aureliano.achmed.os;\n\nimport com.github.aureliano.achmed.command.CommandResponse;\nimport com.github.aureliano.achmed.os.pkg.IPackageManager;\nimport com.github.... | java | chosen |
[
{
"from": "system",
"value": "Make sure there always is a valid array\n\n"
},
{
"from": "human",
"value": "package com.github.slidekb.back.settings;\n\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.List;\n\npublic class PluginSettings {\n List<String> processes;\n ... | java | chosen |
[
{
"from": "system",
"value": "Add user enter/left message handle methods\n"
},
{
"from": "human",
"value": "package ru.nsu.ccfit.bogush.msg;\n\npublic interface MessageHandler {\n\tvoid handle(LoginMessage message);\n\tvoid handle(LogoutMessage message);\n\tvoid handle(SuccessMessage message);\n... | java | chosen |
[
{
"from": "system",
"value": "Fix height of blockconfirmation icon and reduces row height\n"
},
{
"from": "human",
"value": "package io.bisq.gui.components;\n\nimport de.jensd.fx.fontawesome.AwesomeDude;\nimport de.jensd.fx.fontawesome.AwesomeIcon;\nimport javafx.scene.control.ContentDisplay;\ni... | java | chosen |
[
{
"from": "system",
"value": "Add missing commands to default help prompt\n"
},
{
"from": "human",
"value": "import backend.Core;\nimport java.io.IOException;\nimport parse.GreetParser;\nimport parse.StepParser;\n\npublic class App {\n public String getGreeting() {\n return \"Hello world.\";... | java | chosen |
[
{
"from": "system",
"value": "Fix Web Bundle not resizing correctly"
},
{
"from": "human",
"value": "package placebooks.client.ui.items;\n\nimport placebooks.client.model.PlaceBookItem;\n\nimport com.google.gwt.dom.client.Style.Unit;\nimport com.google.gwt.user.client.ui.Frame;\n\npublic class W... | java | chosen |
[
{
"from": "system",
"value": "Set mime type for signature even though it's not used\n"
},
{
"from": "human",
"value": "package no.difi.sdp.client.asice.signature;\n\nimport no.difi.sdp.client.asice.AsicEAttachable;\n\npublic class Signature implements AsicEAttachable {\n\n private final byte[... | java | chosen |
[
{
"from": "system",
"value": "Use saveEventually() instead of saveInBackground()\n"
},
{
"from": "human",
"value": "package com.permutassep.presentation.utils;\n\nimport com.parse.ParseInstallation;\n\n/**\n * By Jorge E. Hernandez (@lalongooo) 2015\n */\n\npublic class ParseUtils {\n\n priva... | java | chosen |
[
{
"from": "system",
"value": "Remove unused code left from JBMP -> Flowable migration"
},
{
"from": "human",
"value": "/*\n * Copyright © 2015-2018 Santer Reply S.p.A.\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": "system",
"value": "Remove package, because import is there\n\ngit-svn-id: 50b0c422a4e45306989420d5052835c941dc6296@185 d792475c-d26d-5892-9e01-79372957b29b\n"
},
{
"from": "human",
"value": "/*\n * (C) Copyright 2013 Uwe Schindler (Generics Policeman) and others.\n *\n * Licensed unde... | java | chosen |
[
{
"from": "system",
"value": "Add logging for app state changes\n"
},
{
"from": "human",
"value": "package com.jenzz.appstate.sample;\n\nimport android.app.Application;\nimport android.widget.Toast;\nimport com.jenzz.appstate.AppState;\nimport com.jenzz.appstate.AppStateListener;\nimport com.jen... | java | chosen |
[
{
"from": "system",
"value": "Use ResultSet and Record in test.\n"
},
{
"from": "human",
"value": "package yaz4jtest;\nimport org.junit.*;\nimport static org.junit.Assert.*;\nimport java.util.*;\n\npublic class ConnectionTest {\n\t@Test\n\tpublic void testConnection() {\n\t\torg.yaz4j.Connection... | java | chosen |
[
{
"from": "system",
"value": "Comment out tests that fail intentionally (for testing purposes).\n"
},
{
"from": "human",
"value": "package water.cookbook;\n\nimport org.junit.*;\nimport water.*;\nimport water.fvec.*;\nimport water.util.Log;\nimport water.util.RemoveAllKeysTask;\n\npublic class C... | java | chosen |
[
{
"from": "system",
"value": "Add deferred register to enchantments"
},
{
"from": "human",
"value": "package info.u_team.u_team_test.init;\n\nimport info.u_team.u_team_test.enchantment.AutoSmeltEnchantment;\nimport net.minecraft.enchantment.Enchantment;\n\npublic class TestEnchantments {\n\t\n\t... | java | chosen |
[
{
"from": "system",
"value": "Replace usage of deprecated TreeTraverser\n"
},
{
"from": "human",
"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": "system",
"value": "Update problem 63 (too slow)\n"
},
{
"from": "human",
"value": "package leetcode;\n\n/**\n * https://leetcode.com/problems/unique-paths-ii/\n */\npublic class Problem63 {\n public int uniquePathsWithObstacles(int[][] obstacleGrid) {\n // TODO: implement th... | java | chosen |
[
{
"from": "system",
"value": "Add toString to simplify conversion to String (e.g. references)\n"
},
{
"from": "human",
"value": "package com.github.vlsi.mat.optiq;\n\npublic class HeapFunctions {\n public static int get_id(Object r) {\n if (r == null || !(r instanceof HeapReference)) r... | java | chosen |
[
{
"from": "system",
"value": "Android: Add support for accelerometer and wakelock\n"
},
{
"from": "human",
"value": "package de.dbaelz.secludedness;\n\nimport android.os.Bundle;\n\nimport com.badlogic.gdx.backends.android.AndroidApplication;\nimport com.badlogic.gdx.backends.android.AndroidAppli... | java | chosen |
[
{
"from": "system",
"value": "Add Theresa May Jive bot\n"
},
{
"from": "human",
"value": "package co.uk.jiveelection.campaign;\n\nimport java.io.IOException;\n\nimport org.springframework.boot.autoconfigure.SpringBootApplication;\nimport twitter4j.TwitterException;\nimport co.uk.jiveelection.cam... | java | chosen |
[
{
"from": "system",
"value": "Fix deprecation tag to link to service instead of context.\n"
},
{
"from": "human",
"value": "/*\n/*\n * Copyright © 2014 Cask Data, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not\n * use this file except in compliance wit... | java | chosen |
[
{
"from": "system",
"value": "DERBY-6945: Remove a spurious character from a method signature; commit derby-6945-35-aa-removeSpuriousCharacter.diff.\n\ngit-svn-id: 2c06e9c5008124d912b69f0b82df29d4867c0ce2@1831487 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "human",
"value": "/*\n\n De... | java | chosen |
[
{
"from": "system",
"value": "Fix error on /ticks command with invalid parameters.\n\nSigned-off-by: Ross Allan <ca2c77e14df1e7ee673215c1ef658354e220f471@gmail.com>\n"
},
{
"from": "human",
"value": "package me.nallar.tickthreading.minecraft.commands;\r\n\r\nimport java.util.List;\r\n\r\nimport ... | java | chosen |
[
{
"from": "system",
"value": "Add isOwner EntityPlayer signature method to the interface.\n"
},
{
"from": "human",
"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 (the \"License\");\n * you may not use ... | java | chosen |
[
{
"from": "system",
"value": "Rename type tokens for clarity.\n\nI always get this around the wrong way the first time.\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2008 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may n... | java | chosen |
[
{
"from": "system",
"value": "Support multiple documents in single YAML file"
},
{
"from": "human",
"value": "/*\n * Copyright (c) 2016-2017 by OpenText Corporation. All Rights Reserved.\n */\npackage com.opentext.ia.sdk.configurer;\n\nimport java.io.*;\nimport java.nio.charset.StandardCharsets;... | java | chosen |
[
{
"from": "system",
"value": "Fix compilation in Java 6\n"
},
{
"from": "human",
"value": "package org.jetbrains.haskell.debugger.history;\n\nimport com.intellij.ui.components.JBList;\nimport javax.swing.*;\nimport javax.swing.event.ListSelectionEvent;\nimport javax.swing.event.ListSelectionList... | java | chosen |
[
{
"from": "system",
"value": "Use GuiUtils instead of extending Gui\n"
},
{
"from": "human",
"value": "package mezz.jei.gui;\n\nimport mezz.jei.api.gui.IDrawable;\nimport net.minecraft.client.Minecraft;\nimport net.minecraft.client.gui.Gui;\nimport net.minecraft.util.ResourceLocation;\n\nimport ... | java | chosen |
[
{
"from": "system",
"value": "Add -v flag for dumping everything\n"
},
{
"from": "human",
"value": "/**\n * Copyright (C) 2009-2013 FoundationDB, LLC\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as pu... | java | chosen |
[
{
"from": "system",
"value": "Update minor version for release"
},
{
"from": "human",
"value": "package com.microsoft.graph.core;\n\npublic final class Constants {\n\tprivate Constants() {\n\t}\n\t\n\tpublic static final String APPROOT = \"approot\";\n\t/**\n\t * The content type header\n\t */\n... | java | chosen |
[
{
"from": "system",
"value": "Copy things from previous text field"
},
{
"from": "human",
"value": "package info.u_team.u_team_core.gui.elements;\n\nimport info.u_team.u_team_core.api.gui.IRenderTickable;\nimport net.minecraft.client.gui.FontRenderer;\nimport net.minecraft.client.gui.widget.Text... | java | chosen |
[
{
"from": "system",
"value": "Rename variables to match documentation\n"
},
{
"from": "human",
"value": "package it.sieradzki.userscript_parser.metadata;\n\n/**\n * Implementation of <a href=\"https://developer.mozilla.org/en/Toolkit_version_format\">Toolkit version format</a>\n */\npublic class... | java | chosen |
[
{
"from": "system",
"value": "Add example of extending Gerrit's top menu item\n\nAdd a \"Browse Repositories\" item in the \"Projects\" menu.\n\nChange-Id: I67af5bca1a14288147b1bc43fb089ba0abe0d6b2\n"
},
{
"from": "human",
"value": "// Copyright (C) 2013 The Android Open Source Project\n//\n// L... | java | chosen |
[
{
"from": "system",
"value": "Fix NullPointerException when starting SC.\n"
},
{
"from": "human",
"value": "/*\n * SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.\n *\n * Distributable under LGPL license.\n * See terms of license at gnu.org.\n */\npackage net.java.sip.co... | java | chosen |
[
{
"from": "system",
"value": "Remove redundant public modifier on interface method\n\nInterface methods are per default public.\n"
},
{
"from": "human",
"value": "package hudson.plugins.ec2.win.winrm.request;\n\nimport org.dom4j.Document;\n\npublic interface WinRMRequest {\n public Document b... | java | chosen |
[
{
"from": "system",
"value": "feat(instance): Rename events relative to the gateway\n"
},
{
"from": "human",
"value": "/**\n * Copyright (C) 2015 The Gravitee team (http://gravitee.io)\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except ... | java | chosen |
[
{
"from": "system",
"value": "Add test for degenerate line fitter task.\n"
},
{
"from": "human",
"value": "package hu.kazocsaba.math.geometry.fitting;\n\nimport hu.kazocsaba.math.matrix.Vector2;\nimport java.util.List;\nimport hu.kazocsaba.math.geometry.Line2;\nimport hu.kazocsaba.math.matrix.im... | java | chosen |
[
{
"from": "system",
"value": "Add punctuation to messages to improve consistency\n"
},
{
"from": "human",
"value": "package seedu.ezdo.commons.core;\n\n/**\n * Container for user visible messages.\n */\npublic class Messages {\n\n public static final String MESSAGE_UNKNOWN_COMMAND = \"Unknown... | java | chosen |
[
{
"from": "system",
"value": "Add widget property has been renamed\n"
},
{
"from": "human",
"value": "package com.epam.ta.reportportal.ws.model.dashboard;\n\nimport com.fasterxml.jackson.annotation.JsonInclude;\nimport com.fasterxml.jackson.annotation.JsonProperty;\n\nimport javax.validation.Val... | java | chosen |
[
{
"from": "system",
"value": "Truncate filename if it exceeds 50 characters\n"
},
{
"from": "human",
"value": "package com.thinksincode.tailstreamer.controller;\n\nimport com.thinksincode.tailstreamer.FileTailService;\nimport com.thinksincode.tailstreamer.TailStreamer;\nimport org.springframewor... | java | chosen |
[
{
"from": "system",
"value": "Make NetworkDevice serializable to help with potential cache implementations. "
},
{
"from": "human",
"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 ... | java | chosen |
[
{
"from": "system",
"value": "Add method to get Connection from HbaseClient\n"
},
{
"from": "human",
"value": "package org.apache.hadoop.hbase.client;\n\n/**\n * Abstract class necessary to access protected parameters\n */\npublic abstract class AbstractHbaseClient {\n protected final String cl... | java | chosen |
[
{
"from": "system",
"value": "Fix out of bounds exception when danger zone is larger than the board\n"
},
{
"from": "human",
"value": "package com.srs.tetris.bob.evaluator;\n\nimport com.srs.tetris.bob.Position;\nimport com.srs.tetris.game.BitBoard;\n\n/**\n * Gives a high\n */\npublic class Dan... | java | chosen |
[
{
"from": "system",
"value": "Allow selector to be set after construction\n"
},
{
"from": "human",
"value": "package org.skyscreamer.yoga.selector;\n\nimport java.util.Set;\n\npublic abstract class AbstractSelectable implements Selectable\n{\n private Set<SelectorField> _selectorFields;\n\n ... | java | chosen |
[
{
"from": "system",
"value": "Revert \"Add query response minimizer parameter back\"\n\nThis reverts commit ead7b0d5c99c2e3d9ae14310af8f16bf56bf2a70.\n"
},
{
"from": "human",
"value": "package com.lloydtorres.stately.dto;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\n/**\n * Cre... | java | chosen |
[
{
"from": "system",
"value": "Add a missing timeout decoration\n\nSigned-off-by: David Lee <15c338f3b79a63a0d5423e9c6562cd312918fe74@gmail.com>\n"
},
{
"from": "human",
"value": "package org.zstack.header.storage.primary;\r\n\r\nimport org.zstack.header.message.NeedReplyMessage;\r\nimport org.zs... | java | chosen |
[
{
"from": "system",
"value": "Use long instead of Long when appropriate\n"
},
{
"from": "human",
"value": "package cgeo.geocaching;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class cgSearch {\n\tprivate Long id = null;\n\tprivate List<String> geocodes = new ArrayList<String... | java | chosen |
[
{
"from": "system",
"value": "Update problem 121 (not verified)\n"
},
{
"from": "human",
"value": "package leetcode;\n\n/**\n * https://leetcode.com/problems/best-time-to-buy-and-sell-stock/\n */\npublic class Problem121 {\n public int maxProfit(int[] prices) {\n return 0;\n }\n ... | java | chosen |
[
{
"from": "system",
"value": "Set Odometer only if there is a movement\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 * Odometer - total m... | java | chosen |
[
{
"from": "system",
"value": "Add cost to wolf totem\n\n"
},
{
"from": "human",
"value": "package com.corwinjv.mobtotems.blocks.tiles.TotemLogic;\n\nimport net.minecraft.item.ItemStack;\n\nimport javax.annotation.Nonnull;\nimport java.util.ArrayList;\nimport java.util.List;\n\n/**\n * Created by... | java | chosen |
[
{
"from": "system",
"value": "Add default case to supress warning"
},
{
"from": "human",
"value": "package com.mercateo.common.rest.schemagen;\n\nimport com.mercateo.common.rest.schemagen.generictype.GenericType;\n\nimport java.lang.reflect.ParameterizedType;\nimport java.lang.reflect.Type;\nimp... | java | chosen |
[
{
"from": "system",
"value": "Revert reduced failure level for try.\n"
},
{
"from": "human",
"value": "package mb.statix.constraints.messages;\n\nimport java.util.Map;\n\nimport javax.annotation.Nullable;\n\nimport com.google.common.collect.ImmutableMap;\n\nimport mb.statix.constraints.CAstId;\n... | java | chosen |
[
{
"from": "system",
"value": "Add support for item tab icon suppliers.\n"
},
{
"from": "human",
"value": "package net.darkhax.bookshelf.api.item;\n\nimport net.minecraft.resources.ResourceLocation;\nimport net.minecraft.world.item.CreativeModeTab;\nimport net.minecraft.world.item.ItemStack;\nimp... | java | chosen |
[
{
"from": "system",
"value": "Add method to build configuration model from wizard.\n"
},
{
"from": "human",
"value": "package com.github.aureliano.edocs.app.helper;\n\nimport java.net.URL;\n\nimport javax.swing.Icon;\nimport javax.swing.ImageIcon;\n\npublic final class GuiHelper {\n\n\tprivate G... | java | chosen |
[
{
"from": "system",
"value": "Include the status code in the string, and nicer messages\n\n\nFormer-commit-id: 60c52e31de5de813cbe1db16a291aadcaa473f90"
},
{
"from": "human",
"value": "package org.intermine.webservice.server;\n\n/*\n * Copyright (C) 2002-2011 FlyMine\n *\n * This code may be fre... | java | chosen |
[
{
"from": "system",
"value": "Cover `org.gradle.api.component` with nullability annotations\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2012 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 c... | java | chosen |
[
{
"from": "system",
"value": "Change message when an unknown command word is input\n"
},
{
"from": "human",
"value": "package seedu.emeraldo.commons.core;\n\n/**\n * Container for user visible messages.\n */\npublic class Messages {\n\n public static final String MESSAGE_UNKNOWN_COMMAND = \"U... | java | chosen |
[
{
"from": "system",
"value": "Add deleting status text to the demo adapter\n"
},
{
"from": "human",
"value": "package com.novoda.downloadmanager.demo.simple;\n\nimport com.novoda.downloadmanager.lib.DownloadManager;\n\nclass Download {\n private final String title;\n private final String f... | java | chosen |
[
{
"from": "system",
"value": "Add constant SUID and minor reformatting\n\nsvn path=/incubator/harmony/enhanced/classlib/trunk/; revision=410563\n"
},
{
"from": "human",
"value": "/* Copyright 1998, 2002 The Apache Software Foundation or its licensors, as applicable\r\n * \r\n * Licensed under th... | java | chosen |
[
{
"from": "system",
"value": "Change GLIDEIN_FINISHED to GLIDEIN_DELETED to make it clear when this event occurs\n\ngit-svn-id: bdb5f82b9b83a1400e05d69d262344b821646179@1387 e217846f-e12e-0410-a4e5-89ccaea66ff7\n"
},
{
"from": "human",
"value": "package edu.usc.glidein.service.state;\n\npublic e... | java | chosen |
[
{
"from": "system",
"value": "Use vaadin icon instead font awesome icon for home page"
},
{
"from": "human",
"value": "package com.github.yuri0x7c1.ofbiz.explorer.common.ui.view;\n\nimport org.vaadin.spring.sidebar.annotation.FontAwesomeIcon;\nimport org.vaadin.spring.sidebar.annotation.SideBarI... | java | chosen |
[
{
"from": "system",
"value": "Increase build types cache life for one day\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2016 Andrey Tolpeev\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": "system",
"value": "Check if the exact item already exists, and don't correct it.\n"
},
{
"from": "human",
"value": "package Debrief.Wrappers.Track;\n\nimport Debrief.Wrappers.FixWrapper;\nimport MWC.GUI.Plottables;\nimport MWC.GenericData.HiResDate;\n\npublic class FixWrapperCollision... | java | chosen |
[
{
"from": "system",
"value": "Trim newlines from output string\n"
},
{
"from": "human",
"value": "package com.gentics.mesh.distributed.containers;\n\nimport java.io.IOException;\nimport java.io.InputStream;\n\nimport org.apache.commons.io.IOUtils;\n\npublic final class UnixUtils {\n\n\tpublic st... | java | chosen |
[
{
"from": "system",
"value": "Fix warning related to deserialization\n"
},
{
"from": "human",
"value": "package fortiss.gui.listeners.button;\n\nimport java.awt.event.MouseAdapter;\nimport java.awt.event.MouseEvent;\n\nimport fortiss.gui.Designer;\nimport fortiss.gui.LoadingScreen;\nimport forti... | java | chosen |
[
{
"from": "system",
"value": "Remove unnecessary annotation due to failure during plugin start\n"
},
{
"from": "human",
"value": "package com.epam.jobizer.plugin;\n\nimport hudson.tasks.Builder;\nimport lombok.extern.java.Log;\n\n@Log\npublic class JobConfigurationBuilder extends Builder {\n}\n"... | java | chosen |
[
{
"from": "system",
"value": "Use ButterKnife in About Dialog\n"
},
{
"from": "human",
"value": "package fr.masciulli.drinks.fragment;\n\nimport android.app.AlertDialog;\nimport android.app.Dialog;\nimport android.content.pm.PackageInfo;\nimport android.content.pm.PackageManager;\nimport android... | java | chosen |
[
{
"from": "system",
"value": "Remove non required if else statement"
},
{
"from": "human",
"value": "package com.catpeds.rest.resource;\n\nimport java.util.Objects;\n\nimport org.springframework.hateoas.ResourceSupport;\n\nimport com.catpeds.model.Pedigree;\nimport com.fasterxml.jackson.annotati... | java | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.