conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Create copy of internal file size when initialising unknown one\n"
},
{
"from": "human",
"value": "package com.novoda.downloadmanager;\n\nfinal class InternalFileSizeCreator {\n\n private static final int ZERO_BYTES = 0;\n private static final InternalFileSize... | java | chosen |
[
{
"from": "system",
"value": "Update address book change event to activity\n\n"
},
{
"from": "human",
"value": "package seedu.address.commons.events.model;\n\nimport seedu.address.commons.events.BaseEvent;\nimport seedu.address.model.ReadOnlyAddressBook;\n\n/** Indicates the AddressBook in the m... | java | chosen |
[
{
"from": "system",
"value": "Fix interaction with door by replicating the BlockReginoComponent.\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2013 MovingBlocks\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": "system",
"value": "Fix inappropriate annotation usage in service interface\n"
},
{
"from": "human",
"value": "package cvut.arenaq.mashup.AlchemyApi;\r\n\r\nimport retrofit.Call;\r\nimport retrofit.http.GET;\r\nimport retrofit.http.Path;\r\n\r\npublic interface AlchemyApiService {\r\n ... | java | chosen |
[
{
"from": "system",
"value": "Fix a copy/paste error in a comment."
},
{
"from": "human",
"value": "// Copyright (C) 2014 Tom <tw201207@gmail.com>\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// Yo... | java | chosen |
[
{
"from": "system",
"value": "Fix spotbugs warning about modifiable byte[].\n"
},
{
"from": "human",
"value": "package nl.sikken.bertrik.hab.ttn;\n\nimport com.fasterxml.jackson.annotation.JsonIgnoreProperties;\nimport com.fasterxml.jackson.annotation.JsonProperty;\nimport com.fasterxml.jackson.... | java | chosen |
[
{
"from": "system",
"value": "Update java mail message adapter."
},
{
"from": "human",
"value": "package org.helianto.message.sender;\n\nimport javax.mail.MessagingException;\nimport javax.mail.internet.MimeMessage;\n\nimport org.helianto.message.AbstractMessageAdapter;\nimport org.springframewo... | java | chosen |
[
{
"from": "system",
"value": "Add empty string check to prevent tooltip creation for empty strings\n"
},
{
"from": "human",
"value": "package io.bisq.gui.components;\n\nimport javafx.scene.control.Labeled;\nimport javafx.scene.control.SkinBase;\nimport javafx.scene.control.Tooltip;\nimport javaf... | java | chosen |
[
{
"from": "system",
"value": "Support for types using declarative scoping\n"
},
{
"from": "human",
"value": "/**\n * generated by Xtext\n */\npackage cl.uchile.pleiad.scoping;\n\nimport org.eclipse.xtext.scoping.impl.AbstractDeclarativeScopeProvider;\n\n/**\n * This class contains custom scoping... | java | chosen |
[
{
"from": "system",
"value": "Add proper scoping inside rules.\n"
},
{
"from": "human",
"value": "/*\n * generated by Xtext\n */\npackage eu.indenica.config.runtime.scoping;\n\nimport org.eclipse.emf.ecore.EReference;\nimport org.eclipse.xtext.scoping.IScope;\nimport org.eclipse.xtext.scoping.Sc... | java | chosen |
[
{
"from": "system",
"value": "Fix copy and paste error in javadoc.\n"
},
{
"from": "human",
"value": "package uk.ac.ebi.quickgo.annotation.validation;\n\nimport java.lang.annotation.*;\nimport javax.validation.Constraint;\nimport javax.validation.Payload;\n\n/**\n * Annotation that allows a list... | java | chosen |
[
{
"from": "system",
"value": "Make response wrapper members final.\n"
},
{
"from": "human",
"value": "package retrofit.http;\n\nimport retrofit.http.client.Response;\n\n/**\n * A wrapper that holds the {@link Response} and {@link Converter} response to be used by the\n * {@link CallbackRunnable}... | java | chosen |
[
{
"from": "system",
"value": "Use URI instead of URL\n"
},
{
"from": "human",
"value": "package com.youcruit.onfido.api.webhook;\n\nimport java.net.URL;\nimport java.util.Date;\n\nimport com.google.gson.annotations.Expose;\nimport com.google.gson.annotations.SerializedName;\n\npublic class Event... | java | chosen |
[
{
"from": "system",
"value": "Add documentaiton to guard rail\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2016 Timothy Brooks\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 ... | java | chosen |
[
{
"from": "system",
"value": "Fix missing configuration for Accessibility listener on pre-Jelly Bean devices\n"
},
{
"from": "human",
"value": "package com.lukekorth.screennotifications;\r\n\r\npublic class ScreenNotificationsService extends BaseAccessibilityService {\r\n\r\n public void onSe... | java | chosen |
[
{
"from": "system",
"value": "Fix issues with uneven pose stack push-pop in IItemRenderer\n\n"
},
{
"from": "human",
"value": "package codechicken.lib.model;\n\nimport codechicken.lib.util.TransformUtils;\nimport com.mojang.blaze3d.vertex.PoseStack;\nimport net.minecraft.client.renderer.block.mo... | java | chosen |
[
{
"from": "system",
"value": "Change method names to match the spec\n"
},
{
"from": "human",
"value": "package ceylon;\n\npublic final class Integer\n{\n private final long value;\n private Integer(long l) {\n value = l;\n }\n\n public static ceylon.Integer instance(long l) {\... | java | chosen |
[
{
"from": "system",
"value": "Use correct sound type for block place sound emulation\n\nThis however has one major drawback - many place sounds aren't mapped\ncorrectly in PS, so it's worse than using step sound.\n"
},
{
"from": "human",
"value": "package protocolsupport.listeners.emulation;\n\n... | java | chosen |
[
{
"from": "system",
"value": "Fix issue with startup of admin-web\n"
},
{
"from": "human",
"value": "package io.fundrequest.platform.admin;\n\nimport io.fundrequest.common.infrastructure.IgnoreDuringComponentScan;\nimport io.fundrequest.core.FundRequestCore;\nimport io.fundrequest.platform.githu... | java | chosen |
[
{
"from": "system",
"value": "Add @DoNotInstrument to Opus extension test\n\nPiperOrigin-RevId: 370740311\n"
},
{
"from": "human",
"value": "/*\n * Copyright (C) 2019 The Android Open Source Project\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use thi... | java | chosen |
[
{
"from": "system",
"value": "Add no-args constructor to avoid NPE during page de-serialization\n"
},
{
"from": "human",
"value": "package com.jvm_bloggers.frontend.public_area.common_layout;\n\nimport com.jvm_bloggers.domain.query.newsletter_issue_for_listing.NewsletterIssueForListing;\nimport ... | java | chosen |
[
{
"from": "system",
"value": "Test correct output in batch norm case\n"
},
{
"from": "human",
"value": "// Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\npackage com.yahoo.searchlib.rankingexpression.integration.ml;\n\nimport ... | java | chosen |
[
{
"from": "system",
"value": "Add agent to wire class\n"
},
{
"from": "human",
"value": "// Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\npackage com.yahoo.vespa.hosted.controller.api.integration.noderepository;\n\nimport com... | java | chosen |
[
{
"from": "system",
"value": "Initialize seq without type in take test class\n"
},
{
"from": "human",
"value": "package com.jmonad.seq;\n\nimport org.junit.Test;\n\npublic class SeqTakeTest {\n\n private Integer[] numbers = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};\n private Seq<Integer> elements = new... | java | chosen |
[
{
"from": "system",
"value": "Add new change types: NEW_FILE, NEW_FOLDER, UNTRASHED\n"
},
{
"from": "human",
"value": "package drive.change.model;\n\n/**\n * JDrive\n * Created by David Maignan <davidmaignan@gmail.com> on 15-08-21.\n */\npublic enum ChangeTypes {\n DELETE, MOVE, VERSION, NULL... | java | chosen |
[
{
"from": "system",
"value": "Split into declaration and assignment\n\n#13763:As a developer, I will have implemented the Try My Policy UI and integrated with backend [v3.0]\n"
},
{
"from": "human",
"value": "package gov.samhsa.c2s.c2suiapi.service;\n\nimport com.netflix.hystrix.exception.Hystri... | java | chosen |
[
{
"from": "system",
"value": "Add solution to problem 33\n"
},
{
"from": "human",
"value": "// Project Euler problem 33\npublic class Problem033 {\n public static void main(String[] args) {\n System.out.println();\n }\n}\n"
},
{
"from": "gpt",
"value": "import java.util.... | java | chosen |
[
{
"from": "system",
"value": "Fix : Use SCryptPasswordHaser instead of SShaPasswordHasher\n\nChange-Id: I03faaf863d0034a45dde318b877c02e7e4acb00a\n"
},
{
"from": "human",
"value": "package oasis.services.authn;\n\nimport javax.inject.Inject;\n\nimport oasis.model.authn.ClientType;\nimport oasis.... | java | chosen |
[
{
"from": "system",
"value": "Fix compile errors in main\n"
},
{
"from": "human",
"value": "package eu.programit;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\nimport eu.programit.domain.Person;\nimport eu.programit.domain.Raymond;\nimport eu.programit.domain.Rik;\nimport eu.programi... | java | chosen |
[
{
"from": "system",
"value": "Add trivial unit tests for BasicAuthorizer\n"
},
{
"from": "human",
"value": "package com.krillsson.sysapi.auth;\n\nimport junit.framework.TestCase;\n\npublic class BasicAuthorizerTest extends TestCase {\n\n}"
},
{
"from": "gpt",
"value": "package com.kr... | java | chosen |
[
{
"from": "system",
"value": "Allow log-in for people who don+t have pension account\nEnable DTO debug\n"
},
{
"from": "human",
"value": "package ee.tuleva.onboarding.account;\n\nimport ee.tuleva.onboarding.auth.principal.Person;\nimport ee.tuleva.onboarding.epis.EpisService;\nimport ee.tuleva.o... | java | chosen |
[
{
"from": "system",
"value": "Add function to get selected tree node\n"
},
{
"from": "human",
"value": "package editor.views;\n\nimport editor.ElementTreeModel;\nimport editor.controllers.ElementTreeController;\nimport utility.Observer;\nimport xml.Element;\n\nimport javax.swing.*;\n\n/**\n * Th... | java | chosen |
[
{
"from": "system",
"value": "Add close to NoSQL directory."
},
{
"from": "human",
"value": "package org.lumongo.storage.lucene;\n\n/**\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work f... | java | chosen |
[
{
"from": "system",
"value": "IMCMS-233: Apply new UI to the admin panel and editors:\n- Versioned content no more stealing it's version's id.\n"
},
{
"from": "human",
"value": "package com.imcode.imcms.mapping.jpa.doc.content;\n\nimport com.imcode.imcms.mapping.jpa.doc.Version;\n\nimport javax.... | java | chosen |
[
{
"from": "system",
"value": "Add options to use bind/unbind callbacks as opposed to mount/unmount\n\nReviewed By: oprisnik\n\nDifferential Revision: D15122179\n\nfbshipit-source-id: 28b734a0fb0899b4a28e9cdacb31658480149ca2\n"
},
{
"from": "human",
"value": "/*\n * Copyright (c) Facebook, Inc. a... | java | chosen |
[
{
"from": "system",
"value": "Update javadoc to cover desugaring\n\n-------------\nCreated by MOE: https://github.com/google/moe\nMOE_MIGRATED_REVID=258431740\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2016 The Error Prone Authors.\n *\n * Licensed under the Apache License, Version 2.0 ... | java | chosen |
[
{
"from": "system",
"value": "Rename parameter type F to M for \"Manager\".\n\ngit-svn-id: de5ce936019686f47409c93bcc5e202a9739563b@1405212 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "human",
"value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contri... | java | chosen |
[
{
"from": "system",
"value": "Refactor day 1 into reusable FuelCalculator resources\n"
},
{
"from": "human",
"value": "package day01;\n\nimport common.BaseSolution;\nimport common.InputReader;\n\npublic class Solution extends BaseSolution implements common.Solution {\n\n public static void ma... | java | chosen |
[
{
"from": "system",
"value": "Adjust to changes in Gerrit core\n\nChange-Id: I76bfd3ebc04f7f094cefd3c169efbb579ec403ae\n"
},
{
"from": "human",
"value": "// Copyright (C) 2009 The Android Open Source Project\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may no... | java | chosen |
[
{
"from": "system",
"value": "Fix integration with premium version of PvPManager\n"
},
{
"from": "human",
"value": "package com.elmakers.mine.bukkit.protection;\n\nimport me.NoChance.PvPManager.PvPManager;\nimport me.NoChance.PvPManager.PvPlayer;\nimport org.bukkit.Location;\nimport org.bukkit.e... | java | chosen |
[
{
"from": "system",
"value": "Add register method for both"
},
{
"from": "human",
"value": "package info.u_team.u_team_core.util.registry;\n\nimport java.util.function.Supplier;\n\nimport net.minecraft.block.Block;\nimport net.minecraft.item.Item;\nimport net.minecraftforge.eventbus.api.IEventBu... | java | chosen |
[
{
"from": "system",
"value": "Set default player simulator tickrate to 10 ticks\n"
},
{
"from": "human",
"value": "package org.cyclops.integratedtunnels.part;\n\nimport net.minecraft.world.World;\nimport net.minecraft.world.WorldServer;\nimport org.cyclops.integrateddynamics.api.part.PartTarget;... | java | chosen |
[
{
"from": "system",
"value": "Use correct Script subtypes for init scripts.\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2015 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with t... | java | chosen |
[
{
"from": "system",
"value": "Fix Anima Energy thinking it was Forge Energy\n"
},
{
"from": "human",
"value": "package party.lemons.anima.energy;\n\nimport net.minecraftforge.energy.IEnergyStorage;\n\n/**\n * Created by Sam on 19/06/2017.\n *\n * * Anima Energy is basically forge energy, but do... | java | chosen |
[
{
"from": "system",
"value": "Add checks for list files\n"
},
{
"from": "human",
"value": "\npackage forager.server;\n\nimport java.io.BufferedOutputStream;\nimport java.io.FileOutputStream;\nimport java.io.IOException;\nimport java.io.PrintWriter;\n\n/**\n * Handles the active and completed tas... | java | chosen |
[
{
"from": "system",
"value": "Replace database 'reactiondbtest3' with 'reactiondb'\n"
},
{
"from": "human",
"value": "package Database;\n\n/**\n * This class stores a MySQL credential constants\n */\npublic enum Config {\n\n /**\n * Username to MySQL database\n */\n USERNAME(\"root... | java | chosen |
[
{
"from": "system",
"value": "Refresh sign fix + comments in permissions files + more trimming in permission matching\n"
},
{
"from": "human",
"value": "import java.io.BufferedWriter;\nimport java.io.File;\nimport java.io.FileWriter;\nimport java.io.IOException;\n\npublic class VersionNumbering ... | java | chosen |
[
{
"from": "system",
"value": "Add constant default elo rating\n"
},
{
"from": "human",
"value": "package EloRating;\npublic class EloRating {\n\t\n\tpublic static int newRating(int ratingPlayer, int ratingPlayerTwo, int scorePlayer) {\n\t\tdouble diffRating = ratingPlayerTwo - ratingPlayer;\n\t\... | java | chosen |
[
{
"from": "system",
"value": "Support loading images from local storage\n\ncloses #276\n"
},
{
"from": "human",
"value": "package com.reactnativenavigation.react;\n\nimport android.graphics.drawable.Drawable;\n\nimport com.reactnativenavigation.NavigationApplication;\n\npublic class ImageLoader ... | java | chosen |
[
{
"from": "system",
"value": "Add javadoc\nSend return a boolean to detect failed sendings\n"
},
{
"from": "human",
"value": "package de.akquinet.android.androlog.reporter;\n\nimport java.util.Properties;\n\nimport android.content.Context;\n\npublic interface Reporter {\n\n public abstract vo... | java | chosen |
[
{
"from": "system",
"value": "Create feature flag to log extra data in ReactWebView\n\nSummary: This diff creates a new react feature flag to enable extra logging on React Web Views\n\nReviewed By: RSNara\n\nDifferential Revision: D15729871\n\nfbshipit-source-id: 931d4a1b022c6a405228bf896b50ecc7a44478d1\n"
... | java | chosen |
[
{
"from": "system",
"value": "Add getter returning access token with bearer prefix\n"
},
{
"from": "human",
"value": "// Copyright 2020 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\npackage com.yahoo.vespa.athenz.api;\n\nimport java.util.Objects;... | java | chosen |
[
{
"from": "system",
"value": "Fix failure when run on really slow devices/PCs\n\n"
},
{
"from": "human",
"value": "package org.osgi.test.cases.wireadmin.tbc;\n\nimport org.osgi.service.wireadmin.*;\n\npublic class FilteredProducerImpl implements Producer {\n\tprotected Wire\twire\t= null;\n\n\t/... | java | chosen |
[
{
"from": "system",
"value": "Switch field back to private as it was made protected by mistake\n"
},
{
"from": "human",
"value": "package io.quarkus.runtime.configuration;\n\nimport java.io.Serializable;\nimport java.util.Map;\nimport java.util.Set;\n\nimport org.eclipse.microprofile.config.spi.... | java | chosen |
[
{
"from": "system",
"value": "Add stub tests for ObjectService\n"
},
{
"from": "human",
"value": "package ge.edu.freeuni.sdp.iot.service.camera_object_recognizer.service;\n\nimport org.glassfish.jersey.server.ResourceConfig;\nimport org.glassfish.jersey.test.JerseyTest;\nimport org.junit.Before;... | java | chosen |
[
{
"from": "system",
"value": "Enforce non-instantiability of utility classes with private constructors\n"
},
{
"from": "human",
"value": "package uk.co.automatictester.lightning.core.reporters;\n\nimport uk.co.automatictester.lightning.core.state.TestSet;\n\npublic class TestSetReporter {\n\n ... | java | chosen |
[
{
"from": "system",
"value": "Set style sheet link path.\n"
},
{
"from": "human",
"value": "package com.github.aureliano.verbum_domini.web.ui;\n\nimport java.io.IOException;\n\nimport javax.faces.component.FacesComponent;\nimport javax.faces.component.UIComponentBase;\nimport javax.faces.context... | java | chosen |
[
{
"from": "system",
"value": "Add reason to exception detail.\n"
},
{
"from": "human",
"value": "/* This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at http://mozilla.org/MPL/2... | java | chosen |
[
{
"from": "system",
"value": "Comment testMTA() test case to prevent sending mail on every build.\n\n"
},
{
"from": "human",
"value": "/*\n * Created on Jan 24, 2005\n *\n * TODO To change the template for this generated file go to\n * Window - Preferences - Java - Code Style - Code Templates\n ... | java | chosen |
[
{
"from": "system",
"value": "Update ExtensionFilter for asciidoc and markdown\n"
},
{
"from": "human",
"value": "package com.kodcu.other;\n\nimport javafx.stage.FileChooser;\n\n/**\n * Created by usta on 23.08.2015.\n */\npublic class ExtensionFilters {\n\n public final static FileChooser.Ex... | java | chosen |
[
{
"from": "system",
"value": "Test get and set next node\n"
},
{
"from": "human",
"value": "package com.mijecu25.dsa;\n\nimport org.junit.Assert;\nimport org.junit.Test;\n\n/**\n * This is the Node test class. \n * \n * @author Miguel Velez\n * @version 0.2.1\n * \n */\npublic class TestNode {\... | java | chosen |
[
{
"from": "system",
"value": "Add time unit to DELAY.\n"
},
{
"from": "human",
"value": "package com.novoda.downloadmanager;\n\nimport java.util.Timer;\nimport java.util.TimerTask;\n\nclass CallbackThrottleByTime implements CallbackThrottle {\n\n private final long periodInMillis;\n\n priv... | java | chosen |
[
{
"from": "system",
"value": "Add logs for listener callbacks\n"
},
{
"from": "human",
"value": "package com.davidferrand.subappbarpanelsample;\n\nimport android.os.Bundle;\nimport android.support.v7.app.AppCompatActivity;\nimport android.support.v7.widget.Toolbar;\nimport android.view.View;\nim... | java | chosen |
[
{
"from": "system",
"value": "Update to make countAll count tokens not lines\n"
},
{
"from": "human",
"value": "package com.continuuity.examples.countandfilterwords;\n\nimport com.continuuity.api.annotation.Output;\nimport com.continuuity.api.flow.flowlet.AbstractFlowlet;\nimport com.continuuity... | java | chosen |
[
{
"from": "system",
"value": "Throw exception if transform not found\n\nFatal exception should be thrown if transform fails to initialize instead of fail silently.\n"
},
{
"from": "human",
"value": "package com.airbnb.aerosolve.core.transforms;\n\nimport com.google.common.base.CaseFormat;\nimpor... | java | chosen |
[
{
"from": "system",
"value": "Add createConfigV3GetConfigMethod overload taking MethodHandler\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.vespa.config;\n\nimport com.y... | java | chosen |
[
{
"from": "system",
"value": "Fix Mobile keep polling exception\n"
},
{
"from": "human",
"value": "package ee.tuleva.onboarding.auth;\n\nimport org.springframework.http.HttpStatus;\nimport org.springframework.web.bind.annotation.ResponseStatus;\n\n@ResponseStatus(value= HttpStatus.CONTINUE, reas... | java | chosen |
[
{
"from": "system",
"value": "Change the text on the test\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2015 Bridje Framework.\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... | java | chosen |
[
{
"from": "system",
"value": "Change priority to ignore cancelled spawn events\n"
},
{
"from": "human",
"value": "package com.elmakers.mine.bukkit.magicworlds.listener;\n\nimport com.elmakers.mine.bukkit.magicworlds.MagicWorld;\nimport com.elmakers.mine.bukkit.magicworlds.MagicWorldsController;\... | java | chosen |
[
{
"from": "system",
"value": "CAMEL-9723: Move spring-boot-starter-sample to examples so we can collapse the camel-spring-boot-starter module\n"
},
{
"from": "human",
"value": "/**\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the... | java | chosen |
[
{
"from": "system",
"value": "Add private constructor to prevent instantiation"
},
{
"from": "human",
"value": "package de.flux.playground.deckcompare.analyze;\n\nimport de.flux.playground.deckcompare.dto.Card;\n\npublic final class CardConflictAnalyzer {\n\n public static boolean conflicted(... | java | chosen |
[
{
"from": "system",
"value": "Fix showing duplicate http blocking messages, because a http connection\n\nis also a socket connection"
},
{
"from": "human",
"value": "package com.github.games647.lagmonitor.listeners;\n\nimport com.github.games647.lagmonitor.LagMonitor;\nimport java.io.IOException... | java | chosen |
[
{
"from": "system",
"value": "Fix null pointer error for asGuests in batchRegister\n"
},
{
"from": "human",
"value": "package org.xcolab.view.pages.contestmanagement.beans;\n\nimport org.hibernate.validator.constraints.NotBlank;\n\nimport java.io.Serializable;\n\npublic class BatchRegisterBean i... | java | chosen |
[
{
"from": "system",
"value": "Add a test for isEmpty.\n"
},
{
"from": "human",
"value": "package com.rejasupotaro.android.kvs.internal;\n\nimport org.junit.Test;\n\nimport static org.assertj.core.api.Assertions.assertThat;\n\npublic class StringUtilsTest {\n @Test\n public void testCapital... | java | chosen |
[
{
"from": "system",
"value": "Make AccessibilityTextView inherit from AppCompatTextView\n"
},
{
"from": "human",
"value": "/*\n * Copyright (C) 2013 The Android Open Source Project\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": "Test stderr and stdout print methods.\n"
},
{
"from": "human",
"value": "package no.cantara.performance.messagesampler;\n\npublic class LatencyMessageSamplerTest {\n public static void main(String[] args) throws InterruptedException {\n final Object waitBu... | java | chosen |
[
{
"from": "system",
"value": "3: Implement example producer \nSmall refactoring\n\nTask-Url:\nhttp://github.com/sergej-samsonow/code-generator/issues/issue/3"
},
{
"from": "human",
"value": "package com.github.sergejsamsonow.codegenerator.pojo.renderer;\n\nimport com.github.sergejsamsonow.codege... | java | chosen |
[
{
"from": "system",
"value": "Fix index out of bounds exception by first checking to make sure the configuration option parsed correctly.\n\n\n\nr5374\n"
},
{
"from": "human",
"value": "package org.openqa.selenium.server;\n\npublic class BrowserConfigurationOptions {\n\n private String profil... | java | chosen |
[
{
"from": "system",
"value": "Fix 1 ErrorProneStyle finding:\n* Constructors and methods with the same name should appear sequentially with no other code in between. Please re-order or re-name methods.\n\n-------------\nCreated by MOE: https://github.com/google/moe\nMOE_MIGRATED_REVID=286176935\n"
},
{
... | java | chosen |
[
{
"from": "system",
"value": "Rename @Health parameter to 'inheritSecurity'\n"
},
{
"from": "human",
"value": "package org.wildfly.swarm.examples.jaxrs.health;\n\nimport javax.ws.rs.GET;\nimport javax.ws.rs.Path;\nimport javax.ws.rs.Produces;\nimport javax.ws.rs.core.MediaType;\n\nimport org.wil... | java | chosen |
[
{
"from": "system",
"value": "Add ToDo stuff for media DAO\n"
},
{
"from": "human",
"value": "package com.csci4448.MediaManagementSystem.model.media;\n\nimport org.hibernate.HibernateException;\nimport org.hibernate.Session;\nimport org.hibernate.Transaction;\nimport org.hibernate.SessionFactory... | java | chosen |
[
{
"from": "system",
"value": "Add ignored field to simple test case\n"
},
{
"from": "human",
"value": "import com.lisb.msgpack.bind.MsgpackBind;\n\nimport java.util.List;\nimport java.util.Map;\n\n@MsgpackBind\npublic class SimpleSource {\n public String first;\n public int second;\n pu... | java | chosen |
[
{
"from": "system",
"value": "Throw an exception when we hit an impossible condition rather than returning null\n"
},
{
"from": "human",
"value": "package com.bungleton.yarrgs;\n\nimport com.bungleton.yarrgs.parser.Command;\n\npublic class Yarrgs\n{\n public static <T> T parseInMain (Class<T>... | java | chosen |
[
{
"from": "system",
"value": "Make last_jobid available for compatibility.\n"
},
{
"from": "human",
"value": "package io.digdag.standards.operator.gcp;\n\nimport com.google.api.services.bigquery.model.Job;\nimport com.google.api.services.bigquery.model.JobConfiguration;\nimport io.digdag.client.... | java | chosen |
[
{
"from": "system",
"value": "Add equals method to duedate model\n\nAdding an equals method so that calling `.equals` in tests equates\nobjects with equal due dates.\n"
},
{
"from": "human",
"value": "package seedu.task.model.task;\n\nimport java.util.Calendar;\n\nimport seedu.task.commons.excep... | java | chosen |
[
{
"from": "system",
"value": "Add getter for futures positions for BitVc\n"
},
{
"from": "human",
"value": "package org.knowm.xchange.huobi.service;\n\nimport org.knowm.xchange.Exchange;\nimport org.knowm.xchange.huobi.BitVc;\nimport org.knowm.xchange.huobi.BitVcFutures;\nimport si.mazi.rescu.Re... | java | chosen |
[
{
"from": "system",
"value": "Add Javadoc and migration path\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2020, TeamDev. All rights reserved.\n *\n * Redistribution and use in source and/or binary forms, with or without\n * modification, must retain the above copyright notice and the foll... | java | chosen |
[
{
"from": "system",
"value": "Add new 'unauthorized' service response status\n"
},
{
"from": "human",
"value": "package com.digirati.elucidate.model;\n\npublic class ServiceResponse<T> {\n\n public enum Status {\n OK, NOT_FOUND, CACHE_KEY_MISS, ILLEGAL_MODIFICATION, NON_CONFORMANT, DEL... | java | chosen |
[
{
"from": "system",
"value": "Make changes in Sign Out button\n"
},
{
"from": "human",
"value": "package database;\n\nimport java.sql.Connection;\nimport java.sql.DriverManager;\nimport java.sql.SQLException;\n\npublic class DatabaseConnection {\n\tConnection dbConnection;\n\t\n\tpublic Database... | java | chosen |
[
{
"from": "system",
"value": "Revert \"Remove temporary patch for broken TestNG 6.9.13\"\n\nThis reverts commit 3aaab7db09e801d66e66029a7c0719fe24084d39.\n\nCI still has the dynamic versions lookup result in cache.\nWill resubmit later.\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2016 th... | java | chosen |
[
{
"from": "system",
"value": "Handle when the user presses cancel on the permission prompt.\n"
},
{
"from": "human",
"value": "package com.jakewharton.telecine;\n\nimport android.app.Activity;\nimport android.content.Intent;\nimport android.media.projection.MediaProjectionManager;\nimport androi... | java | chosen |
[
{
"from": "system",
"value": "Change the variable name modifierName to modifier\n"
},
{
"from": "human",
"value": "/*\n * This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at ht... | java | chosen |
[
{
"from": "system",
"value": "Update SIO \"in dataset\" property.\n"
},
{
"from": "human",
"value": "package ws.biotea.ld2rdf.rdf.model;\n\nimport ws.biotea.ld2rdf.util.OntologyPrefix;\nimport java.io.Serializable;\n\n/**\n * OpenAnnotation: This class represents a general annotation on a Docume... | java | chosen |
[
{
"from": "system",
"value": "Replace NullOutputStream with inline implementation\n\nUsing `NullOutputStream` in `FluxProgrammTest` introduced a depdency on\nApache Commons IO which can easily be avoided.\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2013, 2014 Deutsche Nationalbibliothek\... | java | chosen |
[
{
"from": "system",
"value": "Implement /refresh endpoint for indetity provider\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.vespa.hosted.athenz.instanceproviderservice... | java | chosen |
[
{
"from": "system",
"value": "Address PR comment. Made name consistent with others using camel case\n\n\nFormer-commit-id: dd6877565ece23b153a6b4d26edc6a5d71ca1649"
},
{
"from": "human",
"value": "package org.innovateuk.ifs.finance.resource.cost;\n\npublic enum OverheadRateType{\n NONE(null,... | java | chosen |
[
{
"from": "system",
"value": "Change apps/framework/template to use AbstractSoyTemplate in the response handlers instead of TofuTemplate (or just Template). This will allow the --experimental_use_soy_sauce flag to influence the standard framework response handlers.\n\nAlso, fix the TemplateExceptionHandler... | java | chosen |
[
{
"from": "system",
"value": "Fix frame type, should be 0 for protocol frames"
},
{
"from": "human",
"value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional informat... | java | chosen |
[
{
"from": "system",
"value": "Use small tdb in wikipedia example\n"
},
{
"from": "human",
"value": "\nimport traildb.*;\n\nimport java.io.FileNotFoundException;\n\npublic class Wikipedia {\n\tpublic static long SESSION_LIMIT = 3600;\n\tpublic static void sessions(TrailDB tdb) {\n\t\tTrailDBCurso... | java | chosen |
[
{
"from": "system",
"value": "Make xmvn-resolve print resolved artifact files\n"
},
{
"from": "human",
"value": "/*-\n * Copyright (c) 2012 Red Hat, 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.... | java | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.