conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Add missing @Test annotation to test class\n" }, { "from": "human", "value": "/*\n * Copyright (C) 2012 Facebook, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License. You ...
java
chosen
[ { "from": "system", "value": "Mark empty object as static\n" }, { "from": "human", "value": "package com.alexstyl.specialdates.events.namedays.calendar.resource;\n\nimport com.alexstyl.specialdates.events.namedays.NamedayLocale;\n\nimport org.json.JSONArray;\nimport org.json.JSONException;\nimpo...
java
chosen
[ { "from": "system", "value": "Add handling methds to the databinder helper interface\n\n* boolean methods for whether it handles the class to speed up searching\n* handles list to map conversions as well\n" }, { "from": "human", "value": "package uk.ac.ox.ndm.grails.utils.databinding;\n\nimport ...
java
chosen
[ { "from": "system", "value": "Add \"id\" so usable with JPA or JDO application-identity" }, { "from": "human", "value": "/**********************************************************************\r\nCopyright (c) 2005 Erik Bengtson and others.\r\nLicensed under the Apache License, Version 2.0 (the ...
java
chosen
[ { "from": "system", "value": "fix: Set default header for transaction handler\n" }, { "from": "human", "value": "/**\n * Copyright (C) 2015 The Gravitee team (http://gravitee.io)\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in com...
java
chosen
[ { "from": "system", "value": "Use paint() instead of setPosition() here.\n\nsetPosition() doesn't work nicely with nested movies. Should probably\nfix that.\n" }, { "from": "human", "value": "//\n// Triple Play - utilities for use in PlayN-based games\n// Copyright (c) 2011-2013, Three Rings Des...
java
chosen
[ { "from": "system", "value": "Enforce the invariant contraints of the parent.\n" }, { "from": "human", "value": "package assignment2;\n\nimport be.ac.ua.ansymo.adbc.annotations.invariant;\n\n@invariant(\"$this.sameHeight() == true\")\npublic class PerfectBinTree extends FullBinTree {\n\n\tpublic...
java
chosen
[ { "from": "system", "value": "Project9: Add method to insert data into database\n" }, { "from": "human", "value": "package com.example.georgekaraolanis.project9_habittracker;\n\nimport android.support.v7.app.AppCompatActivity;\nimport android.os.Bundle;\n\npublic class MainActivity extends AppCo...
java
chosen
[ { "from": "system", "value": "Fix throws typo in test data class.\n" }, { "from": "human", "value": "public class Widget {\n private String prop;\n\n public Widget() {\n }\n\n public void setProp(String prop) throw Exception {\n this.prop = prop;\n }\n}\n\n" }, { "f...
java
chosen
[ { "from": "system", "value": "Append throws clause to validate() declaration\n\nOPEN - task 32: Add \"Create Item\" functionalities \nhttp://github.com/DevOpsDistilled/OpERP/issues/issue/32" }, { "from": "human", "value": "package devopsdistilled.operp.client.items.controllers;\n\nimport devopsd...
java
chosen
[ { "from": "system", "value": "Remove todo because it is implemented now\n\nGitOrigin-RevId: c3086ef8f503559f6f3c54aead0d2a526538fc5b" }, { "from": "human", "value": "package de.plushnikov.intellij.plugin.inspection;\n\nimport com.intellij.codeInspection.InspectionProfileEntry;\n\npublic class Bu...
java
chosen
[ { "from": "system", "value": "Remove LIMIT for Batch Loader\n\nLIMIT doesn't exist for SQL Server, hence we need a different method to\nget the column count for creating Batch Loader\n" }, { "from": "human", "value": "/*\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * y...
java
chosen
[ { "from": "system", "value": "Delete unused code after adding the react-native-nagivation\n" }, { "from": "human", "value": "package com.rntestproject;\n\nimport android.app.Application;\n\nimport com.facebook.react.ReactApplication;\nimport com.facebook.react.ReactNativeHost;\nimport com.facebo...
java
chosen
[ { "from": "system", "value": "Add call to WebClient on insert student AsyncTask\n" }, { "from": "human", "value": "package br.com.alura.agenda.tasks;\n\nimport android.os.AsyncTask;\n\nimport br.com.alura.agenda.converter.AlunoConverter;\nimport br.com.alura.agenda.modelo.Aluno;\nimport br.com.a...
java
chosen
[ { "from": "system", "value": "chore(engine): Improve wording in a javadoc comment\n\n" }, { "from": "human", "value": "/*\n * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH\n * under one or more contributor license agreements. See the NOTICE file\n * distributed with th...
java
chosen
[ { "from": "system", "value": "Fix test case for SLEEP statement\n" }, { "from": "human", "value": "package com.orientechnologies.orient.core.sql.executor;\n\nimport com.orientechnologies.orient.core.db.document.ODatabaseDocument;\nimport com.orientechnologies.orient.core.db.document.ODatabaseDoc...
java
chosen
[ { "from": "system", "value": "[HOPS-1152] Allow disabling Users/Groups Cache on the NN side\n" }, { "from": "human", "value": "/*\n * Copyright (C) 2015 hops.io.\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": "Add Small.preSetUp to sample application\n" }, { "from": "human", "value": "package net.wequick.example.small;\n\nimport net.wequick.small.Small;\n\n/**\n * Created by galen on 15/11/3.\n */\npublic class Application extends android.app.Application {\n @Override\...
java
chosen
[ { "from": "system", "value": "Add support for RN 0.55" }, { "from": "human", "value": "package ca.jaysoo.extradimensions;\n\nimport com.facebook.react.ReactPackage;\nimport com.facebook.react.bridge.JavaScriptModule;\nimport com.facebook.react.bridge.NativeModule;\nimport com.facebook.react.brid...
java
chosen
[ { "from": "system", "value": "Add servlet example for external redirection" }, { "from": "human", "value": "package de.asw.courses.web2016.demo.backend.servlet.redir;\n\nimport java.io.IOException;\n\nimport javax.servlet.ServletException;\nimport javax.servlet.annotation.WebServlet;\nimport jav...
java
chosen
[ { "from": "system", "value": "Add class check before attempting to find javax.persistence.Id annotation\n" }, { "from": "human", "value": "package internal.org.springframework.content.rest.utils;\n\nimport org.springframework.content.commons.utils.BeanUtils;\n\npublic final class DomainObjectUti...
java
chosen
[ { "from": "system", "value": "SB-710: Make it possible to specify custom configuration for repositories\n\nCommitting work in progress. This causes:\n\ncom.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions\n\nInvalid @XmlElementRef : Type \"class org.carls...
java
chosen
[ { "from": "system", "value": "Set autoUpdate to true if challenge is null\n\nSigned-off-by: Rafael Luis Ibasco <80d89b34d8cf04643e39f61fb924744a8cfa1566@gmail.com>\n" }, { "from": "human", "value": "/*\n * Copyright 2022-2022 Asynchronous Game Query Library\n *\n * Licensed under the Apache Lice...
java
chosen
[ { "from": "system", "value": "Add timestamp to types column info" }, { "from": "human", "value": "package nl.idgis.publisher.provider.database.messages;\r\n\r\nimport java.io.Serializable;\r\n\r\nimport nl.idgis.publisher.domain.service.Type;\r\n\r\npublic class DatabaseColumnInfo implements Ser...
java
chosen
[ { "from": "system", "value": "Remove synonyms of primitive statuses\n\nRefers #1\n" }, { "from": "human", "value": "/*\nCopyright 2015 Anton Vorobyev\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obta...
java
chosen
[ { "from": "system", "value": "Use FAIL rate-limit handler for tests\n\nShould avoid possible Thread.sleep() for tests execution.\n" }, { "from": "human", "value": "package org.kohsuke.github;\n\nimport org.junit.Assert;\nimport org.junit.Before;\nimport org.kohsuke.randname.RandomNameGenerator;\...
java
chosen
[ { "from": "system", "value": "Add method for read and write file\n" }, { "from": "human", "value": "/**\n * Project RSA Algorithm.\n * Copyright Michał Szczygieł.\n * Created at Feb 25, 2014.\n */\n\n/**\n * \n * This class is responsible for safe operations on files. This class contatin\n * the...
java
chosen
[ { "from": "system", "value": "Modify test to pass with two new DB rows\n" }, { "from": "human", "value": "package uk.ac.ebi.atlas.dao;\n\nimport org.junit.Test;\nimport org.junit.runner.RunWith;\nimport org.springframework.test.context.ContextConfiguration;\nimport org.springframework.test.conte...
java
chosen
[ { "from": "system", "value": "Modify Transactions tests into a single ordered test, as ordering of separate test methods is unpredictable\n" }, { "from": "human", "value": "package org.wildfly.swarm.it.transactions;\n\nimport org.jboss.arquillian.drone.api.annotation.Drone;\nimport org.jboss.arq...
java
chosen
[ { "from": "system", "value": "Refactor section assigment 2 problem 1\n" }, { "from": "human", "value": "public class Fibonacci {\n private static final int MAX_TERM_VALUE = 10000;\n\n public static void main(String[] args) {\n System.out.println(\"This program lists the Fibonacci se...
java
chosen
[ { "from": "system", "value": "Package Info for Mapping Model\n\n\nChange-Id: Iff30ddccf0922da06178016e5a8ba842b6a02574\nSigned-off-by: Chandan V A <bd0fd086b01161f47f837a6342dc5514038ba6c8@sap.com>\n" }, { "from": "human", "value": "@javax.xml.bind.annotation.XmlSchema(namespace = \"http://www.s...
java
chosen
[ { "from": "system", "value": "Fix Mbean interface must be public, fails validation on JDK8\n" }, { "from": "human", "value": "/*\n * JBoss, Home of Professional Open Source.\n * Copyright 2012, Red Hat, Inc., and individual contributors\n * as indicated by the @author tags. See the copyright.txt...
java
chosen
[ { "from": "system", "value": "[PLAT-2785] Tweak to time series formatting\n" }, { "from": "human", "value": "/**\n * Copyright (C) 2012 - present by OpenGamma Inc. and the OpenGamma group of companies\n *\n * Please see distribution for license.\n */\npackage com.opengamma.web.server.push.analyt...
java
chosen
[ { "from": "system", "value": "Change visibility of storage interruption manager\n" }, { "from": "human", "value": "package com.orientechnologies.orient.core.storage.impl.local;\n\nimport com.orientechnologies.common.concur.lock.OInterruptedException;\nimport com.orientechnologies.common.log.OLog...
java
chosen
[ { "from": "system", "value": "Add document menu to menu bar.\n" }, { "from": "human", "value": "package com.github.aureliano.edocs.app.gui.menu;\n\nimport javax.swing.JMenuBar;\n\npublic class MenuBar extends JMenuBar {\n\n\tprivate static final long serialVersionUID = 5179328504511930019L;\n\n\...
java
chosen
[ { "from": "system", "value": "Add implementation to problem 11\n" }, { "from": "human", "value": "/*\n * Copyright (C) 2014 Pedro Vicente Gómez Sánchez.\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 client to account for change in signature.\n\ngit-svn-id: ed609ce04ec9e3c0bc25e071e87814dd6d976548@583 c7a0535c-eda6-11de-83d8-6d5adf01d787\n" }, { "from": "human", "value": "/*\n * Mutability Detector\n *\n * Licensed under the Apache License, Version 2.0 (t...
java
chosen
[ { "from": "system", "value": "Add Escape.jcrQueryLiteral and Escape.jcrQueryContainsExpr methods.\n" }, { "from": "human", "value": "/*\n * #%L\n * wcm.io\n * %%\n * Copyright (C) 2014 wcm.io\n * %%\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this fi...
java
chosen
[ { "from": "system", "value": "Use assertNotNull instead of `if`\n" }, { "from": "human", "value": "/*\n * Copyright 2015-2016 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 Lice...
java
chosen
[ { "from": "system", "value": "Remove warning message by removing unused field\n\nOPEN - task 32: Add \"Create Item\" functionalities \nhttp://github.com/DevOpsDistilled/OpERP/issues/issue/32" }, { "from": "human", "value": "package devopsdistilled.operp.server.data.repo.items.custom.impl;\n\nimp...
java
chosen
[ { "from": "system", "value": "Fix URL to be HTTPS. \n\nrandom.org now redirects to HTTPS and we don't handle the redirect\ncorrectly, but if we start on HTTPS there is no redirect." }, { "from": "human", "value": "//\n// TrueRandom.java -- Java class TrueRandom\n// Project OrcSites\n//\n// Copyr...
java
chosen
[ { "from": "system", "value": "Fix needed trailing spaces in the license\n" }, { "from": "human", "value": "/*\n * -\\-\\-\n * Spotify Apollo okhttp Client Module\n * --\n * Copyright (C) 2013 - 2015 Spotify AB\n * --\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you m...
java
chosen
[ { "from": "system", "value": "display.pvtable: Fix tool tip of last row" }, { "from": "human", "value": "/*******************************************************************************\n * Copyright (c) 2010 Oak Ridge National Laboratory.\n * All rights reserved. This program and the accompanyi...
java
chosen
[ { "from": "system", "value": "Use old resource ID, so it's backward compatible with existing tokens.\n" }, { "from": "human", "value": "/*\n * Copyright 2014 Open mHealth\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance ...
java
chosen
[ { "from": "system", "value": "Add missing 'private' and 'public' access' modifiers, fix warnings\n" }, { "from": "human", "value": "/*\n * Copyright 2014 A.C.R. Development\n */\npackage acr.browser.lightning;\n\npublic class SettingsController {\n\n\tstatic boolean clearHistory = false;\n\n\t/*...
java
chosen
[ { "from": "system", "value": "Adjust path: If the file is assembled with the xml file into a jar file, the project structure is discarded.\n" }, { "from": "human", "value": "package io.tracee.contextlogger.jaxws.container;\n\n/**\n * This class is not directly used but exists for the users conve...
java
chosen
[ { "from": "system", "value": "Include instance load in instance creation" }, { "from": "human", "value": "/**\n * \n */\npackage jp.ac.nii.prl.mape.monitoring.service;\n\nimport org.springframework.stereotype.Service;\n\nimport jp.ac.nii.prl.mape.monitoring.model.Instance;\n\n@Service(\"instance...
java
chosen
[ { "from": "system", "value": "Reset the ConfigurationManager when testing Tenacity\n" }, { "from": "human", "value": "package com.yammer.tenacity.testing;\n\nimport com.netflix.config.ConfigurationManager;\nimport com.netflix.hystrix.Hystrix;\nimport com.netflix.hystrix.contrib.yammermetricspubl...
java
chosen
[ { "from": "system", "value": "Change name on id to see that it generates correct\n" }, { "from": "human", "value": "package net.daverix.slingerorm.sample;\n\nimport android.provider.BaseColumns;\nimport net.daverix.slingerorm.annotation.DatabaseEntity;\nimport net.daverix.slingerorm.annotation.F...
java
chosen
[ { "from": "system", "value": "Simplify existing day 1 loop\n" }, { "from": "human", "value": "package day01;\n\nimport common.BaseSolution;\nimport common.InputReader;\n\npublic class Solution extends BaseSolution implements common.Solution {\n\n public static void main(String[] args) {\n ...
java
chosen
[ { "from": "system", "value": "Set ack to all to ensure records are replicated on other kafka nodes.\n" }, { "from": "human", "value": "/**\n * Copyright 2016-2017 Sixt GmbH & Co. Autovermietung KG\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file...
java
chosen
[ { "from": "system", "value": "Cover `org.gradle.normalization` with nullability annotations\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 use this file except in c...
java
chosen
[ { "from": "system", "value": "Fix gunbanip wanting 2 arguments\n" }, { "from": "human", "value": "package com.craftminecraft.bungee.bungeeban.command;\n\nimport com.craftminecraft.bungee.bungeeban.BanManager;\n\nimport net.md_5.bungee.api.ChatColor;\nimport net.md_5.bungee.api.CommandSender;\nim...
java
chosen
[ { "from": "system", "value": "Fix trailing whitespace for checkstyle\n" }, { "from": "human", "value": "package seedu.task.storage;\n\nimport javax.xml.bind.annotation.XmlValue;\n\nimport seedu.task.commons.exceptions.IllegalValueException;\nimport seedu.task.model.tag.Tag;\n\n/**\n * JAXB-frien...
java
chosen
[ { "from": "system", "value": "Rename remaining 'shortName' refs to 'versionDisplayName'\n" }, { "from": "human", "value": "package org.springframework.site.domain.projects;\n\nimport org.junit.Test;\n\nimport static org.hamcrest.MatcherAssert.assertThat;\nimport static org.hamcrest.Matchers.equa...
java
chosen
[ { "from": "system", "value": ":art: Reformat base fragment creation file\n" }, { "from": "human", "value": "package com.example.jourdanrodrigues.controk;\n\nimport android.os.Bundle;\nimport android.view.LayoutInflater;\nimport android.view.View;\nimport android.view.ViewGroup;\nimport android.w...
java
chosen
[ { "from": "system", "value": "Remove token from session once back on the index page\n" }, { "from": "human", "value": "package controllers;\n\nimport play.mvc.Controller;\nimport play.mvc.Result;\nimport views.html.confighelper;\nimport views.html.index;\n\n/**\n * This controller contains an ac...
java
chosen
[ { "from": "system", "value": "Remove the {@literal } wrapping in the JavaDoc\n" }, { "from": "human", "value": "/*\n * Copyright 2014, Timo Westkämper\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n ...
java
chosen
[ { "from": "system", "value": "Allow to pass custom instance of Gson object\n" }, { "from": "human", "value": "/*\n * Copyright (C) 2015 Piotr Wittchen\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": "DanielWagnerHall: Use a file detector for Sauce tests\n\nr15219\n" }, { "from": "human", "value": "package org.openqa.selenium.testing.drivers;\n\nimport com.google.common.base.Supplier;\n\nimport org.openqa.selenium.Capabilities;\nimport org.openqa.selenium.WebDriv...
java
chosen
[ { "from": "system", "value": "Add delimited output file and new AuthorAbbreviatedMatcher\n\nUpdated luceneUtils.java and lucenematcher.java to output a new delimited file\nthan can be imported direct into a db. Also added new Matchers called\nAuthorAbbreviatedMatcher.java, EmptyStringMatch.java. Also added ...
java
chosen
[ { "from": "system", "value": "FEATURE/MINOR: Write generated class to a .class and run it\n" }, { "from": "human", "value": "import org.objectweb.asm.ClassWriter;\nimport org.objectweb.asm.Opcodes;\nimport org.objectweb.asm.Type;\nimport org.objectweb.asm.commons.GeneratorAdapter;\nimport org.ob...
java
chosen
[ { "from": "system", "value": "Select bot type via config" }, { "from": "human", "value": "package me.rkfg.xmpp.bot;\n\nimport me.rkfg.xmpp.bot.irc.IRCBot;\nimport ru.ppsrk.gwt.client.LogicException;\n\npublic class Main {\n\n public static final IBot INSTANCE = new IRCBot();\n\n public sta...
java
chosen
[ { "from": "system", "value": "Remove check for network roaming\n" }, { "from": "human", "value": "package org.mozilla.mozstumbler;\n\nimport android.content.Context;\nimport android.net.ConnectivityManager;\nimport android.net.NetworkInfo;\nimport android.util.Log;\n\nfinal class NetworkUtils {\...
java
chosen
[ { "from": "system", "value": "Use BytecodeScanningDetector as base class\n" }, { "from": "human", "value": "package edu.umd.cs.findbugs.detect;\n\n\nimport org.apache.bcel.classfile.CodeException;\n\nimport edu.umd.cs.findbugs.BugInstance;\nimport edu.umd.cs.findbugs.BugReporter;\nimport edu.umd...
java
chosen
[ { "from": "system", "value": "Increase iteration time a bit\n" }, { "from": "human", "value": "package forager.client;\n\nimport java.io.IOException;\n\npublic class StatusMonitor implements Runnable {\n\n int maxActive = 4;\n\n boolean online;\n\n private Forager forager;\n\n public...
java
chosen
[ { "from": "system", "value": "Add mongo hq authentication for heroku\n" }, { "from": "human", "value": "package pw.scho.battleship.persistence.configuration;\n\n\nimport com.mongodb.ServerAddress;\nimport org.mongolink.MongoSession;\nimport org.mongolink.MongoSessionManager;\nimport org.mongolin...
java
chosen
[ { "from": "system", "value": "Fix the problem with handling onClick event\n" }, { "from": "human", "value": "package io.github.droidkaigi.confsched2017.viewmodel;\n\nimport android.databinding.BaseObservable;\nimport android.support.annotation.NonNull;\n\nimport io.github.droidkaigi.confsched201...
java
chosen
[ { "from": "system", "value": "Make Google Maps use the coordinates supplied by Wikipedia app\n\nBug: T120275\nChange-Id: I7eebb4c2b4e7164cb481ea23831296d4d50a426b\n" }, { "from": "human", "value": "package org.wikipedia.util;\n\nimport android.app.Activity;\nimport android.content.ActivityNotFou...
java
chosen
[ { "from": "system", "value": "Delete byte[] method, was superfluous\n" }, { "from": "human", "value": "package com.bugielmarek.timetable.tests.utils;\n\nimport com.fasterxml.jackson.annotation.JsonInclude;\nimport com.fasterxml.jackson.core.JsonProcessingException;\nimport com.fasterxml.jackson....
java
chosen
[ { "from": "system", "value": "Remove observable service from facade\n" }, { "from": "human", "value": "package io.lithiumsheep.weatherlib;\n\nimport io.lithiumsheep.weatherlib.api.HttpClient;\nimport io.lithiumsheep.weatherlib.models.CurrentWeather;\nimport io.reactivex.Observable;\nimport io.re...
java
chosen
[ { "from": "system", "value": " Set OAuth2Template to use parameter-based client authentication (see SOCIAL-320) since Salesforce does not yet support the spec-recommended HTTP Basic client authentication.\n" }, { "from": "human", "value": "package org.springframework.social.salesforce.connect;\n...
java
chosen
[ { "from": "system", "value": "Add stub to indicate that the download has completed; this needs to be raised to the favourites activity\n" }, { "from": "human", "value": "package com.hewgill.android.nzsldict;\n\nimport android.app.DownloadManager;\nimport android.content.BroadcastReceiver;\nimpor...
java
chosen
[ { "from": "system", "value": "Add positive test for completion in the framing test" }, { "from": "human", "value": "package com.github.jsonldjava.core;\n\nimport com.github.jsonldjava.utils.JsonUtils;\nimport java.io.IOException;\nimport org.junit.Test;\nimport static org.junit.Assert.*;\n\npubl...
java
chosen
[ { "from": "system", "value": "Allow an empty attribute value to match <empty/>.\n\n\ngit-svn-id: ca8e9bb6f3f9b50a093b443c23951d3c25ca0913@390 369101cc-9a96-11dd-8e58-870c635edf7a\n" }, { "from": "human", "value": "package com.thaiopensource.relaxng;\n\nimport org.relaxng.datatype.ValidationConte...
java
chosen
[ { "from": "system", "value": "Allow to not cast ethereum Java contract\n" }, { "from": "human", "value": "package ethereumjava.solidity;\n\nimport java.lang.reflect.Method;\nimport java.lang.reflect.Proxy;\n\nimport ethereumjava.exception.EthereumJavaException;\nimport ethereumjava.module.Eth;\n...
java
chosen
[ { "from": "system", "value": "Update to support more than one color\n" }, { "from": "human", "value": "package org.rundeck.client.util;\n\nimport com.simplifyops.toolbelt.ANSIColorOutput;\n\nimport java.util.LinkedHashMap;\nimport java.util.Map;\n\n/**\n * Created by greg on 7/19/16.\n */\npubli...
java
chosen
[ { "from": "system", "value": "Add description of LetBindings and LetBinding, which were missing from document" }, { "from": "human", "value": "/**\r\n * Abstract Syntax Tree.\r\n * \r\n * <pre>\r\n * Group ::= Abbreviation* Definition*\r\n * \r\n * Definition ::= Test | FourPhaseTest | Table\r\n...
java
chosen
[ { "from": "system", "value": "Change to support name change\n" }, { "from": "human", "value": "package com.boundary.camel.component.http;\n\nimport java.util.List;\nimport java.util.concurrent.TimeUnit;\n\nimport org.apache.camel.Exchange;\nimport org.apache.camel.builder.RouteBuilder;\nimport o...
java
chosen
[ { "from": "system", "value": "Add some javadoc. Add @SafeVarags annotation. Change for loops to for each.\n" }, { "from": "human", "value": "package uk.ac.ebi.quickgo.index.annotation.coterms;\n\nimport java.util.HashMap;\nimport java.util.List;\nimport java.util.Map;\nimport java.util.concurren...
java
chosen
[ { "from": "system", "value": "WICKET-6849: Fix CSP for styling in quickstart\n" }, { "from": "human", "value": "package ${package};\n\nimport org.apache.wicket.markup.html.WebPage;\nimport org.apache.wicket.protocol.http.WebApplication;\n\n/**\n * Application object for your web application.\n *...
java
chosen
[ { "from": "system", "value": "Fix null exception when images have no visible percent properties" }, { "from": "human", "value": "package org.openforis.collect.earth.planet;\r\n\r\nimport java.util.Comparator;;\r\n\r\npublic class FeatureSorter implements Comparator<Feature>{\r\n\r\n\t@Override\r...
java
chosen
[ { "from": "system", "value": "Fix Scope (error during release)\n" }, { "from": "human", "value": "package de.hilling.cdi.sampleapp.ejb;\n\nimport de.hilling.junit.cdi.annotations.GlobalTestImplementation;\n\n@GlobalTestImplementation\npublic class JEETestConfiguration implements de.hilling.junit...
java
chosen
[ { "from": "system", "value": "Fix Logger injection in GlassFish 4\n\nSigned-off-by: Fred Bricon <3278c038c93c729ae96f0d035919e3fb69e9cff7@gmail.com>\n" }, { "from": "human", "value": "#set( $symbol_pound = '#' )\n#set( $symbol_dollar = '$' )\n#set( $symbol_escape = '\\' )\npackage ${package}.ejb...
java
chosen
[ { "from": "system", "value": "Use ApplicationManager.getApplication().acquireReadActionLock() instead of ApplicationManager.getApplication().runReadAction()\n" }, { "from": "human", "value": "package org.jetbrains.plugins.groovy.springloaded;\n\nimport com.intellij.debugger.PositionManager;\nimp...
java
chosen
[ { "from": "system", "value": "Add delay to ensure queue is created and bound.\n\nIn RabbitMQ queues are what store messsages for processing, while exchanges are what messages are sent to. If an exchange has no bound queues, in most standard cases, any messages sent to the exchange are dropped.\n\nThe \"inco...
java
chosen
[ { "from": "system", "value": "Add header comments\nRemove magic numbers\n" }, { "from": "human", "value": "package seedu.ezdo.model;\n\nimport java.util.EmptyStackException;\n//@@author A0139248X\n/*\n * Array-based implementation for a stack with fixed size. Used for undo & redo stacks.\n * If ...
java
chosen
[ { "from": "system", "value": "Create new subcontractor communication type: UPDATE_DELIVERING_DATE\n\nFEA: ItEr75S32AnA15S04UpdateDeliveringDateInSubcontracting\n" }, { "from": "human", "value": "/*\n * This file is part of LibrePlan\n *\n * Copyright (C) 2011 WirelessGalicia, S.L.\n *\n * This p...
java
chosen
[ { "from": "system", "value": "Set Animated GIFs to repeat\n" }, { "from": "human", "value": "package com.github.rtyley.android.screenshot.paparazzo.processors;\n\nimport com.madgag.gif.fmsware.AnimatedGifEncoder;\nimport java.awt.image.BufferedImage;\nimport java.io.File;\nimport java.util.Map;\...
java
chosen
[ { "from": "system", "value": "Add fullstop to error message.\n" }, { "from": "human", "value": "package uk.ac.ebi.quickgo.annotation.validation.service;\n\nimport com.google.common.base.Preconditions;\nimport java.util.Objects;\nimport java.util.stream.Stream;\nimport javax.validation.Constraint...
java
chosen
[ { "from": "system", "value": "Put min/max constraints on sidecar.port\n" }, { "from": "human", "value": "/*\n * Copyright 2013-2015 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 th...
java
chosen
[ { "from": "system", "value": "Change WorkerDirectoryProvider to use GFileUtils.mkdirs()\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 use this file except in compl...
java
chosen
[ { "from": "system", "value": "Put in numbers that are at least kinda right\n" }, { "from": "human", "value": "package main;\n\nimport search.SqRoomExploration;\nimport lejos.nxt.SensorPort;\nimport lejos.nxt.addon.tetrix.TetrixMotorController;\nimport lejos.nxt.addon.tetrix.TetrixRegulatedMotor;...
java
chosen
[ { "from": "system", "value": "Simplify keeping test temp files\n\n- adds withSuppressCleanup method that can be used in the Rule directly\n- useful when manually debugging a single test\n" }, { "from": "human", "value": "/*\n * Copyright 2010 the original author or authors.\n *\n * Licensed unde...
java
chosen
[ { "from": "system", "value": "Allow any ABE expressions to be used for predicate/consequence/alternative\nexpressions, only throw type checking errors in typeOf\n" }, { "from": "human", "value": "package ca.ubc.cs411.abe;\n\npublic class If extends ABE {\n private ABE pred, conseq, altern;\n\...
java
chosen
[ { "from": "system", "value": "Fix license header violations in messagebus\n\nChange-Id: I3b5f5b3e96716552562498590988097c5d3c1308\nSigned-off-by: Thanh Ha <09ea4d3a79c8bee41a16519f6a431f6bc0fd8d6f@linuxfoundation.org>\n" }, { "from": "human", "value": "\n/*\n * Copyright (c) 2015 Cisco Systems, ...
java
chosen
[ { "from": "system", "value": "XRENDERING-258: Convert Pegdown AST to an XDOM instead of relying on the Pegdown HTML renderer\n* Misc formatting\n" }, { "from": "human", "value": "/*\n * See the NOTICE file distributed with this work for additional\n * information regarding copyright ownership.\n...
java
chosen
[ { "from": "system", "value": "Fix NumberFormatException when atempting to convert float to int in driver.rating\n" }, { "from": "human", "value": "package com.victorsima.uber.model;\n\nimport com.google.gson.annotations.Expose;\nimport com.google.gson.annotations.SerializedName;\n\n/**\n * Creat...
java
chosen
[ { "from": "system", "value": "[NGRINDER-32] Add default user if there is no user in db.\nIf we use userService to save, The ModelAspect will work to get\ncurrent user from context and set it as created user. But at this time,\nthere is no user in context because not logging in." }, { "from": "human"...
java
chosen
[ { "from": "system", "value": "Create new class for using git and maven.\n" }, { "from": "human", "value": "package net.exkazuu;\r\n\r\nimport java.io.IOException;\r\n\r\npublic class GitManager {\r\n\tprivate static GitManager gm;\r\n\tprivate Runtime rt;\r\n\tprivate GitManager() {\r\n\t\trt = ...
java
chosen