conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Add license information to file." }, { "from": "human", "value": "/**\n * Components for accessing the Web API of a Wikibase website, such as wikidata.org. \n * \n * @author Markus Kroetzsch\n *\n */\npackage org.wikidata.wdtk.wikibaseapi;" }, { "from": "g...
java
chosen
[ { "from": "system", "value": "Move check for development environment into the getNewAccessToken method.\n\nRevision created by MOE tool push_codebase.\nMOE_MIGRATION=7102\n" }, { "from": "human", "value": "package com.google.appengine.tools.cloudstorage.oauth;\n\nimport com.google.appengine.api....
java
chosen
[ { "from": "system", "value": "Print stack trace upon error" }, { "from": "human", "value": "package devopsdistilled.operp.server;\n\nimport java.io.File;\nimport java.io.FileInputStream;\nimport java.io.FileOutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.O...
java
chosen
[ { "from": "system", "value": "Add @Transactional to the save method. " }, { "from": "human", "value": "/*\n * Copyright 2016 SEARCH-The National Consortium for Justice Information and Statistics\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this fi...
java
chosen
[ { "from": "system", "value": "Fix PlaceholderAPI not being detected due to incorrect casing\n" }, { "from": "human", "value": "package tk.martijn_heil.kingdomessentials.playerclass.hooks;\n\n\nimport me.clip.placeholderapi.PlaceholderAPI;\nimport me.clip.placeholderapi.external.EZPlaceholderHook...
java
chosen
[ { "from": "system", "value": "Move to generated tracker name\n\nChange-Id: I1ac24a9278fcfc3a0cc81add5fede9f2435c17ef\n" }, { "from": "human", "value": "/*\n * Copyright Google Inc. All Rights Reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use ...
java
chosen
[ { "from": "system", "value": "Set current instance as root object\n\nSigned-off-by: Sebastian Hoß <1d6e1cf70ec6f9ab28d3ea4b27a49a77654d370e@shoss.de>" }, { "from": "human", "value": "/*\n * Copyright © 2012 Sebastian Hoß <mail@shoss.de>\n * This work is free. You can redistribute it and/or modif...
java
chosen
[ { "from": "system", "value": "Change the background thread to daemon thread so that a script closes\nall other threads closes as well" }, { "from": "human", "value": "package detective.common.httpclient;\n\nimport java.util.concurrent.TimeUnit;\n\nimport org.apache.http.conn.HttpClientConnection...
java
chosen
[ { "from": "system", "value": "Add findAll() and direct/indirect mapping number getter\n" }, { "from": "human", "value": "package org.pdxfinder.repositories;\n\nimport org.pdxfinder.dao.OntologyTerm;\nimport org.springframework.data.neo4j.annotation.Query;\nimport org.springframework.data.reposit...
java
chosen
[ { "from": "system", "value": "Add method to get SystemName.Environment.RegionName\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.config.provision.zone;\n\nimport com.yahoo.config.provi...
java
chosen
[ { "from": "system", "value": "[SMALLFIX] Replace lambda with method reference\n\nreplace lambda with method reference in\n/alluxio/core/server/master/src/main/java/alluxio/master/file/BlockDeletionContext.java#registerBlocksForDeletion\n\nChange\nblockIds.forEach(id -> registerBlockForDeletion(id));\nto\nbl...
java
chosen
[ { "from": "system", "value": "Tweak javadoc for propogater world view interface\n" }, { "from": "human", "value": "/*\n * Copyright 2013 MovingBlocks\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n *...
java
chosen
[ { "from": "system", "value": "Allow queue xml path to be set by prior extensions\n" }, { "from": "human", "value": "package com.voodoodyne.gstrap.gae.test;\n\nimport com.voodoodyne.gstrap.test.util.TestInfoContextAdapter;\nimport org.junit.jupiter.api.extension.AfterEachCallback;\nimport org.jun...
java
chosen
[ { "from": "system", "value": "Change the default to false\n" }, { "from": "human", "value": "package com.hubspot.jackson.datatype.protobuf;\n\nimport com.google.protobuf.ExtensionRegistry;\n\npublic class ProtobufJacksonConfig {\n private final ExtensionRegistryWrapper extensionRegistry;\n pri...
java
chosen
[ { "from": "system", "value": "Fix typo in error message\n\nChange-Id: I20a8781d216e10cce7dda79831c08acfe1b64865\n" }, { "from": "human", "value": "// Copyright (C) 2017 The Android Open Source Project\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use t...
java
chosen
[ { "from": "system", "value": "Remove static access on instance.\n" }, { "from": "human", "value": "/*\n * MIT License\n *\n * Copyright (c) 2020 Jannis Weis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and\n * associated documentation file...
java
chosen
[ { "from": "system", "value": "Fix converter to escape HTML characters\n" }, { "from": "human", "value": "/*-\n * #%L\n * SciJava polyglot kernel for Jupyter.\n * %%\n * Copyright (C) 2017 Hadrien Mary\n * %%\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not us...
java
chosen
[ { "from": "system", "value": "Change version to \"auto\" mode" }, { "from": "human", "value": "package com.ferreusveritas.dynamictrees;\n\npublic class ModConstants {\n\t\n\tpublic static final String MODID = \"dynamictrees\";\n\tpublic static final String NAME = \"Dynamic Trees\";\n\tpublic sta...
java
chosen
[ { "from": "system", "value": "Call NodeVisitor.begin() before visiting ast.\n" }, { "from": "human", "value": "package jltools.frontend;\n\nimport jltools.ast.*;\nimport jltools.util.*;\n\n/** A pass which runs a visitor. */\npublic class VisitorPass extends AbstractPass\n{\n Job job;\n No...
java
chosen
[ { "from": "system", "value": "Rename a variable in TrackingTreeNodeDecocator" }, { "from": "human", "value": "package hu.webarticum.treeprinter.decorator;\n\nimport hu.webarticum.treeprinter.TreeNode;\n\npublic class TrackingTreeNodeDecorator extends AbstractTreeNodeDecorator {\n\n public fin...
java
chosen
[ { "from": "system", "value": "Fix method name in Java ME library" }, { "from": "human", "value": "package com.annimon.jecp.me;\r\n\r\nimport com.annimon.jecp.ApplicationListener;\r\nimport javax.microedition.midlet.MIDlet;\r\n\r\n/**\r\n *\r\n * @author aNNiMON\r\n */\r\npublic abstract class Je...
java
chosen
[ { "from": "system", "value": "Change the way an expected set is instantated in a test\n" }, { "from": "human", "value": "package org.tenidwa.collections.utils;\n\nimport com.google.common.collect.ImmutableList;\nimport com.google.common.collect.ImmutableSet;\nimport java.util.Arrays;\nimport jav...
java
chosen
[ { "from": "system", "value": "Clean up transformations of multimaps into JSON\n" }, { "from": "human", "value": "package org.apereo.cas.services;\n\nimport org.apereo.cas.util.services.RegisteredServiceJsonSerializer;\nimport org.junit.Before;\nimport org.junit.Test;\nimport org.springframework....
java
chosen
[ { "from": "system", "value": "Remove unused StorageManager H2 database\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": "Put the setName method back again\n" }, { "from": "human", "value": "/*\n * (C) Copyright IBM Corporation 2016\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": "INFUND-6916: Fix submit action on public content summary page\n\nFormer-commit-id: 40219267cb97ce2dc784fb07b1a11ffa35ca9743" }, { "from": "human", "value": "package org.innovateuk.ifs.publiccontent.saver.section;\n\n\nimport org.innovateuk.ifs.commons.error.Error;\n...
java
chosen
[ { "from": "system", "value": "Allow test session and endpoint to come from env vars\n" }, { "from": "human", "value": "package com.github.ryanbrainard.richsobjects.api.client;\n\n/**\n * @author Ryan Brainard\n */\npublic class SfdcApiTestSessionProvider implements SfdcApiSessionProvider {\n ...
java
chosen
[ { "from": "system", "value": "Remove redundant @ExtendWith(SpringExtension.class) for sample\n\nSee gh-32476\n" }, { "from": "human", "value": "/*\n * Copyright 2012-2022 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use...
java
chosen
[ { "from": "system", "value": "Fix for changing selection with mouse\n" }, { "from": "human", "value": "package com.gabrielavara.choiceplayer.playlist;\n\nimport com.gabrielavara.choiceplayer.dto.Mp3;\nimport com.gabrielavara.choiceplayer.messages.SelectionChangedMessage;\nimport com.gabrielavara...
java
chosen
[ { "from": "system", "value": "Add new Types for UpdatedTiles\n" }, { "from": "human", "value": "package com.github.steveice10.mc.protocol.data.game.world.block;\n\npublic enum UpdatedTileType {\n MOB_SPAWNER,\n COMMAND_BLOCK,\n BEACON,\n SKULL,\n CONDUIT,\n BANNER,\n STRUCTU...
java
chosen
[ { "from": "system", "value": "Add test to ensure extra content after <a></a> is also extracted\n" }, { "from": "human", "value": "package nl.hsac.fitnesse.fixture.util;\n\nimport org.junit.Test;\n\nimport static org.junit.Assert.assertEquals;\nimport static org.junit.Assert.assertNull;\n\npublic...
java
chosen
[ { "from": "system", "value": "Revert 11533 now that TestKey is checked in.\n\n\ngit-svn-id: 6bd94cac40bd5c1df74b384d972046d926de6ffa@11535 a8845c50-7012-0410-95d3-8e1449b9b1e4\n" }, { "from": "human", "value": "package org.mifos.framework.components.configuration;\n\nimport junit.framework.Test;...
java
chosen
[ { "from": "system", "value": "AMPS-373: Allow resource compression to be disabled\n\ngit-svn-id: 883a21d237c46b75e72c0e9117e1cd5e6516cdf8@112480 2c54a935-e501-0410-bc05-97a93f6bca70\n" }, { "from": "human", "value": "package com.atlassian.maven.plugins.amps;\n\nimport org.apache.maven.plugin.Moj...
java
chosen
[ { "from": "system", "value": "Fix incremental compilation for lua classes that require a superclass name resolution\n" }, { "from": "human", "value": "package net.wizardsoflua.annotation;\n\nimport static java.lang.annotation.ElementType.TYPE;\nimport static java.lang.annotation.RetentionPolicy....
java
chosen
[ { "from": "system", "value": "Remove default while label error page\n" }, { "from": "human", "value": "package ip.cl.clipapp;\r\n\r\nimport java.net.URI;\r\nimport java.net.URISyntaxException;\r\n\r\nimport javax.sql.DataSource;\r\n\r\nimport org.springframework.boot.SpringApplication;\r\nimport...
java
chosen
[ { "from": "system", "value": "Add into repository to find user by username\n" }, { "from": "human", "value": "package br.holandajunior.workday.repositories;\n\nimport br.holandajunior.workday.models.User;\nimport org.springframework.data.jpa.repository.JpaRepository;\n\n/**\n * Created by holand...
java
chosen
[ { "from": "system", "value": "Add verification that the code ran on GPU. Otherwise we get a false positive. \n\n" }, { "from": "human", "value": "package com.amd.aparapi.test.runtime;\r\n\r\nimport static org.junit.Assert.assertTrue;\r\nimport org.junit.Test;\r\nimport com.amd.aparapi.Kernel;\r...
java
chosen
[ { "from": "system", "value": "Remove columnNames loading from loadData()" }, { "from": "human", "value": "package devopsdistilled.operp.client.items;\n\nimport java.util.Vector;\n\nimport javax.inject.Inject;\n\nimport devopsdistilled.operp.server.data.service.items.ItemService;\n\npublic class ...
java
chosen
[ { "from": "system", "value": "Fix for test failure - the order of the List returned by\ngetPrimaryKeyFields() has changed.\n\n" }, { "from": "human", "value": "package org.intermine.metadata;\n\n/*\n * Copyright (C) 2002-2004 FlyMine\n *\n * This code may be freely distributed and modified under...
java
chosen
[ { "from": "system", "value": "Add override annotations to make error prone happy\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 additional inf...
java
chosen
[ { "from": "system", "value": "Add method of sendMessageButton - Enabled/Disabled\n" }, { "from": "human", "value": "package com.example.android.androidsimulator.activities;\n\nimport android.support.v7.app.AppCompatActivity;\nimport android.os.Bundle;\n\nimport com.example.android.androidsimulat...
java
chosen
[ { "from": "system", "value": "Create the rncToXsd Task lazily\n" }, { "from": "human", "value": "package trang;\n\nimport org.gradle.api.Plugin;\nimport org.gradle.api.Project;\nimport org.gradle.api.Task;\n\n/**\n * Used for converting .rnc files to .xsd files.\n * @author Rob Winch\n */\npubli...
java
chosen
[ { "from": "system", "value": "Modify camera angle from 105 to 115 degrees.\n" }, { "from": "human", "value": "/*\n * To change this template, choose Tools | Templates\n * and open the template in the editor.\n */\npackage edu.stuy.subsystems;\n\nimport edu.stuy.RobotMap;\nimport edu.wpi.first.wp...
java
chosen
[ { "from": "system", "value": "Clean up the configuration before and after the test.\n" }, { "from": "human", "value": "package com.rackspacecloud.blueflood.service;\n\nimport com.rackspacecloud.blueflood.utils.Util;\nimport org.junit.Assert;\nimport org.junit.Ignore;\nimport org.junit.Test;\n\ni...
java
chosen
[ { "from": "system", "value": "Improve confidence interval test code\n" }, { "from": "human", "value": "package imagej.data.autoscale;\n\nimport static org.junit.Assert.assertTrue;\nimport net.imglib2.img.Img;\nimport net.imglib2.img.array.ArrayImgs;\nimport net.imglib2.ops.util.Tuple2;\nimport n...
java
chosen
[ { "from": "system", "value": "Add cast so code compiles properly under source 1.4\n" }, { "from": "human", "value": "package org.bouncycastle.cms;\n\nimport java.security.AlgorithmParameters;\nimport java.security.InvalidAlgorithmParameterException;\nimport java.security.spec.InvalidParameterSpe...
java
chosen
[ { "from": "system", "value": "Update log wording for Unix socket config strategy\n" }, { "from": "human", "value": "package org.testcontainers.dockerclient;\n\nimport com.github.dockerjava.api.DockerClient;\nimport com.github.dockerjava.core.DockerClientBuilder;\nimport com.github.dockerjava.cor...
java
chosen
[ { "from": "system", "value": "Remove unused zk data for default flavor override\n" }, { "from": "human", "value": "// Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\n package com.yahoo.vespa.config.server.maintenance;\n\...
java
chosen
[ { "from": "system", "value": "Add XML to @produces for ContextResolver\n" }, { "from": "human", "value": "package org.slc.sli.api.resources.config;\n\nimport javax.ws.rs.Produces;\nimport javax.ws.rs.ext.ContextResolver;\nimport javax.ws.rs.ext.Provider;\n\nimport org.codehaus.jackson.map.Object...
java
chosen
[ { "from": "system", "value": "Fix typo in test class\n" }, { "from": "human", "value": "package de.fu_berlin.cdv.chasingpictures.activity;\n\nimport android.content.Intent;\nimport android.test.ActivityInstrumentationTestCase2;\n\nimport java.util.List;\n\nimport de.fu_berlin.cdv.chasingpictures...
java
chosen
[ { "from": "system", "value": "Convert more tabs to spaces to resolve errors\n" }, { "from": "human", "value": "package com.hubspot.jinjava.lib.exptest;\n\nimport com.hubspot.jinjava.doc.annotations.JinjavaDoc;\nimport com.hubspot.jinjava.doc.annotations.JinjavaParam;\nimport com.hubspot.jinjava...
java
chosen
[ { "from": "system", "value": "Fix task channel registration when installing module from UI\n\nI noticed that when we install a new module via UI, its\nchannel does not get registered. The reason for that is that when\nentities bundle is getting restarted, what unregisters the ChannelService,\nthe ChannelSer...
java
chosen
[ { "from": "system", "value": "Change test names to follow convention\n" }, { "from": "human", "value": "package se.kits.gakusei.controller;\n\nimport org.junit.Before;\nimport org.junit.Test;\nimport org.junit.runner.RunWith;\nimport org.mockito.InjectMocks;\nimport org.mockito.Mock;\nimport org...
java
chosen
[ { "from": "system", "value": "Add newline delimiters to filesystem writer and work around Jackson closing a writer it doesn't own.\n" }, { "from": "human", "value": "/*\n * Copyright 2014 Open mHealth\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use t...
java
chosen
[ { "from": "system", "value": "Fix crash in 1.6 at Accessibility settings intent.\n\nCheck SDK version & launch intent differently for 1.6.\n\nInstead of OnPreferenceClickListener, use .setIntent on preference.\n" }, { "from": "human", "value": "package com.pilot51.voicenotify;\n\nimport android....
java
chosen
[ { "from": "system", "value": "Add empty space to logging output\n" }, { "from": "human", "value": "package com.microsoft.applicationinsights.logging;\r\n\r\nimport android.util.Log;\r\n\r\nimport com.microsoft.applicationinsights.library.ApplicationInsights;\r\n\r\npublic class InternalLogging {...
java
chosen
[ { "from": "system", "value": "Add missing languages to the respective enum\n" }, { "from": "human", "value": "package com.proxerme.library.enums;\n\nimport com.squareup.moshi.Json;\n\n/**\n * TODO: Describe class\n *\n * @author Ruben Gees\n */\npublic enum MediaLanguage {\n @Json(name = \"de...
java
chosen
[ { "from": "system", "value": "Remove bad import to fix build\n" }, { "from": "human", "value": "package com.autonomy.abc.selenium.find.filters;\r\n\r\nimport com.hp.autonomy.frontend.selenium.util.ElementUtil;\r\nimport org.openqa.selenium.By;\r\nimport org.openqa.selenium.WebDriver;\r\nimport o...
java
chosen
[ { "from": "system", "value": "Fix memory leak in cleanup task\n" }, { "from": "human", "value": "package org.ektorp.http;\n\nimport java.util.concurrent.*;\nimport java.util.concurrent.atomic.*;\n\nimport org.apache.http.conn.*;\n\npublic class IdleConnectionMonitor {\n\n\tprivate final static l...
java
chosen
[ { "from": "system", "value": "Enforce name conventions for test-created activities" }, { "from": "human", "value": "/**\n *\n */\npackage test.issues.strava;\n\nimport static org.junit.Assert.assertFalse;\nimport static org.junit.Assert.assertNotNull;\n\nimport java.util.Arrays;\nimport java.uti...
java
chosen
[ { "from": "system", "value": "Clear data. Refactor peer to peer calls.\n" }, { "from": "human", "value": "package com.quickblox.sample.videochatwebrtcnew.definitions;\n\npublic class Consts {\n\n // QuickBlox credentials\n public static final String APP_ID = \"18846\";\n public static f...
java
chosen
[ { "from": "system", "value": "Add an insert method to the custom data point repository.\n" }, { "from": "human", "value": "/*\n * Copyright 2014 Open mHealth\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the Lice...
java
chosen
[ { "from": "system", "value": "Improve list command to show values, to use / by default, etc\n" }, { "from": "human", "value": "/**\n * Copyright (C) 2011, FuseSource Corp. All rights reserved.\n * http://fusesource.com\n *\n * The software in this package is published under the terms of the\n *...
java
chosen
[ { "from": "system", "value": "Bring the verifier up to code conventions\n" }, { "from": "human", "value": "package com.github.robozonky.strategy.natural;\n\nimport java.io.ByteArrayInputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.nio.charset.StandardCharsets;\n...
java
chosen
[ { "from": "system", "value": "Fix T41937: NPE when render report with large line height and letter spacing styles in item\n" }, { "from": "human", "value": "/***********************************************************************\n * Copyright (c) 2009 Actuate Corporation.\n * All rights reserve...
java
chosen
[ { "from": "system", "value": "[improve] Use a logger instead of System.out, display the class name\n" }, { "from": "human", "value": "package com.nokia.springboot.training.d04.s01.service;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.stereotype.Se...
java
chosen
[ { "from": "system", "value": "common: Change GetConfiguration query not to refresh session\n\nBug-Url: https://bugzilla.redhat.com/1168842\nChange-Id: I9ec8cb46e3fba206d9e1a93df9f985d5c2477fa8\nSigned-off-by: Yair Zaslavsky <e2db7378c71f96998c1e6c0ce01fa87adf291bd0@redhat.com>\n" }, { "from": "human...
java
chosen
[ { "from": "system", "value": "Remove result of running demo.\n" }, { "from": "human", "value": "package no.steria.skuldsku.example.basic.impl;\r\n\r\nimport java.util.ArrayList;\r\nimport java.util.List;\r\n\r\nimport no.steria.skuldsku.example.basic.PlaceDao;\r\n\r\npublic class InMemoryPlaceDa...
java
chosen
[ { "from": "system", "value": "Update to PublicContentStatusText unit test.\n" }, { "from": "human", "value": "package org.innovateuk.ifs.competition.status;\n\nimport org.junit.Assert;\nimport org.junit.Test;\n\npublic class PublicContentStatusTextTest {\n\n PublicContentStatusText publicCont...
java
chosen
[ { "from": "system", "value": "Load the group config on startup" }, { "from": "human", "value": "package org.monospark.actionpermissions;\n\nimport org.spongepowered.api.plugin.Plugin;\n\n@Plugin(id = \"actionpermissions\", name = \"ActionPermissions\", version = \"1.0\")\npublic class ActionPerm...
java
chosen
[ { "from": "system", "value": "Add a slight cooldown buff to speedshot to make it less crappy\n" }, { "from": "human", "value": "package edu.stuy.starlorn.upgrades;\n\npublic class SpeedShotUpgrade extends GunUpgrade {\n public SpeedShotUpgrade() {\n super();\n _name = \"Speed Sh...
java
chosen
[ { "from": "system", "value": "Fix NPE if no auth info provided\n" }, { "from": "human", "value": "package digital.loom.rhizome.authentication;\n\nimport java.util.regex.Pattern;\n\nimport javax.servlet.http.Cookie;\nimport javax.servlet.http.HttpServletRequest;\n\nimport com.auth0.jwt.internal.o...
java
chosen
[ { "from": "system", "value": "Stop mutating a post after the first applicable mutation\n" }, { "from": "human", "value": "package com.veyndan.redditclient.post.mutator;\n\nimport com.google.common.collect.ImmutableList;\nimport com.veyndan.redditclient.post.model.Post;\n\nimport java.util.List;\...
java
chosen
[ { "from": "system", "value": "Remove implicit cast to fix second conversion\n" }, { "from": "human", "value": "package de.philipphager.disclosure.util.time;\n\nimport javax.inject.Inject;\nimport org.threeten.bp.Duration;\nimport org.threeten.bp.LocalDateTime;\n\nimport static de.philipphager.di...
java
chosen
[ { "from": "system", "value": "Remove the import org.eclipse.swt.browser.Browser - instead it shoult be\nthe Browser interface that is in this package" }, { "from": "human", "value": "package com.ca.apm.swat.epaplugins.asm.har;\n\nimport org.eclipse.swt.browser.Browser;\n\npublic interface Log {\...
java
chosen
[ { "from": "system", "value": "Make travis happy - maybe.\n" }, { "from": "human", "value": "package com.tinkerpop.gremlin.console.plugin;\n\nimport com.tinkerpop.gremlin.tinkergraph.structure.TinkerFactory;\nimport com.tinkerpop.gremlin.tinkergraph.structure.TinkerGraph;\nimport org.codehaus.gro...
java
chosen
[ { "from": "system", "value": "Add a warning if resources are leaked.\n\nPrint a warning if a NativeObject is finalized before its native\nresource is closed\n" }, { "from": "human", "value": "package com.litl.leveldb;\n\nimport java.io.Closeable;\nimport java.util.concurrent.atomic.AtomicInteger...
java
chosen
[ { "from": "system", "value": "Add simple UI for first example\n" }, { "from": "human", "value": "package org.kikermo.blepotcontroller.activity;\n\nimport android.support.v7.app.AppCompatActivity;\nimport android.os.Bundle;\nimport android.widget.SeekBar;\nimport android.widget.TextView;\n\nimpor...
java
chosen
[ { "from": "system", "value": "Make test independent of current working directory\n" }, { "from": "human", "value": "package dk.statsbiblioteket.doms.transformers.common;\n\nimport junit.framework.TestCase;\nimport org.junit.Test;\n\nimport java.io.File;\nimport java.io.IOException;\nimport java....
java
chosen
[ { "from": "system", "value": "Correct logic for is isCategoryNameValidForCategory()\n\nLong.equals(Long) isn't equals to (Long == Long)?\n\nOPEN - task 54: Create Category CRUD packages \nhttp://github.com/DevOpsDistilled/OpERP/issues/issue/54" }, { "from": "human", "value": "package devopsdisti...
java
chosen
[ { "from": "system", "value": "Fix for String MetaProps facet searches\n" }, { "from": "human", "value": "package alien4cloud.metaproperty;\n\nimport com.google.common.collect.Lists;\nimport org.elasticsearch.mapping.IFacetBuilderHelper;\nimport org.elasticsearch.mapping.TermsFilterBuilderHelper;...
java
chosen
[ { "from": "system", "value": "Fix test that missed a re-factor\n" }, { "from": "human", "value": "package com.example;\n\nimport org.junit.Test;\nimport org.junit.runner.RunWith;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.boot.test.context.SpringB...
java
chosen
[ { "from": "system", "value": "Add a sample method with some Javadoc.\n" }, { "from": "human", "value": "package com.sample.hba;\n\nimport android.app.Activity;\nimport android.os.Bundle;\n\npublic class LauncherActivity extends Activity\n{\n /** Called when the activity is first created. */\n...
java
chosen
[ { "from": "system", "value": "Disable service composition plugin connection" }, { "from": "human", "value": "package eu.scasefp7.eclipse.core.handlers;\r\n\r\nimport org.eclipse.core.commands.ExecutionEvent;\r\nimport org.eclipse.core.commands.ExecutionException;\r\n\r\n/**\r\n * A command handl...
java
chosen
[ { "from": "system", "value": "Add STRICT_DOCKER_SERVICE_NAME_COMPARISON to Collection of PropertyDefinition\n" }, { "from": "human", "value": "package org.bitsofinfo.hazelcast.discovery.docker.swarm;\n\nimport com.hazelcast.config.properties.PropertyDefinition;\nimport com.hazelcast.logging.ILog...
java
chosen
[ { "from": "system", "value": "Replace deprecated By.name locators with By.xpath\n" }, { "from": "human", "value": "package com.testdroid.appium.ios.sample;\n\nimport org.testng.annotations.AfterClass;\nimport org.testng.annotations.BeforeClass;\nimport org.testng.annotations.Test;\nimport org.op...
java
chosen
[ { "from": "system", "value": "Add last version of Google Java Format to supported versions\n" }, { "from": "human", "value": "package com.github.sherter.googlejavaformatgradleplugin.format;\n\nimport com.google.common.collect.ImmutableList;\n\n/** Static factory method for creating new {@link Fo...
java
chosen
[ { "from": "system", "value": "Clone the spring-pet-clinic to test\n" }, { "from": "human", "value": "package org.gozer.services;\n\nimport org.eclipse.jgit.api.Git;\nimport org.eclipse.jgit.api.errors.GitAPIException;\nimport org.eclipse.jgit.lib.Repository;\nimport org.eclipse.jgit.storage.file...
java
chosen
[ { "from": "system", "value": "Enable SASI indexes when running mapper tests against C* 4\n" }, { "from": "human", "value": "/*\n * Copyright DataStax, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the Licens...
java
chosen
[ { "from": "system", "value": "ROUT-4: Simplify annotations with the all inclusive @SprintBootApplication\n" }, { "from": "human", "value": "package common;\nimport org.springframework.boot.SpringApplication;\nimport org.springframework.boot.autoconfigure.EnableAutoConfiguration;\nimport org.spri...
java
chosen
[ { "from": "system", "value": "Remove unused initialization code from user list activity." }, { "from": "human", "value": "/**\n * Copyright (C) 2014 android10.org. All rights reserved.\n * @author Fernando Cejas (the android10 coder)\n */\npackage com.fernandocejas.android10.sample.presentation....
java
chosen
[ { "from": "system", "value": "Align test with new base class\n" }, { "from": "human", "value": "package com.grayben.riskExtractor.htmlScorer.scorers.elementScorers;\n\nimport com.grayben.riskExtractor.htmlScorer.scorers.Scorer;\nimport com.grayben.riskExtractor.htmlScorer.scorers.ScorerTest;\nim...
java
chosen
[ { "from": "system", "value": "Allow currentUser.username, etc. from within templates (rather than currentUser.user.username)\n" }, { "from": "human", "value": "package com.peterphi.std.guice.web.rest.templating.thymeleaf;\n\nimport com.google.inject.Provider;\nimport com.peterphi.std.guice.commo...
java
chosen
[ { "from": "system", "value": "dtable: Fix cosmetic issue on FF" }, { "from": "human", "value": "/*\n * Copyright 2011 JBoss Inc\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy...
java
chosen
[ { "from": "system", "value": "Fix sample for custom tooling model: ToolingModelBuilder is an interface.\n" }, { "from": "human", "value": "package org.gradle.sample.plugin;\n\nimport javax.inject.Inject;\nimport org.gradle.api.Plugin;\nimport org.gradle.api.Project;\nimport org.gradle.tooling.pr...
java
chosen
[ { "from": "system", "value": "Cut down version of the full test suite pending scanning and configured support" }, { "from": "human", "value": "/**\n * Copyright (c) 2010 RedEngine Ltd, http://www.redengine.co.nz. All rights reserved.\n *\n * This program is licensed to you under the Apache Licen...
java
chosen
[ { "from": "system", "value": "Revert \"Revert \"Fixed ElasticSearchInfoTest after upgrading to 7.3.1\"\"\n\nThis reverts commit 1eb00d8243299fc14a045fef02b71c86f3595f0b.\n" }, { "from": "human", "value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor l...
java
chosen
[ { "from": "system", "value": "Set Hystrix group key to command class name\n" }, { "from": "human", "value": "package name.webdizz.fault.tolerance.inventory.client.command;\n\nimport name.webdizz.fault.tolerance.inventory.client.InventoryRequester;\nimport name.webdizz.fault.tolerance.inventory.d...
java
chosen
[ { "from": "system", "value": "Remove launcher view factory method" }, { "from": "human", "value": "package com.codenvy.ide.ext.datasource.client.sqllauncher;\n\npublic interface SqlRequestLauncherFactory {\n\n SqlRequestLauncherView createSqlRequestLauncherView();\n\n SqlRequestLauncherPre...
java
chosen
[ { "from": "system", "value": "Add check for null parameter" }, { "from": "human", "value": "/*\n * Copyright (c) 2016 EMC Corporation. All Rights Reserved.\n */\npackage com.emc.ia.sdk.support.io;\n\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.util.function.Supplier;\n\...
java
chosen