conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Update Example - Submit New Comment"
},
{
"from": "human",
"value": "package surc.test;\r\n\r\nimport java.io.IOException;\r\nimport java.io.PrintWriter;\r\n\r\nimport javax.servlet.ServletException;\r\nimport javax.servlet.annotation.WebServlet;\r\nimport javax.ser... | java | chosen |
[
{
"from": "system",
"value": "Add new constructor to courseCategories\n"
},
{
"from": "human",
"value": "package uk.ac.ox.oucs.vle;\n\n\npublic class CourseCategoryDAO implements java.io.Serializable {\n\t\n\t/**\n\t * \n\t */\n\tprivate static final long serialVersionUID = 1L;\n\t\n\tprivate St... | java | chosen |
[
{
"from": "system",
"value": "Fix build failure, change generic test to abstract\n"
},
{
"from": "human",
"value": "package com.github.sbugat;\n\nimport java.lang.reflect.Constructor;\nimport java.lang.reflect.InvocationTargetException;\n\nimport org.junit.Test;\n\npublic class GenericUninstanti... | java | chosen |
[
{
"from": "system",
"value": "Remove unused import in Problem 219\n"
},
{
"from": "human",
"value": "package leetcode;\n\nimport java.util.HashMap;\nimport java.util.HashSet;\nimport java.util.Map;\nimport java.util.Set;\n\n/**\n * https://leetcode.com/problems/contains-duplicate-ii/\n */\npubli... | java | chosen |
[
{
"from": "system",
"value": "Set initial size for main toggle box\n"
},
{
"from": "human",
"value": "package com.easternedgerobotics.rov.fx;\n\nimport javafx.geometry.Insets;\nimport javafx.scene.Parent;\nimport javafx.scene.control.ToggleButton;\nimport javafx.scene.layout.BorderPane;\n\nimpor... | java | chosen |
[
{
"from": "system",
"value": "Change to more generic definition of mapper\n\nSigned-off-by: Fabio José <34f3a7e4e4d9fe971c99ebc4af947a5309eca653@gmail.com>\n"
},
{
"from": "human",
"value": "/**\n * Copyright 2019 The CloudEvents Authors\n *\n * Licensed under the Apache License, Version 2.0 (th... | java | chosen |
[
{
"from": "system",
"value": "Check for and create directories\n"
},
{
"from": "human",
"value": "package org.techern.dbsg;\n\nimport java.util.logging.Logger;\n\n/**\n * DyedBlockStateGenerator; A block state generator for dyed blocks\n *\n * @since 0.0.1\n */\npublic class DyedBlockStateGenera... | java | chosen |
[
{
"from": "system",
"value": "Remove international strings test to fix failing build\n"
},
{
"from": "human",
"value": "package me.ryleykimmel.brandywine.common;\n\nimport org.junit.Assert;\nimport org.junit.Test;\n\npublic final class StringsTest {\n\n @Test\n public void testToFirstUpper() {... | java | chosen |
[
{
"from": "system",
"value": "Correct value to match spec\n"
},
{
"from": "human",
"value": "/*\n * To change this license header, choose License Headers in Project Properties.\n * To change this template file, choose Tools | Templates\n * and open the template in the editor.\n */\npackage COSE;... | java | chosen |
[
{
"from": "system",
"value": "Rename and add missing modifier\n"
},
{
"from": "human",
"value": "package org.yoooo.se1;\n\nimport java.util.Scanner;\n\npublic class Application {\n public void run(String[] args) {\n\n }\n\n public SimpleDirectedWeightGraph<String, Integer> getGraph() {\... | java | chosen |
[
{
"from": "system",
"value": "Add test for JSON parse method\n"
},
{
"from": "human",
"value": "/**\n*\tIMDBHandlerTest.java\n*\n*\t@author Johan Brook\n*\t@copyright (c) 2012 Johan Brook\n*\t@license MIT\n*/\n\npackage se.chalmers.watchmetest.net;\n\nimport org.json.JSONArray;\nimport org.json.... | java | chosen |
[
{
"from": "system",
"value": "Make the calendar server a singleton\n"
},
{
"from": "human",
"value": "package com.gruppe27.fellesprosjekt.server;\n\nimport com.esotericsoftware.kryonet.Connection;\nimport com.esotericsoftware.kryonet.Server;\nimport com.gruppe27.fellesprosjekt.common.Network;\n\... | java | chosen |
[
{
"from": "system",
"value": "Fix ruler menu for breakpoints\n\nReview URL: http://codereview.chromium.org/99357\n\ngit-svn-id: 1dc80909446f7a7ee3e21dd4d1b8517df524e9ee@6 fc8a088e-31da-11de-8fef-1f5ae417a2df\n"
},
{
"from": "human",
"value": "// Copyright (c) 2009 The Chromium Authors. All right... | java | chosen |
[
{
"from": "system",
"value": "Add email field to login status.\n"
},
{
"from": "human",
"value": "package com.google.sps.servlets;\n\nimport com.google.appengine.api.users.UserServiceFactory;\nimport com.google.sps.utilities.CommonUtils;\nimport java.io.IOException;\nimport javax.servlet.annotat... | java | chosen |
[
{
"from": "system",
"value": "Change resazible window to false\n"
},
{
"from": "human",
"value": "package com.kduda.battleships;\n\nimport javafx.application.Application;\nimport javafx.fxml.FXMLLoader;\nimport javafx.scene.Parent;\nimport javafx.scene.Scene;\nimport javafx.stage.Stage;\n\npubl... | java | chosen |
[
{
"from": "system",
"value": "Add shutdown hook for garbage collector\n"
},
{
"from": "human",
"value": "package org.stuygfx;\n\nimport java.io.File;\nimport java.io.IOException;\nimport java.util.Scanner;\n\npublic class Main {\n\n private static Interpreter interpreter;\n private static ... | java | chosen |
[
{
"from": "system",
"value": "Add Android project to repo\n"
},
{
"from": "human",
"value": "package com.partiufast.mercadodowatto;\n\nimport android.support.v7.app.AppCompatActivity;\nimport android.os.Bundle;\n\npublic class MainActivity extends AppCompatActivity {\n\n @Override\n protec... | java | chosen |
[
{
"from": "system",
"value": "Add APL2 header and fix a typo.\n"
},
{
"from": "human",
"value": "package groovy.lang;\n\nimport java.lang.annotation.Documented;\nimport java.lang.annotation.ElementType;\nimport java.lang.annotation.Retention;\nimport java.lang.annotation.RetentionPolicy;\nimport... | java | chosen |
[
{
"from": "system",
"value": "Disable Spring parsing of CLI arguments as properties\n"
},
{
"from": "human",
"value": "/*\n *\n * Copyright 2018 Netflix, Inc.\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": "Fix error of getting null value\n"
},
{
"from": "human",
"value": "package com.hmsonline.storm.cassandra.client;\n\nimport com.netflix.astyanax.Serializer;\nimport com.netflix.astyanax.model.Column;\n\npublic class AstyanaxColumn<K, V> implements com.hmsonline.storm... | java | chosen |
[
{
"from": "system",
"value": "Clone bounds, don't share them!\n"
},
{
"from": "human",
"value": "package com.opensymphony.workflow.designer;\n\nimport java.awt.*;\n\nimport javax.swing.*;\n\nimport org.jgraph.graph.DefaultGraphCell;\nimport org.jgraph.graph.GraphConstants;\n\n/**\n * @author Har... | java | chosen |
[
{
"from": "system",
"value": "Add RPI3B+ support and remove IMX6UL\n\nUpdate samples to add RPI3B+ and remove IMX6UL support.\n\nBug: 112590677\nBug: 112603667\nChange-Id: I99d174bf17bc75e1d17192bc1e1227c97f85d171\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2016, The Android Open Source ... | java | chosen |
[
{
"from": "system",
"value": "Update join(String, String...) and add method to append a String to a String[]\n"
},
{
"from": "human",
"value": "package net.hexid;\n\nimport java.util.List;\nimport java.io.File;\n\npublic class Utils {\n\t/**\n\t * Combine strings with a common string\n\t * @para... | java | chosen |
[
{
"from": "system",
"value": "Fix ConcurrentModificationException in tile chunk load hook\n"
},
{
"from": "human",
"value": "package codechicken.lib.world;\n\nimport net.minecraft.tileentity.TileEntity;\nimport net.minecraftforge.common.MinecraftForge;\nimport net.minecraftforge.event.world.Chun... | java | chosen |
[
{
"from": "system",
"value": "Add constructor to init currentRobot, add comment for temp\n"
},
{
"from": "human",
"value": "package org.robockets.robotswitcher;\n\nimport edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;\n\npublic class Switcher {\n\t\n\tpublic int getRobot(){\n\t\tint curren... | java | chosen |
[
{
"from": "system",
"value": "Rebase add 1 You are currently rebasing branch 'master' on '924427b'.\n"
},
{
"from": "human",
"value": "package com.example.myapplication;\n\nimport android.support.v7.app.AppCompatActivity;\nimport android.os.Bundle;\n\npublic class MainActivity extends AppCompatA... | java | chosen |
[
{
"from": "system",
"value": "Augment error message during testing to include full cause of problem.\n\nSigned-off-by: Terence Parr <275b89323d950c58c02f5ad8c33bac7ecb40d004@antlr.org>\n"
},
{
"from": "human",
"value": "/*\n * Copyright (c) 2012-2022 The ANTLR Project. All rights reserved.\n * U... | java | chosen |
[
{
"from": "system",
"value": "Remove another instance of flyway baseline\n\nFor consistency with 681d234e1b7bddd03f356ddab80b367de3626702 - we\nshould configure flyway the same way everywhere.\n"
},
{
"from": "human",
"value": "package uk.gov.register.resources;\n\nimport org.flywaydb.core.Flywa... | java | chosen |
[
{
"from": "system",
"value": "Remove unused import of EAgainException\n"
},
{
"from": "human",
"value": "package nanomsg;\n\nimport nanomsg.exceptions.IOException;\nimport nanomsg.exceptions.EAgainException;\n\n/**\n * Common interface that should implement all sockets.\n */\npublic interface IS... | java | chosen |
[
{
"from": "system",
"value": "Clean up for building blocks.\n"
},
{
"from": "human",
"value": "package com.nexmo.quickstart.voice;\n\nimport com.nexmo.client.NexmoClient;\nimport com.nexmo.client.auth.AuthMethod;\nimport com.nexmo.client.auth.JWTAuthMethod;\nimport com.nexmo.client.voice.Call;\n... | java | chosen |
[
{
"from": "system",
"value": "Add method to find account by username to the repository\n"
},
{
"from": "human",
"value": "package io.github.saidie.plantuml_api;\n\nimport org.springframework.data.repository.PagingAndSortingRepository;\nimport org.springframework.data.rest.core.annotation.Reposit... | java | chosen |
[
{
"from": "system",
"value": "Check that GreatestCommonDivisor accepts both arguments negative\n"
},
{
"from": "human",
"value": "package se.ericthelin.fractions;\n\nimport org.junit.Test;\n\nimport static org.hamcrest.CoreMatchers.is;\nimport static org.junit.Assert.assertThat;\n\npublic class ... | java | chosen |
[
{
"from": "system",
"value": "Fix argument order of tile item message ctor call\n\nRearrange the arguments passed to the SendTileItemUpdateMessage\nconstructor when recording a ground item RegionUpdate. Fixes #316.\n"
},
{
"from": "human",
"value": "package org.apollo.game.model.area.update;\n\... | java | chosen |
[
{
"from": "system",
"value": "Set checked then clear animation, rather than toggling visibility\n"
},
{
"from": "human",
"value": "package com.kickstarter.libs.utils;\n\nimport android.support.annotation.NonNull;\nimport android.support.v7.widget.SwitchCompat;\nimport android.view.View;\n\npubli... | java | chosen |
[
{
"from": "system",
"value": "Remove /irc status - now just doing /irc gets you the same thing.\n"
},
{
"from": "human",
"value": "package com.forgeessentials.chat.commands;\n\nimport com.forgeessentials.chat.irc.IRCHelper;\nimport com.forgeessentials.core.commands.ForgeEssentialsCommandBase;\ni... | java | chosen |
[
{
"from": "system",
"value": "REmove unused imports and fields.\n"
},
{
"from": "human",
"value": "package com.openxc.remote.sources;\n\nimport java.lang.reflect.InvocationTargetException;\nimport java.lang.reflect.Method;\n\nimport android.util.Log;\n\nimport com.openxc.remote.sources.SourceCal... | java | chosen |
[
{
"from": "system",
"value": "Fix minor mismatched class usage\n"
},
{
"from": "human",
"value": "/*-\n * -\\-\\-\n * docker-client\n * --\n * Copyright (C) 2016 Spotify AB\n * --\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compli... | java | chosen |
[
{
"from": "system",
"value": "Revert \"added cacheable method interceptor's implementation\"\n\nThis reverts commit 411e1364e0b00b6f3dc6bb33f30396892bb7c271.\n"
},
{
"from": "human",
"value": "package org.apache.flume.interceptor.service;\n\nimport java.io.IOException;\nimport java.io.FileNotFou... | java | chosen |
[
{
"from": "system",
"value": "Use a static field for tracking wifi connected state\n"
},
{
"from": "human",
"value": "package nl.rmokveld.castnotifications;\n\nimport android.content.BroadcastReceiver;\nimport android.content.Context;\nimport android.content.Intent;\nimport android.net.wifi.Wifi... | java | chosen |
[
{
"from": "system",
"value": "Create copy of input array\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2004-present Facebook. All Rights Reserved.\n */\npackage com.facebook.presto.operator;\n\nimport com.facebook.presto.block.Block;\nimport com.google.common.base.Preconditions;\n\npublic ... | java | chosen |
[
{
"from": "system",
"value": "Add use of nonexistent import in test java class\n\nSummary:\nThis import that is crucial to the correctness of the test\nis removed by google java formatter if we don't use it.\n\nReviewed By: philipjameson\n\nfbshipit-source-id: 60edc85241\n"
},
{
"from": "human",
... | java | chosen |
[
{
"from": "system",
"value": "Make sidebar accessible for extensions\n\ngit-svn-id: e2c3038d01fb1e63d9a6e7e9a258c7088cd26e08@1159239 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "human",
"value": "package org.apache.karaf.webconsole.core;\n\nimport java.util.Collections;\nimport java.uti... | java | chosen |
[
{
"from": "system",
"value": "Add information about disabled javascript and how to enable it\n"
},
{
"from": "human",
"value": "package com.joshmcarthur.android.web_view_sample;\n\nimport android.app.Activity;\nimport android.os.Bundle;\nimport android.view.Menu;\nimport android.webkit.WebView;\... | java | chosen |
[
{
"from": "system",
"value": "Put some throwing code in the body of the `try`.\n\nThat encourages Checker Framework to run dataflow over the `catch`:\nhttps://github.com/typetools/checker-framework/issues/4265\n\nDepending on how a checker author chooses to implement \"caught\nexceptions are non-null,\" thi... | java | chosen |
[
{
"from": "system",
"value": "Add new line before message\n\nSigned-off-by: Nuno Azevedo <8c1e4f9df2ead62a44323c12422702b1d8dd9c90@gmail.com>\n"
},
{
"from": "human",
"value": "public class NotifierI extends Streaming._NotifierDisp {\n public void inform(String stream, Ice.Current current) {\... | java | chosen |
[
{
"from": "system",
"value": "Fix message coordinate tokens all resolving to x coordinate\n\nFixes #18\n"
},
{
"from": "human",
"value": "package com.lesserhydra.secondchance;\n\nimport org.bukkit.ChatColor;\nimport org.bukkit.Location;\nimport org.bukkit.entity.Player;\n\npublic class Deathpoin... | java | chosen |
[
{
"from": "system",
"value": "Use correct kind of Episode.\n"
},
{
"from": "human",
"value": "\npackage com.battlelancer.seriesguide.dataliberation.model;\n\nimport com.battlelancer.seriesguide.items.Episode;\nimport com.google.myjson.annotations.SerializedName;\n\nimport java.util.List;\n\npubl... | java | chosen |
[
{
"from": "system",
"value": "Fix IllegalStateException if we recreate Activities\n\nWe do not need to unregister `WifiBroadcastReceiver` if some Activities still need to monitor Wi-Fi.\n"
},
{
"from": "human",
"value": "package cl.monsoon.s1next.widget;\n\nimport android.app.Activity;\nimport a... | java | chosen |
[
{
"from": "system",
"value": "[DG,LL] Add test to the test suite\n"
},
{
"from": "human",
"value": "package com.sw_ss16.lc_app.ui.tests;\n\nimport android.app.Activity;\nimport android.test.ActivityInstrumentationTestCase2;\n\nimport junit.framework.TestSuite;\n\npublic class AllTests extends Ac... | java | chosen |
[
{
"from": "system",
"value": "Remove parse unit test for now\n\ngit-svn-id: f699b99be54c313e643266d5dd560bc939300b59@577 f90f6e9a-ac51-0410-b353-d1b83c6f6923\n"
},
{
"from": "human",
"value": "package org.encog.parse;\n\nimport java.util.Collection;\nimport java.util.List;\n\nimport org.encog.pa... | java | chosen |
[
{
"from": "system",
"value": "Change request from object to string.\n"
},
{
"from": "human",
"value": "package com.royalrangers.controller;\n\nimport com.royalrangers.dto.ResponseResult;\nimport com.royalrangers.dto.user.EmailDto;\nimport com.royalrangers.service.SubscribeService;\nimport com.ro... | java | chosen |
[
{
"from": "system",
"value": "Add helper methods for creating args\n"
},
{
"from": "human",
"value": "package fi.helsinki.cs.tmc.cli.command;\n\nimport static org.junit.Assert.assertTrue;\n\nimport fi.helsinki.cs.tmc.cli.Application;\n\nimport org.junit.Before;\nimport org.junit.BeforeClass;\nim... | java | chosen |
[
{
"from": "system",
"value": "Disable Crashlytics for debug builds\n"
},
{
"from": "human",
"value": "package net.squanchy.analytics;\n\nimport com.crashlytics.android.Crashlytics;\n\nimport timber.log.Timber;\n\npublic class CrashlyticsErrorsTree extends Timber.Tree {\n\n @Override\n prot... | java | chosen |
[
{
"from": "system",
"value": "Add support for different time units in the response time attribute\n"
},
{
"from": "human",
"value": "package io.undertow.attribute;\n\nimport io.undertow.server.HttpServerExchange;\n\n/**\n * The response time\n *\n * This will only work if {@link io.undertow.Unde... | java | chosen |
[
{
"from": "system",
"value": "Make tests more realistic by doing some “work” other than writing console output, moreso, moreso.\n"
},
{
"from": "human",
"value": "package ${packageName};\n\nimport static org.junit.Assert.*;\n\npublic class ${testClassName} {\n\n private final ${productionClas... | java | chosen |
[
{
"from": "system",
"value": "Split lines 26 and line 28\n"
},
{
"from": "human",
"value": "package seedu.ezdo.model.task;\n\nimport static org.junit.Assert.assertTrue;\n\nimport org.junit.Test;\n\nimport seedu.ezdo.model.tag.UniqueTagList;\nimport seedu.ezdo.model.todo.DueDate;\nimport seedu.ez... | java | chosen |
[
{
"from": "system",
"value": "Add unit tests for Utils"
},
{
"from": "human",
"value": "package com.kbolino.libraries.bytestring;\n\npublic class UtilsTest {\n\t// TODO\n}\n"
},
{
"from": "gpt",
"value": "package com.kbolino.libraries.bytestring;\r\n\r\nimport static org.junit.Assert... | java | chosen |
[
{
"from": "system",
"value": "Remove empty line - github.com connectivity test"
},
{
"from": "human",
"value": "package com.codeaffine.eclipse.swt.util;\n\nimport org.eclipse.swt.events.MouseEvent;\nimport org.eclipse.swt.graphics.Point;\nimport org.eclipse.swt.widgets.Control;\n\npublic class M... | java | chosen |
[
{
"from": "system",
"value": "Use updated componenthandler in ComponentNodeDeserializer\n"
},
{
"from": "human",
"value": "package com.graphicsengine.io.gson;\n\nimport java.lang.reflect.Type;\n\nimport com.google.gson.JsonDeserializationContext;\nimport com.google.gson.JsonDeserializer;\nimport... | java | chosen |
[
{
"from": "system",
"value": "Use try/finally to ensure oldValue is cleared\n\nIf any JS exception is thrown during event delivery the oldValue\nshould still be set to null to enable garbage collection.\n\nChange-Id: I740db06e93162f86982ffd418c2072bfb4d5d75c\n"
},
{
"from": "human",
"value": "//... | java | chosen |
[
{
"from": "system",
"value": "Break test into 3 methods; work around weirdness in data\n"
},
{
"from": "human",
"value": "package jeoip;\n\nimport java.io.IOException;\n\nimport org.junit.*;\n\nimport static org.junit.Assert.*;\n\npublic class JeoIPTest {\n\tJeoIP target;\n\n\t@Before\n\tpublic ... | java | chosen |
[
{
"from": "system",
"value": "Remove map test from selenium cause it requires the occ index to have squirrels\n"
},
{
"from": "human",
"value": "package org.gbif.portal.selenium;\n\nimport org.junit.Test;\nimport org.openqa.selenium.By;\nimport org.openqa.selenium.WebElement;\n\nimport static or... | java | chosen |
[
{
"from": "system",
"value": "Fix NPE when calling setUpdateListener(null)\n\nBUG: 24931167\nChange-Id: I931c4060c8a892b950085383473f228faf0dd567\n"
},
{
"from": "human",
"value": "/*\n * Copyright (C) 2014 The Android Open Source Project\n *\n * Licensed under the Apache License, Version 2.0 (t... | java | chosen |
[
{
"from": "system",
"value": "Update myTBA on launch always\n"
},
{
"from": "human",
"value": "package com.thebluealliance.androidclient;\n\nimport android.app.Application;\nimport android.util.Log;\n\nimport com.google.android.gms.analytics.Tracker;\nimport com.thebluealliance.androidclient.acc... | java | chosen |
[
{
"from": "system",
"value": "Fix the API/CLIENT API keys.\n"
},
{
"from": "human",
"value": "// Copyright (c) 2015, Wojciech Adam Koszek <wojciech@koszek.com>\n// All rights reserved.\n\npackage com.barvoy.sensorama;\n\n\nimport android.app.Application;\nimport android.content.Context;\n\nimpor... | java | chosen |
[
{
"from": "system",
"value": "Fix contact builder with correct group model\n"
},
{
"from": "human",
"value": "package io.rapidpro.sdk.core.adapters;\n\nimport java.util.ArrayList;\nimport java.util.HashMap;\nimport java.util.List;\n\nimport io.rapidpro.sdk.core.models.Contact;\nimport io.rapidpr... | java | chosen |
[
{
"from": "system",
"value": "Fix enchantment default tooltips not checking translation keys for existance\n\n"
},
{
"from": "human",
"value": "package com.enderio.core.api.common.enchant;\r\n\r\nimport javax.annotation.Nonnull;\r\nimport javax.annotation.Nullable;\r\n\r\nimport com.enderio.core... | java | chosen |
[
{
"from": "system",
"value": "Set payments fetch type to eager\n"
},
{
"from": "human",
"value": "package com.centralnabanka.model;\n\nimport lombok.Data;\nimport lombok.EqualsAndHashCode;\nimport lombok.NoArgsConstructor;\n\nimport javax.persistence.CascadeType;\nimport javax.persistence.Entity... | java | chosen |
[
{
"from": "system",
"value": "Remove @GeneratedValue from test entity as the id is provided\n"
},
{
"from": "human",
"value": "package org.hibernate.ogm.test.simpleentity;\n\nimport javax.persistence.Entity;\nimport javax.persistence.GeneratedValue;\nimport javax.persistence.Id;\n\nimport org.hi... | java | chosen |
[
{
"from": "system",
"value": "fix(catalog-type): Return translated name for catalog types when possible\n"
},
{
"from": "human",
"value": "package valandur.webapi.cache.misc;\n\nimport org.spongepowered.api.CatalogType;\nimport valandur.webapi.api.cache.CachedObject;\n\npublic class CachedCatalo... | java | chosen |
[
{
"from": "system",
"value": "Add possibility to run against test\n"
},
{
"from": "human",
"value": "package edu.berkeley.nlp;\n\nimport edu.berkeley.nlp.assignments.POSTaggerTester;\n\n/**\n * @author Dan Klein\n */\npublic class Test<E> {\n public static void main(String[] args) {\n POST... | java | chosen |
[
{
"from": "system",
"value": "Javadoc: Clarify that participants (listener) will be called from any\nthread. There is no guarantee that the invocation originates from within\nthe UI thread."
},
{
"from": "human",
"value": "package org.lamport.tla.toolbox.tool;\r\n\r\n/**\r\n * A superclass for S... | java | chosen |
[
{
"from": "system",
"value": "Fix the type in the data fixer upper to block entity"
},
{
"from": "human",
"value": "package info.u_team.u_team_core.util.registry;\n\nimport java.util.function.Supplier;\n\nimport com.mojang.datafixers.DataFixUtils;\n\nimport net.minecraft.tileentity.*;\nimport ne... | java | chosen |
[
{
"from": "system",
"value": "Add the setters to the servlet getters in the category.\n\n\ngit-svn-id: aa43ce4553b005588bb3cc6c16966320b011facb@1184 a5544e8c-8a19-0410-ba12-f9af4593a198\n"
},
{
"from": "human",
"value": "/*\n * Created on Apr 27, 2004\n *\n * TODO To change the template for this... | java | chosen |
[
{
"from": "system",
"value": "UPDATE: Split the old \"visible\" binding attribute into two separate attributes: \"visible\" and \"shown\".\n"
},
{
"from": "human",
"value": "package com.oasisfeng.android.databinding.adapters;\n\nimport android.databinding.BindingAdapter;\nimport android.view.Vie... | java | chosen |
[
{
"from": "system",
"value": "Make methods and class public\n"
},
{
"from": "human",
"value": "package me.walkersneps.sneps.utils;\n\n/**\n * Created by Walkersneps on 23/04/16\n * in package me.walkersneps.sneps.utils\n * for SnepsUtils\n */\n\n/**\n * @author Walkersneps\n */\nclass PrimitiveC... | java | chosen |
[
{
"from": "system",
"value": "Add Daily forecast class initalization and parsing\n"
},
{
"from": "human",
"value": "package com.nikolak.weatherapp.ForecastIO;\n\n\n\nimport android.util.Log;\n\nimport org.json.JSONException;\nimport org.json.JSONObject;\n\npublic class Forecast {\n public Cur... | java | chosen |
[
{
"from": "system",
"value": "Fix position of curly brace\n"
},
{
"from": "human",
"value": "package annotations.util;\n\n/*>>>\nimport org.checkerframework.checker.nullness.qual.*;\n*/\n\n/**\n * {@link Strings} provides useful static methods related to strings.\n */\npublic abstract class Stri... | java | chosen |
[
{
"from": "system",
"value": "Revert \"Todo: clean code 2/?\"\n\nThis reverts commit 376a39e93949b71708bf6284d4468d0a8156c332.\n"
},
{
"from": "human",
"value": "package com.mads256c.betterchat;\n\nimport cpw.mods.fml.common.event.FMLInitializationEvent;\nimport cpw.mods.fml.common.event.FMLPost... | java | chosen |
[
{
"from": "system",
"value": "Make external static folder be *nix like\n\nWhen Windows paths are received, like `C:\\Users\\USERNAME\\AppData\\Local\\Temp\\external\\`, they will be changed to `C:/Users/USERNAME/AppData/Local/Temp/external`."
},
{
"from": "human",
"value": "package spark.staticf... | java | chosen |
[
{
"from": "system",
"value": "Change code style to google code style.\n"
},
{
"from": "human",
"value": "/**\n * Package of test cases.\n * <p>\n * Spring test must extends {@link com.saintdan.framework.BaseTest}\n * </p>\n *\n * @author <a href=\"http://github.com/saintdan\">Liao Yifan</a>\... | java | chosen |
[
{
"from": "system",
"value": "Remove explicit instantiation as bean is CDI managed\n"
},
{
"from": "human",
"value": "package org.realityforge.tarrabah;\n\nimport javax.inject.Inject;\nimport org.jboss.netty.channel.ChannelPipeline;\nimport org.jboss.netty.channel.ChannelPipelineFactory;\nimport... | java | chosen |
[
{
"from": "system",
"value": "Fix checkstyle issue: parameter constraintAnnotation hides field\n"
},
{
"from": "human",
"value": "package com.github.britter.beanvalidators.file;\n\nimport javax.validation.ConstraintValidator;\nimport javax.validation.ConstraintValidatorContext;\nimport javax.val... | java | chosen |
[
{
"from": "system",
"value": "Add unit test for the parser's tokeniser\n\ngit-svn-id: 50f83ef66c13f323b544ac924010c921a9f4a0f7@2144 00569f92-eb28-0410-84fd-f71c24880f43\n"
},
{
"from": "human",
"value": "/*\n * ServerManagerTest.java\n * JUnit 4.x based test\n *\n */\n\npackage com.dmdirc.parser... | java | chosen |
[
{
"from": "system",
"value": "Allow names with more than one word"
},
{
"from": "human",
"value": "package com.enjin.averian_roleplay.core;\n\nimport org.bukkit.ChatColor;\nimport org.bukkit.command.Command;\nimport org.bukkit.command.CommandExecutor;\nimport org.bukkit.command.CommandSender;\ni... | java | chosen |
[
{
"from": "system",
"value": "Add collections to JSON arrays\n"
},
{
"from": "human",
"value": "package com.aemreunal.helper.json;\n\n/*\n * *********************** *\n * Copyright (c) 2015 *\n * *\n * This code belongs to: *\n * *\n * @auth... | java | chosen |
[
{
"from": "system",
"value": "Use more accurate comment to suppress warning\n"
},
{
"from": "human",
"value": "package uk.gov.register.presentation;\n\nimport com.fasterxml.jackson.annotation.JsonProperty;\nimport com.fasterxml.jackson.annotation.JsonPropertyOrder;\n\n@JsonPropertyOrder({\"proof... | java | chosen |
[
{
"from": "system",
"value": "Send hostname from java client\n"
},
{
"from": "human",
"value": "package com.bugsnag;\n\nimport org.json.JSONObject;\nimport org.json.JSONException;\n\nimport com.bugsnag.utils.JSONUtils;\n\npublic class Diagnostics {\n protected Configuration config;\n prote... | java | chosen |
[
{
"from": "system",
"value": "Exclude velocity auto config. Problematic in multi webapp deployments. Further review necessary to determine why the class linkage problem exists. Since WebAPI is headless, seemed appropriate to exclude.\n"
},
{
"from": "human",
"value": "package org.ohdsi.webapi;\... | java | chosen |
[
{
"from": "system",
"value": "Fix return reserved keyword error\n"
},
{
"from": "human",
"value": "package com.sailthru.client;\n\n/**\n * API calls\n * @author Prajwal Tuladhar <praj@sailthru.com>\n */\npublic enum ApiAction {\n event,\n settings,\n email,\n send,\n blast,\n b... | java | chosen |
[
{
"from": "system",
"value": "Make all share fields public.\n"
},
{
"from": "human",
"value": "package com.jakewharton.trakt.entities;\n\nimport com.jakewharton.trakt.TraktEntity;\n\npublic class Share implements TraktEntity {\n\n boolean facebook;\n boolean twitter;\n boolean tumblr;\n... | java | chosen |
[
{
"from": "system",
"value": "Update problem 73 (not finished yet)\n"
},
{
"from": "human",
"value": "package leetcode;\n\nimport java.util.Arrays;\n\n/**\n * https://leetcode.com/problems/set-matrix-zeroes/\n */\npublic class Problem73 {\n public void setZeroes(int[][] matrix) {\n \n ... | java | chosen |
[
{
"from": "system",
"value": "Add @Override where it's needed\n"
},
{
"from": "human",
"value": "package editor.util;\n\nimport java.util.function.Supplier;\n\n/**\n * This class represents an action that can be undone, which is done by simply\n * using two actions that are semantically supposed... | java | chosen |
[
{
"from": "system",
"value": "Fix string length comparer when attempting to get the same length (A comparator for a tree map can not have the return value 0, since the key is not inserted then)\n"
},
{
"from": "human",
"value": "package org.rmatil.sync.core;\n\nimport java.util.Comparator;\n\n/*... | java | chosen |
[
{
"from": "system",
"value": "Comment and licence header for PartitionedKVConstants.\n"
},
{
"from": "human",
"value": "package com.palantir.atlasdb.keyvalue.partition;\n\npublic class PartitionedKeyValueConstants {\n private PartitionedKeyValueConstants() {\n }\n\n public static final ... | java | chosen |
[
{
"from": "system",
"value": "Replace anonymous Runnable with lambda expression"
},
{
"from": "human",
"value": "package com.codeaffine.eclipse.swt.widget.scrollable;\n\nimport org.eclipse.swt.events.SelectionAdapter;\nimport org.eclipse.swt.events.SelectionEvent;\nimport org.eclipse.swt.graphic... | java | chosen |
[
{
"from": "system",
"value": "Revert accidental call to `.close()`\n\nRemove call to `.close()` which was accidentally left in after some\nperformance testing.\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2012-2017 the original author or authors.\n *\n * Licensed under the Apache License,... | java | chosen |
[
{
"from": "system",
"value": "core: Modify constructor to be compatible with caller method\n\nConnectDomainToStorageCommand is being called without context\nalthough its constructor is only supported with context parameter,\nso we will always get runtime exception when the command is being\ncalled.\n\nThe p... | java | chosen |
[
{
"from": "system",
"value": "Fix ISO 8601 date format to confrom to Blob Storage REST API implementation\n"
},
{
"from": "human",
"value": "package com.microsoft.azure.services.blob.implementation;\n\nimport java.text.DateFormat;\nimport java.text.ParseException;\nimport java.text.SimpleDateFor... | java | chosen |
[
{
"from": "system",
"value": "Make GrowthPusException subclass of GrowthbeatException\n"
},
{
"from": "human",
"value": "package com.growthpush;\n\npublic class GrowthPushException extends RuntimeException {\n\n\tprivate static final long serialVersionUID = 1L;\n\n\tpublic GrowthPushException() ... | java | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.