conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Use ViewHolder pattern in sample adapter\n"
},
{
"from": "human",
"value": "package com.yuyakaido.android.cardstackview.sample;\n\nimport android.content.Context;\nimport android.view.View;\nimport android.view.ViewGroup;\nimport android.widget.ArrayAdapter;\nimport... | java | chosen |
[
{
"from": "system",
"value": "Add some braces around an if guard\n"
},
{
"from": "human",
"value": "package com.yammer.tenacity.core.properties;\n\nimport com.netflix.config.ConfigurationManager;\nimport com.netflix.config.DynamicConfiguration;\nimport com.netflix.config.FixedDelayPollingSchedul... | java | chosen |
[
{
"from": "system",
"value": "Add lightweight method for detecting duplicate search nodes.\n"
},
{
"from": "human",
"value": "package com.github.dieterdepaepe.jsearch.search.statespace;\n\n/**\n * A node encountered in the search graph while solving a problem.\n * <p>\n * There is a subtle but i... | java | chosen |
[
{
"from": "system",
"value": "Rework callback so that it emits logs to the console. Less annoying than popups\n"
},
{
"from": "human",
"value": "package org.realityforge.replicant.example.client;\n\nimport com.google.gwt.user.client.Window;\nimport com.google.gwt.user.client.rpc.AsyncCallback;\n... | java | chosen |
[
{
"from": "system",
"value": "Remove random from aggregated feed parsing\n\nWe had random data display in earlier versions of the app but don't actually use it.\nDuring an RB deploy today where we wanted to change the format to an array\nwe discovered that the app was still expecting the random property to ... | java | chosen |
[
{
"from": "system",
"value": "Use OPENSSL_REFCNT instead of OPENSSL as our SSL provider when possible.\n"
},
{
"from": "human",
"value": "package com.relayrides.pushy.apns;\n\nimport io.netty.handler.ssl.OpenSsl;\nimport io.netty.handler.ssl.SslProvider;\nimport org.slf4j.Logger;\nimport org.slf... | java | chosen |
[
{
"from": "system",
"value": "Update upaletteutils to source default color from colors.xml\n"
},
{
"from": "human",
"value": "package com.asesolution.mobile.lorempixel.utils;\n\nimport android.graphics.Bitmap;\nimport android.graphics.Color;\n\nimport com.asesolution.mobile.lorempixel.utils.pica... | java | chosen |
[
{
"from": "system",
"value": "Fix random wrong month or year in prayer times\n"
},
{
"from": "human",
"value": "package com.i906.mpt.date;\n\nimport java.util.Calendar;\nimport java.util.TimeZone;\n\nimport javax.inject.Inject;\nimport javax.inject.Singleton;\n\n/**\n * @author Noorzaini Ilhami\... | java | chosen |
[
{
"from": "system",
"value": "Add the `author` annotation in the documentation.\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2017, TeamDev Ltd. All rights reserved.\n *\n * Redistribution and use in source and/or binary forms, with or without\n * modification, must retain the above copyri... | java | chosen |
[
{
"from": "system",
"value": "Fix bug where warnings were being printed as errors\n"
},
{
"from": "human",
"value": "package buildr.ipojo.cli;\n\nimport java.io.File;\nimport java.io.FileInputStream;\nimport org.apache.felix.ipojo.manipulator.Pojoization;\n\npublic class Main\n{\n public static... | java | chosen |
[
{
"from": "system",
"value": "Update the factory after common js editor change"
},
{
"from": "human",
"value": "/*******************************************************************************\n * Copyright (c) 2014 Codenvy, S.A.\n * All rights reserved. This program and the accompanying materia... | java | chosen |
[
{
"from": "system",
"value": "Clean up imports from local replication service\n"
},
{
"from": "human",
"value": "package io.gatekeeper.node.service.replication;\n\nimport io.gatekeeper.configuration.Configuration;\nimport io.gatekeeper.configuration.data.replication.LocalReplicationConfiguration... | java | chosen |
[
{
"from": "system",
"value": "Fix IllegalArgumentException when OPTIONS in cors\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2015 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 w... | java | chosen |
[
{
"from": "system",
"value": "HV-426: Use Hibernate Validator in version logging message.\n"
},
{
"from": "human",
"value": "/*\n * JBoss, Home of Professional Open Source\n * Copyright 2010, Red Hat, Inc. and/or its affiliates, and individual contributors\n * by the @authors tag. See the copyri... | java | chosen |
[
{
"from": "system",
"value": "Index size check, for Elastic 8 upgrade (I10).\n"
},
{
"from": "human",
"value": "package roart.common.util;\n\nimport java.io.InputStream;\n\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\n\nimport roart.common.constants.Constants;\n\npublic class IOUti... | java | chosen |
[
{
"from": "system",
"value": "Remove recently published test for pending events\n"
},
{
"from": "human",
"value": "package au.gov.ga.geodesy.domain.model.event;\n\nimport java.time.Instant;\nimport java.util.Calendar;\nimport java.util.List;\n\nimport javax.persistence.EntityManager;\nimport jav... | java | chosen |
[
{
"from": "system",
"value": "Use junit assertions in assertThrows\n\nI was wondering where a opentest4j error came from.\nThis changes the newly introduced assertThrows to use the same\nverification mechanism we use everywhere else.\n"
},
{
"from": "human",
"value": "/*\n * Licensed to Crate un... | java | chosen |
[
{
"from": "system",
"value": "Add invalid command console test\n"
},
{
"from": "human",
"value": "package seedu.todo.guitests;\n\nimport static org.junit.Assert.assertEquals;\n\nimport org.junit.Test;\n\npublic class ConsoleTest extends GuiTest {\n\n @Test\n public void testValidCommand_co... | java | chosen |
[
{
"from": "system",
"value": "Add test to improve code coverage\n"
},
{
"from": "human",
"value": "package seedu.tasklist.commons.core;\n\nimport static org.junit.Assert.assertEquals;\nimport static org.junit.Assert.assertNotNull;\nimport static org.junit.Assert.assertTrue;\n\nimport org.junit.R... | java | chosen |
[
{
"from": "system",
"value": "Refactor output format to be same as input format, standardizing the API\n"
},
{
"from": "human",
"value": "package com.google.sps.data;\n\nimport java.util.Iterator;\nimport java.util.List;\nimport java.util.Set;\nimport org.apache.commons.collections4.keyvalue.Mul... | java | chosen |
[
{
"from": "system",
"value": "Update modifier + code style\n"
},
{
"from": "human",
"value": "/*\n * This file is released under terms of BSD license\n * See LICENSE file for more information\n */\n\npackage cx2x.translator.language;\n\nimport cx2x.xcodeml.exception.IllegalDirectiveException;\ni... | java | chosen |
[
{
"from": "system",
"value": "Remove SmartDashboard Data for Teleop. Drive\n"
},
{
"from": "human",
"value": "package org.usfirst.frc4909.STEAMWORKS.commands;\n\nimport edu.wpi.first.wpilibj.command.Command;\nimport edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;\n\nimport org.usfirst.frc49... | java | chosen |
[
{
"from": "system",
"value": "Set UI as best on OS\n"
},
{
"from": "human",
"value": "package ru.faulab.attendence;\r\n\r\nimport com.google.inject.Guice;\r\nimport com.google.inject.Injector;\r\nimport ru.faulab.attendence.module.MainModule;\r\nimport ru.faulab.attendence.ui.MainFrame;\r\n\r\np... | java | chosen |
[
{
"from": "system",
"value": "Fix wrong template usage in error pages\n"
},
{
"from": "human",
"value": "package li.l1t.tingo;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.boot.autoconfigure.web.ErrorAttributes;\nimport org.springframework.boot.au... | java | chosen |
[
{
"from": "system",
"value": "Correct equals() implementation, add hashCode()\n\n(Use IntelliJ to Generate)\n"
},
{
"from": "human",
"value": "package org.mastercoin.rpc;\n\nimport com.google.bitcoin.core.Address;\n\nimport java.math.BigDecimal;\n\n/**\n * Balance data for a specific Mastercoin ... | java | chosen |
[
{
"from": "system",
"value": "Add a test and some asserts to coverage paint total lines\n"
},
{
"from": "human",
"value": "package hudson.plugins.cobertura.targets;\n\nimport junit.framework.TestCase;\n\nimport java.io.ByteArrayInputStream;\nimport java.io.ByteArrayOutputStream;\nimport java.io.... | java | chosen |
[
{
"from": "system",
"value": "Validate HA groups on a topology\nREST It tests\n"
},
{
"from": "human",
"value": "package alien4cloud.it;\n\nimport org.junit.runner.RunWith;\n\nimport cucumber.api.CucumberOptions;\nimport cucumber.api.junit.Cucumber;\n\n@RunWith(Cucumber.class)\n@CucumberOptions(... | java | chosen |
[
{
"from": "system",
"value": "Add replaceable slot tag, for upgrades that can be replaced without returning the existing upgrade\n"
},
{
"from": "human",
"value": "package com.elmakers.mine.bukkit.wand;\n\nimport org.bukkit.configuration.ConfigurationSection;\n\nimport com.elmakers.mine.bukkit.a... | java | chosen |
[
{
"from": "system",
"value": "Add constructor accepting file path\n"
},
{
"from": "human",
"value": "package edu.pdx.cs410J.chances;\n\nimport edu.pdx.cs410J.AbstractAppointmentBook;\nimport edu.pdx.cs410J.AppointmentBookParser;\nimport edu.pdx.cs410J.ParserException;\n\n/**\n * @author chancesn... | java | chosen |
[
{
"from": "system",
"value": "Add key generation function to interface\n"
},
{
"from": "human",
"value": "package org.cryptonit.cloud.interfaces;\n\nimport java.security.PrivateKey;\nimport java.security.PublicKey;\n\npublic interface KeyStore {\n public enum KeyParameters {\n RSA_2048... | java | chosen |
[
{
"from": "system",
"value": "Fix Unknown argument 'compress' in diagnostic for JDK11\n"
},
{
"from": "human",
"value": "package org.radargun.config;\n\nimport java.util.List;\n\nimport static org.radargun.config.VmArgUtils.ensureArg;\nimport static org.radargun.config.VmArgUtils.replace;\n\npub... | java | chosen |
[
{
"from": "system",
"value": "Add type-related tag methods to nbt-builder\n"
},
{
"from": "human",
"value": "package com.voxelwind.nbt.util;\n\nimport com.voxelwind.nbt.tags.CompoundTag;\nimport com.voxelwind.nbt.tags.Tag;\nimport lombok.AccessLevel;\nimport lombok.NoArgsConstructor;\n\nimport j... | java | chosen |
[
{
"from": "system",
"value": "Add a flush and clear method for batch upload.\n"
},
{
"from": "human",
"value": "/**\r\n * Copyright © 2011-2013 EMBL - European Bioinformatics Institute\r\n * \r\n * Licensed under the Apache License, Version 2.0 (the \"License\"); \r\n * you may not use this file... | java | chosen |
[
{
"from": "system",
"value": "Add some extra process names in case someone using the library needs to perform/monitor extra loading processes."
},
{
"from": "human",
"value": "\npackage uk.me.mjt.ch.status;\n\npublic enum MonitoredProcess {\n LOAD_NODES, LOAD_WAYS, INDEX_MAP_DATA, VALIDATE_DA... | java | chosen |
[
{
"from": "system",
"value": "Throw exception when call close() on fragment\n"
},
{
"from": "human",
"value": "package com.popalay.cardme.ui.base;\n\nimport android.app.Activity;\nimport android.support.annotation.NonNull;\n\nimport com.arellomobile.mvp.MvpAppCompatFragment;\n\npublic abstract c... | java | chosen |
[
{
"from": "system",
"value": "Simplify selenium example\nPrevious test relied on the content/layout of wikipedia remaining the same, which led to unexpected failures\n"
},
{
"from": "human",
"value": "import org.junit.Rule;\nimport org.junit.Test;\nimport org.openqa.selenium.WebElement;\nimport ... | java | chosen |
[
{
"from": "system",
"value": "Remove the no-args constructor from FlattenNode\n\nIt is not used."
},
{
"from": "human",
"value": "package io.burt.jmespath.ast;\n\npublic class FlattenListNode extends JmesPathNode {\n public FlattenListNode() {\n super();\n }\n\n public FlattenListNode(Jmes... | java | chosen |
[
{
"from": "system",
"value": "Add ability to get localized inbox count\n"
},
{
"from": "human",
"value": "package net.dean.jraw.models;\n\nimport net.dean.jraw.models.meta.JsonProperty;\nimport net.dean.jraw.models.meta.Model;\nimport com.fasterxml.jackson.databind.JsonNode;\n\n/**\n * Represent... | java | chosen |
[
{
"from": "system",
"value": "Make the first date test so that it passes with the default hardcoded ENGLISH locale\n"
},
{
"from": "human",
"value": "package org.jutils.jprocesses.util;\n\nimport org.junit.Test;\n\nimport java.text.ParseException;\nimport java.util.Locale;\n\nimport static org.j... | java | chosen |
[
{
"from": "system",
"value": "Make sure everything is correct version"
},
{
"from": "human",
"value": "/**\r\n * FIRST Team 1699\r\n * \r\n * Abstract Command Class\r\n * \r\n * @author squirlemaster42, FIRST Team 1699\r\n * \r\n * @version v0.2-norobot\r\n */\r\npackage org.usfirst.frc.team1699... | java | chosen |
[
{
"from": "system",
"value": "Add unit tests to check the min/max range values.\n\nThe unit tests for the Law subclasses will now check whether or not the minimum\nvalue (0) and maximum value (upperBound - 1) can be generated by the\ndistribution.\n\nBecause of the random nature of the laws, the tests will ... | java | chosen |
[
{
"from": "system",
"value": "Remove @Immutable annotation from abstract class.\n"
},
{
"from": "human",
"value": "/*\n * Copyright (c) 2008-2011 Graham Allan\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": "Check webUrl of groups for null to prevent NullPointerException\n"
},
{
"from": "human",
"value": "package com.commit451.gitlab.model.api;\n\nimport com.google.gson.annotations.SerializedName;\n\nimport org.parceler.Parcel;\n\nimport android.net.Uri;\n\n@Parcel\npub... | java | chosen |
[
{
"from": "system",
"value": "Set up probe to investigate possible crash(es) with null PageTitle.\n\nChange-Id: I96f01582b239d84182cb7926371bdb6e7ca54cd3\n"
},
{
"from": "human",
"value": "package org.wikipedia.page;\n\nimport androidx.annotation.NonNull;\n\nimport org.wikipedia.history.HistoryE... | java | chosen |
[
{
"from": "system",
"value": "classfile: Add space in package version number for enhancements\n\nWe may need to add function to the package while retaining the same\nclass file major version number.\n\nSigned-off-by: BJ Hargrave <3d26bb3930946e3370762d769a073cece444c2d8@bjhargrave.com>\n"
},
{
"from... | java | chosen |
[
{
"from": "system",
"value": "Test case for the configuration"
},
{
"from": "human",
"value": "package net.ssehub.kernel_haven.config;\n\nimport static net.ssehub.kernel_haven.config.Setting.Type.BOOLEAN;\n\nimport java.util.Properties;\n\nimport org.junit.Assert;\nimport org.junit.Test;\n\nimpo... | java | chosen |
[
{
"from": "system",
"value": "Add a \"type\" field to organizations\n\nChange-Id: If86c88bfbf23cd3b2d2899168bfefd5888b09bd2\n"
},
{
"from": "human",
"value": "package oasis.model.directory;\n\nimport javax.annotation.Nonnull;\n\nimport com.fasterxml.jackson.annotation.JsonProperty;\nimport com.f... | java | chosen |
[
{
"from": "system",
"value": "Rename Part to PartName to mirror PartSearch getters/setters\n"
},
{
"from": "human",
"value": "package org.amc.servlet.model;\n\npublic class PartSearchForm implements WebPageForm\n{\n\tprivate String part;\n\tprivate String qSSNumber;\n\tprivate String company;\n\... | java | chosen |
[
{
"from": "system",
"value": "Test rendering for camera translation\n"
},
{
"from": "human",
"value": "package io.github.bobdesaunois.amazighvillagegame;\n\nimport com.badlogic.gdx.Gdx;\nimport com.badlogic.gdx.graphics.GL20;\n\npublic class Render\n{\n\n public Render ()\n {\n\n //... | java | chosen |
[
{
"from": "system",
"value": "Test changes to see if codeship builds\n"
},
{
"from": "human",
"value": "package com.minecraftedu.students;\n\nimport net.minecraft.util.ChatComponentText;\nimport net.minecraft.util.EnumChatFormatting;\nimport net.minecraftforge.event.world.BlockEvent.BreakEvent;\... | java | chosen |
[
{
"from": "system",
"value": "Fix order of TournamentLevel on games site\n"
},
{
"from": "human",
"value": "package de.bettinggame.adapter;\n\nimport de.bettinggame.domain.Game;\nimport de.bettinggame.domain.TournamentLevel;\nimport de.bettinggame.domain.repository.GameRepository;\nimport org.sp... | java | chosen |
[
{
"from": "system",
"value": "Fix LoadHook dropping snapshot incorrectly.\n"
},
{
"from": "human",
"value": "package me.nallar.modpatcher;\n\nimport me.nallar.javatransformer.api.JavaTransformer;\n\nclass ModPatcherLoadHook {\n\tprivate static final int API_VERSION = 1; //Keep in sync with versi... | java | chosen |
[
{
"from": "system",
"value": "Fix compilation error on interface method override tag\n"
},
{
"from": "human",
"value": "/**\n * Copyright 2016, RadiantBlue Technologies, Inc.\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": "Add debug string representation of integer concrete type\n"
},
{
"from": "human",
"value": "package org.hummingbirdlang.types.concrete;\n\nimport org.hummingbirdlang.nodes.builtins.BuiltinNodes;\nimport org.hummingbirdlang.types.MethodProperty;\nimport org.hummingbi... | java | chosen |
[
{
"from": "system",
"value": "Change version number from 0.2 to 0.3\n"
},
{
"from": "human",
"value": "package com.netflix.recipes.rss;\n\npublic class RSSVersion {\n\tprivate static String version = \"0.2\";\n\t\n\tpublic static String getVersion() {\n\t\treturn RSSVersion.version;\n\t}\n}\n"
... | java | chosen |
[
{
"from": "system",
"value": "Make decorators obey base tower's build up time\n"
},
{
"from": "human",
"value": "package main.java.engine.objects.tower;\n\nimport main.java.engine.EnvironmentKnowledge;\n\n\nabstract class TowerBehaviorDecorator implements ITower {\n /**\n * The base tower... | java | chosen |
[
{
"from": "system",
"value": "Update so collector has a default wait if unspecified\n"
},
{
"from": "human",
"value": "package jamex.link;\n\nimport java.util.Collection;\nimport java.util.LinkedList;\nimport java.util.concurrent.LinkedBlockingQueue;\nimport java.util.concurrent.TimeUnit;\nimpor... | java | chosen |
[
{
"from": "system",
"value": "[Core] Fix class loading on Windows\n\nFixes: #1540\n"
},
{
"from": "human",
"value": "package cucumber.runtime.io;\n\nimport java.io.File;\nimport java.io.FileInputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\n\nclass FileResource implements Re... | java | chosen |
[
{
"from": "system",
"value": "Set Nimbus as LAF for Client-App\n\nMerge branch 'set-nimbux-laf' into develop"
},
{
"from": "human",
"value": "package devopsdistilled.operp.client;\n\nimport org.springframework.context.ApplicationContext;\nimport org.springframework.context.annotation.AnnotationC... | java | chosen |
[
{
"from": "system",
"value": "function: Rename method to std name\n\n"
},
{
"from": "human",
"value": "/*\n *\n * Copyright (c) 2006-2019, Speedment, Inc. All Rights Reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\"); You may not\n * use this file except in compli... | java | chosen |
[
{
"from": "system",
"value": "Change println() to print() to avoid superfluous newline\n"
},
{
"from": "human",
"value": "package bramble.webserver;\n\nimport java.io.IOException;\n\nimport javax.servlet.ServletException;\nimport javax.servlet.http.HttpServlet;\nimport javax.servlet.http.HttpSer... | java | chosen |
[
{
"from": "system",
"value": "Remove dead code from SNMP event processing\n"
},
{
"from": "human",
"value": "/**\n * \n */\npackage com.boundary.sdk;\n\nimport java.util.Date;\n\nimport org.apache.camel.CamelContext;\nimport org.apache.camel.Exchange;\nimport org.apache.camel.Message;\nimport or... | java | chosen |
[
{
"from": "system",
"value": "Add custom greeting for index\n"
},
{
"from": "human",
"value": "package controllers;\n\nimport play.*;\nimport play.mvc.*;\n\nimport views.html.*;\n\npublic class Application extends Controller {\n\n public Result index() {\n return ok(index.render(\"Your... | java | chosen |
[
{
"from": "system",
"value": "Refactor for two factor authentification\n\n"
},
{
"from": "human",
"value": "package at.ac.tuwien.inso.service;\n\nimport at.ac.tuwien.inso.entity.*;\nimport org.springframework.security.access.prepost.*;\nimport org.springframework.stereotype.*;\n\nimport java.uti... | java | chosen |
[
{
"from": "system",
"value": "Allow reading and writing from a specified Path"
},
{
"from": "human",
"value": "package io.github.likcoras.asuka;\n\nimport java.io.BufferedWriter;\nimport java.io.IOException;\nimport java.nio.file.Files;\nimport java.nio.file.Path;\nimport java.nio.file.Paths;\ni... | java | chosen |
[
{
"from": "system",
"value": "Fix rain ceremony not working correctly"
},
{
"from": "human",
"value": "package pokefenn.totemic.ceremony;\n\nimport net.minecraft.core.BlockPos;\nimport net.minecraft.world.level.Level;\nimport pokefenn.totemic.api.ceremony.CeremonyEffectContext;\nimport pokefenn.... | java | chosen |
[
{
"from": "system",
"value": "Update the list of supported markup formats\n\nCC #75\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2013 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.\... | java | chosen |
[
{
"from": "system",
"value": "Set checked state for Checkable children\n"
},
{
"from": "human",
"value": "package com.ternaryop.widget;\n\nimport android.content.Context;\nimport android.util.AttributeSet;\nimport android.widget.Checkable;\nimport android.widget.RelativeLayout;\n\n/**\n * Used t... | java | chosen |
[
{
"from": "system",
"value": "Fix typo in test ORC temp file name\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 *\n * ... | java | chosen |
[
{
"from": "system",
"value": "Set to OK the answer of docker health endpoint\n"
},
{
"from": "human",
"value": "package com.ippon.jug.slip;\n\nimport org.springframework.http.HttpStatus;\nimport org.springframework.http.ResponseEntity;\nimport org.springframework.web.bind.annotation.RequestMappi... | java | chosen |
[
{
"from": "system",
"value": "Change primitive to object in task model\n"
},
{
"from": "human",
"value": "package com.github.solairerove.woodstock.domain;\n\nimport lombok.Data;\nimport org.springframework.data.annotation.Id;\nimport org.springframework.data.mongodb.core.mapping.Document;\n\nimp... | java | chosen |
[
{
"from": "system",
"value": "Use the new existing file helper with forge in the generation data now"
},
{
"from": "human",
"value": "package info.u_team.u_team_core.data;\n\nimport java.util.function.*;\n\nimport net.minecraft.data.*;\nimport net.minecraftforge.common.data.ExistingFileHelper;\n... | java | chosen |
[
{
"from": "system",
"value": "[android] Access modifier fix for android API\n"
},
{
"from": "human",
"value": "package com.mapswithme.maps.api;\n\nimport android.content.Context;\nimport android.content.Intent;\n\n// TODO add javadoc for public interface\npublic class MWMResponse\n{\n private M... | java | chosen |
[
{
"from": "system",
"value": "Add support for callback urls\n"
},
{
"from": "human",
"value": "package org.irmacard.api.common;\n\n\npublic class ClientRequest<T> {\n\tprivate int timeout = 0;\n\tprivate String data;\n\tprivate T request;\n\n\tpublic ClientRequest() {}\n\n\tpublic ClientRequest(... | java | chosen |
[
{
"from": "system",
"value": "Correct wrong description of command\n\n-------------\nCreated by MOE: https://github.com/google/moe\nMOE_MIGRATED_REVID=212641409\n"
},
{
"from": "human",
"value": "// Copyright 2018 The Nomulus Authors. All Rights Reserved.\n//\n// Licensed under the Apache Licens... | java | chosen |
[
{
"from": "system",
"value": "Add extra read(...) method for performance\n"
},
{
"from": "human",
"value": "package org.bouncycastle.asn1;\n\nimport java.io.EOFException;\nimport java.io.InputStream;\nimport java.io.IOException;\n\nclass DefiniteLengthInputStream\n extends LimitedInputStr... | java | chosen |
[
{
"from": "system",
"value": "Add values to new field one at a time to avoid adding an ArrayList object.\n"
},
{
"from": "human",
"value": "package org.myrobotlab.document.transformer;\n\nimport org.myrobotlab.document.transformer.StageConfiguration;\n\nimport java.util.List;\n\nimport org.myrob... | java | chosen |
[
{
"from": "system",
"value": "Use AssertJ instead of JUnit expected to assert thrown exception."
},
{
"from": "human",
"value": "package de.mvitz.jprops.core.api;\n\nimport static org.mockito.BDDMockito.given;\n\nimport org.junit.Test;\nimport org.junit.runner.RunWith;\nimport org.mockito.Inject... | java | chosen |
[
{
"from": "system",
"value": "Use interface instead of implementation class\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2015-2018 the original author or authors.\n *\n * All rights reserved. This program and the accompanying materials are\n * made available under the terms of the Eclipse... | java | chosen |
[
{
"from": "system",
"value": "Work with files in close with resources. Extract pattern for better readablity.\n"
},
{
"from": "human",
"value": "package b_stream;\n\nimport java.io.IOException;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\nimport java.util.Arrays;\nimport java.util.... | java | chosen |
[
{
"from": "system",
"value": "Add temporary default KNS table URL\n"
},
{
"from": "human",
"value": "package org.aksw.kbox.kibe;\n\nimport java.net.MalformedURLException;\nimport java.net.URL;\n\nimport org.aksw.kbox.kns.CustomKNSServerList;\nimport org.aksw.kbox.kns.KNSServerListVisitor;\n\npub... | java | chosen |
[
{
"from": "system",
"value": "Fix to allow “_” (underline) in file path name\n"
},
{
"from": "human",
"value": "package seedu.taskmanager.logic.parser;\n\nimport java.util.regex.Pattern;\n\nimport seedu.taskmanager.logic.parser.ArgumentTokenizer.Prefix;\n\n/**\n * Contains Command Line Interface... | java | chosen |
[
{
"from": "system",
"value": "Switch the default for --experimental_multi_threaded_digest\n\nIt looks like this is fairly widely used now, and we recommend users who are still on spinning platters to upgrade their workstation. :-P\n\nProgress on #6345.\n\nPiperOrigin-RevId: 262317072\n"
},
{
"from":... | java | chosen |
[
{
"from": "system",
"value": "Correct method signature to match changes to Reviki.\n"
},
{
"from": "human",
"value": "package net.hillsdon.reviki.jira.renderer;\n\nimport net.hillsdon.reviki.vc.PageReference;\nimport net.hillsdon.reviki.wiki.renderer.creole.LinkParts;\nimport net.hillsdon.reviki... | java | chosen |
[
{
"from": "system",
"value": "Refactor headers list() with map/collect\n"
},
{
"from": "human",
"value": "package com.hamishrickerby.http_server;\n\nimport java.util.*;\n\n/**\n * Created by rickerbh on 18/08/2016.\n */\npublic class Headers {\n private static String HEADER_SEPARATOR = \": \"... | java | chosen |
[
{
"from": "system",
"value": "Remove unused id in Platoon Dto\n"
},
{
"from": "human",
"value": "package com.royalrangers.dto.structure;\n\nimport lombok.Getter;\nimport lombok.Setter;\n\nimport java.util.Date;\n\n@Getter\n@Setter\npublic class PlatoonDto {\n private Long id;\n private Int... | java | chosen |
[
{
"from": "system",
"value": "Create ofy objectify service for persisting entities\n"
},
{
"from": "human",
"value": "package io.github.trevornelson.service;\n\nimport com.google.devrel.training.conference.domain.Profile;\nimport com.googlecode.objectify.Objectify;\nimport com.googlecode.objecti... | java | chosen |
[
{
"from": "system",
"value": "Add extension type from RFC 5246"
},
{
"from": "human",
"value": "package org.bouncycastle.crypto.tls;\n\n/**\n * RFC 4366 2.3\n */\npublic class ExtensionType\n{\n public static final int server_name = 0;\n public static final int max_fragment_length = 1;\n ... | java | chosen |
[
{
"from": "system",
"value": "Add the time to the format of the date"
},
{
"from": "human",
"value": "package <%=packageName%>.web.rest;\n\nimport <%=packageName%>.security.AuthoritiesConstants;\nimport <%=packageName%>.service.AuditEventService;\nimport <%=packageName%>.web.propertyeditors.Loca... | java | chosen |
[
{
"from": "system",
"value": "Add \"throws Exception\" to customAction method.\n"
},
{
"from": "human",
"value": "package com.github.hisaichi5518.kise;\n\npublic interface UnitActions<ACTION_PARAM> {\n void customAction(ACTION_PARAM actionParam);\n\n void defaultAction(ACTION_PARAM actionP... | java | chosen |
[
{
"from": "system",
"value": "Call helper method instead of hard-coding class-equivalent structures here.\n"
},
{
"from": "human",
"value": "package annotator.find;\n\nimport com.sun.source.tree.*;\nimport com.sun.source.util.TreePath;\n\n/**\n * Represents the criterion that a program element i... | java | chosen |
[
{
"from": "system",
"value": "Fix API not being compilable by itself\n"
},
{
"from": "human",
"value": "/**\n * The Totemic API.\n * This should provide some functionality for extending Totemic.\n */\n@API(apiVersion = \"2.1.0\", owner = Totemic.MOD_ID, provides = \"totemic|API\")\npackage totem... | java | chosen |
[
{
"from": "system",
"value": "Implement Serializable and Comparable interfaces\n"
},
{
"from": "human",
"value": "package io.github.arpankapoor.country;\n\nimport com.google.i18n.phonenumbers.PhoneNumberUtil;\n\nimport java.util.Locale;\n\npublic class Country {\n private String name;\n pr... | java | chosen |
[
{
"from": "system",
"value": "Remove warning suppression that Eclipse doesn't like\n"
},
{
"from": "human",
"value": "/*\n * SafeUriStringImpl.java\n *\n * Copyright (C) 2009-11 by RStudio, Inc.\n *\n * This program is licensed to you under the terms of version 3 of the\n * GNU Affero General Pu... | java | chosen |
[
{
"from": "system",
"value": "Fix missed raw type ArrayList\n"
},
{
"from": "human",
"value": "package me.nallar.javapatcher.mappings;\n\nimport java.util.*;\n\n/**\n * Maps method/field/class names in patches to allow obfuscated code to be patched.\n */\npublic abstract class Mappings {\n\t/**\... | java | chosen |
[
{
"from": "system",
"value": "Update the resource controller instance. The class has changed.\n\nSigned-off-by: Clement Escoffier <6397137e57d1f87002962a37058f2a1c76fca9db@gmail.com>\n"
},
{
"from": "human",
"value": "package site;\n\nimport org.apache.felix.ipojo.configuration.Configuration;\ni... | java | chosen |
[
{
"from": "system",
"value": "Add reference to root file\n"
},
{
"from": "human",
"value": "package com.metacodestudio.hotsuploader;\n\nimport com.metacodestudio.hotsuploader.controllers.HomeController;\nimport io.datafx.controller.flow.Flow;\nimport io.datafx.controller.flow.FlowHandler;\nimpor... | java | chosen |
[
{
"from": "system",
"value": "Use consistent comment for utility class constructor.\n\nSummary: This also reduces the number of executable lines by one according to EMMA.\n\nTest Plan: Sandcastle builds.\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2013-present Facebook, Inc.\n *\n * Lice... | java | chosen |
[
{
"from": "system",
"value": "Improve argument checks and add hint of future ternary extensions"
},
{
"from": "human",
"value": "package org.bouncycastle.math.field;\n\nimport java.math.BigInteger;\n\npublic abstract class FiniteFields\n{\n static final FiniteField GF_2 = new PrimeField(BigIn... | java | chosen |
[
{
"from": "system",
"value": "Create chaptersync table for new databases\n"
},
{
"from": "human",
"value": "package eu.kanade.mangafeed.data.database;\n\nimport android.content.Context;\nimport android.database.sqlite.SQLiteDatabase;\nimport android.database.sqlite.SQLiteOpenHelper;\nimport andr... | java | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.