conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "RED: Test now uses random nbr."
},
{
"from": "human",
"value": "package de.itemis.mosig.ringbuffer;\n\nimport org.junit.Assert;\nimport org.junit.Test;\n\npublic class CircularBufferTest {\n\n\t@Test\n\tpublic void constructorShouldSetProvidedSize() {\n\t\tCircularB... | java | chosen |
[
{
"from": "system",
"value": "[refactor] Fix test path in Validation test\n"
},
{
"from": "human",
"value": "/*\n * eXist Open Source Native XML Database\n * Copyright (C) 2001-2018 The eXist Project\n * http://exist-db.org\n *\n * This program is free software; you can redistribute it and/or\n ... | java | chosen |
[
{
"from": "system",
"value": "Remove defect for building a string in a loop\n"
},
{
"from": "human",
"value": "package nl.eernie.jmoribus.model;\n\nimport org.apache.commons.lang3.StringUtils;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class Step {\n\n private StepType ... | java | chosen |
[
{
"from": "system",
"value": "Add logic to prevent the addition of duplicate X-Correlation-ID headers if the tracing filter is called multiple times (also logs a warning if this happens)\n"
},
{
"from": "human",
"value": "package com.peterphi.std.guice.restclient.resteasy.impl;\n\nimport com.pet... | java | chosen |
[
{
"from": "system",
"value": "Refactor ten percent off everything strategy\n"
},
{
"from": "human",
"value": "package com.akikanellis.kata01;\n\nimport com.akikanellis.kata01.item.Items;\nimport com.akikanellis.kata01.item.QuantifiedItem;\nimport com.akikanellis.kata01.offer.Offer;\nimport com.a... | java | chosen |
[
{
"from": "system",
"value": "Replace deprecated Date constructor use in Jackson test\n"
},
{
"from": "human",
"value": "package io.quarkus.jackson.deployment;\n\nimport java.util.Calendar;\nimport java.util.Date;\n\nimport javax.inject.Inject;\n\nimport org.assertj.core.api.Assertions;\nimport ... | java | chosen |
[
{
"from": "system",
"value": "Make Kafka KEY and PARTITION values more intuitive.\n"
},
{
"from": "human",
"value": "/**\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional i... | java | chosen |
[
{
"from": "system",
"value": "Add change will now de-serialize a PlanTreeNode children when readElement is called.\n"
},
{
"from": "human",
"value": "package edu.northwestern.bioinformatics.studycalendar.xml.writers;\n\nimport edu.northwestern.bioinformatics.studycalendar.domain.delta.Add;\nimpo... | java | chosen |
[
{
"from": "system",
"value": "Throw exceptions with type UncheckedException\n"
},
{
"from": "human",
"value": "package com.github.blindpirate.gogradle.util;\n\nimport java.io.PrintWriter;\nimport java.io.StringWriter;\n\npublic class ExceptionHandler {\n public static RuntimeException uncheck... | java | chosen |
[
{
"from": "system",
"value": "Use cons() instead of of() to improve performance\n"
},
{
"from": "human",
"value": "package com.blogspot.nurkiewicz.lazyseq.samples;\n\nimport com.blogspot.nurkiewicz.lazyseq.AbstractBaseTestCase;\nimport com.blogspot.nurkiewicz.lazyseq.LazySeq;\nimport org.testng.... | java | chosen |
[
{
"from": "system",
"value": "Fix potential NPE in the code\n"
},
{
"from": "human",
"value": "package org.kohsuke.github;\n\n/**\n * A branch in a repository.\n * \n * @author Yusuke Kokubo\n */\npublic class GHBranch {\n private GitHub root;\n private GHRepository owner;\n\n private S... | java | chosen |
[
{
"from": "system",
"value": "Make instance private, reorder lambda\n"
},
{
"from": "human",
"value": "package io.teiler.api.endpoint;\n\nimport static spark.Spark.before;\nimport static spark.Spark.get;\nimport static spark.Spark.post;\n\nimport io.teiler.api.service.GroupService;\nimport org.s... | java | chosen |
[
{
"from": "system",
"value": "Make test name less generic.\n"
},
{
"from": "human",
"value": "package uk.ac.ebi.quickgo.annotation.service.converter;\n\nimport uk.ac.ebi.quickgo.annotation.common.document.AnnotationDocMocker;\nimport uk.ac.ebi.quickgo.annotation.common.document.AnnotationDocumen... | java | chosen |
[
{
"from": "system",
"value": "Use the correct since value\n"
},
{
"from": "human",
"value": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2014-2016 Ioannis Moutsatsos, Bruno P. Kinoshita\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this softwa... | java | chosen |
[
{
"from": "system",
"value": "Allow codes for owned entities in the api models\n"
},
{
"from": "human",
"value": "package org.marsik.elshelves.api.entities;\n\nimport com.fasterxml.jackson.annotation.JsonIdentityInfo;\nimport com.fasterxml.jackson.annotation.JsonTypeInfo;\nimport com.fasterxml.j... | java | chosen |
[
{
"from": "system",
"value": "Check if package protected visibility works\n"
},
{
"from": "human",
"value": "package com.proxerme.library.result.success;\n\nimport android.support.annotation.NonNull;\n\nimport com.afollestad.bridge.annotations.Body;\nimport com.proxerme.library.entity.News;\nimp... | java | chosen |
[
{
"from": "system",
"value": "Add another default from JSLint."
},
{
"from": "human",
"value": "package com.googlecode.jslint4java.eclipse.preferences;\n\nimport java.util.EnumSet;\nimport java.util.Set;\n\nimport org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;\nimport org.ec... | java | chosen |
[
{
"from": "system",
"value": "Use serialized subject where possible\n"
},
{
"from": "human",
"value": "package org.github.pesan.tools.servicespy.action;\n\nimport io.reactivex.Completable;\nimport io.reactivex.Observable;\nimport io.reactivex.subjects.ReplaySubject;\nimport io.reactivex.subjects... | java | chosen |
[
{
"from": "system",
"value": "feat(plugin): Manage repository as a plugin\n"
},
{
"from": "human",
"value": "/**\n * Copyright (C) 2015 The Gravitee team (http://gravitee.io)\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 sample for static presenter typing\n"
},
{
"from": "human",
"value": "package net.grandcentix.thirtyinch.sample;\n\nimport com.jakewharton.rxbinding.view.RxView;\n\nimport net.grandcentrix.thirtyinch.Presenter;\nimport net.grandcentrix.thirtyinch.android.Thir... | java | chosen |
[
{
"from": "system",
"value": "Fix error in visual layout editor\n\nAvoid setting PhoneNumberFormattingTextWatcher in MobileNumberEditText\nwhen in edit mode.\n\nFixes #24\n"
},
{
"from": "human",
"value": "package com.braintreepayments.cardform.view;\n\nimport android.content.Context;\nimport an... | java | chosen |
[
{
"from": "system",
"value": "Remove description for config options\n"
},
{
"from": "human",
"value": "package com.crowdin.cli.commands.parts;\n\nimport com.crowdin.cli.commands.functionality.PropertiesBuilder;\nimport com.crowdin.cli.properties.Params;\nimport com.crowdin.cli.properties.Propert... | java | chosen |
[
{
"from": "system",
"value": "Prepare plugin for gui testing with remote-robot\n\nGitOrigin-RevId: 708ebfb9f4d7f57bbeafc6ff64434039f2865bdd"
},
{
"from": "human",
"value": "// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in ... | java | chosen |
[
{
"from": "system",
"value": "Implement simple logging to console.\n"
},
{
"from": "human",
"value": "/**\n * Copyright 2012 The PlayN Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not\n * use this file except in compliance with the License. You may ob... | java | chosen |
[
{
"from": "system",
"value": "Fix sdk restarted true bug\n"
},
{
"from": "human",
"value": "/*\n * Copyright (c) 2016 Applivery\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": "Use converter from the EntityUtils\n"
},
{
"from": "human",
"value": "package com.epam.ta.reportportal.ws.converter.converters;\n\nimport com.epam.ta.reportportal.entity.Activity;\nimport com.epam.ta.reportportal.ws.model.ActivityResource;\n\nimport java.sql.Date;\n... | java | chosen |
[
{
"from": "system",
"value": "Change toString()\nRename field thingClass to contentType\n"
},
{
"from": "human",
"value": "package ru.nsu.ccfit.bogush.factory;\n\nimport org.apache.logging.log4j.LogManager;\nimport org.apache.logging.log4j.Logger;\n\npublic class Supplier<T extends CarFactoryObj... | java | chosen |
[
{
"from": "system",
"value": "Add helper methods that convert a FindIterable to a List and Stream"
},
{
"from": "human",
"value": "package ch.rasc.eds.starter.util;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\nimport org.bson.conversions.Bson;\n\nimport com.mongodb.client.model.Sort... | java | chosen |
[
{
"from": "system",
"value": "samples: Add quickstarts to root module.\n\nFixes checkstyle errors in samples.\n"
},
{
"from": "human",
"value": "/*\n Copyright 2016, Google, Inc.\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compli... | java | chosen |
[
{
"from": "system",
"value": "Add comment and SuppressWarning annotation\n"
},
{
"from": "human",
"value": "package io.tracee.contextlogger.jaxws.container;\n\npublic final class TraceeContextLoggerJaxwsConstants {\n\n\tprivate TraceeContextLoggerJaxwsConstants() { }\n\n\tpublic static final Str... | java | chosen |
[
{
"from": "system",
"value": "feat(player): Implement setting player health and max health\n"
},
{
"from": "human",
"value": "package valandur.webapi.json.request.player;\r\n\r\nimport com.fasterxml.jackson.databind.annotation.JsonDeserialize;\r\nimport valandur.webapi.json.request.entity.Update... | java | chosen |
[
{
"from": "system",
"value": "Fix for naming of rascal metrics collections."
},
{
"from": "human",
"value": "package org.ossmeter.metricprovider.rascal.trans.model;\n\nimport com.googlecode.pongo.runtime.PongoDB;\nimport com.mongodb.DB;\n// protected region custom-imports on begin\n// protected ... | java | chosen |
[
{
"from": "system",
"value": "XTARCHCOMPONENT-1: Create a Maven Archetype to make it easy to create XWiki Components\n\n* Fixed invalid package\n\ngit-svn-id: ffe117d4700a1f5efb0d898519c0bde20828e3e5@32897 f329d543-caf0-0310-9063-dda96c69346f\n"
},
{
"from": "human",
"value": "/*\r\n * See the N... | java | chosen |
[
{
"from": "system",
"value": "Fix missing required elements in SiteIdentification\n"
},
{
"from": "human",
"value": "package au.gov.ga.geodesy.support.mapper.dozer.populator;\n\nimport au.gov.ga.geodesy.support.utils.GMLGmlTools;\nimport au.gov.ga.geodesy.support.utils.GMLMiscTools;\nimport au.g... | java | chosen |
[
{
"from": "system",
"value": "Add tooltips to the requirements on the node list.\n"
},
{
"from": "human",
"value": "package net.sourceforge.javydreamercsw.client.ui.nodes;\r\n\r\nimport com.validation.manager.core.db.Requirement;\r\nimport com.validation.manager.core.server.core.RequirementServe... | java | chosen |
[
{
"from": "system",
"value": "Add missing whitespace in license header\n"
},
{
"from": "human",
"value": "/**\r\n * Copyright (c) 2012-2013 André Bargull\r\n * Alle Rechte vorbehalten / All Rights Reserved. Use is subject to license terms.\r\n *\r\n * <https://github.com/anba/es6draft>\r\n */\r\... | java | chosen |
[
{
"from": "system",
"value": "Add method to retrieve all registered commands\n"
},
{
"from": "human",
"value": "package org.telegram.telegrambots.api.commands;\n\nimport java.util.Map;\n\n/**\n *\n */\npublic interface ICommandRegistery {\n\n /**\n * register a command\n *\n * @pa... | java | chosen |
[
{
"from": "system",
"value": "ncdc_count: Create static LongWritable(1) outside mapper\n"
},
{
"from": "human",
"value": "package nz.org.hikari.cat.ncdc_count;\n\n// Mapper for NCDC record count MapReduce job, called from NcdcRecordCount\n// driver class\n\nimport java.io.IOException;\n\nimport ... | java | chosen |
[
{
"from": "system",
"value": "Update to where link is clickable in javadocs\n"
},
{
"from": "human",
"value": "package com.github.aurae.retrofit2;\n\nimport okhttp3.RequestBody;\nimport okhttp3.ResponseBody;\nimport retrofit2.Converter;\nimport retrofit2.Retrofit;\n\nimport java.lang.annotation.... | java | chosen |
[
{
"from": "system",
"value": "Correct test to provide generic type\n"
},
{
"from": "human",
"value": "package org.pacey.dropwizardpebble;\n\nimport com.mitchellbosecke.pebble.PebbleEngine;\nimport io.dropwizard.Configuration;\nimport io.dropwizard.lifecycle.setup.LifecycleEnvironment;\nimport or... | java | chosen |
[
{
"from": "system",
"value": "Configure browser type from IDE\n\n* Go to Edit configurations of a test class and pass browser type to VM\noptions, i.e.:\nVM options: -ea -Dbrowser=firefox\n* If nothing passed to VM options, then default browser is used - the\nsecond param in System.getProperty()\n"
},
{... | java | chosen |
[
{
"from": "system",
"value": "Change PhoneGap version to 0.9.3.\n"
},
{
"from": "human",
"value": "/*\n * PhoneGap is available under *either* the terms of the modified BSD license *or* the\n * MIT License (2008). See http://opensource.org/licenses/alphabetical for full text.\n * \n * Copyright ... | java | chosen |
[
{
"from": "system",
"value": "SO-3294: Add license header, since tag"
},
{
"from": "human",
"value": "package com.b2international.snowowl.core.validation;\n\nimport com.fasterxml.jackson.annotation.JsonProperty;\n\npublic class StylingDetail {\n\t\n\tprivate final int index;\n\tprivate final int... | java | chosen |
[
{
"from": "system",
"value": "Use anyPost instead of POST / to catch all POST on /*\n"
},
{
"from": "human",
"value": "package xcarpaccio;\n\nimport net.codestory.http.Configuration;\nimport net.codestory.http.payload.Payload;\nimport net.codestory.http.routes.Routes;\n\npublic class WebConfigur... | java | chosen |
[
{
"from": "system",
"value": "Change of GA tracking code.\n"
},
{
"from": "human",
"value": "/*\n * Copyright (C) 2010 Google Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not\n * use this file except in compliance with the License. You may obtain a copy ... | java | chosen |
[
{
"from": "system",
"value": "Fix getting basic auth credentials for installing bundles\n"
},
{
"from": "human",
"value": "package com.github.dynamicextensionsalfresco.gradle.configuration;\n\nimport java.util.Base64;\nimport javax.inject.Inject;\nimport org.gradle.api.model.ObjectFactory;\nimpo... | java | chosen |
[
{
"from": "system",
"value": "Revert \"Increased wait time to 5sec\"\n\nThis reverts commit fef7dee\n"
},
{
"from": "human",
"value": "package urchin.selenium.view;\n\nimport org.openqa.selenium.By;\nimport org.openqa.selenium.WebDriver;\nimport org.openqa.selenium.support.ui.ExpectedCondition;\... | java | chosen |
[
{
"from": "system",
"value": "Add controllerhost node type to controller-api\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.hosted.controller.api.integration.nodere... | java | chosen |
[
{
"from": "system",
"value": "Fix optionalchat -> string datawatcher converter.\n\nString datwatcher object assumes empty strings as null, while\noptionalchat has a separate boolean to indicate that. So if the\noptionalchat string is not null, but the json -> legacy text converter\noutput an empty string, w... | java | chosen |
[
{
"from": "system",
"value": "Add reference to returned model.\n"
},
{
"from": "human",
"value": "package uk.ac.ebi.quickgo.annotation.service.converter;\n\nimport uk.ac.ebi.quickgo.annotation.common.document.AnnotationDocument;\nimport uk.ac.ebi.quickgo.annotation.model.Annotation;\n\n/**\n * @... | java | chosen |
[
{
"from": "system",
"value": "Exit with error for larger range of error conditions in sub threads."
},
{
"from": "human",
"value": "package abra;\n\n/**\n * Abstract base class for ABRA threads.\n * \n * @author Lisle E. Mose (lmose at unc dot edu)\n */\npublic abstract class AbraRunnable implem... | java | chosen |
[
{
"from": "system",
"value": "Verify imports work when compiling incrementally\n"
},
{
"from": "human",
"value": "public class CompileTwice {\n public String message() {\n return \"Hi again!\";\n }\n}"
},
{
"from": "gpt",
"value": "import java.util.Collections;\nimport j... | java | chosen |
[
{
"from": "system",
"value": "Create and refactor over-loaded versions of to CSV\n"
},
{
"from": "human",
"value": "package uk.ac.ebi.quickgo.common.converter;\n\nimport java.util.Arrays;\nimport java.util.stream.Collectors;\n\n/**\n * A useful class for converting stuff.\n *\n * @author Tony Wa... | java | chosen |
[
{
"from": "system",
"value": "Fix texture style adapter float parsing\n\n"
},
{
"from": "human",
"value": "package org.yggard.brokkgui.style.adapter;\n\nimport org.yggard.brokkgui.paint.Texture;\n\npublic class TextureStyleAdapter implements IStyleAdapter<Texture>\n{\n @Override\n public T... | java | chosen |
[
{
"from": "system",
"value": "Add some parameters: debugFlag and maxScans."
},
{
"from": "human",
"value": "package com.jfixby.tools.bleed.api;\n\nimport com.jfixby.cmns.api.filesystem.File;\n\npublic interface TextureBleedSpecs {\n\n\tFile getInputFolder();\n\n\tvoid setInputFolder(File input_f... | java | chosen |
[
{
"from": "system",
"value": "Tweak email address pattern and define the string as a constant.\n"
},
{
"from": "human",
"value": "\n/*\n * Copyright (C) 2011 Archie L. Cobbs. All rights reserved.\n *\n * $Id$\n */\n\npackage org.dellroad.stuff.validation;\n\nimport java.lang.annotation.Documente... | java | chosen |
[
{
"from": "system",
"value": "Use own dependency injection framework for mazebert ladder. yes, this is insane but was fun ;-)\n"
},
{
"from": "human",
"value": "package org.jusecase;\n\npublic class UsecaseExecutorException extends RuntimeException {\n public UsecaseExecutorException(String m... | java | chosen |
[
{
"from": "system",
"value": "Add error response to properties resource\n"
},
{
"from": "human",
"value": "package etomica.server.resources;\n\nimport etomica.meta.SimulationModel;\nimport etomica.meta.properties.Property;\nimport etomica.meta.wrappers.Wrapper;\nimport etomica.server.dao.Simulat... | java | chosen |
[
{
"from": "system",
"value": "Add test tags for blocks\n"
},
{
"from": "human",
"value": "package info.u_team.u_team_test.init;\r\n\r\n\r\npublic class TestTags {\r\n\t\r\n\tpublic static class Blocks {\r\n\t\t\r\n\t}\r\n\t\r\n\tpublic static class Items {\r\n\t\t\r\n\t}\r\n\t\r\n}\r\n"
},
{... | java | chosen |
[
{
"from": "system",
"value": "Test the constructor with initial value."
},
{
"from": "human",
"value": "package com.github.platinumrondo.clickcount.model;\n\nimport org.junit.Before;\nimport org.junit.Test;\nimport static org.junit.Assert.assertEquals;\n\npublic class SingleIncrementCountModelTe... | java | chosen |
[
{
"from": "system",
"value": "Fix a potential NPE in comparator[T38116]\n"
},
{
"from": "human",
"value": "/*******************************************************************************\n * Copyright (c) 2008 Actuate Corporation.\n * All rights reserved. This program and the accompanying mater... | java | chosen |
[
{
"from": "system",
"value": "Read clientId and clientSecret from fuelsdk-test.properties."
},
{
"from": "human",
"value": "//\n// PrintAllLists.java -\n//\n// Prints the names of all lists in the ExactTarget account\n// represented by the specified CLIENT_ID and CLIENT_SECRET.\n//\n//... | java | chosen |
[
{
"from": "system",
"value": "Add endpoint for fetching a random quote\n"
},
{
"from": "human",
"value": "package io.github.gernd.sqaas.endpoints;\n\nimport io.github.gernd.sqaas.endpoints.dto.QuoteDto;\nimport io.github.gernd.sqaas.model.QuoteRepository;\nimport org.springframework.beans.factor... | java | chosen |
[
{
"from": "system",
"value": "Fix AddReportActivity being called two times.\n"
},
{
"from": "human",
"value": "package org.forestguardian.View.Fragments;\n\nimport android.app.Fragment;\nimport android.os.Bundle;\nimport android.support.design.widget.FloatingActionButton;\nimport android.view.La... | java | chosen |
[
{
"from": "system",
"value": "Add a few tests for AgingData to get 100% coverage.\n"
},
{
"from": "human",
"value": "package com.openxc.util;\n\nimport static org.hamcrest.MatcherAssert.assertThat;\nimport static org.hamcrest.Matchers.greaterThan;\nimport static org.hamcrest.Matchers.greaterThan... | java | chosen |
[
{
"from": "system",
"value": "Test that Functional Interfaces has only one declared method\n"
},
{
"from": "human",
"value": "package es.sandbox.spikes.java8.interfaces;\n\nimport es.sandbox.spikes.java8.InvocationSpy;\nimport org.junit.Before;\nimport org.junit.Test;\n\nimport static es.sandbox... | java | chosen |
[
{
"from": "system",
"value": "Load only active features from local db\n"
},
{
"from": "human",
"value": "/*\n * 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 * You may obt... | java | chosen |
[
{
"from": "system",
"value": "Add report domain to registry.\n\nSigned-off-by: Michael Handler <331a76cd0f162b0218893a3dfa4df5a8bf659d1e@fullstop.at>\n"
},
{
"from": "human",
"value": "/**\n\nCopyright 2010 OpenEngSB Division, Vienna University of Technology\n\nLicensed under the Apache License,... | java | chosen |
[
{
"from": "system",
"value": "Comment about FLOAT mode for shooter motors"
},
{
"from": "human",
"value": "package ftc8390.vv;\n\nimport com.qualcomm.robotcore.hardware.HardwareMap;\n\n/**\n * Created by jmgu3 on 11/7/2016.\n */\npublic class Shooter {\n\n public void init(HardwareMap hardwar... | java | chosen |
[
{
"from": "system",
"value": "Add class comment for kafkaTransportDetails class\n"
},
{
"from": "human",
"value": "package org.wso2.carbon.sp.jobmanager.core.bean;\n\nimport java.util.List;\n\n/**\n *\n */\npublic class KafkaTransportDetails {\n private String appName;\n private String sid... | java | chosen |
[
{
"from": "system",
"value": "Comment out failing test to make the build pass\n"
},
{
"from": "human",
"value": "package org.spoofax.jsglr2.integrationtest.regression;\n\nimport java.util.stream.Stream;\n\nimport org.junit.jupiter.api.DynamicTest;\nimport org.junit.jupiter.api.TestFactory;\nimpo... | java | chosen |
[
{
"from": "system",
"value": "Use application context for analytics provider\n"
},
{
"from": "human",
"value": "package com.alexstyl.specialdates.analytics;\n\nimport android.content.Context;\n\nimport com.alexstyl.specialdates.common.BuildConfig;\nimport com.mixpanel.android.mpmetrics.MixpanelA... | java | chosen |
[
{
"from": "system",
"value": "Update comments for authentication information class.\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// Y... | java | chosen |
[
{
"from": "system",
"value": "Add disabled test to dump cache\n"
},
{
"from": "human",
"value": "package net.runelite.cache.fs;\n\nimport java.io.IOException;\nimport org.junit.Test;\n\npublic class StoreLoadTest\n{\n\t@Test\n\tpublic void test() throws IOException\n\t{\n\t\tStore store = new St... | java | chosen |
[
{
"from": "system",
"value": "Test unwrap exception for Hibernate\n"
},
{
"from": "human",
"value": "package com.zaxxer.hikari;\n\nimport java.sql.Connection;\nimport java.util.Properties;\n\nimport org.junit.Assert;\nimport org.junit.Test;\n\nimport com.zaxxer.hikari.hibernate.HikariConnectionP... | java | chosen |
[
{
"from": "system",
"value": "Remove unused close method from api\n"
},
{
"from": "human",
"value": "/*\n * JBoss, Home of Professional Open Source\n * Copyright 2008-11, Red Hat Middleware LLC, and others contributors as indicated\n * by the @authors tag. All rights reserved.\n * See the copyri... | java | chosen |
[
{
"from": "system",
"value": "Fix subtle bug in the ReduceReads stash reported by Adam\n\n * The tailSet generated every time we flush the reads stash is still being affected by subsequent clears because it is just a pointer to the parent element in the original TreeSet. This is dangerous, and there is a ... | java | chosen |
[
{
"from": "system",
"value": "Remove obsolete method implementation due to changed implementation of Change2CommandTransformingProviding.\n"
},
{
"from": "human",
"value": "package edu.kit.ipd.sdq.vitruvius.casestudies.jmljava.vitruvius.changesynchronizer.internal;\r\n\r\nimport edu.kit.ipd.sdq.... | java | chosen |
[
{
"from": "system",
"value": "Use TachyFontData to get the base data.\nGet the fontname from the request.\nAdd copyright.\n"
},
{
"from": "human",
"value": "package com.github.googlei18n.tachyfont;\n\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.OutputStream;\nimport ... | java | chosen |
[
{
"from": "system",
"value": "Fix up env var name.\n"
},
{
"from": "human",
"value": "package com.nexmo.quickstart.voice;\n\nimport com.nexmo.client.NexmoClient;\nimport com.nexmo.client.auth.AuthMethod;\nimport com.nexmo.client.auth.JWTAuthMethod;\nimport com.nexmo.client.voice.Call;\n\nimport ... | java | chosen |
[
{
"from": "system",
"value": "Add size constraint to molecularProfileIds in molecular data endpoint\n"
},
{
"from": "human",
"value": "package org.cbioportal.web.parameter;\n\nimport javax.validation.constraints.AssertTrue;\nimport javax.validation.constraints.Size;\nimport java.util.List;\nimpo... | java | chosen |
[
{
"from": "system",
"value": "Allow wildcard segments to be method parameters\n"
},
{
"from": "human",
"value": "package org.baswell.routes.parsing;\n\npublic class WildcardPathTerminal extends PathTerminal\n{\n public WildcardPathTerminal(int routeIndex, int pathIndex)\n {\n super(routeInd... | java | chosen |
[
{
"from": "system",
"value": "Optimize imports. No functional changes\n"
},
{
"from": "human",
"value": "/*\r\n * Licensed to the Apache Software Foundation (ASF) under one or more\r\n * contributor license agreements. See the NOTICE file distributed with\r\n * this work for additional informat... | java | chosen |
[
{
"from": "system",
"value": "Change hint text of core's main\n\nCo-authored-by: Marco Geweke <8bae85dbfa00ce59d1b81e4121747343f331087b@otto.de>\n"
},
{
"from": "human",
"value": "package de.otto.jlineup;\n\npublic class Main {\n\n public static void main(String[] args) {\n System.out.... | java | chosen |
[
{
"from": "system",
"value": "Return correct type from search\n"
},
{
"from": "human",
"value": "package com.youcruit.billogram.objects.response.billogram;\n\nimport com.youcruit.billogram.objects.response.common.SearchResponse;\n\npublic class BillogramSearchResponse extends SearchResponse<Bill... | java | chosen |
[
{
"from": "system",
"value": "Add condition for notify pwm event\n"
},
{
"from": "human",
"value": "package com.uxxu.konashi.lib.events;\n\nimport com.uxxu.konashi.lib.listeners.KonashiBaseListener;\nimport com.uxxu.konashi.lib.listeners.KonashiPwmListener;\n\n/**\n * Created by izumin on 8/9/15... | java | chosen |
[
{
"from": "system",
"value": "TAG name change for the logcat traces\n"
},
{
"from": "human",
"value": "package com.pixable.pixalytics.core.trace;\n\nimport android.content.Context;\nimport android.util.Log;\n\nimport com.pixable.pixalytics.core.platform.Platform;\n\nimport java.util.Collection;\... | java | chosen |
[
{
"from": "system",
"value": "Simplify fallback behavior for tests\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2020 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 * You may obtain... | java | chosen |
[
{
"from": "system",
"value": "[Android] Disable the certificate request test case.\n\nDisable the test case for certificate request since the device can not\naccess network.\n"
},
{
"from": "human",
"value": "// Copyright (c) 2015 Intel Corporation. All rights reserved.\n// Use of this source co... | java | chosen |
[
{
"from": "system",
"value": "Fix Undertow static handler package name, as it was renamed\n"
},
{
"from": "human",
"value": "package org.wildfly.swarm.undertow;\n\nimport org.jboss.shrinkwrap.api.Archive;\nimport org.jboss.shrinkwrap.api.Node;\n\n/**\n * @author Bob McWhirter\n */\npublic interf... | java | chosen |
[
{
"from": "system",
"value": "Simplify configuration. wampspring uses by default the ObjectMapper\nconfigured by Spring Boot"
},
{
"from": "human",
"value": "package ch.rasc.wampspring.demo.various;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.con... | java | chosen |
[
{
"from": "system",
"value": "Fix infinte loop in selection layer\n\nJava8 IntStreams can get into an infinite loop if the limit is\nnever reached. The selection layer should use the minimum between\nthe number of available instances and the desired instance.\n\nSigned-off-by: Tommy Shiou <fd59d852321c3431b... | java | chosen |
[
{
"from": "system",
"value": "Change to not check for honeycomb\n"
},
{
"from": "human",
"value": "package com.markupartist.sthlmtraveling;\n\nimport android.app.Activity;\nimport android.content.Intent;\nimport android.os.Build;\nimport android.os.Bundle;\nimport android.support.v4.app.TaskStac... | java | chosen |
[
{
"from": "system",
"value": "Add specialization call to map key lookup.\n"
},
{
"from": "human",
"value": "package org.metaborg.meta.interpreter.framework;\n\nimport com.github.krukow.clj_ds.PersistentMap;\nimport com.oracle.truffle.api.CompilerDirectives.TruffleBoundary;\n\npublic class MapUti... | java | chosen |
[
{
"from": "system",
"value": "Use a sensible tile extension - use the same as OsmAnd\n"
},
{
"from": "human",
"value": "package org.andnav.osm.tileprovider.constants;\r\n\r\nimport java.io.File;\r\n\r\nimport android.os.Environment;\r\n\r\n/**\r\n *\r\n * This class contains constants used by th... | java | chosen |
[
{
"from": "system",
"value": "Update test method for picture request\n"
},
{
"from": "human",
"value": "package de.fu_berlin.cdv.chasingpictures.api;\n\nimport android.test.AndroidTestCase;\n\nimport junit.framework.TestCase;\n\nimport org.springframework.http.HttpStatus;\nimport org.springframe... | java | chosen |
[
{
"from": "system",
"value": "Add toString() for easier debugging\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2013 Deutsche Nationalbibliothek\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 the same random alg in tokengen as pwdcrytpt"
},
{
"from": "human",
"value": "package us.kbase.auth2.cryptutils;\n\nimport java.nio.charset.StandardCharsets;\nimport java.security.SecureRandom;\nimport java.util.Base64; // requires java 8\n\n\npublic class Token... | java | chosen |
[
{
"from": "system",
"value": "Move main method to top of class\n"
},
{
"from": "human",
"value": "package net.zephyrizing.http_server;\n\npublic class HttpServer {\n\n private HttpServerSocket serveSocket;\n private int port;\n\n public HttpServer(HttpServerSocket serveSocket, int port)... | java | chosen |
[
{
"from": "system",
"value": "Refactor Pageable method argument resolver\n"
},
{
"from": "human",
"value": "package org.gbif.ws.server.provider;\n\nimport org.gbif.api.model.common.paging.Pageable;\nimport org.gbif.api.model.common.paging.PagingRequest;\nimport org.springframework.core.MethodPar... | java | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.