conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Use correct name for get_value_ptr\n" }, { "from": "human", "value": "package edu.colorado.csdms.bmi;\n\n/**\n * Get variables from a model.\n * <p>\n * See the BMI <a href=\"https://bmi.readthedocs.io\">documentation</a> for\n * detailed information about each func...
java
chosen
[ { "from": "system", "value": "resolve: Fix logger test for windows\n\nProperly deal with eol differences.\n\nSigned-off-by: BJ Hargrave <3d26bb3930946e3370762d769a073cece444c2d8@bjhargrave.com>\n" }, { "from": "human", "value": "package biz.aQute.resolve;\n\nimport junit.framework.*;\n\npublic c...
java
chosen
[ { "from": "system", "value": "Set dataset id in membership\n" }, { "from": "human", "value": "package no.ssb.vtl.script.expressions;\n\nimport no.ssb.vtl.model.VTLObject;\n\nimport javax.script.Bindings;\n\npublic class MembershipExpression extends VariableExpression {\n\n private String data...
java
chosen
[ { "from": "system", "value": "Fix indentation in test suite\n" }, { "from": "human", "value": "/*\n * Copyright 2016 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the BSD-3 License (the \"License\");\n * you may not use this file except in compliance with the License.\n...
java
chosen
[ { "from": "system", "value": "Use exceptionMessage for the widget error page as all other error pages\n" }, { "from": "human", "value": "package uk.ac.ebi.atlas.widget;\n\nimport org.springframework.dao.RecoverableDataAccessException;\nimport org.springframework.http.HttpStatus;\nimport org.spri...
java
chosen
[ { "from": "system", "value": "Fix yet another double/int broken elevation test\n" }, { "from": "human", "value": "package org.gbif.occurrence.ws.client.mock;\n\nimport org.gbif.api.model.occurrence.Occurrence;\nimport org.gbif.api.vocabulary.BasisOfRecord;\nimport org.gbif.dwc.terms.DwcTerm;\n\n...
java
chosen
[ { "from": "system", "value": "Fix some missing escape replacements\n" }, { "from": "human", "value": "/*******************************************************************************\n * Copyright (c) 2010 David Green and others.\n * All rights reserved. This program and the accompanying materia...
java
chosen
[ { "from": "system", "value": "Throw exception rather than return null.\n\nIn Store, we should check for badness (e.g. null keys) and, rather than return null if we can't find a block [or throw a NullPointerException], throw a NoSuchBlockException." }, { "from": "human", "value": "package me.foot...
java
chosen
[ { "from": "system", "value": "Use flickr's full image for the thumbnail, if available\n\nFlickr's thumbnails are just too small at 75x75.\n" }, { "from": "human", "value": "package com.todoist.mediaparser.mediaparser;\n\nimport com.todoist.mediaparser.util.MediaType;\n\nimport java.util.regex.Pa...
java
chosen
[ { "from": "system", "value": "Set stream scenario be in sync with stream scenario from services\n" }, { "from": "human", "value": "package io.scalecube.gateway.benchmarks;\n\nimport io.scalecube.services.api.ServiceMessage;\nimport java.util.concurrent.Callable;\nimport reactor.core.publisher.Fl...
java
chosen
[ { "from": "system", "value": "Fix a misleading javadoc comment.\n\nThe comment was apparently come from copy-paste.\n\nChange-Id: I2882549633ce2c316a2754ab2fc87f8605110962\n" }, { "from": "human", "value": "/*******************************************************************************\n * Copy...
java
chosen
[ { "from": "system", "value": "Add unit test for main class of spring-boot application\n" }, { "from": "human", "value": "package com.jcalvopinam.api;\n\nimport org.junit.Test;\nimport org.junit.runner.RunWith;\nimport org.springframework.boot.test.context.SpringBootTest;\nimport org.springframew...
java
chosen
[ { "from": "system", "value": "Include payload data in exception\n\nSigned-off-by: Rafael Luis Ibasco <80d89b34d8cf04643e39f61fb924744a8cfa1566@gmail.com>\n" }, { "from": "human", "value": "/*\n * Copyright 2018-2022 Asynchronous Game Query Library\n *\n * Licensed under the Apache License, Versi...
java
chosen
[ { "from": "system", "value": "Add precision to currency json\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 published by\n * the...
java
chosen
[ { "from": "system", "value": "Reduce the amount of lines\n" }, { "from": "human", "value": "package org.zalando.nakadi.annotations.validation;\n\nimport javax.validation.Constraint;\nimport javax.validation.Payload;\nimport javax.validation.constraints.NotEmpty;\nimport javax.validation.constrai...
java
chosen
[ { "from": "system", "value": "Fix in group DC licence\n" }, { "from": "human", "value": "package io.car.server.rest.encoding.rdf.linker;\n\nimport com.google.inject.Provider;\nimport com.hp.hpl.jena.rdf.model.Model;\nimport io.car.server.core.entities.Group;\nimport io.car.server.core.entities.M...
java
chosen
[ { "from": "system", "value": "Remove UI of ShowOutside for Dial scale\n" }, { "from": "human", "value": "/*******************************************************************************\n * Copyright (c) 2006 Actuate Corporation.\n * All rights reserved. This program and the accompanying materia...
java
chosen
[ { "from": "system", "value": "Simplify the SQL launcher editor provider" }, { "from": "human", "value": "package com.codenvy.ide.ext.datasource.client.sqllauncher;\n\nimport com.codenvy.ide.api.editor.EditorPartPresenter;\nimport com.codenvy.ide.api.editor.EditorProvider;\nimport com.codenvy.ide...
java
chosen
[ { "from": "system", "value": "[KARAF-1313] Set group argument as required in cluster:group-create command\n\ngit-svn-id: 23a5554d8b20ee894ad801d0a5fe136f33ef549e@1330248 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "human", "value": "/*\n * Licensed under the Apache License, Version 2.0 ...
java
chosen
[ { "from": "system", "value": "Add to Misc creative tab\n" }, { "from": "human", "value": "package org.techern.infinitewater.blocks;\n\nimport net.minecraft.block.Block;\nimport net.minecraft.block.material.Material;\n\n/**\n * A {@link Block} for infinitely spreading water\n *\n * @since 1.0.0\n...
java
chosen
[ { "from": "system", "value": "Remove comment looking forward to Vespa 6.\n" }, { "from": "human", "value": "// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\n\npackage com.yahoo.prelude.fastsearch;\n\nimport com.yahoo.data.acc...
java
chosen
[ { "from": "system", "value": "Add static builder taking port and path\n" }, { "from": "human", "value": "// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\npackage com.yahoo.vespa.model.container.component;\n\n/**\n * A {@link Bindin...
java
chosen
[ { "from": "system", "value": "OAK-7582: Make the MountInfo constructor public\n\ngit-svn-id: 67138be12999c61558c3dd34328380c8e4523e73@1834290 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "human", "value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more cont...
java
chosen
[ { "from": "system", "value": "[Java] Fix name recorded in test event log.\n" }, { "from": "human", "value": "/*\n * Copyright 2014-2021 Real Logic Limited.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the Licens...
java
chosen
[ { "from": "system", "value": "Add Jackson type information to message payload\n" }, { "from": "human", "value": "package io.fluxcapacitor.javaclient.common;\n\nimport com.fasterxml.jackson.annotation.JsonTypeInfo;\nimport io.fluxcapacitor.common.MessageType;\nimport io.fluxcapacitor.common.api.M...
java
chosen
[ { "from": "system", "value": "Revert \"support for file extensions with dots (.) in them\"\n\nThis reverts commit 4439ab932535897adc93039a5b212ea21ef399df.\n" }, { "from": "human", "value": "package org.spoofax.modelware.emf;\n\n/**\n * @author Oskar van Rest\n */\nimport java.util.ArrayList;\ni...
java
chosen
[ { "from": "system", "value": "Change retention policy of annotation\n" }, { "from": "human", "value": "package com.yatatsu.autobundle;\n\nimport java.lang.annotation.ElementType;\nimport java.lang.annotation.Retention;\nimport java.lang.annotation.RetentionPolicy;\nimport java.lang.annotation.Ta...
java
chosen
[ { "from": "system", "value": "Add final modifier to field\n\n" }, { "from": "human", "value": "package de.idrinth.waraddonclient.model;\r\n\r\nimport java.util.ArrayList;\r\nimport java.util.HashMap;\r\n\r\npublic class CaseInsensitiveHashMap<T> extends HashMap<String, T> {\r\n\r\n private Ar...
java
chosen
[ { "from": "system", "value": "Add bean validation for uv.application.reminderNotificationCron\n" }, { "from": "human", "value": "package org.synyx.urlaubsverwaltung.application;\n\nimport org.springframework.boot.context.properties.ConfigurationProperties;\nimport org.springframework.stereotype....
java
chosen
[ { "from": "system", "value": "Set message prefetch to 1 for DOI updater.\n\nCan help with debugging / service recovery etc.\n" }, { "from": "human", "value": "package org.gbif.registry.cli.doiupdater;\n\nimport org.gbif.common.messaging.MessageListener;\nimport org.gbif.registry.cli.common.Commo...
java
chosen
[ { "from": "system", "value": "Use event in test mod for spawn placement registry\n" }, { "from": "human", "value": "package info.u_team.u_team_test.init;\n\nimport info.u_team.u_team_test.entity.TestLiving;\nimport net.minecraft.world.entity.SpawnPlacements;\nimport net.minecraft.world.level.lev...
java
chosen
[ { "from": "system", "value": "Stop iterating tree if all index filter paths are deleted\n" }, { "from": "human", "value": "package com.link_intersystems.gitdirstat.domain;\n\nimport java.io.IOException;\nimport java.util.Collection;\n\npublic class PathDeletionIndexFilter implements IndexFilter ...
java
chosen
[ { "from": "system", "value": "Migrate to PlaceholderExpansion from PlaceholderAPI\n" }, { "from": "human", "value": "package com.github.games647.fastlogin.bukkit;\n\nimport java.util.List;\n\nimport me.clip.placeholderapi.PlaceholderAPI;\nimport me.clip.placeholderapi.PlaceholderHook;\n\nimport ...
java
chosen
[ { "from": "system", "value": "JceSecurityCleanupTest: Move exceptions in one catch expression\n" }, { "from": "human", "value": "package se.jiderhamn.classloader.leak.prevention.cleanup;\n\nimport java.security.NoSuchAlgorithmException;\nimport java.security.Provider;\n\n/**\n * Test that the le...
java
chosen
[ { "from": "system", "value": "Remove the need for @Configuration annotation. Simplify!\n" }, { "from": "human", "value": "package org.wildfly.swarm.swagger.runtime;\n\nimport org.jboss.dmr.ModelNode;\nimport org.jboss.shrinkwrap.api.Archive;\nimport org.wildfly.swarm.container.JARArchive;\nimpo...
java
chosen
[ { "from": "system", "value": "Reformat tests to remove tabs\n" }, { "from": "human", "value": "/*\n * Copyright 2017 MovingBlocks\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a co...
java
chosen
[ { "from": "system", "value": "Extend module-related utilities with declared and required methods\n" }, { "from": "human", "value": "package com.github.sormuras.bach.internal;\n\nimport java.lang.module.ModuleFinder;\nimport java.util.List;\nimport java.util.Set;\n\n/** Module-related utilities. ...
java
chosen
[ { "from": "system", "value": "Fix wrong French resources for the developer guide.\n\n\ngit-svn-id: bd781a9493159d57baabeab2b59de614917f0f5c@1713160 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "human", "value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n ...
java
chosen
[ { "from": "system", "value": "Verify Hive version major in product tests\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 ...
java
chosen
[ { "from": "system", "value": "Add missing super in test\n\nCloses gh-814\n" }, { "from": "human", "value": "/*\n * Copyright 2002-2015 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with...
java
chosen
[ { "from": "system", "value": "Fix indentation, remove unused import, avoid deprecated method\n" }, { "from": "human", "value": "package com.rarchives.ripme.tst.ripper.rippers;\n\nimport java.io.IOException;\nimport java.net.MalformedURLException;\nimport java.net.URL;\n\nimport com.rarchives.rip...
java
chosen
[ { "from": "system", "value": "ItEr16S10ClasificacionTraballoItEr15S13: Fix bug to let add a CriterionSatisfaction to Resource super class or\nsubclass.\n\nIf a CriterionType has in the resource column an enum matching the Resource super class, it has to be possible to\nassign it to a subclass of Resource (W...
java
chosen
[ { "from": "system", "value": "Edit injection language fragment action is not available for Python Docstring language\n" }, { "from": "human", "value": "package com.jetbrains.python.documentation.doctest;\n\nimport com.intellij.lang.InjectableLanguage;\nimport com.intellij.lang.Language;\nimport ...
java
chosen
[ { "from": "system", "value": "Add hyphen to date-time pattern\n" }, { "from": "human", "value": "package org.tinylog.impl.format.pattern.placeholders;\n\nimport java.time.ZoneId;\nimport java.time.format.DateTimeFormatter;\nimport java.util.Locale;\n\nimport org.tinylog.core.Framework;\nimport o...
java
chosen
[ { "from": "system", "value": "Improve forbidden subscription exception message\n" }, { "from": "human", "value": "package org.luxons.sevenwonders.config;\n\nimport java.security.Principal;\n\nimport org.luxons.sevenwonders.validation.DestinationAccessValidator;\nimport org.springframework.beans....
java
chosen
[ { "from": "system", "value": "Remove depreciated createJSModules @ovveride marker" }, { "from": "human", "value": "package com.geektime.rnonesignalandroid;\n\nimport com.facebook.react.ReactPackage;\nimport com.facebook.react.bridge.JavaScriptModule;\nimport com.facebook.react.bridge.NativeModul...
java
chosen
[ { "from": "system", "value": "Improve test to add insertion and subsequent read\n" }, { "from": "human", "value": "package org.hibernate.ogm.test.simpleentity;\n\nimport org.hibernate.Session;\n\n/**\n * @author Emmanuel Bernard\n */\npublic class BootstrapTest extends OgmTestCase {\n\n\tpublic ...
java
chosen
[ { "from": "system", "value": "Use fixed port for mailer test\n\nThis is done to avoid the flakiness we are seeing in CI\n" }, { "from": "human", "value": "package io.quarkus.it.mailer;\n\nimport java.util.HashMap;\nimport java.util.Map;\n\nimport org.testcontainers.containers.GenericContainer;\n...
java
chosen
[ { "from": "system", "value": "Set PWD env var when customizing Terminal plugin working directory.\n\nPiperOrigin-RevId: 359567768\n" }, { "from": "human", "value": "/*\n * Copyright 2017 The Bazel Authors. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License...
java
chosen
[ { "from": "system", "value": "Fix map partner SQL request\n" }, { "from": "human", "value": "package org.lagonette.app.room.statement;\n\npublic abstract class MapPartnerStatement\n extends Statement {\n\n // TODO Why only 87 partners returned ??\n public static final String SQL =\n...
java
chosen
[ { "from": "system", "value": "Remove custom security manager after test finishes\n" }, { "from": "human", "value": "package org.gbif.checklistbank.ws.resources;\n\nimport java.security.Permission;\n\nimport org.gbif.ws.app.Application;\nimport org.junit.Test;\n\nimport static org.junit.Assert.fa...
java
chosen
[ { "from": "system", "value": "Rename property names to follow JMS standard for identifiers.\n" }, { "from": "human", "value": "/*\r\n * Copyright 2016 Erik Wramner.\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance ...
java
chosen
[ { "from": "system", "value": "Add saveAndUpdateModel() method to save entity and update the model" }, { "from": "human", "value": "package devopsdistilled.operp.client.abstracts;\n\nimport java.io.Serializable;\nimport java.util.List;\n\nimport devopsdistilled.operp.server.data.entity.Entiti;\ni...
java
chosen
[ { "from": "system", "value": "Add possibility to override the default BoundingBoxIndexer\n" }, { "from": "human", "value": "package io.georocket.index.xml;\n\nimport io.georocket.index.generic.BoundingBoxIndexerFactory;\n\n/**\n * Create instances of {@link BoundingBoxIndexer}\n * @author Michel...
java
chosen
[ { "from": "system", "value": "Add path property to base entity node.\n" }, { "from": "human", "value": "/*\n * Copyright 2011 Splunk, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\"): you may\n * not use this file except in compliance with the License. You may obtain...
java
chosen
[ { "from": "system", "value": "Enable CrossOrigin in REST service for films\n" }, { "from": "human", "value": "package io.github.web.rest.service;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.web.bind.annotation.RequestMapping;\nimport org.springfr...
java
chosen
[ { "from": "system", "value": "Validate only last line for leader command test\n\nThis is to deflake leader command integration test.\n\nThe reason for failure is that error output contains some netty error\ntrace that we can't control. When netty receives a command for a stream\nthat is closed or being clos...
java
chosen
[ { "from": "system", "value": "Fix Thread CPU time metric name.\n" }, { "from": "human", "value": "package com.ea.orbit.metrics.jvm;\n\nimport com.codahale.metrics.Gauge;\nimport com.codahale.metrics.Metric;\nimport com.codahale.metrics.MetricSet;\n\nimport java.lang.management.ManagementFactory;...
java
chosen
[ { "from": "system", "value": "Add extra export package due to windows\n" }, { "from": "human", "value": "package fr.liglab.adele.cream.it.entity.test;\n\nimport fr.liglab.adele.cream.testing.helpers.ContextBaseTest;\n\nimport java.util.Arrays;\nimport java.util.List;\n\n/**\n * Created by aygali...
java
chosen
[ { "from": "system", "value": "Add javadoc to planned activity dao.\n\ngit-svn-id: 4b387fe5ada7764508e2ca96c335714e4c1692c6@2431 0d517254-b314-0410-acde-c619094fa49f\n" }, { "from": "human", "value": "package edu.northwestern.bioinformatics.studycalendar.dao;\n\nimport edu.northwestern.bioinforma...
java
chosen
[ { "from": "system", "value": "Check hosting Fragment for callback\n\nThe Support Library now allows a Fragment to request its hosting\nFragment, if any. Update FragmentUtil.getCallback() to check the host's\ninstance after checking for an explicitly set target Fragment.\n\nChange-Id: I582b3fc0e975d426c4ced4...
java
chosen
[ { "from": "system", "value": "Add file basic graph basm test.\n" }, { "from": "human", "value": "package me.wener.bbvm.vm;\n\nimport me.wener.bbvm.asm.ParseException;\nimport org.junit.Test;\n\nimport java.io.IOException;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\n/**\n * @auth...
java
chosen
[ { "from": "system", "value": "Remove expression which breaks javac.\n" }, { "from": "human", "value": "package com.redhat.ceylon.compiler.java.runtime.metamodel;\n\nimport ceylon.language.meta.declaration.CallableConstructorDeclaration;\n\nimport com.redhat.ceylon.compiler.java.metadata.Ceylon;\...
java
chosen
[ { "from": "system", "value": "Fix the home sending worker being too generic on how it sends people home\n" }, { "from": "human", "value": "package com.graywolf336.trailingperspective.workers;\n\nimport org.bukkit.ChatColor;\n\nimport com.graywolf336.trailingperspective.TrailingPerspectiveMain;\n...
java
chosen
[ { "from": "system", "value": "Remove todo because it is implemented now\n" }, { "from": "human", "value": "package de.plushnikov.intellij.plugin.inspection;\n\nimport com.intellij.codeInspection.InspectionProfileEntry;\n\npublic class BuilderInspectionTest extends LombokInspectionTest {\n\n @Ov...
java
chosen
[ { "from": "system", "value": "Throw exceptions if accessing configuration/environment during bootstrap phase.\n" }, { "from": "human", "value": "package com.hubspot.dropwizard.guice;\n\nimport com.google.common.base.Optional;\nimport com.google.inject.AbstractModule;\nimport com.google.inject.Pr...
java
chosen
[ { "from": "system", "value": "Create the POST route handler\n" }, { "from": "human", "value": "package net.floodlightcontroller.prediction;\n\nimport java.io.FileNotFoundException;\nimport java.io.UnsupportedEncodingException;\n\nimport org.restlet.resource.Get;\nimport org.restlet.resource.Post...
java
chosen
[ { "from": "system", "value": "Remove \"warning' sentence from the Javadoc\n" }, { "from": "human", "value": "package com.novoda.downloadmanager.lib;\n\npublic interface DownloadClientReadyChecker {\n Ready READY = new Ready();\n\n /**\n * Warning: This method is executed on a backgroun...
java
chosen
[ { "from": "system", "value": "Update to new Armourer's Workshop API\n" }, { "from": "human", "value": "package net.mcft.copy.betterstorage.addon.armourersworkshop;\n\nimport net.minecraft.entity.Entity;\nimport riskyken.armourersWorkshop.api.client.render.IEquipmentRenderHandler;\nimport riskyke...
java
chosen
[ { "from": "system", "value": "Fix bug that led to togglegame at each error\n" }, { "from": "human", "value": "package it.playfellas.superapp.logic.master;\n\nimport it.playfellas.superapp.events.EventFactory;\nimport it.playfellas.superapp.events.game.StartGameEvent;\nimport it.playfellas.supera...
java
chosen
[ { "from": "system", "value": "Test Query WHERE IN v0.2\n" }, { "from": "human", "value": "import java.sql.*;\nimport java.util.HashMap;\nimport java.util.ArrayList;\nimport java.util.Map;\n\nimport com.heroku.sdk.jdbc.DatabaseUrl;\n\npublic class FG \n{\n\tpublic String Id;\n\tpublic String Name...
java
chosen
[ { "from": "system", "value": "Use thread context class loader to load classes during deserialization\n\nPreviously, SerializationUtils used a standard ObjectInputStream for\ndeserialization. For this to work, the type being deserialized had to\nbe available to SerializationUtils' ClassLoader. This doesn't h...
java
chosen
[ { "from": "system", "value": "Change generic types' names to be less ambiguous (leave S,T for label class and feature vector class respectively)\n" }, { "from": "human", "value": "package pl.edu.icm.yadda.analysis.classification.features;\n\nimport java.util.Collection;\nimport java.util.Set;\n\...
java
chosen
[ { "from": "system", "value": "Add getter for module cache\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.xcodeml.transformation;\n\nimport java.util.Map;\n\n/**\n * Transformer interface\n ...
java
chosen
[ { "from": "system", "value": "Reduce allocation of hadoop configuration objects\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 Licens...
java
chosen
[ { "from": "system", "value": "Fix more spacing from merge conflict" }, { "from": "human", "value": "package com.malpo.sliver.sample.ui.sample;\n\nimport com.malpo.sliver.sample.models.Message;\n\nimport java.util.concurrent.Callable;\n\nimport javax.inject.Inject;\n\nimport rx.Observable;\nimpor...
java
chosen
[ { "from": "system", "value": "Use byte array for proxy response\n" }, { "from": "human", "value": "// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\npackage com.yahoo.vespa.hosted.controller.api.integration.configserver;\n\nimport com.yahoo...
java
chosen
[ { "from": "system", "value": "Add some tests to ElectedTextList class\n" }, { "from": "human", "value": "package com.grayben.riskExtractor.headingMarker.elector;\n\nimport org.junit.After;\nimport org.junit.Before;\nimport org.junit.Ignore;\nimport org.junit.Test;\n\nimport static org.junit.Asse...
java
chosen
[ { "from": "system", "value": "Fix nullpointerexception when using OSF scopes.\n" }, { "from": "human", "value": "/*\n * Licensed to Apereo under one or more contributor license\n * agreements. See the NOTICE file distributed with this work\n * for additional information regarding copyright owner...
java
chosen
[ { "from": "system", "value": "Update mini tutorial to actually use Root.getCurrent()" }, { "from": "human", "value": "/* \n@VaadinApache2LicenseForJavaFiles@\n */\n\npackage com.vaadin.tests.minitutorials.v7a1;\n\nimport com.vaadin.Application;\nimport com.vaadin.terminal.WrappedRequest;\nimport...
java
chosen
[ { "from": "system", "value": "Allow to start infinite number of activities\n" }, { "from": "human", "value": "package com.jraska.falcon.sample;\n\nimport android.app.Activity;\nimport android.content.Intent;\nimport android.graphics.Point;\nimport android.os.Build;\nimport android.os.Bundle;\nim...
java
chosen
[ { "from": "system", "value": "[Fix] Allow to archive activities in state CLOSED\n" }, { "from": "human", "value": "package li.strolch.execution.policy;\n\nimport li.strolch.agent.api.ComponentContainer;\nimport li.strolch.model.activity.Activity;\nimport li.strolch.persistence.api.StrolchTransac...
java
chosen
[ { "from": "system", "value": "[TIMOB-19435] Allow for setting of the Title\n" }, { "from": "human", "value": "package ti.modules.titanium.ui.android;\n\nimport org.appcelerator.kroll.common.Log;\nimport org.appcelerator.titanium.TiApplication;\nimport org.appcelerator.titanium.util.TiRHelper;\n\...
java
chosen
[ { "from": "system", "value": "Add externally maintained source type\n" }, { "from": "human", "value": "package org.ihtsdo.buildcloud.service.fileprocessing;\n\npublic enum InputSources {\n\n TERM_SERVER(\"terminology-server\"), REFSET_TOOL(\"reference-set-tool\"), MAPPING_TOOLS(\"mapping-tool...
java
chosen
[ { "from": "system", "value": "Refactor Store Query to On-Demand Query with backward compatibility.\n" }, { "from": "human", "value": "/*\n * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.\n *\n * WSO2 Inc. licenses this file to you under the Apache License,\n * Version ...
java
chosen
[ { "from": "system", "value": "refactor(citrus-3.0): Add short hand for run methods on test action runner\n" }, { "from": "human", "value": "package com.consol.citrus;\n\n/**\n * @author Christoph Deppisch\n */\npublic interface TestActionRunner {\n\n /**\n * Runs given test action.\n ...
java
chosen
[ { "from": "system", "value": "Remove list-parsing code from schema registry config parser\n" }, { "from": "human", "value": "package com.homeadvisor.kafdrop.config;\n\nimport org.hibernate.validator.constraints.NotBlank;\nimport org.springframework.boot.context.properties.ConfigurationProperties...
java
chosen
[ { "from": "system", "value": "Add query for getting sample by external identifier.\n" }, { "from": "human", "value": "package ca.corefacility.bioinformatics.irida.repositories;\n\nimport org.springframework.data.repository.PagingAndSortingRepository;\n\nimport ca.corefacility.bioinformatics.irid...
java
chosen
[ { "from": "system", "value": "Fix checkstyle failure in windows" }, { "from": "human", "value": "package io.siddhi.distribution.editor.core.commons.request;\n\nimport java.util.Map;\n\n/**\n * Bean class to represent the Siddhi application start request\n */\npublic class AppStartRequest {\n ...
java
chosen
[ { "from": "system", "value": "Add servlet to handle text request submissions and send to Dialogflow\n" }, { "from": "human", "value": "// Copyright 2019 Google LLC\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with th...
java
chosen
[ { "from": "system", "value": "Add some tips when using Spring method validation\n\nrelated to #85 discussion\n" }, { "from": "human", "value": "package org.zalando.problem.spring.web.advice.validation;\n\nimport org.zalando.problem.spring.web.advice.AdviceTrait;\n\n/**\n * @see AdviceTrait\n */\...
java
chosen
[ { "from": "system", "value": "Add missing cast for unknown types\n" }, { "from": "human", "value": "/*\n * Copyright (C) 2013 Michał Charmas (http://blog.charmas.pl)\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": "[Bitbay] Use compact JSON instead of replacing whitespaces in String\n" }, { "from": "human", "value": "package org.knowm.xchange.bitbay.v3.service;\n\nimport java.io.IOException;\nimport java.util.UUID;\nimport java.util.regex.Pattern;\nimport org.knowm.xchange.Exc...
java
chosen
[ { "from": "system", "value": "Check Foo.class.isInstance instead of Object.class.isInstance.\n\nSee\nhttps://github.com/jspecify/jspecify/issues/164#issuecomment-775868055\n\nI'm going to remove this sample entirely, but I'm first improving it in\nthis commit: If someone wants to keep a local copy, we might...
java
chosen
[ { "from": "system", "value": "Use abstract classes in the runlistener\n" }, { "from": "human", "value": "package de.pitkley.jenkins.plugins.dockerswarmslave;\n\nimport hudson.Extension;\nimport hudson.model.Build;\nimport hudson.model.Project;\nimport hudson.model.Run;\nimport hudson.model.liste...
java
chosen
[ { "from": "system", "value": "3124: Clean up the debug output line\n" }, { "from": "human", "value": "/*\n * To change this license header, choose License Headers in Project Properties.\n * To change this template file, choose Tools | Templates\n * and open the template in the editor.\n */\npack...
java
chosen
[ { "from": "system", "value": "Add Null check and give decent debug message if COLUMN env var cannot be parsed.\n" }, { "from": "human", "value": "/*\n * Copyright 2012 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use th...
java
chosen
[ { "from": "system", "value": "Add validation id for staging tests.\n" }, { "from": "human", "value": "// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\npackage com.yahoo.vespa.model.application.validation;\n\nimport java.util.Optio...
java
chosen
[ { "from": "system", "value": "Test commit attempt 2 :|\n" }, { "from": "human", "value": "package codeu.chat.util;\n\npublic final class Tokenizer {\n\n public Tokenizer(String source) {\n\n }\n\n public String next() throws IOException {\n\n }\n}\n" }, { "from": "gpt", "...
java
chosen
[ { "from": "system", "value": "Fix the unchecked type and add javadoc\n" }, { "from": "human", "value": "package com.xrtb.bidder;\n\nimport java.util.ArrayList;\nimport java.util.HashMap;\nimport java.util.List;\nimport java.util.Map;\n\npublic class MimeTypes {\n\n\tstatic Map<String,String> mim...
java
chosen