conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Remove log message already produced in superclass\n" }, { "from": "human", "value": "// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\npackage com.yahoo.vespa.config.server.maintenance;\n\nimport com.yahoo.vesp...
java
chosen
[ { "from": "system", "value": "Make it safe to call canProvide multiple times (or not at all).\n" }, { "from": "human", "value": "package com.sedmelluq.discord.lavaplayer.demo.jda;\n\nimport com.sedmelluq.discord.lavaplayer.player.AudioPlayer;\nimport com.sedmelluq.discord.lavaplayer.track.playba...
java
chosen
[ { "from": "system", "value": "Update functions name to match jUnit convention\n" }, { "from": "human", "value": "import static org.junit.Assert.assertEquals;\nimport static org.junit.Assert.assertTrue;\nimport org.junit.Test;\n\npublic class TrieSTTest {\n\n @Test\n public void size() {\n T...
java
chosen
[ { "from": "system", "value": "Change how we find out if debug parameter has been passed" }, { "from": "human", "value": "package com.fatico.winthing.logging;\n\nimport com.fatico.winthing.Application;\n\nimport ch.qos.logback.core.PropertyDefinerBase;\n\npublic class FileLogEnabler extends Prope...
java
chosen
[ { "from": "system", "value": "Fix a typo in how aux name is printed.\n" }, { "from": "human", "value": "// Copyright 2013 Judson D Neer\n\npackage com.singledsoftware.mixmaestro;\n\nimport java.io.Serializable;\n\n/**\n * Stores data for an individual channel.\n *\n * @see Serializable\n * @auth...
java
chosen
[ { "from": "system", "value": "Move download out of main thread (not allowed)\n" }, { "from": "human", "value": "package edu.yalestc.yalepublic.news;\n\nimport android.app.Activity;\nimport android.os.Bundle;\nimport android.util.Log;\nimport android.widget.TextView;\n\nimport org.xml.sax.SAXExce...
java
chosen
[ { "from": "system", "value": "Test stub has been implemented\n" }, { "from": "human", "value": "package org.narwhal.core;\n\n/**\n * Date: 28.02.13\n * Time: 20:28\n * Author: Miron Aseev\n */\npublic class MyFirstTest {\n}\n" }, { "from": "gpt", "value": "package org.narwhal.core;\n...
java
chosen
[ { "from": "system", "value": "Update to new shape width\n" }, { "from": "human", "value": "public class Configuration {\n public static String shape_file = \"shape.png\";\n public static String input_file = \"input.txt\";\n public static String output_file = \"out.png\";\n public s...
java
chosen
[ { "from": "system", "value": "Add to string to show real expression" }, { "from": "human", "value": "package org.gluu.persist.couchbase.model;\n\nimport com.couchbase.client.java.query.dsl.Expression;\n\n/**\n * Filter to Expression convertation result\n *\n * @author Yuriy Movchan Date: 06/21/2...
java
chosen
[ { "from": "system", "value": "Fix for default date format issue.\n\nSVN-Revision: 402\n" }, { "from": "human", "value": "package edu.wustl.bulkoperator.processor;\n\nimport java.text.ParseException;\nimport java.text.SimpleDateFormat;\nimport java.util.Date;\nimport org.apache.commons.beanutils....
java
chosen
[ { "from": "system", "value": "Remove trace logging from ReleaseControlExeption\nWhat the point of logging in a Exception class?" }, { "from": "human", "value": "package org.lodder.subtools.sublibrary.exception;\n\nimport org.lodder.subtools.sublibrary.logging.Logger;\nimport org.lodder.subtools....
java
chosen
[ { "from": "system", "value": "Support ANALYZE for a single table\n" }, { "from": "human", "value": "package lama.sqlite3.gen;\n\nimport lama.Query;\nimport lama.QueryAdapter;\n\npublic class SQLite3AnalyzeGenerator {\n\t\n\tpublic static Query generateAnalyze() {\n\t\treturn new QueryAdapter(\"A...
java
chosen
[ { "from": "system", "value": "Add helpers that allow divisions and multiplication with doubles\n" }, { "from": "human", "value": "package com.sb.util;\n\nimport java.math.BigDecimal;\nimport java.math.MathContext;\nimport java.math.RoundingMode;\n\n/**\n *\n */\npublic final class MathUtil\n{\n ...
java
chosen
[ { "from": "system", "value": "Fix NPE in Log4j SessionListener\n" }, { "from": "human", "value": "package de.chandre.admintool.log4j2;\n\nimport java.io.IOException;\n\nimport javax.servlet.annotation.WebListener;\nimport javax.servlet.http.HttpSessionEvent;\nimport javax.servlet.http.HttpSessio...
java
chosen
[ { "from": "system", "value": "Test File Commit And Reset\n" }, { "from": "human", "value": "package com.liuhc.tools.demo;\n\nimport android.support.v7.app.AppCompatActivity;\nimport android.os.Bundle;\nimport android.widget.Toast;\n\nimport com.liuhc.tools.DateFormatHelper;\n\n\npublic class Ma...
java
chosen
[ { "from": "system", "value": "Change typo in inactivate provider service\n" }, { "from": "human", "value": "package com.smcpartners.shape.usecases.inactivate_provider;\n\nimport com.smcpartners.shape.shared.dto.common.BooleanValueDTO;\nimport com.smcpartners.shape.shared.dto.shape.request.IntEnt...
java
chosen
[ { "from": "system", "value": "Make mutable table suffix shorter\n\nPull request: https://github.com/prestodb/tempto/pull/214\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 Lic...
java
chosen
[ { "from": "system", "value": "Add comment about allowed accesses.\n" }, { "from": "human", "value": "class ArrayAccessExpressionTest {\n public static void main(String[] args) {\n int i;\n int[] ia;\n long l;\n long[] la;\n boolean b;\n A cA;\n ...
java
chosen
[ { "from": "system", "value": "Move responsibility of SQL queries DBManager (different branch)\n" }, { "from": "human", "value": "import com.mysql.jdbc.Connection;\nimport db.DBConnector;\n\nimport java.sql.ResultSet;\nimport java.sql.SQLException;\n\n/**\n * Created by shimin on 9/24/2014.\n */\...
java
chosen
[ { "from": "system", "value": "Use stream to generate wednesdays\n" }, { "from": "human", "value": "package org.puller;\n\nimport java.time.DayOfWeek;\nimport java.time.LocalDate;\nimport java.time.temporal.TemporalAdjuster;\nimport java.time.temporal.TemporalAdjusters;\nimport java.util.ArrayLis...
java
chosen
[ { "from": "system", "value": "Fix polygon particle rounding errors\n\nFixes #418\n" }, { "from": "human", "value": "package de.gurkenlabs.litiengine.graphics.emitters.particles;\n\nimport java.awt.Polygon;\nimport java.awt.Shape;\nimport java.awt.geom.AffineTransform;\nimport java.awt.geom.Point...
java
chosen
[ { "from": "system", "value": "Use standard CDI lifecycle event\n" }, { "from": "human", "value": "/**\n * Copyright (C) 2014 Antonin Stefanutti (antonin.stefanutti@gmail.com)\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in complia...
java
chosen
[ { "from": "system", "value": "Test Class Update: Changed UIScope => VaadinUIScope\n" }, { "from": "human", "value": "package org.vaadin.spring.mvp.autowired;\n\nimport org.vaadin.spring.UIScope;\nimport org.vaadin.spring.annotation.VaadinComponent;\nimport org.vaadin.spring.mvp.FooView;\n\n@UISc...
java
chosen
[ { "from": "system", "value": "Add method to log error without throwable\n\nAdd Ln.e(message) in addition to Ln.e(message, error).\n" }, { "from": "human", "value": "package com.genymobile.scrcpy;\n\nimport android.util.Log;\n\n/**\n * Log both to Android logger (so that logs are visible in \"adb...
java
chosen
[ { "from": "system", "value": "Enable method-level security by annotating the configuration class in *this* project. Works (for now), but not an ideal solution.\n" }, { "from": "human", "value": "package ca.corefacility.bioinformatics.irida.web.config;\n\nimport org.springframework.beans.factory....
java
chosen
[ { "from": "system", "value": "Change to process flow for curation model\n\n\nSVN-Revision: 271\n" }, { "from": "human", "value": "/**\n * Copyright (c) 2001, SAIC, its vendors, and suppliers. ALL RIGHTS RESERVED.\n *\n * @author: Johnita Beasley\n * @date: July 20, 2005\n *\n * Revision History\...
java
chosen
[ { "from": "system", "value": "Set the wait time shorter than before.\n" }, { "from": "human", "value": "package org.skywalking.apm.agent.core.remote;\n\n/**\n * @author wusheng\n */\npublic class GRPCStreamServiceStatus {\n private volatile boolean status;\n\n public GRPCStreamServiceStatu...
java
chosen
[ { "from": "system", "value": "Fix duplicate trailing directory separator\n" }, { "from": "human", "value": "package org.spoofax.jsglr2.testset;\n\nimport java.io.IOException;\nimport java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.List;\n\nimport org.spoofax.jsglr2.testset....
java
chosen
[ { "from": "system", "value": "Update docs for prometheus path config\n" }, { "from": "human", "value": "package io.quarkus.micrometer.runtime.config;\n\nimport java.util.Optional;\n\nimport io.quarkus.runtime.annotations.ConfigGroup;\nimport io.quarkus.runtime.annotations.ConfigItem;\n\n@ConfigG...
java
chosen
[ { "from": "system", "value": "Document and synchronize register method.\n" }, { "from": "human", "value": "package com.hypirion.beckon;\n\nimport sun.misc.Signal;\nimport sun.misc.SignalHandler;\n\nimport java.util.List;\nimport java.util.Map;\nimport java.util.HashMap;\n\npublic class SignalReg...
java
chosen
[ { "from": "system", "value": "Add missing new line at end of file\n" }, { "from": "human", "value": "package com.documents4j.ws.endpoint;\n\nimport com.documents4j.api.DocumentType;\nimport com.documents4j.job.MockConversion;\nimport com.documents4j.ws.application.WebConverterTestConfiguration;\...
java
chosen
[ { "from": "system", "value": "Use short instead of bytes for block id\n" }, { "from": "human", "value": "package com.worldcretornica.plotme_abstractgenerator.bukkit;\n\npublic class BukkitBlockRepresentation {\n\n private final short id;\n private final byte data;\n\n public BukkitBlock...
java
chosen
[ { "from": "system", "value": "Return empty array rather than null\n\ngit-svn-id: https://svn.apache.org/repos/asf/jakarta/jmeter/branches/rel-2-1@330255 13f79535-47bb-0310-9956-ffa450edef68\n\nFormer-commit-id: f33744d43f181e5c7fa384c4a2fbafeb8deb198e" }, { "from": "human", "value": "//$Header$\...
java
chosen
[ { "from": "system", "value": "[Daithi] Remove broken test for now.\n" }, { "from": "human", "value": "package com.gu.conf;\n\nimport org.junit.Test;\n\nimport java.io.IOException;\n\nimport static org.hamcrest.MatcherAssert.assertThat;\nimport static org.hamcrest.Matchers.is;\nimport static org....
java
chosen
[ { "from": "system", "value": "Increment Java Cloud Debugger version to 2.16\n\n-------------\nCreated by MOE: https://github.com/google/moe\nMOE_MIGRATED_REVID=174711041\n" }, { "from": "human", "value": "/**\n * Copyright 2015 Google Inc. All Rights Reserved.\n *\n * Licensed under the Apache L...
java
chosen
[ { "from": "system", "value": "Update docker images to version 47\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 *\n * ...
java
chosen
[ { "from": "system", "value": "Add Constant for config: SCAN_FILE_IMPORT_ALLOWED_VIA_WEB_SUBMIT_KEY" }, { "from": "human", "value": "package org.yeastrc.xlink.base.config_system_table_common_access;\n\nimport java.util.HashSet;\nimport java.util.Set;\n\npublic class ConfigSystemsKeysSharedConstan...
java
chosen
[ { "from": "system", "value": "Add javadoc. Override of visit method no longer required.\n" }, { "from": "human", "value": "package uk.ac.ebi.quickgo.annotation.search;\n\nimport uk.ac.ebi.quickgo.rest.search.query.FieldQuery;\nimport uk.ac.ebi.quickgo.rest.search.query.QueryRequest;\nimport uk.a...
java
chosen
[ { "from": "system", "value": "Fix for \"no country select\"" }, { "from": "human", "value": "package nl.fontys.sofa.limo.view.node.property.editor;\n\nimport com.sksamuel.gaia.Country;\nimport java.awt.Component;\nimport java.beans.PropertyEditorSupport;\nimport java.util.HashMap;\nimport java.u...
java
chosen
[ { "from": "system", "value": "Improve integration test tear down functionality\n" }, { "from": "human", "value": "package com.centurylink.cloud.sdk.servers.services;\n\nimport com.centurylink.cloud.sdk.servers.AbstractServersSdkTest;\nimport com.centurylink.cloud.sdk.servers.client.domain.server...
java
chosen
[ { "from": "system", "value": "Set default charset to UTF-8\n\nSigned-off-by: Sebastian Hoß <1d6e1cf70ec6f9ab28d3ea4b27a49a77654d370e@shoss.de>" }, { "from": "human", "value": "/*\n * Copyright © 2012 Sebastian Hoß <mail@shoss.de>\n * This work is free. You can redistribute it and/or modify it un...
java
chosen
[ { "from": "system", "value": "[WFLY-4853] Add in overrides for methods otherwise TransactionAttribute changes don't get applied.\n" }, { "from": "human", "value": "package org.jboss.as.test.clustering.twoclusters.bean.forwarding;\n\nimport org.jboss.as.test.clustering.twoclusters.bean.stateful.R...
java
chosen
[ { "from": "system", "value": "Update procedure to restart controller on quarantined condition.\n\nThere was a behavior change in Karaf [0] because of which restarting\nthe container now requires the system property karaf.restart to be\nset to true in addition to karaf.restart.jvm property. Update\ncontrolle...
java
chosen
[ { "from": "system", "value": "Fix a bug in the correspondencetypedeciding extension point reference.\n" }, { "from": "human", "value": "package edu.kit.ipd.sdq.vitruvius.applications.pcmjava.linkingintegration;\n\nimport java.util.List;\n\nimport org.eclipse.emf.ecore.EObject;\nimport org.eclips...
java
chosen
[ { "from": "system", "value": "Add checking on current project == null\n\nSigned-off-by: Vitaly Parfonov <3980a3d6ad736918e593101a7ff03dfd34097f49@codenvy.com>\n" }, { "from": "human", "value": "/*******************************************************************************\n * Copyright (c) 201...
java
chosen
[ { "from": "system", "value": "Fix type of constant to be long.\n\nChange-Id: Ie6bf60ccfd0517b6e07c7e4461f58c84b4a51fe4\n" }, { "from": "human", "value": "/*\n * Copyright (C) 2012 The Android Open Source Project\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you ma...
java
chosen
[ { "from": "system", "value": "TAP5-2430: Throw an exception in the case that the content type is null.\n" }, { "from": "human", "value": "// 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...
java
chosen
[ { "from": "system", "value": "Format tweaks, complete through present\n" }, { "from": "human", "value": "package com.tinkerpop.etc.github.beans;\n\n/**\n * @author Joshua Shinavier (http://fortytwo.net)\n */\npublic class Payload {\n\n public String action;\n public Comment comment;\n p...
java
chosen
[ { "from": "system", "value": "Fix display when batches are not counted\n" }, { "from": "human", "value": "package com.lmax.disruptor;\n\npublic class PerfTestContext {\n private long disruptorOps;\n private long batchesProcessedCount;\n private long iterations;\n\n public PerfTestCon...
java
chosen
[ { "from": "system", "value": "Add iterative solution to problem 32\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 Licen...
java
chosen
[ { "from": "system", "value": "Remove api keys for open sourcing\n" }, { "from": "human", "value": "package com.bourke.glimmr.common;\n\npublic class Keys {\n\n public static final String API_KEY = \"***REMOVED***\";\n public static final String API_SECRET = \"***REMOVED***\";\n}\n" }, ...
java
chosen
[ { "from": "system", "value": "Use instance methods in contract\n\nSigned-off-by: Sebastian Hoß <1d6e1cf70ec6f9ab28d3ea4b27a49a77654d370e@shoss.de>" }, { "from": "human", "value": "/*\n * Copyright © 2012 Sebastian Hoß <mail@shoss.de>\n * This work is free. You can redistribute it and/or modify i...
java
chosen
[ { "from": "system", "value": "Fix not injecting fallback rule for singular rules\n" }, { "from": "human", "value": "package org.metaborg.meta.lang.dynsem.interpreter.nodes.rules;\n\nimport java.util.List;\n\nimport org.metaborg.meta.lang.dynsem.interpreter.DynSemLanguage;\n\nimport com.oracle.tr...
java
chosen
[ { "from": "system", "value": "Update docker-images to version 45\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 *\n * ...
java
chosen
[ { "from": "system", "value": "Remove @Qualifier, and add @Target(METHOD)\n\nSince we only support method-level @Variations, for now at least.\n" }, { "from": "human", "value": "// Copyright 2014 Square, Inc.\npackage com.squareup.burst;\n\nimport java.lang.annotation.Retention;\nimport javax.inj...
java
chosen
[ { "from": "system", "value": "[PLAT-2760] Exit with -1 status if server failed to start up\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.integ...
java
chosen
[ { "from": "system", "value": "Upgrade Localstack image to version 0.12.3\n" }, { "from": "human", "value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information...
java
chosen
[ { "from": "system", "value": "Declare the interceptor (even if it's not very useful in the tests atm)" }, { "from": "human", "value": "package fr.openwide.core.test.jpa.externallinkchecker.config.spring;\n\nimport org.springframework.context.annotation.Configuration;\nimport org.springframework....
java
chosen
[ { "from": "system", "value": "Use Inset.EMPTY instead of new empty" }, { "from": "human", "value": "package hu.webarticum.treeprinter;\n\nimport java.util.List;\n\npublic interface TreeNode {\n \n public String content();\n \n public List<TreeNode> children();\n \n public defau...
java
chosen
[ { "from": "system", "value": "Rename person to item in TestItem class\n" }, { "from": "human", "value": "package seedu.address.testutil;\n\nimport seedu.address.commons.exceptions.IllegalValueException;\nimport seedu.address.model.item.*;\nimport seedu.address.model.tag.Tag;\n\n/**\n *\n */\npub...
java
chosen
[ { "from": "system", "value": "Fix order cancellation in FIX gateway\n\nAll orders do not have an OrigClOrdID(41).\n\nThanks to Pekka Enberg for reporting the failure.\n" }, { "from": "human", "value": "package com.paritytrading.parity.fix;\n\nimport java.util.ArrayList;\nimport java.util.List;\n...
java
chosen
[ { "from": "system", "value": "[Android] Fix the context issue to let content create windows\n\nContent Layer needs getSystemService to get window manager. And it\nshould be created from Activity.\n" }, { "from": "human", "value": "// Copyright (c) 2013 Intel Corporation. All rights reserved.\n//...
java
chosen
[ { "from": "system", "value": "Reformat code, remove hardcoded path.\n" }, { "from": "human", "value": "/*\n * Created on Aug 31, 2009\n */\npackage jwbroek.id3.v2;\n\nimport java.io.IOException;\nimport java.io.InputStream;\n\nimport jwbroek.id3.ITunesPodcastFrame;\n\npublic class ITunesPodcastF...
java
chosen
[ { "from": "system", "value": "Update package names in ijx.\n\nThis used to be revision r2172.\n" }, { "from": "human", "value": "package ijx.plugin;\n\nimport imagej.plugin.PluginEntry;\nimport imagej.plugin.PluginFinder;\n\nimport java.util.ArrayList;\nimport java.util.Collection;\nimport java....
java
chosen
[ { "from": "system", "value": "Allow cross-origin for frontend server proxy\n" }, { "from": "human", "value": "package org.luxons.sevenwonders.config;\n\nimport org.springframework.context.annotation.Bean;\nimport org.springframework.context.annotation.Configuration;\nimport org.springframework.m...
java
chosen
[ { "from": "system", "value": "Fix teacher ids not being mapped\n" }, { "from": "human", "value": "package li.l1t.tingo.service;\n\nimport li.l1t.tingo.exception.TeacherNotFoundException;\nimport li.l1t.tingo.model.Teacher;\nimport li.l1t.tingo.model.dto.TeacherDto;\nimport li.l1t.tingo.model.rep...
java
chosen
[ { "from": "system", "value": "Change version warning to Java 8\n" }, { "from": "human", "value": "package net.md_5.bungee;\n\npublic class Bootstrap\n{\n\n public static void main(String[] args) throws Exception\n {\n if ( Float.parseFloat( System.getProperty( \"java.class.version\"...
java
chosen
[ { "from": "system", "value": "Add depots into Import and increase mime version to 2.2\n" }, { "from": "human", "value": "package fi.cosky.sdk;\n/*\n * This file is subject to the terms and conditions defined in\n * file 'LICENSE.txt', which is part of this source code package.\n */\nimport java....
java
chosen
[ { "from": "system", "value": "Add unit test to get pid passing empty pattern.\n" }, { "from": "human", "value": "package com.github.aureliano.achmed.os;\n\nimport static org.junit.Assert.assertEquals;\n\nimport org.junit.Test;\n\nimport com.github.aureliano.achmed.exception.ServiceResourceExcept...
java
chosen
[ { "from": "system", "value": "Replace some of my copyright statements by the generic statement.\n\n(cherry picked from commit 5274855f2b5decdc17362c1f3111832acfe5ddfb)\nSigned-off-by: HashEngineering <cdfd0e2929fd184ec34228d20f211727fcb487d4@gmail.com>\n" }, { "from": "human", "value": "/*\n * C...
java
chosen
[ { "from": "system", "value": "Complete extractScoreFromString method to return \"1.0\" if value of score is above 1.0\n" }, { "from": "human", "value": "package com.blocksolid.okrello.display;\n\nimport java.util.regex.Matcher;\nimport java.util.regex.Pattern;\n\n/**\n * Created by Dan Buckland ...
java
chosen
[ { "from": "system", "value": "Make the Framework Support JDK 1.5\n" }, { "from": "human", "value": "package org.qfox.jestful.core;\n\n/**\n * <p>\n * Description: The participant of RESTful action\n * </p>\n * \n * <p>\n * Company: 广州市俏狐信息科技有限公司\n * </p>\n * \n * @author Payne 646742615@qq.com\n...
java
chosen
[ { "from": "system", "value": "Remove @Override from deprecated method\n" }, { "from": "human", "value": "package openmods;\n\nimport java.util.Map;\nimport java.util.logging.Logger;\n\nimport cpw.mods.fml.common.FMLLog;\nimport cpw.mods.fml.relauncher.IFMLLoadingPlugin;\nimport cpw.mods.fml.rela...
java
chosen
[ { "from": "system", "value": "Add a purge thread that periodically removes stale connection workers to prevent user-induced memory leaks.\n" }, { "from": "human", "value": "package com.topsy.jmxproxy.jmx;\n\nimport com.topsy.jmxproxy.core.Host;\n\nimport com.yammer.dropwizard.lifecycle.Managed;\...
java
chosen
[ { "from": "system", "value": "Use not a real token for mixpanel if debugging\n" }, { "from": "human", "value": "package de.metalmatze.krautreporter.helpers;\n\nimport android.content.Context;\n\nimport com.mixpanel.android.mpmetrics.MixpanelAPI;\n\nimport de.metalmatze.krautreporter.R;\n\npublic...
java
chosen
[ { "from": "system", "value": "Add \"jpe\" as a possible JPEG extension.\n\n" }, { "from": "human", "value": "//\n// JPEGReader.java\n//\n\n/*\nLOCI Bio-Formats package for reading and converting biological file formats.\nCopyright (C) 2005-2006 Melissa Linkert, Curtis Rueden and Eric Kjellman.\n...
java
chosen
[ { "from": "system", "value": "Abort mission, abort mission! Expanded the wrong one.\n" }, { "from": "human", "value": "package com.minelittlepony.model.armour;\n\nimport com.minelittlepony.model.capabilities.IModelWrapper;\nimport com.minelittlepony.pony.data.IPonyData;\n\npublic class PonyArmor...
java
chosen
[ { "from": "system", "value": "catalog: Add convinience method tp convert LocalDate + Kill Bill duration\n" }, { "from": "human", "value": "/*\n * Copyright 2010-2013 Ning, Inc.\n *\n * Ning licenses this file to you under the Apache License, version 2.0\n * (the \"License\"); you may not use thi...
java
chosen
[ { "from": "system", "value": "Add methods to get Notifications preference values\n" }, { "from": "human", "value": "package com.andela.iworkout.utilities;\n\n\nimport android.content.Context;\nimport android.content.SharedPreferences;\nimport android.preference.PreferenceManager;\n\npublic class...
java
chosen
[ { "from": "system", "value": "Add test case for overlapping flags\n" }, { "from": "human", "value": "package zeptodns.protocol.wire;\n\nimport org.junit.Test;\nimport org.junit.runner.RunWith;\nimport org.junit.runners.JUnit4;\n\nimport static org.junit.Assert.assertEquals;\n\n@RunWith(JUnit4.cl...
java
chosen
[ { "from": "system", "value": "Create and use function distance\n" }, { "from": "human", "value": "package ru.stqa.pft.sandbox;\n\npublic class MyFirstProgram {\n public static void main(String[] args) {\n hello(\"world\");\n hello(\"Pavel\");\n\n Square s = new Square(7);\n System.o...
java
chosen
[ { "from": "system", "value": "Move package declaration underneath license block\n" }, { "from": "human", "value": "package io.github.stormcloud_dev.stormcloud;\n\n/*\n * Copyright 2014 StormCloud Development Group\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * ...
java
chosen
[ { "from": "system", "value": "Add de excecao gerada para abrir pdf." }, { "from": "human", "value": "package main.managepdf;\n\nimport java.io.File;\nimport java.util.List;\n\n/**\n * Define funes para gerenciar em um PDF.\n * @author Alex\n *\n * @param <T> - Tipo da informao a ser gerenciada.\...
java
chosen
[ { "from": "system", "value": "AccessController: Fix spi.ac.AttmeptTarget to change types of session_id and attempt_id\n" }, { "from": "human", "value": "package io.digdag.spi.ac;\n\nimport org.immutables.value.Value;\n\n@Value.Immutable\npublic interface AttemptTarget\n{\n int getSiteId();\n\...
java
chosen
[ { "from": "system", "value": "Fix possible integer limit problem (merge in trunk)\n" }, { "from": "human", "value": "package kg.apc.jmeter.perfmon;\n\nimport org.apache.jmeter.samplers.SampleResult;\n\n/**\n *\n * @author APC\n */\npublic class PerfMonSampleResult\n extends SampleResult {...
java
chosen
[ { "from": "system", "value": "Remove custom setup and teardown, reformat\n" }, { "from": "human", "value": "package com.opera.core.systems;\n\nimport static org.junit.Assert.assertTrue;\n\nimport org.junit.AfterClass;\nimport org.junit.BeforeClass;\nimport org.junit.Test;\n\nimport com.opera.cor...
java
chosen
[ { "from": "system", "value": "Update to work through manifest and directly\n" }, { "from": "human", "value": "package THE_PACKAGE;\n\npublic class THE_RUBOTO_CLASS THE_ACTION THE_ANDROID_CLASS {\n private String scriptName;\n private boolean initialized = false;\n\n public void setCallb...
java
chosen
[ { "from": "system", "value": "Use equalsIgnoreCase to make sure we don't fail for debug.\n" }, { "from": "human", "value": "package com.khmelyuk.multirun;\n\nimport com.intellij.execution.configurations.RunProfile;\nimport com.intellij.execution.executors.DefaultDebugExecutor;\nimport com.intell...
java
chosen
[ { "from": "system", "value": "Refactor Tests\n- Merge all direct translation numbers tests\n" }, { "from": "human", "value": "import org.junit.Test;\n\nimport static org.junit.Assert.assertEquals;\n\npublic class RomanNumbersTest {\n\n @Test\n public void givenZeroWhenArabicToRomanCalledSh...
java
chosen
[ { "from": "system", "value": "Fix in MIM request to use ExternalMethod and ignore Method which are never called (in this case the soot callgraph is incorrect)\n" }, { "from": "human", "value": "package paprika.neo4j;\n\nimport org.neo4j.cypher.CypherException;\nimport org.neo4j.graphdb.Result;\n...
java
chosen
[ { "from": "system", "value": "Fix issue preventing startup when device is rebooted (silly me)\n" }, { "from": "human", "value": "package moe.minori.pgpclipper;\n\nimport android.content.BroadcastReceiver;\nimport android.content.Context;\nimport android.content.Intent;\nimport android.content.Sh...
java
chosen
[ { "from": "system", "value": "Make the FileHandler more specific\n\nIt only looks for content when it's a GET request.\n" }, { "from": "human", "value": "package net.zephyrizing.http_server.handlers;\n\nimport java.nio.file.Files;\nimport java.nio.file.Path;\nimport java.nio.file.Paths;\n\nimpor...
java
chosen
[ { "from": "system", "value": "Throw FilterException instead of ApplicationException when allocated sequence counter is starved\n" }, { "from": "human", "value": "package org.bricolages.streaming.filter;\n\nimport org.bricolages.streaming.ApplicationError;\nimport org.bricolages.streaming.Sequenc...
java
chosen
[ { "from": "system", "value": "Fix broken site admin links\n" }, { "from": "human", "value": "package org.vivoweb.webapp.startup;\n\nimport edu.cornell.mannlib.vitro.webapp.controller.freemarker.InstitutionalInternalClassController;\nimport edu.cornell.mannlib.vitro.webapp.controller.freemarker.S...
java
chosen
[ { "from": "system", "value": "Use “lightGray” for web view background color" }, { "from": "human", "value": "package mozilla.org.webmaker.view;\n\nimport android.app.Activity;\nimport android.content.Context;\nimport android.view.ViewGroup;\n\nimport org.json.JSONObject;\nimport org.xwalk.core.X...
java
chosen
[ { "from": "system", "value": "Edit bank account debit order imports\n" }, { "from": "human", "value": "package bank_account_debit_order;\n\nimport com.balancedpayments.Balanced;\nimport com.balancedpayments.BankAccount;\nimport com.balancedpayments.Debit;\nimport com.balancedpayments.Order;\nimp...
java
chosen
[ { "from": "system", "value": "Improve code quality.\nAdded assertion in test\n" }, { "from": "human", "value": "package net.tjololo.openshift.havoc;\n\nimport org.junit.Test;\nimport org.junit.runner.RunWith;\nimport org.springframework.boot.test.context.SpringBootTest;\nimport org.springframewo...
java
chosen
[ { "from": "system", "value": "Add neccessary components to run independently\n" }, { "from": "human", "value": "public class GPA{\n\n public static void main(int g){\n if (g >= 90) {\n gpa = 4;\n }\n else if (g >= 80) {\n gpa = 3;\n }\n ...
java
chosen
[ { "from": "system", "value": "Make number of attributes in editor variable\n" }, { "from": "human", "value": "package editor.views;\n\nimport javax.swing.*;\nimport java.awt.*;\nimport java.util.HashMap;\n\n/**\n * The AttributesPanelView is used to show all of the attributes of an XML\n * eleme...
java
chosen
[ { "from": "system", "value": "Fix test, a plain realm now needs a credentials handler since it's only set in startInternal.\n\ngit-svn-id: 79cef5a5a257cc9dbe40a45ac190115b4780e2d0@1758525 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "human", "value": "/*\n* Licensed to the Apache Softwar...
java
chosen