conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Update WSDL integration test for 0.6.7\n\nThe generated soap.scala file is now named soap12.scala.\n" }, { "from": "human", "value": "package org.scalaxb.maven.it;\n\nimport org.junit.Test;\n\npublic class ITP03WSDL extends AbstractIT {\n\n private String[] expec...
java
chosen
[ { "from": "system", "value": "Fix method visibility after refactoring.\n" }, { "from": "human", "value": "/*\n * Copyright 2014-2015 Red Hat, Inc. and/or its affiliates\n * and other contributors as indicated by the @author tags.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Lice...
java
chosen
[ { "from": "system", "value": "Fix array configs not saving in config GUI" }, { "from": "human", "value": "package com.tterrag.blur.config;\n\nimport javax.annotation.Nonnull;\n\nimport com.tterrag.blur.Blur;\n\nimport net.minecraft.client.gui.GuiScreen;\nimport net.minecraft.client.renderer.Tess...
java
chosen
[ { "from": "system", "value": "Add test test tag 4 to the item tags\n" }, { "from": "human", "value": "package info.u_team.u_team_test.init;\n\nimport info.u_team.u_team_core.util.TagUtil;\nimport info.u_team.u_team_test.TestMod;\nimport net.minecraft.block.Block;\nimport net.minecraft.item.Item;...
java
chosen
[ { "from": "system", "value": "Clean up of handler code\n\nreturn is not required" }, { "from": "human", "value": "package de.simonscholz.nonjavadoc.handlers;\n\nimport javax.inject.Named;\n\nimport org.eclipse.e4.core.di.annotations.Execute;\nimport org.eclipse.e4.core.di.annotations.Optional;\n...
java
chosen
[ { "from": "system", "value": "Remove extra text per pull request comment.\n" }, { "from": "human", "value": "package hudson.plugins.git.extensions.impl;\n\nimport hudson.Extension;\nimport hudson.Util;\nimport hudson.plugins.git.extensions.FakeGitSCMExtension;\nimport hudson.plugins.git.extensio...
java
chosen
[ { "from": "system", "value": "Set the default path for NE to be in the project folder.\n" }, { "from": "human", "value": "package org.mwc.cmap.naturalearth.preferences;\n\nimport org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;\nimport org.eclipse.jface.preference.IPreferenceS...
java
chosen
[ { "from": "system", "value": "Use not deprecated Element Object\n" }, { "from": "human", "value": "package android.widget;\n\nimport com.google.gwt.user.client.Element;\n\nimport android.view.ViewGroup;\n\npublic class LinearLayout extends ViewGroup {\n\n\tpublic LinearLayout(Element element) {\...
java
chosen
[ { "from": "system", "value": "Add javadoc to batch builder.\n" }, { "from": "human", "value": "package com.novoda.downloadmanager;\n\n/**\n * Builds instances of {@link Batch} using a fluent API.\n */\npublic interface BatchBuilder {\n\n /**\n * Sets {@link BatchFileBuilder} to build a {@...
java
chosen
[ { "from": "system", "value": "Bugfix: Use NativEvent instead of MouseEvent\n" }, { "from": "human", "value": "package com.github.timeu.dygraphsgwt.client.callbacks;\n\nimport com.google.gwt.event.dom.client.MouseEvent;\nimport jsinterop.annotations.JsFunction;\n\n/**\n * Created by uemit.seren o...
java
chosen
[ { "from": "system", "value": "Change argument type of regexp binding to ObservableValue<String>\n" }, { "from": "human", "value": "package eu.lestard.advanced_bindings.api;\n\nimport javafx.beans.binding.Bindings;\nimport javafx.beans.binding.BooleanBinding;\nimport javafx.beans.value.Observable...
java
chosen
[ { "from": "system", "value": "[completion] Fix sign overflow when comparing matchingDegree\n\nGitOrigin-RevId: eab238ccd73bbb90590e64477d896cec3194c934" }, { "from": "human", "value": "package com.intellij.codeInsight.completion.impl;\n\nimport com.intellij.codeInsight.completion.CompletionServi...
java
chosen
[ { "from": "system", "value": "Return an empty string instead of null for getContent() as otherwise\nthis messes up bencoding" }, { "from": "human", "value": "package uk.ac.bolton.spaws.model.impl;\n\nimport uk.ac.bolton.spaws.model.IParadata;\n\npublic abstract class Paradata implements IParadat...
java
chosen
[ { "from": "system", "value": "Make the springCacheRegionFactoryBeanPostProcessor bean definition static so CacheManager beans are eligible for getting processed by all BeanPostProcessors\n" }, { "from": "human", "value": "/*\n * Hibernate, Relational Persistence for Idiomatic Java\n *\n * Licens...
java
chosen
[ { "from": "system", "value": "CATDM-1350: Access Validator - Use service calls authenticated by OAuth\n- Undo restassured update\n" }, { "from": "human", "value": "/*\n * Copyright 2015 herd contributors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not us...
java
chosen
[ { "from": "system", "value": "Disable failing kotlin-multi-module gradle test\n" }, { "from": "human", "value": "package io.quarkus.gradle.devmode;\n\nimport static org.assertj.core.api.Assertions.assertThat;\n\nimport com.google.common.collect.ImmutableMap;\n\n@org.junit.jupiter.api.Tag(\"fails...
java
chosen
[ { "from": "system", "value": "Remove unused imports\nFix indentation\n" }, { "from": "human", "value": "package guitests;\n\nimport static seedu.ezdo.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT;\n\nimport java.io.IOException;\n\nimport org.junit.Test;\n\nimport seedu.ezdo.logic.commands...
java
chosen
[ { "from": "system", "value": "Set max frame size to 15MB in the cli to avoid OOM.\nPatch by Tyler Hobbs, reviewed by brandonwilliams for CASSANDRA-4969\n" }, { "from": "human", "value": "/**\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements...
java
chosen
[ { "from": "system", "value": "Fix license header violations in yang-data-codec-gson\n\nChange-Id: Ia5f799e64b213f20230c2eb03ad572a1c51bd092\nSigned-off-by: Thanh Ha <09ea4d3a79c8bee41a16519f6a431f6bc0fd8d6f@linuxfoundation.org>\n" }, { "from": "human", "value": "/*\n * Copyright (c) 2015 Cisco S...
java
chosen
[ { "from": "system", "value": "Use a fresh results store for build scan performance results.\n" }, { "from": "human", "value": "/*\n * Copyright 2016 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 c...
java
chosen
[ { "from": "system", "value": "Fix NPE when benchmark result is null\n" }, { "from": "human", "value": "/*\n * Copyright 2015 Red Hat, Inc. and/or its affiliates.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the ...
java
chosen
[ { "from": "system", "value": "Update docs for Data object\n" }, { "from": "human", "value": "package io.cryptolens.models;\n\nimport com.google.gson.annotations.SerializedName;\n\npublic class DataObject {\n @SerializedName(value = \"id\", alternate = {\"Id\"})\n public int Id;\n @Seria...
java
chosen
[ { "from": "system", "value": "Add test for addFile and addFolder\n" }, { "from": "human", "value": "package edu.chl.proton.model;\n\nimport org.junit.Test;\n\nimport static org.junit.Assert.assertTrue;\n\n\n/**\n * @author Stina Werme\n * Created by stinawerme on 11/05/17.\n */\npublic class Fol...
java
chosen
[ { "from": "system", "value": "[improve] Use Optional return values for all the queries\n" }, { "from": "human", "value": "package net.safedata.springboot.training.d02.s05.repository;\n\nimport net.safedata.springboot.training.d02.s05.model.Product;\nimport org.springframework.data.jpa.repository...
java
chosen
[ { "from": "system", "value": "Change how we provide if debug parameter has been passed.\nAdd function to quit application - we call simply system.exit, proper\nthread cleanup would be perhaps better." }, { "from": "human", "value": "package com.fatico.winthing;\n\nimport com.fatico.winthing.gui....
java
chosen
[ { "from": "system", "value": "Fix a bug with normal execution mode\n\nIf all of the messages of a CombinedFragment got processed and deleted\nfrom the queue during the execution, null pointer exceptions where thrown\nbecause the fragment itself wasn't deleted from the queue and the method tried to process t...
java
chosen
[ { "from": "system", "value": "Update to latest version of trusty-URI" }, { "from": "human", "value": "package ch.tkuhn.nanopub.validator;\n\nimport org.apache.wicket.request.http.WebResponse;\nimport org.apache.wicket.request.resource.IResource;\nimport org.nanopub.Nanopub;\nimport org.nanopub.N...
java
chosen
[ { "from": "system", "value": "Make sure we close files after having read them (causes tests to fail otherwise and is generally good practice)\n" }, { "from": "human", "value": "/*\n * Copyright (C) 2011 Thomas Akehurst\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n *...
java
chosen
[ { "from": "system", "value": "Fix MongoDB auto configuration issue in integration tests\n" }, { "from": "human", "value": "/**\n * Copyright (c) 2015 Intel Corporation\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance wit...
java
chosen
[ { "from": "system", "value": "Add ignore for unknown json properties in config file\n" }, { "from": "human", "value": "package org.jboss.da.common.json;\n\nimport lombok.Getter;\nimport lombok.Setter;\n\npublic class DAConfig extends AbstractModuleConfig {\n\n @Getter\n @Setter\n privat...
java
chosen
[ { "from": "system", "value": "Implement my binary search tree\n" }, { "from": "human", "value": "package lintcode.bst;\n\nimport fundamentals.tree.TreeNode;\n\n/**\n */\npublic class MyBst {\n\n // 85-Insert Node in a Binary Search Tree\n public TreeNode insertNode(TreeNode root, TreeNode ...
java
chosen
[ { "from": "system", "value": "Format (up to 120 line length).\n\ngit-svn-id: de5ce936019686f47409c93bcc5e202a9739563b@1514259 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "human", "value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license ...
java
chosen
[ { "from": "system", "value": "Fix 1.7 wrapper instancing minecraft client class\n\n" }, { "from": "human", "value": "package fr.ourten.brokkgui.wrapper;\n\nimport cpw.mods.fml.common.Mod;\nimport cpw.mods.fml.common.Mod.EventHandler;\nimport cpw.mods.fml.common.event.FMLPreInitializationEvent;\n...
java
chosen
[ { "from": "system", "value": "Make throw E on null constructor arguments\n" }, { "from": "human", "value": "package com.grayben.riskExtractor.htmlScorer;\n\nimport org.jsoup.nodes.Attribute;\nimport org.jsoup.parser.Tag;\n\npublic class TagAndAttribute {\n\tprivate final Tag tag;\n\tprivate fina...
java
chosen
[ { "from": "system", "value": "Remove annoying \"Created by\" comment\n" }, { "from": "human", "value": "package com.mixpanel.android.viewcrawler;\n\n/**\n* Created by joe on 8/29/14.\n*/\n/* package */ class PropertyDescription {\n public PropertyDescription(String name, Class targetClass, Ca...
java
chosen
[ { "from": "system", "value": "Align with ASM Comics layout (which is the old ASM Hentai Layout...)\n" }, { "from": "human", "value": "package me.devsaki.hentoid.parsers.images;\n\nimport androidx.annotation.NonNull;\n\nimport org.jsoup.nodes.Document;\n\nimport java.io.IOException;\nimport java....
java
chosen
[ { "from": "system", "value": "Revert to 1.1.1 converter ... it is part of compatibility test." }, { "from": "human", "value": "package com.thoughtworks.acceptance.someobjects;\n\nimport com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter;\n\npublic class ZConverter extends Abs...
java
chosen
[ { "from": "system", "value": "Add habit event view list activity\n" }, { "from": "human", "value": "/*\n * Copyright (c) 2017 CMPUT301F17T15. This project is distributed under the MIT license.\n */\n\npackage com.cmput301.cia.activities;\n\nimport android.support.v7.app.AppCompatActivity;\nimpor...
java
chosen
[ { "from": "system", "value": "Remove cast made redundant by r780.\n" }, { "from": "human", "value": "\n/*\n * Copyright (C) 2014 Archie L. Cobbs. All rights reserved.\n *\n * $Id$\n */\n\npackage org.jsimpledb.parse.expr;\n\nimport org.jsimpledb.parse.ParseSession;\n\n/**\n * {@link Node} repres...
java
chosen
[ { "from": "system", "value": "Mark 'TIME_WINDOW' field as deprecated\n" }, { "from": "human", "value": "/* *\\\n** SICU Stress Measurement System **\n** Project P04 | ...
java
chosen
[ { "from": "system", "value": "Add a teardown method for the formulaDAO tests\n" }, { "from": "human", "value": "package beaform.dao;\n\nimport org.apache.commons.collections.ListUtils;\nimport org.junit.Before;\nimport org.junit.Test;\n\nimport beaform.debug.DebugUtils;\nimport beaform.entities....
java
chosen
[ { "from": "system", "value": "Add test to removeCleanApiParameter method\n" }, { "from": "human", "value": "package io.searchbox.indices;\n\nimport io.searchbox.action.Action;\nimport org.junit.Test;\n\nimport java.net.URLDecoder;\n\nimport static org.junit.Assert.assertEquals;\nimport static or...
java
chosen
[ { "from": "system", "value": "Add Constant for Loging request (used with startActivityForResult)\n" }, { "from": "human", "value": "package com.simplenote.android;\n\n\npublic class Constants {\n\t/** Name of stored preferences */\n\tpublic static final String PREFS_NAME = \"SimpleNotePrefs\";\n...
java
chosen
[ { "from": "system", "value": "Fix spelling of parameter name.\n" }, { "from": "human", "value": "/*\n * JBoss, Home of Professional Open Source.\n * Copyright 2017, Red Hat, Inc., and individual contributors\n * as indicated by the @author tags. See the copyright.txt file in the\n * distribution...
java
chosen
[ { "from": "system", "value": "Remove extra space from before ()\n" }, { "from": "human", "value": "package example;\n\nimport java.awt.BorderLayout;\n\nimport javax.swing.JFrame;\n\nimport processing.core.*;\n\npublic class MainJFrame {\n\tstatic public void main(String args[]) {\n\t\t// This me...
java
chosen
[ { "from": "system", "value": "Replace custom author tags with @author Apache Software Foundation.\n\n\ngit-svn-id: 774b6be6af7f353471b728afb213ebe1be89b277@130378 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "human", "value": "/*\n * Copyright 2001-2004 The Apache Software Foundation.\n ...
java
chosen
[ { "from": "system", "value": "Clean up APIs of Frank classes.\n" }, { "from": "human", "value": "package com.dhemery.victor;\n\n/**\n * Represents an application running on an iOS device.\n * @author Dale Emery\n *\n */\npublic interface IosApplication {\n\tpublic enum Orientation {\n\t\tLANDSCA...
java
chosen
[ { "from": "system", "value": "Clean up the docs to remove implementation details.\n" }, { "from": "human", "value": "package butterknife.internal;\n\nimport android.view.View;\n\n/**\n * A {@link View.OnClickListener} that enables debouncing of multiple clicks posted in a row.\n *\n * Once a cli...
java
chosen
[ { "from": "system", "value": "Add the missing docs for the parameter.\n" }, { "from": "human", "value": "/*\n * Copyright 2020, TeamDev. All rights reserved.\n *\n * Redistribution and use in source and/or binary forms, with or without\n * modification, must retain the above copyright notice and...
java
chosen
[ { "from": "system", "value": "Disable crashlytics on debug builds.\n" }, { "from": "human", "value": "/*\n * Copyright 2017 Arunkumar\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 ...
java
chosen
[ { "from": "system", "value": "Fix string == null error\n" }, { "from": "human", "value": "package nuclibook.routes;\n\nimport nuclibook.constants.P;\nimport nuclibook.entity_utils.ExportUtils;\nimport nuclibook.entity_utils.PatientUtils;\nimport nuclibook.entity_utils.SecurityUtils;\nimport nucl...
java
chosen
[ { "from": "system", "value": "Add original method call interception for protocols\n" }, { "from": "human", "value": "package introspect;\n\nimport net.bytebuddy.instrumentation.method.bytecode.bind.annotation.*;\n\nimport java.lang.invoke.MethodHandle;\nimport java.lang.reflect.InvocationTargetE...
java
chosen
[ { "from": "system", "value": "Allow inventory size assertion to be skipped\n" }, { "from": "human", "value": "package org.cyclops.cyclopscore.inventory.container;\n\nimport net.minecraft.entity.player.PlayerEntity;\nimport net.minecraft.entity.player.PlayerInventory;\nimport net.minecraft.invent...
java
chosen
[ { "from": "system", "value": "Update reverse string method names\n" }, { "from": "human", "value": "package com.growingwiththeweb.algorithms.interviewquestions.reversestring;\n\npublic class Program {\n public static void main(String[] args) {\n assert reverse1(\"abc123def\").equals(\"...
java
chosen
[ { "from": "system", "value": "Fix test for Meta API URL generation\n" }, { "from": "human", "value": "package org.atlasapi.query.v4.meta;\n\nimport static org.junit.Assert.assertEquals;\n\nimport org.junit.Test;\n\n\npublic class ConfigurerBasedLinkCreatorTest {\n\n private String baseUri = \...
java
chosen
[ { "from": "system", "value": "Append to the valid code log rather than truncate.\n" }, { "from": "human", "value": "package unstar.server;\n\nimport java.io.File;\nimport java.io.FileNotFoundException;\nimport java.io.PrintStream;\n\n/**\n * The main class for launching a server.\n */\npublic fi...
java
chosen
[ { "from": "system", "value": "Fix chest using taken ID\n" }, { "from": "human", "value": "package com.jmrapp.terralegion.game.world.block;\n\npublic enum BlockType {\n\n\tAIR(0), DIRT(1), GRASS(2), STONE(3), DIAMOND(4), TORCH(5), STONE_WALL(6), COAL(8), DIRT_WALL(9),\n WOOD(10), LEAVES(11), W...
java
chosen
[ { "from": "system", "value": "Remove the null and length check, this should always hold.\n\nSigned-off-by: Stefan Marr <46f1a0bd5592a2f9244ca321b129902a06b53e03@stefan-marr.de>\n" }, { "from": "human", "value": "package som.interpreter.nodes;\n\nimport com.oracle.truffle.api.frame.VirtualFrame;\...
java
chosen
[ { "from": "system", "value": "tests: Increase timout of autofuzz @FuzzTest\n" }, { "from": "human", "value": "// Copyright 2022 Code Intelligence GmbH\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": "Make infinibow lowest priority to give other mod behaviors priority" }, { "from": "human", "value": "package com.enderio.core.common.tweaks;\n\nimport net.minecraft.enchantment.Enchantment;\nimport net.minecraft.enchantment.EnchantmentHelper;\nimport net.minecraft.e...
java
chosen
[ { "from": "system", "value": "Refactor in progress - cleaning...\n" }, { "from": "human", "value": "package com.bol.cd.stash;\n\nimport feign.Feign;\nimport feign.RequestInterceptor;\nimport feign.auth.BasicAuthRequestInterceptor;\nimport feign.jackson.JacksonDecoder;\nimport feign.jackson.Jacks...
java
chosen
[ { "from": "system", "value": "Put a sharper-edge on a potential failure-case when requests and\nresponses become out-of-sync.\n" }, { "from": "human", "value": "/*\n * Copyright 2015 Ben Ashford\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this fi...
java
chosen
[ { "from": "system", "value": "Set Schemas changed to String Schemas\n" }, { "from": "human", "value": "package org.osiam.client.oauth;\n\nimport org.codehaus.jackson.map.annotate.JsonSerialize;\nimport org.osiam.resources.scim.Group;\n\nimport java.util.Set;\n\n@JsonSerialize(include = JsonSeria...
java
chosen
[ { "from": "system", "value": "Add transparency mode override to copied records" }, { "from": "human", "value": "package org.dynmap.modsupport;\n\n/**\n * Record representing a texture mapping for one or more blocks, based on copying an existing one\n */\npublic interface CopyBlockTextureRecord {...
java
chosen
[ { "from": "system", "value": "Insert a space when displaying the repositories\n" }, { "from": "human", "value": "package ch.cern.cvmfs.model;\n\n\npublic class RepositoryDescription {\n\n private String name;\n private String fqrn;\n private String url;\n\n public RepositoryDescripti...
java
chosen
[ { "from": "system", "value": "Add tests for adding admins and removing admins.\n" }, { "from": "human", "value": "package se.kth.csc.controller;\n\nimport com.fasterxml.jackson.databind.ObjectMapper;\nimport se.kth.csc.persist.AccountStore;\n\npublic class AdminControllerTest {\n\n private Ac...
java
chosen
[ { "from": "system", "value": "Modify Variable and Method names\n\nchanged all mention of AddressBook/Person to TaskManager/Task\n" }, { "from": "human", "value": "package seedu.address.commons.core;\n\n/**\n * Container for user visible messages.\n */\npublic class Messages {\n\n public stati...
java
chosen
[ { "from": "system", "value": "Refactor and extend test for Feature" }, { "from": "human", "value": "/*******************************************************************************\n * Copyright 2014, 2016 gwt-ol3\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you ...
java
chosen
[ { "from": "system", "value": "Make patters render output item when in multicrafter slot\n" }, { "from": "human", "value": "package me.modmuss50.rebornstorage.proxys;\n\nimport me.modmuss50.rebornstorage.init.ModelHelper;\n\n/**\n * Created by Gigabit101 on 03/01/2017.\n */\npublic class ClientPr...
java
chosen
[ { "from": "system", "value": "Rename the method for getting the compiler.\n" }, { "from": "human", "value": "package com.haskforce.jps.model;\n\nimport com.intellij.openapi.util.SystemInfo;\nimport org.jetbrains.annotations.NotNull;\nimport org.jetbrains.jps.model.JpsDummyElement;\nimport org.je...
java
chosen
[ { "from": "system", "value": "docs: Add header docs for open\n" }, { "from": "human", "value": "/**\n * Copyright © 2014 Will Dignazio\n *\n * Java implementation file for the JNI wrapper of libatasmart.\n * This provides an interface to produce SkDisk objects that are\n * synonymous with the Sk...
java
chosen
[ { "from": "system", "value": "Fix spawn list fields visibility (438)\n" }, { "from": "human", "value": "package net.minecraft.world.biome;\n\nimport net.minecraft.entity.EntityLiving;\n\npublic class SpawnListEntry {\n public SpawnListEntry(Class<? extends EntityLiving> entityClass, int weigh...
java
chosen
[ { "from": "system", "value": "Allow having unique integer columns in the database\n" }, { "from": "human", "value": "package sword.langbook3.android.sqlite;\n\nimport sword.database.DbColumn;\nimport sword.database.DbValue;\n\npublic final class SqliteUtils {\n\n private SqliteUtils() {\n ...
java
chosen
[ { "from": "system", "value": "Make the global object factory responsible for creating the Process object.\n" }, { "from": "human", "value": "package org.projectodd.nodej;\n\nimport java.io.FileNotFoundException;\n\nimport org.dynjs.runtime.DynJS;\nimport org.dynjs.runtime.GlobalObject;\nimport o...
java
chosen
[ { "from": "system", "value": "Fix an issue where the port 9999 might be occupied thus the test fails. Now the test finds a garanteed emtpy port.\n" }, { "from": "human", "value": "package com.groupon.seleniumgridextras.utilities;\n\nimport org.junit.Test;\n\nimport java.net.ConnectException;\nim...
java
chosen
[ { "from": "system", "value": "Use MEDIUMINT for steps per day (no effect, not used, and ignored by sqlite)\n" }, { "from": "human", "value": "package nodomain.freeyourgadget.gadgetbridge.database.schema;\n\nimport android.database.sqlite.SQLiteDatabase;\n\nimport nodomain.freeyourgadget.gadgetbr...
java
chosen
[ { "from": "system", "value": "Add example for generic file tree to Javadoc\n\n`SingletonFileTree`s aren't generic file trees.\n" }, { "from": "human", "value": "/*\n * Copyright 2019 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you...
java
chosen
[ { "from": "system", "value": "Remove code added in a previous commit\n\nString literals shouldn't be assignable.\n" }, { "from": "human", "value": "package com.davidmogar.njc.ast.types;\n\nimport com.davidmogar.njc.visitors.Visitor;\nimport com.davidmogar.njc.ast.AbstractAstNode;\n\npublic class...
java
chosen
[ { "from": "system", "value": "Use generic type instead of diamond operator for Java 6 compatibility" }, { "from": "human", "value": "package com.packtpublishing.tddjava.friendships;\n\nimport org.jongo.marshall.jackson.oid.Id;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\n/**\n * Thi...
java
chosen
[ { "from": "system", "value": "Add dummy @TransactionAttribute on read method.\n" }, { "from": "human", "value": "package jannotate.beans;\n\nimport jannotate.domain.Annotation;\n\nimport java.util.List;\n\nimport javax.annotation.Resource;\nimport javax.inject.Named;\nimport javax.persistence.En...
java
chosen
[ { "from": "system", "value": "Remove unused command line interface messages and instances in the main\n" }, { "from": "human", "value": "package bakatxt.core;\n\nimport java.awt.GraphicsEnvironment;\nimport java.util.LinkedList;\nimport java.util.Scanner;\n\nimport bakatxt.gui.BakaUI;\n\npublic ...
java
chosen
[ { "from": "system", "value": "Add additional assertions to fail test earlier on null responses\n" }, { "from": "human", "value": "package org.dstadler.jgit;\n\nimport org.dstadler.jgit.helper.CookbookHelper;\nimport org.eclipse.jgit.lib.ObjectLoader;\nimport org.eclipse.jgit.lib.ObjectReader;\ni...
java
chosen
[ { "from": "system", "value": "Remove very old sunflow renderer string\n" }, { "from": "human", "value": "package com.haxademic.core.app;\n\nimport javax.media.opengl.GL;\n\nimport processing.core.PApplet;\n\n@SuppressWarnings(\"serial\")\npublic class P\nextends PApplet {\n\tpublic static PApple...
java
chosen
[ { "from": "system", "value": "Fix raw ender buckets not creating full fluid blocks in the world\n" }, { "from": "human", "value": "package squeek.veganoption.blocks;\n\nimport net.minecraft.block.material.Material;\nimport net.minecraft.util.math.BlockPos;\nimport net.minecraft.world.IBlockAcces...
java
chosen
[ { "from": "system", "value": "Rename `getHashType` to `getHashingAlgorithm` (DEV-15)\n" }, { "from": "human", "value": "package sg.ncl.testbed_interface.domain;\n\n/**\n * The {@link Credentials} interface represents the credentials of a {@link User}.\n * @author Christopher Zhong\n */\npublic i...
java
chosen
[ { "from": "system", "value": "Remove side effect when booting middleware stack\n\nSee #64\n" }, { "from": "human", "value": "package com.vtence.molecule;\n\nimport com.vtence.molecule.middlewares.NotFound;\nimport com.vtence.molecule.middlewares.URLMap;\n\nimport java.util.function.Consumer;\n\n...
java
chosen
[ { "from": "system", "value": "Add some test for findBug tools\n" }, { "from": "human", "value": "package com.langpath.service.api;\n\nimport com.langpath.sql.model.entity.User;\n\n/**\n * Created by sjakowski on 2016-03-16.\n */\npublic class UserService implements UserServiceApi {\n\n @Overr...
java
chosen
[ { "from": "system", "value": "Fix HTTP method value error\n" }, { "from": "human", "value": "/*\n * Copyright 1999-2018 Alibaba Group Holding Ltd.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * Yo...
java
chosen
[ { "from": "system", "value": "Make tag @Nullable in isLoggable\n" }, { "from": "human", "value": "package com.example.tools.timber;\n\nimport android.util.Log;\nimport com.crashlytics.android.Crashlytics;\nimport timber.log.Timber;\n\nimport javax.annotation.Nullable;\n\n/**\n * A logging tree t...
java
chosen
[ { "from": "system", "value": "[IFS-9682] Add new endpoint with body and enable swagger-ui via 'swagger' Profile\n" }, { "from": "human", "value": "package org.innovateuk.ifs.commons.security;\n\nimport org.innovateuk.ifs.activitylog.advice.TestActivityLogServiceImpl;\nimport org.innovateuk.ifs.s...
java
chosen
[ { "from": "system", "value": "gluster: Use Set instead of List for serviceNames\n\nUse Set instead of List for serviceNames in GlusterServicesListVDSParameters\n\nChange-Id: I26109a71448968fea0055c3d2df3c843e23d70f3\nSigned-off-by: Shireesh Anjal <e067aec2602d7afc6292cb46e15bf5a637d10090@gmail.com>\n" }, ...
java
chosen
[ { "from": "system", "value": "Update to work with layers instead of tags\n" }, { "from": "human", "value": "package com.ezardlabs.lostsector.objects.pickups;\n\nimport com.ezardlabs.dethsquare.Collider.Collision;\nimport com.ezardlabs.dethsquare.Component;\nimport com.ezardlabs.dethsquare.Rigidb...
java
chosen
[ { "from": "system", "value": "Add method type in order to indentify resource implementations.\n" }, { "from": "human", "value": "package com.github.aureliano.achmed.resources;\n\nimport com.github.aureliano.achmed.resources.properties.IResourceProperties;\n\npublic interface IResource {\n\n\tpub...
java
chosen
[ { "from": "system", "value": "Move looking up getTimestamp method to a static initialization block\nto ensure thread safety just in case that Log4j doesn't execute this\ncode inside a synchronized block" }, { "from": "human", "value": "package org.graylog2.log;\n\nimport org.apache.log4j.spi.Log...
java
chosen
[ { "from": "system", "value": "Fix help window test fails\n" }, { "from": "human", "value": "package guitests;\n\nimport static org.junit.Assert.assertFalse;\nimport static org.junit.Assert.assertTrue;\n\nimport org.junit.Test;\n\nimport guitests.guihandles.HelpWindowHandle;\n\npublic class HelpW...
java
chosen
[ { "from": "system", "value": "Change String array constructor to varargs\n" }, { "from": "human", "value": "package me.rbrickis.mojo;\n\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.List;\n\npublic class Arguments {\n\n private List<String> arguments;\n\n public ...
java
chosen
[ { "from": "system", "value": "Remove call to observeOn Schedulers.immediate\n" }, { "from": "human", "value": "package com.easternedgerobotics.rov.io;\n\nimport com.easternedgerobotics.rov.value.CpuValue;\n\nimport com.pi4j.system.SystemInfo;\nimport rx.Observable;\nimport rx.exceptions.Exceptio...
java
chosen
[ { "from": "system", "value": "Add forceCreateNotification flag to create notification even if the app is in foreground.\n" }, { "from": "human", "value": "package se.hyperlab.tigcm;\n\nimport android.content.Intent;\nimport android.os.Bundle;\n\nimport org.appcelerator.kroll.common.Log;\nimport ...
java
chosen
[ { "from": "system", "value": "Remove unnecessary string constants from service\n" }, { "from": "human", "value": "package com.ibm.mil.smartringer;\n\nimport android.app.IntentService;\nimport android.content.Intent;\nimport android.media.AudioManager;\nimport android.util.Log;\n\npublic class Ri...
java
chosen
[ { "from": "system", "value": "Use List instead of ArrayList as type\n" }, { "from": "human", "value": "/*\n * This file is part of Bisq.\n *\n * Bisq 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 Fr...
java
chosen