conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "jni: Allow for comparing document locations.\n"
},
{
"from": "human",
"value": "package com.artifex.mupdf.fitz;\n\npublic final class Location\n{\n\tpublic final int chapter;\n\tpublic final int page;\n\tpublic final float x, y;\n\tpublic Location(int chapter, int p... | java | chosen |
[
{
"from": "system",
"value": "Create data directory, if required\n"
},
{
"from": "human",
"value": "package com.aspose.imaging.examples;\n\nimport java.io.File;\n\npublic class Utils {\n\n public static String getDataDir(Class c) {\n File dir = new File(System.getProperty(\"user.dir\")... | java | chosen |
[
{
"from": "system",
"value": "Change sleep timing of gui robot for command box handle which caused some test cases to fail\n"
},
{
"from": "human",
"value": "package guitests.guihandles;\n\nimport guitests.GuiRobot;\nimport javafx.stage.Stage;\n\n/**\n * A handle to the Command Box in the GUI.\n... | java | chosen |
[
{
"from": "system",
"value": "Revert \"first attempt to improve performance\"\n"
},
{
"from": "human",
"value": "package com.ideaheap;\n\nimport java.util.Comparator;\nimport java.util.Map;\nimport java.util.Set;\nimport java.util.stream.Collectors;\n\npublic class StreamsBasedCalculator {\n\n ... | java | chosen |
[
{
"from": "system",
"value": "Fix small source formatting issue\n"
},
{
"from": "human",
"value": "import java.io.*;\nimport java.util.*;\n\nimport irgeneration.*;\nimport semanticanalysis.*;\nimport symboltable.*;\nimport syntaxtree.*;\nimport visitor.*;\n\npublic class MiniJavaCompiler\n{\n ... | java | chosen |
[
{
"from": "system",
"value": "Test case is still in design phase\n"
},
{
"from": "human",
"value": "package com.vryba.selenium;\n\nimport com.vryba.selenium.pageObjects.HomePage;\nimport com.vryba.selenium.pageObjects.QuestionsPage;\nimport com.vryba.selenium.utilities.TestBase;\nimport org.apac... | java | chosen |
[
{
"from": "system",
"value": "Change modelId to type Integer\n"
},
{
"from": "human",
"value": "package xyz.igorgee.imagecreator3d;\n\nimport java.io.File;\n\npublic class Model {\n String name;\n File location;\n String modelID;\n\n public Model(String name, File location) {\n ... | java | chosen |
[
{
"from": "system",
"value": "Change ID to String (easier for comparisons)\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2013 That Amazing Web Ltd.\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": "Update default version to version 3\n"
},
{
"from": "human",
"value": "package com.timeanddate.services;\n\n/**\n * \n * @author Cato Auestad {@literal <cato@timeanddate.com>}\n *\n */\nfinal class Constants {\n\tstatic final int DefaultVersion = 2;\n\tstatic final ... | java | chosen |
[
{
"from": "system",
"value": "Align easing float classes API\n"
},
{
"from": "human",
"value": "package com.haxademic.core.math.easing;\n\npublic class LinearFloat \nimplements IEasingValue {\n\n\tpublic float _val, _target, _inc;\n\tpublic int _delay;\n\t\t \n\tpublic LinearFloat( float value... | java | chosen |
[
{
"from": "system",
"value": "Introduce format-string version for rethrow VE\n\nWe currently have the ValidationException(String, Exception)\nconstructor, which prevents us from overloading a format String\nversion. This introduces a VE(Exception, String, args) so\nthat VE(String, Exception) can be deprecat... | java | chosen |
[
{
"from": "system",
"value": "Test commit/pull on new machine\n\n\nThis used to be revision r1885.\n"
},
{
"from": "human",
"value": "package controller;\n\nimport pipesentity.Definition;\n\npublic interface DefinitionProcessor {\n\n\tpublic Object execute( Definition definition );\n\t\n}\n"
}... | java | chosen |
[
{
"from": "system",
"value": "Add note that we need to handle HTTP redirection"
},
{
"from": "human",
"value": "package com.thaiopensource.resolver;\n\nimport java.net.URI;\nimport java.net.URISyntaxException;\nimport java.net.URL;\nimport java.io.IOException;\n\n/**\n *\n */\npublic class Basic... | java | chosen |
[
{
"from": "system",
"value": "Fix colour not being set when a colour multiplier with white was added\n"
},
{
"from": "human",
"value": "package codechicken.lib.render;\n\nimport codechicken.lib.colour.ColourRGBA;\n\npublic class ColourMultiplier implements CCRenderState.IVertexOperation\n{\n ... | java | chosen |
[
{
"from": "system",
"value": "Revert \"Not fail the build if file-leak-detector server down\"\n\nThis reverts commit f4003e6e794f75517f160c46e19bed52fc5a0165.\n"
},
{
"from": "human",
"value": "import java.time.format.*;\nimport java.time.*;\nimport java.io.*;\nimport java.nio.file.*;\nimport ja... | java | chosen |
[
{
"from": "system",
"value": "Fix HTTP method on voice fetch queued calls\n"
},
{
"from": "human",
"value": "package com.africastalking;\n\nimport retrofit2.Call;\nimport retrofit2.http.*;\n\ninterface IVoice {\n\n @FormUrlEncoded\n @POST(\"call\")\n Call<String> call(@Field(\"username\... | java | chosen |
[
{
"from": "system",
"value": "Migrate from strongly discouraged @Test(expected = ...) to assertThrows(...).\n\nWe got an internal auto-generated cleanup CL.\n\nRelease-Notes: skip\nChange-Id: I40bfdf671f7ef25b23c79a60e505cd5d6a54eb82\n"
},
{
"from": "human",
"value": "// Copyright (C) 2019 The A... | java | chosen |
[
{
"from": "system",
"value": "Remove the code instead of having the compiler do this. "
},
{
"from": "human",
"value": "/**\n * Copyright (C) 2009-2013 FoundationDB, LLC\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General ... | java | chosen |
[
{
"from": "system",
"value": "Remove tileset load debug message\n"
},
{
"from": "human",
"value": "package me.hugmanrique.pokedata.tiles;\n\nimport lombok.Getter;\nimport me.hugmanrique.pokedata.Data;\nimport me.hugmanrique.pokedata.roms.ROM;\n\n/**\n * http://datacrystal.romhacking.net/wiki/Pok... | java | chosen |
[
{
"from": "system",
"value": "Test the removal of an observer.\n"
},
{
"from": "human",
"value": "package com.flexibledeveloper.observer;\n\nimport org.junit.Test;\n\n/**\n * Created by kharyam on 5/17/14.\n */\npublic class ObserverTest {\n\n @Test\n public void nominalBehavior() {\n Concr... | java | chosen |
[
{
"from": "system",
"value": "Add require_build parameter to teleport actions\n"
},
{
"from": "human",
"value": "package com.elmakers.mine.bukkit.action;\n\nimport com.elmakers.mine.bukkit.api.action.CastContext;\nimport org.bukkit.Location;\nimport org.bukkit.configuration.ConfigurationSection;... | java | chosen |
[
{
"from": "system",
"value": "Add final modifier to method arguments.\nAdd dummy object which represents an empty elw.\n"
},
{
"from": "human",
"value": "package de.schlegel11.eventdispatcher;\n\nimport java.util.EventListener;\nimport java.util.Objects;\n\n/**\n * Created by schlegel11 on 05.11... | java | chosen |
[
{
"from": "system",
"value": "Add annotation for service extension\n"
},
{
"from": "human",
"value": "/*\n * RESTHeart - the Web API for MongoDB\n * Copyright (C) SoftInstigate Srl\n * \n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Aff... | java | chosen |
[
{
"from": "system",
"value": "Implement to equals and hashcode\n"
},
{
"from": "human",
"value": "package stream.flarebot.flarebot.objects;\n\nimport net.dv8tion.jda.core.requests.RestAction;\nimport stream.flarebot.flarebot.commands.Command;\n\npublic class RestActionWrapper {\n\n private fi... | java | chosen |
[
{
"from": "system",
"value": "Update invalid URI to correctly throw exception\n"
},
{
"from": "human",
"value": "/*\n * $Id: AltRepTest.java [23-Apr-2004]\n *\n * Copyright (c) 2004, Ben Fortuna All rights reserved.\n */\npackage net.fortuna.ical4j.model.parameter;\n\nimport java.net.URI;\nimpor... | java | chosen |
[
{
"from": "system",
"value": "Add checkbox validation in main activity\n"
},
{
"from": "human",
"value": "package br.com.bloder.blorm;\n\nimport android.support.v7.app.AppCompatActivity;\nimport android.os.Bundle;\nimport android.widget.Button;\nimport android.widget.EditText;\nimport android.wi... | java | chosen |
[
{
"from": "system",
"value": "Initialize FabricXX C++ code and register rootview\n\nSummary: This diff initializes Fabric C++ UIManager code from java, it also registers android RootViews inside C++.\n\nReviewed By: shergin\n\nDifferential Revision: D8794819\n\nfbshipit-source-id: b4d1d0958a3f8e01d4a51be957... | java | chosen |
[
{
"from": "system",
"value": "Make mod name tooltip italic\n"
},
{
"from": "human",
"value": "package mezz.jei;\r\n\r\nimport javax.annotation.Nonnull;\r\n\r\nimport net.minecraft.item.Item;\r\nimport net.minecraft.item.ItemStack;\r\nimport net.minecraft.util.EnumChatFormatting;\r\n\r\nimport ne... | java | chosen |
[
{
"from": "system",
"value": "Fix NPE for mispelled/missing directories in type-ahead file lookup\n"
},
{
"from": "human",
"value": "\npackage water.api;\n\nimport java.io.File;\n\nimport com.google.gson.*;\n\npublic class TypeaheadFileRequest extends TypeaheadRequest {\n\n public TypeaheadFile... | java | chosen |
[
{
"from": "system",
"value": "Implement toString() for debug purposes.\n"
},
{
"from": "human",
"value": "package de.croesch.diff.subject;\n\nimport de.croesch.diff.subject.api.Subject;\n\n/**\n * The basic implementation of a Subject, contains code that all Subjects share.\n *\n * @param <CT> t... | java | chosen |
[
{
"from": "system",
"value": "Add test for hash mismatch checking\n"
},
{
"from": "human",
"value": "package ee.shy.storage;\n\nimport org.junit.Before;\n\nimport java.nio.file.Path;\nimport java.util.Arrays;\n\npublic class FileStorageTest extends DataStorageTest {\n private Path storageDire... | java | chosen |
[
{
"from": "system",
"value": "Allow disabling of the test mod by setting a system property\n\nSimply add the JVM flag \"-Doml.testmod.disable=true\", and get rid of all\nthe log spam"
},
{
"from": "human",
"value": "package xyz.openmodloader.test;\n\nimport java.lang.reflect.InvocationTargetExce... | java | chosen |
[
{
"from": "system",
"value": "Adjust order of dependency set in DEVELOP mode\n"
},
{
"from": "human",
"value": "package com.github.blindpirate.gogradle.core.mode;\n\nimport com.github.blindpirate.gogradle.core.dependency.GolangDependencySet;\n\nimport static com.github.blindpirate.gogradle.core... | java | chosen |
[
{
"from": "system",
"value": "Fix NPE in applying wolf entity data from config\n"
},
{
"from": "human",
"value": "package com.elmakers.mine.bukkit.entity;\n\nimport org.bukkit.DyeColor;\nimport org.bukkit.configuration.ConfigurationSection;\nimport org.bukkit.entity.Entity;\nimport org.bukkit.en... | java | chosen |
[
{
"from": "system",
"value": "Add getCommand handler for strings\n\n"
},
{
"from": "human",
"value": "package com.avairebot.orion.commands;\n\nimport net.dv8tion.jda.core.entities.Message;\n\nimport java.util.Collection;\nimport java.util.HashMap;\nimport java.util.List;\nimport java.util.Map;\n... | java | chosen |
[
{
"from": "system",
"value": "Add isEnable method to the slot for render things"
},
{
"from": "human",
"value": "package info.u_team.u_team_core.container;\n\nimport info.u_team.u_team_core.api.fluid.IFluidHandlerModifiable;\nimport net.minecraftforge.fluids.FluidStack;\n\npublic class FluidSlot... | java | chosen |
[
{
"from": "system",
"value": "Write getName() manually instead of using lombok to please PMD\n"
},
{
"from": "human",
"value": "package net.liquidpineapple.pang;\n\nimport lombok.Getter;\n\n/**\n * @author Govert de Gans\n * @date 2016-10-25\n */\npublic final class SoundEffect {\n public stati... | java | chosen |
[
{
"from": "system",
"value": "[Green] Return valid total amount for a basket with one book\n"
},
{
"from": "human",
"value": "package com.flipper83.katapotter;\n\nimport java.util.List;\n\npublic class BasketCalculator {\n public int calculatePrice(List<String> books) {\n return 0;\n ... | java | chosen |
[
{
"from": "system",
"value": "Remove redundant type parameter extension of Object\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 * See the NOTICE file distributed w... | java | chosen |
[
{
"from": "system",
"value": "Reduce the retention of the annotation to compile-time only.\n"
},
{
"from": "human",
"value": "package butterknife;\n\nimport java.lang.annotation.Retention;\nimport java.lang.annotation.Target;\n\nimport static java.lang.annotation.ElementType.FIELD;\nimport stati... | java | chosen |
[
{
"from": "system",
"value": "Add 'temporalChart' as FXML-injected field\n"
},
{
"from": "human",
"value": "/* *\\\n** SICU Stress Measurement System **\n** Project P04... | java | chosen |
[
{
"from": "system",
"value": "Add new test to see if we are failing correctly\n"
},
{
"from": "human",
"value": "package com.springapp.batch;\n\nimport com.springapp.batch.bo.Person;\nimport org.joda.time.DateTime;\nimport org.junit.Assert;\nimport org.junit.Test;\nimport org.junit.runner.RunWit... | java | chosen |
[
{
"from": "system",
"value": "Revert \"Android build now uses immersive mode.\"\n\nThis reverts commit fee8b18cf00d8d566e35ae2d97d413d1f15c36af.\n"
},
{
"from": "human",
"value": "package com.gdxjam.base.android;\n\nimport android.os.Bundle;\n\nimport com.badlogic.gdx.backends.android.AndroidApp... | java | chosen |
[
{
"from": "system",
"value": "Define id reader as contract method.\n"
},
{
"from": "human",
"value": "package com.github.aureliano.verbum_domini.domain.bean;\n\nimport java.io.Serializable;\n\npublic interface IBean extends Serializable {\n\n\tpublic abstract <T extends Object> T toResource();\n... | java | chosen |
[
{
"from": "system",
"value": "Revert changes to the Void Terrain Generator\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 http://... | java | chosen |
[
{
"from": "system",
"value": "Implement tests of ComparisonError class\n"
},
{
"from": "human",
"value": "package com.alexrnl.commons.utils.object;\n\nimport static org.junit.Assert.fail;\n\nimport org.junit.Before;\nimport org.junit.Test;\n\n/**\n * Test suite for the {@link ComparisonError} cl... | java | chosen |
[
{
"from": "system",
"value": "Add in a convenience method for getting a class instance based on\nexistence of another Mod. Useful for soft dependencies.\n"
},
{
"from": "human",
"value": "package cpw.mods.fml.common.event;\n\nimport cpw.mods.fml.common.LoaderState.ModState;\n\npublic class FMLPo... | java | chosen |
[
{
"from": "system",
"value": "Fix for RN 0.47 breaking change.\n"
},
{
"from": "human",
"value": "package org.vovkasm.WebImage;\n\nimport com.facebook.react.ReactPackage;\nimport com.facebook.react.bridge.NativeModule;\nimport com.facebook.react.bridge.JavaScriptModule;\nimport com.facebook.reac... | java | chosen |
[
{
"from": "system",
"value": "Enable pretty printing of JSON in logs\n"
},
{
"from": "human",
"value": "package com.xmartlabs.template.module;\n\nimport com.google.gson.Gson;\nimport com.google.gson.GsonBuilder;\n\nimport java.util.Date;\n\nimport javax.inject.Singleton;\n\nimport dagger.Module;... | java | chosen |
[
{
"from": "system",
"value": "Set local storage as default storage type\n"
},
{
"from": "human",
"value": "package modules.storage;\n\nimport com.google.inject.AbstractModule;\nimport play.Configuration;\nimport play.Environment;\n\npublic class StorageModule extends AbstractModule {\n privat... | java | chosen |
[
{
"from": "system",
"value": "Add on click listener in on submit function\n"
},
{
"from": "human",
"value": "package br.com.bloder.blormlib;\n\nimport android.view.View;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\nimport br.com.bloder.blormlib.validation.Validate;\nimport br.com.bl... | java | chosen |
[
{
"from": "system",
"value": "Use the interface for this\n"
},
{
"from": "human",
"value": "package com.mooo.aimmac23.hub.proxy;\n\nimport java.util.Map;\n\nimport org.openqa.grid.internal.utils.CapabilityMatcher;\n\npublic class ReliableCapabilityMatcher implements CapabilityMatcher {\n\t\n\tpr... | java | chosen |
[
{
"from": "system",
"value": "Increase to public visibility (better for use)"
},
{
"from": "human",
"value": "package net.aeten.core.spi.factory;\n\nimport java.util.concurrent.atomic.AtomicInteger;\n\nimport net.aeten.core.spi.SpiFactory;\n\nclass ThreadFactory implements\n\t\tSpiFactory <java.... | java | chosen |
[
{
"from": "system",
"value": "Check for some JSON content in the test\n"
},
{
"from": "human",
"value": "package io.github.jordao76.quotes;\n\nimport static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.*;\nimport static org.springframework.test.web.servlet.result.MockMvcRe... | java | chosen |
[
{
"from": "system",
"value": "Use this. notation instead of expecting things to autocomplete to ivs\n"
},
{
"from": "human",
"value": "package org.usfirst.frc.team2503.r2016.component;\n\nimport edu.wpi.first.wpilibj.DigitalInput;\nimport edu.wpi.first.wpilibj.SpeedController;\n\npublic class In... | java | chosen |
[
{
"from": "system",
"value": "Make MHRunnableImpl abstract to force subclassing\n\n... don't want to encourage direct instantiation... at least not until the pattern emerges clearly and we can see a reason to do so.\n"
},
{
"from": "human",
"value": "package com.digistratum.microhost;\n\nimport ... | java | chosen |
[
{
"from": "system",
"value": "Add a pawn promotion window with no functionality\n"
},
{
"from": "human",
"value": "package com.devinhartzell.chess.gui;\n\nimport javax.swing.JFrame;\n\npublic class PawnPromotionWindow extends JFrame {\n\t\n\tprivate static final long serialVersionUID = -16863046... | java | chosen |
[
{
"from": "system",
"value": "Allow preferred width or height to be overridden since it seems that\nJScrollPane will happily return some insane value when it's wrapping an\nempty JList.\n\n\ngit-svn-id: a1a4b28b82a3276cc491891159dd9963a0a72fae@2314 542714f4-19e9-0310-aa3c-eee0fc999fb1\n"
},
{
"from"... | java | chosen |
[
{
"from": "system",
"value": "Remove author tags from javadoc\n"
},
{
"from": "human",
"value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * re... | java | chosen |
[
{
"from": "system",
"value": "Document that this part of the unit test code must remain in src/\n\ngit-svn-id: https://svn.apache.org/repos/asf/jakarta/jmeter/trunk@602096 13f79535-47bb-0310-9956-ffa450edef68\n\nFormer-commit-id: cc2bf2cbe435b46f10d576d25c73048cd4ac9736"
},
{
"from": "human",
"v... | java | chosen |
[
{
"from": "system",
"value": "Fix: Add type id attribute in modeling\n"
},
{
"from": "human",
"value": "package sizebay.catalog.client.model;\n\nimport java.util.*;\nimport com.fasterxml.jackson.annotation.JsonValue;\nimport lombok.*;\n\n@Getter\n@Setter\npublic class Modeling {\n \n private... | java | chosen |
[
{
"from": "system",
"value": "Revert \"Add description of serialize and deserialize(not completed)\"\n\nThis reverts commit d8f815db25d72e626d93953dae220a99d8510daa.\n"
},
{
"from": "human",
"value": "package com.kii.thingif.command;\n\n/**\n * Marks a class as group of actions of command. The c... | java | chosen |
[
{
"from": "system",
"value": "Fix broken build due to not running tests before committing :(\n"
},
{
"from": "human",
"value": "package net.pdp7.v2f.core;\n\nimport junit.framework.TestCase;\nimport net.pdp7.v2f.core.Router.ListTableRoute;\n\npublic class RouterTest extends TestCase {\n\n\tpubli... | java | chosen |
[
{
"from": "system",
"value": "Set loginRequired to false. For users without login, this is required for \"back\" link on some pages to function.\n\n\nSVN-Revision: 10730\n"
},
{
"from": "human",
"value": "/*\n The caLAB Software License, Version 0.5\n\n Copyright 2006 SAIC. This software was dev... | java | chosen |
[
{
"from": "system",
"value": "Inflate the Menu, set the textView to scroll vertically\n"
},
{
"from": "human",
"value": "package com.andela.webservice;\n\nimport android.support.v7.app.AppCompatActivity;\nimport android.os.Bundle;\n\npublic class MainActivity extends AppCompatActivity {\n\n @... | java | chosen |
[
{
"from": "system",
"value": "Use a more descriptive variable name and point out, that the parameter must not be null.\n\ngit-svn-id: 5ccfe34f605a6c2f9041ff2965ab60012c62539a@1721006 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "human",
"value": "/*\n * Licensed to the Apache Software Fo... | java | chosen |
[
{
"from": "system",
"value": "Enable debug logs only for debug builds on server\n\nPrint the logs only if their level is not under the threshold, which is\ndefined to INFO in release mode and DEBUG in debug mode.\n"
},
{
"from": "human",
"value": "package com.genymobile.scrcpy;\n\nimport android... | java | chosen |
[
{
"from": "system",
"value": "Add api-key and authorisation in http header\n"
},
{
"from": "human",
"value": "package com.github.sbugat.samplerest.web.filter;\n\nimport java.io.IOException;\n\nimport javax.servlet.Filter;\nimport javax.servlet.FilterChain;\nimport javax.servlet.FilterConfig;\nim... | java | chosen |
[
{
"from": "system",
"value": "Use an explicit annotation in test for non copying annotation\n"
},
{
"from": "human",
"value": "import arez.annotations.Action;\nimport arez.annotations.ArezComponent;\nimport arez.annotations.Memoize;\nimport arez.annotations.Observable;\nimport javax.annotation.N... | java | chosen |
[
{
"from": "system",
"value": "Change id to String type to avoid data duplication."
},
{
"from": "human",
"value": "package cl.fatman.capital.fund;\n\nimport javax.persistence.Column;\nimport javax.persistence.Entity;\nimport javax.persistence.GeneratedValue;\nimport javax.persistence.Id;\nimport... | java | chosen |
[
{
"from": "system",
"value": "Fix for Connectivity status check\n\nUpdates connectivity status check to match best practice from\r\n\r\nhttps://developer.android.com/training/monitoring-device-state/connectivity-monitoring.html#DetermineType"
},
{
"from": "human",
"value": "package org.commcare.... | java | chosen |
[
{
"from": "system",
"value": "Add semi-compatibility with Java 9+\n\n"
},
{
"from": "human",
"value": "package xyz.upperlevel.uppercore.util;\n\nimport java.io.File;\nimport java.lang.invoke.MethodHandle;\nimport java.lang.invoke.MethodHandles;\nimport java.lang.reflect.Method;\nimport java.net.... | java | chosen |
[
{
"from": "system",
"value": "Use SqlTranslate to generate random since there is some additional logic involved (e.g. non-numeric initial character)\n"
},
{
"from": "human",
"value": "package org.ohdsi.webapi.util;\n\nimport org.apache.commons.lang3.RandomStringUtils;\n\n\n/**\n *\n */\npublic f... | java | chosen |
[
{
"from": "system",
"value": "Update (PUT) a resource API call is added."
},
{
"from": "human",
"value": "package com.bigcommerce.api.resources;\n\nimport java.util.List;\n\nimport com.bigcommerce.api.Filter;\nimport com.bigcommerce.api.Response;\n\npublic interface Resource {\n\tpublic List<? e... | java | chosen |
[
{
"from": "system",
"value": "Fix dab command failing on users with multiple words in their name\n\nCloses #22\n"
},
{
"from": "human",
"value": "package com.nincraft.ninbot.command;\n\nimport com.nincraft.ninbot.util.MessageUtils;\nimport lombok.val;\nimport net.dv8tion.jda.core.entities.Messag... | java | chosen |
[
{
"from": "system",
"value": "Store Material instead of materialid"
},
{
"from": "human",
"value": "package de.st_ddt.crazyutil.geo.block;\n\nimport org.bukkit.Location;\nimport org.bukkit.block.Block;\n\nimport de.st_ddt.crazyutil.geo.location.GeoLocation;\n\npublic class GeoBlock extends GeoLo... | java | chosen |
[
{
"from": "system",
"value": "Mark overriden deprecated method as deprected"
},
{
"from": "human",
"value": "\npackage org.vaadin.viritin.layouts;\n\nimport com.vaadin.shared.ui.MarginInfo;\n\npublic class MMarginInfo extends MarginInfo {\n\n private static final long serialVersionUID = -3559... | java | chosen |
[
{
"from": "system",
"value": "Use STOP instead of CANCELLED to cancel an action stack\n"
},
{
"from": "human",
"value": "package com.elmakers.mine.bukkit.action.builtin;\n\nimport com.elmakers.mine.bukkit.action.BaseSpellAction;\nimport com.elmakers.mine.bukkit.api.action.CastContext;\nimport co... | java | chosen |
[
{
"from": "system",
"value": "Allow non-recursive bindings for the \"old\" patt...\n\nAllow non-recursive bindings for the \"old\" pattern matcher.\n\n"
},
{
"from": "human",
"value": "package scalac.transformer.matching ;\n\nimport scalac.ast.Tree;\nimport scalac.util.Name;\nimport scalac.symta... | java | chosen |
[
{
"from": "system",
"value": "[FIX] Fix issue on root directory\n"
},
{
"from": "human",
"value": "package com.freak.asteroid.randomiser;\n\nimport android.app.Activity;\nimport android.os.Environment;\nimport android.support.v7.app.AppCompatActivity;\nimport android.os.Bundle;\nimport android.v... | java | chosen |
[
{
"from": "system",
"value": "Remove mobile test suite because tests can be executed with wildcard.\n"
},
{
"from": "human",
"value": "package pt.fccn.mobile.arquivo.suite;\n\nimport org.junit.runner.RunWith;\nimport org.junit.runners.Suite;\nimport org.junit.runners.Suite.SuiteClasses;\n\nimpor... | java | chosen |
[
{
"from": "system",
"value": "Fix the spawning bug with autogenerated levels\n"
},
{
"from": "human",
"value": "package uk.co.alynn.games.ld30;\n\nimport java.util.List;\nimport uk.co.alynn.games.ld30.world.Planet;\nimport uk.co.alynn.games.ld30.world.Adversary;\n\npublic class SuperimposedWave ... | java | chosen |
[
{
"from": "system",
"value": "Update main driver using UI()"
},
{
"from": "human",
"value": "package main;\r\n/**\r\n * @author XYLau\r\n */\r\nimport edu.dynamic.dynamiz.UI.*;\r\n\r\npublic class Dynamiz {\r\n\tpublic static void main() {\r\n\t\tUI sc = new UI();\t\r\n\t}\r\n}\r\n"
},
{
... | java | chosen |
[
{
"from": "system",
"value": "Handle empty \"component\" streams\nImplement read(byte[],int,int) as optimisation\n"
},
{
"from": "human",
"value": "package org.bouncycastle.asn1;\n\nimport java.io.InputStream;\nimport java.io.IOException;\n\nclass ConstructedOctetStream\n extends InputStream\... | java | chosen |
[
{
"from": "system",
"value": "[java] Add more tests for ClosePool.\n"
},
{
"from": "human",
"value": "package org.hyperledger.indy.sdk.pool;\n\nimport org.hyperledger.indy.sdk.IndyException;\nimport org.hyperledger.indy.sdk.IndyIntegrationTest;\nimport org.hyperledger.indy.sdk.utils.PoolUtils;\n... | java | chosen |
[
{
"from": "system",
"value": "Comment how to port to new Base64 encoder in Java 8 and 9\n"
},
{
"from": "human",
"value": "package net.bettyluke.tracinstant.data;\n\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.net.URL;\nimport java.net.URLConnection;\n\nimport net.betty... | java | chosen |
[
{
"from": "system",
"value": "Add a utility for checking valid view types\n"
},
{
"from": "human",
"value": "package io.jasonsparc.chemistry.util;\n\nimport android.support.annotation.AnyRes;\nimport android.support.v7.widget.RecyclerView;\n\nimport io.jasonsparc.chemistry.ViewType;\n\n/**\n * C... | java | chosen |
[
{
"from": "system",
"value": "Upgrade to Jacoco 0.8.8 for Java 18 compatibility.\n"
},
{
"from": "human",
"value": "package org.ehcache.build.conventions;\n\nimport org.gradle.api.Plugin;\nimport org.gradle.api.Project;\nimport org.gradle.api.tasks.testing.Test;\nimport org.gradle.testing.jacoco... | java | chosen |
[
{
"from": "system",
"value": "Fix CIPANGO-99: Creating a DiameterServletRequest without specifying the destinationhost field leads to a null pointer exception when sending a the request"
},
{
"from": "human",
"value": "// ========================================================================\r... | java | chosen |
[
{
"from": "system",
"value": "Remove a remaining $Id:$ marker\n"
},
{
"from": "human",
"value": "/*\n * Hibernate Validator, declare and validate application constraints\n *\n * License: Apache License, Version 2.0\n * See the license.txt file in the root directory or <http://www.apache.org/lice... | java | chosen |
[
{
"from": "system",
"value": "Allow players to see their own stats\n"
},
{
"from": "human",
"value": "package com.faforever.client.fx.contextmenu;\n\nimport com.faforever.client.domain.PlayerBean;\nimport com.faforever.client.i18n.I18n;\nimport com.faforever.client.player.PlayerInfoWindowControl... | java | chosen |
[
{
"from": "system",
"value": "Add method to get a command's content after the prefix\n"
},
{
"from": "human",
"value": "package top.quantic.sentry.discord.core;\n\nimport joptsimple.OptionSet;\nimport sx.blah.discord.handle.obj.IMessage;\n\npublic class CommandContext {\n\n private IMessage m... | java | chosen |
[
{
"from": "system",
"value": "Fix time display to be in seconds instead of ms\n"
},
{
"from": "human",
"value": "package revert.MainScene.notifications;\n\n/**\n * Notification type of the game's scoring mechanics\n * \n * @author nhydock\n */\npublic class WorldNotification {\n\n\tprivate stati... | java | chosen |
[
{
"from": "system",
"value": "Make Item.createEntity only call when its specifically a EntityItem, not a subclass of it.\n"
},
{
"from": "human",
"value": "package net.minecraftforge.common;\n\nimport java.util.UUID;\n\nimport net.minecraft.src.*;\nimport net.minecraftforge.event.*;\nimport net.... | java | chosen |
[
{
"from": "system",
"value": "Clean up HttpClient after tests.\n"
},
{
"from": "human",
"value": "package io.induct.yle;\n\nimport com.google.inject.Guice;\nimport com.google.inject.Injector;\nimport io.induct.daniel.DanielModule;\nimport io.induct.yle.ioc.YleApiModule;\nimport org.junit.BeforeC... | java | chosen |
[
{
"from": "system",
"value": "Test commit of the Ramp Options Panel\n"
},
{
"from": "human",
"value": "import javax.swing.*;\nimport java.awt.event.ActionEvent;\nimport java.awt.event.ActionListener;\n\n/**\n * Created by smurphy on 2/24/15.\n */\npublic class RampOptionsPanel extends OptionsPan... | java | chosen |
[
{
"from": "system",
"value": "Add wait field. This is used when checking in returns a failure. It specifies the time until the next possible check in."
},
{
"from": "human",
"value": "package com.jakewharton.trakt.entities;\n\nimport com.jakewharton.trakt.TraktEntity;\n\npublic class Response im... | java | chosen |
[
{
"from": "system",
"value": "Use setInnerText only which already solves XSS Attacks (Avoid duplication)\n"
},
{
"from": "human",
"value": "package gwt.material.design.client.base.mixin;\n\n/*\n * #%L\n * GwtBootstrap3\n * %%\n * Copyright (C) 2013 GwtBootstrap3\n * %%\n * Licensed under the Apa... | java | chosen |
[
{
"from": "system",
"value": "Clarify specs for Variable helper\n"
},
{
"from": "human",
"value": "package specs;\n\nimport static com.greghaskins.spectrum.Spectrum.beforeEach;\nimport static com.greghaskins.spectrum.Spectrum.describe;\nimport static com.greghaskins.spectrum.Spectrum.it;\nimport... | java | chosen |
[
{
"from": "system",
"value": "Remove unused worker (and thus a worker leak)"
},
{
"from": "human",
"value": "package rsc.publisher;\n\nimport java.util.Objects;\n\nimport org.reactivestreams.Subscriber;\n\nimport rsc.flow.Cancellation;\nimport rsc.scheduler.Scheduler;\nimport rsc.util.EmptySubsc... | java | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.