conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Add intents to switch to another activity\n"
},
{
"from": "human",
"value": "package com.amitness.photon;\n\nimport android.os.Bundle;\nimport android.support.v7.app.AppCompatActivity;\nimport android.view.Menu;\nimport android.view.MenuItem;\n\npublic class MainAct... | java | chosen |
[
{
"from": "system",
"value": "Make default version target graph build with new builder\n\nReviewed By: philipjameson\n\nshipit-source-id: f2103da595\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2018-present Facebook, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Licen... | java | chosen |
[
{
"from": "system",
"value": "Implement move and add some comments, getting ready for pull\n"
},
{
"from": "human",
"value": "package gamecontrollers.commandcreator;\n\nimport gamecontrollers.Response;\nimport gamecontrollers.commands.GameplayActionCommand;\nimport models.board.Direction;\nimpor... | java | chosen |
[
{
"from": "system",
"value": "Add in a helper on the server start event for adding commands to\nthe server.\n"
},
{
"from": "human",
"value": "package cpw.mods.fml.common.event;\n\nimport net.minecraft.server.MinecraftServer;\nimport cpw.mods.fml.common.LoaderState.ModState;\n\npublic class FMLS... | java | chosen |
[
{
"from": "system",
"value": "Remove escape from double quotes\n"
},
{
"from": "human",
"value": "package org.udg.pds.simpleapp_javaee.rest;\n\nimport com.fasterxml.jackson.databind.ObjectMapper;\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\n\nimport javax.ws.rs.container.Container... | java | chosen |
[
{
"from": "system",
"value": "Add command-line options compatible with old main()\n"
},
{
"from": "human",
"value": "package bamboo;\n\nimport bamboo.app.Bamboo;\nimport org.springframework.boot.SpringApplication;\nimport org.springframework.boot.autoconfigure.SpringBootApplication;\nimport org.... | java | chosen |
[
{
"from": "system",
"value": "Update IntelliJ IDEA support to also recognize `*.logtalk` and `*.prolog` file extensions\n"
},
{
"from": "human",
"value": "package org.logtalk.intellij;\n\n\nimport org.jetbrains.annotations.NotNull;\n\nimport com.intellij.openapi.fileTypes.FileTypeConsumer;\nimpo... | java | chosen |
[
{
"from": "system",
"value": "Include ms in stopwatch output.\n"
},
{
"from": "human",
"value": "package edu.ntnu.idi.goldfish;\n\nimport java.util.HashMap;\nimport java.util.concurrent.TimeUnit;\n\npublic class StopWatch {\n\t\n\tprotected static HashMap<String, Long> starts = new HashMap<Strin... | java | chosen |
[
{
"from": "system",
"value": "Add XXX marker to class.\n"
},
{
"from": "human",
"value": "package org.oblodiff.token.text;\n\nimport org.oblodiff.token.BasicToken;\n\n/**\n * A textual token is a token representing a text.\n *\n * @since 1.0.0\n * @param <T> the type of the content this token re... | java | chosen |
[
{
"from": "system",
"value": "Add missing schema declaration to lesson/nugget relation\n"
},
{
"from": "human",
"value": "package se.kits.gakusei.content.model;\n\nimport com.fasterxml.jackson.annotation.JsonManagedReference;\n\nimport javax.persistence.*;\nimport java.io.Serializable;\nimport j... | java | chosen |
[
{
"from": "system",
"value": "Fix a logical error. A new project was persisted if it\nwas already found found in the database. It should be the opposite\n"
},
{
"from": "human",
"value": "package com.example.beer.dao;\n\nimport javax.ejb.Singleton;\nimport javax.persistence.EntityManager;\nimpor... | java | chosen |
[
{
"from": "system",
"value": "Java: Put patterns directly in function call to follow style of the rest of benchmarks\n"
},
{
"from": "human",
"value": "import java.io.IOException;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\nimport java.util.regex.Matcher;\nimport java.util.regex.P... | java | chosen |
[
{
"from": "system",
"value": "Add methods to change parser override configs\n"
},
{
"from": "human",
"value": "package org.gbif.nameparser;\n\nimport org.gbif.nameparser.api.ParsedAuthorship;\nimport org.gbif.nameparser.api.ParsedName;\n\nimport java.util.HashMap;\nimport java.util.Map;\n\npubli... | java | chosen |
[
{
"from": "system",
"value": "Use SynchronousQueue as executor queue to enable expanding pools.\n"
},
{
"from": "human",
"value": "package com.amebame.triton.server;\n\nimport java.util.concurrent.ExecutorService;\nimport java.util.concurrent.Executors;\n\nimport javax.inject.Inject;\nimport jav... | java | chosen |
[
{
"from": "system",
"value": "Add return value to removeLecturerFromSubject\n"
},
{
"from": "human",
"value": "package at.ac.tuwien.inso.service;\r\n\r\nimport org.springframework.data.domain.Page;\r\nimport org.springframework.data.domain.Pageable;\r\nimport org.springframework.security.access.... | java | chosen |
[
{
"from": "system",
"value": "Update Number of tasks listed in Find command\n"
},
{
"from": "human",
"value": "package seedu.address.logic.commands;\n\nimport java.util.Set;\n\n/**\n * Finds and lists all persons in address book whose name contains any of the argument keywords.\n * Keyword match... | java | chosen |
[
{
"from": "system",
"value": "Replace getPath method by getUri\n\nChange-Id: I4c7aa63b092090243bad8b1429b7bbdbe5cc40d5\n"
},
{
"from": "human",
"value": "package com.kurento.kmf.media.repository;\n\nimport java.io.IOException;\n\npublic abstract class MediaRepository {\n\n\t/**\n\t * \n\t * @ret... | java | chosen |
[
{
"from": "system",
"value": "Fix compile error in tests.\n"
},
{
"from": "human",
"value": "package com.codingchili.core.logging;\n\nimport io.vertx.core.Vertx;\nimport io.vertx.ext.unit.Async;\nimport io.vertx.ext.unit.TestContext;\nimport io.vertx.ext.unit.junit.VertxUnitRunner;\nimport org.j... | java | chosen |
[
{
"from": "system",
"value": "Change deprecated flyway methods to new FluentConfiguration\n"
},
{
"from": "human",
"value": "package com.cloud.flyway;\n\nimport com.cloud.legacymodel.exceptions.CloudRuntimeException;\nimport org.flywaydb.core.Flyway;\nimport org.flywaydb.core.api.FlywayException... | java | chosen |
[
{
"from": "system",
"value": "Remove comment, offset observer will throw runtime exceptions\n"
},
{
"from": "human",
"value": "package nakadi;\n\n/**\n * Can be called by the {@link StreamObserver} to indicate a batch has been processed.\n *\n * Typically this is used to implement a checkpointer... | java | chosen |
[
{
"from": "system",
"value": "Fix a typo in some Javadoc.\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2017 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 * Yo... | java | chosen |
[
{
"from": "system",
"value": "Add deployment Id as all entities have to be associated with a deployment\n"
},
{
"from": "human",
"value": "/*\n * Copyright (c) 2015 Ushahidi.\n * This program is free software: you can redistribute it and/or modify it under\n * the terms of the GNU Affero General... | java | chosen |
[
{
"from": "system",
"value": "Remove volumes when removing the container\nThis to avoid leaving dangling volumes\n"
},
{
"from": "human",
"value": "package com.antonjohansson.geotest.docker;\n\nimport com.spotify.docker.client.DockerClient;\nimport com.spotify.docker.client.exceptions.DockerExce... | java | chosen |
[
{
"from": "system",
"value": "Mark pool threads as daemon.\n\nSigned-off-by: Olivier Cinquin <65f36a1df3704fccc062437169cf2fbbed716a11@uci.edu>\n"
},
{
"from": "human",
"value": "package uk.org.cinquin.mutinack.misc_util;\n\nimport java.util.concurrent.ThreadFactory;\n\npublic class NamedPoolThr... | java | chosen |
[
{
"from": "system",
"value": "Clear and reset status text."
},
{
"from": "human",
"value": "/*\r\n * Copyright 2014 Patrik Karlsson.\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may ... | java | chosen |
[
{
"from": "system",
"value": "Undo change that makes client-side issue. Will need another way to get sub-items\n"
},
{
"from": "human",
"value": "package net.machinemuse.numina.recipe;\n\nimport net.minecraft.block.Block;\nimport net.minecraft.creativetab.CreativeTabs;\nimport net.minecraft.item... | java | chosen |
[
{
"from": "system",
"value": "Allow null as defining class.\n\ngit-svn-id: fe6d842192ccfb78748eb71580d1ce65f168b559@1736 9830eeb5-ddf4-0310-9ef7-f4b9a3e3227e\n"
},
{
"from": "human",
"value": "/*\n * Copyright (C) 2008 XStream Committers.\n * All rights reserved.\n *\n * The software in this pac... | java | chosen |
[
{
"from": "system",
"value": "Fix issue with updating button before activity loaded\n"
},
{
"from": "human",
"value": "package net.honeybadgerlabs.adventurequest;\n\nimport android.app.Activity;\nimport android.os.Bundle;\nimport android.support.v4.app.Fragment;\nimport android.view.LayoutInflat... | java | chosen |
[
{
"from": "system",
"value": "Add more null handling cycle tag tests\n"
},
{
"from": "human",
"value": "package com.hubspot.jinjava.lib.tag;\n\nimport static org.assertj.core.api.Assertions.assertThat;\n\nimport com.hubspot.jinjava.BaseInterpretingTest;\nimport org.junit.Test;\n\npublic class Cy... | java | chosen |
[
{
"from": "system",
"value": "Update Geronimo JPA 2.0 specs EA7\n\ngit-svn-id: 60e751271f50ec028ae56d425821c1c711e0b018@807373 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "human",
"value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license... | java | chosen |
[
{
"from": "system",
"value": "Store empty queries in history\n"
},
{
"from": "human",
"value": "package fr.neamar.kiss.db;\n\nimport android.content.Context;\nimport android.database.sqlite.SQLiteDatabase;\nimport android.database.sqlite.SQLiteOpenHelper;\n\nclass DB extends SQLiteOpenHelper {\n... | java | chosen |
[
{
"from": "system",
"value": "Add create() to semeser service\n"
},
{
"from": "human",
"value": "package at.ac.tuwien.inso.service;\n\nimport at.ac.tuwien.inso.entity.Semester;\nimport at.ac.tuwien.inso.repository.SemesterRepository;\n\nimport org.springframework.beans.factory.annotation.Autowir... | java | chosen |
[
{
"from": "system",
"value": "Add configurable start location to config.xml and template\n\nStill possible to hardcode, there's a comment in the template showing\nhow that can be done.\n"
},
{
"from": "human",
"value": "/*\n Licensed to the Apache Software Foundation (ASF) under one\n ... | java | chosen |
[
{
"from": "system",
"value": "Make sure stops get unique IDs.\n"
},
{
"from": "human",
"value": "package com.conveyal.geom2gtfs;\n\nimport org.onebusaway.gtfs.model.AgencyAndId;\nimport org.onebusaway.gtfs.model.Stop;\n\nimport com.vividsolutions.jts.geom.Coordinate;\n\nimport java.util.concurre... | java | chosen |
[
{
"from": "system",
"value": "Change encrypt to use byte array\n\nAlso cleaned up some code\n"
},
{
"from": "human",
"value": "package com.decentralizeddatabase.reno;\n\nimport javax.crypto.BadPaddingException;\nimport javax.crypto.Cipher;\nimport javax.crypto.IllegalBlockSizeException;\nimport ... | java | chosen |
[
{
"from": "system",
"value": "Change class with static variables into interface\n"
},
{
"from": "human",
"value": "package pl.com.chodera.myweather.common;\n\n/**\n * Created by Adam Chodera on 2016-03-15.\n */\npublic class Commons {\n\n public static final String BASE_URL = \"http://api.ope... | java | chosen |
[
{
"from": "system",
"value": "Fix Java testcase to work\n"
},
{
"from": "human",
"value": "import java.lang.System;\n\npublic class Test {\n static {\n System.loadLibrary(\"react_render\");\n }\n\n public static void main(String[] args) {\n Syst... | java | chosen |
[
{
"from": "system",
"value": "Implement the ICWD interface in the main panel\n"
},
{
"from": "human",
"value": "package beaform.gui.main;\n\nimport java.awt.BorderLayout;\nimport java.awt.Component;\n\nimport javax.swing.JPanel;\nimport javax.swing.JScrollPane;\n\nimport beaform.gui.debug.DebugU... | java | chosen |
[
{
"from": "system",
"value": "Return full names of references in toString\n"
},
{
"from": "human",
"value": "package de.centerdevice.classcleaner.core.model;\n\npublic class CodeReference {\n\n\tprivate CodeElement src;\n\tprivate CodeElement dst;\n\n\tpublic CodeReference(CodeElement src, CodeE... | java | chosen |
[
{
"from": "system",
"value": "Make name more specific to avoid clash in repo\n"
},
{
"from": "human",
"value": "package test.ccn.security.access;\n\n\nimport java.util.SortedSet;\n\nimport junit.framework.Assert;\n\nimport org.junit.BeforeClass;\nimport org.junit.Test;\n\nimport com.parc.ccn.dat... | java | chosen |
[
{
"from": "system",
"value": "Allow TextWire to write binary headers as well as plain text.\n"
},
{
"from": "human",
"value": "package net.openhft.chronicle.wire;\n\nimport net.openhft.chronicle.bytes.Bytes;\nimport net.openhft.chronicle.bytes.BytesUtil;\nimport org.junit.Test;\n\nimport java.io... | java | chosen |
[
{
"from": "system",
"value": "Fix simple http server example wrong port\n"
},
{
"from": "human",
"value": "package io.vertx.example.core.http.simple;\n\nimport io.vertx.core.AbstractVerticle;\nimport io.vertx.example.util.Runner;\n\n/*\n * @author <a href=\"http://tfox.org\">Tim Fox</a>\n */\npu... | java | chosen |
[
{
"from": "system",
"value": "Fix command message if the account wasn't found on deleting."
},
{
"from": "human",
"value": "package com.github.games647.flexiblelogin.tasks;\n\nimport com.github.games647.flexiblelogin.FlexibleLogin;\n\nimport java.util.UUID;\n\nimport org.spongepowered.api.text.T... | java | chosen |
[
{
"from": "system",
"value": "Fix inflated view using parent view.\n"
},
{
"from": "human",
"value": "package jp.satorufujiwara.binder.recycler;\n\n\nimport android.content.Context;\nimport android.support.annotation.LayoutRes;\nimport android.support.v7.widget.RecyclerView;\nimport android.view... | java | chosen |
[
{
"from": "system",
"value": "Test for invalid token when expanding token\n"
},
{
"from": "human",
"value": "package com.connect_group.urlshortener;\n\nimport org.junit.Test;\n\nimport java.net.MalformedURLException;\nimport java.net.URL;\n\nimport static org.hamcrest.MatcherAssert.assertThat;\n... | java | chosen |
[
{
"from": "system",
"value": "Edit format of sort command\n"
},
{
"from": "human",
"value": "package seedu.tasklist.logic.commands;\n\n//@@author A0141993X\npublic class SortCommand extends Command {\n\n public static final String COMMAND_WORD = \"sort\";\n private final String parameter;\... | java | chosen |
[
{
"from": "system",
"value": "Remove hack for tab-key handling in Processing 2.0 - This is now fixed in Processing 2.1"
},
{
"from": "human",
"value": "package com.haxademic.core.system;\n\nimport processing.core.PApplet;\nimport processing.opengl.PGL;\n\nimport com.haxademic.core.app.P;\n\npubl... | java | chosen |
[
{
"from": "system",
"value": "Add method setWord(word) into Link class\n"
},
{
"from": "human",
"value": "package dmax.words.domain;\n\n/**\n * Created by Maxim Dybarsky | maxim.dybarskyy@gmail.com\n * on 10.12.14 at 13:46\n */\npublic enum Language {\n POLISH,\n UKRAINIAN\n}\n"
},
{
... | java | chosen |
[
{
"from": "system",
"value": "Change number validation field type\n"
},
{
"from": "human",
"value": "package br.com.bloder.blormlib.validation;\n\n\nimport br.com.bloder.blormlib.validation.validations.Checked;\nimport br.com.bloder.blormlib.validation.validations.Email;\nimport br.com.bloder.bl... | java | chosen |
[
{
"from": "system",
"value": "Add helper for FlowSpec to add the CFG at a later time\n"
},
{
"from": "human",
"value": "package mb.nabl2.spoofax.analysis;\n\nimport java.io.Serializable;\nimport java.util.Optional;\nimport java.util.Set;\n\nimport mb.nabl2.constraints.IConstraint;\nimport mb.nab... | java | chosen |
[
{
"from": "system",
"value": "Add tests for hide recommendation endpoints.\n"
},
{
"from": "human",
"value": "package com.uwetrottmann.trakt.v2.services;\n\nimport com.uwetrottmann.trakt.v2.BaseTestCase;\nimport com.uwetrottmann.trakt.v2.exceptions.OAuthUnauthorizedException;\nimport com.uwetrot... | java | chosen |
[
{
"from": "system",
"value": "Check integration test source address.\n"
},
{
"from": "human",
"value": "package net.ripe.db.whois.common.domain;\n\nimport com.google.common.collect.Sets;\nimport net.ripe.db.whois.common.etree.Interval;\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\n... | java | chosen |
[
{
"from": "system",
"value": "Add type constant for data one of."
},
{
"from": "human",
"value": "package de.uni_stuttgart.vis.vowl.owl2vowl.constants;\n\npublic class Node_Types {\n\tpublic static final String TYPE_CLASS = \"owl:Class\";\n\tpublic static final String TYPE_RDFSCLASS = \"rdfs:Cla... | java | chosen |
[
{
"from": "system",
"value": "Add static field for texture in basic energy creator"
},
{
"from": "human",
"value": "package info.u_team.u_team_test.screen;\n\nimport info.u_team.u_team_core.gui.elements.EnergyStorageWidget;\nimport info.u_team.u_team_core.screen.UBasicContainerScreen;\nimport in... | java | chosen |
[
{
"from": "system",
"value": "Make the parameters a Union based on the comments from Frederic Ddangtran\n"
},
{
"from": "human",
"value": "package org.libvirt.jna;\n\nimport com.sun.jna.Structure;\n\n/**\n * JNA mapping for the virSchedParameterValue structure\n */\npublic class virSchedParamete... | java | chosen |
[
{
"from": "system",
"value": "Return active thread count from the threadpool\n"
},
{
"from": "human",
"value": "/*******************************************************************************\r\n * Copyright 2016, 2017 vanilladb.org contributors\r\n *\r\n * Licensed under the Apache License, Ve... | java | chosen |
[
{
"from": "system",
"value": "Split class loading code to compare static class & generated class"
},
{
"from": "human",
"value": "package net.folab.fo.runtime;\n\nimport static org.junit.Assert.*;\nimport static org.hamcrest.CoreMatchers.*;\n\nimport java.lang.reflect.Field;\n\nimport net.folab.... | java | chosen |
[
{
"from": "system",
"value": "Add application.properties to hot reload\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2018 Red Hat, Inc.\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 method names to remove collision with Android methods"
},
{
"from": "human",
"value": "package com.annimon.jecp;\r\n\r\n/**\r\n *\r\n * @author aNNiMON\r\n */\r\npublic interface ApplicationListener {\r\n \r\n public void onCreate();\r\n \r\n publ... | java | chosen |
[
{
"from": "system",
"value": "Add static field in basic fluiid inventory screen"
},
{
"from": "human",
"value": "package info.u_team.u_team_test.screen;\n\nimport info.u_team.u_team_core.screen.UBasicContainerScreen;\nimport info.u_team.u_team_test.TestMod;\nimport info.u_team.u_team_test.contai... | java | chosen |
[
{
"from": "system",
"value": "Fix JDBC 4.0 source compatibility.\n\nCloses #186.\n"
},
{
"from": "human",
"value": "package com.yammer.dropwizard.db;\n\nimport org.apache.tomcat.dbcp.dbcp.PoolingDataSource;\nimport org.apache.tomcat.dbcp.pool.ObjectPool;\n\nimport java.sql.SQLFeatureNotSupported... | java | chosen |
[
{
"from": "system",
"value": "Update copyright notice with MIT license"
},
{
"from": "human",
"value": "/*++\r\n\r\nNASM Assembly Language Plugin\r\nCopyright (c) 2017-2018 Aidan Khoury. All rights reserved.\r\n\r\nThis program is free software: you can redistribute it and/or modify\r\nit under ... | java | chosen |
[
{
"from": "system",
"value": "Add getFrameBuffer method to get a int array as frame buffer.\n"
},
{
"from": "human",
"value": "/*\n * Kurento Android Media: Android Media Library based on FFmpeg.\n * Copyright (C) 2011 Tikal Technologies\n *\n * This program is free software: you can redistribu... | java | chosen |
[
{
"from": "system",
"value": "Use insert instead store (update or insert)"
},
{
"from": "human",
"value": "package com.kdemo.jooq.dao.impl;\r\n\r\nimport static com.kdemo.jooq.domain.Tables.USERS;\r\n\r\nimport java.util.List;\r\n\r\nimport org.jooq.DSLContext;\r\nimport org.springframework.bean... | java | chosen |
[
{
"from": "system",
"value": "Fix issue with symbols vs attribute name disambiguation\n\nSee if the name is a valid symbol before trying to resolve it as a tuple attribute\n"
},
{
"from": "human",
"value": "package com.facebook.presto.sql.compiler;\n\nimport com.facebook.presto.sql.tree.Node;\ni... | java | chosen |
[
{
"from": "system",
"value": "Fix session serialization for Js"
},
{
"from": "human",
"value": "package com.coreoz.plume.admin.webservices.security;\n\nimport java.util.Set;\n\nimport com.coreoz.plume.admin.jersey.WebSessionPermission;\n\nimport lombok.Getter;\nimport lombok.Setter;\nimport lomb... | java | chosen |
[
{
"from": "system",
"value": "Make it work with Jackson\n"
},
{
"from": "human",
"value": "package com.hubspot.blazar.base;\n\nimport com.google.common.collect.SetMultimap;\n\nimport java.util.HashSet;\nimport java.util.Map.Entry;\nimport java.util.Set;\n\npublic class DependencyGraph {\n priva... | java | chosen |
[
{
"from": "system",
"value": "Optimize name. Structual Formula need circulation but Composite pattern is not suitable.\n"
},
{
"from": "human",
"value": "package jp.ne.naokiur.design.pattern.composite;\n\npublic class App {\n\n public static void main(String[] args) {\n Carbon firstCar... | java | chosen |
[
{
"from": "system",
"value": "Test added\nbugfix - Danke Jochen :D\n"
},
{
"from": "human",
"value": "package com.canoo.dolphin.integration;\n\nimport com.canoo.platform.remoting.client.ClientContext;\nimport org.testng.Assert;\nimport org.testng.annotations.Test;\n\n/**\n * Created by hendrikeb... | java | chosen |
[
{
"from": "system",
"value": "Refactor Petri Dish state machine\n"
},
{
"from": "human",
"value": "package org.nusco.narjillos.views.utilities;\n\npublic class PetriDishState {\n\tprivate volatile Light light = Light.ON;\n\tprivate volatile Speed speed = Speed.REALTIME;\n\n\tpublic Light getLigh... | java | chosen |
[
{
"from": "system",
"value": "Test setting @Transactional on findById repository method.\n"
},
{
"from": "human",
"value": "/*\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 ... | java | chosen |
[
{
"from": "system",
"value": "Update property-types test case with more realistic types.\n"
},
{
"from": "human",
"value": "public class Widget {\n private boolean primitive;\n private Widget simpleObject;\n private Pair<? extends Pair<? extends Widget, ? super Widget>, ?> nestedGeneric... | java | chosen |
[
{
"from": "system",
"value": "Add comment for user entity justifying lack of inheritance [rev: trivial]\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2016 Hewlett-Packard Development Company, L.P.\n * Licensed under the MIT License (the \"License\"); you may not use this file except in com... | java | chosen |
[
{
"from": "system",
"value": "Reduce visibility of internal class\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 * h... | java | chosen |
[
{
"from": "system",
"value": "Reset row number after deleting all responses.\n"
},
{
"from": "human",
"value": "package com.openxc.openxcdiagnostic.diagnostic;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\nimport android.widget.LinearLayout;\n\nimport com.openxc.messages.DiagnosticRe... | java | chosen |
[
{
"from": "system",
"value": "Fix typo in MappedBy annotation"
},
{
"from": "human",
"value": "package jp.ac.nii.prl.mape.redundancy.model;\n\nimport java.util.Collection;\n\nimport javax.persistence.Entity;\nimport javax.persistence.GeneratedValue;\nimport javax.persistence.Id;\nimport javax.pe... | java | chosen |
[
{
"from": "system",
"value": "Fix bug in tokenbucket refilling\n"
},
{
"from": "human",
"value": "package vg.civcraft.mc.civmodcore.ratelimiting;\n\npublic class TokenBucket {\n\n\tprivate int tokens;\n\tprivate long lastRefill;\n\n\t/**\n\t * Local constructor to enforce creation via RateLimiti... | java | chosen |
[
{
"from": "system",
"value": "Add notification function to reminder model\n\n"
},
{
"from": "human",
"value": "package com.vikashkothary.life.data.model;\n\nimport android.os.Parcelable;\n\nimport com.google.auto.value.AutoValue;\nimport com.google.gson.Gson;\nimport com.google.gson.TypeAdapter;... | java | chosen |
[
{
"from": "system",
"value": "Fix bug in isOnTarget BandBangController\n"
},
{
"from": "human",
"value": "package com.team254.frc2015.subsystems.controllers;\n\nimport com.team254.lib.util.Controller;\n\npublic class BangBangFinishLineController extends Controller {\n\n private double m_posit... | java | chosen |
[
{
"from": "system",
"value": "Use Map in getter instead of TreeMap\n"
},
{
"from": "human",
"value": "package com.uber.okbuck.core.model.jvm;\n\nimport java.util.List;\nimport java.util.Map;\nimport java.util.TreeMap;\n\npublic final class TestOptions {\n\n private final List<String> jvmArgs;\n... | java | chosen |
[
{
"from": "system",
"value": "Use the tracking policy to track thrown never-get-here errors\n"
},
{
"from": "human",
"value": "package org.valid4j.impl;\n\nimport org.valid4j.UnreachablePolicy;\nimport org.valid4j.exceptions.ContractViolation;\nimport org.valid4j.exceptions.NeverGetHereViolation... | java | chosen |
[
{
"from": "system",
"value": "Remove printing of some lines\n\n"
},
{
"from": "human",
"value": "package utils;\n\npublic class Parser {\n\n\tpublic static int parseScore(String s) {\n\t\tString[] parse = s.split(\",\");\n\t\tint i;\n\t\tfor (i = 0; i < parse.length; i++) {\n\t\t\tSystem.out.pri... | java | chosen |
[
{
"from": "system",
"value": "Update ui - favorite button\n"
},
{
"from": "human",
"value": "package com.alsash.reciper.logic.event;\n\nimport com.alsash.reciper.logic.action.RecipeAction;\n\npublic class RecipeEvent {\n\n public final RecipeAction action;\n public final String uuid;\n\n ... | java | chosen |
[
{
"from": "system",
"value": "Handle case where MDC is null\n"
},
{
"from": "human",
"value": "package org.robotninjas.barge;\n\nimport com.google.common.collect.Maps;\nimport org.jetlang.core.BatchExecutorImpl;\nimport org.jetlang.core.EventReader;\nimport org.slf4j.MDC;\n\nimport java.util.Map... | java | chosen |
[
{
"from": "system",
"value": "Tweak documentation for message listener\n"
},
{
"from": "human",
"value": "package org.jvirtanen.nassau;\n\nimport java.io.IOException;\nimport java.nio.ByteBuffer;\n\n/**\n * <code>MessageListener</code> is the interface for inbound messages.\n */\npublic interfac... | java | chosen |
[
{
"from": "system",
"value": "Add column description for device SQLite table\n"
},
{
"from": "human",
"value": "package eu.nerro.wolappla.provider;\n\n/**\n * Contract class for interacting with {@link DeviceProvider}.\n */\npublic class DeviceContract {\n}\n"
},
{
"from": "gpt",
"va... | java | chosen |
[
{
"from": "system",
"value": "Add new constants that are used throughout servlets.\n"
},
{
"from": "human",
"value": "// Copyright 2019 Google LLC\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// Yo... | java | chosen |
[
{
"from": "system",
"value": "Fix unit test for JDK 1.3."
},
{
"from": "human",
"value": "package com.thoughtworks.xstream.core;\n\nimport com.thoughtworks.acceptance.AbstractAcceptanceTest;\nimport com.thoughtworks.xstream.XStream;\n\npublic class TreeMarshallerTest extends AbstractAcceptanceTe... | java | chosen |
[
{
"from": "system",
"value": "Remove unused imports in game tests\n"
},
{
"from": "human",
"value": "package com.bjorn;\n\n\nimport org.junit.Before;\nimport org.junit.Test;\nimport org.mockito.Mockito;\n\nimport javax.xml.bind.annotation.XmlAttribute;\nimport java.util.HashMap;\n\nimport static... | java | chosen |
[
{
"from": "system",
"value": "Remove UTC from time util<Manohar/Shruthi>\n"
},
{
"from": "human",
"value": "package org.motechproject.server.pillreminder.util;\n\nimport org.joda.time.DateTime;\nimport org.joda.time.DateTimeZone;\n\nimport java.text.SimpleDateFormat;\nimport java.util.Calendar;\... | java | chosen |
[
{
"from": "system",
"value": "Fix formatting of if statement\n"
},
{
"from": "human",
"value": "/*\n * Copyright (c) IBM Corporation (2009). All Rights Reserved.\n * \n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the... | java | chosen |
[
{
"from": "system",
"value": "Fix Mocked Datsetws missing the CrisId field\n"
},
{
"from": "human",
"value": "package org.datavaultplatform.common.metadata.impl;\n\nimport java.util.ArrayList;\nimport java.util.HashMap;\nimport java.util.List;\nimport java.util.Map;\n\nimport org.datavaultplatfo... | java | chosen |
[
{
"from": "system",
"value": "Add a test case to get temp directory."
},
{
"from": "human",
"value": "package study.hard.javalib.file;\n\nimport java.io.File;\nimport java.io.IOException;\n\nimport org.junit.After;\nimport org.junit.Before;\nimport org.junit.Test;\n\npublic class FileTest {\n\n\... | java | chosen |
[
{
"from": "system",
"value": "OAK-3749: Implement tooling for tracing a node through the revision history\nBump package export version\n\ngit-svn-id: 67138be12999c61558c3dd34328380c8e4523e73@1718630 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "human",
"value": "/*\n * Licensed to the Ap... | java | chosen |
[
{
"from": "system",
"value": "Revise message explaining the cause of exception\n\nChange-Id: Ic6c6048f3e04d99c55b8de08ec4be1370139a549\n"
},
{
"from": "human",
"value": "package net.onrc.onos.core.newintent;\n\nimport com.google.common.collect.ImmutableList;\nimport net.onrc.onos.api.newintent.I... | java | chosen |
[
{
"from": "system",
"value": "Move javadoc comment where it belongs\n"
},
{
"from": "human",
"value": "/* \n * Copyright (c) 2015 Michal Srb\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Softwar... | java | chosen |
[
{
"from": "system",
"value": "Change filter logger to instance field\n"
},
{
"from": "human",
"value": "package io.github.jordao76.quotes.filters;\n\nimport java.io.*;\n\nimport javax.servlet.*;\nimport javax.servlet.http.*;\n\nimport org.slf4j.*;\nimport org.springframework.stereotype.*;\nimpor... | java | chosen |
[
{
"from": "system",
"value": "Use ConcurrentCopyOnWriteArraySet -- could alternatively provide a Comparator\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.athenz.id... | java | chosen |
[
{
"from": "system",
"value": "Make sure Catalysis benchmark sets up between each iteration\n\nProbably why it was so erratic.\n"
},
{
"from": "human",
"value": "package etomica.simulation;\n\nimport etomica.modules.catalysis.Catalysis;\nimport etomica.space3d.Space3D;\nimport org.openjdk.jmh.ann... | java | chosen |
[
{
"from": "system",
"value": "[MNG-6071] Normalize relative paths for working directory\n\n"
},
{
"from": "human",
"value": "package org.apache.maven.cli;\n\n/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * dis... | java | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.