conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Disable wavefront for tests that include scdf-core but don't apply the DefaultEnvironmentPostProcessor\n" }, { "from": "human", "value": "/*\n * Copyright 2017-2020 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License...
java
chosen
[ { "from": "system", "value": "Add connection source function for using this for other purposes\n" }, { "from": "human", "value": "package edu.umass.cs.ciir.waltz.dbindex;\n\nimport java.io.File;\n\n/**\n * @author jfoley\n */\npublic class DBConfig {\n private final String jdbcURL;\n private f...
java
chosen
[ { "from": "system", "value": "Fix small error in test\n" }, { "from": "human", "value": "import java.util.Optional;\nimport java.util.stream.Stream;\n\npublic class MapNullToValue {\n public static void main(String[] args) {\n // Breakpoint!\n final Optional<Object> any = Stream.of(null)....
java
chosen
[ { "from": "system", "value": "MOHO-15: Fix the werid parse by overriding toString method\n" }, { "from": "human", "value": "package com.voxeo.moho.media.input;\n\npublic class SignalGrammar extends Grammar {\n\n public enum Signal {\n FAX_CED, FAX_CNG, BEEP, RING, SIT, MODEM, OFFHOOK;\n\n ...
java
chosen
[ { "from": "system", "value": "Fix mistake from last commits\n" }, { "from": "human", "value": "package com.crowdin.cli.utils.concurrency;\n\nimport java.util.List;\nimport java.util.Objects;\nimport java.util.concurrent.*;\n\npublic class ConcurrencyUtil {\n\n private static final int CROWDIN...
java
chosen
[ { "from": "system", "value": "Add empty default implementations for notification service\n" }, { "from": "human", "value": "package net.brutus5000.bireus.service;\n\nimport org.jgrapht.GraphPath;\nimport org.jgrapht.graph.DefaultEdge;\n\nimport java.net.URL;\nimport java.nio.file.Path;\n\npublic...
java
chosen
[ { "from": "system", "value": "Make sure InetUtils.executorService shuts down.\n\nSee https://github.com/spring-cloud/spring-cloud-netflix/issues/491\n" }, { "from": "human", "value": "package org.springframework.cloud.util;\n\nimport org.springframework.boot.autoconfigure.AutoConfigureOrder;\nim...
java
chosen
[ { "from": "system", "value": "Test with 2 @Id mappings for Blaze Persistence JPA Criteria\n" }, { "from": "human", "value": "package com.vladmihalcea.book.hpjp.hibernate.criteria.blaze.tab.cte;\n\nimport com.blazebit.persistence.CTE;\n\nimport javax.persistence.Entity;\nimport javax.persistence....
java
chosen
[ { "from": "system", "value": "Add ability to store items in the Object\n" }, { "from": "human", "value": "package com.spiddekauga.android.util;\n\n/**\n * Base class for object events. Used for add, edit, and remove actions.\n */\npublic abstract class ObjectEvent {\nprivate final Actions mActio...
java
chosen
[ { "from": "system", "value": "Add constructor for feature parity\n" }, { "from": "human", "value": "// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\npackage com.yahoo.vespa.hosted.node.admin.nodeadmin;\n\n@SuppressWarnings(\"...
java
chosen
[ { "from": "system", "value": "Update sortArray to return the sorted array\n" }, { "from": "human", "value": "package uk.co.johnjtaylor;\r\n\r\n/**\r\n * A Simple bubblesort class used as an easy base-line for algorithm testing\r\n * @author John\r\n * @param <T>\r\n *\r\n */\r\npublic class Bubb...
java
chosen
[ { "from": "system", "value": "Make append argument easier to read" }, { "from": "human", "value": "package servlets;\r\n\r\nimport java.io.BufferedWriter;\r\nimport java.io.FileWriter;\r\nimport java.io.IOException;\r\nimport java.io.PrintWriter;\r\n\r\nimport javax.servlet.ServletContext;\r\nim...
java
chosen
[ { "from": "system", "value": "Fix Spring Problem with JpaDialect und session retrivval in eclipselink\n" }, { "from": "human", "value": "package net.sf.jpasecurity.spring.eclipselink;\n\nimport javax.persistence.EntityManager;\n\nimport net.sf.jpasecurity.persistence.DefaultSecureEntityManager;\...
java
chosen
[ { "from": "system", "value": "Fix core plugin using incorrect class names" }, { "from": "human", "value": "package com.enderio.core.common.transform;\n\nimport java.util.Map;\n\nimport cpw.mods.fml.relauncher.IFMLLoadingPlugin;\nimport cpw.mods.fml.relauncher.IFMLLoadingPlugin.MCVersion;\n\n@Sup...
java
chosen
[ { "from": "system", "value": "Handle Activity life-cycle properly to recreate Takt\n\n" }, { "from": "human", "value": "package com.github.ayltai.newspaper;\n\nimport android.graphics.Color;\nimport android.os.Bundle;\nimport android.support.annotation.Nullable;\nimport android.support.v7.app.Ap...
java
chosen
[ { "from": "system", "value": "Add beta warning on the watch command\n" }, { "from": "human", "value": "package edu.utexas.ece.jacobingalls.commands;\n\nimport edu.utexas.ece.jacobingalls.ColdBootRepl;\nimport edu.utexas.ece.jacobingalls.Game;\n\nimport java.util.ArrayList;\nimport java.util.List...
java
chosen
[ { "from": "system", "value": "Make the image data date aware\n\ngit-svn-id: 4e353c0944fe8da334633afc35765ef362dec675@959 b4e469a2-07ce-4b26-9273-4d7d95a670c7\n" }, { "from": "human", "value": "package org.helioviewer.viewmodel.imagedata;\n\nimport org.helioviewer.viewmodel.imageformat.ImageForma...
java
chosen
[ { "from": "system", "value": "Allow to call getDataAsLong for Rational type field\n" }, { "from": "human", "value": "/**\n * Copyright (c) 2014 by Wen Yu.\n * All rights reserved. This program and the accompanying materials\n * are made available under the terms of the Eclipse Public License v1....
java
chosen
[ { "from": "system", "value": "Fix SonarQube issues: not all of them.\n" }, { "from": "human", "value": "/**\n * \n */\npackage normalization;\n\nimport datastructures.AttributeJoint;\nimport datastructures.DFJoint;\nimport dependency.ADependency;\nimport dependency.FunctionalDependency;\n\n/**\n...
java
chosen
[ { "from": "system", "value": "Fix built in help command.\n" }, { "from": "human", "value": "package com.campmongoose.serversaturday.sponge.command;\n\nimport com.campmongoose.serversaturday.common.Reference;\nimport com.campmongoose.serversaturday.sponge.SpongeServerSaturday;\nimport javax.annot...
java
chosen
[ { "from": "system", "value": "Support for WAR deployment in Tomcat\n" }, { "from": "human", "value": "/*\n * Copyright 2017 EMBL - European Bioinformatics Institute\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with t...
java
chosen
[ { "from": "system", "value": "Add getter and setters for unit field\n" }, { "from": "human", "value": "package com.kduda.battleships.models.board;\n\nimport com.kduda.battleships.models.units.Unit;\nimport javafx.scene.paint.Color;\nimport javafx.scene.shape.Rectangle;\n\n\npublic class Cell ext...
java
chosen
[ { "from": "system", "value": "Use default value for annotation in sample app\n" }, { "from": "human", "value": "package com.alapshin.arctor.sample.foo.view;\n\nimport com.alapshin.arctor.annotation.GenerateCommand;\nimport com.alapshin.arctor.view.MvpView;\n\npublic interface FooView extends Mvp...
java
chosen
[ { "from": "system", "value": "Remove createJSModules @override - RN 0.47 compatibility\n" }, { "from": "human", "value": "package com.github.droibit.android.reactnative.customtabs;\n\nimport com.facebook.react.ReactPackage;\nimport com.facebook.react.bridge.JavaScriptModule;\nimport com.facebook...
java
chosen
[ { "from": "system", "value": "Add databases under /files to the list of databases visible by default in Flipper Database Plugin\n\nSummary: Traverse recursively the /files directory and show all databases with .db extension in Flipper. Traversal depth is limited to 5 by default for performance reasons.\n\nR...
java
chosen
[ { "from": "system", "value": "Change the wrong license headers\n" }, { "from": "human", "value": "/*\n * Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.\n *\n * WSO2 Inc. licenses this file to you under the Apache License,\n * Version 2.0 (the \"License\"); you may not u...
java
chosen
[ { "from": "system", "value": "MOTECH-1040: Support for collection fields in lookups\n\nThis commit adds support for collection fields in lookups. For now there\nwill be possible to create a lookup that will find instances for which\npassed value will be inside collection field.\n\nFor example assume that th...
java
chosen
[ { "from": "system", "value": "Fix NPE upon exiting Eclipse coming from the Menus.\n" }, { "from": "human", "value": "package org.strategoxt.imp.runtime.services.menus;\n\nimport org.eclipse.core.expressions.PropertyTester;\nimport org.eclipse.swt.widgets.Display;\n\n/**\n * @author Oskar van Res...
java
chosen
[ { "from": "system", "value": "Fix use of a deprecated API\n" }, { "from": "human", "value": "package io.zucchiniui.backend.support.websocket;\n\nimport io.dropwizard.Configuration;\nimport io.dropwizard.ConfiguredBundle;\nimport io.dropwizard.setup.Bootstrap;\nimport io.dropwizard.setup.Environm...
java
chosen
[ { "from": "system", "value": "Remove obsolete/unnecessary close listener from a test class.\n\nsvn changeset:15712/svn branch:6.5\n" }, { "from": "human", "value": "package com.vaadin.tests.components.window;\n\nimport com.vaadin.terminal.ThemeResource;\nimport com.vaadin.tests.components.TestBa...
java
chosen
[ { "from": "system", "value": "Fix missing environment data issue\n" }, { "from": "human", "value": "package nl.tudelft.graphalytics.granula;\n\nimport nl.tudelft.granula.archiver.GranulaExecutor;\nimport nl.tudelft.granula.modeller.entity.Execution;\nimport nl.tudelft.granula.modeller.job.JobMod...
java
chosen
[ { "from": "system", "value": "Clarify something in the docs.\n" }, { "from": "human", "value": "package com.raoulvdberge.refinedstorage.api.storage.externalstorage;\n\nimport net.minecraft.tileentity.TileEntity;\nimport net.minecraft.util.EnumFacing;\n\nimport javax.annotation.Nonnull;\nimport j...
java
chosen
[ { "from": "system", "value": "Remove final modifier since it prevents overriding properties\n" }, { "from": "human", "value": "package de.cpg.oss.verita.configuration.event_store;\n\nimport de.cpg.oss.verita.configuration.VeritaProperties;\nimport lombok.Data;\nimport org.springframework.boot.co...
java
chosen
[ { "from": "system", "value": "Add new tab JSON field\n\nReview URL: https://codereview.chromium.org/14329012" }, { "from": "human", "value": "// Copyright (c) 2011 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in t...
java
chosen
[ { "from": "system", "value": "Use DataIO2 Packed longs and ints\n" }, { "from": "human", "value": "package com.oriordank.mapdbserializers;\n\nimport org.apache.activemq.store.PListEntry;\nimport org.apache.activemq.util.ByteSequence;\nimport org.mapdb.Serializer;\n\nimport java.io.DataInput;\nim...
java
chosen
[ { "from": "system", "value": "refactor: Add service to retrieve list of team for a user\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 exc...
java
chosen
[ { "from": "system", "value": "Return a 404 response when a blog post isn't found.\n" }, { "from": "human", "value": "package uk.co.todddavies.website.blog;\n\nimport com.google.common.collect.ImmutableMap;\nimport com.google.inject.Inject;\nimport com.google.inject.Singleton;\nimport com.google....
java
chosen
[ { "from": "system", "value": "Check if GPS specifically is enabled for all API versions.\n" }, { "from": "human", "value": "/* This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one ...
java
chosen
[ { "from": "system", "value": "Check to make sure the channel isn't set.\n\n\ngit-svn-id: 9326b53cbc4a8f4c3d02979b62b178127d5150fe@611 c7d0bf07-ec0d-0410-b2cc-d48fa9be22ba\n" }, { "from": "human", "value": "package org.codehaus.xfire.transport;\n\nimport org.codehaus.xfire.MessageContext;\nimport...
java
chosen
[ { "from": "system", "value": "Add a final on a member variable.\n" }, { "from": "human", "value": "package com.haskforce.jps;\n\n/*\n * Downloaded from https://github.com/ignatov/intellij-erlang on 7 May\n * 2014.\n */\n\nimport org.jetbrains.jps.builders.BuildRootDescriptor;\nimport org.jetbrai...
java
chosen
[ { "from": "system", "value": "Fix type error in the producers thread test, which was not a compiler error because Object.\n\n-------------\nCreated by MOE: https://github.com/google/moe\nMOE_MIGRATED_REVID=142185290\n" }, { "from": "human", "value": "/*\n * Copyright (C) 2016 The Dagger Authors....
java
chosen
[ { "from": "system", "value": "Write fusion Reducer as additions to List\n" }, { "from": "human", "value": "package es.tid.cosmos.mobility.activityarea;\n\nimport java.io.IOException;\n\nimport com.twitter.elephantbird.mapreduce.io.ProtobufWritable;\nimport org.apache.hadoop.mapreduce.Reducer;\n\...
java
chosen
[ { "from": "system", "value": "Add some documentation about expected usage of class\n" }, { "from": "human", "value": "package io.korobi.mongotoelastic.mongo;\n\nimport javax.inject.Singleton;\nimport java.util.Map;\nimport java.util.Optional;\nimport java.util.concurrent.ConcurrentHashMap;\n\n@S...
java
chosen
[ { "from": "system", "value": "Fix locale to get consistent results independent of browser locale\n\nsvn changeset:13060/svn branch:6.3\n" }, { "from": "human", "value": "package com.vaadin.tests.components.datefield;\n\nimport java.util.Date;\n\nimport com.vaadin.tests.components.TestBase;\nimpo...
java
chosen
[ { "from": "system", "value": "Align with new class name\n" }, { "from": "human", "value": "package com.grayben.riskExtractor.htmlScorer.scorers.elementScorers;\n\nimport com.grayben.riskExtractor.htmlScorer.scorers.Scorer;\nimport com.grayben.riskExtractor.htmlScorer.scorers.tagScorers.TagAndAtt...
java
chosen
[ { "from": "system", "value": "Add documentation for PMR exception in network protocols\n" }, { "from": "human", "value": "package org.jvirtanen.parity.net.pmr;\n\nimport org.jvirtanen.parity.net.ProtocolException;\n\npublic class PMRException extends ProtocolException {\n\n public PMRExceptio...
java
chosen
[ { "from": "system", "value": "Reduce visibility of firebase analytics constructor\n" }, { "from": "human", "value": "package com.alexstyl.specialdates.analytics;\n\nimport android.content.Context;\nimport android.os.Bundle;\n\nimport com.google.firebase.analytics.FirebaseAnalytics;\nimport com.n...
java
chosen
[ { "from": "system", "value": "Fix llama entity metadata remap for 1.14" }, { "from": "human", "value": "package protocolsupport.protocol.typeremapper.entity.metadata.types.living.horse;\n\nimport protocolsupport.protocol.typeremapper.entity.metadata.object.value.IndexValueRemapperNoOp;\nimport p...
java
chosen
[ { "from": "system", "value": "Save to store skip failed files\n" }, { "from": "human", "value": "package edu.isi.karma.rdf;\n\nimport java.io.File;\n\nimport com.uwyn.jhighlight.tools.FileUtils;\n\nimport edu.isi.karma.er.helper.TripleStoreUtil;\nimport edu.isi.karma.webserver.KarmaException;\n\...
java
chosen
[ { "from": "system", "value": "Work around the usual long/int issues\n" }, { "from": "human", "value": "/*******************************************************************************\n * Copyright (c) 2010-2015, Benedek Izso, Gabor Szarnyas, Istvan Rath and Daniel Varro\n * All rights reserved....
java
chosen
[ { "from": "system", "value": "Add private ctor to prevent instantiation\n" }, { "from": "human", "value": "package org.jsonq;\n\n/**\n * Singleton class for JSON/q functionality\n */\npublic class JSONQ {\n\n\t/**\n\t * Execute a JSON/q command\n\t *\n\t * @param obj the JSON object representing...
java
chosen
[ { "from": "system", "value": "Update comment on item that crashes on purpose currently\n" }, { "from": "human", "value": "package org.apache.poi.poifs.crypt;\n\nimport org.apache.poi.poifs.crypt.dsig.SignatureInfo;\n\nimport static junit.framework.Assert.assertNotNull;\n\npublic class TestSignat...
java
chosen
[ { "from": "system", "value": "Add an helper for file naming by date\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\np...
java
chosen
[ { "from": "system", "value": "Make single byte matchers throw an indexoutofboundsexception if an attempt is made to get a singlebytematcher other than in position zero.\n" }, { "from": "human", "value": "/*\n * To change this template, choose Tools | Templates\n * and open the template in the ed...
java
chosen
[ { "from": "system", "value": "Fix parameter names and annotations in tree structure provider sample\n" }, { "from": "human", "value": "package org.jetbrains.tutorials.tree.structure;\n\nimport com.intellij.ide.projectView.*;\nimport com.intellij.ide.projectView.impl.nodes.PsiFileNode;\nimport co...
java
chosen
[ { "from": "system", "value": "Throw an exception when the request times out" }, { "from": "human", "value": "/*\n * Copyright (C) 2012 Pixmob (http://github.com/pixmob)\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": "Disable the XA tests if the server doesn't allow any prepared\ntransactions, which is the default starting with the 8.4 release.\n" }, { "from": "human", "value": "package org.postgresql.test.xa;\n\nimport java.sql.Connection;\n\nimport junit.framework.TestSuite;\n\...
java
chosen
[ { "from": "system", "value": "Change to be pulled by local rep." }, { "from": "human", "value": "public class HelloWorld\n{\n public static void \n main (String[] args) \n {\n System.out.println (\"Hello, GitHub.\");\n System.out.println (\"Goodbye, GitHub!\");\n } // main(String[])\...
java
chosen
[ { "from": "system", "value": "Remove @Service - was added by mistake\n" }, { "from": "human", "value": "package io.cloudslang.worker.management.services;\n\nimport org.springframework.stereotype.Service;\n\n/**\n * Created by kravtsov on 07/12/2015\n */\n\n@Service\npublic class WorkerVersionSer...
java
chosen
[ { "from": "system", "value": "[snomed] Fix permission level of SNOMED component create requests" }, { "from": "human", "value": "/*\n * Copyright 2011-2019 B2i Healthcare Pte Ltd, http://b2i.sg\n * \n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this fi...
java
chosen
[ { "from": "system", "value": "Refactor delete env owner, change session to peer owner\n" }, { "from": "human", "value": "package io.subutai.core.hubmanager.impl.environment.state.destroy;\n\n\nimport io.subutai.common.peer.EnvironmentId;\nimport io.subutai.core.hubmanager.impl.environment.state....
java
chosen
[ { "from": "system", "value": "[PLAT-3408] Add scss type to Bundle type\n" }, { "from": "human", "value": "/**\n * Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies\n *\n * Please see distribution for license.\n */\npackage com.opengamma.web.bundle;\n\nimport org...
java
chosen
[ { "from": "system", "value": "Fix compilation error in RN 0.47.0\n" }, { "from": "human", "value": "package com.poberwong.launcher;\n\nimport com.facebook.react.ReactPackage;\nimport com.facebook.react.bridge.JavaScriptModule;\nimport com.facebook.react.bridge.NativeModule;\nimport com.facebook....
java
chosen
[ { "from": "system", "value": "Remove writing to Zookeeper when kafka is selected as offset storage and dual.commit is false.\n" }, { "from": "human", "value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * d...
java
chosen
[ { "from": "system", "value": "Fix a problem that lister cannot get resource correctly\n" }, { "from": "human", "value": "package io.kubernetes.client.informer.cache;\n\nimport com.google.common.base.Strings;\nimport java.util.List;\n\n/** Lister interface is used to list cached items from a runn...
java
chosen
[ { "from": "system", "value": "Refactor Vert.x 3 event loop context to store context upon construction in order to prevent issues with calling runOnContext from a non-context thread.\n" }, { "from": "human", "value": "/*\n * Copyright 2014 the original author or authors.\n *\n * Licensed under th...
java
chosen
[ { "from": "system", "value": "Revert \"Fix wrong type mapping for game player stats\"\n\nThis reverts commit b0132110\n" }, { "from": "human", "value": "package com.faforever.api.dto;\n\nimport com.faforever.api.elide.ElideEntity;\nimport com.github.jasminb.jsonapi.annotations.Id;\nimport com.gi...
java
chosen
[ { "from": "system", "value": "Print BC version and jar location\n\n" }, { "from": "human", "value": "package org.jboss.wsf.test;\n\n/**\n *\n * @author Rostislav Svoboda\n */\npublic class CryptoCheckMain\n{\n\n public static void main(String[] args) throws Exception \n {\n System.o...
java
chosen
[ { "from": "system", "value": "Use exchange instead of topic from joram\n" }, { "from": "human", "value": "package no.ntnu.okse.protocol.amqp091;\n\nimport no.ntnu.okse.core.messaging.Message;\nimport no.ntnu.okse.core.messaging.MessageService;\nimport no.ntnu.okse.core.subscription.Publisher;\ni...
java
chosen
[ { "from": "system", "value": "Remove \"NEW\" state from entities\n" }, { "from": "human", "value": "/*\n * Copyright 2019 Google LLC\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 obtain a...
java
chosen
[ { "from": "system", "value": "Remove unused 'NonExtensible' entry from enum\n" }, { "from": "human", "value": "/**\n * Copyright (c) 2012-2013 André Bargull\n * Alle Rechte vorbehalten / All Rights Reserved. Use is subject to license terms.\n *\n * <https://github.com/anba/es6draft>\n */\npacka...
java
chosen
[ { "from": "system", "value": "Fix typo in error message\n" }, { "from": "human", "value": "/*\n * Copyright 2013, 2014 Deutsche Nationalbibliothek\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": "Clean up of style and checksum warnings.\n" }, { "from": "human", "value": "// Copyright (c) 2010, www.andrew-eells.com. All rights reserved.\n\npackage com.andrew_eells.persistence.service;\n\nimport com.andrew_eells.persistence.infrastructure.query.QuerySpecificat...
java
chosen
[ { "from": "system", "value": "Enable Java serialization for GraalVM 21+\n" }, { "from": "human", "value": "package io.quarkus.runtime.graal;\n\nimport java.io.ObjectStreamClass;\n\nimport com.oracle.svm.core.annotate.Substitute;\nimport com.oracle.svm.core.annotate.TargetClass;\n\n@TargetClass(j...
java
chosen
[ { "from": "system", "value": "Resolve issue where method comparison wasn’t working\n" }, { "from": "human", "value": "package com.hamishrickerby.http_server.responses;\n\nimport com.hamishrickerby.http_server.FormStore;\nimport com.hamishrickerby.http_server.Method;\nimport com.hamishrickerby.ht...
java
chosen
[ { "from": "system", "value": "Revert \"Revert \"Use composed annotation for readability\"\"\n\nThis reverts commit c82beaa8e9380ec257a4bb296f981cde865ff6d1.\n" }, { "from": "human", "value": "package ee.tuleva.onboarding.auth.session;\n\nimport java.io.Serial;\nimport java.io.Serializable;\nimpo...
java
chosen
[ { "from": "system", "value": "Add interactiveLoop() shell for testing\n" }, { "from": "human", "value": "import java.io.File;\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.FileReader;\nimport java.util.ArrayList;\n\npublic class Engineering {\n\tpublic static void ...
java
chosen
[ { "from": "system", "value": "Tidy types\nMake class final and remove unused ctor/setter\n\ngit-svn-id: 7c053b8fbd1fb5868f764c6f9536fc6a9bbe7da9@804702 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "human", "value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or mor...
java
chosen
[ { "from": "system", "value": "Fix an invalid javadoc reference\n" }, { "from": "human", "value": "/*\n * Copyright 2016 Philip Cohn-Cort\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 obta...
java
chosen
[ { "from": "system", "value": "Remove getStringID, because RA.getString doesn't appear to always exist. We need a better way to do this (link in the RA to titanium SDK code.) Pondering...\n" }, { "from": "human", "value": "package ${config['appid']};\n\nimport org.appcelerator.titanium.TiAppli...
java
chosen
[ { "from": "system", "value": "Add new Hooks. Not yet called into code\n" }, { "from": "human", "value": "package fr.treeptik.cloudunit.hooks;\n\n/**\n * Created by nicolas on 19/04/2016.\n */\npublic enum HookAction {\n\n APPLICATION_POST_START(\"Application post start\", \"/cloudunit/appconf...
java
chosen
[ { "from": "system", "value": "Use diamond inference for hashmap" }, { "from": "human", "value": "package com.woopra.java.sdk;\n\nimport java.util.HashMap;\n\npublic class WoopraVisitor {\n\t\n\tpublic static String EMAIL = \"email\";\n\tpublic static String UNIQUE_ID = \"uniqueId\";\n\t\n\tprote...
java
chosen
[ { "from": "system", "value": "Improve some layout and texts\n" }, { "from": "human", "value": "package com.teinproductions.tein.pitrainer;\n\nimport android.widget.EditText;\n\n\npublic interface ActivityInterface {\n void preventSoftKeyboardFromShowingUp(EditText et, boolean show);\n\n vo...
java
chosen
[ { "from": "system", "value": "Add 'One For All' Queue Id (Valorant)\n" }, { "from": "human", "value": "package no.stelar7.api.r4j.basic.constants.types.val;\n\nimport no.stelar7.api.r4j.basic.constants.types.CodedEnum;\n\nimport java.util.Optional;\nimport java.util.stream.Stream;\n\npublic enum...
java
chosen
[ { "from": "system", "value": "Split the transformation to File's." }, { "from": "human", "value": "package org.jboss.loom.utils;\n\nimport java.io.File;\nimport java.io.IOException;\nimport java.util.ArrayList;\nimport java.util.List;\nimport org.apache.tools.ant.DirectoryScanner;\n\n/**\n * Us...
java
chosen
[ { "from": "system", "value": "Fix test customer collection find\n" }, { "from": "human", "value": "package me.pagarme;\n\nimport me.pagar.model.Address;\nimport me.pagar.model.Customer;\nimport me.pagar.model.PagarMeException;\nimport me.pagar.model.Phone;\nimport org.junit.Assert;\nimport org.j...
java
chosen
[ { "from": "system", "value": "Add a test to make sure screenshots are added to exceptions\n" }, { "from": "human", "value": "// Licensed to the Software Freedom Conservancy (SFC) under one\n// or more contributor license agreements. See the NOTICE file\n// distributed with this work for additio...
java
chosen
[ { "from": "system", "value": "Remove tests that no longer represent intended behaviour\n" }, { "from": "human", "value": "package org.realityforge.replicant.server;\n\nimport org.testng.annotations.Test;\nimport static org.testng.Assert.*;\n\npublic class ChannelLinkTest\n{\n @Test\n public vo...
java
chosen
[ { "from": "system", "value": "Add util method for creating pre-configured reload navigation\n" }, { "from": "human", "value": "package be.thibaulthelsmoortel.navigationbuilder;\n\n/**\n * Utilities to perform navigation operations.\n *\n * @author Thibault Helsmoortel\n */\npublic class Navigati...
java
chosen
[ { "from": "system", "value": "Add method to get the fluid sprite of a fluid stack" }, { "from": "human", "value": "package info.u_team.u_team_core.gui.render;\n\nimport net.minecraft.client.Minecraft;\nimport net.minecraft.client.renderer.texture.TextureAtlasSprite;\nimport net.minecraft.invento...
java
chosen
[ { "from": "system", "value": "Fix RN 0.47 breaking change" }, { "from": "human", "value": "package com.balthazargronon.RCTZeroconf;\n\nimport com.facebook.react.ReactPackage;\nimport com.facebook.react.bridge.JavaScriptModule;\nimport com.facebook.react.bridge.NativeModule;\nimport com.facebook....
java
chosen
[ { "from": "system", "value": "Fix NullPointerException when restoring backup\n" }, { "from": "human", "value": "package com.benny.openlauncher.widget;\n\nimport android.content.Context;\nimport android.support.v7.preference.PreferenceCategory;\nimport android.support.v7.preference.PreferenceView...
java
chosen
[ { "from": "system", "value": "Fix IDE warnings in the agent\n" }, { "from": "human", "value": "package com.github.sulir.runtimesearch.runtime;\n\nimport java.io.IOException;\nimport java.io.ObjectInputStream;\nimport java.net.InetAddress;\nimport java.net.ServerSocket;\nimport java.net.Socket;\n...
java
chosen
[ { "from": "system", "value": "Remove duplicated db_object_type=protein from the test value for annotation properties.\n" }, { "from": "human", "value": "package uk.ac.ebi.quickgo.index.annotation;\n\n/**\n * A class for creating stubbed annotations, representing rows of data read from\n * annota...
java
chosen
[ { "from": "system", "value": "Include the status code in the string, and nicer messages\n" }, { "from": "human", "value": "package org.intermine.webservice.server;\n\n/*\n * Copyright (C) 2002-2011 FlyMine\n *\n * This code may be freely distributed and modified under the\n * terms of the GNU Le...
java
chosen
[ { "from": "system", "value": "Add POST support for /metadata/**\n" }, { "from": "human", "value": "package me.izstas.rfs.server.controller;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.web.bind.annotation.RequestMapping;\nimport org.springframewor...
java
chosen
[ { "from": "system", "value": "Drop the discriminator under displayName\n" }, { "from": "human", "value": "package org.springframework.social.discord.connect;\n\nimport org.springframework.social.connect.ApiAdapter;\nimport org.springframework.social.connect.ConnectionValues;\nimport org.springfr...
java
chosen
[ { "from": "system", "value": "Fix arrow particle color bugs\n" }, { "from": "human", "value": "package in.twizmwaz.cardinal.module.modules.arrows;\n\nimport in.twizmwaz.cardinal.util.MiscUtil;\nimport org.bukkit.Bukkit;\nimport org.bukkit.ChatColor;\nimport org.bukkit.Color;\nimport org.bukkit.e...
java
chosen
[ { "from": "system", "value": "Add call for widget tool tips" }, { "from": "human", "value": "package info.u_team.u_team_test.screen;\n\nimport com.mojang.blaze3d.matrix.MatrixStack;\n\nimport info.u_team.u_team_core.gui.UContainerScreen;\nimport info.u_team.u_team_test.TestMod;\nimport info.u_te...
java
chosen
[ { "from": "system", "value": "Use assertThat instead of assertTrue\n\nhttp://forums.gradle.org/gradle/topics/improvement_ideas_for_the_build_init_plugin\n" }, { "from": "human", "value": "import org.junit.Test;\n\nimport static org.junit.Assert.*;\n\npublic class LibraryTest {\n\n @Test\n ...
java
chosen