conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Add method for finding grammarText using inflectionMethod\n" }, { "from": "human", "value": "package se.kits.gakusei.content.repository;\n\nimport org.springframework.data.repository.CrudRepository;\nimport se.kits.gakusei.content.model.GrammarText;\n\npublic interf...
java
chosen
[ { "from": "system", "value": "Add transformation in the pipeline according to their position\n" }, { "from": "human", "value": "package x2x.translator.xcodeml.transformation;\n\nimport java.util.ArrayList;\n\nimport x2x.translator.xcodeml.xelement.XcodeProg;\nimport x2x.translator.xcodeml.transf...
java
chosen
[ { "from": "system", "value": "Handle Android RN 0.47 breaking change\n\nhttps://github.com/facebook/react-native/commit/ce6fb337a146e6f261f2afb564aa19363774a7a8" }, { "from": "human", "value": "package com.novadart.reactnativenfc;\n\nimport com.facebook.react.ReactPackage;\nimport com.facebook.r...
java
chosen
[ { "from": "system", "value": "Rename property in case it ever becomes more general than Redis\n" }, { "from": "human", "value": "/*\n * Copyright 2014-2015 Hewlett-Packard Development Company, L.P.\n * Licensed under the MIT License (the \"License\"); you may not use this file except in complian...
java
chosen
[ { "from": "system", "value": "Add ErrorType refer to issue\n" }, { "from": "human", "value": "package com.uxxu.konashi.lib;\n\nimport info.izumin.android.bletia.BletiaErrorType;\n\n/**\n * Created by izumin on 9/16/15.\n */\npublic enum KonashiErrorType implements BletiaErrorType{\n INVALID_P...
java
chosen
[ { "from": "system", "value": "Fix pattern scenario loader test\n" }, { "from": "human", "value": "package website.automate.jwebrobot.loader;\n\nimport org.junit.Test;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport website.automate.jwebrobot.AbstractTest;\nimport website....
java
chosen
[ { "from": "system", "value": "Add protection for zero-length array.\n" }, { "from": "human", "value": "package io.macintosh.scratch.params;\n\npublic class MyMath {\n\n\tpublic int sum(int[] vals) {\n\t\tint sum = 0;\n\t\tfor(int val : vals) {\n\t\t\tsum += val;\n\t\t}\n\t\treturn sum;\n\t}\n\n\...
java
chosen
[ { "from": "system", "value": "Drop main function as we are moving to Junit.\n" }, { "from": "human", "value": "package sorting;\n \nimport java.util.Comparator;\n\npublic class StupidSort {\n public static void main(String[] args) {\n\tComparator<Integer> ascending = new Comparator<Integer>...
java
chosen
[ { "from": "system", "value": "Implement OPTIONS verb API handler\n" }, { "from": "human", "value": "/*\n * Copyright 2015 Anton Tananaev (anton.tananaev@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 th...
java
chosen
[ { "from": "system", "value": "Fix sleeping database connection bug\n" }, { "from": "human", "value": "/*\n * To change this license header, choose License Headers in Project Properties.\n * To change this template file, choose Tools | Templates\n * and open the template in the editor.\n */\npack...
java
chosen
[ { "from": "system", "value": "CHM-57: Add no-params constructor to fix data file read issue.\n" }, { "from": "human", "value": "package uk.org.sappho.code.change.management.data;\n\nimport net.sf.oval.constraint.NotEmpty;\nimport net.sf.oval.constraint.NotNull;\n\npublic class ChangedFile {\n\n ...
java
chosen
[ { "from": "system", "value": "[SMALLFIX] Add import statement to make link in Java doc workable\n\nAdd import statement to make link in Java doc workable\n\npr-link: Alluxio/alluxio#12982\nchange-id: cid-b74e33f50b1ecfa5d859b2ce3a78929474c81e34" }, { "from": "human", "value": "/*\n * The Alluxio...
java
chosen
[ { "from": "system", "value": "Fix logger for java 1.6\n" }, { "from": "human", "value": "import java.io.BufferedWriter;\nimport java.io.FileWriter;\nimport java.io.IOException;\nimport java.io.PrintWriter;\n\n\npublic class Logger {\n\tprivate String filename;\n\n\tLogger(String filename) {\n\t\...
java
chosen
[ { "from": "system", "value": "Add method to get complete Authorization Header for adorsys\n" }, { "from": "human", "value": "package de.fau.amos.virtualledger.server.auth;\n\nimport org.keycloak.KeycloakPrincipal;\nimport org.keycloak.KeycloakSecurityContext;\nimport org.keycloak.representations...
java
chosen
[ { "from": "system", "value": "Fix bug removing FILE: from ccache name.\n" }, { "from": "human", "value": "// vim:shiftwidth=4:tabstop=4:expandtab\n\nimport sun.security.krb5.PrincipalName;\nimport sun.security.krb5.internal.ccache.FileCredentialsCache;\n\npublic class kwho {\n public static v...
java
chosen
[ { "from": "system", "value": "fix(expressions): Whitelist `DayOfWeek` enum for expressions\n" }, { "from": "human", "value": "/*\n * Copyright 2017 Netflix, 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 L...
java
chosen
[ { "from": "system", "value": "Add test for privileged private method lookup failure\n" }, { "from": "human", "value": "package uk.co.littlemike.jextend.impl.jdk;\n\nimport org.junit.Test;\n\npublic class MethodLookupTest {\n\n private void privateMethod() {\n }\n\n @Test(expected = Meth...
java
chosen
[ { "from": "system", "value": "Read the correct package name\n\nWe can't read the package name from the cordova interface since that is in the\norg.apache.cordova package. Instead, we get it from the cordova activity. So as\nlong as the new screen is in the same package as the cordova activity, we are\nfine....
java
chosen
[ { "from": "system", "value": "Fix name with '_' in them being blank." }, { "from": "human", "value": "package com.brysonm.uconomy;\n\nimport org.apache.commons.lang.StringUtils;\nimport org.bukkit.Material;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class ItemUtils {\n\n ...
java
chosen
[ { "from": "system", "value": "Add constructors to main class\n" }, { "from": "human", "value": "package com.alexrnl.jbetaseries;\n\nimport java.util.logging.Logger;\n\n/**\n * Entry point of the interface to the BetaSeries API.<br />\n * @author Alex\n */\npublic class JBetaSeries {\n\t/** Logge...
java
chosen
[ { "from": "system", "value": "Use Apache Commons Base64 library instead of sun.misc.BASE64\n\nThis will enable use on Android" }, { "from": "human", "value": "/*\n * To change this template, choose Tools | Templates\n * and open the template in the editor.\n */\npackage jxfdl.utils;\n\nimport ja...
java
chosen
[ { "from": "system", "value": "Remove unused Key.make for Hadoop FileStatus.\n" }, { "from": "human", "value": "package water.fvec;\n\nimport java.io.File;\n\nimport org.apache.hadoop.fs.FileStatus;\n\nimport water.*;\nimport water.persist.PersistHdfs;\nimport water.persist.PersistNFS;\n\n// A di...
java
chosen
[ { "from": "system", "value": "Add isVisible and isAlive attributs with getters and setters.\n" }, { "from": "human", "value": "package Entities;\n\nimport org.jsfml.graphics.Sprite;\n\n/**\n * Created by steven on 10/10/14.\n */\npublic abstract class GameBaseEntity extends Sprite{\n\n // Ang...
java
chosen
[ { "from": "system", "value": "Remove method which went away.\n" }, { "from": "human", "value": "package com.hp.autonomy.frontend.find.configuration;\n\nimport com.fasterxml.jackson.databind.ObjectMapper;\nimport com.hp.autonomy.frontend.configuration.AbstractAuthenticatingConfigFileService;\nimp...
java
chosen
[ { "from": "system", "value": "Reduce max heap from 512m to 384m\n" }, { "from": "human", "value": "// Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\npackage com.yahoo.vespa.model.admin;\n\nimport com.yahoo.config.model.deploy.Deploy...
java
chosen
[ { "from": "system", "value": "[COLAB-2348] Add bio to member CSV export\n" }, { "from": "human", "value": "package org.xcolab.view.pages.members.users.utils;\n\nimport org.xcolab.client.members.pojo.Member;\nimport org.xcolab.view.util.CsvResponseWriter;\n\nimport java.io.IOException;\nimport ja...
java
chosen
[ { "from": "system", "value": "Add addServiceUrl attribute to result from findServices and findAllServices\n" }, { "from": "human", "value": "/*\n * Copyright (C) 2013 ickStream GmbH\n * All rights reserved\n */\n\npackage com.ickstream.protocol.service.core;\n\npublic class ServiceResponse {\n ...
java
chosen
[ { "from": "system", "value": "Add URLs for POSTs that lead to Actions.\n" }, { "from": "human", "value": "package app.util;\n\n/**\n * Created by james on 11/25/16.\n */\npublic class Path {\n\n public static final String STATIC = \"/public\";\n\n public static class Web {\n public ...
java
chosen
[ { "from": "system", "value": "Remove redundant imports and logging\n" }, { "from": "human", "value": "package com.springapp.batch;\n\nimport com.springapp.batch.bo.BookEntry;\nimport org.joda.time.DateTime;\nimport org.joda.time.Days;\nimport org.junit.Assert;\nimport org.junit.Test;\nimport org...
java
chosen
[ { "from": "system", "value": "Increase timeout to avoid Travis issue.\n" }, { "from": "human", "value": "package controllers;\n\nimport io.sphere.sdk.categories.Category;\nimport io.sphere.sdk.categories.queries.CategoryQuery;\nimport io.sphere.sdk.queries.PagedQueryResult;\nimport org.junit.Tes...
java
chosen
[ { "from": "system", "value": "Add error and sent directory identifiers" }, { "from": "human", "value": "package org.openas2.message;\r\n\r\npublic interface FileAttribute { \r\n\tpublic static final String MA_FILEPATH = \"filepath\";\r\n\tpublic static final String MA_FILENAME = \"filename\"...
java
chosen
[ { "from": "system", "value": "Add method to obtain max compressed length\n" }, { "from": "human", "value": "/*\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n ...
java
chosen
[ { "from": "system", "value": "Add the application that load fund data in the database." }, { "from": "human", "value": "package cl.fatman.capital.fund;\n\n/**\n * Hello world!\n *\n */\npublic class App \n{\n public static void main( String[] args )\n {\n System.out.println( \"Hello...
java
chosen
[ { "from": "system", "value": "Add constructor for dummy runner\n" }, { "from": "human", "value": "package edu.kit.ipd.crowdcontrol.objectservice.rest.resources;\n\nimport org.junit.runner.Description;\nimport org.junit.runner.Runner;\nimport org.junit.runner.notification.RunNotifier;\n\n/**\n * ...
java
chosen
[ { "from": "system", "value": "Use try-with-resources to close as application code should.\n" }, { "from": "human", "value": "package com.paritytrading.nassau.binaryfile;\n\nimport static com.paritytrading.nassau.binaryfile.BinaryFILEStatus.*;\nimport static java.util.Arrays.*;\nimport static org...
java
chosen
[ { "from": "system", "value": "Switch to interface to avoid code coverage issue.\n" }, { "from": "human", "value": "package com.greghaskins.spectrum;\n\nimport static com.greghaskins.spectrum.Spectrum.describe;\nimport static com.greghaskins.spectrum.Spectrum.fdescribe;\nimport static com.greghas...
java
chosen
[ { "from": "system", "value": "Add logger for uncatched exceptions\n" }, { "from": "human", "value": "package eu.europa.esig.dss.web.controller;\n\nimport javax.servlet.http.HttpServletRequest;\n\nimport org.springframework.core.annotation.AnnotationUtils;\nimport org.springframework.web.bind.ann...
java
chosen
[ { "from": "system", "value": "Tweak tests bases on observations\n" }, { "from": "human", "value": "package dk.ekot.misc;\n\nimport org.junit.Test;\n\nimport static org.junit.Assert.*;\n\n/*\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file exce...
java
chosen
[ { "from": "system", "value": "Set test width/height via attributes\n" }, { "from": "human", "value": "package com.snowble.android.verticalstepper;\n\nimport android.app.Activity;\n\nimport org.robolectric.Robolectric;\n\npublic class RobolectricTestUtils {\n\n public static VerticalStepper.L...
java
chosen
[ { "from": "system", "value": "Add a nice log to the game\n" }, { "from": "human", "value": "package li.seiji.minichess;\n\nimport li.seiji.minichess.move.Move;\nimport li.seiji.minichess.player.IPlayer;\n\npublic class Game {\n\n private Board state = new Board();\n private IPlayer white;\...
java
chosen
[ { "from": "system", "value": "Add tests for View Command\n" }, { "from": "human", "value": "package guitests;\n\nimport static org.junit.Assert.assertEquals;\n\nimport java.util.Set;\n\nimport org.junit.Test;\n\nimport javafx.scene.Node;\nimport javafx.scene.control.TitledPane;\n\npublic class V...
java
chosen
[ { "from": "system", "value": "Simplify get AdminUserDetails from nullable UserDetails\n" }, { "from": "human", "value": "package com.drumonii.loltrollbuild.api.admin;\n\nimport com.drumonii.loltrollbuild.api.status.BadRequestException;\nimport com.drumonii.loltrollbuild.security.AdminUserDetails...
java
chosen
[ { "from": "system", "value": "Add comment explaining the version\n" }, { "from": "human", "value": "/**\n * Copyright 2016 Palantir Technologies\n *\n * Licensed under the BSD-3 License (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a c...
java
chosen
[ { "from": "system", "value": "Fix the analyzer build due to command refactoring" }, { "from": "human", "value": "/**\r\n * Get more info at : www.jrebirth.org .\r\n * Copyright JRebirth.org © 2011-2013\r\n * Contact : sebastien.bordes@jrebirth.org\r\n * \r\n * Licensed under the Apache License, ...
java
chosen
[ { "from": "system", "value": "Add support converter configuration for database\n" }, { "from": "human", "value": "/*\nCopyright 2015-2017 Artem Stasiuk\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may ...
java
chosen
[ { "from": "system", "value": "Update defaults for command logging.\n\nBased on the number of support requests, it makes sense that the command block and other sources logging are disabled." }, { "from": "human", "value": "/*\n * This file is part of Nucleus, licensed under the MIT License (MIT)....
java
chosen
[ { "from": "system", "value": "Add RFC5005 link relations for feed paging\n\nfor further information you can refer yourself to this RFC :\nhttps://tools.ietf.org/html/rfc5005 and IANA relations listing\nhttp://www.iana.org/assignments/link-relations/link-relations.xhtml\n" }, { "from": "human", "...
java
chosen
[ { "from": "system", "value": "Include valueName in results for consistency with other converters\n" }, { "from": "human", "value": "/**\n * Copyright (C) 2011 - present by OpenGamma Inc. and the OpenGamma group of companies\n *\n * Please see distribution for license.\n */\npackage com.opengamma...
java
chosen
[ { "from": "system", "value": "Fix allowing/rejecting application access through ui\n" }, { "from": "human", "value": "package com.intuso.housemate.web.client.bootstrap.widget.application.instance;\n\nimport com.intuso.housemate.web.client.bootstrap.extensions.CommandToggleSwitch;\nimport com.int...
java
chosen
[ { "from": "system", "value": "Revert \"Change Helper to Singleton Class\"\n\nThis reverts commit 9a597a0cbfc00478ff312f3a5590ca9273e5ba0e.\n" }, { "from": "human", "value": "package zero.zd.zquestionnaire;\n\n\nimport java.util.ArrayList;\n\nimport zero.zd.zquestionnaire.model.QnA;\n\n/**\n * He...
java
chosen
[ { "from": "system", "value": "Fix broken tiles (dev bug only).\n" }, { "from": "human", "value": "package com.carpentersblocks.entity.item;\n\nimport net.minecraft.entity.Entity;\nimport net.minecraft.entity.player.EntityPlayer;\nimport net.minecraft.nbt.NBTTagCompound;\nimport net.minecraft.wor...
java
chosen
[ { "from": "system", "value": "Read port from environment variable or system property\n" }, { "from": "human", "value": "package com.skogsrud.halvard.sparkjava.spike;\n\nimport com.fasterxml.jackson.databind.ObjectMapper;\n\nimport static spark.Spark.before;\nimport static spark.SparkBase.port;\n...
java
chosen
[ { "from": "system", "value": "Add 'final' in a few places\n" }, { "from": "human", "value": "{{java_copyright}}\npackage {{reversed_domain}};\n\nimport java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.List;\n\nfinal class Container\n{\n public Container()\n {\n }\n\...
java
chosen
[ { "from": "system", "value": "Fix warning ActionBarActivity is deprecated. Replace ActionBarActivity from new project template with AppCompatActivity.\n\nReferences\nhttp://stackoverflow.com/questions/29890530/actionbaractivity-is-deprecated-android-studio?rq=1\nhttp://android-developers.blogspot.com/2015/0...
java
chosen
[ { "from": "system", "value": "Revert \"Use composed annotation for readability\"\n\nThis reverts commit a5d03f60e8ee9c33dc22da29615a6ae86c9bf6e4.\n" }, { "from": "human", "value": "package ee.tuleva.onboarding.auth.session;\n\nimport java.io.Serial;\nimport java.io.Serializable;\nimport java.uti...
java
chosen
[ { "from": "system", "value": "Make sure Spring config provides both constructors\n\ngit-svn-id: 3d1f0b8d955af71bf8e09c956c180519124e4717@26448 2c54a935-e501-0410-bc05-97a93f6bca70\n" }, { "from": "human", "value": "package com.atlassian.plugin.spring;\n\nimport com.atlassian.plugin.osgi.containe...
java
chosen
[ { "from": "system", "value": "Change drive controls to use second joystick\n" }, { "from": "human", "value": "package org.robockets.stronghold.robot.drivetrain;\n\nimport org.robockets.stronghold.robot.OI;\nimport org.robockets.stronghold.robot.Robot;\n\nimport edu.wpi.first.wpilibj.command.Comm...
java
chosen
[ { "from": "system", "value": "Make study id types compatible\n" }, { "from": "human", "value": "package com.movisens.xs.api.models;\n\nimport javax.annotation.Generated;\n\nimport com.google.gson.annotations.Expose;\n\n@Generated(\"org.jsonschema2pojo\")\npublic class Study {\n\n\t@Expose\n\tpri...
java
chosen
[ { "from": "system", "value": "Check arguments of methods for null safety for ClassSupport\n\n#1670\n" }, { "from": "human", "value": "/*\n * Copyright 2015-2018 the original author or authors.\n *\n * All rights reserved. This program and the accompanying materials are\n * made available under t...
java
chosen
[ { "from": "system", "value": "DELETE Request for single entry\n\n* Adapted Entries class\n" }, { "from": "human", "value": "package controllers;\n\nimport helper.JsonLinker;\n\nimport java.util.List;\nimport java.util.Optional;\n\nimport models.Entry;\nimport play.mvc.Controller;\nimport play.mv...
java
chosen
[ { "from": "system", "value": "Set content-type for Qute templates in RESTEasy Reactive\n\nFixes: #25932\n" }, { "from": "human", "value": "package io.quarkus.resteasy.reactive.qute.runtime;\n\nimport static io.quarkus.resteasy.reactive.qute.runtime.Util.*;\nimport static io.quarkus.resteasy.reac...
java
chosen
[ { "from": "system", "value": "Add data holder for realm service\n" }, { "from": "human", "value": "/*\n * Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.\n *\n * WSO2 Inc. licenses this file to you under the Apache License,\n * Version 2.0 (the \"License\"); you may no...
java
chosen
[ { "from": "system", "value": "Check the initialization form a configuration\n\nSigned-off-by: Clement Escoffier <6397137e57d1f87002962a37058f2a1c76fca9db@gmail.com>\n" }, { "from": "human", "value": "package org.ow2.chameleon.core;\n\nimport org.apache.commons.io.FileUtils;\nimport org.junit.Aft...
java
chosen
[ { "from": "system", "value": "Change api to use https.\n" }, { "from": "human", "value": "package website.bloop.app.api;\r\n\r\n/**\r\n * URLs for exchanging data with the backend API\r\n */\r\n\r\npublic interface APIPath {\r\n String BASE_PATH = \"http://bloop-api.wolfd.io:8081/api/\"; //TO...
java
chosen
[ { "from": "system", "value": "Create connection with Database in java\n" }, { "from": "human", "value": "public class DatabaseConnection {\n\n}\n" }, { "from": "gpt", "value": "import java.sql.*;\nimport java.util.ArrayList;\n\npublic class DatabaseConnection {\npublic static Connect...
java
chosen
[ { "from": "system", "value": "Add link to BouncyCastle reference implementation\n" }, { "from": "human", "value": "package pdi.jwt;\n\npublic final class JwtArrayUtils {\n\n private JwtArrayUtils() {}\n\n /**\n * A constant time equals comparison - does not terminate early if\n * t...
java
chosen
[ { "from": "system", "value": "Use of peg interface in server\n" }, { "from": "human", "value": "package com.adrienbrault.jastermind.server;\n\nimport com.adrienbrault.jastermind.model.CodePeg;\n\nimport java.net.Socket;\nimport java.util.Random;\n\n/**\n * Created by IntelliJ IDEA.\n *\n * @Auth...
java
chosen
[ { "from": "system", "value": "Fix minor issues in package class\n" }, { "from": "human", "value": "package com.gitrekt.resort.model.entities;\n\nimport javax.persistence.Column;\nimport javax.persistence.Entity;\nimport javax.persistence.GeneratedValue;\nimport javax.persistence.GenerationType;\...
java
chosen
[ { "from": "system", "value": "Add the ability to retrieve the sha of the content.\n" }, { "from": "human", "value": "package org.kohsuke.github;\n\n/**\n * A Content of a repository.\n *\n * @author Alexandre COLLIGNON\n */\npublic final class GHContent {\n private GHRepository owner;\n\n ...
java
chosen
[ { "from": "system", "value": "Set time to 0 instead of 1.\n" }, { "from": "human", "value": "package org.robockets.stronghold.robot;\n\nimport org.robockets.buttonmanager.ButtonManager;\nimport org.robockets.buttonmanager.buttons.ActionButton;\nimport org.robockets.stronghold.robot.intake.Manual...
java
chosen
[ { "from": "system", "value": "Add integration test so that flyway creates schema on bamboo." }, { "from": "human", "value": "package authzserver;\n\nimport static org.junit.Assert.*;\n\npublic class AuthzServerApplicationTest {\n\n}\n" }, { "from": "gpt", "value": "package authzserve...
java
chosen
[ { "from": "system", "value": "Add a test showing HexDumpBytes is little endian (on machines which are little endian)\n" }, { "from": "human", "value": "package net.openhft.chronicle.wire;\n\nimport net.openhft.chronicle.bytes.Bytes;\nimport net.openhft.chronicle.bytes.HexDumpBytes;\nimport org.j...
java
chosen
[ { "from": "system", "value": "Switch logger to default to dynmap-specific logger" }, { "from": "human", "value": "package org.dynmap;\n\nimport java.util.logging.Level;\nimport java.util.logging.Logger;\n\npublic class Log {\n protected static Logger log = Logger.getLogger(\"Minecraft\");\n ...
java
chosen
[ { "from": "system", "value": "Remove last comma if no primary key is set\n" }, { "from": "human", "value": "package me.mrten.mysqlapi.queries;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class CreateTableQuery {\n\n private String table;\n private boolean ifNotExists =...
java
chosen
[ { "from": "system", "value": "Revert \"For platforms, we want to match ANY however\"\n\nThis reverts commit d0c2a9ca30ffb04a16f155d804d531dd31670b72.\n" }, { "from": "human", "value": "/*\nCopyright 2012 Opera Software ASA\nCopyright 2011 Software Freedom Conservancy\nCopyright 2011 WebDriver co...
java
chosen
[ { "from": "system", "value": "Add a frist DynamicAnalyzer test for casts\n" }, { "from": "human", "value": "package testclasses;\n\npublic class SimpleCastSuccess1 {\n\n public static void main(String[] args) {\n\n }\n\n /**\n * x has Type TOP, y has typ PUBLIC, return value is dynami...
java
chosen
[ { "from": "system", "value": "Fix persian name caused by encoding issue.\n" }, { "from": "human", "value": "package net.sf.jabref.logic.l10n;\n\nimport java.util.Map;\nimport java.util.TreeMap;\n\npublic class Languages {\n\n public static final Map<String, String> LANGUAGES;\n\n static {\...
java
chosen
[ { "from": "system", "value": "Change name for non CH Shortest Path\n\nit's now named \"Shortest Path Simple\" so we can test both with the same\nserver without recompiling\n" }, { "from": "human", "value": "/**\n * $$\\\\ToureNPlaner\\\\$$\n */\npackage algorithms;\n\nimport graphrep.GraphRep;\n...
java
chosen
[ { "from": "system", "value": "Update gui on receiving CLIENTLIST message\n" }, { "from": "human", "value": "package lanchat.client;\n\nimport java.io.IOException;\nimport java.util.ArrayList;\n\nimport javafx.application.Platform;\nimport lanchat.common.ServerMessage;\nimport lanchat.common.Serv...
java
chosen
[ { "from": "system", "value": "Implement first pass at JavaFX Application shim\n" }, { "from": "human", "value": "package radicalzephyr;\n\npublic class WebFX {\n\n}\n" }, { "from": "gpt", "value": "package radicalzephyr;\n\nimport java.util.ArrayList;\nimport java.util.Map;\nimport j...
java
chosen
[ { "from": "system", "value": "Update another test, trigger build\n" }, { "from": "human", "value": "package com.graphhopper.api;\n\nimport com.graphhopper.util.shapes.GHPoint;\nimport org.junit.Test;\n\nimport static junit.framework.TestCase.assertTrue;\nimport static org.junit.Assert.assertFals...
java
chosen
[ { "from": "system", "value": "Use the @RedisHash annotation instead of @KeySpace.\n\nRedis Repositories use @RedisHash to identify the repository belongs to the Redis module and to create the appropriate repository type. We now use the @RedisHash annotation instead of the previous @KeySpace annotation.\n" ...
java
chosen
[ { "from": "system", "value": "Configure Timer.\nCalculate inital delay in order to start the execution daily at 9am EST.\n" }, { "from": "human", "value": "package com.timostaudinger.dailydose.trigger;\n\n\nimport javax.servlet.ServletContextEvent;\nimport javax.servlet.ServletContextListener;\n...
java
chosen
[ { "from": "system", "value": "Use 'on duplicate key update' rather than 'replace into'\n\n'relace into' fires triggers and constraints. :(\n" }, { "from": "human", "value": "package bamboo.crawl;\n\nimport bamboo.pandas.PandasAgency;\nimport org.skife.jdbi.v2.sqlobject.Bind;\nimport org.skife.jd...
java
chosen
[ { "from": "system", "value": "Make sure there is no leak in tail calls\n\n* The JVM usually just null out firstException since it's not used later,\n but better be clear.\n" }, { "from": "human", "value": "package org.mozartoz.truffle.nodes.call;\n\nimport org.mozartoz.truffle.nodes.OzNode;\nim...
java
chosen
[ { "from": "system", "value": "Add gossip padding for 1.1\nThis puts us at 5 new states for trunk, and thus no more can be added or\nwe exceed the previous padding.\n" }, { "from": "human", "value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license...
java
chosen
[ { "from": "system", "value": "Change MODNAME to match the .info file" }, { "from": "human", "value": "package squeek.applecore;\n\nimport java.util.Locale;\n\npublic final class ModInfo\n{\n\tpublic static final String MODID = \"AppleCore\";\n\tpublic static final String MODNAME = \"Apple Core\"...
java
chosen
[ { "from": "system", "value": "Test passes for the getWord() method\n" }, { "from": "human", "value": "import java.util.ArrayList;\n\nimport org.junit.*;\nimport static org.junit.Assert.*;\n\npublic class WordTest {\n\n @Test\n public void WordObjectConstructor_instantiatesCorrectly_true() {\n ...
java
chosen
[ { "from": "system", "value": " Add final modifiers to immutable variables\n" }, { "from": "human", "value": "package jp.setchi.HitAndBlow;\n\nimport java.util.Arrays;\nimport java.util.Collections;\nimport java.util.HashSet;\nimport java.util.List;\nimport java.util.Set;\n\npublic class StringUt...
java
chosen
[ { "from": "system", "value": "Add missing services to root project (DEV-100)\n" }, { "from": "human", "value": "package sg.ncl.service;\n\nimport org.springframework.context.annotation.Configuration;\nimport org.springframework.context.annotation.Import;\n\n/**\n * @author Christopher Zhong\n */...
java
chosen
[ { "from": "system", "value": "Fix null pointer exception because of the missing value assignment." }, { "from": "human", "value": "package com.obidea.semantika.mapping.parser.r2rml;\n\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.regex.Matcher;\nimport java.util.regex.Pa...
java
chosen
[ { "from": "system", "value": "Update handler to allow new operations.\n" }, { "from": "human", "value": "package eic.beike.projectx.handlers;\n\nimport android.os.Bundle;\nimport android.os.Handler;\nimport android.os.Looper;\nimport android.os.Message;\nimport android.util.Log;\n\nimport eic.be...
java
chosen
[ { "from": "system", "value": "Use new annotation for chat library\n" }, { "from": "human", "value": "package net.engin33r.luaspigot.lua.lib;\n\nimport net.engin33r.luaspigot.lua.Function;\nimport net.engin33r.luaspigot.lua.Library;\nimport org.bukkit.Bukkit;\nimport org.bukkit.entity.Player;\nim...
java
chosen
[ { "from": "system", "value": "Use process id in log file names to distinguish between different instances of the same component.\n" }, { "from": "human", "value": "import webserver.WebServer;\n\npublic class Client {\n\n public static void main(String[] args) {\n WebServer ws = new Web...
java
chosen
[ { "from": "system", "value": "Make load balancer as fast as possible. No config is used, servers are defined in code.\n" }, { "from": "human", "value": "package sk.httpclient.app;\n\nimport com.netflix.loadbalancer.DynamicServerListLoadBalancer;\nimport com.netflix.loadbalancer.Server;\n\nimport...
java
chosen
[ { "from": "system", "value": "Add infor to base service class\n" }, { "from": "human", "value": "package com.boundary.camel.component.common;\n\n/**\n * \n * @author davidg\n *\n */\npublic class ServiceInfo {\n\t\n\tprivate ServiceStatus status;\n\tprivate String message;\n\tprivate String host...
java
chosen
[ { "from": "system", "value": "Change description for help and version\n" }, { "from": "human", "value": "package com.crowdin.cli.commands.parts;\n\nimport com.crowdin.cli.utils.MessageSource;\nimport com.crowdin.cli.utils.Utils;\nimport picocli.CommandLine;\n\nimport java.util.ResourceBundle;\n\...
java
chosen
[ { "from": "system", "value": "Add method to add custom texture" }, { "from": "human", "value": "package info.u_team.u_team_core.util;\n\nimport static net.minecraft.client.renderer.model.ModelBakery.STATE_CONTAINER_OVERRIDES;\n\nimport java.util.*;\n\nimport com.google.common.collect.*;\n\nimpor...
java
chosen
[ { "from": "system", "value": "Add /rl to command blacklist" }, { "from": "human", "value": "package protocolsupport.server.listeners;\n\nimport java.util.HashSet;\nimport java.util.Set;\n\nimport org.bukkit.event.EventHandler;\nimport org.bukkit.event.Listener;\nimport org.bukkit.event.player.Pl...
java
chosen
[ { "from": "system", "value": "Annotate correctly (@Stateless). Correct several printouts.\n" }, { "from": "human", "value": "package session;\n\nimport java.util.List;\n\nimport javax.persistence.EntityManager;\nimport javax.persistence.EntityTransaction;\nimport javax.persistence.PersistenceCon...
java
chosen