conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Update API's GSON date format to match the API spec\n" }, { "from": "human", "value": "package pro.beam.api;\n\nimport com.google.common.util.concurrent.ListeningExecutorService;\nimport com.google.common.util.concurrent.MoreExecutors;\nimport com.google.gson.Gson;\...
java
chosen
[ { "from": "system", "value": "Add helper functions for authentication and authorization\n" }, { "from": "human", "value": "package util;\n\nimport com.google.appengine.api.users.UserService;\nimport com.google.appengine.api.users.UserServiceFactory;\n\npublic class UserAuthUtil {\n public stati...
java
chosen
[ { "from": "system", "value": "Add new line at EOF\n\nSigned-off-by: Nuno Azevedo <7b5d26f0698b3f6c15a9789c87d309f80e3742b1@movvo.com>\n" }, { "from": "human", "value": "import java.io.Serializable;\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class Stat implements Serializable ...
java
chosen
[ { "from": "system", "value": "Add some helpers to shortcut converting numbers to strings\n" }, { "from": "human", "value": "package com.kickstarter.libs.utils;\n\nimport android.support.annotation.NonNull;\nimport android.support.annotation.Nullable;\n\nimport rx.functions.Func1;\n\npublic class...
java
chosen
[ { "from": "system", "value": "Fix build error on default method with Immutable.\n" }, { "from": "human", "value": "package io.digdag.spi;\n\nimport io.digdag.client.config.Config;\nimport org.immutables.value.Value;\n\n@Value.Immutable\npublic interface AuthenticatedUser\n{\n int getSiteId();...
java
chosen
[ { "from": "system", "value": "Fix for infinite recursion if Array and Any Parsers.\n" }, { "from": "human", "value": "/**\n * @license\n * Copyright 2017 The FOAM Authors. All Rights Reserved.\n * http://www.apache.org/licenses/LICENSE-2.0\n */\n\npackage foam.lib.json;\n\nimport foam.lib.parse....
java
chosen
[ { "from": "system", "value": "Simplify server start in main method\n" }, { "from": "human", "value": "\nimport java.io.IOException;\nimport java.util.HashMap;\nimport java.util.Map;\n\nimport com.sun.grizzly.http.SelectorThread;\nimport com.sun.jersey.api.container.grizzly.GrizzlyWebContainerFac...
java
chosen
[ { "from": "system", "value": "Add the interfaces from the Chronicle Engine Subscription RFC.\n" }, { "from": "human", "value": "/*\n * Copyright 2015 Higher Frequency Trading\n *\n * http://www.higherfrequencytrading.com\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n...
java
chosen
[ { "from": "system", "value": "[ENG-150] Support for partial writing of results\n" }, { "from": "human", "value": "/**\n * Copyright (C) 2009 - 2010 by OpenGamma Inc.\n *\n * Please see distribution for license.\n */\npackage com.opengamma.engine.view.calcnode;\n\n\n/**\n * \n */\npublic class Du...
java
chosen
[ { "from": "system", "value": "Update formatting of test file" }, { "from": "human", "value": "package com.madhur.uml_parser;\n\nimport junit.framework.*;\n\npublic class FacadeTest extends TestCase{\n\tpublic TestCase(String testName)\n \t{\n \tsuper( testName );\n \t}\n\tprotected ...
java
chosen
[ { "from": "system", "value": "Fix typo in doco example\n" }, { "from": "human", "value": "package readme;\n\nimport graphql.schema.DataFetcher;\nimport graphql.schema.DataFetchingEnvironment;\nimport graphql.schema.DataFetchingFieldSelectionSet;\nimport graphql.schema.SelectedField;\n\nimport ja...
java
chosen
[ { "from": "system", "value": "Implement p6bool op for JVM.\n" }, { "from": "human", "value": "package org.perl6.rakudo;\n\nimport org.perl6.nqp.runtime.ThreadContext;\nimport org.perl6.nqp.sixmodel.SixModelObject;\n\n/**\n * Contains implementation of nqp:: ops specific to Rakudo Perl 6.\n */\np...
java
chosen
[ { "from": "system", "value": "Print books on startup of biblioteca\n" }, { "from": "human", "value": "package com.twu.biblioteca;\n\nimport java.util.ArrayList;\n\npublic class BibliotecaApp {\n\n private ArrayList<Book> books;\n\n public static void main(String[] args) {\n System.o...
java
chosen
[ { "from": "system", "value": "Make first test case pass\n" }, { "from": "human", "value": "package net.gpdev.gameoflife;\n\npublic class GameOfLife {\n private Grid current;\n private Grid next;\n\n public GameOfLife(int xDim, int yDim) {\n current = new Grid(xDim, yDim);\n ...
java
chosen
[ { "from": "system", "value": "Add standard planar light model\n" }, { "from": "human", "value": "package codechicken.lib.lighting;\n\nimport net.minecraft.client.renderer.Tessellator;\nimport codechicken.lib.colour.Colour;\nimport codechicken.lib.colour.ColourRGBA;\nimport codechicken.lib.render...
java
chosen
[ { "from": "system", "value": "Use AudioSamples object as param in putAudioSamplesRx method.\n" }, { "from": "human", "value": "/*\n * Kurento Android Media: Android Media Library based on FFmpeg.\n * Copyright (C) 2011 Tikal Technologies\n *\n * This program is free software: you can redistribu...
java
chosen
[ { "from": "system", "value": "Add an argument allowing to toggle point sprites and texturing separately\n" }, { "from": "human", "value": "package com.rabenauge.gl;\r\n\r\nimport javax.microedition.khronos.opengles.GL11;\r\n\r\n/*\r\n * Wrapper class for point sprites (requires GL_OES_point_spri...
java
chosen
[ { "from": "system", "value": "Change to fit Firebase model class style\n" }, { "from": "human", "value": "package com.paperfly.instantjio.contacts;\n\nimport android.net.Uri;\n\n/**\n * Entity model that represents a contact\n */\nfinal public class Contact {\n final private String photoUri;\...
java
chosen
[ { "from": "system", "value": "Save default config before starting\n" }, { "from": "human", "value": "package com.seventh_root.atherna;\n\nimport com.seventh_root.atherna.character.AthernaCharacterManager;\nimport com.seventh_root.atherna.command.CharacterCommand;\nimport com.seventh_root.atherna...
java
chosen
[ { "from": "system", "value": "Revert \"The Aesthetically Pleasing Update (v0.25)\"\n" }, { "from": "human", "value": "package cats;\n\nimport java.awt.*;\nimport javax.swing.*;\n\npublic class WikiWiki extends JApplet{\n\t/**\n\t * \n\t */\n\tprivate static final long serialVersionUID = 1L;\n\n\...
java
chosen
[ { "from": "system", "value": "Set mining characteristics for meme ore.\n" }, { "from": "human", "value": "package net.darkmorford.btweagles.block;\n\nimport net.darkmorford.btweagles.BetterThanWeagles;\nimport net.minecraft.block.Block;\nimport net.minecraft.block.material.Material;\nimport net....
java
chosen
[ { "from": "system", "value": "Decrease number of iteration in the test.\n" }, { "from": "human", "value": "package water;\n\nimport water.api.JStack;\nimport org.junit.*;\n\npublic class JStackTest extends TestUtil {\n \n @BeforeClass public static void stall() { stall_till_cloudsize(3); }\n ...
java
chosen
[ { "from": "system", "value": "Add query param to the hello world web service\n" }, { "from": "human", "value": "package com.eyekabob;\n\nimport org.json.JSONException;\nimport org.json.JSONObject;\n\nimport javax.ws.rs.GET;\nimport javax.ws.rs.Path;\nimport javax.ws.rs.Produces;\n\n/**\n * © Cop...
java
chosen
[ { "from": "system", "value": "Patch AngularTranslateService during test to avoid odd servlet resource location behaviour\n" }, { "from": "human", "value": "package ca.intelliware.ihtsdo.mlds.search;\n\nimport java.io.File;\n\nimport org.springframework.core.io.FileSystemResourceLoader;\nimport o...
java
chosen
[ { "from": "system", "value": "Add more consistency checks for type id generation\n" }, { "from": "human", "value": "package com.fasterxml.jackson.databind.jsontype.impl;\n\nimport com.fasterxml.jackson.annotation.JsonTypeInfo;\nimport com.fasterxml.jackson.databind.BeanProperty;\nimport com.fast...
java
chosen
[ { "from": "system", "value": "Change formatting of log file to enhance readability\n" }, { "from": "human", "value": "package bakatxt.log;\n\nimport java.text.SimpleDateFormat;\nimport java.util.Date;\nimport java.util.logging.Formatter;\nimport java.util.logging.Handler;\nimport java.util.loggi...
java
chosen
[ { "from": "system", "value": "Add write(T model) method without indentation parameter\n" }, { "from": "human", "value": "package htmlflow;\n\nimport java.io.PrintStream;\n\npublic interface HtmlWriter<T>{\n\t/**\n\t * Writes into an internal PrintStream the HTML content\n\t * if this element.\n\...
java
chosen
[ { "from": "system", "value": "Align invarint check with guard\n" }, { "from": "human", "value": "package replicant;\n\nimport java.util.Objects;\nimport javax.annotation.Nonnull;\nimport javax.annotation.Nullable;\nimport static org.realityforge.braincheck.Guards.*;\n\n/**\n * A base class that ...
java
chosen
[ { "from": "system", "value": "Update API version for previous IElectricCart bugfix\n" }, { "from": "human", "value": "/*******************************************************************************\n * Copyright 2011-2014 CovertJaguar\n * \n * This work (the API) is licensed under the \"MIT\" L...
java
chosen
[ { "from": "system", "value": "Use correct sound file name\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 */\npackage wge3....
java
chosen
[ { "from": "system", "value": "Reduce allocations in ParallelGC test.\n\nFixes GC stress test mode.\n\nBug: 16406852\nChange-Id: I86c8fd7516c3f41075bca00c7d5b4dab2bb7b1d4\n" }, { "from": "human", "value": "/*\n * Copyright (C) 2011 The Android Open Source Project\n *\n * Licensed under the Apache...
java
chosen
[ { "from": "system", "value": "Move sv.close as it causes trouble when Brainfuck tries to read\n" }, { "from": "human", "value": "package dk.dtu.brainfuckcomp;\n\nimport java.util.Scanner;\n\npublic class Main {\n\n\tprivate static final String HELLO = \"++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>...
java
chosen
[ { "from": "system", "value": "Add a comment for consistency\n" }, { "from": "human", "value": "package com.rabenauge.parandroid;\r\n\r\nimport android.app.Activity;\r\nimport com.rabenauge.demo.*;\r\nimport com.rabenauge.gl.*;\r\nimport javax.microedition.khronos.opengles.GL11;\r\n\r\npublic cla...
java
chosen
[ { "from": "system", "value": "Update java game template for RoboVM 0.0.11\n" }, { "from": "human", "value": "package {{package}};\n\nimport org.robovm.cocoatouch.foundation.NSAutoreleasePool;\nimport org.robovm.cocoatouch.uikit.UIApplication;\n\nimport com.badlogic.gdx.backends.iosrobovm.IOSAppl...
java
chosen
[ { "from": "system", "value": "Refactor Javadoc on converter API\n" }, { "from": "human", "value": "/*\n * Copyright (c) OSGi Alliance (2014, 2016). All Rights Reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance wi...
java
chosen
[ { "from": "system", "value": "Add ability to vote on a request\n" }, { "from": "human", "value": "package api.requests;\n\nimport api.son.MySon;\nimport api.soup.MySoup;\n\n/**\n * The Class Request.\n * For using the API related to viewing Requests\n *\n * @author Gwindow\n */\npublic class Req...
java
chosen
[ { "from": "system", "value": "Update helper method call to unregister bundle\n" }, { "from": "human", "value": "package flyway.asdi;\n\nimport java.sql.Connection;\nimport java.util.List;\n\nimport org.flywaydb.core.api.migration.jdbc.JdbcMigration;\n\nimport fi.nls.oskari.db.BundleHelper;\nimpo...
java
chosen
[ { "from": "system", "value": "Refactor to use gdx GL instead of GL20" }, { "from": "human", "value": "package stray.util.render;\n\nimport com.badlogic.gdx.Gdx;\nimport com.badlogic.gdx.graphics.GL20;\n\npublic class StencilMaskUtil {\n\n\t/**\n\t * call this BEFORE rendering with ShapeRenderer ...
java
chosen
[ { "from": "system", "value": "Add bus registry for mod" }, { "from": "human", "value": "package info.u_team.u_team_core.util.registry;\n\nimport java.util.function.Consumer;\n\nimport net.minecraftforge.eventbus.api.IEventBus;\n\npublic class BusRegistry {\n\t\n\tpublic static void register(IEve...
java
chosen
[ { "from": "system", "value": "Move hood back down after shooting position\n" }, { "from": "human", "value": "package org.robockets.stronghold.robot.highgoalshooter;\n\nimport org.robockets.stronghold.robot.flipper.FireShooter;\nimport org.robockets.stronghold.robot.hood.MoveHood;\n\nimport edu.w...
java
chosen
[ { "from": "system", "value": "JasonLeyba: Make a test case insensitive.\n\n\n\ngit-svn-id: 4179480af2c2519a5eb5e1e9b541cbdf5cf27696@11860 07704840-8298-11de-bf8c-fd130f914ac9\n" }, { "from": "human", "value": "/*\r\nCopyright 2007-2009 WebDriver committers\r\nCopyright 2007-2009 Google Inc.\r\n\...
java
chosen
[ { "from": "system", "value": "Create reusable class to check for wifi or mobile data\n" }, { "from": "human", "value": "package com.breadwallet.tools.util;\n\nimport android.content.Context;\nimport android.net.ConnectivityManager;\nimport android.net.NetworkInfo;\n\n/**\n * Created by byfieldj ...
java
chosen
[ { "from": "system", "value": "Implement invalid input message when input is invalid\n" }, { "from": "human", "value": "package com.twu.biblioteca;\n\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\n/**\n * Created by watsonarw on 16/04/15.\n */\n...
java
chosen
[ { "from": "system", "value": "Allow more than one test class (at least for annotation reading).\n" }, { "from": "human", "value": "import java.util.*;\nimport java.lang.*;\nimport java.lang.reflect.*;\nimport java.lang.annotation.*;\n\npublic class ReadForbidden {\n\tpublic static void main(Stri...
java
chosen
[ { "from": "system", "value": "Fix detection of Nuxeo SDK folder\n" }, { "from": "human", "value": "package org.nuxeo.intellij.ui;\n\nimport com.intellij.openapi.fileChooser.FileChooser;\nimport com.intellij.openapi.fileChooser.FileChooserDescriptor;\nimport com.intellij.openapi.project.Project;\...
java
chosen
[ { "from": "system", "value": "Fix random instanciation with milliseconds as seeds\n" }, { "from": "human", "value": "package net.f4fs.util;\n\nimport java.util.Random;\n\n/**\n * RandomDevice for global usage of pseudo-random numbers.\n *\n * Usage:\n *\n * RandomDevice.INSTANCE.nextLong\n *\n ...
java
chosen
[ { "from": "system", "value": "Add arguments to clang entries.\n\nSummary:\nhttp://reviews.llvm.org/rL245036 added a new attribute to clang\ncompilation database entries, `arguments`.\n\nTest Plan:\nCI\ncreate a compilation database with clang format, see it has `arguments`\n" }, { "from": "human", ...
java
chosen
[ { "from": "system", "value": "Refactor mergeSort to more readable form\n" }, { "from": "human", "value": "package com.janosgyerik.utils.algorithm.sort;\n\npublic class MergeSort {\n\n private MergeSort() {\n // utility class, forbidden constructor\n }\n\n public static void sort(...
java
chosen
[ { "from": "system", "value": "Fix 64bit EUID conversion from String and comparing in Comparator\n" }, { "from": "human", "value": "package com.rehivetech.beeeon;\n\nimport android.text.TextUtils;\n\nimport java.util.Comparator;\n\npublic class IdentifierComparator implements Comparator<IIdentifi...
java
chosen
[ { "from": "system", "value": "Fix Exception when trying to restart hub while it is not running\n" }, { "from": "human", "value": "/**\n * \n */\npackage hudson.plugins.selenium.callables.hub;\n\nimport hudson.plugins.selenium.HubHolder;\nimport hudson.remoting.Callable;\n\n/**\n * @author Richar...
java
chosen
[ { "from": "system", "value": "Allow 0 for WAIT attribute\n\nWAIT attribute value could be used in the polling mode to make\nthe CM return the response immediately.\n" }, { "from": "human", "value": "/*\n * Copyright 2009 Mike Cumings\n *\n * Licensed under the Apache License, Version 2.0 (the \"...
java
chosen
[ { "from": "system", "value": "Use variadic args in main method\n" }, { "from": "human", "value": "/*\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\n * FOR A PARTICULAR PURPOSE ...
java
chosen
[ { "from": "system", "value": "Clean up login and signup screens to prep for functionality infusion.\n" }, { "from": "human", "value": "package com.passel;\n\nimport android.app.Activity;\nimport android.support.v7.app.ActionBarActivity;\nimport android.os.Bundle;\nimport android.view.Menu;\nimpo...
java
chosen
[ { "from": "system", "value": "Include python interpreter implementation name in rule keys\n\nReviewed By: andrewjcg\n\nfbshipit-source-id: 16e4503cb9\n" }, { "from": "human", "value": "/*\n * Copyright 2014-present Facebook, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Lice...
java
chosen
[ { "from": "system", "value": "Add a request handler lock\n\ngit-svn-id: 4e353c0944fe8da334633afc35765ef362dec675@1863 b4e469a2-07ce-4b26-9273-4d7d95a670c7\n" }, { "from": "human", "value": "package org.helioviewer.jhv.data.lock;\n\npublic class JHVEventContainerLocks {\n public static final O...
java
chosen
[ { "from": "system", "value": "Solve Insertion Sort: Part 2\n" }, { "from": "human", "value": "package hackerrank;\n\nimport java.util.Scanner;\n\n/**\n * https://www.hackerrank.com/challenges/insertionsort2\n */\npublic class InsertionSortPart2 {\n public static void insertionSortPart2(int[] ...
java
chosen
[ { "from": "system", "value": "Fix a javadoc bug: maven can't @link a producers class in javadoc for core-dagger.\n\nAlso run `mvn javadoc:jar` in the opensource tests - this happens as part of\nthe release script, but not as part of javadoc:aggregate. This should help diagnose the problem earlier on.\n\n---...
java
chosen
[ { "from": "system", "value": "Add primitive int value to enum.\n" }, { "from": "human", "value": "/*\n * Copyright (C) 2014,2015 The Cat Hive Developers.\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": "Fix translation_replace for translations dryrun\n" }, { "from": "human", "value": "package com.crowdin.cli.commands.functionality;\n\nimport com.crowdin.cli.properties.PropertiesBean;\nimport com.crowdin.cli.utils.CommandUtils;\nimport com.crowdin.cli.utils.Placehol...
java
chosen
[ { "from": "system", "value": "Use abstract classs instead of interface for static methods\n\nThis is to workaround https://github.com/janino-compiler/janino/issues/69\n" }, { "from": "human", "value": "package com.github.vlsi.mat.calcite.functions;\n\nimport org.eclipse.mat.SnapshotException;\ni...
java
chosen
[ { "from": "system", "value": "Add time complexity for zigzagArray problem\n" }, { "from": "human", "value": "/*\n Input array: 8 7 9 2 1 10\n < > < > <\n\n 7 9 2 8 1 10\n*/\n\nimport java.util.*;\nimport java.lang.*;\n\nclass Solution{\n \n public static ...
java
chosen
[ { "from": "system", "value": "Store and load methods (stubs)\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 */\n\npackage ...
java
chosen
[ { "from": "system", "value": "Use FORMAT_NUMERIC_DATE when creating relative time string\n\nThis removes casing problems when the relative time has a\nsuffix but the first part of it is the month name which\nwas previously being lower-cased." }, { "from": "human", "value": "/*\n * Copyright 2012...
java
chosen
[ { "from": "system", "value": "MONDRIAN: Fix 'enum' keyword warning in JDK 1.5.\n\n[git-p4: depot-paths = \"//open/mondrian/\": change = 3418]\n" }, { "from": "human", "value": "package javax.jmi.reflect;\n\nimport java.util.Collection;\nimport java.util.List;\n\npublic interface RefPackage exten...
java
chosen
[ { "from": "system", "value": "Fix 4->7 days week in the Care Schedule\n" }, { "from": "human", "value": "package org.motechproject.tama.api.model;\n\n/**\n * Created by IntelliJ IDEA.\n * User: rob\n * Date: 4/25/11\n * Time: 8:48 PM\n * To change this template use File | Settings | File Templat...
java
chosen
[ { "from": "system", "value": "Fix checkList problem in seq test class\n" }, { "from": "human", "value": "package com.jmonad.seq;\n\nimport com.jmonad.seq.lambda.Function;\n\nimport org.junit.Test;\n\npublic class SeqSomeTest {\n\n private Integer[] numbers = {100, 2, 3, 4, 5, 6, 7, 8, 9, 10, ...
java
chosen
[ { "from": "system", "value": "Change the ray - plane intersection function" }, { "from": "human", "value": "\npublic class Plane extends Shape\n{\n\tpublic Vector Normal ; \n\tpublic Point3D P ; \n\t\n\tfloat t ; \n\tprivate float EPS = 0.00001f ; \n\t\n\t\n\tpublic Plane(){} ; \n\t\n\tpublic Pl...
java
chosen
[ { "from": "system", "value": "Fix annotation link. EncodedPath is gone.\n" }, { "from": "human", "value": "package retrofit;\n\n/** Intercept every request before it is executed in order to add additional data. */\npublic interface RequestInterceptor {\n /** Called for every request. Add data u...
java
chosen
[ { "from": "system", "value": "Add checking if workflow-durable-task-step plugin is active\n" }, { "from": "human", "value": "package jenkins.advancedqueue;\n\n\nimport hudson.model.Job;\nimport hudson.model.Queue;\nimport jenkins.advancedqueue.sorter.ItemInfo;\nimport jenkins.advancedqueue.sorte...
java
chosen
[ { "from": "system", "value": "Allow variables when checking rules\n" }, { "from": "human", "value": "import java.util.List;\nimport java.util.ArrayList;\n\npublic class Rules {\n\tprivate static List<Fact> rules = new ArrayList<Fact>();\n\n\tpublic Rules() {\n\t}\n\n\tpublic void addRule(Fact f)...
java
chosen
[ { "from": "system", "value": "Reorder methods, change argument name\n\nSigned-off-by: Nuno Azevedo <7b5d26f0698b3f6c15a9789c87d309f80e3742b1@movvo.com>\n" }, { "from": "human", "value": "import java.rmi.Remote;\n\npublic interface MetaDataInterface extends Remote {\n // CALLS FROM STORAGE SER...
java
chosen
[ { "from": "system", "value": "Increase JVM heap for logserver-container\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.deplo...
java
chosen
[ { "from": "system", "value": "Fix Android comment and docblock typos\n\nSummary:\n:wave: Hello! Thanks for react-native, it’s a great project.\n\nI was digging into the Android implementation in _ReactAndroid_ and noticed a couple typos in the documentation. I went through and tried to fix all the typos I c...
java
chosen
[ { "from": "system", "value": "Fix TAVSERV-176; elements -> attributes in inpt description\n" }, { "from": "human", "value": "/*\n * Copyright (C) 2011 The University of Manchester\n * \n * See the file \"LICENSE.txt\" for license terms.\n */\npackage org.taverna.server.input_description;\n\nimpo...
java
chosen
[ { "from": "system", "value": "[core] FIX: Add ERROR tag to UserCOntinueEventType when aborting. This also forces pause in the UI.\n" }, { "from": "human", "value": "package org.museautomation.builtins.step.userinput;\n\nimport org.museautomation.core.*;\nimport org.museautomation.core.events.*;\...
java
chosen
[ { "from": "system", "value": "Correct module name (ord.ode4j -> org.ode4j)\n" }, { "from": "human", "value": "/*************************************************************************\n * *\n * Open Dynamics Engine, Copyright...
java
chosen
[ { "from": "system", "value": "Add method to get alerts\n" }, { "from": "human", "value": "package ch.hevs.aislab.magpie.debs.retrofit;\n\n\nimport ch.hevs.aislab.magpie.debs.model.RequestSubscriptionResult;\nimport retrofit.http.Body;\nimport retrofit.http.POST;\nimport retrofit.http.Path;\n\npu...
java
chosen
[ { "from": "system", "value": "Add the missing license header\n" }, { "from": "human", "value": "package com.woinject;\n\nimport com.google.inject.Injector;\n\n/**\n * @author <a href=\"mailto:hprange@gmail.com\">Henrique Prange</a>\n */\npublic class Interceptor {\n public static Object injec...
java
chosen
[ { "from": "system", "value": "Update huge wave zombie spawn delay.\n" }, { "from": "human", "value": "package avs.models;\n\npublic class ZombieSummoner implements Runnable{\n\tprivate Thread thread;\n\tprivate boolean isHugeWave;\n\n\tpublic ZombieSummoner(){\n\t\tthis.thread = new Thread(this)...
java
chosen
[ { "from": "system", "value": "Change the toString() name of CDM LOCAL from \"PULL\" to \"LOCAL\"\n\n\ngit-svn-id: 6ee47c8665bf46900d9baa0afb711c5b4a0eafac@3741 e2bb083e-7f23-0410-b3a8-8253ac9ef6d8\n" }, { "from": "human", "value": "package org.globus.swift.data.policy;\n\nimport java.util.List;\...
java
chosen
[ { "from": "system", "value": "feat: Create Make Up Search contract\n" }, { "from": "human", "value": "package com.moyinoluwa.makeupsearch.presentation.search;\n\n/**\n * Created by moyinoluwa on 2/8/17.\n */\n\npublic interface MakeUpSearchContract {\n}\n" }, { "from": "gpt", "value"...
java
chosen
[ { "from": "system", "value": "Remove ID from default GameObjects\n" }, { "from": "human", "value": "package net.mueller_martin.turirun;\n\nimport java.util.HashMap;\nimport java.util.ArrayList;\nimport net.mueller_martin.turirun.gameobjects.GameObject;\n\n/**\n * Created by DM on 06.11.15.\n */\...
java
chosen
[ { "from": "system", "value": "Fix header names not getting written back\n" }, { "from": "human", "value": "package water.api;\n\nimport water.Key;\nimport water.ValueArray;\n\nimport com.google.gson.JsonObject;\n\npublic class SetColumnNames extends Request {\n\n\n protected final H2OHexKey _tg...
java
chosen
[ { "from": "system", "value": "Allow creation of a no metric symptom\n" }, { "from": "human", "value": "/*\n * Copyright (c) Microsoft Corporation. All rights reserved.\n *\n * This program is made available under the terms of the MIT License.\n * See the LICENSE file in the project root for more...
java
chosen
[ { "from": "system", "value": "Use local class to determine parent loader\n" }, { "from": "human", "value": "package com.github.sormuras.bach.internal;\n\nimport static java.lang.ModuleLayer.defineModulesWithOneLoader;\nimport static java.lang.module.Configuration.resolveAndBind;\n\nimport com.gi...
java
chosen
[ { "from": "system", "value": "Change subscription name to match hbase indexer\n" }, { "from": "human", "value": "/*\n * Copyright 2012 NGDATA nv\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 ...
java
chosen
[ { "from": "system", "value": "[Fluid] Add lineMarker for template to identifier to prevent flickering\n" }, { "from": "human", "value": "package com.cedricziel.idea.fluid.codeInsight;\n\nimport com.cedricziel.idea.fluid.lang.psi.FluidFile;\nimport com.cedricziel.idea.fluid.util.FluidUtil;\nimpor...
java
chosen
[ { "from": "system", "value": "Include in the application the function to update the foment unit value." }, { "from": "human", "value": "package cl.fatman.capital.fund;\n\npublic class App \n{\n public static void main( String[] args )\n {\t\n \tController control = Controller.getInstanc...
java
chosen
[ { "from": "system", "value": "Use the method available in Java 7 instead of the one in Java 8\n\nChange-Id: I1f2dcd2420eb0b06141f15a1d99d287bdb299361\n" }, { "from": "human", "value": "// Copyright 2016 Google Inc. All Rights Reserved.\npackage com.google.copybara;\n\nimport com.google.common.tr...
java
chosen
[ { "from": "system", "value": "Improve (possibly) popup offset for horizontal seekbar\n" }, { "from": "human", "value": "package io.techery.progresshint.addition;\n\nimport android.graphics.Point;\nimport android.graphics.PointF;\nimport android.util.AttributeSet;\nimport android.view.MotionEvent...
java
chosen
[ { "from": "system", "value": "Add support for additional information when detecting entity already\nexists." }, { "from": "human", "value": "package org.ihtsdo.buildcloud.service.exception;\n\npublic class EntityAlreadyExistsException extends Exception {\n\n\tpublic EntityAlreadyExistsException(...
java
chosen
[ { "from": "system", "value": "[5726] Fix path error in thumbnail cleanup\n" }, { "from": "human", "value": "package org.sil.bloom.reader;\n\nimport android.content.Context;\nimport android.content.SharedPreferences;\nimport android.os.AsyncTask;\n\nimport java.io.File;\n\n/*\n We were storing...
java
chosen
[ { "from": "system", "value": "Update problem 32 (misunderstood the problem, doh!)\n" }, { "from": "human", "value": "package leetcode;\n\n/**\n * https://leetcode.com/problems/longest-valid-parentheses/\n */\npublic class Problem32 {\n public int longestValidParentheses(String s) {\n /...
java
chosen
[ { "from": "system", "value": "Add DWIMy String projection method\n" }, { "from": "human", "value": "package semantics.model;\n\nimport java.util.regex.Matcher;\nimport java.util.regex.Pattern;\nimport semantics.Individuals;\nimport semantics.KnowBase;\n\n\npublic final class Individual {\n priv...
java
chosen
[ { "from": "system", "value": "Fix NEI addon crashing servers\n" }, { "from": "human", "value": "package net.mcft.copy.betterstorage.addon.nei;\n\nimport net.mcft.copy.betterstorage.addon.Addon;\nimport net.mcft.copy.betterstorage.client.gui.GuiCraftingStation;\nimport net.mcft.copy.betterstorage...
java
chosen
[ { "from": "system", "value": "Add china to the countries\n" }, { "from": "human", "value": "package me.proxer.library.enums;\n\nimport com.squareup.moshi.Json;\n\n/**\n * Enum holding the available country.\n *\n * @author Ruben Gees\n */\npublic enum Country {\n @Json(name = \"de\")GERMANY,\...
java
chosen
[ { "from": "system", "value": "Add missing binding for Logging\n" }, { "from": "human", "value": "/*\n * Copyright 2010 Proofpoint, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtai...
java
chosen
[ { "from": "system", "value": "Extend custom headers from spring core headers.\n" }, { "from": "human", "value": "/*\n * Copyright 2016-2017 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...
java
chosen
[ { "from": "system", "value": "Allow for nested calls from the same class\n" }, { "from": "human", "value": "package org.jboss.modules;\n\nimport java.security.AccessController;\nimport java.security.PrivilegedAction;\n\n/**\n * Various methods for obtaining caller info.\n *\n * @author Jason T. ...
java
chosen
[ { "from": "system", "value": "Add a vararg constructor for the Tabbed Panel\n" }, { "from": "human", "value": "package lt.inventi.wicket.component.bootstrap.tab;\n\nimport java.util.List;\n\nimport org.apache.wicket.extensions.markup.html.tabs.ITab;\nimport org.apache.wicket.markup.html.WebMarku...
java
chosen