conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Add explicit jax-rs client provider for ConfigRestService so that scan.packages doesn't have to include ConfigRestService\n" }, { "from": "human", "value": "package com.peterphi.std.guice.common.serviceprops.net;\n\nimport com.google.inject.AbstractModule;\n\npublic...
java
chosen
[ { "from": "system", "value": "Change testSuites to be a list with default value\n\nSigned-off-by: Orit Stone <530a3c863b274210fbf305df5a70e325b4dbcb5a@hp.com>\n" }, { "from": "human", "value": "package org.openscore.lang.tools.build.tester.parse;\n\nimport java.io.Serializable;\nimport java.util...
java
chosen
[ { "from": "system", "value": "Add test on response typed headers\n" }, { "from": "human", "value": "package fixtures.azurespecials;\n\nimport com.microsoft.rest.ServiceResponse;\nimport org.junit.Assert;\nimport org.junit.BeforeClass;\nimport org.junit.Test;\n\npublic class HeaderOperationsTests...
java
chosen
[ { "from": "system", "value": "NXP-11577: Fix Sonar Major violations: Final Class\n" }, { "from": "human", "value": "package org.nuxeo.drive.service.impl;\n\nimport java.util.HashSet;\nimport java.util.LinkedHashMap;\nimport java.util.Map;\nimport java.util.Set;\n\nimport org.apache.commons.lang....
java
chosen
[ { "from": "system", "value": "Simplify retrieval of literal for insertion recovery messages\n" }, { "from": "human", "value": "package org.spoofax.jsglr2.recovery;\n\nimport org.metaborg.parsetable.productions.IProduction;\nimport org.spoofax.jsglr2.messages.Message;\nimport org.spoofax.jsglr2.m...
java
chosen
[ { "from": "system", "value": "Update injection name to match new naming scheme\n" }, { "from": "human", "value": "package org.spongepowered.server.mixin.core.item.crafting;\n\nimport net.minecraft.item.crafting.CraftingManager;\nimport net.minecraft.item.crafting.IRecipe;\nimport net.minecraft.u...
java
chosen
[ { "from": "system", "value": "Add space in the error message." }, { "from": "human", "value": "/*\n * Copyright 2014 Josef Hardi <josef.hardi@gmail.com>\n * \n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License....
java
chosen
[ { "from": "system", "value": "Update test cases asserts, to update TextVisitor creating better\ndescription" }, { "from": "human", "value": "package com.github.verhagen.textadventure.core.domain;\n\nimport static org.testng.Assert.assertEquals;\n\nimport org.testng.annotations.Test;\n\nimport co...
java
chosen
[ { "from": "system", "value": "Use the same reference for all method calls\n" }, { "from": "human", "value": "package co.codesharp.jwampsharp.defaultBinding;\n\nimport co.codesharp.jwampsharp.api.client.WampChannel;\nimport co.codesharp.jwampsharp.api.client.WampChannelFactoryImpl;\nimport co.cod...
java
chosen
[ { "from": "system", "value": "Make error message more specific.\n" }, { "from": "human", "value": "package org.shipkit.internal.gradle.util;\n\nimport org.gradle.api.GradleException;\nimport org.shipkit.gradle.git.GitPushTask;\n\npublic class CannotPushToGithubException extends RuntimeException ...
java
chosen
[ { "from": "system", "value": "Order id is now long type" }, { "from": "human", "value": "package org.knowm.xchange.bitfinex.v1.dto.trade;\n\nimport com.fasterxml.jackson.annotation.JsonProperty;\nimport com.fasterxml.jackson.annotation.JsonRawValue;\n\npublic class BitfinexCancelOrderRequest {\n...
java
chosen
[ { "from": "system", "value": "Fix import with links in embedded collections of maps\n" }, { "from": "human", "value": "package com.orientechnologies.orient.core.db.tool.importer;\n\nimport com.orientechnologies.orient.core.db.record.OIdentifiable;\n\n/** Created by tglman on 28/07/17. */\npublic...
java
chosen
[ { "from": "system", "value": "Fix typo in Javadoc tag for sign() return description.\n\nPiperOrigin-RevId: 287240118\n" }, { "from": "human", "value": "// Copyright 2017 Google Inc.\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in ...
java
chosen
[ { "from": "system", "value": "Add check for redeclared symbols.\n" }, { "from": "human", "value": "package pt.up.fe.comp.utils;\n\nimport java.util.Stack;\n\npublic class SymbolTable<T> {\n\n public SymbolTable(boolean lazy) {\n _lazy = lazy;\n beginScope();\n }\n\n public...
java
chosen
[ { "from": "system", "value": "Fix event name not being added in constructor." }, { "from": "human", "value": "package com.woopra;\n\nimport java.util.Properties;\n/**\n * @author Woopra on 1/26/2013\n * \n */\npublic class WoopraEvent {\n\tprivate String eventName = null;\n\tprivate Properties p...
java
chosen
[ { "from": "system", "value": "Use the application name as the default local service id in KubernetesDiscovery.\n" }, { "from": "human", "value": "/*\n * Copyright (C) 2016 to the original authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use...
java
chosen
[ { "from": "system", "value": "Add sort and insert heap test\n" }, { "from": "human", "value": "import datastructures.PriorityQueue;\nimport java.util.*;\n\npublic class PriorityQueueTest {\n public static void main(String[] args) throws Exception {\n for (int i = 0; i < 5; i ++) {\n ...
java
chosen
[ { "from": "system", "value": "Make HiliteMeService public for CDI\n" }, { "from": "human", "value": "package bean;\n\nimport java.net.URI;\n\nimport javax.enterprise.context.ApplicationScoped;\nimport javax.ws.rs.FormParam;\nimport javax.ws.rs.POST;\n\nimport org.eclipse.microprofile.rest.client...
java
chosen
[ { "from": "system", "value": "Add serial id to seat\n" }, { "from": "human", "value": "package data.trainnetwork;\n\nimport java.io.Serializable;\nimport java.math.BigInteger;\nimport java.security.SecureRandom;\n\n/**\n * A class representing a Seat within section\n * @author Balazs Pete\n *\n ...
java
chosen
[ { "from": "system", "value": "Make the findbugs checker happy\n" }, { "from": "human", "value": "package com.rollbar.jvmti;\n\nimport java.lang.reflect.Method;\nimport java.util.Arrays;\nimport java.util.Collections;\nimport java.util.HashMap;\nimport java.util.Map;\n\n/**\n * CacheFrame is a fr...
java
chosen
[ { "from": "system", "value": "Update description with Canvas class" }, { "from": "human", "value": "package tetris.game;\n\nimport java.awt.*;\nimport javax.swing.*;\n\npublic class MainConsole{\n\n private JFrame frame;\n private Canvas canvas;\n\n public MainConsole(){\n frame ...
java
chosen
[ { "from": "system", "value": "Remove `HashMap.merge`, which is absent in Java7.\n\nPiperOrigin-RevId: 445068304\n" }, { "from": "human", "value": "/*\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in co...
java
chosen
[ { "from": "system", "value": "Use a CrudRepository instead of a PagingAndSortingRepository" }, { "from": "human", "value": "package it.gov.aifa.invoice_processor.service.persistence;\nimport org.springframework.data.repository.PagingAndSortingRepository;\n\nimport it.gov.aifa.invoice_processor.e...
java
chosen
[ { "from": "system", "value": "Remove printing to System.out in test\n" }, { "from": "human", "value": "/*\n * Copyright 2015 the original author or authors.\n *\n * All rights reserved. This program and the accompanying materials are\n * made available under the terms of the Eclipse Public Licen...
java
chosen
[ { "from": "system", "value": "Put back abstract version number\n" }, { "from": "human", "value": "package junit.runner;\n\n/**\n * This class defines the current version of JUnit\n */\npublic class Version {\n\tprivate Version() {\n\t\t// don't instantiate\n\t}\n\n\tpublic static String id() {\n...
java
chosen
[ { "from": "system", "value": "Implement parser for trends and their frequencies and store those trends in datastore\n" }, { "from": "human", "value": "// Copyright 2020 Google LLC\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in co...
java
chosen
[ { "from": "system", "value": "Change q-value default cutoff to 0.05 for both peptide and PSM\n\nThis is for Percolator q-value default cutoff" }, { "from": "human", "value": "package org.yeastrc.proxl.proxl_gen_import_xml_kojak.kojak_and_percolator.constants;\n\nimport java.math.BigDecimal;\n\np...
java
chosen
[ { "from": "system", "value": "Fix typo in physical dimensions profile and @context\n" }, { "from": "human", "value": "package de.digitalcollections.iiif.presentation.model.impl.v2;\n\npublic class PhysicalDimensionsServiceImpl extends ServiceImpl {\n private double physicalScale;\n private Str...
java
chosen
[ { "from": "system", "value": "Use a lambda as it is a lot shorter\n" }, { "from": "human", "value": "package beaform.events;\n\nimport static org.junit.Assert.assertEquals;\n\nimport java.text.SimpleDateFormat;\nimport java.util.Date;\n\nimport org.junit.After;\nimport org.junit.Before;\nimport ...
java
chosen
[ { "from": "system", "value": "[Java] Add comment for pre-order iteration.\n" }, { "from": "human", "value": "package collections;\n\nimport java.util.Iterator;\nimport java.util.NoSuchElementException;\nimport java.util.Stack;\n\nimport binarytrees.TreeNode;\n\npublic class PreorderIterator<T> i...
java
chosen
[ { "from": "system", "value": "Correct Http Csv output so that it contains the csv column headings." }, { "from": "human", "value": "package org.commacq;\n\nimport java.io.PrintWriter;\nimport java.io.Writer;\n\n/**\n * Contains a large buffer. Reuse these objects.\n */\npublic class CsvLineCallb...
java
chosen
[ { "from": "system", "value": "Fix db migration not running as latest jpa version wasn't updated\n" }, { "from": "human", "value": "package org.keycloak.connections.jpa.updater;\n\nimport org.keycloak.models.KeycloakSession;\nimport org.keycloak.provider.Provider;\n\nimport java.sql.Connection;\n...
java
chosen
[ { "from": "system", "value": "Implement Service Information API of UVC Device Plug-in.\n" }, { "from": "human", "value": "/*\n UVCServiceInformationProfile.java\n Copyright (c) 2015 NTT DOCOMO,INC.\n Released under the MIT license\n http://opensource.org/licenses/mit-license.php\n */\npackage or...
java
chosen
[ { "from": "system", "value": "Add @Nonnull annotation to determineDefaultLocale\n" }, { "from": "human", "value": "package org.synyx.urlaubsverwaltung.user;\n\nimport org.springframework.web.servlet.i18n.SessionLocaleResolver;\n\nimport javax.servlet.http.HttpServletRequest;\nimport java.securit...
java
chosen
[ { "from": "system", "value": "Check that an app able to handle the Intent exists\n\nPrevents the app from crashing if an intent is send\nwith no app able to handle it" }, { "from": "human", "value": "package com.ivanph.webintent;\n\nimport android.content.Intent;\nimport android.net.Uri;\nimport...
java
chosen
[ { "from": "system", "value": "Reset internal DIV clock on resetting the counter.\n" }, { "from": "human", "value": "package eu.rekawek.coffeegb.timer;\n\nimport eu.rekawek.coffeegb.Gameboy;\nimport eu.rekawek.coffeegb.cpu.SpeedMode;\n\npublic class Counter {\n\n private final int frequency;\n...
java
chosen
[ { "from": "system", "value": "Support gameon-id header while we transition to new auth.." }, { "from": "human", "value": "package org.gameon.map.filter;\n\nimport java.io.IOException;\n\nimport javax.servlet.Filter;\nimport javax.servlet.FilterChain;\nimport javax.servlet.FilterConfig;\nimport j...
java
chosen
[ { "from": "system", "value": "Set a max length for worksheet name\n" }, { "from": "human", "value": "/*\n * To change this template, choose Tools | Templates\n * and open the template in the editor.\n */\npackage edu.isi.karma.imp;\n\nimport java.io.IOException;\n\nimport org.json.JSONException;...
java
chosen
[ { "from": "system", "value": "Fix bug with scrollbar in TB10\n" }, { "from": "human", "value": "package gui.sub_controllers;\n\nimport gui.GraphDrawer;\nimport javafx.beans.value.ChangeListener;\nimport javafx.beans.value.ObservableValue;\nimport javafx.scene.control.ScrollBar;\n\n/**\n * Create...
java
chosen
[ { "from": "system", "value": "Fix string representation of kinds" }, { "from": "human", "value": "package org.monospark.actioncontrol.kind;\n\nimport org.monospark.actioncontrol.kind.matcher.KindMatcher;\n\npublic abstract class Kind implements KindMatcher {\n\n\tprivate String name;\n\t\n\tpriv...
java
chosen
[ { "from": "system", "value": "Make package private methods public\n" }, { "from": "human", "value": "package de.flux.playground.deckcompare;\n\nimport java.io.File;\n\nimport org.springframework.boot.CommandLineRunner;\nimport org.springframework.boot.SpringApplication;\nimport org.springframewo...
java
chosen
[ { "from": "system", "value": "Stop stripping out the Server header from response from origins. Should overwrite this in a zuul filter if we don't want to use the Server header from origin, rather than removing it by default.\n" }, { "from": "human", "value": "package com.netflix.zuul.util;\n\nim...
java
chosen
[ { "from": "system", "value": "Test polygon indexing using state polys & bbox queries. Fails right now.\n" }, { "from": "human", "value": "package org.googlecode.lucene.spatial.strategy.prefix;\n\nimport com.googlecode.lucene.spatial.base.context.JtsSpatialContext;\nimport org.apache.lucene.spat...
java
chosen
[ { "from": "system", "value": "Update to latest Google Play Services APIs" }, { "from": "human", "value": "/*\n * Copyright 2014 Kevin Quan (kevin.quan@gmail.com)\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": "Fix bug where two primitives use the same name\n" }, { "from": "human", "value": "package org.spoofax.interpreter.library.ssl;\n\nimport io.usethesource.capsule.Set;\n\nimport org.spoofax.interpreter.core.IContext;\nimport org.spoofax.interpreter.library.AbstractPri...
java
chosen
[ { "from": "system", "value": "Add some temporary debug logging to figure out test failures\n" }, { "from": "human", "value": "package org.jboss.as.test.integration.ee.appclient.basic;\n\nimport java.util.concurrent.CountDownLatch;\nimport java.util.concurrent.TimeUnit;\n\nimport javax.ejb.Concur...
java
chosen
[ { "from": "system", "value": "Add the first round of handling code.\n" }, { "from": "human", "value": "package org.csstudio.opibuilder.adl2boy.translator;\n\nimport org.csstudio.opibuilder.model.AbstractWidgetModel;\nimport org.csstudio.utility.adlparser.fileParser.ADLWidget;\nimport org.eclipse...
java
chosen
[ { "from": "system", "value": "Update null handling for enabledTemplates and excludedServiceIds\n" }, { "from": "human", "value": "package com.hubspot.baragon.service.config;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\nimport javax.validation.constraints.NotNull;\n\nimport com.faste...
java
chosen
[ { "from": "system", "value": "Add a way to get all the users with a specific role.\n" }, { "from": "human", "value": "package com.kaviju.accesscontrol.model;\n\nimport org.apache.log4j.Logger;\n\n@SuppressWarnings(\"serial\")\npublic class KAAccessListItem extends com.kaviju.accesscontrol.model....
java
chosen
[ { "from": "system", "value": "Update app module with bundle tag\n" }, { "from": "human", "value": "package me.mattlogan.pancakes;\n\nimport android.support.v7.app.AppCompatActivity;\nimport android.os.Bundle;\nimport android.util.Log;\nimport android.view.ViewGroup;\n\nimport me.mattlogan.librar...
java
chosen
[ { "from": "system", "value": "Rename the autoconfigured AmazonS3 bean\n\n- to avoid conflict with spring cloud aws messaging\n\nFixes #622\n" }, { "from": "human", "value": "package internal.org.springframework.content.s3.boot.autoconfigure;\n\nimport org.springframework.boot.autoconfigure.AutoC...
java
chosen
[ { "from": "system", "value": "Add methods to add and remove a project from a repository" }, { "from": "human", "value": "/*******************************************************************************\n * Copyright (c) 2014 Codenvy, S.A.\n * All rights reserved. This program and the accompanyin...
java
chosen
[ { "from": "system", "value": "Add types to partitioner SPI.\n" }, { "from": "human", "value": "/*\n * Copyright 2014 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 the License.\n * ...
java
chosen
[ { "from": "system", "value": "Add method to count filled bytes\n\nCalculate the sum of element's filledBytes().\n" }, { "from": "human", "value": "package net.ihiroky.niotty.buffer;\n\nimport java.util.ArrayDeque;\nimport java.util.Deque;\nimport java.util.Iterator;\n\n/**\n * @author Hiroki Ito...
java
chosen
[ { "from": "system", "value": "Make watching provider the default\n" }, { "from": "human", "value": "package org.ndgf.endit;\n\nimport org.dcache.pool.nearline.spi.NearlineStorage;\nimport org.dcache.pool.nearline.spi.NearlineStorageProvider;\n\npublic class EnditNearlineStorageProvider implement...
java
chosen
[ { "from": "system", "value": "Allow for destination file in mock endpoint\n" }, { "from": "human", "value": "package com.llnw.storage.client;\n\nimport com.google.common.collect.Lists;\nimport com.llnw.storage.client.io.ActivityCallback;\n\nimport javax.annotation.Nullable;\n\nimport java.io.Fil...
java
chosen
[ { "from": "system", "value": "Fix for defect 34612 where we need to check the verification level death date code to determine if the record should be suppressed\n" }, { "from": "human", "value": "package uk.gov.dvla.domain;\n\nimport com.google.code.morphia.annotations.Embedded;\nimport com.goog...
java
chosen
[ { "from": "system", "value": "Exclude /actuator/health from the authenticated resources\n" }, { "from": "human", "value": "package com.rbmhtechnology.apidocserver.security;\n\nimport static org.springframework.boot.test.context.SpringBootTest.WebEnvironment.RANDOM_PORT;\nimport static org.spring...
java
chosen
[ { "from": "system", "value": "Add non functional helper methods to turn null Strings in to empty strings and null or empty lists into empty strings.\n" }, { "from": "human", "value": "package uk.ac.ebi.quickgo.annotation.download.converter.helpers;\n\nimport java.util.function.Function;\n\n/**\n...
java
chosen
[ { "from": "system", "value": "Replace anonymous class with lambda.\n" }, { "from": "human", "value": "package com.tinkerpop.gremlin.structure.util.batch.cache;\n\n/**\n * @author Matthias Broecheler (http://www.matthiasb.com)\n * @author Stephen Mallette (http://stephen.genoprime.com)\n */\npubl...
java
chosen
[ { "from": "system", "value": "Reduce deprecation suppression scope to specific statement\n" }, { "from": "human", "value": "package com.wkovacs64.mtorch;\n\nimport android.os.Bundle;\nimport android.preference.PreferenceActivity;\nimport android.util.Log;\n\npublic class SettingsActivity extends...
java
chosen
[ { "from": "system", "value": "Set attributes when network change event occurs\n" }, { "from": "human", "value": "package info.acidflow.coverguess.broadcast.receivers;\n\nimport android.content.BroadcastReceiver;\nimport android.content.Context;\nimport android.content.Intent;\nimport android.net...
java
chosen
[ { "from": "system", "value": "PUBDEV-455: Fix DRFParametersV2, remove unused do_grpsplit argument.\n" }, { "from": "human", "value": "package hex.schemas;\n\nimport hex.tree.drf.DRF;\nimport hex.tree.drf.DRFModel.DRFParameters;\nimport water.api.API;\nimport water.api.SupervisedModelParametersSc...
java
chosen
[ { "from": "system", "value": "Add null check to format builder\n" }, { "from": "human", "value": "package uk.co.drnaylor.minecraft.hammer.bukkit.text;\n\nimport org.bukkit.ChatColor;\nimport uk.co.drnaylor.minecraft.hammer.core.text.HammerText;\nimport uk.co.drnaylor.minecraft.hammer.core.text.H...
java
chosen
[ { "from": "system", "value": "Make sort option fields static\n" }, { "from": "human", "value": "package edu.iastate.cs.design.spec.stackexchange.request;\n\npublic class QuestionAnswersRequestData implements IStackExchangeRequestData {\n\n public final String ACTIVITY_SORT = \"activity\";\n ...
java
chosen
[ { "from": "system", "value": "Convert class to final with a private constructor vs abstracst\n\n+review REVIEW-6431\n" }, { "from": "human", "value": "/*\n * Copyright 2017 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not u...
java
chosen
[ { "from": "system", "value": "Make power of associate to right instead of left\n" }, { "from": "human", "value": "package org.twig.syntax.operator;\n\npublic class BinaryPowerOf implements Operator {\n @Override\n public Integer getPrecedence() {\n return 200;\n }\n\n @Overrid...
java
chosen
[ { "from": "system", "value": "Correct data type for sms domain definition\n" }, { "from": "human", "value": "/*\n * This program is part of the OpenLMIS logistics management information system platform software.\n * Copyright © 2013 VillageReach\n *\n * This program is free software: you can red...
java
chosen
[ { "from": "system", "value": "Rename parameter to match color component name\n\ngit-svn-id: ef215b97ec449bc9c69e2ae1448853f14b3d8f41@1648315 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "human", "value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contr...
java
chosen
[ { "from": "system", "value": "Add null check for haystack arg.\n" }, { "from": "human", "value": "package com.hubspot.baragon.agent.handlebars;\n\nimport java.io.IOException;\nimport java.util.List;\n\nimport com.github.jknack.handlebars.Options;\n\npublic class IfContainedInHelperSource {\n\n ...
java
chosen
[ { "from": "system", "value": "Add Growth Push tracking code to sample\n" }, { "from": "human", "value": "package com.growthbeat.growthbeatsample;\n\nimport android.app.Activity;\nimport android.os.Bundle;\nimport android.view.Menu;\n\nimport com.growthbeat.Growthbeat;\nimport com.growthpush.mode...
java
chosen
[ { "from": "system", "value": "Expand Date Example and add Simple Format" }, { "from": "human", "value": "/**\n * @file DateDemo.java\n * @author Valery Samovich\n * @version 1.0.0\n * @date 009/03/2014\n */\n\npackage com.valerysamovich.java.basics.date;\n\nimport java.util.Date;\n\npublic class...
java
chosen
[ { "from": "system", "value": "Add missing R class to WebView resource rewriting.\n\nWe weren't rewriting the resources for web_contents_delegate_android,\nresulting in crashes any time a resource was loaded by that component\n(e.g. popup bubbles for HTML form validation failures). Add it to the\nlist and al...
java
chosen
[ { "from": "system", "value": "Mark test with JUnit4 runner\n" }, { "from": "human", "value": "package com.google.auto.factory;\n\nimport static org.truth0.Truth.ASSERT;\n\nimport org.junit.Test;\n\nimport com.google.inject.Guice;\n\nimport dagger.ObjectGraph;\n\npublic class DependencyInjectionI...
java
chosen
[ { "from": "system", "value": "Update Config User Role Domain\n" }, { "from": "human", "value": "package com.rizki.mufrizal.belajar.oauth2.domain;\n\nimport com.fasterxml.jackson.annotation.JsonIgnore;\nimport org.hibernate.annotations.GenericGenerator;\n\nimport javax.persistence.*;\nimport java...
java
chosen
[ { "from": "system", "value": "Create bones of reminder class\n" }, { "from": "human", "value": "package com.npaduch.reminder;\n\n/**\n * Created by nolanpaduch on 5/12/14.\n */\npublic class Reminder {\n private int color;\n\n\n public int getColor() {\n return color;\n }\n\n ...
java
chosen
[ { "from": "system", "value": "Make sure our foreign keys are named.\n" }, { "from": "human", "value": "package com.wesabe.grendel.entities;\n\nimport static com.google.common.base.Objects.equal;\n\nimport java.io.Serializable;\n\nimport javax.persistence.FetchType;\nimport javax.persistence.Join...
java
chosen
[ { "from": "system", "value": "engine: Add generated serial version id for the exception\n\nChange-Id: I88e0ab80860b2e560ddb5a1804b5e946abbbfc22\nSigned-off-by: Moti Asayag <da1debb83a8e12b6e8822edf2c275f55cc51b720@redhat.com>\n" }, { "from": "human", "value": "package org.ovirt.engine.core.bll.p...
java
chosen
[ { "from": "system", "value": "Fix the device vulnerability detector for the Jar bug\n" }, { "from": "human", "value": "package com.device.vulnerability.vulnerabilities.framework.jar;\n\nimport android.content.Context;\n\nimport com.device.vulnerability.vulnerabilities.VulnerabilityTest;\n\n// ht...
java
chosen
[ { "from": "system", "value": "Add parent_uuid to the representation of location for patients.\n" }, { "from": "human", "value": "package org.msf.records.net.model;\n\n/**\n * Created by Gil on 11/10/2014.\n */\npublic class PatientLocation {\n\n public String uuid;\n public String zone;\n ...
java
chosen
[ { "from": "system", "value": "Disable the effects in the config by default\n" }, { "from": "human", "value": "package com.hea3ven.twintails.conf;\n\nimport java.io.File;\nimport java.util.List;\n\nimport com.hea3ven.twintails.TwinTailsMod;\n\nimport net.minecraftforge.common.config.ConfigElement...
java
chosen
[ { "from": "system", "value": "Add FIXME note in recursive reduction rule node.\n" }, { "from": "human", "value": "package org.metaborg.meta.lang.dynsem.interpreter.nodes.rules;\n\nimport org.metaborg.meta.lang.dynsem.interpreter.nodes.rules.premises.Premise;\n\nimport com.oracle.truffle.api.fram...
java
chosen
[ { "from": "system", "value": "[Guice] Remove use of deprecated constants\n" }, { "from": "human", "value": "package io.cucumber.guice;\n\nimport com.google.inject.Guice;\nimport com.google.inject.Stage;\n\nimport java.util.Map;\n\nimport static java.text.MessageFormat.format;\n\nfinal class Inje...
java
chosen
[ { "from": "system", "value": "Fix link to checkout confirmation.\n" }, { "from": "human", "value": "package purchase;\n\nimport common.contexts.UserContext;\nimport common.controllers.ControllerDependency;\nimport common.models.ProductDataConfig;\nimport common.pages.SunrisePageData;\nimport io....
java
chosen
[ { "from": "system", "value": "Remove badly implemented test class from test suite." }, { "from": "human", "value": "package tools.vitruv.applications.pcmjava.tests.transformations;\n\nimport org.junit.runner.RunWith;\nimport org.junit.runners.Suite;\nimport org.junit.runners.Suite.SuiteClasses;\...
java
chosen
[ { "from": "system", "value": "Set the type of a (deletion) ValueChangedEvent to CollaborativeObject instead of null\n" }, { "from": "human", "value": "package gx.realtime.serialize;\n\nimport com.fasterxml.jackson.core.JsonParser;\nimport com.fasterxml.jackson.core.JsonProcessingException;\nimpo...
java
chosen
[ { "from": "system", "value": "Remove spam of failure to get UUID." }, { "from": "human", "value": "package mypermissions.manager;\n\nimport mypermissions.MyPermissions;\nimport mypermissions.api.IPermissionManager;\nimport mypermissions.api.command.CommandManager;\nimport mypermissions.command.C...
java
chosen
[ { "from": "system", "value": "Fix error while factoring out fade effect\n" }, { "from": "human", "value": "package com.twotoasters.jazzylistview.effects;\n\nimport android.view.View;\n\nimport com.nineoldandroids.view.ViewHelper;\nimport com.nineoldandroids.view.ViewPropertyAnimator;\nimport com...
java
chosen
[ { "from": "system", "value": "Remove references to old-name _Gagger_ in the sample.\n" }, { "from": "human", "value": "package coffee;\n\nimport com.google.gwt.core.client.EntryPoint;\nimport com.google.gwt.core.shared.GWT;\nimport com.google.gwt.dom.client.Document;\nimport com.google.gwt.event...
java
chosen
[ { "from": "system", "value": "Revert \"Remove unnecessary method overrides\"\n\nThis reverts commit 02c3141\n\nWhoops, it was necessary!\n" }, { "from": "human", "value": "package com.btk5h.skriptmirror.skript;\n\nimport ch.njol.skript.Skript;\nimport ch.njol.skript.lang.ExpressionType;\nimport ...
java
chosen
[ { "from": "system", "value": "Simplify to use a void system instead\n" }, { "from": "human", "value": "package starpunk.logic.systems;\n\nimport com.artemis.Aspect;\nimport com.artemis.ComponentMapper;\nimport com.artemis.Entity;\nimport com.artemis.EntitySystem;\nimport com.artemis.annotations....
java
chosen
[ { "from": "system", "value": "Revert \"Print \"Geschaeftsprozessmodelle\" when 'l' has been pressed\"\n\nThis reverts commit d8b19a1f8486ea6259783d2be898e11cc9ed48c4.\n" }, { "from": "human", "value": "package rogue.creature;\n\nimport java.util.Collection;\nimport jade.fov.RayCaster;\nimport ja...
java
chosen
[ { "from": "system", "value": "Add ListUtilsTest to Core Suite\n" }, { "from": "human", "value": "package jpower.core.test;\n\nimport org.junit.runner.RunWith;\nimport org.junit.runners.Suite;\n\n@RunWith(Suite.class)\n@Suite.SuiteClasses({\n AlphabetTest.class,\n ConditionTest.clas...
java
chosen
[ { "from": "system", "value": "Allow ManyToMany relationship sapce_people until better solution\n" }, { "from": "human", "value": "package com.parrit.entities;\n\nimport javax.persistence.*;\nimport java.util.Collection;\n\n@Entity\npublic class Space {\n\n @Id\n @GeneratedValue(strategy = ...
java
chosen
[ { "from": "system", "value": "Use the right graph factory" }, { "from": "human", "value": "package com.github.ferstl.depgraph;\n\nimport org.apache.maven.artifact.resolver.filter.ArtifactFilter;\nimport org.apache.maven.plugins.annotations.LifecyclePhase;\nimport org.apache.maven.plugins.annotat...
java
chosen
[ { "from": "system", "value": "Remove useless catch case that wouldn't happen under normal operation.\n" }, { "from": "human", "value": "package moe.tristan.easyfxml.api;\n\nimport moe.tristan.easyfxml.util.Resources;\nimport moe.tristan.easyfxml.util.Stages;\n\nimport javafx.stage.Stage;\n\nimpo...
java
chosen
[ { "from": "system", "value": "Add recipe for deluxe cheeseburger\n" }, { "from": "human", "value": "package net.shadowfacts.foodies.recipe;\n\nimport cpw.mods.fml.common.registry.GameRegistry;\nimport net.minecraft.init.Items;\nimport net.minecraft.item.ItemStack;\nimport net.shadowfacts.foodies...
java
chosen
[ { "from": "system", "value": "Add sign counting for future use in type B length function." }, { "from": "human", "value": "/**\n * Copyright (c) 2012 by Tyson Gern\n * Licensed under the MIT License \n */\n\nimport java.util.*;\n\n/**\n * This class stores an element of a Coxeter group of rank \...
java
chosen
[ { "from": "system", "value": "[GREEN] Add code for check different discounts for different number of books.\n" }, { "from": "human", "value": "package com.flipper83.katapotter;\n\nimport java.util.List;\n\npublic class BasketCalculator {\n private static final int BOOK_PRICE = 8;\n private sta...
java
chosen
[ { "from": "system", "value": "Print \"Gesamtproduktgüte\" on any key press.\n" }, { "from": "human", "value": "package rogue.creature;\n\nimport java.util.Collection;\nimport jade.fov.RayCaster;\nimport jade.fov.ViewField;\nimport jade.ui.Camera;\nimport jade.ui.Terminal;\nimport jade.util.datat...
java
chosen