conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "[refactor] Remove unnecessary declarations in observer pattern.\n"
},
{
"from": "human",
"value": "package com.iluwatar.generic;\n\npublic interface Observer<S extends Observable<S, O, A>, O extends Observer<S, O, A>, A> {\n public void update(S subject, A argume... | java | chosen |
[
{
"from": "system",
"value": "Maintain number of samples observed\n"
},
{
"from": "human",
"value": "package io.sigpipe.sing.stat;\n\npublic class SummaryStatistics {\n\n private double min;\n private double max;\n private double mean;\n private double std;\n private double var;\n... | java | chosen |
[
{
"from": "system",
"value": "Remove Kotlin and Scala support channel, as it's diverged too far\n"
},
{
"from": "human",
"value": "/*\n * Minecraft Dev for IntelliJ\n *\n * https://minecraftdev.org\n *\n * Copyright (c) 2016 minecraft-dev\n *\n * MIT License\n */\n\npackage com.demonwav.mcdev.up... | java | chosen |
[
{
"from": "system",
"value": "Create new keywords for commands\n"
},
{
"from": "human",
"value": "package seedu.doist.logic.parser;\n\nimport java.util.regex.Pattern;\n\nimport seedu.doist.logic.parser.ArgumentTokenizer.Prefix;\n\n/**\n * Contains Command Line Interface (CLI) syntax definitions ... | java | chosen |
[
{
"from": "system",
"value": "Update enum to pass name to constructor\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 information\n ... | java | chosen |
[
{
"from": "system",
"value": "Add reference to foaf spec.\n"
},
{
"from": "human",
"value": "/*\n * JBoss, Home of Professional Open Source\n * Copyright 2014 Red Hat Inc. and/or its affiliates and other contributors\n * as indicated by the @authors tag. All rights reserved.\n */\n\npackage org.... | java | chosen |
[
{
"from": "system",
"value": "Fix bug in trace handler\n"
},
{
"from": "human",
"value": "package io.undertow.server.handlers;\n\nimport io.undertow.server.HttpHandler;\nimport io.undertow.server.HttpServerExchange;\nimport io.undertow.util.HeaderValues;\nimport io.undertow.util.Headers;\nimport... | java | chosen |
[
{
"from": "system",
"value": "Make return value more flexible\n"
},
{
"from": "human",
"value": "package com.s24.redjob.worker;\n\n/**\n * Wrapper for job runners which do not implement {@link Runnable}.\n */\npublic abstract class WrappingRunnable implements Runnable {\n /**\n * Job runner... | java | chosen |
[
{
"from": "system",
"value": "Revert version number back for demo\n"
},
{
"from": "human",
"value": "package uk.co.eggsylife.controller;\n\n\nimport org.springframework.stereotype.Controller;\nimport org.springframework.web.bind.annotation.RequestMapping;\nimport org.springframework.web.bind.ann... | java | chosen |
[
{
"from": "system",
"value": "Standardize formatting for file comparison\n"
},
{
"from": "human",
"value": "package content;\n\nimport java.util.Comparator;\n\n/**\n * @author john\n *\n */\nclass FileInfoComparator implements Comparator<FileInfo> {\n\t/* (non-Javadoc)\n\t * @see java.util.Compa... | java | chosen |
[
{
"from": "system",
"value": "Use Hibernate Criteria to query User by cellphone"
},
{
"from": "human",
"value": "/***********************************************\n * Filename : HibernateUserDao.java\n * Copyright : Copyright (c) 2014\n * Company : Innovaee\n * Created : ... | java | chosen |
[
{
"from": "system",
"value": "Fix build error (my fault)\n"
},
{
"from": "human",
"value": "package org.hexpresso.elm327.commands.filters;\r\n\r\nimport org.hexpresso.elm327.commands.Response;\r\nimport org.hexpresso.elm327.commands.ResponseFilter;\r\n\r\nimport java.util.ArrayList;\r\nimport ja... | java | chosen |
[
{
"from": "system",
"value": "Revert \"Reduce the time we keep expired remotes sessions and fix comment\"\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.vespa.config.serv... | java | chosen |
[
{
"from": "system",
"value": "Update CORS: fix cross-source cookie\n"
},
{
"from": "human",
"value": "package com.awesometickets.config;\n\nimport java.io.IOException;\n\nimport javax.servlet.Filter;\nimport javax.servlet.FilterChain;\nimport javax.servlet.FilterConfig;\nimport javax.servlet.Ser... | java | chosen |
[
{
"from": "system",
"value": "Add onError example in main activity\n"
},
{
"from": "human",
"value": "package br.com.bloder.blorm;\n\nimport android.support.v7.app.AppCompatActivity;\nimport android.os.Bundle;\nimport android.widget.Button;\nimport android.widget.EditText;\nimport android.widget... | java | chosen |
[
{
"from": "system",
"value": "Add 1 argument - file name. When user load new source code, system can copy it anywhere and\nour program get this path.\n"
},
{
"from": "human",
"value": "package src;\n\npublic class Main {\n\n public static void main(String[] args) {\n\n if(args.length !... | java | chosen |
[
{
"from": "system",
"value": "Remove a Javadoc link from the 'tags' package to the 'stats' package.\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2017, Google Inc.\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": "Fix travis build checker framework error\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2014-2015 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 t... | java | chosen |
[
{
"from": "system",
"value": "Create relay for gear shifter, set relay values"
},
{
"from": "human",
"value": "package com.saintsrobotics.frc;\n\nimport edu.wpi.first.wpilibj.Relay;\n\n/**\n * The RobotMap is a mapping from the ports sensors and actuators are wired into\n * to a variable name. T... | java | chosen |
[
{
"from": "system",
"value": "Remove unnecessary Gingerbread check around strict mode\n"
},
{
"from": "human",
"value": "package com.wkovacs64.mtorch;\n\nimport android.app.Application;\nimport android.os.Build;\nimport android.os.StrictMode;\n\nimport timber.log.Timber;\n\npublic final class Cu... | java | chosen |
[
{
"from": "system",
"value": "Create HTTP API to download the file\n\nUsing 'application/octet-stream' as content-type of the response, it\nallow to force the download of the file, rather than opening it in the\nbrowser.\n"
},
{
"from": "human",
"value": "package fr.alecharp.picshare.resource;\n... | java | chosen |
[
{
"from": "system",
"value": "Improve debug `toString` for sum type\n"
},
{
"from": "human",
"value": "package org.hummingbirdlang.types.composite;\n\nimport org.hummingbirdlang.types.CompositeType;\nimport org.hummingbirdlang.types.Property;\nimport org.hummingbirdlang.types.PropertyNotFoundExc... | java | chosen |
[
{
"from": "system",
"value": "Return time when newsletter is sent to the original 12am\n"
},
{
"from": "human",
"value": "package pl.tomaszdziurko.jvm_bloggers;\n\npublic class TimeConstants {\n\n public static final String FIVE_MINUTES_AFTER_EACH_HOUR = \"0 5 * * * *\";\n public static fi... | java | chosen |
[
{
"from": "system",
"value": "Make AutonSettin6 use middle hoop to match is intended purpose\n"
},
{
"from": "human",
"value": "/*\n * To change this template, choose Tools | Templates\n * and open the template in the editor.\n */\npackage edu.stuy.commands;\n\n/**\n * Shoots from key at 2 point... | java | chosen |
[
{
"from": "system",
"value": "[Fix]: Fix problem with fragment backstack\n\nResolves: #\nSee also: #\n"
},
{
"from": "human",
"value": "package com.kogimobile.android.baselibrary.navigation;\n\n\nimport android.support.v4.app.Fragment;\nimport android.support.v4.app.FragmentManager;\nimport andr... | java | chosen |
[
{
"from": "system",
"value": "Remove unnecessary Math.abs from distance calculation\n"
},
{
"from": "human",
"value": "package pw.scho.battleship.model;\n\npublic class Position {\n\n private static String[] digits = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\".split(\"\");\n private final int x;\n p... | java | chosen |
[
{
"from": "system",
"value": "Remove trailing slashes from submitted URLs\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 informatio... | java | chosen |
[
{
"from": "system",
"value": "Remove functional version of nullToEmptyString, add javadoc.\n"
},
{
"from": "human",
"value": "package uk.ac.ebi.quickgo.annotation.download.converter.helpers;\n\nimport java.util.List;\nimport java.util.Objects;\nimport java.util.function.Function;\n\n/**\n * A ho... | java | chosen |
[
{
"from": "system",
"value": "Flyway: Fix Scanner constructor substitution for Flyway 7.9.0\n"
},
{
"from": "human",
"value": "package io.quarkus.flyway.runtime.graal;\n\nimport java.nio.charset.Charset;\nimport java.util.Collection;\n\nimport org.flywaydb.core.api.Location;\nimport org.flywaydb... | java | chosen |
[
{
"from": "system",
"value": "Remove UI test from the default test suite (Jenkins runs headless)."
},
{
"from": "human",
"value": "package scala.tools.eclipse;\n\nimport scala.tools.eclipse.lexical.ScalaDocumentPartitionerTest;\nimport scala.tools.eclipse.lexical.ScalaPartitionTokeniserTest;\nim... | java | chosen |
[
{
"from": "system",
"value": "Add support for PULL_REQUEST_REVIEW_COMMENT event types.\n"
},
{
"from": "human",
"value": "package org.kohsuke.github;\n\n/**\n * Hook event type.\n *\n * See http://developer.github.com/v3/events/types/\n *\n * @author Kohsuke Kawaguchi\n */\npublic enum GHEvent {... | java | chosen |
[
{
"from": "system",
"value": "Update test for DeterLabProjectEntity in adapter-deterlab\n"
},
{
"from": "human",
"value": "package sg.ncl.adapter.deterlab.dtos.entities;\n\nimport org.junit.Before;\nimport org.junit.Test;\n\nimport static org.junit.Assert.assertEquals;\n\n/**\n * Created by Tran... | java | chosen |
[
{
"from": "system",
"value": "Fix typo in error message\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2016 Martijn van der Woud - The Crimson Cricket Internet Services\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in co... | java | chosen |
[
{
"from": "system",
"value": "Change two ball autonomous to drive forward while collection.\n\nThis will help the robot capture the ball even if it rolls slightly\nforward while collecting.\n"
},
{
"from": "human",
"value": "package com.edinarobotics.zeke.commands;\n\nimport edu.wpi.first.wpilib... | java | chosen |
[
{
"from": "system",
"value": "Make it easier to see information in the debugger.\n"
},
{
"from": "human",
"value": "package com.github.cstroe.svndumpgui.internal;\n\nimport com.github.cstroe.svndumpgui.api.SvnNode;\n\npublic class SvnNodeImpl implements SvnNode {\n private String path;\n p... | java | chosen |
[
{
"from": "system",
"value": "Sort events by start time when getting all of them\n"
},
{
"from": "human",
"value": "package com.nincraft.ninbot.components.event;\n\nimport org.springframework.stereotype.Service;\n\nimport javax.transaction.Transactional;\nimport java.util.List;\n\n@Service\npubl... | java | chosen |
[
{
"from": "system",
"value": "Change postcode from Integer to String."
},
{
"from": "human",
"value": "package au.com.auspost.api.postcode.search.model;\n\nimport javax.xml.bind.annotation.XmlAccessType;\nimport javax.xml.bind.annotation.XmlAccessorType;\nimport javax.xml.bind.annotation.XmlElem... | java | chosen |
[
{
"from": "system",
"value": "Add method to find grades by student account id\n\n"
},
{
"from": "human",
"value": "package at.ac.tuwien.inso.repository;\n\nimport org.springframework.data.repository.CrudRepository;\n\nimport at.ac.tuwien.inso.entity.Grade;\n\npublic interface GradeRepository ext... | java | chosen |
[
{
"from": "system",
"value": "Allow any number of tests being reported\n"
},
{
"from": "human",
"value": "package test.projects;\n\nimport static org.junit.jupiter.api.Assertions.assertEquals;\nimport static org.junit.jupiter.api.Assertions.assertLinesMatch;\n\nimport com.github.sormuras.bach.Ba... | java | chosen |
[
{
"from": "system",
"value": "Enable timeouts as normal again.\n"
},
{
"from": "human",
"value": "/* Copyright (C) 2009 Opera Software ASA. All rights reserved. */\npackage com.opera.core.systems.scope.internal;\n\n/**\n * \n * @author Deniz Turkoglu\n * Enumerator for delay values\n */\npublic... | java | chosen |
[
{
"from": "system",
"value": "Update result model to Double\n"
},
{
"from": "human",
"value": "package org.openalpr.model;\n\nimport java.util.ArrayList;\n\npublic class Results {\n\n private final Float epoch_time;\n\n private final Float processing_time_ms;\n\n private final ArrayList... | java | chosen |
[
{
"from": "system",
"value": "Add riskCheck to baseCharge model\n"
},
{
"from": "human",
"value": "package com.checkout.api.services.charge.request;\n\nimport java.util.List;\n\nimport com.checkout.api.services.shared.Address;\nimport com.checkout.api.services.shared.Product;\n\npublic class Bas... | java | chosen |
[
{
"from": "system",
"value": "Fix stupid mistake in DI module.\n"
},
{
"from": "human",
"value": "/*\n * Copyright (c) 2006-2015 DMDirc Developers\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"S... | java | chosen |
[
{
"from": "system",
"value": "Fix wrong package name, that is causing the IT to fail for the wrong reason.\n\ngit-svn-id: 6038db50b076e48c7926ed71fd94f8e91be2fbc9@1382422 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "human",
"value": "package org.apache.maven.it0001;\n\nimport junit.fram... | java | chosen |
[
{
"from": "system",
"value": "Create verbose log to check that the words array is working\n"
},
{
"from": "human",
"value": "package com.example.android.miwok;\n\nimport android.os.Bundle;\nimport android.support.v7.app.AppCompatActivity;\nimport android.support.v7.widget.Toolbar;\n\npublic clas... | java | chosen |
[
{
"from": "system",
"value": "Update API key to trakt-java user.\n"
},
{
"from": "human",
"value": "package com.jakewharton.trakt;\n\nimport junit.framework.TestCase;\n\npublic abstract class BaseTestCase extends TestCase {\n\tprotected static final String API_KEY = \"de8bc5e9866c77d655310bb0c8a... | java | chosen |
[
{
"from": "system",
"value": "Fix Job error on shutdown"
},
{
"from": "human",
"value": "/*******************************************************************************\n * Copyright 2013 Friedrich Schiller University Jena\n * stephan.druskat@uni-jena.de\n * \n * Licensed under the Apache Licen... | java | chosen |
[
{
"from": "system",
"value": "Make web content activity to render page optimized for mobile\n"
},
{
"from": "human",
"value": "package com.rajaraman.sample.utils;\n\npublic class AppConstants {\n public static final String STUDENTS_DB_NAME = \"Students\";\n public static final int STUDENTS... | java | chosen |
[
{
"from": "system",
"value": "Make sure not to swallow interruption\n"
},
{
"from": "human",
"value": "/*\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *... | java | chosen |
[
{
"from": "system",
"value": "Add missing method for fdroid version\n"
},
{
"from": "human",
"value": "/* \n * Copyright 2014 OpenMarket 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.\n * You may... | java | chosen |
[
{
"from": "system",
"value": "Change from Brixton to Camden\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2015 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 License.\n * ... | java | chosen |
[
{
"from": "system",
"value": "Use some Guava .net classes to clean up code a little\n\ngit-svn-id: f7ac9ee3e7208fd97c9a3deb5e52ce295d20494a@481 0d189622-dca1-7e23-9e30-e8815eb7bd2f\n"
},
{
"from": "human",
"value": "/*\n * Copyright Myrrix Ltd\n *\n * Licensed under the Apache License, Version 2... | java | chosen |
[
{
"from": "system",
"value": "Create a static zero quota usage\n"
},
{
"from": "human",
"value": "package com.yahoo.vespa.hosted.controller.api.integration.configserver;\n\nimport com.fasterxml.jackson.annotation.JsonIgnoreProperties;\n\n/**\n * @author ogronnesby\n */\n@JsonIgnoreProperties(ign... | java | chosen |
[
{
"from": "system",
"value": "Reduce visibility from public to package\n"
},
{
"from": "human",
"value": "package org.gdg.frisbee.android.about;\n\nimport android.content.Context;\nimport android.support.v4.app.Fragment;\nimport android.support.v4.app.FragmentManager;\nimport android.support.v4.... | java | chosen |
[
{
"from": "system",
"value": "Add new function to a validation\n"
},
{
"from": "human",
"value": "package br.com.bloder.blormlib.validation;\n\n/**\n * Created by bloder on 05/06/16.\n */\npublic interface Validate {\n\n boolean validate();\n}\n"
},
{
"from": "gpt",
"value": "packag... | java | chosen |
[
{
"from": "system",
"value": "Make it consistent with FlowletContext"
},
{
"from": "human",
"value": "/*\n * Copyright 2012-2013 Continuuity,Inc. All Rights Reserved.\n */\n\npackage com.continuuity.api.procedure;\n\nimport com.continuuity.api.data.DataSet;\n\n/**\n * This interface represents t... | java | chosen |
[
{
"from": "system",
"value": "Use L&F that is available on JDK 1.3\n"
},
{
"from": "human",
"value": "package com.thoughtworks.acceptance;\n\nimport javax.swing.DefaultListModel;\nimport javax.swing.JList;\nimport javax.swing.JTable;\nimport javax.swing.LookAndFeel;\nimport javax.swing.plaf.synt... | java | chosen |
[
{
"from": "system",
"value": "Use pagination object as return type for collection returning methods.\n"
},
{
"from": "human",
"value": "package com.github.aureliano.verbum_domini.dao;\n\nimport java.io.Serializable;\nimport java.util.List;\n\nimport com.github.aureliano.verbum_domini.web.Service... | java | chosen |
[
{
"from": "system",
"value": "Fix not-showing apps with similar activities.\n"
},
{
"from": "human",
"value": "package com.vackosar.searchbasedlauncher.entity;\n\nimport com.google.gson.annotations.Expose;\n\npublic class App implements Comparable<App> {\n\n @Expose private final String name;... | java | chosen |
[
{
"from": "system",
"value": "Add another Test for working dynamically registered Subcommands, just to be safe\n"
},
{
"from": "human",
"value": "package mondocommand.dynamic;\n\nimport static org.junit.Assert.*;\nimport mondocommand.CallInfo;\nimport mondocommand.MockCommandSender;\nimport mond... | java | chosen |
[
{
"from": "system",
"value": "Set server port in a static prop\n"
},
{
"from": "human",
"value": "\nimport interfaces.*;\n\nimport java.net.ServerSocket;\nimport java.net.Socket;\nimport java.util.ArrayList;\nimport java.util.List;\n\n/**\n * Chat Server for various clients\n */\npublic class Mu... | java | chosen |
[
{
"from": "system",
"value": "Use local vars instead of global\n"
},
{
"from": "human",
"value": "package com.supinfo.jva.geocar;\n\nimport android.content.Intent;\nimport android.content.res.Resources;\nimport android.net.Uri;\nimport android.os.Bundle;\nimport android.support.v7.app.ActionBarA... | java | chosen |
[
{
"from": "system",
"value": "Change Author to User model\n\nthey're the same\n"
},
{
"from": "human",
"value": "package com.kickstarter.models;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport com.hannesdorfmann.parcelableplease.annotation.ParcelablePlease;\n\nimport org.jo... | java | chosen |
[
{
"from": "system",
"value": "Set frames to be not resizable"
},
{
"from": "human",
"value": "package alotoc.graphics.view;\r\n\r\nimport java.awt.Point;\r\n\r\nimport javax.swing.JFrame;\r\n\r\n/**\r\n * This is an abstract class for all the frames in the program.\r\n * \r\n * @author Kazeheki\... | java | chosen |
[
{
"from": "system",
"value": "Revert \"Only call the standalone setups if eclipse is not running\"\n\nThis reverts commit 4b5d0349506182d3e1be1d331c1c053faedd1b54.\n"
},
{
"from": "human",
"value": "package org.muml.psm.allocation.algorithm.ilp.tests;\n\nimport org.eclipse.emf.common.EMFPlugin;\... | java | chosen |
[
{
"from": "system",
"value": "Change platforms to lower case\n"
},
{
"from": "human",
"value": "/*\n *\n * Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.\n *\n * WSO2 Inc. licenses this file to you under the Apache License,\n * Version 2.0 (the \"License\"); you may ... | java | chosen |
[
{
"from": "system",
"value": "Add manual method to trigger dialogs\n"
},
{
"from": "human",
"value": "package tv.rocketbeans.supermafiosi.core;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\nimport com.badlogic.gdx.InputAdapter;\n\nimport tv.rocketbeans.supermafiosi.i18n.Bundle;\n\npu... | java | chosen |
[
{
"from": "system",
"value": "Adjust for changes made by PAXWICKET-399"
},
{
"from": "human",
"value": "/**\n * Copyright OPS4J\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License. You may obtain\n * a copy... | java | chosen |
[
{
"from": "system",
"value": "Change JsonView to Public for userAgeGroup\n"
},
{
"from": "human",
"value": "package com.royalrangers.model;\n\nimport com.fasterxml.jackson.annotation.JsonIgnore;\nimport com.fasterxml.jackson.annotation.JsonView;\nimport com.royalrangers.enums.UserAgeGroup;\nimpo... | java | chosen |
[
{
"from": "system",
"value": "Correct THE stupid mistake. Now we have a string!\n"
},
{
"from": "human",
"value": "package framework.util;\n\nimport framework.util.RingBuffer;\nimport framework.generators.Generator;\n\n/**\n * Models a guitar string using the Karplus-Strong algorithm.\n */\npubl... | java | chosen |
[
{
"from": "system",
"value": "Remove extra semi-colon in line 13\n"
},
{
"from": "human",
"value": "package seedu.ezdo.model.todo;\n\nimport com.joestelmach.natty.Parser;\n\n/**\n * Represents the date associated with tasks.\n */\npublic abstract class TaskDate {\n\n public final String value... | java | chosen |
[
{
"from": "system",
"value": "Fix backward compatibility for RN < 0.47"
},
{
"from": "human",
"value": "package com.react.rnspinkit;\n\nimport com.facebook.react.ReactPackage;\nimport com.facebook.react.bridge.JavaScriptModule;\nimport com.facebook.react.bridge.NativeModule;\nimport com.facebook... | java | chosen |
[
{
"from": "system",
"value": "Rename var to more meaningful name\n"
},
{
"from": "human",
"value": "package com.fourlastor.dante.html;\n\nimport android.graphics.drawable.Drawable;\nimport android.text.Spannable;\nimport android.text.SpannableStringBuilder;\nimport android.text.style.ImageSpan;\... | java | chosen |
[
{
"from": "system",
"value": "Move contextual task execution to make more sense\n"
},
{
"from": "human",
"value": "package com.jenjinstudios.io.concurrency;\n\nimport com.jenjinstudios.io.ExecutionContext;\nimport com.jenjinstudios.io.Message;\n\nimport java.util.Collection;\nimport java.util.Li... | java | chosen |
[
{
"from": "system",
"value": "Add new method for display information"
},
{
"from": "human",
"value": "package com.sitdh.master.eaa.main;\n\nimport java.util.Vector;\n\npublic class A5Department {\n\t\n\tpublic String name;\n\t\n\tpublic String departmentDescription;\n\t\n\tpublic Vector<B5Profes... | java | chosen |
[
{
"from": "system",
"value": "Drop random number of topaz stones on topaz ore break\n"
},
{
"from": "human",
"value": "package rewbot.minecraft.tutorial.blocks;\r\n\r\nimport net.minecraft.block.Block;\r\nimport net.minecraft.block.material.Material;\r\nimport net.minecraft.creativetab.CreativeT... | java | chosen |
[
{
"from": "system",
"value": "Replace InputStream bytes with InputStream.readAllBytes in RESTEasy Reactive\n\nThis not only is less code, but it's also more efficient as\nit generally results in less array copying\n"
},
{
"from": "human",
"value": "package org.jboss.resteasy.reactive.common.prov... | java | chosen |
[
{
"from": "system",
"value": "Fix Help not recognizing user input.\n"
},
{
"from": "human",
"value": "package musician101.itembank.commands.ibcommand;\n\nimport musician101.itembank.ItemBank;\nimport musician101.itembank.lib.Constants;\n\nimport org.bukkit.command.CommandSender;\n\n/**\n * The c... | java | chosen |
[
{
"from": "system",
"value": "Fix bug: if code cannot be formatted the format returns null"
},
{
"from": "human",
"value": "package org.eclipse.incquery.examples.cps.m2t.proto.distributed.generator.utils;\n\nimport org.eclipse.incquery.examples.cps.m2t.proto.distributed.generator.exceptions.CPSG... | java | chosen |
[
{
"from": "system",
"value": "Refresh successful theme change message; make more context specific, indicate page refresh needed .\n"
},
{
"from": "human",
"value": "package net.i2p.router.web;\n\n/** set the theme */\npublic class ConfigUIHandler extends FormHandler {\n private boolean _shoul... | java | chosen |
[
{
"from": "system",
"value": "Add null tolerance test of `Indexes`.\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2017, TeamDev Ltd. All rights reserved.\n *\n * Redistribution and use in source and/or binary forms, with or without\n * modification, must retain the above copyright notice a... | java | chosen |
[
{
"from": "system",
"value": "Add deferred register to items"
},
{
"from": "human",
"value": "package info.u_team.u_team_test.init;\n\nimport info.u_team.u_team_core.item.armor.*;\nimport info.u_team.u_team_core.item.tool.*;\nimport info.u_team.u_team_core.util.registry.BaseRegistryUtil;\nimport... | java | chosen |
[
{
"from": "system",
"value": "Add unit test for recursive expressions\n"
},
{
"from": "human",
"value": "package com.hubspot.jinjava.interpret;\n\nimport static org.assertj.core.api.Assertions.assertThat;\n\nimport org.junit.Before;\nimport org.junit.Test;\n\npublic class ContextTest {\n privat... | java | chosen |
[
{
"from": "system",
"value": "Delete cleaned up default true selectorContextIncludeRunId flag\n\nPiperOrigin-RevId: 461172350\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this fil... | java | chosen |
[
{
"from": "system",
"value": "Extend the JHVEventHandelr with a cacheUpdate function\n\ngit-svn-id: 4e353c0944fe8da334633afc35765ef362dec675@1890 b4e469a2-07ce-4b26-9273-4d7d95a670c7\n"
},
{
"from": "human",
"value": "package org.helioviewer.jhv.data.container;\n\nimport java.util.List;\n\nimpor... | java | chosen |
[
{
"from": "system",
"value": "Sort projects on /docs page by name vs. id\n\nAllows for a more natural, intuitive ordering.\n\nSee #367\n"
},
{
"from": "human",
"value": "package sagan.docs.support;\n\nimport sagan.projects.Project;\nimport sagan.projects.support.ProjectMetadataService;\nimport s... | java | chosen |
[
{
"from": "system",
"value": "Migrate from isNotSameAs to isNotSameInstanceAs.\n\nThe two behave identically, and isNotSameAs is being removed.\n\nPiperOrigin-RevId: 245310006\n"
},
{
"from": "human",
"value": "/*\n * Copyright (C) 2018 The Android Open Source Project\n *\n * Licensed under the ... | java | chosen |
[
{
"from": "system",
"value": "Fix conf parsing on linux\n"
},
{
"from": "human",
"value": "package com.github.alexvictoor.proxy;\n\nimport java.io.File;\n\npublic class FileSystemRoute {\n\n private final String uriPrefix;\n private final File directory;\n\n private FileSystemRoute(Stri... | java | chosen |
[
{
"from": "system",
"value": "Make sure custom XML provided by some anonymous developer is at least halfway valid ;-)\n"
},
{
"from": "human",
"value": "package org.mustangproject.ZUGFeRD;\n\npublic class CustomXMLProvider implements IXMLProvider {\n\n\tprotected byte[] zugferdData;\n\t\n\t@Over... | java | chosen |
[
{
"from": "system",
"value": "Upgrade to spring boot 2 and java 9\n"
},
{
"from": "human",
"value": "package se.jaitco.queueticketapi.service;\n\nimport lombok.extern.slf4j.Slf4j;\nimport org.springframework.stereotype.Component;\nimport se.jaitco.queueticketapi.model.Roles;\nimport se.jaitco.qu... | java | chosen |
[
{
"from": "system",
"value": "Fix test to reflect chages in the library\n"
},
{
"from": "human",
"value": "package arez.integration;\n\nimport arez.annotations.ArezComponent;\nimport arez.annotations.Feature;\nimport arez.annotations.Observable;\nimport java.lang.reflect.Modifier;\nimport javax.... | java | chosen |
[
{
"from": "system",
"value": "Remove unnecessary override of getById\n"
},
{
"from": "human",
"value": "package edu.northwestern.bioinformatics.studycalendar.dao;\n\nimport org.springframework.transaction.annotation.Transactional;\nimport edu.northwestern.bioinformatics.studycalendar.domain.Stud... | java | chosen |
[
{
"from": "system",
"value": "Check length before checking if command.\n"
},
{
"from": "human",
"value": "package net.md_5.bungee.api.event;\n\nimport lombok.Data;\nimport lombok.EqualsAndHashCode;\nimport lombok.ToString;\nimport net.md_5.bungee.api.connection.Connection;\nimport net.md_5.bunge... | java | chosen |
[
{
"from": "system",
"value": "Change order of checks on Tipi PlayerInteractEvent"
},
{
"from": "human",
"value": "package totemic_commons.pokefenn.event;\n\nimport cpw.mods.fml.common.eventhandler.SubscribeEvent;\nimport net.minecraft.block.Block;\nimport net.minecraft.block.material.Material;\n... | java | chosen |
[
{
"from": "system",
"value": "Add user rest api controller annotation\n"
},
{
"from": "human",
"value": "package cvut.fit.borrowsystem.web.API;\n\nimport cvut.fit.borrowsystem.service.UserManager;\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\nimport org.springframework.beans.factor... | java | chosen |
[
{
"from": "system",
"value": "Set isFinished to true when timed out, end on interrupt\n"
},
{
"from": "human",
"value": "package org.robockets.stronghold.robot.intake;\n\nimport org.robockets.stronghold.robot.Robot;\n\nimport edu.wpi.first.wpilibj.command.Command;\n\n/**\n * A Command to spin th... | java | chosen |
[
{
"from": "system",
"value": "Use MockitoJUnitRunner instead of initMocks.\n"
},
{
"from": "human",
"value": "package com.github.ajalt.reprint.core;\n\nimport com.github.ajalt.reprint.testing.TestReprintModule;\n\nimport org.junit.Before;\nimport org.junit.Test;\nimport org.mockito.Mock;\nimport... | java | chosen |
[
{
"from": "system",
"value": "Call the new findByDates method"
},
{
"from": "human",
"value": "package <%=packageName%>.service;\n\nimport <%=packageName%>.config.audit.AuditEventConverter;\nimport <%=packageName%>.domain.PersistentAuditEvent;\nimport <%=packageName%>.repository.PersistenceAudit... | java | chosen |
[
{
"from": "system",
"value": "Add methods to remove vertices\n"
},
{
"from": "human",
"value": "package io.sigpipe.sing.graph;\n\npublic class GraphMetrics implements Cloneable {\n\n private long vertices;\n private long leaves;\n\n public GraphMetrics() {\n\n }\n\n @Override\n ... | java | chosen |
[
{
"from": "system",
"value": "Fix file pattern introduced in 8.3.0\n"
},
{
"from": "human",
"value": "package com.reason.bs;\n\nimport com.intellij.execution.*;\nimport com.intellij.execution.configurations.*;\nimport com.intellij.execution.process.*;\nimport com.intellij.openapi.util.*;\nimport... | java | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.