conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "human",
"value": "Write basic unit test for SystemDefaultsSwitch\n"
},
{
"from": "gpt",
"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 informatio... | java | chosen |
[
{
"from": "human",
"value": "Add unit test for account to string method\n"
},
{
"from": "gpt",
"value": "package org.synyx.urlaubsverwaltung.account.domain;\n\nimport org.junit.Test;\nimport org.synyx.urlaubsverwaltung.person.Person;\n\nimport java.time.LocalDate;\nimport java.util.List;\n\nimpo... | java | chosen |
[
{
"from": "human",
"value": "Add base class for EventLogging\n\nChange-Id: I3548d6b22696a3097e976daff1e1c9711790e8e6\n"
},
{
"from": "gpt",
"value": "package org.wikipedia.eventlogging;\n\nimport android.net.*;\nimport android.util.*;\nimport com.github.kevinsawicki.http.*;\nimport org.json.*;\n... | java | chosen |
[
{
"from": "human",
"value": "Add a gauge to measure the size of the build queue.\n\nThis gauge is periodically sampled every minute and emit a metric showing\nthe number of items present in the build queue.\n"
},
{
"from": "gpt",
"value": "package org.datadog.jenkins.plugins.datadog;\n\nimport h... | java | chosen |
[
{
"from": "human",
"value": "[ELY-176] Add the factory API/SPI for HTTP authentication mechanisms.\n"
},
{
"from": "gpt",
"value": "/*\n * JBoss, Home of Professional Open Source.\n * Copyright 2015 Red Hat, Inc., and individual contributors\n * as indicated by the @author tags.\n *\n * Licensed... | java | chosen |
[
{
"from": "human",
"value": "Create a helper class for PID\n\n"
},
{
"from": "gpt",
"value": "package org.firstinspires.ftc.team7316.util;\n\n/**\n * A class for PID\n */\npublic class PIDGenerator {\n\n private final double p, i, d;\n\n private double previous, sum;\n\n public PIDGener... | java | chosen |
[
{
"from": "human",
"value": "Add enum for supported healthcheck methods.\n"
},
{
"from": "gpt",
"value": "package com.hubspot.singularity;\n\npublic enum HealthcheckMethod {\n\n GET(\"GET\"), POST(\"POST\");\n\n private String method;\n\n private HealthcheckMethod(String method) {\n this.... | java | chosen |
[
{
"from": "human",
"value": "Configure the provision of metadata for the Annotation service.\n"
},
{
"from": "gpt",
"value": "package uk.ac.ebi.quickgo.annotation.metadata;\n\nimport uk.ac.ebi.quickgo.rest.metadata.MetaData;\nimport uk.ac.ebi.quickgo.rest.metadata.MetaDataProvider;\n\nimport jav... | java | chosen |
[
{
"from": "system",
"value": "Add constant definition for Proton end of stream\n\ngit-svn-id: 33ed6c3feaacb64944efc691d1ae8e09b17f2bf9@1343343 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "human",
"value": "/*\n *\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more... | java | chosen |
[
{
"from": "human",
"value": "Add interface for container with stack-frames which was tracked\n"
},
{
"from": "gpt",
"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 w... | java | chosen |
[
{
"from": "human",
"value": "Add system test for cors setups\n"
},
{
"from": "gpt",
"value": "package au.gov.ga.geodesy.gws.systemtest;\n\nimport static io.restassured.RestAssured.given;\nimport static org.hamcrest.CoreMatchers.is;\nimport static org.hamcrest.MatcherAssert.assertThat;\n\nimport ... | java | chosen |
[
{
"from": "human",
"value": "Add more tests for `UniformAcrossTargets`.\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2018, TeamDev Ltd. All rights reserved.\n *\n * Redistribution and use in source and/or binary forms, with or without\n * modification, must retain the above copyright notice... | java | chosen |
[
{
"from": "human",
"value": "Define a test for the Transform1 algorithm\n"
},
{
"from": "gpt",
"value": "/*\n * Zorbage: an algebraic data hierarchy for use in numeric processing.\n *\n * Copyright (C) 2016-2019 Barry DeZonia\n * \n * Redistribution and use in source and binary forms, with or wi... | java | chosen |
[
{
"from": "human",
"value": "Add a JavaFX EventExecutor for Future implementations"
},
{
"from": "gpt",
"value": "/******************************************************************************\n * *\n * ... | java | chosen |
[
{
"from": "human",
"value": "Implement sponge ParticleType onto minecraft ParticleType for standard named particles.\n"
},
{
"from": "gpt",
"value": "package org.spongepowered.common.mixin.api.mcp.particles;\n\nimport net.minecraft.util.ResourceLocation;\nimport net.minecraft.util.registry.Regis... | java | chosen |
[
{
"from": "human",
"value": "Create interface for digest the given message\n"
},
{
"from": "gpt",
"value": "package com.m4gik;\n\n/**\n * The basic visible methods of any hash algorithm.\n * <p>\n * A hash (or message digest) algorithm produces its output by iterating a basic\n * compression fun... | java | chosen |
[
{
"from": "human",
"value": "Test Sample : Test Stub (2)\n테스트 드라이브를 생성 Test 대상 클래스 메소드 호출\n- Test 대상 Class의 메소드를 호출하는 부분이 있어야 함으로"
},
{
"from": "gpt",
"value": "package co.kr.godo.test.stub;\n\npublic class TestObjectDriver {\n\tpublic static void main(String[] args) {\n\t\tTestObject testObject... | java | chosen |
[
{
"from": "system",
"value": "Change palette in composite trace"
},
{
"from": "human",
"value": "package org.eclipse.dawnsci.plotting.api.trace;\n\nimport java.util.List;\n\nimport org.eclipse.dawnsci.analysis.api.dataset.IDataset;\n\n/**\n * A trace for adding together multiple other traces and... | java | chosen |
[
{
"from": "human",
"value": "Add support for DS18B20 Temperature Sensor\n"
},
{
"from": "gpt",
"value": "package io.silverspoon.bulldog.devices.sensors;\n\nimport java.io.File;\nimport java.io.IOException;\nimport java.nio.file.Files;\n\n/**\n * Dallas DS18B20 temperature sensor implementation.\... | java | chosen |
[
{
"from": "human",
"value": "Add test for server config file."
},
{
"from": "gpt",
"value": "package org.owasp.appsensor.configuration;\n\nimport static org.junit.Assert.assertTrue;\n\nimport org.junit.Test;\nimport org.owasp.appsensor.configuration.server.ServerConfiguration;\nimport org.owasp.... | java | chosen |
[
{
"from": "human",
"value": "Add a test to check that a component with no parent does not match."
},
{
"from": "gpt",
"value": "/**\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 of\... | java | chosen |
[
{
"from": "human",
"value": "Add test verifying connect to real mysql works on travis\n"
},
{
"from": "gpt",
"value": "package com.github.tomitakussaari.mysqlcluscon;\n\nimport org.junit.Test;\n\nimport java.sql.Connection;\nimport java.sql.DriverManager;\nimport java.sql.SQLException;\n\nimport... | java | chosen |
[
{
"from": "human",
"value": "[Misc] Improve mutation score (descartes). Added test for matches() (existing tests were not matching when the body of matches() was replaced by \"return true\").\n"
},
{
"from": "gpt",
"value": "/*\n * See the NOTICE file distributed with this work for additional\n ... | java | chosen |
[
{
"from": "human",
"value": "Delete Node in Singly Linked List for Lintcode\n"
},
{
"from": "gpt",
"value": "/**\n * Definition for ListNode.\n * public class ListNode {\n * int val;\n * ListNode next;\n * ListNode(int val) {\n * this.val = val;\n * this.next = null;\... | java | chosen |
[
{
"from": "human",
"value": "Create helper method for testing analysis components"
},
{
"from": "gpt",
"value": "package net.ssehub.kernel_haven.test_utils;\n\nimport java.util.LinkedList;\nimport java.util.List;\nimport java.util.Properties;\n\nimport net.ssehub.kernel_haven.SetUpException;\nim... | java | chosen |
[
{
"from": "human",
"value": "Add helper methods for servlet filters\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2011 Eric F. Savage, code@efsavage.com\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": "human",
"value": "Add an example for a connected startup importer"
},
{
"from": "gpt",
"value": "package org.fastnate.data;\n\nimport java.io.IOException;\nimport java.sql.Connection;\nimport java.sql.SQLException;\nimport java.util.Properties;\n\nimport org.hibernate.SessionFactory;\... | java | chosen |
[
{
"from": "human",
"value": "[update] Work on e2e refactoring to Java - dashboard\n"
},
{
"from": "gpt",
"value": "package io.syndesis.qe.pages.dashboard;\n\nimport static com.codeborne.selenide.Selenide.$;\nimport static com.codeborne.selenide.Condition.visible;\n\nimport org.openqa.selenium.By... | java | chosen |
[
{
"from": "human",
"value": "Check that certain seq_region_attribs are present.\n"
},
{
"from": "gpt",
"value": "/*\n Copyright (C) 2003 EBI, GRL\n \n This library is free software; you can redistribute it and/or\n modify it under the terms of the GNU Lesser General Public\n License as published... | java | chosen |
[
{
"from": "human",
"value": "Add new test for Task\n"
},
{
"from": "gpt",
"value": "package seedu.taskitty.model;\n\nimport javafx.collections.FXCollections;\nimport seedu.taskitty.commons.core.UnmodifiableObservableList;\nimport seedu.taskitty.commons.exceptions.DataConversionException;\nimport... | java | chosen |
[
{
"from": "human",
"value": "Add servlet to serve html file with specific project information\n"
},
{
"from": "gpt",
"value": "package com.google.sps.servlets;\n\nimport javax.servlet.annotation.WebServlet;\nimport javax.servlet.http.HttpServlet;\nimport javax.servlet.http.HttpServletRequest;\ni... | java | chosen |
[
{
"from": "human",
"value": "Add error page to represent 401, 500 pages etc\n"
},
{
"from": "gpt",
"value": "package com.autonomy.abc.selenium.page;\n\nimport com.hp.autonomy.frontend.selenium.util.AppPage;\nimport org.openqa.selenium.By;\nimport org.openqa.selenium.WebDriver;\nimport org.openqa... | java | chosen |
[
{
"from": "human",
"value": "Add an implementation of ProxyDao to inject properties with Spring\n"
},
{
"from": "gpt",
"value": "package eu.europa.esig.dss.client.http.proxy;\n\nimport java.util.Collection;\nimport java.util.HashMap;\nimport java.util.Map;\n\npublic class ProxyDaoImpl implements... | java | chosen |
[
{
"from": "human",
"value": "Add helper class to find resource files"
},
{
"from": "gpt",
"value": "package de.morphbit.thymeleaf.helper;\n\nimport java.io.File;\nimport java.net.URL;\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class ResourcePathFinder {\n\n\tprivate final Str... | java | chosen |
[
{
"from": "human",
"value": "Implement traffic slowdown degradation handler.\n"
},
{
"from": "gpt",
"value": "package com.tacitknowledge.performance.degrade;\n\nimport java.util.concurrent.TimeUnit;\n\nimport com.tacitknowledge.performance.Component;\n\nimport io.netty.buffer.ByteBuf;\nimport io... | java | chosen |
[
{
"from": "human",
"value": "Add idea/spike about layout of callback chains\n"
},
{
"from": "gpt",
"value": "package router.client.api2;\n\nimport java.util.ArrayList;\nimport javax.annotation.Nonnull;\nimport javax.annotation.Nullable;\n\npublic class RouteManager\n{\n @Nonnull\n private OnCh... | java | chosen |
[
{
"from": "human",
"value": "Check that cigar lines in the identity_xref table are in the same format, as they are in the alignment tables, i.e. start with a number rather than a letter.\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (C) 2006 WTSI & EBI\n *\n * This library is free software; ... | java | chosen |
[
{
"from": "human",
"value": "Add Java solution to the column names problem\n"
},
{
"from": "gpt",
"value": "import java.io.BufferedReader;\nimport java.io.File;\nimport java.io.FileReader;\nimport java.util.Iterator;\nimport java.util.LinkedList;\n\nclass ColumnNames\n{\n public static void m... | java | chosen |
[
{
"from": "system",
"value": "Remove invalid comment in snippet\n"
},
{
"from": "human",
"value": "// You should obtain the registration token from your backend \n// pushToken is optional and you include it if you want us to handle push notifications \ntwilioAuth.setPushToken(pushToken);\n"
}... | java | chosen |
[
{
"from": "human",
"value": "Add unit tests for TokenStream\n"
},
{
"from": "gpt",
"value": "package org.twig.syntax;\n\nimport org.junit.Assert;\nimport org.junit.Test;\nimport org.twig.exception.SyntaxErrorException;\n\npublic class TokenStreamTests {\n @Test\n public void canNext() thro... | java | chosen |
[
{
"from": "human",
"value": "Add Switch Example with multiple case labels"
},
{
"from": "gpt",
"value": "package com.valerysamovich.java.trail.basic.statements.switchstatement;\n\npublic class SwitchDemo2 {\n\n public static void main(String[] args) {\n \n // variables\n ... | java | chosen |
[
{
"from": "human",
"value": "Add tests for Vaults callable to ensure that all vaults are acquired\n(multiple service calls are necessary if there are over 1000 vaults)"
},
{
"from": "gpt",
"value": "package org.csanchez.aws.glacier.actions;\n\nimport org.csanchez.aws.glacier.utils.MockTestHelper... | java | chosen |
[
{
"from": "human",
"value": "Add block state / block models provider\n"
},
{
"from": "gpt",
"value": "package info.u_team.u_team_core.data;\n\nimport java.io.IOException;\n\nimport org.apache.logging.log4j.*;\n\nimport com.google.common.base.Preconditions;\n\nimport net.minecraft.data.*;\nimport... | java | chosen |
[
{
"from": "human",
"value": "Package to store builder classes used in testing\n"
},
{
"from": "gpt",
"value": "package builder;\n\nimport uk.ac.ebi.spot.goci.model.AssociationUploadRow;\n\n/**\n * Created by emma on 24/03/2016.\n *\n * @author emma\n * <p>\n * Builder for BatchUp... | java | chosen |
[
{
"from": "human",
"value": "Add health-check controller to oxauth-server"
},
{
"from": "gpt",
"value": "package org.gluu.oxauth.controller;\n\nimport javax.enterprise.context.ApplicationScoped;\nimport javax.ws.rs.GET;\nimport javax.ws.rs.POST;\nimport javax.ws.rs.Path;\nimport javax.ws.rs.Prod... | java | chosen |
[
{
"from": "human",
"value": "Add a useless class to force to generate javadoc jar\n"
},
{
"from": "gpt",
"value": "package es.sandbox;\n\n/**\n * It will force to create javadoc jar, because\n * it's mandatory to publish in maven central.\n * Created by jeslopalo on 17/11/16.\n */\npublic final ... | java | chosen |
[
{
"from": "system",
"value": "Print zero weights if there is no 1.0 weight.\n"
},
{
"from": "human",
"value": "\npackage com.uwetrottmann.shopr.algorithm.model;\n\npublic abstract class GenericAttribute<T> {\n\n private T currentValue;\n\n double[] mValueWeights;\n\n public double[] get... | java | chosen |
[
{
"from": "human",
"value": "Update DefaultMatrix to not return inner array instance\n"
},
{
"from": "gpt",
"value": "/*\n * The MIT License\n *\n * Copyright (c) 2018 Y.K. Chan.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associa... | java | chosen |
[
{
"from": "human",
"value": "Add a test for basic BigDecimal support\n"
},
{
"from": "gpt",
"value": "package com.github.rschmitt.dynamicobject;\r\n\r\nimport org.junit.Test;\r\n\r\nimport java.math.BigDecimal;\r\n\r\nimport static com.github.rschmitt.dynamicobject.DynamicObject.deserialize;\r\n... | java | chosen |
[
{
"from": "human",
"value": "Add log helper to make logging more consistent\n"
},
{
"from": "gpt",
"value": "package eu.nerro.wolappla.util;\n\nimport android.util.Log;\n\nimport eu.nerro.wolappla.BuildConfig;\n\n/**\n * Helper methods that make logging more consistent throughout the app.\n */\n... | java | chosen |
[
{
"from": "human",
"value": "Add exception to show LDAP configuration error"
},
{
"from": "gpt",
"value": "/*\n * oxCore is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text.\n *\n * Copyright (c) 2014, Gluu\n */\n\npackage org.gluu.site.ldap.persistenc... | java | chosen |
[
{
"from": "human",
"value": "Add statement for problem 13\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (C) 2014 Pedro Vicente Gómez Sánchez.\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... | java | chosen |
[
{
"from": "human",
"value": "Add HttpResponseInterceptor implementation which add the Server header to the response.\n"
},
{
"from": "gpt",
"value": "/****************************************************************************\n * Copyright (C) 2015 ecsec GmbH.\n * All rights reserved.\n * Cont... | java | chosen |
[
{
"from": "system",
"value": "Change Manuscript JSON storage to same basedir\n"
},
{
"from": "human",
"value": "/*\n */\npackage org.datadryad.rest.storage.resolvers;\n\nimport org.datadryad.rest.storage.json.ManuscriptJSONStorageImpl;\nimport com.sun.jersey.spi.inject.SingletonTypeInjectablePro... | java | chosen |
[
{
"from": "human",
"value": "Add simple solution for doing a median filter\n"
},
{
"from": "gpt",
"value": "\npackage net.restlesscoder.sandbox.interview;\n\nimport java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.List;\n\npublic class MedianFilter {\n\n\tprivate static void... | java | chosen |
[
{
"from": "human",
"value": "Add empty implementation of ViewBinder\n\nSummary: When we need to override only `bind()` we'd better extend this implementation and override only one method instead of having few other empty methods.\n\nReviewed By: IanChilds\n\nDifferential Revision: D5630298\n\nfbshipit-sourc... | java | chosen |
[
{
"from": "human",
"value": "Add a sample in which there are multiple \"paths\" from one type variable to another.\n\nAs I understand it, Kotlin has a minor bug in a similar case: It looks\nat only one of the paths, even if that path fails a type check and\nanother would have passed it:\n\nhttps://groups.go... | java | chosen |
[
{
"from": "human",
"value": "Add Attributes helper unit test.\n"
},
{
"from": "gpt",
"value": "package org.mitre.synthea.helpers;\n\nimport static org.junit.Assert.assertFalse;\nimport static org.junit.Assert.assertNotNull;\nimport static org.junit.Assert.assertTrue;\n\nimport java.io.File;\nimp... | java | chosen |
[
{
"from": "human",
"value": "Add a test to ensure that tests fail when the registrar name suffix changes\n"
},
{
"from": "gpt",
"value": "package com.kryptnostic.kodex.v1.constants;\n\nimport org.junit.Assert;\nimport org.junit.Test;\n\npublic class NamesTest {\n\n /**\n * Changing this ... | java | chosen |
[
{
"from": "human",
"value": "Add test for named actions\n"
},
{
"from": "gpt",
"value": "package org.verapdf.model.impl.pb.pd;\n\nimport org.apache.pdfbox.pdmodel.interactive.action.PDActionNamed;\nimport org.apache.pdfbox.pdmodel.interactive.documentnavigation.outline.PDOutlineItem;\nimport org... | java | chosen |
[
{
"from": "human",
"value": "Test class for opening new fits file type\n\ngit-svn-id: 4e353c0944fe8da334633afc35765ef362dec675@1823 b4e469a2-07ce-4b26-9273-4d7d95a670c7\n"
},
{
"from": "gpt",
"value": "package org.helioviewer.gl3d.plugin.pfss.data;\n\nimport java.io.File;\nimport java.io.FileInp... | java | chosen |
[
{
"from": "human",
"value": "Add java solution for 41. First Missing Positive\n\n41. First Missing Positive: https://leetcode.com/problems/first-missing-positive/"
},
{
"from": "gpt",
"value": "package leetcode.first_missing_positive;\n\npublic class Solution {\n public int firstMissingPositi... | java | chosen |
[
{
"from": "human",
"value": "Add test case for composing and decomposing trough pduSender\n"
},
{
"from": "gpt",
"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 ... | java | chosen |
[
{
"from": "human",
"value": "Add container loading state type\n\n* refs #16271\n"
},
{
"from": "gpt",
"value": "package net.contargo.types.container;\n\n/**\n * Describes the loading state of a {@link net.contargo.domain.Container}.\n *\n * @author Aljona Murygina - murygina@synyx.de\n * @since... | java | chosen |
[
{
"from": "human",
"value": "Add test class for plugin discovery logic.\n\n\nThis used to be revision r1672.\n"
},
{
"from": "gpt",
"value": "package ijx.plugin;\n\nimport imagej2.plugin.PluginEntry;\nimport imagej2.plugin.PluginFinder;\n\nimport java.util.ArrayList;\nimport java.util.Collection... | java | chosen |
[
{
"from": "human",
"value": "Handle only .xls Files in Data Path Directory\n"
},
{
"from": "gpt",
"value": "package com.lucene;\n\nimport java.io.File;\nimport java.io.FileFilter;\n\npublic class TextFileFilter implements FileFilter {\n\n\t@Override\n\tpublic boolean accept(File pathname) {\n\t\... | java | chosen |
[
{
"from": "system",
"value": "Refactor magic spaces to constant\n"
},
{
"from": "human",
"value": "package no.deichman.services.marc;\n\nimport java.io.ByteArrayOutputStream;\n\nimport org.marc4j.MarcWriter;\nimport org.marc4j.MarcXmlWriter;\nimport org.marc4j.marc.Leader;\nimport org.marc4j.mar... | java | chosen |
[
{
"from": "system",
"value": "Sample: Use create instead of getInstance\n\ngetInstance was renamed to create in 7ca4e0312ae898e369ba1e67bd9ec9245fb2a4d9\nbut wasn't changed here\n"
},
{
"from": "human",
"value": "package com.polidea.rxandroidble.sample;\n\nimport android.app.Application;\nimport... | java | chosen |
[
{
"from": "system",
"value": "Use action bar icon to move up from Mail details\n"
},
{
"from": "human",
"value": "package net.rdrei.android.wakimail.ui;\n\nimport net.rdrei.android.wakimail.R;\nimport roboguice.activity.RoboFragmentActivity;\nimport android.net.Uri;\nimport android.os.Bundle;\ni... | java | chosen |
[
{
"from": "system",
"value": "Fix Android compilation on versions 47+\n\n* removes `@Override` declaration on `ReactNativeContacts.createJSModlues` method\n* fixes https://github.com/rt2zz/react-native-contacts/issues/236\n"
},
{
"from": "human",
"value": "package com.rt2zz.reactnativecontacts;\... | java | chosen |
[
{
"from": "system",
"value": "Change componentDir from File to String for remote considerations\n\n\ngit-svn-id: bf08415a33f9c0f05ac2b054c631df0aaa894ee0@248 f54485bd-ff3a-0410-97a1-83db373c2bce\n"
},
{
"from": "human",
"value": "/**\n * Copyright (c) 2005-2007 Intalio inc.\n *\n * All rights re... | java | chosen |
[
{
"from": "system",
"value": "Refactor to support onload and onresume\n"
},
{
"from": "human",
"value": "package com.gbos.cordova.plugin;\n\nimport org.apache.cordova.*;\nimport org.json.JSONArray;\nimport org.json.JSONException;\n\npublic class UpdateCheck extends CordovaPlugin implements Servi... | java | chosen |
[
{
"from": "system",
"value": "Throw ConfigurationException on urlparse exception\n"
},
{
"from": "human",
"value": "package org.yamcs.api.ws;\nimport java.net.URI;\nimport java.net.URISyntaxException;\n\npublic class YamcsConnectionProperties {\n private String host;\n private int port;\n ... | java | chosen |
[
{
"from": "system",
"value": "Define test.db.driver, so that postgres is used.\nNeed to pull this up into an abstract at some point.\n"
},
{
"from": "human",
"value": "package scoutmgr.server.entity.dao.internal;\n\nimport java.util.List;\nimport scoutmgr.server.entity.Person;\nimport org.testng... | java | chosen |
[
{
"from": "system",
"value": "Add default Capability getters to CapabilityImplementation\n\n"
},
{
"from": "human",
"value": "package com.infinityraider.infinitylib.capability;\n\nimport net.minecraft.util.ResourceLocation;\nimport net.minecraftforge.common.capabilities.Capability;\nimport net.m... | java | chosen |
[
{
"from": "system",
"value": "Update to newer Asserts to eliminate deprecation warning\n"
},
{
"from": "human",
"value": "package io.hawt.keystore;\n\nimport org.junit.Test;\n\nimport java.io.IOException;\n\nimport static junit.framework.Assert.assertNotNull;\nimport static junit.framework.Asser... | java | chosen |
[
{
"from": "system",
"value": "Support more than one type of token.\n\nThis is going to be important for producing decent perma-links\nto result sets, that can be reliably run at various times in the\nfuture by anyone with the link without compromising the user account of\nthe profile involved.\n\n\nFormer-c... | java | chosen |
[
{
"from": "system",
"value": "Fix non-visible CREATOR in sample app\n"
},
{
"from": "human",
"value": "package nz.bradcampbell.paperparcel.java7example;\n\nimport nz.bradcampbell.paperparcel.AccessorName;\nimport nz.bradcampbell.paperparcel.PaperParcel;\nimport nz.bradcampbell.paperparcel.PaperP... | java | chosen |
[
{
"from": "system",
"value": "Fix to ensure the unsubscribe on next operator used for database queries can be reused\n"
},
{
"from": "human",
"value": "package foundation.stack.datamill.db.impl;\n\nimport rx.Observable;\nimport rx.Subscriber;\nimport rx.exceptions.Exceptions;\n\nimport java.util... | java | chosen |
[
{
"from": "system",
"value": "Fix warning in CoxPH naming conventions\n"
},
{
"from": "human",
"value": "package water.api.schemas3;\n\nimport hex.ModelMetricsRegressionCoxPHGeneric;\nimport water.api.API;\n\npublic class ModelMetricsRegressionCoxPHGenericV3\n extends ModelMetricsRegressi... | java | chosen |
[
{
"from": "system",
"value": "Use a sliding window to track acknowledged values.\n"
},
{
"from": "human",
"value": "package com.yahoo.ycsb.generator;\n\nimport java.util.PriorityQueue;\n\n/**\n * A CounterGenerator that reports generated integers via lastInt()\n * only after they have been ackno... | java | chosen |
[
{
"from": "system",
"value": "Remove unused field and method\n\ngit-svn-id: fd52ae19693b7be904def34076a5ebbd6e132215@1776745 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "human",
"value": "package org.apache.commons.jcs.utils.struct;\n\n/*\n * Licensed to the Apache Software Foundation (... | java | chosen |
[
{
"from": "system",
"value": "Change the REST API so adding a flow is using path \"/add/json\"\ninstead of \"/add/{flow}/json\", because now we use POST mechanism\nto add a flow.\n"
},
{
"from": "human",
"value": "package net.floodlightcontroller.flowcache.web;\n\nimport net.floodlightcontroller... | java | chosen |
[
{
"from": "system",
"value": "Set the embedded schema registry's compatibility mode to full\n"
},
{
"from": "human",
"value": "package forklift.integration.server;\n\nimport io.confluent.kafka.schemaregistry.rest.SchemaRegistryConfig;\nimport io.confluent.kafka.schemaregistry.rest.SchemaRegistry... | java | chosen |
[
{
"from": "system",
"value": "Delete children when deleting dms folder\n"
},
{
"from": "human",
"value": "package com.axelor.dms.db.repo;\n\nimport java.util.Map;\n\nimport org.joda.time.LocalDateTime;\n\nimport com.axelor.db.JpaRepository;\nimport com.axelor.dms.db.DMSFile;\n\npublic class DMSF... | java | chosen |
[
{
"from": "system",
"value": "Add missing loading movie details call to presenter\n"
},
{
"from": "human",
"value": "package com.tobi.movies.posterdetails;\n\npublic class MovieDetailsPresenter implements MovieDetailsMVP.Presenter {\n\n private final MovieDetailsUseCase movieDetailsUseCase;\n... | java | chosen |
[
{
"from": "system",
"value": "Add missing javadoc for startup plugin\n"
},
{
"from": "human",
"value": "package me.coley.recaf.plugin.api;\n\nimport me.coley.recaf.control.Controller;\n\npublic interface Startup extends PluginBase {\n\t/**\n\t * Called before the controller is started, but after... | java | chosen |
[
{
"from": "system",
"value": "Fix apps path for experiment\n"
},
{
"from": "human",
"value": "package org.moonlightcontroller.main;\r\n\r\nimport java.io.IOException;\r\n\r\nimport org.moonlightcontroller.controller.MoonlightController;\r\nimport org.moonlightcontroller.registry.ApplicationRegis... | java | chosen |
[
{
"from": "system",
"value": "Add not empty validation annotation.\n"
},
{
"from": "human",
"value": "package com.github.aureliano.achmed;\n\nimport com.github.aureliano.achmed.annotation.NotNull;\n\npublic class Model {\n\n\tprivate String id;\n\t\n\tpublic Model() {\n\t\tsuper();\n\t}\n\n\t@No... | java | chosen |
[
{
"from": "system",
"value": "Remove depreciated createJSModules @ovveride marker"
},
{
"from": "human",
"value": "package com.inprogress.reactnativeyoutube;\n\nimport com.facebook.react.ReactPackage;\nimport com.facebook.react.bridge.JavaScriptModule;\nimport com.facebook.react.bridge.NativeMod... | java | chosen |
[
{
"from": "system",
"value": "Revert \"WF-1466 Memory Leak Fix Along with config file changes\"\n\nThis reverts commit 4cd1f6d6fc8b039c31c399ec9c8fb660e71b1eae.\n"
},
{
"from": "human",
"value": "/**\n * Copyright (c) 2005-2007 Intalio inc.\n *\n * All rights reserved. This program and the accom... | java | chosen |
[
{
"from": "system",
"value": "Expand visibility of Invokers to use it from outside of it's package.\n"
},
{
"from": "human",
"value": "package jp.gr.java_conf.hhayakawa_jp.beehive_client;\n\nimport org.springframework.http.HttpMethod;\n\n@SuppressWarnings(\"rawtypes\")\nfinal class MyWorkspaceIn... | java | chosen |
[
{
"from": "system",
"value": "Fix errors in integration pkg\n"
},
{
"from": "human",
"value": "package com.raoulvdberge.refinedstorage.integration.forgeenergy;\n\nimport net.minecraft.item.ItemStack;\nimport net.minecraft.nbt.NBTTagCompound;\nimport net.minecraftforge.energy.EnergyStorage;\n\npu... | java | chosen |
[
{
"from": "system",
"value": "Tag added for all todo topics"
},
{
"from": "human",
"value": "package com.example.e4.rcp.todo.events;\n\n/**\n * @noimplement This interface is not intended to be implemented by clients.\n * \n * Only used for constant interfaces\n */\n\npublic interface MyEventCon... | java | chosen |
[
{
"from": "system",
"value": "Add convenience method for getting boolean sub-source values.\n"
},
{
"from": "human",
"value": "package org.musetest.core.resource.generic;\n\nimport org.musetest.core.resource.*;\nimport org.musetest.core.values.*;\n\nimport java.util.*;\n\n/**\n * A MuseResource ... | java | chosen |
[
{
"from": "system",
"value": "Use ShellMenu instead of DefaultMenu"
},
{
"from": "human",
"value": "package org.jboss.reddeer.eclipse.jface.wizard;\n\nimport org.apache.log4j.Logger;\nimport org.jboss.reddeer.swt.api.Menu;\nimport org.jboss.reddeer.swt.impl.menu.DefaultMenu;\nimport org.jboss.re... | java | chosen |
[
{
"from": "system",
"value": "Use Callable to be able to retrieve the result of cancel \n\ngit-svn-id: 4e353c0944fe8da334633afc35765ef362dec675@5095 b4e469a2-07ce-4b26-9273-4d7d95a670c7\n"
},
{
"from": "human",
"value": "package org.helioviewer.jhv.threads;\n\nimport java.util.concurrent.FutureT... | java | chosen |
[
{
"from": "system",
"value": "Use name() instead of toString() for enum value.\n\nThe javadoc for Enum notes that name() should be used when\ncorrectness depends on getting the exact name of the enum\nconstant which will not vary from release to release. The\njavadoc further encourages overriding the toStri... | java | chosen |
[
{
"from": "system",
"value": "FIX BUILD: Unit test assumed polycom authid was first visible on page\n\ngit-svn-id: f26ccc5efe72c2bd8e1c40f599fe313f2692e4de@7583 a612230a-c5fa-0310-af8b-88eea846685b\n"
},
{
"from": "human",
"value": "/*\n * \n * \n * Copyright (C) 2004 SIPfoundry Inc.\n * License... | java | chosen |
[
{
"from": "system",
"value": "Test for volatile fields in RemoveUnreachable\n\nSummary: Add a test for non-removal of volatile fields.\n\nReviewed By: satnam6502\n\nDifferential Revision: D3874792\n\nfbshipit-source-id: 5344fc03173cefb283b726ff7f8f8dd634d14061\n"
},
{
"from": "human",
"value": "... | java | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.