conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Use ExecutorService instead of Executor\n" }, { "from": "human", "value": "package de.haw.vs.nameservice.connectionhandler;\n\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\n\nimport java.io.IOException;\nimport java.net.ServerSocket;\nimport java.net.So...
java
chosen
[ { "from": "system", "value": "Add getter for unverified credentials\n" }, { "from": "human", "value": "package io.joss.graphql.jersey.resource;\n\nimport java.util.List;\n\nimport io.joss.graphql.jersey.auth.RegistryAuthValue;\nimport lombok.ToString;\n\n@ToString\npublic class UnverifiedCredent...
java
chosen
[ { "from": "system", "value": "Use base because everyone can use the template view\n\ngit-svn-id: 4b387fe5ada7764508e2ca96c335714e4c1692c6@750 0d517254-b314-0410-acde-c619094fa49f\n" }, { "from": "human", "value": "package edu.northwestern.bioinformatics.studycalendar.web.template;\n\nimport edu....
java
chosen
[ { "from": "system", "value": "Fix constructor to identify wrong period\n" }, { "from": "human", "value": "package fr.paris10.projet.assogenda.assogenda.util;\n\n/**\n * Created by valentin on 22/01/17.\n */\n\npublic class Period {\n private int begin;\n private int end;\n\n public Peri...
java
chosen
[ { "from": "system", "value": "Fix send message delayed when the message has conflict\n" }, { "from": "human", "value": "package info.izumin.android.bletia;\n\nimport android.os.Handler;\nimport android.os.HandlerThread;\nimport android.os.Message;\n\nimport org.jdeferred.Promise;\n\nimport info....
java
chosen
[ { "from": "system", "value": "Fix CML Update to proper API endpoint\n" }, { "from": "human", "value": "package com.infonuascape.osrshelper.tracker.cml;\n\nimport com.android.volley.Request;\nimport com.infonuascape.osrshelper.utils.exceptions.PlayerNotFoundException;\nimport com.infonuascape.osr...
java
chosen
[ { "from": "system", "value": "Fix rhybcpStatuses in the get response\n" }, { "from": "human", "value": "package com.servinglynk.hmis.warehouse.core.model; \n\nimport java.util.ArrayList;\nimport java.util.List;\nimport com.servinglynk.hmis.warehouse.PaginatedModel;\nimport com.fasterxml.jackson....
java
chosen
[ { "from": "system", "value": "Fix user information parsing that had a different response format than expected - for now remove group info\n" }, { "from": "human", "value": "/*\n * Copyright 2015-2016 Hewlett-Packard Development Company, L.P.\n * Licensed under the MIT License (the \"License\"); ...
java
chosen
[ { "from": "system", "value": "Fix tests by constructing a new server and connection in setup\n" }, { "from": "human", "value": "package com.proxerme.library.util;\n\nimport android.support.test.InstrumentationRegistry;\n\nimport com.proxerme.library.connection.ProxerConnection;\n\nimport org.jun...
java
chosen
[ { "from": "system", "value": "Revert \"Adjust to changes in Gerrit core\"\n\nRevert submission 283559-currentuser-remove-cache-key\n\nReason for revert: Causes a latency regression for some hosts\nReverted Changes:\nI76bfd3ebc:Adjust to changes in Gerrit core\nIf7ccfd9a4:Remove unused CurrentUser#cacheKey m...
java
chosen
[ { "from": "system", "value": "Add warning if a MethodReader tries to read for an overloaded interface.\n" }, { "from": "human", "value": "package net.openhft.chronicle.core.time;\n\npublic class BackgroundTimeProviderMain {\n public static void main(String[] args) throws InterruptedException ...
java
chosen
[ { "from": "system", "value": "Fix in link at @see\n" }, { "from": "human", "value": "/**\n * <b>\n * Defines a set of themes for the maps\n * in the arena.<br>\n * </b>\n * \n * <p>\n * The themes are:\n * <ul>\n * <li> Continental\n * <li> Artical\n * <li> Desertic\n * <li> ...
java
chosen
[ { "from": "system", "value": "Add javadoc to period dao.\n" }, { "from": "human", "value": "package edu.northwestern.bioinformatics.studycalendar.dao;\n\nimport edu.northwestern.bioinformatics.studycalendar.domain.Period;\nimport org.springframework.transaction.annotation.Transactional;\n\n/**\n...
java
chosen
[ { "from": "system", "value": "Use the multi-platform gesellix/echo-server image\n" }, { "from": "human", "value": "package de.gesellix.gradle.docker.testutil;\n\nimport de.gesellix.docker.client.DockerClient;\n\nimport java.util.Objects;\n\npublic class TestImage {\n\n private final DockerClien...
java
chosen
[ { "from": "system", "value": "Add a missing newline at the end of the file" }, { "from": "human", "value": "/*\n * Copyright 2012 The Netty Project\n *\n * The Netty Project licenses this file to you under the Apache License,\n * version 2.0 (the \"License\"); you may not use this file except in...
java
chosen
[ { "from": "system", "value": "Fix file headers for missing BSD license.\n" }, { "from": "human", "value": "/*\n * Copyright (C) 2009 XStream Committers.\n * All rights reserved.\n *\n * Created on 15. August 2009 by Joerg Schaible\n */\npackage com.thoughtworks.xstream.io.xml;\n\n\n/**\n * A Xml...
java
chosen
[ { "from": "system", "value": "Fix import in test loot tables provider" }, { "from": "human", "value": "package info.u_team.u_team_test.data.provider;\n\nimport java.util.function.BiConsumer;\n\nimport info.u_team.u_team_core.data.*;\nimport info.u_team.u_team_test.init.*;\nimport net.minecraft.u...
java
chosen
[ { "from": "system", "value": "Update barcode validation error message.\n" }, { "from": "human", "value": "package com.worldofbuzz.autoconfigure.spring.web.formatting.fieldannotation.barcode;\n\nimport com.worldofbuzz.autoconfigure.spring.web.validator.BarcodeValidator;\nimport org.hibernate.vali...
java
chosen
[ { "from": "system", "value": "Allow mods to change the remainder crafting item after the item has been initialized.\n" }, { "from": "human", "value": "package net.darkhax.bookshelf.mixin.item;\n\nimport net.minecraft.world.item.CreativeModeTab;\nimport net.minecraft.world.item.Item;\nimport org....
java
chosen
[ { "from": "system", "value": "Work around occasionally thrown IllegalAccessException" }, { "from": "human", "value": "package com.codeaffine.extras.workingset.internal;\n\nimport static org.junit.Assert.assertNotNull;\n\nimport java.lang.reflect.Field;\nimport java.util.LinkedList;\nimport java....
java
chosen
[ { "from": "system", "value": "Access the base file in the JAR." }, { "from": "human", "value": "package com.github.googlei18n.tachyfont;\n\nimport java.io.IOException;\nimport java.util.Enumeration;\nimport java.util.jar.JarEntry;\nimport java.util.jar.JarFile;\n\nimport javax.servlet.http.*;\n\...
java
chosen
[ { "from": "system", "value": "Make it abstract and redefine createUnit() as abstract\n" }, { "from": "human", "value": "package com.redhat.ceylon.eclipse.core.typechecker;\n\nimport java.util.List;\n\nimport org.antlr.runtime.CommonToken;\n\nimport com.redhat.ceylon.compiler.typechecker.TypeChec...
java
chosen
[ { "from": "system", "value": "Speed up tests, only register what is required\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 * distributed with this work for additional informa...
java
chosen
[ { "from": "system", "value": "Revert \"Persuade PropertyBaseConfig to output arbitrary properties.\"\n\nThis reverts commit 0fb34a5f82c5554ac714c245241f47670b1f717d.\n" }, { "from": "human", "value": "package dk.statsbiblioteket.doms.transformers.common;\n\nimport java.io.File;\nimport java.io.F...
java
chosen
[ { "from": "system", "value": "Change null check to throw NPE.\n" }, { "from": "human", "value": "package uk.ac.ebi.quickgo.annotation.download.converter.helpers;\n\nimport uk.ac.ebi.quickgo.annotation.model.Annotation;\n\nimport java.util.List;\nimport java.util.stream.Collectors;\n\n/**\n * A h...
java
chosen
[ { "from": "system", "value": "Fix license header violations in concepts\n\nChange-Id: Ia575c2e64b4ce50990e0fadada34f257189c3370\nSigned-off-by: Thanh Ha <09ea4d3a79c8bee41a16519f6a431f6bc0fd8d6f@linuxfoundation.org>\n" }, { "from": "human", "value": "\r\n/*\r\n * Copyright (c) 2013 Cisco Systems...
java
chosen
[ { "from": "system", "value": "OF-2148: Change to wider type to prevent information loss\n\nPrevent a possible issue where a wider type gets added to narrower type.\n\nIdeally, this is replaced by proper types (eg: Duration, Instant), but the cost/benefit of applying that larger change does not pay off.\n" ...
java
chosen
[ { "from": "system", "value": "Fix problem introduced during recent refactor\n" }, { "from": "human", "value": "/*\n * Copyright 2020 Crown Copyright\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": "Make Render Type enum extensible\n\n" }, { "from": "human", "value": "package com.infinityraider.agricraft.api.v1.client;\n\nimport net.minecraftforge.api.distmarker.Dist;\nimport net.minecraftforge.api.distmarker.OnlyIn;\n\n/**\n * Enum representing the different t...
java
chosen
[ { "from": "system", "value": "Fix generated string format. (cosmetic)\n" }, { "from": "human", "value": "package org.dynamicfinder.jpa.handler;\n\n/**\n * @author xsalefter (xsalefter[at]gmail.com)\n */\npublic class LikeWithPostfixRestrictionHandler extends LikeComparatorRestrictionHandler {\n\...
java
chosen
[ { "from": "system", "value": "Add support for nullable Booleans\n\nSummary:\nBefore this diff, a null Boolean prop would cause an exception, as reported by priteshrnandgaonkar\n\n{F338566882}\n\nReviewed By: priteshrnandgaonkar\n\nDifferential Revision: D24111821\n\nfbshipit-source-id: ae33aa9d70d3878d62ce4...
java
chosen
[ { "from": "system", "value": "Throw exception when calling startTabBasedApp with zero tabs\n" }, { "from": "human", "value": "package com.reactnativenavigation.params.parsers;\n\nimport android.os.Bundle;\n\nimport com.reactnativenavigation.params.ActivityParams;\nimport com.reactnativenavigatio...
java
chosen
[ { "from": "system", "value": "Add get textures method for items\n\n" }, { "from": "human", "value": "package com.infinityraider.infinitylib.item;\n\nimport com.infinityraider.infinitylib.render.item.IItemRenderingHandler;\nimport net.minecraft.client.renderer.block.model.ModelResourceLocation;\n...
java
chosen
[ { "from": "system", "value": "Check for null value before appending\n" }, { "from": "human", "value": "package com.hubspot.jinjava.util;\n\nimport com.hubspot.jinjava.interpret.OutputTooBigException;\nimport java.io.Serializable;\nimport java.util.stream.IntStream;\n\npublic class LengthLimiting...
java
chosen
[ { "from": "system", "value": "Change project Borschv002. Add app functional with firebase statistics.\n" }, { "from": "human", "value": "package ua.uagames.borsch.v002;\n\nimport android.support.v7.app.AppCompatActivity;\nimport android.os.Bundle;\n\npublic class MainActivity extends AppCompatAc...
java
chosen
[ { "from": "system", "value": "Chore: Add missing license header block\n" }, { "from": "human", "value": "package org.flowable.engine.test.bpmn.event.variable;\n\nimport org.flowable.common.engine.api.delegate.Expression;\nimport org.flowable.common.engine.impl.el.ExpressionManager;\nimport org.f...
java
chosen
[ { "from": "system", "value": "Make So loading inside generated TMM delegates less confusing\n\nSummary:\n## Rationale\nInlining the maybeLoadSoLibrary private static method makes following the So load chain from TurboModuleManagerDelegate through ReactPackageTurboModuleManagerDelegate to each app's TurboMod...
java
chosen
[ { "from": "system", "value": "Fix keycloak auth filter not excluded all websocket request\n\nSigned-off-by: Sun Seng David Tan <a9f1581903e4bd3aaa1590f4fc9da1fa6887498b@redhat.com>\n" }, { "from": "human", "value": "package com.redhat.che.keycloak.server;\n\nimport java.io.IOException;\n\nimport...
java
chosen
[ { "from": "system", "value": "Change the tag to fit the size requirements of the log class\n" }, { "from": "human", "value": "package edu.berkeley.eecs.cfc_tracker.test.location;\n\nimport android.content.Intent;\nimport android.util.Log;\n\n/**\n * Created by shankari on 1/18/15.\n */\npublic c...
java
chosen
[ { "from": "system", "value": "Add create client method to client registration script\n" }, { "from": "human", "value": "/*\n * oxCore is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text.\n *\n * Copyright (c) 2014, Gluu\n */\n\npackage org.xdi.model.cu...
java
chosen
[ { "from": "system", "value": "Add missing @EnableDiscoveryClient in standalone server sample" }, { "from": "human", "value": "/*\n * Copyright © 2017 the original authors (http://cereebro.io)\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file ...
java
chosen
[ { "from": "system", "value": "Revert back to first hack attempt, maybe need to implement a better event subscription model\n\n\ngit-svn-id: cd28ba526fba5b39766c0a4e72305690b33c2c6e@702414 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "human", "value": "/*\n * Licensed to the Apache Softwa...
java
chosen
[ { "from": "system", "value": "Add todo about minor duplication.\n" }, { "from": "human", "value": "package com.adaptionsoft.games.uglytrivia;\n\nimport org.junit.Before;\nimport org.junit.Ignore;\nimport org.junit.Test;\n\nimport static org.hamcrest.MatcherAssert.assertThat;\nimport static org.h...
java
chosen
[ { "from": "system", "value": "Comment out a couple of lines\n" }, { "from": "human", "value": "package com.example;\n\npublic class SimpleCraps implements BettingGame {\n\n\t@Override\n\tpublic int playGame(int betAmount) {\n\t\t// TODO Add your code here. Return the amount the user won (or a ne...
java
chosen
[ { "from": "system", "value": "FORGE-1848: Fix CDI explosions. Weld doesn't like Anonmymous classes sometimes for some reason?\n" }, { "from": "human", "value": "package org.jboss.forge.addon.parser.java.beans;\n\nimport java.io.FileNotFoundException;\nimport java.util.ArrayList;\nimport java.uti...
java
chosen
[ { "from": "system", "value": "Add COLOR as an available field type\n" }, { "from": "human", "value": "/*\n * Copyright 2008-2013 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 the L...
java
chosen
[ { "from": "system", "value": "Add generation for spawn egg" }, { "from": "human", "value": "package info.u_team.u_team_test.data.provider;\n\nimport info.u_team.u_team_core.data.*;\nimport info.u_team.u_team_test.init.*;\n\npublic class TestItemModelsProvider extends CommonItemModelsProvider {\n...
java
chosen
[ { "from": "system", "value": "Add extra constructor for backwards compatibility\n" }, { "from": "human", "value": "package io.doist.recyclerviewext.click_listeners;\n\nimport android.support.v7.widget.RecyclerView;\nimport android.view.View;\n\npublic class ClickableViewHolder extends RecyclerVi...
java
chosen
[ { "from": "system", "value": "Update to Model Class for Database\n" }, { "from": "human", "value": "package com.example.textmate.sqlite.models;\n\nimport java.lang.String;\n\npublic class textMateScores {\n\n\n}\n" }, { "from": "gpt", "value": "package com.example.textmate.sqlite.mod...
java
chosen
[ { "from": "system", "value": "Revert \"Fixed error in test package.\"\n\nThis reverts commit 39bacc609f4a1ffd64f5469f32b1384cf56f9610.\n" }, { "from": "human", "value": "package test;\n\nimport models.ContactDB;\nimport org.junit.Test;\nimport static org.fest.assertions.Assertions.assertThat;\ni...
java
chosen
[ { "from": "system", "value": "Fix loading issue for reactions\n" }, { "from": "human", "value": "package dev.nincodedo.ninbot.components.reaction;\n\nimport lombok.Data;\nimport lombok.NoArgsConstructor;\nimport net.dv8tion.jda.api.entities.Message;\nimport net.dv8tion.jda.api.entities.MessageCh...
java
chosen
[ { "from": "system", "value": "Fix package name to keep Eclipse happy.\n" }, { "from": "human", "value": "/* This file is part of VoltDB.\n * Copyright (C) 2008-2017 VoltDB Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining\n * a copy of this software and associate...
java
chosen
[ { "from": "system", "value": "Add the commentRules to the factory" }, { "from": "human", "value": "package net.ceos.project.poi.annotated.core;\n\nimport java.lang.annotation.Annotation;\n\nimport net.ceos.project.poi.annotated.annotation.XlsElement;\nimport net.ceos.project.poi.annotated.annota...
java
chosen
[ { "from": "system", "value": "Add method to check if a string matches a regular expression\n" }, { "from": "human", "value": "package com.insightfullogic.lambdabehave.expectations;\n\nimport org.hamcrest.Matcher;\nimport org.hamcrest.Matchers;\n\nimport static org.junit.Assert.assertThat;\n\n/**...
java
chosen
[ { "from": "system", "value": "Test your fresh generated trip_updates.pb and service_alerts.pb locally\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...
java
chosen
[ { "from": "system", "value": "Use a varargs constructor instead of an array for the GVM Options\n" }, { "from": "human", "value": "/*\n * Copyright 2014 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 ...
java
chosen
[ { "from": "system", "value": "Fix '{' is not preceded with whitespace checkstyle warning" }, { "from": "human", "value": "/*\n * Copyright 2013 Harald Wellmann\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": "PUBDEV-6170: Add a technote explaining what to do when Jetty is missing\n" }, { "from": "human", "value": "package water.webserver.iface;\n\nimport java.util.Iterator;\nimport java.util.ServiceLoader;\n\n/**\n * Finds implementation of {@link HttpServerFacade} found...
java
chosen
[ { "from": "system", "value": "Clean up schema a bit\n" }, { "from": "human", "value": "package com.gurkensalat.osm.repository;\n\nimport com.gurkensalat.osm.entity.LinkedPlace;\nimport org.springframework.data.repository.PagingAndSortingRepository;\nimport org.springframework.data.repository.que...
java
chosen
[ { "from": "system", "value": "Remove unnecessary annotation as it matches the method name\n" }, { "from": "human", "value": "package org.realityforge.replicant.client.json.gwt;\n\nimport org.realityforge.gwt.propertysource.client.PropertySource;\nimport org.realityforge.gwt.propertysource.client...
java
chosen
[ { "from": "system", "value": "Make thymeleaf templates not cacheable, to ease jetty redeploys" }, { "from": "human", "value": "package basearch.integration;\r\n\r\nimport org.springframework.context.annotation.Bean;\r\nimport org.springframework.context.annotation.Configuration;\r\nimport org.th...
java
chosen
[ { "from": "system", "value": "Clean up and applyed code formatting\n\nSigned-off-by: coduz <ded987c534c96b462feeee54a345bec2d025746a@eurotech.com>\n" }, { "from": "human", "value": "/*******************************************************************************\n * Copyright (c) 2011, 2017 Euro...
java
chosen
[ { "from": "system", "value": "Make class final and adds private constructor\n" }, { "from": "human", "value": "package com.novoda.downloadmanager.lib;\n\nimport android.provider.BaseColumns;\n\n/**\n * Constants related to HTTP request headers associated with each download.\n */\npublic class Do...
java
chosen
[ { "from": "system", "value": "Fix Drive Bay tooltip saying it uses 16RF/t and not 8RF/t\n\nNot major enough for a new release, this'll get pushed along with whatever else winds up in 0.1.3.\n" }, { "from": "human", "value": "package com.unascribed.correlatedpotentialistics.block.item;\n\nimport ...
java
chosen
[ { "from": "system", "value": "Fix particle texture causing FileNotFoundException\n\nThe string used in the ResourceLocation for the sprinkler water particle\nwas for an icon instead of the texture. As a result, the client would\nthrow an exception and then it would instead use the \"missingo\" texture.\n\nA...
java
chosen
[ { "from": "system", "value": "Edit wrong test that make build fail\n" }, { "from": "human", "value": "package de.fau.amos.virtualledger.server;\n\nimport org.junit.Assert;\nimport org.junit.Test;\n\nimport javax.ws.rs.core.Response;\n\npublic class TestRestProviderTest {\n private final TestR...
java
chosen
[ { "from": "system", "value": "Check to see if injection point is same as current thread local value\n" }, { "from": "human", "value": "package io.quarkus.arc.impl;\n\nimport io.quarkus.arc.InjectableReferenceProvider;\nimport javax.enterprise.context.spi.CreationalContext;\nimport javax.enterpri...
java
chosen
[ { "from": "system", "value": "Fix javadocs cross link as Observable is not present locally\n" }, { "from": "human", "value": "package org.realityforge.arez.annotations;\n\nimport java.lang.annotation.ElementType;\nimport java.lang.annotation.Retention;\nimport java.lang.annotation.RetentionPolic...
java
chosen
[ { "from": "system", "value": "Add a stacktrace element to exception\n" }, { "from": "human", "value": "package net.kencochrane.raven.sentrystub.event.interfaces;\n\nimport com.fasterxml.jackson.annotation.JsonProperty;\n\npublic class ExceptionInterface {\n @JsonProperty(value = \"type\")\n ...
java
chosen
[ { "from": "system", "value": "42: Add direct inferred edges as part of loading SciGraph \n\nTask-Url: https://github.com/SciCrunch/SciGraph/issues/issue/42\n\nRemoves test to resolve inference issues" }, { "from": "human", "value": "package edu.sdsc.scigraph.owlapi.cases;\n\nimport static com.go...
java
chosen
[ { "from": "system", "value": "Remove default method to force compile failures\n" }, { "from": "human", "value": "package com.adaptris.core.stubs;\n\npublic interface UpgradedToJunit4 {\n\n // For concrete implementations to override\n default boolean isAnnotatedForJunit4() {\n return false;...
java
chosen
[ { "from": "system", "value": "Fix to class used in tests, generates the failures properly!" }, { "from": "human", "value": "/**\n * \n */\npackage org.eclipse.scanning.test.points;\n\nimport java.util.ArrayList;\nimport java.util.Iterator;\nimport java.util.List;\n\nimport org.eclipse.scanning.a...
java
chosen
[ { "from": "system", "value": "Add methods to retrieve a string[] as well as the underlying object if needed\n" }, { "from": "human", "value": "package com.peterphi.std.guice.common.serviceprops;\n\nimport com.google.inject.Provider;\nimport com.peterphi.std.guice.common.serviceprops.typed.TypedC...
java
chosen
[ { "from": "system", "value": "Fix non thread safe list\n\nIf seen this in our CI:\n\n[INFO] STDOUT: Caused by: java.lang.NullPointerException\nat java.util.LinkedList$ListItr.next(LinkedList.java:893)\n~[?:1.8.0_60]\nat\norg.stagemonitor.jdbc.p6spy.P6SpyMultiLogger.isCategoryEnabled(P6SpyMultiLogger.java:45...
java
chosen
[ { "from": "system", "value": "Comment did not make sense anymore\n" }, { "from": "human", "value": "/*\n * Copyright (c) OSGi Alliance (2008, 2009). All Rights Reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance w...
java
chosen
[ { "from": "system", "value": "Revert \"Debugger: fix the \"Pause\" button status.\" (see IDEA-227619)\n\nThis reverts commit bf6fb790\n\nGitOrigin-RevId: 09873c326f8290c4fc8e0002f4d26f4b2eb2ee86" }, { "from": "human", "value": "/*\n * Copyright 2000-2009 JetBrains s.r.o.\n *\n * Licensed under t...
java
chosen
[ { "from": "system", "value": "Add onClick handlers for buttons\n" }, { "from": "human", "value": "package ch.sheremet.dasfoo.rover.android.client.video;\n\nimport android.app.Fragment;\nimport android.os.Bundle;\nimport android.view.LayoutInflater;\nimport android.view.View;\nimport android.view...
java
chosen
[ { "from": "system", "value": "Fix vehicle move serializing (still no idea what it does)" }, { "from": "human", "value": "package protocolsupport.protocol.packet.middleimpl.clientbound.play.v_1_9_r1__1_9_r2__1_10;\n\nimport protocolsupport.api.ProtocolVersion;\nimport protocolsupport.protocol.pac...
java
chosen
[ { "from": "system", "value": "Make self posts without text bodies to not have any media adapter delegate\n" }, { "from": "human", "value": "package com.veyndan.redditclient.post.media.mutator;\n\nimport com.veyndan.redditclient.api.reddit.model.PostHint;\nimport com.veyndan.redditclient.post.med...
java
chosen
[ { "from": "system", "value": "Enable commented out test for OrderingFrom. (Also add Apache copyright notice)\n" }, { "from": "human", "value": "package com.google.errorprone.bugpatterns;\n\nimport com.google.errorprone.CompilationTestHelper;\n\nimport org.junit.Before;\nimport org.junit.Test;\n\...
java
chosen
[ { "from": "system", "value": "Use verbose gc logging for logserver-container\n" }, { "from": "human", "value": "// Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\npackage com.yahoo.vespa.model.admin;\n\nimport com.yahoo.config.model....
java
chosen
[ { "from": "system", "value": "Fix public key timestamp verification.\n" }, { "from": "human", "value": "/*\n * SPDX-License-Identifier: MIT\n *\n * The MIT License (MIT)\n *\n * Copyright (c) 2015-2022 games647 and contributors\n *\n * Permission is hereby granted, free of charge, to any person ...
java
chosen
[ { "from": "system", "value": "Fix tests after the previous commit\n" }, { "from": "human", "value": "/*\n * Copyright 2017 The RoboZonky Project\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": "Cover `org.gradle.plugin.use` with nullability annotations\n" }, { "from": "human", "value": "/*\n * Copyright 2014 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 comp...
java
chosen
[ { "from": "system", "value": "Set test to ignore failed MBean registration\n" }, { "from": "human", "value": "package org.axonframework.boot.autoconfig;\n\nimport org.axonframework.axonserver.connector.query.AxonServerQueryBus;\nimport org.axonframework.queryhandling.QueryBus;\nimport org.axonfr...
java
chosen
[ { "from": "system", "value": "Add example of a disposer method\n" }, { "from": "human", "value": "package pl.dawidstepien.jee.examples;\n\nimport java.text.SimpleDateFormat;\n\nimport javax.enterprise.inject.Produces;\nimport javax.inject.Inject;\n\npublic class SimpleDateFormatProducer {\n\n @...
java
chosen
[ { "from": "system", "value": "Fix Queued states to be pending instead of paused\n" }, { "from": "human", "value": "package com.novoda.downloadmanager.lib;\n\npublic class PublicFacingStatusTranslator {\n\n public int translate(int status) {\n switch (status) {\n case Downloa...
java
chosen
[ { "from": "system", "value": "Fix broken test on some java 8 versions\n" }, { "from": "human", "value": "package com.novoda.simplechromecustomtabs;\n\nimport com.novoda.notils.exception.DeveloperError;\n\nimport org.junit.Test;\nimport org.junit.runner.RunWith;\nimport org.robolectric.Robolectri...
java
chosen
[ { "from": "system", "value": "Check other whitespace characters, e.g. tabs\n" }, { "from": "human", "value": "package se.vidstige.jadb.managers;\n\npublic class Bash {\n public static String quote(String s) {\n // TODO: Should also check other whitespace\n if (!s.contains(\" \")...
java
chosen
[ { "from": "system", "value": "Comment out resultDisplay check for Help Window test\n" }, { "from": "human", "value": "package guitests;\n\nimport static org.junit.Assert.assertFalse;\nimport static org.junit.Assert.assertTrue;\n\nimport org.junit.Test;\n\nimport guitests.guihandles.HelpWindowHan...
java
chosen
[ { "from": "system", "value": "Read the description for changeHit in the viewspot class to know how to use it properly\n" }, { "from": "human", "value": " \n\n\n/**\n * Write a description of interface Spot here.\n * \n * @author (your name) \n * @version (a version number or a date)\n */\npublic...
java
chosen
[ { "from": "system", "value": "Add Model Read test file\n그리고 뭔지 모르겠는 경고가 하나 뜬다 ,,,;;\n" }, { "from": "human", "value": "package model;\n\nimport org.junit.Test;\nimport static org.junit.Assert.*;\n\n/**\n * Created by Elliad on 2016-05-08.\n */\npublic class FileModelTest {\n @Test\n public...
java
chosen
[ { "from": "system", "value": "webadmin: Implement permission sorting by role icon\n\nImplemented sorting for permission subtabs according to the role icon\n(ordinary user is lesser than administrator).\n\nChange-Id: I3a2c97315bda060e44b662562e1e08652881d72f\nSigned-off-by: Lior Vernia <0888e9bab805ddf64d6b8...
java
chosen
[ { "from": "system", "value": "Update copyright notice with MIT license" }, { "from": "human", "value": "/*++\r\n\r\nNASM Assembly Language Plugin\r\nCopyright (c) 2017-2018 Aidan Khoury. All rights reserved.\r\n\r\nThis program is free software: you can redistribute it and/or modify\r\nit under ...
java
chosen
[ { "from": "system", "value": "Make java file compile under 1.6.\n\nI still have 1.6 installed. So the two simple fixes are necessary to make my build pass for now.\n" }, { "from": "human", "value": "package test;\n\nimport dotty.tools.dotc.core.Contexts;\nimport org.junit.*;\n\nimport java.lang....
java
chosen
[ { "from": "system", "value": "Set default value for event stream module\n" }, { "from": "human", "value": "/*\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *...
java
chosen
[ { "from": "system", "value": "Add some Java 8-isms to coverage merger.\n" }, { "from": "human", "value": "package com.squareup.spoon;\n\nimport com.google.common.base.Function;\nimport org.jacoco.core.tools.ExecFileLoader;\n\nimport java.io.File;\nimport java.io.IOException;\nimport java.util.Co...
java
chosen
[ { "from": "system", "value": "Test case for loading stream from instance field\n\n\ngit-svn-id: e7d6bde23f017c9ff4efd468d79d66def666766b@2608 eae3c2d3-9b19-0410-a86e-396b6ccb6ab3\n" }, { "from": "human", "value": "import java.io.*;\n\npublic class OpenStream {\n\tpublic static void main(String[]...
java
chosen
[ { "from": "system", "value": "Remove comment with debugging stuff" }, { "from": "human", "value": "package com.codeski.nbt.tags;\n\nimport java.nio.ByteBuffer;\nimport java.nio.charset.Charset;\n\npublic class NBTLong extends NBT {\n\tpublic static final byte LENGTH = 8;\n\tpublic static final b...
java
chosen
[ { "from": "system", "value": "Update Fraction to Recurring Decimal\n" }, { "from": "human", "value": "package problems;\n\npublic class FractionToRecurringDecimal {\n public String fractionToDecimal(int numerator, int denominator) {\n if (denominator == 0)\n return \"NULL\";...
java
chosen