conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Change class name to match file name\n" }, { "from": "human", "value": "package com.boundary.metrics.vmware.client.client.subaccount;\n\nimport com.fasterxml.jackson.annotation.JsonIgnoreProperties;\nimport com.fasterxml.jackson.annotation.JsonProperty;\nimport org....
java
chosen
[ { "from": "system", "value": "Use most recent Trusty Tahir image 14.4.1" }, { "from": "human", "value": "package org.lamport.tla.toolbox.jcloud;\n\npublic class EC2CloudTLCInstanceParameters extends CloudTLCInstanceParameters {\n\n\t@Override\n\tpublic String getOwnerId() {\n\t\t// ubuntu offici...
java
chosen
[ { "from": "system", "value": "Fix Part type to match updates to Material System\n\n" }, { "from": "human", "value": "package com.teamacronymcoders.contenttweaker.modules.materials.parttypes;\n\nimport com.teamacronymcoders.base.materialsystem.materialparts.MaterialPart;\nimport com.teamacronymco...
java
chosen
[ { "from": "system", "value": "Add signal handler deregistration example\n" }, { "from": "human", "value": "package com.github.hypfvieh.dbus.examples.signal;\n\nimport java.io.IOException;\n\nimport org.freedesktop.dbus.connections.impl.DBusConnection;\nimport org.freedesktop.dbus.connections.imp...
java
chosen
[ { "from": "system", "value": "Add generic type to ArrayList\n" }, { "from": "human", "value": "package fr.masciulli.drinks.adapter;\n\nimport android.content.Context;\nimport android.view.LayoutInflater;\nimport android.view.View;\nimport android.view.ViewGroup;\nimport android.widget.BaseAdapte...
java
chosen
[ { "from": "system", "value": "Create new TDD unit test\n\nempty test, works\n\nSigned-off-by: Brian Cunnie <fde49c6ca7e18d4f9685a8cfce618c9bded9b06b@gmail.com>\n" }, { "from": "human", "value": "package com.blabbertabber.blabbertabber;\n\nimport junit.framework.TestCase;\n\n/**\n * Created by cu...
java
chosen
[ { "from": "system", "value": "Add status code to server error.\n" }, { "from": "human", "value": "package com.github.aureliano.achmed.common;\n\npublic enum StatusCode {\n\n\tSUCCESS(0),\n\tCLI_PARAMETERS_ERROR(1),\n\tCOMMON_EXECUTION_ERROR(2),\n\tVALIDATION_ERROR(3),\n\tRESOURCE_EXECUTION_ERROR...
java
chosen
[ { "from": "system", "value": "Remove caching of normalized paths again\n\nCaching them avoided some short term allocations, but\nsignificantly increased long-term heap consumption.\n" }, { "from": "human", "value": "/*\n * Copyright 2016 the original author or authors.\n *\n * Licensed under the...
java
chosen
[ { "from": "system", "value": "tool-parent: Move progress in toolbar to left\n\n" }, { "from": "human", "value": "package com.speedment.tool.core.internal.toolbar;\n\nimport com.speedment.common.injector.annotation.Inject;\nimport com.speedment.generator.core.component.EventComponent;\nimport com...
java
chosen
[ { "from": "system", "value": "Change actual return type of SQL editor provider" }, { "from": "human", "value": "package com.codenvy.ide.ext.datasource.client.sqleditor;\n\nimport com.codenvy.ide.api.editor.CodenvyTextEditor;\nimport com.codenvy.ide.api.editor.DocumentProvider;\nimport com.codenv...
java
chosen
[ { "from": "system", "value": "Revert \"Number of days included in new newsletter is now 14 to compensate for one missing issue\"\n\nThis reverts commit 32e900cf\n" }, { "from": "human", "value": "package com.jvm_bloggers.core.newsletter_issues;\n\nimport lombok.experimental.UtilityClass;\n\n@Uti...
java
chosen
[ { "from": "system", "value": "Add menus and save form data to sqlite code" }, { "from": "human", "value": "package com.rcarrillocruz.android.openstackdroid;\n\nimport android.app.Activity;\nimport android.os.Bundle;\n\npublic class ConnectionProfileActivity extends Activity {\n\n\t@Override\n\tp...
java
chosen
[ { "from": "system", "value": "Add registerScreen Method in the client registry with a supplier type" }, { "from": "human", "value": "package info.u_team.u_team_core.util.registry;\n\nimport java.util.function.*;\n\nimport net.minecraft.client.renderer.tileentity.*;\nimport net.minecraft.client.s...
java
chosen
[ { "from": "system", "value": "Add helper method to retrieve class name from entry in CSV file\n" }, { "from": "human", "value": "package age;\n\nimport java.io.IOException;\nimport java.nio.file.Files;\nimport java.nio.file.Path;\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic cla...
java
chosen
[ { "from": "system", "value": "Enable embedding/saving to basket \"info\" components in BackendUtils\n" }, { "from": "human", "value": "package gr.demokritos.iit.ydsapi.model;\n\nimport java.util.HashSet;\nimport java.util.Set;\n\n/**\n * accepted component types.\n *\n * @author George K. <gkiom...
java
chosen
[ { "from": "system", "value": "Add responseError: takes ErrorType and maps to HTTP error\n" }, { "from": "human", "value": "/*\n * Copyright (c) 2015-2016, Index Data\n * All rights reserved.\n * See the file LICENSE for details.\n */\npackage okapi.util;\n\nimport io.vertx.core.http.HttpServerRe...
java
chosen
[ { "from": "system", "value": "Increase waiting time after two players have joined in the test\n" }, { "from": "human", "value": "/**\n * Created by andybb on 18.03.15.\n */\n\n\nimport org.junit.Test;\nimport org.junit.Before;\nimport static org.junit.Assert.*;\n\nimport com.mygdx.game.controlle...
java
chosen
[ { "from": "system", "value": "Update a helper class to perform a one-shot task. Add retry logic.\n" }, { "from": "human", "value": "package org.deviceconnect.android.deviceplugin.alljoyn;\n\nimport android.content.Context;\nimport android.os.Bundle;\nimport android.support.annotation.NonNull;\n\...
java
chosen
[ { "from": "system", "value": "Disable smoothing by default. Smoothing can be very expensive." }, { "from": "human", "value": "package com.rockwellcollins.atc.agree.analysis.preferences;\n\nimport org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;\nimport org.eclipse.jface.prefer...
java
chosen
[ { "from": "system", "value": "core: Add missing serial version id\n\nChange-Id: Ie54df9436a93b0f850d0b0ec3634439753b10f38\nSigned-off-by: Moti Asayag <da1debb83a8e12b6e8822edf2c275f55cc51b720@redhat.com>\n" }, { "from": "human", "value": "package org.ovirt.engine.core.common.queries;\n\nimport o...
java
chosen
[ { "from": "system", "value": "Make sure configured annotation is valid\n" }, { "from": "human", "value": "package com.example.inverse;\n\nimport arez.annotations.ArezComponent;\nimport arez.annotations.Inverse;\nimport arez.annotations.Reference;\nimport arez.annotations.ReferenceId;\nimport jav...
java
chosen
[ { "from": "system", "value": "Correct type on search response\n" }, { "from": "human", "value": "package com.youcruit.billogram.objects.response.billogram;\n\nimport com.youcruit.billogram.objects.response.common.SearchResponse;\n\npublic class BillogramSearchResponse extends SearchResponse<Comp...
java
chosen
[ { "from": "system", "value": "Throw exception instead of returning 404 manually to get the standard json\n" }, { "from": "human", "value": "package org.col.dw.jersey.filter;\n\nimport javax.ws.rs.container.ContainerRequestContext;\nimport javax.ws.rs.container.ContainerResponseContext;\nimport j...
java
chosen
[ { "from": "system", "value": "Fix version is not removed correctly\n\nWhen executed by ./gradlew bootRun, it works,\nbut when executed by java -jar, it doesn't work\nbecause of duplicate separator(/).\n" }, { "from": "human", "value": "package com.example.spring.config;\n\nimport lombok.extern.s...
java
chosen
[ { "from": "system", "value": "Change synchronization for `get` method in `lazy` module\n" }, { "from": "human", "value": "package storm.lazy;\n\npublic class Lazy<T> {\n\n public interface LazyProvider<T> {\n T provide();\n }\n\n private final LazyProvider<T> mProvider;\n\n pr...
java
chosen
[ { "from": "system", "value": "Extend ServletModule instead of HttpPluginModule\n\nAs described in I3b89150d1.\n\nChange-Id: Ic91ce95719c6bccc73cc29a2139a2274f20d1939\n" }, { "from": "human", "value": "// Copyright (C) 2013 The Android Open Source Project\n//\n// Licensed under the Apache License...
java
chosen
[ { "from": "system", "value": "Remove confilcts with master 2, missed something" }, { "from": "human", "value": "package edu.kit.ipd.crowdcontrol.objectservice.mail;\n\nimport javax.mail.MessagingException;\nimport java.io.UnsupportedEncodingException;\n\n/**\n * Describes an interface to send ma...
java
chosen
[ { "from": "system", "value": "Fix Crash with No NFC\n\nSince getDefaultAdapter returns null if there isn't an adapter in the\ndevice, only operate on it if it actually exists.\n\nFixes #93\n" }, { "from": "human", "value": "package net.somethingdreadful.MAL;\n\nimport android.annotation.TargetAp...
java
chosen
[ { "from": "system", "value": "Revert \"OLMIS-6402: Renamed versionId to versionNumber\"\n\nThis reverts commit b31873559ed232c086176f952ee94eee6f30b87b.\n" }, { "from": "human", "value": "package org.openlmis.contract_tests.hapifhir;\n\nimport static org.hamcrest.Matchers.hasSize;\nimport static...
java
chosen
[ { "from": "system", "value": "Remove stunnel_pass from the crash reporter\n" }, { "from": "human", "value": "package com.ubergeek42.WeechatAndroid;\n\nimport org.acra.ACRA;\nimport org.acra.ReportingInteractionMode;\nimport org.acra.annotation.ReportsCrashes;\n\nimport android.app.Application;\n...
java
chosen
[ { "from": "system", "value": "Add --tasklist (no dash) and better description\n" }, { "from": "human", "value": "package forager.ui;\n\nimport com.beust.jcommander.Parameter;\nimport com.beust.jcommander.Parameters;\n\nimport forager.server.Overlord;\n\n@Parameters(separators = \"=\",\n c...
java
chosen
[ { "from": "system", "value": "Use the more generic IMethodInvoker interface instead of ISimpleMethodInvoker\n" }, { "from": "human", "value": "package com.example.samplemodule;\n\nimport java.util.List;\n\nimport com.artech.application.MyApplication;\nimport com.artech.externalapi.ExternalApi;\n...
java
chosen
[ { "from": "system", "value": "Use Objects.equals to simplify equals code\n" }, { "from": "human", "value": "package org.realityforge.replicant.client;\n\nimport java.util.Objects;\nimport javax.annotation.Nonnull;\nimport javax.annotation.Nullable;\n\npublic class ChannelDescriptor\n{\n @Nonnul...
java
chosen
[ { "from": "system", "value": "Use equals instead of equalsIgnoreCase\n\nCo-authored-by: Jesse Glick <f03f7b035106bba3da9b565be6f0115dc0d88f87@cloudbees.com>" }, { "from": "human", "value": "package org.jenkins.tools.test.hook;\n\nimport hudson.model.UpdateSite;\nimport hudson.util.VersionNumber;...
java
chosen
[ { "from": "system", "value": "Add additional note to the callback throttle.\n" }, { "from": "human", "value": "package com.novoda.downloadmanager;\n\n/**\n * Controls the rate at which a {@link DownloadFile} calls back to\n * a {@link DownloadBatch}. Essentially controls the rate of notification...
java
chosen
[ { "from": "system", "value": "Add todo comment about work to be completed\n" }, { "from": "human", "value": "/*\n * Copyright 2014 Timothy Brooks\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": "Remove change set links from quick search as it will likely conflict with issues and builds too (on svn at least)\n" }, { "from": "human", "value": "/*\n * HeadsUp Agile\n * Copyright 2009-2012 Heads Up Development Ltd.\n *\n * This program is free software: you can...
java
chosen
[ { "from": "system", "value": "Add effect_only parameter to Lightning action\n" }, { "from": "human", "value": "package com.elmakers.mine.bukkit.action.builtin;\n\nimport com.elmakers.mine.bukkit.action.BaseSpellAction;\nimport com.elmakers.mine.bukkit.api.action.CastContext;\nimport com.elmakers...
java
chosen
[ { "from": "system", "value": "Add test for null connection.\n" }, { "from": "human", "value": "package com.bazaarvoice.zookeeper.dropwizard;\n\nimport com.bazaarvoice.zookeeper.ZooKeeperConnection;\nimport org.junit.Test;\n\nimport static org.mockito.Mockito.mock;\nimport static org.mockito.Mock...
java
chosen
[ { "from": "system", "value": "Fix IITemRightClick using wrong type\n\n" }, { "from": "human", "value": "package com.teamacronymcoders.contenttweaker.modules.vanilla.functions;\n\nimport com.teamacronymcoders.contenttweaker.api.ctobjects.entity.player.ICTPlayer;\nimport com.teamacronymcoders.cont...
java
chosen
[ { "from": "system", "value": "Convert record to class, since we need to build this for JDK 8\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.document.json;\n\nimport com.yahoo.document....
java
chosen
[ { "from": "system", "value": "Add test for append(null) to LengthLimitingStringBuilder\n" }, { "from": "human", "value": "package com.hubspot.jinjava.util;\n\nimport static org.assertj.core.api.Assertions.assertThatThrownBy;\n\nimport com.hubspot.jinjava.interpret.OutputTooBigException;\nimport ...
java
chosen
[ { "from": "system", "value": "Add getter for filename to interface" }, { "from": "human", "value": "/*-\n * Copyright 2016 Diamond Light Source Ltd.\n *\n * All rights reserved. This program and the accompanying materials\n * are made available under the terms of the Eclipse Public License v1.0\...
java
chosen
[ { "from": "system", "value": "WICKET-6786: Fix license header and add some comments\n" }, { "from": "human", "value": "package org.apache.wicket.protocol.http;\n\npublic enum ResourceIsolationOutcome\n{\n\tALLOWED,\n\tDISALLOWED,\n\tUNKNOWN\n}\n" }, { "from": "gpt", "value": "/*\n * ...
java
chosen
[ { "from": "system", "value": "Synchronize access to ServiceLoaders to prevent race conditions\n" }, { "from": "human", "value": "package org.opencds.cqf.cql.engine.serializing;\n\nimport java.util.Iterator;\nimport java.util.ServiceLoader;\n\npublic class CqlLibraryReaderFactory {\n\n static ...
java
chosen
[ { "from": "system", "value": "Configure RestTemplateCustomizer bean to provide ribbon client request factory to rest template\n" }, { "from": "human", "value": "package org.dontpanic.spanners.springmvc.config;\n\nimport org.apache.log4j.Logger;\nimport org.springframework.beans.factory.annotatio...
java
chosen
[ { "from": "system", "value": "Check whether iterator is already closed\n\nSometimes the iterator may not be null but may be already closed. This\noccurs because we have used the EntryIteratorDAO previously to read up to the end\nof the iterator (which will close it). This now checks for the closed iterator ...
java
chosen
[ { "from": "system", "value": "Add output option to list of allowed parameters\n" }, { "from": "human", "value": "package com.phsshp.config;\n\nimport org.apache.commons.cli.*;\n\npublic class CommandLineParser {\n\n private final Options options;\n\n public CommandLineParser() {\n o...
java
chosen
[ { "from": "system", "value": "Add javadoc, Update to extend AbstractNodeListener" }, { "from": "human", "value": "package com.apexmob.skink.listeners;\r\n\r\nimport org.slf4j.Logger;\r\nimport org.slf4j.LoggerFactory;\r\n\r\nimport com.apexmob.skink.EndElement;\r\nimport com.apexmob.skink.NodeLi...
java
chosen
[ { "from": "system", "value": "Fix for a potential NPE\n\nSigned-off-by: Gorkem Ercan <401a00c042ea0ce3e74815aa3e2dca472ed1e2f8@gmail.com>" }, { "from": "human", "value": "/*******************************************************************************\n * Copyright (c) 2013, 2014 Red Hat, Inc. \...
java
chosen
[ { "from": "system", "value": "Fix error / keyboard side effect because of problem between the chair and the keyboard\n" }, { "from": "human", "value": "/*\n * Copyright (C)2015 D. Plaindoux.\n *\n * This program is free software; you can redistribute it and/or modify it\n * under the terms of th...
java
chosen
[ { "from": "system", "value": "Fix can not view apis in store\n" }, { "from": "human", "value": "\n/***********************************************************************************************************************\n *\n * *\n * * Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All R...
java
chosen
[ { "from": "system", "value": "Allow enabling transitive change propagation in test metamodel domain\n" }, { "from": "human", "value": "package tools.vitruv.testutils.domains;\n\nimport java.util.List;\n\nimport allElementTypes.AllElementTypesPackage;\n\npublic final class AllElementTypesDomain e...
java
chosen
[ { "from": "system", "value": "Add simple handler for demonstrating usage.\n" }, { "from": "human", "value": "// Copyright 2014, Kevin Ko <kevin@faveset.com>\n\npackage com.faveset.khttpserver;\n\nimport java.io.IOException;\nimport sun.misc.Signal;\nimport sun.misc.SignalHandler;\n\nimport com.f...
java
chosen
[ { "from": "system", "value": "Set BroadCastConfig width and height to Integers, and check for null values; return -1 if null.\nThis allows us to avoid the problem of ints defaulting to 0 which messes up the default settings for screen width/height\n" }, { "from": "human", "value": "package io.ci...
java
chosen
[ { "from": "system", "value": "Call GC to accelerate the analysis\n" }, { "from": "human", "value": "package anaware.leakcanarysample;\n\nimport android.os.Bundle;\nimport android.support.v7.app.AppCompatActivity;\n\nimport com.squareup.leakcanary.RefWatcher;\n\npublic class AnotherActivity exten...
java
chosen
[ { "from": "system", "value": "Check for null and empty body before trying to map a json string to an object.\n\nSigned-off-by: Clement Escoffier <6397137e57d1f87002962a37058f2a1c76fca9db@gmail.com>\n" }, { "from": "human", "value": "package org.wisdom.content.bodyparsers;\n\nimport org.apache.fe...
java
chosen
[ { "from": "system", "value": "Add support of hexadecimal string for CosString\n" }, { "from": "human", "value": "package org.verapdf.model.impl.pb.cos;\n\nimport org.apache.log4j.Logger;\nimport org.apache.pdfbox.cos.COSString;\nimport org.verapdf.model.coslayer.CosString;\n\n/**\n * Created by ...
java
chosen
[ { "from": "system", "value": "Remove unused and unavailable imports\n\ngit-svn-id: 2c527eb49caa05e19d6b2be874bf74fa9d7ea670@497304 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "human", "value": "package org.apache.maven.plugin.version;\n\n/*\n * Copyright 2001-2005 The Apache Software Fo...
java
chosen
[ { "from": "system", "value": "Make nested interface 'Entry' public again, or else the nightly\nbuild seems to break. Not sure if this is a compiler bug or not.\n" }, { "from": "human", "value": "\n/*\n * Java core library component.\n *\n * Copyright (c) 1997, 1998\n * Transvirtual Technolo...
java
chosen
[ { "from": "system", "value": "Make changes according to review\n" }, { "from": "human", "value": "package com.slicingdice.jslicer.exceptions.api.index;\n\nimport com.slicingdice.jslicer.exceptions.api.SlicingDiceException;\n\npublic class IndexInvalidRangeException extends SlicingDiceException {...
java
chosen
[ { "from": "system", "value": "Fix cucumber test results location on device\n" }, { "from": "human", "value": "package com.neoranga55.cleanguitestarchitecture.test;\n\nimport cucumber.api.CucumberOptions;\n\n/**\n * This class configures the Cucumber test framework and Java glue code\n */\n@Cucum...
java
chosen
[ { "from": "system", "value": "Remove unneeded code in example app\n" }, { "from": "human", "value": "package com.braintreepayments.popupbridge.example;\n\nimport android.app.Activity;\nimport android.os.Bundle;\nimport android.webkit.WebView;\n\nimport com.braintreepayments.popupbridge.PopupBrid...
java
chosen
[ { "from": "system", "value": "Update test for changed indexing" }, { "from": "human", "value": "package org.vaadin.elements;\n\nimport org.junit.Assert;\nimport org.junit.Before;\nimport org.junit.Test;\nimport org.vaadin.elements.impl.RootImpl;\n\nimport com.vaadin.ui.Label;\n\nimport elemental...
java
chosen
[ { "from": "system", "value": "Update SdlArtwork test to have reusable equalTest\n" }, { "from": "human", "value": "package com.smartdevicelink.managers.file;\n\nimport com.smartdevicelink.AndroidTestCase2;\nimport com.smartdevicelink.managers.file.filetypes.SdlArtwork;\nimport com.smartdevicelin...
java
chosen
[ { "from": "system", "value": "[DVI-34] Make code conform to Checkstyle standards\n" }, { "from": "human", "value": "/**\n * Copyright (C) 2009 - 2010 by OpenGamma Inc.\n *\n * Please see distribution for license.\n */\npackage com.opengamma.financial.security.option;\n\nimport com.opengamma.fina...
java
chosen
[ { "from": "system", "value": "Allow save job that had no GH project property before.\n" }, { "from": "human", "value": "package org.jenkinsci.plugins.github.pullrequest;\n\nimport hudson.Extension;\nimport hudson.model.AbstractProject;\nimport hudson.model.Action;\nimport hudson.model.TransientP...
java
chosen
[ { "from": "system", "value": "Correct filename argument in constructor\n" }, { "from": "human", "value": "/* *\\\n** SICU Stress Measurement System **\n** Project P04 ...
java
chosen
[ { "from": "system", "value": "Remove unused imports in GUI class\n" }, { "from": "human", "value": "package interactivelearner.gui;\n\nimport interactivelearner.classifier.NaiveBayesianClassifier;\nimport interactivelearner.data.Corpus;\nimport javafx.application.Application;\nimport javafx.even...
java
chosen
[ { "from": "system", "value": "JCR-1878: Use Apache Tika for text extraction\n\nAutomatically improve any configurations that use DefaultTextExtractor by making that class extend TikaTextExtractor.\n\ngit-svn-id: 02b679d096242155780e1604e997947d154ee04a@762813 13f79535-47bb-0310-9956-ffa450edef68\n" }, {...
java
chosen
[ { "from": "system", "value": "Complete alias list test case\n" }, { "from": "human", "value": "package seedu.todo.guitests;\n\nimport static org.junit.Assert.*;\n\nimport org.junit.Test;\n\nimport seedu.todo.guitests.guihandles.AliasItemHandle;\n\n// @@author A0139812A\npublic class AliasCommand...
java
chosen
[ { "from": "system", "value": "Save descriptor into field so can start parsing other elkements\n" }, { "from": "human", "value": "package org.realityforge.arez.processor;\n\nimport javax.annotation.Nonnull;\nimport javax.lang.model.element.Element;\nimport javax.lang.model.element.Modifier;\nimpo...
java
chosen
[ { "from": "system", "value": "Increase `Created` column width to accommodate timezone ID\n" }, { "from": "human", "value": "/*\n * Copyright 2016 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 ...
java
chosen
[ { "from": "system", "value": "[18009] Remove HTTPS support, fix swagger test" }, { "from": "human", "value": "package info.elexis.server.core.rest.test.swagger;\n\nimport static info.elexis.server.core.rest.test.AllTests.REST_URL;\nimport static org.junit.Assert.assertEquals;\n\nimport java.io.I...
java
chosen
[ { "from": "system", "value": "Add bipartite pattern matching solution\n" }, { "from": "human", "value": "/**\n * @Company Facebook\n *\n * Given two strings, str and pattern, return true if the str has a valid mapping between the words in str and the characters in the pattern.\n * The str will b...
java
chosen
[ { "from": "system", "value": "Change default close operation of main window to \"dispose\"\nAdd windowClosed listener which interrupts all model threads\n" }, { "from": "human", "value": "package ru.nsu.ccfit.bogush.view;\n\nimport ru.nsu.ccfit.bogush.CarFactoryModel;\n\nimport javax.swing.*;\n\...
java
chosen
[ { "from": "system", "value": "[YAKHMI-870] SCTUnit: Create abstract SGenGenerator for SCTUnit\n-added generated Code" }, { "from": "human", "value": "package org.yakindu.sct.generator.core;\n\nimport org.eclipse.core.resources.IWorkspaceRoot;\nimport org.eclipse.xtext.generator.JavaIoFileSystemA...
java
chosen
[ { "from": "system", "value": "Add additional test case for setting custom properties by a collection.\n" }, { "from": "human", "value": "package de.gurkenlabs.litiengine.environment.tilemap.xml;\n\nimport org.junit.Test;\n\nimport junit.framework.Assert;\n\npublic class CustomPropertyProviderTes...
java
chosen
[ { "from": "system", "value": "Set main() to test data." }, { "from": "human", "value": "package eu.liveandgov.wp1.human_activity_recognition;\n\nimport eu.liveandgov.wp1.human_activity_recognition.containers.CountWindow;\nimport eu.liveandgov.wp1.human_activity_recognition.containers.TaggedWindo...
java
chosen
[ { "from": "system", "value": "Accumulate the BPD extent used by the normal flow's children.\n\ngit-svn-id: 102839466c3b40dd9c7e25c0a1a6d26afc40150a@202359 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "human", "value": "/*\n * Copyright 1999-2005 The Apache Software Foundation.\n * \n * L...
java
chosen
[ { "from": "system", "value": "Add region names to platform id constants\n" }, { "from": "human", "value": "package constant;\n\n/*\n * Copyright 2015 Taylor Caldwell\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with ...
java
chosen
[ { "from": "system", "value": "Add the four external essential functions.\n" }, { "from": "human", "value": "package org.nwapw.abacus.number;\n\nimport java.util.HashMap;\n\npublic class FunctionDatabase {\n\n private HashMap<String, Function> functions;\n\n private void registerDefault(){\...
java
chosen
[ { "from": "system", "value": "Remove wierd git behaviour & Fix name javadoc\n" }, { "from": "human", "value": "/**\n * \n */\npackage main;\n\n<<<<<<< Updated upstream\n/**\n * @author Bart\n *\n */\npublic class MainClass {\n\n\t/**\n\t * @param arg - the main arguments\n\t */\n\tpublic static ...
java
chosen
[ { "from": "system", "value": "Add extra properties to the Level III data on a Charge\n" }, { "from": "human", "value": "package com.stripe.model;\n\nimport java.util.List;\n\nimport lombok.EqualsAndHashCode;\nimport lombok.Getter;\nimport lombok.Setter;\n\n@Getter\n@Setter\n@EqualsAndHashCode(ca...
java
chosen
[ { "from": "system", "value": "Remove needless Exception from method signature\n\nFixes https://github.com/winterchord/xjava/commit/d09fb713d19abbcbdaaa979adb59aa7fc94532fd#commitcomment-14962172\n\nThe original PR (https://github.com/exercism/xjava/pull/69) that this issue\ncould have been fixed in was merg...
java
chosen
[ { "from": "system", "value": "Add missing copyright file. No logical changes\n" }, { "from": "human", "value": "package org.openqa.selenium.grid;public class ActualMain {\n}\n" }, { "from": "gpt", "value": "// Licensed to the Software Freedom Conservancy (SFC) under one\n// or more c...
java
chosen
[ { "from": "system", "value": "Add the repo name to the github package repo url\n\nsee https://github.com/freefair/gradle-plugins/issues/50#issuecomment-517961934\n" }, { "from": "human", "value": "package io.freefair.gradle.plugins.github;\n\nimport org.gradle.api.Plugin;\nimport org.gradle.api....
java
chosen
[ { "from": "system", "value": "Update docker images to version 34\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": "Fix DemoAuthenicator to require username and password not be null. (eclipse)\n" }, { "from": "human", "value": "package axiom.delauth.token;\r\n\r\npublic class DemoAuthenticator implements Authenticator {\r\n\r\n\tpublic boolean authenticate(String username, String...
java
chosen
[ { "from": "system", "value": "Add player join / parts + online count.\n" }, { "from": "human", "value": "package net.md_5.gauge.monitor;\n\nimport org.bukkit.Bukkit;\nimport org.bukkit.entity.Player;\n\npublic class PlayersMonitor implements Runnable\n{\n\n @Override\n public void run()\n...
java
chosen
[ { "from": "system", "value": "Correct crash caused by the documentation test\n" }, { "from": "human", "value": "package shadow.test.doctool;\n\nimport java.util.ArrayList;\n\nimport org.junit.Before;\nimport org.junit.Test;\n\nimport shadow.doctool.DocumentationTool;\n\npublic class Documentatio...
java
chosen
[ { "from": "system", "value": "Fix issue with the value of editboxes\n" }, { "from": "human", "value": "package mmarquee.automation;\n\nimport mmarquee.automation.uiautomation.IUIAutomation;\nimport mmarquee.automation.uiautomation.IUIAutomationElement;\n\n/**\n * Created by inpwt on 26/01/2016.\...
java
chosen
[ { "from": "system", "value": "core: Fix default network status on attach\n\nNetwork status is being saved to DB & later on updated, so need to save\nsome default value and NonOperational is a reasonable choice.\n\nChange-Id: I17ea1594fe54203ce5d98fedd77dade64537f57c\nSigned-off-by: Mike Kolesnik <c6947eedc1...
java
chosen
[ { "from": "system", "value": "Update magic 8 ball syntax" }, { "from": "human", "value": "package io.github.skepter.skepbot.modules;\r\n\r\nimport java.util.concurrent.ThreadLocalRandom;\r\n\r\npublic class Magic8 extends Module {\r\n\r\n\tString[] responses = { \"It is certain\", \"It is decide...
java
chosen
[ { "from": "system", "value": "Add support for notation images." }, { "from": "human", "value": "/*******************************************************************************\r\n * Copyright (c) 2009 David A Carlson.\r\n * All rights reserved. This program and the accompanying materials\r\n * ...
java
chosen
[ { "from": "system", "value": "Create all the the primitives with different values" }, { "from": "human", "value": "public class Main {\n public static void main(String[] args) {\n System.out.println(\"Hello, World!\");\n \t}\n}\n// public > all languages can access\n// static > will...
java
chosen
[ { "from": "system", "value": "core: Use enum name to search providers\n\nCurrently we build search queries for providers using the numeric value\nof the type, and comparing it to the \"providers.provider_type\" database\ncolumn. But this column stores the name of the enum, not the numeric\nvalue. This patch...
java
chosen
[ { "from": "system", "value": "Fix exception based logging to actually log the exception!\n" }, { "from": "human", "value": "package cpw.mods.fml.common;\n\nimport java.util.logging.Level;\nimport java.util.logging.Logger;\n\npublic class FMLLog\n{\n private static cpw.mods.fml.relauncher.FMLR...
java
chosen
[ { "from": "system", "value": "Add getters for valeur and couleur\n" }, { "from": "human", "value": "/* Classe: Carte\n * @author MARECAL Thomas\n * @author QUENTIN Thibaut\n * @author MARTIN Florian\n * Groupe I2\n * @version 1 du 04/06/2014\n**/\n\npackage metier;\n\npublic class Carte {\n\tpri...
java
chosen
[ { "from": "system", "value": "Mask the API key shown in settings\n" }, { "from": "human", "value": "package tr.xip.wanikani.settings;\n\nimport android.os.Build;\nimport android.os.Bundle;\nimport android.preference.Preference;\nimport android.preference.PreferenceActivity;\n\nimport tr.xip.wani...
java
chosen