conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Update actionbar color in settings\n" }, { "from": "human", "value": "package fr.neamar.kiss;\n\nimport android.app.Activity;\nimport android.content.SharedPreferences;\nimport android.graphics.Color;\nimport android.os.Build;\nimport android.preference.PreferenceMa...
java
chosen
[ { "from": "system", "value": "Fix compile error because of bad response type.\n" }, { "from": "human", "value": "package fixtures.jaxb;\n\nimport javax.ws.rs.GET;\nimport javax.ws.rs.POST;\nimport javax.ws.rs.Path;\n\n@Path(\"/jaxb\")\npublic class JaxbResource {\n @GET\n public ResponseMo...
java
chosen
[ { "from": "system", "value": "Allow interceptor annotation to be placed on methods.\n" }, { "from": "human", "value": "package easylog.jee;\n\nimport javax.interceptor.InterceptorBinding;\nimport java.lang.annotation.Inherited;\nimport java.lang.annotation.Retention;\nimport java.lang.annotation...
java
chosen
[ { "from": "system", "value": "Revert \"CB-14584 triggering ccm upgrade flow through internal call\"\n\nThis reverts commit a42fe0090ce5d442a8073ef1b63a4440647aceb9.\n" }, { "from": "human", "value": "package com.sequenceiq.cloudbreak.service.upgrade.ccm;\n\nimport static com.sequenceiq.cloudbrea...
java
chosen
[ { "from": "system", "value": "Make parameter resolution backwards compatible\n" }, { "from": "human", "value": "package com.codicesoftware.plugins.hudson.util;\r\n\r\nimport hudson.Util;\r\nimport hudson.model.ParameterValue;\r\n\r\nimport java.util.HashMap;\r\nimport java.util.List;\r\nimport j...
java
chosen
[ { "from": "system", "value": "Change the name \"from\" and \"to\" to \"sender\" and \"receiver\"." }, { "from": "human", "value": "package io.xchris6041x.devin.playerdata.request;\n\nimport java.util.UUID;\n\nimport org.bukkit.OfflinePlayer;\nimport org.bukkit.entity.Player;\n\n/**\n * @author C...
java
chosen
[ { "from": "system", "value": "Allow HTTP client PRESERVE_AUTHORIZATION_KEY to be unset\n" }, { "from": "human", "value": "package io.airlift.http.client.jetty;\n\nimport org.eclipse.jetty.client.HttpClient;\nimport org.eclipse.jetty.client.HttpClientTransport;\nimport org.eclipse.jetty.client.Ht...
java
chosen
[ { "from": "system", "value": "Upgrade to JMeter 3.2\nFATAL_ERROR does not exist anymore after migration of JMeter to slf4j" }, { "from": "human", "value": "package com.lazerycode.jmeter.configuration;\n\n/**\n * Enum containing the log levels supported by JMeter\n */\npublic enum LogLevel {\n\tF...
java
chosen
[ { "from": "system", "value": "Fix lin. decay NW comment.\n" }, { "from": "human", "value": "package cs437.som.neighborhood;\n\nimport cs437.som.NeightborhoodWidthFunction;\n\n/**\n * Neighborhood width strategy for self-organizing maps that decays the width\n * linearly as the iterations progres...
java
chosen
[ { "from": "system", "value": "Update copyright notice with MIT license" }, { "from": "human", "value": "/*++\n\nNASM Assembly Language Plugin\nCopyright (c) 2017-2018 Aidan Khoury. All rights reserved.\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of...
java
chosen
[ { "from": "system", "value": "Add a constructor that takes a cause Exception.\n\n\ngit-svn-id: fcb33a7ee5ec38b96370833547f088a4e742b712@1638 c76caeb1-94fd-44dd-870f-0c9d92034fc1\n" }, { "from": "human", "value": "// Copyright (c) 1999-2004 Brian Wellington (bwelling@xbill.org)\n\npackage org.xbi...
java
chosen
[ { "from": "system", "value": "Fix serialization issue for oxRegistration class\n" }, { "from": "human", "value": "/*\n * oxTrust is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text.\n *\n * Copyright (c) 2014, Gluu\n */\n\n/**\n * \n */\npackage org.gl...
java
chosen
[ { "from": "system", "value": "Fix an issue causing alien4cloud static resources (csar and plugin) to be unavailable when main directory was expressed using relative paths.\n" }, { "from": "human", "value": "package alien4cloud.webconfiguration;\n\nimport org.springframework.beans.factory.annotat...
java
chosen
[ { "from": "system", "value": "Add in package header to lexer.\n" }, { "from": "human", "value": "import java.io.Reader;\nimport java.util.Iterator;\n\nimport com.hypirion.smallex.Item;\n\npublic class SMLXLexer implements Iterator<Item> {\n private Reader reader;\n\n public SMLXLexer(Reade...
java
chosen
[ { "from": "system", "value": "Change test to using JenkinsRule\n" }, { "from": "human", "value": "package org.jenkinsci.plugins.github.status.sources;\n\nimport hudson.model.Run;\nimport hudson.model.TaskListener;\nimport org.junit.Rule;\nimport org.junit.Test;\nimport org.junit.runner.RunWith;\...
java
chosen
[ { "from": "system", "value": "Increment minor version to 2.15 to prepare for a new release.\n\n-------------\nCreated by MOE: https://github.com/google/moe\nMOE_MIGRATED_REVID=159890586\n" }, { "from": "human", "value": "/**\n * Copyright 2015 Google Inc. All Rights Reserved.\n *\n * Licensed un...
java
chosen
[ { "from": "system", "value": "Remove redundant \"docker\" string in the command\n\nThe base DockerCommand class adds \"docker\" to the start for all command.\nDockerBuildCommand also adds a superfluous \"docker\" creating the command \"docker\ndocker build\", which naturally fails.\n" }, { "from": "...
java
chosen
[ { "from": "system", "value": "Add set to lazy init object, to bypass init code if needed\n" }, { "from": "human", "value": "/**\n * \n */\npackage com.trendrr.oss.concurrent;\n\nimport org.apache.commons.logging.Log;\nimport org.apache.commons.logging.LogFactory;\n\n\n/**\n * Simple threadsafe l...
java
chosen
[ { "from": "system", "value": "Add factory method for media player\n" }, { "from": "human", "value": "package com.anprosit.android.dagger.factory;\n\nimport android.content.Context;\nimport android.media.MediaPlayer;\n\n/**\n * Created by Hirofumi Nakagawa on 13/09/06.\n */\npublic class MediaPla...
java
chosen
[ { "from": "system", "value": "Add a hardness to the base block\n" }, { "from": "human", "value": "package reborncore.common;\n\nimport net.minecraft.block.Block;\nimport net.minecraft.block.ITileEntityProvider;\nimport net.minecraft.block.material.Material;\nimport net.minecraft.block.state.IBlo...
java
chosen
[ { "from": "system", "value": "Update SampleDateUtil to include isCompleted during Task creation\n" }, { "from": "human", "value": "package utask.model.util;\n\nimport utask.commons.exceptions.IllegalValueException;\nimport utask.model.ReadOnlyUTask;\nimport utask.model.UTask;\nimport utask.model...
java
chosen
[ { "from": "system", "value": "Fix callback cast of SerializeResponse\n" }, { "from": "human", "value": "/*\n * Copyright 2014 Danilo Reinert\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 ...
java
chosen
[ { "from": "system", "value": "Change comment on Sanitisation enum to be more clearer." }, { "from": "human", "value": "package org.skyve.metadata.view;\n\nimport javax.xml.bind.annotation.XmlType;\n\nimport org.skyve.impl.util.XMLMetaData;\n\npublic interface TextOutput {\n\tBoolean getEscape();...
java
chosen
[ { "from": "system", "value": "Define interface for encryption operations\n" }, { "from": "human", "value": "/**\n * Project RSA Algorithm.\n * Copyright Michał Szczygieł.\n * Created at Feb 24, 2014.\n */\n\n/**\n * TODO COMMENTS MISSING!\n * \n * @author Michał Szczygieł <michal.szczygiel@wp.pl...
java
chosen
[ { "from": "system", "value": "Add default method for finding strings rather than byte[]\n" }, { "from": "human", "value": "// BSD License (http://lemurproject.org/galago-license)\npackage org.lemurproject.galago.core.index;\n\nimport org.lemurproject.galago.core.retrieval.iterator.BaseIterator;\...
java
chosen
[ { "from": "system", "value": "Correct expected output for integration test\n" }, { "from": "human", "value": "import org.fluentlenium.adapter.FluentTest;\nimport org.junit.ClassRule;\nimport org.junit.Test;\nimport org.openqa.selenium.WebDriver;\nimport org.openqa.selenium.htmlunit.HtmlUnitDrive...
java
chosen
[ { "from": "system", "value": "Improve more JavaDoc to interface.\n" }, { "from": "human", "value": "package uk.ac.ebi.quickgo.annotation.service.converter;\n\nimport uk.ac.ebi.quickgo.annotation.common.document.AnnotationDocument;\nimport uk.ac.ebi.quickgo.annotation.model.Annotation;\n\n/**\n *...
java
chosen
[ { "from": "system", "value": "Add to javadoc about thread safety in a processor in a route\n" }, { "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 add...
java
chosen
[ { "from": "system", "value": "Disable DB vacuum cleanup step and it was not the root cause of the\nproblem." }, { "from": "human", "value": "package com.vaguehope.onosendai.update;\n\nimport android.content.Intent;\n\nimport com.vaguehope.onosendai.images.HybridBitmapCache;\nimport com.vaguehope...
java
chosen
[ { "from": "system", "value": "Fix codacy, use Interface instead of concrete type\n" }, { "from": "human", "value": "package net.sf.jabref.model.metadata;\n\nimport java.util.Collections;\nimport java.util.HashMap;\nimport java.util.List;\nimport java.util.Objects;\n\npublic class ContentSelector...
java
chosen
[ { "from": "system", "value": "Enable extending classes to access fields.\n" }, { "from": "human", "value": "/**\n * Copyright (C) 2009-2017 Simonsoft Nordic AB\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the Li...
java
chosen
[ { "from": "system", "value": "Remove dependency on templating module\n" }, { "from": "human", "value": "package groovy.io;\n\nimport groovy.text.SimpleTemplateEngine;\nimport groovy.text.Template;\nimport junit.framework.TestCase;\n\nimport java.io.IOException;\nimport java.io.StringWriter;\nimp...
java
chosen
[ { "from": "system", "value": "Make the interface public so it can be used more widely, remove getGoEvidencePosition()\n" }, { "from": "human", "value": "package uk.ac.ebi.quickgo.client.service.loader.presets.ff;\n\n/**\n * Represents the column indices required to create a {@link RawNamedPreset...
java
chosen
[ { "from": "system", "value": "Update exception message in run listener rather than just sysoutting the report.\n" }, { "from": "human", "value": "package hu.advancedweb.scott.runtime;\n\nimport org.junit.runner.Description;\nimport org.junit.runner.notification.Failure;\nimport org.junit.runner....
java
chosen
[ { "from": "system", "value": "Add automatic launch with maven test phase\n" }, { "from": "human", "value": "package com.socgen.finit.easymargin;\n\nimport com.socgen.finit.easymargin.converter.TradeFileHandler;\nimport lombok.extern.slf4j.Slf4j;\nimport org.springframework.beans.factory.annotati...
java
chosen
[ { "from": "system", "value": "Optimize category titles through replacing\n" }, { "from": "human", "value": "package de.hfu.studiportal.data;\n\nimport java.io.Serializable;\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class ExamCategory implements Serializable {\n\t\n\tprivate ...
java
chosen
[ { "from": "system", "value": "Fix metadata update on instance.remove\n\nOmit non-removed check when search for instance nic (nic can be already\nremoved by the time config item post handler runs for the instance)\n" }, { "from": "human", "value": "package io.cattle.platform.agent.instance.servic...
java
chosen
[ { "from": "system", "value": "Implement local file replication for the Eclipse file system.\n" }, { "from": "human", "value": "package org.metaborg.spoofax.eclipse.resource;\n\nimport java.util.Collection;\n\nimport org.apache.commons.vfs2.Capability;\nimport org.apache.commons.vfs2.FileName;\ni...
java
chosen
[ { "from": "system", "value": "Add test case for input handler where it cannot pass\n" }, { "from": "human", "value": "package testCal;\n\nimport static org.junit.Assert.*;\nimport junit.framework.Assert;\n\nimport org.junit.After;\nimport org.junit.Before;\nimport org.junit.Test;\n\nimport cal.I...
java
chosen
[ { "from": "system", "value": "Fix 'casting bench' fluid rendering\n" }, { "from": "human", "value": "package xyz.brassgoggledcoders.steamagerevolution.modules.steam.tileentities;\n\nimport javax.annotation.Nonnull;\n\nimport net.minecraft.client.Minecraft;\nimport net.minecraft.client.renderer.t...
java
chosen
[ { "from": "system", "value": "Update freestyle version to 0.3.3.\n" }, { "from": "human", "value": "/*******************************************************************************\n * Copyright 2012-present Pixate, Inc.\n * \n * Licensed under the Apache License, Version 2.0 (the \"License\");\...
java
chosen
[ { "from": "system", "value": "Convert by wrapping DBObjectToVariantConverter for variant to dbobject\n" }, { "from": "human", "value": "package embl.ebi.variation.commons.models.converters.data;\n\nimport org.springframework.core.convert.converter.Converter;\nimport com.mongodb.DBObject;\nimport...
java
chosen
[ { "from": "system", "value": "[FLINK-8022][kafka-tests] Disable at-least-once tests for Kafka 0.9\n\nFor some reasons this test is sometimes failing in Kafka09 while the same code works in Kafka010.\nDisabling this test because everything indicates those failures might be caused by unfixed bugs\nin Kafka 0....
java
chosen
[ { "from": "system", "value": "Set convenient .from method in address\n" }, { "from": "human", "value": "package io.scalecube.services.api;\n\nimport java.util.Objects;\n\npublic class Address {\n private final String host;\n private final int port;\n\n public static Address create(String host...
java
chosen
[ { "from": "system", "value": "Fix VueGwtPanel not being typed in the Demo app\n" }, { "from": "human", "value": "package com.axellience.vuegwtdemo.client;\n\nimport com.axellience.vuegwt.client.gwtextension.VueGwtPanel;\nimport com.axellience.vuegwt.client.jsnative.Vue;\nimport com.axellience.vu...
java
chosen
[ { "from": "system", "value": "Disable Vaadin test until SWARM-249 is resolved.\n" }, { "from": "human", "value": "package org.wildfly.swarm.it.vaadin;\n\nimport org.jboss.arquillian.drone.api.annotation.Drone;\nimport org.jboss.arquillian.junit.Arquillian;\nimport org.junit.Test;\nimport org.jun...
java
chosen
[ { "from": "system", "value": "Add get amount method in offer\n" }, { "from": "human", "value": "package com.bloatit.framework;\n\nimport java.util.Date;\n\nimport com.bloatit.framework.right.OfferRight;\nimport com.bloatit.framework.right.RightManager.Action;\nimport com.bloatit.model.data.DaoCo...
java
chosen
[ { "from": "system", "value": "Add functionality to alias classes\n\n" }, { "from": "human", "value": "package org.flymine.dataconversion;\n\n/*\n * Copyright (C) 2002-2003 FlyMine\n *\n * This code may be freely distributed and modified under the\n * terms of the GNU Lesser General Public Licenc...
java
chosen
[ { "from": "system", "value": "Simplify formatting JVM version and avoid having to configure each new release\n" }, { "from": "human", "value": "package com.timgroup.tucker.info.component;\n\nimport com.timgroup.tucker.info.Component;\nimport com.timgroup.tucker.info.Report;\nimport com.timgroup....
java
chosen
[ { "from": "system", "value": "Check the FFlag instead of the utility\n" }, { "from": "human", "value": "package markehme.factionsplus.sublisteners;\n\nimport markehme.factionsplus.Utilities;\nimport markehme.factionsplus.MCore.FPUConf;\n\nimport com.massivecraft.factions.event.EventFactionsMembe...
java
chosen
[ { "from": "system", "value": "Reset the padding on each TextView when the RecyclerView binds it\n" }, { "from": "human", "value": "package net.bloople.stories;\n\nimport android.support.v7.widget.RecyclerView;\nimport android.view.LayoutInflater;\nimport android.view.View;\nimport android.view.V...
java
chosen
[ { "from": "system", "value": "Fix possible crash when upgrading from older app versions.\n\nIn versions of the app prior to 2.1.142, the list of Tabs was serialized\nin a way that's not completely consistent with the way it's serialized\ntoday. Specifically, the \"domain\" item of the \"site\" component can...
java
chosen
[ { "from": "system", "value": "Mark class with memory intensive static init method as init at runtime\n" }, { "from": "human", "value": "package org.jboss.shamrock.deployment;\n\nimport org.jboss.jandex.AnnotationInstance;\nimport org.jboss.jandex.ClassInfo;\nimport org.jboss.jandex.DotName;\nimp...
java
chosen
[ { "from": "system", "value": "Drop unnecessary reference to popped elements to allow finalization through GC (XSTR-264).\n" }, { "from": "human", "value": "package com.thoughtworks.xstream.core.util;\n\npublic final class FastStack {\n\n private Object[] stack;\n private int pointer;\n\n ...
java
chosen
[ { "from": "system", "value": "Allow getting the current authenticated user\n" }, { "from": "human", "value": "package com.koenv.universalminecraftapi.users;\n\nimport com.koenv.universalminecraftapi.ErrorCodes;\nimport com.koenv.universalminecraftapi.UniversalMinecraftAPI;\nimport com.koenv.univ...
java
chosen
[ { "from": "system", "value": "Add a method to draw a screen space aligned (untextured) quad\n" }, { "from": "human", "value": "package com.rabenauge.gl;\r\n\r\nimport android.opengl.GLU;\r\nimport java.nio.FloatBuffer;\r\nimport javax.microedition.khronos.opengles.GL10;\r\n\r\n/*\r\n * A class f...
java
chosen
[ { "from": "system", "value": "Fix javadoc for the TaskStatePage\n" }, { "from": "human", "value": "package org.ow2.proactive.scheduler.common.task;\n\nimport java.util.List;\n\nimport javax.xml.bind.annotation.XmlRootElement;\n\n\n/**\n * This class is the super class of the every task that can ...
java
chosen
[ { "from": "system", "value": "Create atom-proxy for third party libs\n" }, { "from": "human", "value": "package com.github.vedenin.thirdpartylib.htmlparser;\n\nimport com.github.vedenin.thirdpartylib.annotations.Atom;\nimport com.github.vedenin.thirdpartylib.annotations.BoilerPlate;\nimport com....
java
chosen
[ { "from": "system", "value": "Increment Java debugger minor version to 2.8 for a new release.\n\n-------------\nCreated by MOE: https://github.com/google/moe\nMOE_MIGRATED_REVID=143450403\n" }, { "from": "human", "value": "/**\n * Copyright 2015 Google Inc. All Rights Reserved.\n *\n * Licensed ...
java
chosen
[ { "from": "system", "value": "Set availabilityResult for backward compatibility\n" }, { "from": "human", "value": "/*\n * This file is part of Bitsquare.\n *\n * Bitsquare is free software: you can redistribute it and/or modify it\n * under the terms of the GNU Affero General Public License as p...
java
chosen
[ { "from": "system", "value": "Improve the url parsing - we need only the path to be able to decide\n" }, { "from": "human", "value": "package hellowicket;\n\nimport org.apache.wicket.core.request.handler.PageProvider;\nimport org.apache.wicket.core.request.handler.RenderPageRequestHandler;\nimpo...
java
chosen
[ { "from": "system", "value": "Revert Default implementation should using equals\n" }, { "from": "human", "value": "/*\n * Copyright (C) 2016 grandcentrix GmbH\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": "Extend ServletModule instead of HttpPluginModule\n\nAs described in I3b89150d1.\n\nChange-Id: Ic91ce95719c6bccc73cc29a2139a2274f20d1939\n" }, { "from": "human", "value": "// Copyright (C) 2013 The Android Open Source Project\n//\n// Licensed under the Apache License...
java
chosen
[ { "from": "system", "value": "Add getting response as a string\n" }, { "from": "human", "value": "package com.thebuerkle.dropwizard.resources;\n\nimport javax.ws.rs.GET;\nimport javax.ws.rs.Path;\nimport javax.ws.rs.Produces;\nimport javax.ws.rs.client.Client;\nimport javax.ws.rs.client.Invocati...
java
chosen
[ { "from": "system", "value": "Rename F to Function and f() to apply()\n" }, { "from": "human", "value": "package cells;\n\nimport com.jme3.math.ColorRGBA;\nimport geometry.Position;\nimport inventory.InventoryItem;\nimport world.World;\n\n/**\n * A cell whose state is known for any given tick\n ...
java
chosen
[ { "from": "system", "value": "Fix root element of authz-config.json to be 'policies'\n" }, { "from": "human", "value": "package io.liveoak.security.spi;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\n/**\n * @author Bob McWhirter\n */\npublic class AuthzPolicyGroup {\n\n public Aut...
java
chosen
[ { "from": "system", "value": "Refactor to use method references\n" }, { "from": "human", "value": "package helloworld;\n\nimport static org.requirementsascode.UseCaseModelBuilder.newBuilder;\n\nimport java.util.function.Consumer;\n\nimport org.requirementsascode.UseCaseModel;\nimport org.require...
java
chosen
[ { "from": "system", "value": "Add basic code into new Spy\n" }, { "from": "human", "value": "package app;\n\nimport java.util.Observable;\nimport java.util.Observer;\n\n/**\n * Created by Benjamin on 03/02/2016.\n */\npublic class ShippingTrackerObserver implements Observer {\n\t@Override\n\tpub...
java
chosen
[ { "from": "system", "value": "Revert \"CB-11008 in case of gcp the tag validation will be switched off on environmentcreationdto until the gcp tag sanitization is used only cluster request\"\n\nThis reverts commit eeb479886c91dee6b2216874f00a09a68265d803.\n" }, { "from": "human", "value": "packa...
java
chosen
[ { "from": "system", "value": "Synchronize API of base type and versioned type\n" }, { "from": "human", "value": "/*\n * Copyright 2015-2020 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 Eclip...
java
chosen
[ { "from": "system", "value": "Add 'type' field to tab enumeration JSON protocol\n\nReview URL: https://codereview.chromium.org/12036084\n\ngit-svn-id: 1dc80909446f7a7ee3e21dd4d1b8517df524e9ee@1132 fc8a088e-31da-11de-8fef-1f5ae417a2df\n" }, { "from": "human", "value": "// Copyright (c) 2011 The C...
java
chosen
[ { "from": "system", "value": "Add @Override annotation for implemented method\n\n`hearShake` is implemented from `ShakeDetector.Listener`." }, { "from": "human", "value": "package com.squareup.seismic.sample;\n\nimport android.app.Activity;\nimport android.hardware.SensorManager;\nimport android...
java
chosen
[ { "from": "system", "value": "Use event characteristics in causal ordering\n" }, { "from": "human", "value": "package com.opencredo.concourse.mapping.events.methods.ordering;\n\nimport com.opencredo.concourse.domain.events.Event;\nimport com.opencredo.concourse.domain.events.EventType;\n\nimport...
java
chosen
[ { "from": "system", "value": "Add a default toString() for OptionInstances.\n" }, { "from": "human", "value": "package net.happygiraffe.jslint;\n\n/**\n * Base class for an {@link Option} binding.\n *\n * @author dom\n * @version $Id$\n */\npublic abstract class AbstractOptionInstance implements...
java
chosen
[ { "from": "system", "value": "Add TRACE-equivalent level (that won't conflict with TRACE if people are using newer log4j levels)\n\ngit-svn-id: 46308aa6df3a13aea5930e6665b35c8b83c3a711@395 9fbd0cf9-a10c-0410-82c1-be8c084f3200\n" }, { "from": "human", "value": "/*\n * Copyright [2006] [University...
java
chosen
[ { "from": "system", "value": "Update wrt. new JDK 1.2 ClassLoader scheme.\n" }, { "from": "human", "value": "class forNameTest {\n public static void main(String argv[]) {\n\t try {\n\t\t Class.forName(\"loadThis\");\n\t\t Class c = Class.forName(\"loadThis\", false, \n\t\t ...
java
chosen
[ { "from": "system", "value": "Use standard jdk functional interface in rest utility method performIfNotNull\n" }, { "from": "human", "value": "/**\n * JBoss, Home of Professional Open Source.\n * Copyright 2014 Red Hat, Inc., and individual contributors\n * as indicated by the @author tags.\n *\...
java
chosen
[ { "from": "system", "value": "Fix some mixin warnings aboufields that d don't exist\n" }, { "from": "human", "value": "package net.optifine.render;\n\npublic class ChunkVisibility {\n\n}\n" }, { "from": "gpt", "value": "package net.optifine.render;\n\npublic class ChunkVisibility {\n...
java
chosen
[ { "from": "system", "value": "Add .gz and bgzf.gz files to infer unit tests\n" }, { "from": "human", "value": "package org.seqdoop.hadoop_bam;\n\nimport java.io.IOException;\nimport java.io.InputStream;\nimport org.junit.Test;\n\nimport static org.junit.Assert.assertEquals;\nimport static org.ju...
java
chosen
[ { "from": "system", "value": "Add courseScores hashmap for course priority ranking\n" }, { "from": "human", "value": "package com.google.sps.data;\n\nimport java.util.List;\n\npublic class GenerateScheduleRequest {\n List<Course> courses;\n InputCriterion criterion;\n BasicInfo basicInfo;\n\n...
java
chosen
[ { "from": "system", "value": "Fix possible issue when MD5ing multibyte strings." }, { "from": "human", "value": "package com.vaguehope.onosendai.util;\n\nimport java.io.UnsupportedEncodingException;\nimport java.math.BigInteger;\nimport java.security.MessageDigest;\nimport java.security.NoSuchAl...
java
chosen
[ { "from": "system", "value": "Switch to using a mouse event handler instead of EventDispatcher\n" }, { "from": "human", "value": "package net.christophermerrill.FancyFxTree;\n\nimport javafx.event.*;\nimport javafx.scene.control.*;\nimport javafx.scene.input.*;\n\n/**\n * Intercepts double-click...
java
chosen
[ { "from": "system", "value": "Read data set up updated\n\ngit-svn-id: 03a8048b5ee8463be5048a3801110fb50f378627@11903 d0ab736e-dc22-4aeb-8dc9-08def0aa14fd\n" }, { "from": "human", "value": "import mmcorej.TaggedImage;\r\n\r\nimport org.json.JSONObject;\r\nimport org.micromanager.acquisition.Tagge...
java
chosen
[ { "from": "system", "value": "Add comment which defines error codes range\n" }, { "from": "human", "value": "/*******************************************************************************\n * Copyright (c) 2012-2016 Codenvy, S.A.\n * All rights reserved. This program and the accompanying mater...
java
chosen
[ { "from": "system", "value": "Read `jdk.compiler` module in processing-code example\n" }, { "from": "human", "value": "/** Defines classes and interfaces of the Processor API. */\nmodule processor {\n requires java.compiler;\n requires jdk.javadoc;\n\n provides com.sun.source.util.Plugin with...
java
chosen
[ { "from": "system", "value": "Add constant for unicode byte order mark\n" }, { "from": "human", "value": "package com.alexrnl.commons.io;\n\nimport java.io.BufferedReader;\nimport java.io.EOFException;\nimport java.io.IOException;\nimport java.util.Objects;\nimport java.util.logging.Level;\nimpo...
java
chosen
[ { "from": "system", "value": "Set max recs to 9.\n" }, { "from": "human", "value": "\npackage com.uwetrottmann.shopr.settings;\n\nimport android.content.Context;\nimport android.preference.PreferenceManager;\n\n/**\n * Quick access to some app settings.\n */\npublic class AppSettings {\n\n pr...
java
chosen
[ { "from": "system", "value": "Add a registry reader method that gets an ID with an optional fallback.\n" }, { "from": "human", "value": "package net.darkhax.bookshelf.api.registry;\n\nimport net.minecraft.resources.ResourceLocation;\n\nimport javax.annotation.Nullable;\nimport java.util.stream.S...
java
chosen
[ { "from": "system", "value": "Add static items to the list view\n" }, { "from": "human", "value": "package com.codepath.simpletodo;\n\nimport android.support.v7.app.ActionBarActivity;\nimport android.os.Bundle;\nimport android.view.Menu;\nimport android.view.MenuItem;\n\n\npublic class MainActiv...
java
chosen
[ { "from": "system", "value": "[PAXJDBC-124] Fix missing itest dependency for aries-pool\n" }, { "from": "human", "value": "package org.ops4j.pax.jdbc.test.pool;\n\nimport javax.inject.Inject;\n\nimport org.junit.Test;\nimport org.ops4j.pax.exam.Configuration;\nimport org.ops4j.pax.exam.Option;\n...
java
chosen
[ { "from": "system", "value": "Modify add() to save one extra get() call to HashMap.\n" }, { "from": "human", "value": "package chart_parser;\n\nimport java.util.HashMap;\n\nimport cat_combination.SuperCategory;\n\npublic class CategoryEquivalence {\n\t/*\n\t * keys are triples of (position, span...
java
chosen
[ { "from": "system", "value": "Make sure we close the STP connection listener when stopping the STP thread.\n" }, { "from": "human", "value": "package com.opera.core.systems.scope.stp;\n\nimport java.util.logging.Logger;\n\nimport com.opera.core.systems.util.SocketMonitor;\nimport com.opera.core....
java
chosen
[ { "from": "system", "value": "Use method reference instead of lambda\n" }, { "from": "human", "value": "/**\n * \n */\npackage ca.eandb.jmist.framework.geometry.mesh;\n\nimport java.util.stream.StreamSupport;\n\nimport ca.eandb.jmist.framework.BoundingBoxBuilder3;\nimport ca.eandb.jmist.math.Box...
java
chosen
[ { "from": "system", "value": "Modify CsvMetaPanel so that it remembers user selection history\n" }, { "from": "human", "value": "/*\n * Copyright 2016 kohii\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except\n * in compliance with the Licen...
java
chosen
[ { "from": "system", "value": "Remove checkstyle warning about System.err\n\ngit-svn-id: f26ccc5efe72c2bd8e1c40f599fe313f2692e4de@9328 a612230a-c5fa-0310-af8b-88eea846685b\n" }, { "from": "human", "value": "/*\n * \n * \n * Copyright (C) 2007 SIPfoundry Inc.\n * Licensed by SIPfoundry under the L...
java
chosen
[ { "from": "system", "value": "Tweak documentation for market listener in order book reconstruction\n" }, { "from": "human", "value": "package org.jvirtanen.parity.top;\n\n/**\n * <code>MarketListener</code> is the interface for outbound events from the\n * order book reconstruction.\n */\npublic...
java
chosen
[ { "from": "system", "value": "Add missing period in Javadoc descriptions\n" }, { "from": "human", "value": "/**\n * Command-line option processing for Java\n *\n * <p>The Options class:\n *\n * <ul>\n * <li>parses command-line options and sets fields in your program accordingly,\n * <li>crea...
java
chosen
[ { "from": "system", "value": "Change getColumnIndex method to be private\n" }, { "from": "human", "value": "/*\n * Copyright 2016 Martin Kamp Jensen\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * ...
java
chosen
[ { "from": "system", "value": "Expand content type detection to jpg and htm.\n" }, { "from": "human", "value": "/*\n * Copyright 2017, Sascha Häberling\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": "Handle error if file not exists\n" }, { "from": "human", "value": "package com.hivedi.statfscompat;\n\nimport android.os.Build;\nimport android.os.StatFs;\n\nimport java.io.File;\n\n/**\n * Created by Hivedi2 on 2015-11-24.\n *\n */\npublic class StatFsCompat {\n\n\...
java
chosen