conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Support larger thumbnails on screenr.com" }, { "from": "human", "value": "package com.todoist.mediaparser.mediaparser;\n\nimport com.todoist.mediaparser.util.MediaType;\n\nimport java.util.regex.Pattern;\n\npublic class ScreenrParser extends BaseOEmbedMediaParser {\...
java
chosen
[ { "from": "system", "value": "Change navigation after add category to list categories\n" }, { "from": "human", "value": "package vu.de.npolke.myexpenses.servlets;\n\nimport java.io.IOException;\n\nimport javax.persistence.EntityManager;\nimport javax.servlet.ServletException;\nimport javax.servl...
java
chosen
[ { "from": "system", "value": "Change LOG_ONLY config value from 'log-only' to 'log_only'\n" }, { "from": "human", "value": "// Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\npackage com.yahoo.security.tls;\n\nimport java.util....
java
chosen
[ { "from": "system", "value": "Add VirtualMachineController mock to testing context" }, { "from": "human", "value": "package jp.ac.nii.prl.mape.autoscaling.analysis;\n\nimport org.mockito.Mockito;\nimport org.springframework.context.annotation.Bean;\nimport org.springframework.context.annotation....
java
chosen
[ { "from": "system", "value": "Add mana to casting cost." }, { "from": "human", "value": "package com.elmakers.mine.bukkit.magic.dao;\n\nimport org.bukkit.Material;\n\nimport com.elmakers.mine.bukkit.persisted.PersistClass;\nimport com.elmakers.mine.bukkit.persisted.PersistField;\nimport com.elma...
java
chosen
[ { "from": "system", "value": "Add API method to fetch a URLMap by id\n" }, { "from": "human", "value": "package com.elmakers.mine.bukkit.api.maps;\n\nimport org.bukkit.inventory.ItemStack;\n\nimport java.util.List;\n\npublic interface MapController {\n List<URLMap> getAll();\n void loadMap...
java
chosen
[ { "from": "system", "value": "Clean up ; remove unused imports ; license header\n" }, { "from": "human", "value": "package com.boundary.sdk.event;\nimport java.util.Date;\nimport java.util.Timer;\nimport java.util.TimerTask;\n\nimport org.apache.commons.daemon.*;\nimport org.slf4j.Logger;\nimpor...
java
chosen
[ { "from": "system", "value": "Add runnable method to convert a callable into a runnable.\n" }, { "from": "human", "value": "/*\n * Copyright 2007 Russell Harmon\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": "Reduce class and method visibility\n" }, { "from": "human", "value": "package nu.studer.teamcity.buildscan.internal;\n\nimport java.util.Optional;\nimport java.util.regex.Matcher;\nimport java.util.regex.Pattern;\n\npublic final class Util {\n\n private static fi...
java
chosen
[ { "from": "system", "value": "Drop duplicates when listing transform types\n\nSigned-off-by: Robert D Anderson <4907d442684b61876fae0471c4d2d08024a9ca72@us.ibm.com>\n" }, { "from": "human", "value": "/*\n * This file is part of the DITA Open Toolkit project.\n *\n * Copyright 2011 Jarno Elovirta...
java
chosen
[ { "from": "system", "value": "Undo change a3351c6 as the update to haven-search-components required to use it is currently on hold\n\n[rev. matthew.gordon]\n" }, { "from": "human", "value": "/*\n * Copyright 2015 Hewlett-Packard Development Company, L.P.\n * Licensed under the MIT License (the \...
java
chosen
[ { "from": "system", "value": "Make conveyor run backwards as disc is shooting to prevent jams\n" }, { "from": "human", "value": "package com.team254.frc2013.commands;\n\nimport edu.wpi.first.wpilibj.Timer;\n\n/**\n * Shoots a disc that is already loaded into the shooter.\n *\n * @author tom@team...
java
chosen
[ { "from": "system", "value": "[ci] Correct test to use the instantiated class instead\n" }, { "from": "human", "value": "/**\n * Waffle (https://github.com/Waffle/waffle)\n *\n * Copyright (c) 2010-2016 Application Security, Inc.\n *\n * All rights reserved. This program and the accompanying mat...
java
chosen
[ { "from": "system", "value": "Add a digits only password generator.\n" }, { "from": "human", "value": "package com.kaviju.accesscontrol.authentication;\n\nimport java.util.Random;\n\npublic class RandomPasswordGenerator {\n\tstatic final String possibleChars = \"23456789abcdefghjklmnpqrstuvwxyzA...
java
chosen
[ { "from": "system", "value": "Fix issue-45: When already logged in, the login page should redirect to the dashboard.\n" }, { "from": "human", "value": "package nl.tudelft.ewi.dea.jaxrs.html;\n\nimport javax.inject.Inject;\nimport javax.ws.rs.GET;\nimport javax.ws.rs.Path;\nimport javax.ws.rs.Pro...
java
chosen
[ { "from": "system", "value": "Remove the test for / via the API.\n\nMakes no sense; the root of the API is /api.\n" }, { "from": "human", "value": "package hello;\n\nimport static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;\n\nimport org.junit.Test;\nimport org.juni...
java
chosen
[ { "from": "system", "value": "Convert the file to UTF-8\n" }, { "from": "human", "value": "package com.fewlaps.mentiondetector;\n\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.regex.Pattern;\n\npublic class RemovePunctuationMarks {\n\n private static final String EMPT...
java
chosen
[ { "from": "system", "value": "Modify sms format in sms receiving event\n\nSms regex format is changed to support all institutes names.\n" }, { "from": "human", "value": "package in.testpress.testpress.events;\n\nimport android.content.BroadcastReceiver;\nimport android.content.Context;\nimport a...
java
chosen
[ { "from": "system", "value": "Revert \"Intentional fail to make Jenkins Fail if it is checking tests\"\n\nThis reverts commit 8483e760b4eb5568735f40fe3773c48cb320ce7e.\n" }, { "from": "human", "value": "package hiteware.com.halfwaythere;\n\nimport android.widget.TextView;\n\nimport org.junit.Bef...
java
chosen
[ { "from": "system", "value": "Add failing test for prepend.\n" }, { "from": "human", "value": "package org.reactfx;\n\nimport static org.junit.Assert.*;\n\nimport org.junit.Before;\nimport org.junit.Test;\n\n\npublic class PrependEventStreamTest {\n\n @Test\n public void test() {\n ...
java
chosen
[ { "from": "system", "value": "[Java] Fix typo in sender position counter setup.\n" }, { "from": "human", "value": "/*\n * Copyright 2016 Real Logic Ltd.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\...
java
chosen
[ { "from": "system", "value": "Remove tickable interface from casing\n" }, { "from": "human", "value": "package de.nedelosk.modularmachines.api.modules;\n\nimport de.nedelosk.modularmachines.api.modules.energy.IModuleHeat;\nimport de.nedelosk.modularmachines.api.modules.storaged.IModuleModuleStor...
java
chosen
[ { "from": "system", "value": "Throw exception when url could not be created from result set.\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 ...
java
chosen
[ { "from": "system", "value": "Fix an NPE when parsing killstreaks\n" }, { "from": "human", "value": "package in.twizmwaz.cardinal.module.modules.filter.parsers;\n\nimport in.twizmwaz.cardinal.module.modules.filter.FilterParser;\nimport in.twizmwaz.cardinal.util.NumUtils;\nimport org.jdom2.Elemen...
java
chosen
[ { "from": "system", "value": "Fix bug for release status\n" }, { "from": "human", "value": "package fr.synchrotron.soleil.ica.ci.lib.workflow;\n\nimport java.util.Arrays;\n\n/**\n * @author Gregory Boissinot\n */\npublic class DefaultWorkflow extends Workflow {\n\n private static final String...
java
chosen
[ { "from": "system", "value": "Add a CompilationUnit getter on the model Unit\n(to avoid testing for null each time)\n" }, { "from": "human", "value": "package com.redhat.ceylon.eclipse.core.model;\n\nimport java.lang.ref.WeakReference;\n\nimport com.redhat.ceylon.compiler.typechecker.context.Pha...
java
chosen
[ { "from": "system", "value": "Use the right set of sample names\n" }, { "from": "human", "value": "package org.broadinstitute.sting.gatk.walkers.varianteval.stratifications;\n\nimport org.broadinstitute.sting.gatk.contexts.ReferenceContext;\nimport org.broadinstitute.sting.gatk.refdata.RefMetaDa...
java
chosen
[ { "from": "system", "value": "Revert \"cleaned up code a little\"\n\nThis reverts commit 7ddff91c9736bcedb7c03bb036ade86776885079." }, { "from": "human", "value": "package com.lagopusempire.lagopuscommandsystem.parsing;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\n/**\n *\n * @autho...
java
chosen
[ { "from": "system", "value": "Correct AndroidManifest and res paths\n\nThis commit corrects the relative paths to AndroidManifest.xml and the\nres directory in RobolectricGradleSubModuleTestRunner.class\n" }, { "from": "human", "value": "package com.example;\n\nimport org.junit.runners.model.Ini...
java
chosen
[ { "from": "system", "value": "RUBY-16725: Return \"File Encodings\" settings page for RubyMine\n" }, { "from": "human", "value": "/*\n * Copyright 2000-2014 JetBrains s.r.o.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in complian...
java
chosen
[ { "from": "system", "value": "Use EventColors to pass the right event color\n" }, { "from": "human", "value": "package com.alexstyl.specialdates.search;\n\nimport com.alexstyl.specialdates.contact.Contact;\nimport com.alexstyl.specialdates.date.ContactEvent;\nimport com.alexstyl.specialdates.eve...
java
chosen
[ { "from": "system", "value": "Make this a subclass of Thread.\n" }, { "from": "human", "value": "// Copyright (c) 1999 Brian Wellington (bwelling@xbill.org)\n// Portions Copyright (c) 1999 Network Associates, Inc.\n\npackage org.xbill.DNS;\n\nimport java.util.*;\nimport java.io.*;\nimport java.n...
java
chosen
[ { "from": "system", "value": "Change the format into json because Swagger UI requires strict JSON\n" }, { "from": "human", "value": "package org.wildfly.swarm.examples.jaxrs.swagger;\n\nimport javax.ws.rs.GET;\nimport javax.ws.rs.Path;\nimport javax.ws.rs.Produces;\nimport io.swagger.annotations...
java
chosen
[ { "from": "system", "value": "Add the missing halt() call in trigger method to clear previous styles.\n" }, { "from": "human", "value": "package com.strohwitwer.awesomevalidation.validators;\n\nimport android.graphics.Color;\nimport android.widget.EditText;\n\nimport com.strohwitwer.awesomevalid...
java
chosen
[ { "from": "system", "value": "Fix a new ExecutableSign not being added to the register\n" }, { "from": "human", "value": "package tk.martijn_heil.kingdomessentials.signs;\n\n\nimport lombok.Getter;\nimport org.jetbrains.annotations.Nullable;\n\nimport java.util.ArrayList;\nimport java.util.List;...
java
chosen
[ { "from": "system", "value": "Remove unnecessary exceptions from hello command class declaration\n\nChange-Id: Idf3ee766d46ce6d51a7a436a18d40460f38554ef\n" }, { "from": "human", "value": "// Copyright (C) 2013 The Android Open Source Project\n//\n// Licensed under the Apache License, Version 2.0...
java
chosen
[ { "from": "system", "value": "Use a view holder pattern\n" }, { "from": "human", "value": "package fr.tvbarthel.apps.simpleweatherforcast.ui;\n\nimport android.content.Context;\nimport android.view.LayoutInflater;\nimport android.view.View;\nimport android.view.ViewGroup;\nimport android.widget....
java
chosen
[ { "from": "system", "value": "Revert \"Mock ActiveContainerStatistics as its constructor is package-private\"\n\nThis reverts commit fa682ab2d9f18204c4c9018506104f0ba3744136.\n" }, { "from": "human", "value": "// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See L...
java
chosen
[ { "from": "system", "value": "[binance] Include timestamp in balance requests\n" }, { "from": "human", "value": "package org.knowm.xchange.binance.dto.account;\n\nimport com.fasterxml.jackson.annotation.JsonProperty;\nimport java.math.BigDecimal;\nimport java.util.List;\n\npublic final class Bin...
java
chosen
[ { "from": "system", "value": "Use an ArrayDeque instead of LinkedList to store current rule execution context\n\nArray-based collections perform better than linked lists in general, as\nthey don’t need to do memory allocation for each add/remove() call.\n" }, { "from": "human", "value": "/*\n * ...
java
chosen
[ { "from": "system", "value": "Fix conversion of parsed JSON numbers to double so they do not go through a float value in between; also use correct Java base class returned by Json-simple for boxed numbers.\n" }, { "from": "human", "value": "import org.json.simple.JSONObject;\n\n/** Representatio...
java
chosen
[ { "from": "system", "value": "Add test for no solution.\n" }, { "from": "human", "value": "package com.creitz.sudokusolver;\n\n//Charles Reitz\n//1/4/15\n\npublic class SudokuSolver {\n\n\tprivate Grid mGrid;\n\t\n\tpublic SudokuSolver(String file) {\n\t\tmGrid = new Grid(file);\n\t}\n\t\n\tpubl...
java
chosen
[ { "from": "system", "value": "RM8864: Reset lost reason field on copy\n" }, { "from": "human", "value": "/**\n * Axelor Business Solutions\n *\n * Copyright (C) 2017 Axelor (<http://axelor.com>).\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms...
java
chosen
[ { "from": "system", "value": "Fix the blocking problem of NMSI with 2PC.\n" }, { "from": "human", "value": "package fr.inria.jessy.protocol;\n\n\nimport java.util.Set;\n\nimport fr.inria.jessy.communication.JessyGroupManager;\nimport fr.inria.jessy.store.DataStore;\nimport fr.inria.jessy.transac...
java
chosen
[ { "from": "system", "value": "Change websocket endpoint to URI\n" }, { "from": "human", "value": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2016 Vincent Zhang/PhoenixLAB\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated ...
java
chosen
[ { "from": "system", "value": "Fix create table syntax error.\n" }, { "from": "human", "value": "package org.zeropage.apps.zeropage.database.notification;\n\nimport android.content.Context;\nimport android.database.sqlite.SQLiteDatabase;\nimport android.database.sqlite.SQLiteOpenHelper;\n\nclass ...
java
chosen
[ { "from": "system", "value": "Fix Java regex syntax for disallowed characters\n\nThe dash character needs to be escaped so that it is not treated as regular expression syntax for a range of characters between the colon and underscore (':-_')." }, { "from": "human", "value": "package com.librato....
java
chosen
[ { "from": "system", "value": "SEC-2651: Fix hellojs-jc after Thymeleaf Spring 4 changes\n" }, { "from": "human", "value": "/*\n * Copyright 2002-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 ...
java
chosen
[ { "from": "system", "value": "Use random short string for network channel instead of mod id\n\n* re #4895" }, { "from": "human", "value": "package crazypants.enderio.conduits.oc.network;\n\nimport javax.annotation.Nonnull;\n\nimport com.enderio.core.common.network.ThreadedNetworkWrapper;\n\nimpo...
java
chosen
[ { "from": "system", "value": "Add numerical constructor to SteeringWheelMeasurement - all need this.\n" }, { "from": "human", "value": "package com.openxc.measurements;\n\nimport com.openxc.units.Degree;\nimport com.openxc.util.Range;\n\npublic class SteeringWheelAngle extends Measurement<Degree...
java
chosen
[ { "from": "system", "value": "Create new ViewHolder for Crime\n" }, { "from": "human", "value": "package com.bignerdranch.android.criminalintent;\n\n\nimport android.os.Bundle;\nimport android.support.annotation.Nullable;\nimport android.support.v4.app.Fragment;\nimport android.support.v7.widget...
java
chosen
[ { "from": "system", "value": "Put single quotes around the regex. This isn't strictly necessary through the integration test machinery, but *is* necessary at the console, and it's convenient to be able to cut and paste this.\n\ngit-svn-id: 4561c0a8f080806b19201efb9525134c00b76d40@3977 348d0f76-0448-11de-a6...
java
chosen
[ { "from": "system", "value": "Fix literal pattern matching creation to correctly convert integer literals in the specification which are encoded as strings.\n" }, { "from": "human", "value": "package org.metaborg.meta.lang.dynsem.interpreter.nodes.matching;\n\nimport org.metaborg.meta.lang.dynse...
java
chosen
[ { "from": "system", "value": "Fix object mapper after update\n" }, { "from": "human", "value": "/*\n * Copyright 2016 Studentmediene i Trondheim AS\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 * Y...
java
chosen
[ { "from": "system", "value": "Revert \"migrate example to rcoderunner\"\n\nThis reverts commit b03405d0726820a1f184e0e80892826d02994763." }, { "from": "human", "value": "package org.apacheextras.camel.examples.rcode;\n\nimport org.apache.camel.CamelContext;\nimport org.apache.camel.impl.DefaultC...
java
chosen
[ { "from": "system", "value": "Add handling for a closed entitymanager\n" }, { "from": "human", "value": "package org.amc.dao;\n\nimport javax.persistence.EntityManager;\nimport javax.persistence.EntityManagerFactory;\nimport javax.persistence.Persistence;\nimport javax.persistence.PersistenceUni...
java
chosen
[ { "from": "system", "value": "Fix Copy&Paste Error und documentation" }, { "from": "human", "value": "package com.ulisesbocchio.jasyptmavenplugin.mojo;\n\nimport com.ulisesbocchio.jasyptmavenplugin.encrypt.EncryptionService;\nimport lombok.extern.slf4j.Slf4j;\nimport org.apache.maven.plugin.Mojo...
java
chosen
[ { "from": "system", "value": "FIX -Changes to avoid possible Gson fromJson exceptions\n" }, { "from": "human", "value": "package com.martinchamarro.lazystorage.internal.database;\n\nimport com.google.gson.Gson;\nimport com.martinchamarro.lazystorage.internal.exception.JsonConversionException;\ni...
java
chosen
[ { "from": "system", "value": "Align with new base class implementation\n" }, { "from": "human", "value": "package com.grayben.riskExtractor.htmlScorer.scorers.tagScorers;\n\nimport org.junit.After;\nimport org.junit.Before;\nimport org.junit.Ignore;\nimport org.junit.Test;\n\nimport static org.j...
java
chosen
[ { "from": "system", "value": "Fix super with this call, was missing the status code" }, { "from": "human", "value": "package org.iotbricks.core.binding.proton;\n\nimport java.util.Collections;\nimport java.util.Map;\nimport java.util.Optional;\nimport java.util.function.Consumer;\nimport java.ut...
java
chosen
[ { "from": "system", "value": "[ANDROSDK-587] Update SystemInfoModule tests to test against 2.30\n" }, { "from": "human", "value": "package org.hisp.dhis.android.core.systeminfo;\n\nimport android.support.test.runner.AndroidJUnit4;\n\nimport org.hisp.dhis.android.core.data.database.MockIntegratio...
java
chosen
[ { "from": "system", "value": "Add javadoc to explain delete semantics\n" }, { "from": "human", "value": "package org.springframework.content.commons.io;\n\nimport org.springframework.core.io.Resource;\n\npublic interface DeletableResource extends Resource {\n\tvoid delete();\n}\n" }, { "...
java
chosen
[ { "from": "system", "value": "[KARAF-1109] Update the archetypes itest to reflect the new karaf-command-archetype artifactId\n\ngit-svn-id: 71d8a689455c5fbb0f077bc40adcfc391e14cb9d@1214843 13f79535-47bb-0310-9956-ffa450edef68\n" }, { "from": "human", "value": "/*\n * Licensed to the Apache Softw...
java
chosen
[ { "from": "system", "value": "Remove comment about failing extension\n\nSee https://github.com/junit-team/junit5/issues/390.\n" }, { "from": "human", "value": "package org.codefx.demo.junit5.extensions;\n\nimport org.codefx.demo.junit5.Benchmark;\nimport org.junit.jupiter.api.Test;\n\nimport sta...
java
chosen
[ { "from": "system", "value": "Prepare version number for upcoming beta release\n" }, { "from": "human", "value": "package cgeo.geocaching.utils;\n\nimport cgeo.geocaching.BuildConfig;\n\npublic class BranchDetectionHelper {\n\n // should contain the version name of the last feature release\n ...
java
chosen
[ { "from": "system", "value": "[FIND-969] Make Hod compile after removing the Hod-related columns from users\n\n[rev: alex.scown]\n" }, { "from": "human", "value": "/*\n * Copyright 2016 Hewlett-Packard Development Company, L.P.\n * Licensed under the MIT License (the \"License\"); you may not us...
java
chosen
[ { "from": "system", "value": "Remove unwanted leading newline in error message\n" }, { "from": "human", "value": "/*\n * Copyright (C) Red Gate Software Ltd 2010-2021\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": "Correct theming issue in the AddressbookExample\n" }, { "from": "human", "value": "package de.akquinet.engineering.vaadinator.example.address;\n\nimport com.vaadin.annotations.Theme;\n\n@Theme(\"touchkitexex\")\npublic class AddressbookExampleUIEx extends Addressboo...
java
chosen
[ { "from": "system", "value": "Fix cache key eviction counter and log output\n\n" }, { "from": "human", "value": "package com.fns.xlator.client.api;\n\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframe...
java
chosen
[ { "from": "system", "value": "Remove unnecessary and obsolete comment\n" }, { "from": "human", "value": "package tools.vitruv.framework.vsum.modelsynchronization;\n\nimport java.util.List;\n\nimport tools.vitruv.framework.change.description.PropagatedChange;\nimport tools.vitruv.framework.change...
java
chosen
[ { "from": "system", "value": "Fix timeouts after logout from servlet\n" }, { "from": "human", "value": "package org.keycloak.testsuite.adapter.page;\n\nimport org.keycloak.testsuite.page.AbstractPageWithInjectedUrl;\n\n/**\n * @author mhajas\n */\npublic abstract class SAMLServletWithLogout exte...
java
chosen
[ { "from": "system", "value": "CDEC-72: Add trial.codenvy.com package as IM download option\n" }, { "from": "human", "value": "/*\n * CODENVY CONFIDENTIAL\n * __________________\n *\n * [2012] - [2014] Codenvy, S.A.\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, ...
java
chosen
[ { "from": "system", "value": "SO-4282: Store the message of the causing Exception as an additional...\n\n...info key in ReasonerApiException" }, { "from": "human", "value": "/*\n * Copyright 2018 B2i Healthcare Pte Ltd, http://b2i.sg\n * \n * Licensed under the Apache License, Version 2.0 (the \...
java
chosen
[ { "from": "system", "value": "Update copyright year of changed file\n\nSee gh-27804\n" }, { "from": "human", "value": "/*\n * Copyright 2002-2012 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": "Disable stage \"unit\" test for Hibernate Reactive\n\nSee #14812\n\nSigned-off-by: Yoann Rodière <be2a24d2f52a7ba2aca48263378b2614d5b68cd6@hibernate.org>\n" }, { "from": "human", "value": "package io.quarkus.hibernate.reactive.singlepersistenceunit;\n\nimport static...
java
chosen
[ { "from": "system", "value": "Adjust chrome and chromedriver locations\n" }, { "from": "human", "value": "package com.blackboard.testing.driver;\n\nimport com.codeborne.selenide.webdriver.WebDriverFactory;\nimport org.openqa.selenium.Proxy;\nimport org.openqa.selenium.WebDriver;\nimport org.open...
java
chosen
[ { "from": "system", "value": "Add setHardness on dummy block\n\n" }, { "from": "human", "value": "package com.corwinjv.forgetemplate.blocks;\n\nimport net.minecraft.block.material.Material;\n\n/**\n * Created by CorwinJV on 12/11/2016.\n */\npublic class DummyWoodBlock extends ModBlock {\n Du...
java
chosen
[ { "from": "system", "value": "Use getter woko use Java...\n" }, { "from": "human", "value": "package woko.ext.usermanagement.facets.registration;\n\nimport net.sourceforge.jfacets.IFacetDescriptorManager;\nimport net.sourceforge.jfacets.annotations.FacetKey;\nimport woko.ext.usermanagement.core....
java
chosen
[ { "from": "system", "value": "Use UiHandler in the example\n" }, { "from": "human", "value": "package com.vaadin.components.gwt.polymer.client.sampler.gwt;\n\nimport com.google.gwt.core.client.GWT;\nimport com.google.gwt.uibinder.client.UiBinder;\nimport com.google.gwt.uibinder.client.UiField;\n...
java
chosen
[ { "from": "system", "value": "Add PHI and RBHS flags to DRD_ Organizational_Units\n" }, { "from": "human", "value": "package org.openregistry.core.domain.jpa;\n\nimport javax.persistence.metamodel.SingularAttribute;\r\nimport javax.persistence.metamodel.StaticMetamodel;\r\n\n@StaticMetamodel(Jpa...
java
chosen
[ { "from": "system", "value": "Fix formatting and please IDE\n\nIntelliJ IDEA really likes `@Autowired` for XML configuration.\n" }, { "from": "human", "value": "package ch.wisv.connect.overlay.services;\n\nimport com.nimbusds.jwt.JWTClaimsSet;\nimport org.mitre.oauth2.model.ClientDetailsEntity;\...
java
chosen
[ { "from": "system", "value": "Improve output format for transformations\n" }, { "from": "human", "value": "package introspect;\n\nimport net.bytebuddy.agent.ByteBuddyAgent;\nimport net.bytebuddy.agent.builder.AgentBuilder;\nimport net.bytebuddy.dynamic.DynamicType;\nimport net.bytebuddy.instrume...
java
chosen
[ { "from": "system", "value": "Add a stub implementation of onWritabilityChange\n" }, { "from": "human", "value": "package io.elssa.net;\n\nimport java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.List;\n\npublic abstract class MessageRouterBase {\n\n private List<MessageLi...
java
chosen
[ { "from": "system", "value": "Fix n00b mistake of not making SQL_DELETE static\n" }, { "from": "human", "value": "package com.satsumasoftware.timetable.db;\n\npublic final class SubjectsSchema {\n\n public static final String TABLE_NAME = \"subjects\";\n public static final String COL_ID =...
java
chosen
[ { "from": "system", "value": "Make sure you're not supplying the h2 extension it tacks on, because you almost never want that.\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 fi...
java
chosen
[ { "from": "system", "value": "Change the hash function to be generic and consistent for both family and factory.\n" }, { "from": "human", "value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\...
java
chosen
[ { "from": "system", "value": "Use default when parameter name is not available\n" }, { "from": "human", "value": "package org.isisaddons.metamodel.paraname8;\n\nimport java.lang.reflect.Method;\nimport java.lang.reflect.Parameter;\n\nimport org.apache.isis.core.commons.lang.StringExtensions;\nim...
java
chosen
[ { "from": "system", "value": "Add additional condition to transaction time PDF test\n" }, { "from": "human", "value": "package com.github.rnowling.bps.datagenerator.generators.transaction;\n\nimport static org.junit.Assert.assertEquals;\n\nimport org.junit.Test;\n\npublic class TestTransactionTi...
java
chosen
[ { "from": "system", "value": "Make hello world runnable so that it can be embedded and launched" }, { "from": "human", "value": "/**\n * Copyright (c) 2010 RedEngine Ltd, http://www.redengine.co.nz. All rights reserved.\n *\n * This program is licensed to you under the Apache License Version 2.0...
java
chosen
[ { "from": "system", "value": "Convert to Google Java Style\n" }, { "from": "human", "value": "package com.bbn.bue.common.math;\r\n\r\nimport static com.google.common.base.Preconditions.checkArgument;\r\n\r\npublic final class MathUtils {\r\n\tprivate MathUtils() {\r\n\t\tthrow new UnsupportedOpe...
java
chosen
[ { "from": "system", "value": "Add method to check whether package is installed.\n" }, { "from": "human", "value": "package com.github.aureliano.achmed.os.pkg;\n\nimport com.github.aureliano.achmed.command.CommandResponse;\nimport com.github.aureliano.achmed.resources.properties.PackageProperties...
java
chosen
[ { "from": "system", "value": "Add Parameterizable flag at the toplevel for now.\n" }, { "from": "human", "value": "package de.lmu.ifi.dbs.elki.distance.distancefunction;\n\nimport de.lmu.ifi.dbs.elki.data.DatabaseObject;\nimport de.lmu.ifi.dbs.elki.database.Database;\nimport de.lmu.ifi.dbs.elki....
java
chosen
[ { "from": "system", "value": "Fix construction of visual component" }, { "from": "human", "value": "package de.tudresden.inf.lat.born.protege;\n\nimport java.awt.BorderLayout;\nimport java.util.Objects;\n\nimport org.protege.editor.owl.ui.view.cls.AbstractOWLClassViewComponent;\nimport org.seman...
java
chosen
[ { "from": "system", "value": "Comment selected cell property setter on cell controller\n" }, { "from": "human", "value": "package moe.tristan.easyfxml.model.components.listview;\n\nimport javafx.beans.binding.BooleanExpression;\n\nimport moe.tristan.easyfxml.api.FxmlController;\n\npublic interfa...
java
chosen
[ { "from": "system", "value": "Fix in web src gen.\n" }, { "from": "human", "value": "/*\n * Copyright 2017 Bridje Framework.\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 copy of...
java
chosen
[ { "from": "system", "value": "Fix diamond operator (not allowed in java1.5)\n\nTo support older java versions the production code is compiled against\nJava 1.5\n" }, { "from": "human", "value": "package io.qala.datagen.examples;\n\nimport java.util.Map;\nimport java.util.concurrent.ConcurrentHas...
java
chosen
[ { "from": "system", "value": "Rename title of Project Settings item to more clear thing, to understood to which area this setting are linked.\n \"Template Variables\" -> \"File and Code Template Variable\"\n\n Thanks to Anonymous on the plugins.jetbrains.com =)\n" }, { "from": "human", "value": ...
java
chosen
[ { "from": "system", "value": "Remove createJSModules from Package java file - RN 0.47 compatibility\n" }, { "from": "human", "value": "\npackage com.b8ne.RNPusherPushNotifications;\n\nimport java.util.Arrays;\nimport java.util.Collections;\nimport java.util.List;\n\nimport com.facebook.react.Rea...
java
chosen
[ { "from": "system", "value": "Fix projector_connection event action typo\n" }, { "from": "human", "value": "package de.schunterkino.kinoapi.websocket.messages.christie;\n\nimport de.schunterkino.kinoapi.websocket.messages.BaseMessage;\n\npublic class ChristieConnectionMessage extends BaseMessage...
java
chosen
[ { "from": "system", "value": "Add accessors for PartitionGraph settings.\n" }, { "from": "human", "value": "package com.tinkerpop.blueprints.strategy;\n\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.List;\nimport java.util.function.Function;\n\n/**\n * @author Stephen ...
java
chosen