conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Clarify client code a bit"
},
{
"from": "human",
"value": "package com.darwinsys.clientware;\r\n\r\nimport java.io.BufferedReader;\r\nimport java.io.InputStream;\r\nimport java.io.InputStreamReader;\r\nimport java.net.HttpURLConnection;\r\nimport java.net.URL;\r\n\r... | java | chosen |
[
{
"from": "system",
"value": "Add identify transformer factory method\n"
},
{
"from": "human",
"value": "package org.callimachusproject.xslt;\n\nimport java.io.InputStream;\nimport java.io.Reader;\n\nimport javax.xml.transform.TransformerFactory;\n\npublic class XSLTransformerFactory {\n\tprivat... | java | chosen |
[
{
"from": "system",
"value": "Make AsyncTasks parallel on API 11+\n\nAccording to the examination of the source code to AsyncTask, on pre-Honeycomb all of the AsyncTasks were executed on a thread pool with a minimum of 5 threads and a maximum of 128. But on API 11+, it won't be executed on a thread pool unl... | java | chosen |
[
{
"from": "system",
"value": "Use ClassLoader rather than Class.forName\n\nStill does not reproduce the issue :-/\n"
},
{
"from": "human",
"value": "package com.jentfoo.classloading;\n\nimport org.junit.Test;\nimport org.threadly.util.Clock;\n\npublic class LoadClassesTest {\n @Test\n public v... | java | chosen |
[
{
"from": "system",
"value": "Fix it so we update the location of the twitter cached trucks even if there is a failure updating the cache.\n"
},
{
"from": "human",
"value": "package foodtruck.server;\n\nimport java.io.IOException;\n\nimport javax.servlet.ServletException;\nimport javax.servlet.h... | java | chosen |
[
{
"from": "system",
"value": "Modify undo command to support redo command\n"
},
{
"from": "human",
"value": "package seedu.address.logic.commands;\n\npublic class UndoCommand extends Command {\n\n public static final String COMMAND_WORD = \"undo\";\n public static final String MESSAGE_USAG... | java | chosen |
[
{
"from": "system",
"value": "Fix all errors in java code\n"
},
{
"from": "human",
"value": "package com.rnscm;\n\nimport com.facebook.react.bridge.NativeModule;\nimport com.facebook.react.bridge.ReactApplicationContext;\nimport com.facebook.react.bridge.ReactContext;\nimport com.facebook.react.... | java | chosen |
[
{
"from": "system",
"value": "Use the smart JSON serializer for BadRequest\n"
},
{
"from": "human",
"value": "package org.openstack.client.internals;\n\nimport org.codehaus.jackson.Version;\nimport org.codehaus.jackson.map.module.SimpleModule;\nimport org.openstack.model.compute.Addresses;\nimpo... | java | chosen |
[
{
"from": "system",
"value": "[NPANDAY-402]: Add support to automatically attach PDB-symbols and Code-Documentation (comment.xml)\n\no rather use equals to compare strings (sorry, I'm a .NET guy :-))\n\ngit-svn-id: ee144a4ada4e65570a65b3ba2a4ac9d4eedc8fa4@1495048 13f79535-47bb-0310-9956-ffa450edef68\n"
},... | java | chosen |
[
{
"from": "system",
"value": "Add import of Ignore for ignored HTMLHelp test"
},
{
"from": "human",
"value": "package org.dita.dost;\n\nimport org.junit.Test;\n\nimport java.io.File;\nimport java.nio.file.Paths;\n\nimport static org.dita.dost.AbstractIntegrationTest.Transtype.*;\n\npublic class ... | java | chosen |
[
{
"from": "system",
"value": "Remove @Override annotation to prevent compilation issue on old Java compiler\n\nChange-Id: I9ed0e8423f5ae028294d773799979865e0dd4e8f\n"
},
{
"from": "human",
"value": "package vtk.rendering;\n\nimport java.awt.event.KeyEvent;\nimport java.awt.event.KeyListener;\nim... | java | chosen |
[
{
"from": "system",
"value": "Add @Documented annotation for the new REST annotation.\n"
},
{
"from": "human",
"value": "/*\n * Copyright (C) 2013 Square, 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 Li... | java | chosen |
[
{
"from": "system",
"value": "Add types like Update_tile , confirm"
},
{
"from": "human",
"value": "package common;\n\npublic enum RequestType {\n\tMOVE,\n\tATTACK,\n\tHARVEST,\n\tLOG_IN,\n\tLOG_OUT,\n\tREGISTER,\n\tCRAFT,\n\tTILE;\n\t\n\tstatic final long serialVersionUID = 12142322;\n}\n"
},... | java | chosen |
[
{
"from": "system",
"value": "Use registry to register WorldGuard flags\n"
},
{
"from": "human",
"value": "package com.Acrobot.ChestShop.Plugins;\nimport com.sk89q.worldguard.protection.flags.Flags;\nimport com.sk89q.worldguard.protection.flags.StateFlag;\nimport com.sk89q.worldguard.protection.... | java | chosen |
[
{
"from": "system",
"value": "Fix exception when trying to login with non-existing user\n"
},
{
"from": "human",
"value": "package se.kits.gakusei.config;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.security.core.authority.AuthorityUtils;\nimport... | java | chosen |
[
{
"from": "system",
"value": "Refactor static variables out of slave node runner\n"
},
{
"from": "human",
"value": " package primes.bramble;\n\nimport java.io.Serializable;\nimport java.util.ArrayList;\n\nimport primes.PrimeGenerator;\nimport bramble.node.slave.ISlaveNodeRunner;\nimport bramble.... | java | chosen |
[
{
"from": "system",
"value": "Add dismiss method for progress dialog on builder\n"
},
{
"from": "human",
"value": "package com.kogimobile.android.baselibrary.app.busevents;\n\n/**\n * @author Julian Cardona on 7/11/14.\n */\npublic class EventProgressDialog {\n\n public static Builder getBuil... | java | chosen |
[
{
"from": "system",
"value": "Update Requirements.name to Reqs enum\n"
},
{
"from": "human",
"value": "package edu.umn.csci5801.model;\r\n\r\nimport java.util.List;\r\n\r\n/**\r\n * Created by Justin on 12/2/2014.\r\n */\r\npublic class GradReqCheck {\r\n private String reqName;\r\n privat... | java | chosen |
[
{
"from": "system",
"value": "Add test case for wrapping a stream passed as a param\n\n\ngit-svn-id: e7d6bde23f017c9ff4efd468d79d66def666766b@2601 eae3c2d3-9b19-0410-a86e-396b6ccb6ab3\n"
},
{
"from": "human",
"value": "import java.io.*;\n\npublic class OpenStream {\n\tpublic static void main(Str... | java | chosen |
[
{
"from": "system",
"value": "Add null check for scope"
},
{
"from": "human",
"value": "package com.github.ferstl.depgraph;\n\nimport org.apache.maven.artifact.Artifact;\nimport org.apache.maven.shared.dependency.graph.DependencyNode;\n\nimport com.github.ferstl.depgraph.dot.NodeRenderer;\nimpor... | java | chosen |
[
{
"from": "system",
"value": "Change parameters for places api output\n"
},
{
"from": "human",
"value": "package com.google.sps.data;\n\n/** Listing object with the specified attributes returned from the places API **/\npublic class Listing {\n private String name;\n private MapLocation ma... | java | chosen |
[
{
"from": "system",
"value": "Validate parsed QName to identity\n\nWe need to validate if parsed QName refers to an existing identity,\nthis fixes up unused AbstractModuleStringIdentityrefCodec to check\nModule references.\n\nChange-Id: Iebbb43681e9b384c43bd81607d169294373bdd72\nJIRA: YANGTOOLS-846\nSigned-... | java | chosen |
[
{
"from": "system",
"value": "Remove unneeded clearing of image view background drawable"
},
{
"from": "human",
"value": "package com.github.mobile.android.repo;\n\nimport android.view.View;\nimport android.widget.ImageView;\nimport android.widget.TextView;\n\nimport com.github.mobile.android.R.... | java | chosen |
[
{
"from": "system",
"value": "Fix strategy name in error message.\n"
},
{
"from": "human",
"value": "package org.metaborg.spoofax.core.stratego.primitive.scopegraph;\n\nimport org.metaborg.scopegraph.context.IScopeGraphContext;\nimport org.metaborg.scopegraph.context.IScopeGraphUnit;\nimport org... | java | chosen |
[
{
"from": "system",
"value": "Add color output for type errors\n"
},
{
"from": "human",
"value": "package utils.logging;\n\nimport java.util.logging.Formatter;\nimport java.util.logging.LogRecord;\n\npublic class L1Formatter extends Formatter{\n\n\t@Override\n\tpublic String format(LogRecord rec... | java | chosen |
[
{
"from": "system",
"value": "Fix bogus Javadoc comment that referred to TraceWriter.\n\nChange-Id: I8c956fa7d32fa1ace147493e20c4a0f26d970dee\n"
},
{
"from": "human",
"value": "// Copyright 2014 Google Inc. All rights reserved.\n//\n// Licensed under the Apache License, Version 2.0 (the \"Licens... | java | chosen |
[
{
"from": "system",
"value": "Use simple_runner from the platform-test dir\n"
},
{
"from": "human",
"value": "package org.mozartoz.truffle;\n\nimport org.mozartoz.truffle.translator.Loader;\n\nimport com.oracle.truffle.api.source.Source;\n\npublic class Main {\n\n\tprivate static final String BA... | java | chosen |
[
{
"from": "system",
"value": "Set fullscreen flags if on api 19 or newer.\n"
},
{
"from": "human",
"value": "package fi.haippirinki.l2p;\n\npublic class MainActivity extends android.app.NativeActivity {\n}\n"
},
{
"from": "gpt",
"value": "package fi.haippirinki.l2p;\n\nimport android... | java | chosen |
[
{
"from": "system",
"value": "[improve] Split the conditional annotations on new lines\n"
},
{
"from": "human",
"value": "package net.safedata.springboot.training.d03.s01;\n\nimport org.springframework.boot.autoconfigure.condition.ConditionalOnClass;\nimport org.springframework.boot.autoconfigur... | java | chosen |
[
{
"from": "system",
"value": "Use the right kind of list creating method to show the correct intent"
},
{
"from": "human",
"value": "package io.burt.jmespath.function;\n\nimport java.util.List;\nimport java.util.Arrays;\n\nimport io.burt.jmespath.Adapter;\nimport io.burt.jmespath.JmesPathType;\n... | java | chosen |
[
{
"from": "system",
"value": "Adjust velocity from MIDI to tone\n"
},
{
"from": "human",
"value": "package piano;\n\nimport javax.microedition.media.Manager;\nimport javax.microedition.media.MediaException;\n\n/**\n * Tone player.\n *\n * @author Wincent Balin\n */\npublic class TonePlayer imple... | java | chosen |
[
{
"from": "system",
"value": "Make compilable under Java 1.5.\n"
},
{
"from": "human",
"value": "package org.junit.experimental.categories;\r\n\r\nimport java.util.ArrayList;\r\nimport java.util.List;\r\n\r\nimport org.junit.internal.Classes;\r\nimport org.junit.runner.FilterFactory;\r\nimport o... | java | chosen |
[
{
"from": "system",
"value": "Remove unused imports from MyActivity\n"
},
{
"from": "human",
"value": "package com.example.mwismer.mobproto_finalproject;\n\nimport android.app.Fragment;\nimport android.bluetooth.BluetoothAdapter;\nimport android.bluetooth.BluetoothDevice;\nimport android.bluetoo... | java | chosen |
[
{
"from": "system",
"value": "Update problem0004 to use streams\n"
},
{
"from": "human",
"value": "/**\n * A palindromic number reads the same both ways.\n * The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 × 99.\n *\n * Find the largest palindrome made from the p... | java | chosen |
[
{
"from": "system",
"value": "Fix tests compile compatibility with 2017.1.2\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2000-2017 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 compliance with the License... | java | chosen |
[
{
"from": "system",
"value": "Use app secret for prod app\n"
},
{
"from": "human",
"value": "package de.bowstreet.testandroidapp;\n\nimport android.support.v7.app.AppCompatActivity;\nimport android.os.Bundle;\nimport android.view.View;\nimport android.widget.Button;\n\nimport com.microsoft.azure... | java | chosen |
[
{
"from": "system",
"value": "Add nearby ship detection to moveEntity\n"
},
{
"from": "human",
"value": "package darkevilmac.movingworld.asm.mixin.core.entity;\n\nimport net.minecraft.entity.Entity;\nimport org.spongepowered.asm.mixin.Mixin;\nimport org.spongepowered.asm.mixin.injection.At;\nimp... | java | chosen |
[
{
"from": "system",
"value": "Add fixme to prevent using mxisd DB as synapse identity store\n"
},
{
"from": "human",
"value": "/*\n * mxisd - Matrix Identity Server Daemon\n * Copyright (C) 2017 Maxime Dor\n *\n * https://max.kamax.io/\n *\n * This program is free software: you can redistribute ... | java | chosen |
[
{
"from": "system",
"value": "Fix bug info endpoint regexp\n"
},
{
"from": "human",
"value": "package org.marsik.bugautomation.rest;\n\nimport java.io.IOException;\nimport java.net.URI;\nimport java.net.URISyntaxException;\nimport javax.inject.Inject;\nimport javax.ws.rs.GET;\nimport javax.ws.rs... | java | chosen |
[
{
"from": "system",
"value": "Rewrite using WNafUtil.generateNaf instead of the inline Naf generation"
},
{
"from": "human",
"value": "package org.bouncycastle.math.ec;\n\nimport java.math.BigInteger;\n\n/**\n * Class implementing the NAF (Non-Adjacent Form) multiplication algorithm.\n */\npubli... | java | chosen |
[
{
"from": "system",
"value": "Stop the search of '.editorconfig' files in the parent container"
},
{
"from": "human",
"value": "package org.eclipse.ec4e.internal.resource;\n\nimport org.eclipse.core.resources.IContainer;\nimport org.eclipse.core.resources.IFile;\nimport org.eclipse.core.resourc... | java | chosen |
[
{
"from": "system",
"value": "Set a 5 minute poll on the data sources\n"
},
{
"from": "human",
"value": "package com.redhat.ukiservices.common;\n\npublic interface CommonConstants {\n\n\tpublic static final String OK = \"OK\";\n\n\tpublic static final String NOT_OK = \"OK\";\n\n\tpublic static f... | java | chosen |
[
{
"from": "system",
"value": "Clean up main class and show JSON and XML output"
},
{
"from": "human",
"value": "package com.codeski.nbt;\n\nimport java.io.File;\nimport java.io.FileNotFoundException;\nimport java.io.IOException;\n\npublic class Main\n{\n\tpublic static void main(String[] args) t... | java | chosen |
[
{
"from": "system",
"value": "Fix deprecated RepositoryRestConfigurerAdapter in the configs.\n"
},
{
"from": "human",
"value": "package hello.config;\n\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\nimport org.springframework.context.annotation.Bean;\nimport org.springframework.cont... | java | chosen |
[
{
"from": "system",
"value": "[CRYPTO-52] Improve assertion message when test fails due to lack of JCE\nUnlimited Strength Jurisdiction Policy Files. Applied patch and changed\n@Before to @BeforeClass."
},
{
"from": "human",
"value": "/**\n * Licensed to the Apache Software Foundation (ASF) unde... | java | chosen |
[
{
"from": "system",
"value": "[TACHYON-1559] Update doc to reference method directly and defend against IDE refactors\n"
},
{
"from": "human",
"value": "/*\n * Licensed to the University of California, Berkeley under one or more contributor license\n * agreements. See the NOTICE file distributed... | java | chosen |
[
{
"from": "system",
"value": "Add iterator to the armor set for convenience"
},
{
"from": "human",
"value": "package info.u_team.u_team_core.item.armor;\n\nimport net.minecraftforge.fml.RegistryObject;\n\npublic class ArmorSet {\n\t\n\tprivate final RegistryObject<UHelmetItem> helmet;\n\tprivate... | java | chosen |
[
{
"from": "system",
"value": "Make dust recipes actually give 40 dust\n"
},
{
"from": "human",
"value": "package com.agilemods.materiamuto.common.core;\n\nimport com.agilemods.materiamuto.common.core.MMItems;\nimport cpw.mods.fml.common.registry.GameRegistry;\nimport net.minecraft.init.Blocks;\n... | java | chosen |
[
{
"from": "system",
"value": "Add stacktrace to java test failures\n"
},
{
"from": "human",
"value": "package brlyman;\n\nimport org.junit.runner.notification.Failure;\nimport org.junit.runner.notification.RunListener;\n\nimport java.util.*;\n\nimport org.junit.runner.Description;\nimport org.ju... | java | chosen |
[
{
"from": "system",
"value": "Add exercise 6, test for comparison for all references\n"
},
{
"from": "human",
"value": "class Dog {\n String name, says;\n}\n\nclass BarkingDogs {\n public static void main(String[] args) {\n Dog dog1 = new Dog();\n dog1.name = \"spot\";\n dog1.says = \... | java | chosen |
[
{
"from": "system",
"value": "Test 01 - Constructing jUnit and traivis ci\n"
},
{
"from": "human",
"value": "package org.real2space;\n\nimport org.junit.After;\nimport org.junit.Before;\nimport org.junit.Test;\n\nimport static org.junit.Assert.*;\n\n/**\n * Created by sryosuke on 2016/10/09.\n *... | java | chosen |
[
{
"from": "system",
"value": "Use static Item.CREATE rather than Item.CONFIGURE and check permission\nfrom the given container.\n"
},
{
"from": "human",
"value": "package hudson.plugins.copyProjectLink;\n\nimport hudson.model.Action;\nimport hudson.model.AbstractProject;\nimport hudson.model.Hud... | java | chosen |
[
{
"from": "system",
"value": "Fix unknown properties in hoverfly info view\n\n\nFormer-commit-id: 8b13c7dee16d75cde6192a7c7df6cab4c57f978b"
},
{
"from": "human",
"value": "package io.specto.hoverfly.junit.api.model;\n\nimport com.fasterxml.jackson.annotation.JsonInclude;\n\nimport java.util.List... | java | chosen |
[
{
"from": "system",
"value": "Increase timeout values to max that were used in last API class\n"
},
{
"from": "human",
"value": "package net.buycraft.plugin.shared;\n\nimport net.buycraft.plugin.shared.util.FakeProxySelector;\nimport net.buycraft.plugin.shared.util.Ipv4PreferDns;\nimport okhttp3... | java | chosen |
[
{
"from": "system",
"value": "Replace use of internal Sun API class\n"
},
{
"from": "human",
"value": "package com.siftscience;\n\nimport okhttp3.Response;\nimport sun.reflect.generics.reflectiveObjects.NotImplementedException;\n\nimport java.io.IOException;\n\npublic class UnlabelResponse exten... | java | chosen |
[
{
"from": "system",
"value": "Add test for removeFile and removeFolder\n"
},
{
"from": "human",
"value": "package edu.chl.proton.model;\n\nimport org.junit.Test;\n\nimport static org.junit.Assert.assertTrue;\n\n\n/**\n * @author Stina Werme\n * Created by stinawerme on 11/05/17.\n */\npublic cla... | java | chosen |
[
{
"from": "system",
"value": "Use internally an array for performance reasons\n"
},
{
"from": "human",
"value": "package jwebform.validation;\n\nimport jwebform.validation.criteria.Criteria;\nimport jwebform.validation.criteria.MaxLength;\n\nimport java.util.ArrayList;\nimport java.util.Collecti... | java | chosen |
[
{
"from": "system",
"value": "Reduce span of ducktape for TestFX + JPMS\n"
},
{
"from": "human",
"value": "open module easyfxml {\n requires java.annotation;\n\n requires javafx.controls;\n requires javafx.fxml;\n requires javafx.graphics;\n\n requires spring.beans;\n requires ... | java | chosen |
[
{
"from": "system",
"value": "Add preference value on settings activity\n\nAllows for value of set preference to be visually seen from settings activity without going into specific setting\n"
},
{
"from": "human",
"value": "package com.example.android.quakereport;\n\nimport android.os.Bundle;\ni... | java | chosen |
[
{
"from": "system",
"value": "Update CoFH to R1.0.1 (No changes to IEnergyContainerItem)"
},
{
"from": "human",
"value": "package cofh.api;\n\npublic class CoFHAPIProps {\n \n private CoFHAPIProps() {\n \n }\n \n public static final String VERSION = \"1.7.10R1.0.0\";\n \... | java | chosen |
[
{
"from": "system",
"value": "Add space to separate arguments.\n"
},
{
"from": "human",
"value": "package executors;\n\npublic class CommandCreator {\n\n public String createCommand(String userCommand) {\n String[] tokens = userCommand.split(\"\\\\s+\");\n\n switch(tokens[0]) {... | java | chosen |
[
{
"from": "system",
"value": "PUBDEV-5378: Change type of blending parameters from long to double.\n"
},
{
"from": "human",
"value": "package ai.h2o.automl.targetencoding;\n\nimport water.Iced;\n\npublic class BlendingParams extends Iced<BlendingParams> {\n private long k;\n private long f;\n\... | java | chosen |
[
{
"from": "system",
"value": "Add support for 2dsphere (Mongo 2.4+)\n\nSee http://docs.mongodb.org/manual/core/2dsphere/"
},
{
"from": "human",
"value": "package org.mongodb.morphia.utils;\n\n\npublic enum IndexDirection {\n ASC(1),\n DESC(-1),\n GEO2D(\"2d\");\n\n private final Obje... | java | chosen |
[
{
"from": "system",
"value": "Connect with portal and server\n\nSigned-off-by: Nuno Azevedo <8c1e4f9df2ead62a44323c12422702b1d8dd9c90@gmail.com>\n"
},
{
"from": "human",
"value": "public class Client {\n public static void main(String args[]) {\n int status = 0;\n Ice.Communicat... | java | chosen |
[
{
"from": "system",
"value": "Build tw: fix fetching models of android projects w/o output parsing IDEA-209457\n\nGitOrigin-RevId: 4476671907a478bebc377d3922d723f093c389f1"
},
{
"from": "human",
"value": "// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2... | java | chosen |
[
{
"from": "system",
"value": "Set the bases of command signs management\n"
},
{
"from": "human",
"value": "package net.avatar.realms.spigot.commandsign;\n\nimport org.bukkit.command.Command;\nimport org.bukkit.command.CommandExecutor;\nimport org.bukkit.command.CommandSender;\nimport org.bukkit.... | java | chosen |
[
{
"from": "system",
"value": "Remove unused method; suppress unchecked cast warnings\n\ngit-svn-id: 4b387fe5ada7764508e2ca96c335714e4c1692c6@1836 0d517254-b314-0410-acde-c619094fa49f\n"
},
{
"from": "human",
"value": "package edu.northwestern.bioinformatics.studycalendar.dao;\n\nimport edu.north... | java | chosen |
[
{
"from": "system",
"value": "Make sure Jackson ignores the view getters.\n"
},
{
"from": "human",
"value": "package com.yammer.dropwizard.views;\n\nimport com.yammer.metrics.Metrics;\nimport com.yammer.metrics.core.Timer;\n\npublic abstract class View {\n private final String templateName;\n... | java | chosen |
[
{
"from": "system",
"value": "Move statements to parseTime method\n"
},
{
"from": "human",
"value": "package awesomefb;\n\nimport com.mongodb.BasicDBObject;\nimport org.json.JSONObject;\n\nimport java.text.DateFormat;\nimport java.text.ParseException;\nimport java.text.SimpleDateFormat;\nimport ... | java | chosen |
[
{
"from": "system",
"value": "Fix rotation duplicating fragment in sample\n"
},
{
"from": "human",
"value": "package com.jenzz.materialpreference.sample;\n\nimport android.os.Bundle;\nimport android.os.Handler;\nimport android.preference.PreferenceFragment;\nimport android.support.v7.app.ActionB... | java | chosen |
[
{
"from": "system",
"value": "Add Transaction Requires New to Action Log service\n"
},
{
"from": "human",
"value": "package edu.harvard.iq.dataverse.actionlogging;\n\nimport java.util.Date;\nimport javax.ejb.Stateless;\nimport javax.persistence.EntityManager;\nimport javax.persistence.Persistenc... | java | chosen |
[
{
"from": "system",
"value": "Call queued events on GLSurfaceView shadow.\n\nPiperOrigin-RevId: 200648230\n"
},
{
"from": "human",
"value": "package org.robolectric.shadows;\n\nimport android.opengl.GLSurfaceView;\nimport org.robolectric.annotation.Implementation;\nimport org.robolectric.annotat... | java | chosen |
[
{
"from": "system",
"value": "Fix some bugs in the list parser regex"
},
{
"from": "human",
"value": "package org.monospark.spongematchers.parser.element;\n\nimport java.util.List;\nimport java.util.regex.Matcher;\nimport java.util.regex.Pattern;\n\nimport org.monospark.spongematchers.util.Patte... | java | chosen |
[
{
"from": "system",
"value": "Change type to abstract class\n"
},
{
"from": "human",
"value": "package jp.glassmoon.app;\n\nimport java.io.File;\n\nimport jp.glassmoon.events.GerritEvent;\n\nimport com.fasterxml.jackson.databind.DeserializationFeature;\nimport com.fasterxml.jackson.databind.Obje... | java | chosen |
[
{
"from": "system",
"value": "Move out reusable thread factory."
},
{
"from": "human",
"value": "/*\n * Copyright (c) 2012 Malhar, Inc.\n * All Rights Reserved.\n */\npackage com.malhartech.util;\n\nimport java.util.concurrent.ThreadFactory;\nimport java.util.concurrent.atomic.AtomicInteger;\n... | java | chosen |
[
{
"from": "system",
"value": "Fix typo in package Javadocs\n"
},
{
"from": "human",
"value": "/*\n * Copyright DataStax, 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 obtain a copy o... | java | chosen |
[
{
"from": "system",
"value": "DanielWagnerHall: Use a file detector for Sauce tests\n\ngit-svn-id: 4179480af2c2519a5eb5e1e9b541cbdf5cf27696@15219 07704840-8298-11de-bf8c-fd130f914ac9\n"
},
{
"from": "human",
"value": "package org.openqa.selenium.testing.drivers;\n\nimport com.google.common.base.... | java | chosen |
[
{
"from": "system",
"value": "Add support for unexpected fields and improved out of order.\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2016 higherfrequencytrading.com\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in complia... | java | chosen |
[
{
"from": "system",
"value": "Update moving average tests to show floating point truncation\n"
},
{
"from": "human",
"value": "package com.easternedgerobotics.rov.math;\n\nimport org.junit.Test;\nimport rx.observers.TestSubscriber;\nimport rx.schedulers.TestScheduler;\nimport rx.subjects.TestSub... | java | chosen |
[
{
"from": "system",
"value": "Update for new ID-less addMapping()\n"
},
{
"from": "human",
"value": "\npackage forager.events;\n\nimport galileo.event.EventMap;\n\npublic class ForagerEventMap extends EventMap {\n\n public ForagerEventMap() {\n addMapping(1, JoinEvent.class);\n ... | java | chosen |
[
{
"from": "system",
"value": "Remove Debug code in packet handler\n"
},
{
"from": "human",
"value": "package oe.packet;\n\nimport net.minecraft.network.INetworkManager;\nimport net.minecraft.network.packet.Packet250CustomPayload;\nimport cpw.mods.fml.common.network.IPacketHandler;\nimport cpw.mo... | java | chosen |
[
{
"from": "system",
"value": "Add .bib ending to generated files\n"
},
{
"from": "human",
"value": "package referencelibrary.ui.command;\n\nimport referencelibrary.App;\nimport referencelibrary.io.IO;\n\n/**\n * Created by petri on 16.4.2016.\n */\npublic class GenerateBibTexCommand extends Comm... | java | chosen |
[
{
"from": "system",
"value": "GUACAMOLE-678: Return null for null property values.\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 i... | java | chosen |
[
{
"from": "system",
"value": "Set locale to US on humanize test\n"
},
{
"from": "human",
"value": "package com.conveyal.gtfs.util;\n\nimport org.junit.Test;\n\nimport static com.conveyal.gtfs.util.Util.human;\nimport static org.hamcrest.MatcherAssert.assertThat;\nimport static org.hamcrest.Match... | java | chosen |
[
{
"from": "system",
"value": "Fix compiler error on validate budget handler\n"
},
{
"from": "human",
"value": "package org.openlmis.core.upload;\n\nimport org.openlmis.core.domain.BaseModel;\nimport org.openlmis.core.domain.Budget;\nimport org.openlmis.core.service.*;\nimport org.springframework... | java | chosen |
[
{
"from": "system",
"value": "Build URL with server context path.\n"
},
{
"from": "human",
"value": "package com.github.aureliano.verbum_domini.helper;\n\nimport javax.servlet.ServletRequest;\nimport javax.servlet.http.HttpServletRequest;\n\nimport org.apache.commons.lang.StringUtils;\n\npublic ... | java | chosen |
[
{
"from": "system",
"value": "Use json.toString instead of json when printing object.\n"
},
{
"from": "human",
"value": "package net.openright.infrastructure.rest;\n\nimport java.io.IOException;\nimport java.io.Writer;\n\nimport javax.servlet.http.HttpServletRequest;\nimport javax.servlet.http.H... | java | chosen |
[
{
"from": "system",
"value": "Make `baseUrl` non-final as we should be able to override it.\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2021, Yurii Serhiichuk\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": "Handle zero-arguments case in bitcoinj-cli"
},
{
"from": "human",
"value": "package com.msgilligan.bitcoinj.cli;\n\nimport com.msgilligan.bitcoinj.rpc.JsonRPCException;\n\nimport java.io.IOException;\nimport java.util.List;\n\n/**\n * An attempt at cloning the bitco... | java | chosen |
[
{
"from": "system",
"value": "Disable random test for Jenkins\n"
},
{
"from": "human",
"value": "/*\n * Copyright (c) 2014, Cloudera, Inc. All Rights Reserved.\n *\n * Cloudera, Inc. licenses this file to you under the Apache License,\n * Version 2.0 (the \"License\"). You may not use this file ... | java | chosen |
[
{
"from": "system",
"value": "Write buyer ID when converting delivery logs.\n"
},
{
"from": "human",
"value": "package com.pinterest.secor.io.impl;\n\nimport com.pinterest.secor.common.SecorConfig;\nimport com.pinterest.secor.io.AdgearReader;\nimport com.pinterest.secor.io.KeyValue;\n\nimport ne... | java | chosen |
[
{
"from": "system",
"value": "Use auxilliary recursive method to eliminate need to create new strings via substring method\n"
},
{
"from": "human",
"value": "/*\n Write a recursive method that finds the number of occurrences of a specified\n letter in a string using the following method header... | java | chosen |
[
{
"from": "system",
"value": "Allow Revolut username to be minimum 3 characters\n"
},
{
"from": "human",
"value": "/*\n * This file is part of Bisq.\n *\n * Bisq is free software: you can redistribute it and/or modify it\n * under the terms of the GNU Affero General Public License as published b... | java | chosen |
[
{
"from": "system",
"value": "Fix test for unordered map making it order-insensitive\n"
},
{
"from": "human",
"value": "package com.marcospassos.phpserializer.adapter;\n\nimport static org.mockito.Mockito.inOrder;\nimport static org.mockito.Mockito.mock;\n\nimport com.marcospassos.phpserializer.... | java | chosen |
[
{
"from": "system",
"value": "Add private constructor for factory.\n"
},
{
"from": "human",
"value": "package com.novoda.downloadmanager;\n\nimport com.novoda.notils.logger.simple.Log;\n\nclass WaitForLockRunnable {\n\n interface Action {\n void performAction();\n }\n\n static Wa... | java | chosen |
[
{
"from": "system",
"value": "Work on thredds.catalog2: working on unit tests.\n"
},
{
"from": "human",
"value": "package thredds.catalog2;\n\nimport junit.framework.*;\nimport thredds.catalog2.simpleImpl.*;\nimport thredds.catalog2.xml.parser.TestCatalogParser;\n\n/**\n * _more_\n *\n * @author... | java | chosen |
[
{
"from": "system",
"value": "Fix helper field not being final\n"
},
{
"from": "human",
"value": "package de.philipphager.disclosure.database.app;\n\nimport android.content.pm.PackageInfo;\n\npublic final class MockPackage {\n @SuppressWarnings(\"PMD.UnnecessaryConstructor\") private MockPackag... | java | chosen |
[
{
"from": "system",
"value": "Fix errors with mouse leaving boardview during a move and remove\nerror-finding messages"
},
{
"from": "human",
"value": "package controller;\n\nimport boundary.PlayerApplication;\nimport model.PlayerModel;\nimport model.PlayerState;\nimport model.Point;\nimport mod... | java | chosen |
[
{
"from": "system",
"value": "Fix over writing previous addToResult calls\n\nI noticed that multiple calls to the addToResult method in the org.apache.camel.component.aws.ddb.AbstractDdbCommand within the child class org.apache.camel.component.aws.ddb.ScanCommand caused the next call to over write the previ... | java | chosen |
[
{
"from": "system",
"value": "Add a todo in the file. \n\n"
},
{
"from": "human",
"value": "import java.io.File;\nimport java.io.FileInputStream;\nimport java.io.FileNotFoundException;\nimport java.nio.file.Files;\nimport java.util.*;\nimport machine.learning.ARL;\n\npublic class Programme {\n\n... | java | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.