conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "human",
"value": "[Feature] Add a initDB Script waiting runtime added controllers\n"
},
{
"from": "gpt",
"value": "package annuaire;\n\nimport annuaire.repository.ControllerRepository;\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\n\nimport org.springframework.boot.Comman... | java | chosen |
[
{
"from": "human",
"value": "Add a regular while loop that should work without advanced features.\n"
},
{
"from": "gpt",
"value": "class SimpleWhile {\n public static void main(String[] args) {\n\tint i = 1;\n\twhile (i <= 10) {\n\t System.out.println(i);\n\t i = i + 1;\n\t}\n }\n}\n... | java | chosen |
[
{
"from": "human",
"value": "Add complete test for parameter\n"
},
{
"from": "gpt",
"value": "/*\n * DownloadClient Geodateninfrastruktur Bayern\n *\n * (c) 2016 GSt. GDI-BY (gdi.bayern.de)\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file ex... | java | chosen |
[
{
"from": "human",
"value": "Solve No.11720 from Baekjoon Online Judge\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2017 haeun kim\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 obtai... | java | chosen |
[
{
"from": "human",
"value": "Add unit tests for EmptyDiscreteResources\n\nChange-Id: I2dd53e98eb3129607f5faadf3a1f9ecab378d36c\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2016-present Open Networking Laboratory\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * y... | java | chosen |
[
{
"from": "human",
"value": "Add helper for working with text components.\n\nThis helper currently does hover text and can format ticks as a component.\n"
},
{
"from": "gpt",
"value": "package net.darkhax.bookshelf.api.util;\n\nimport net.darkhax.bookshelf.mixin.entity.AccessorEntity;\nimport ne... | java | chosen |
[
{
"from": "human",
"value": "Add cast util to allow unchecked casts"
},
{
"from": "gpt",
"value": "package info.u_team.u_team_core.util;\n\npublic class CastUtil {\n\t\n\t@SuppressWarnings(\"unchecked\")\n\tpublic static <T> T uncheckedCast(Object obj) {\n\t\treturn (T) obj;\n\t}\n\t\n}\n"
}
] | java | chosen |
[
{
"from": "human",
"value": "Add math util with vector rotation commands\n"
},
{
"from": "gpt",
"value": "package info.u_team.u_team_core.util;\n\nimport net.minecraft.util.math.Vec3d;\n\npublic class MathUtil {\n\t\n\tpublic static Vec3d rotateVectorAroundYCC(Vec3d vec, double angle) {\n\t\tret... | java | chosen |
[
{
"from": "human",
"value": "Check BST: 1 approach done\n"
},
{
"from": "gpt",
"value": "package com.ctci.treesandgraphs;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\n/**\n * @author rampatra\n * @since 2019-02-17\n */\npublic class ValidateBST {\n\n private static boolean isBST(... | java | chosen |
[
{
"from": "human",
"value": "Add a task to truncate files if they exceed a specified size\n"
},
{
"from": "gpt",
"value": "package org.realityforge.antix;\n\nimport java.io.File;\nimport java.io.IOException;\nimport java.io.RandomAccessFile;\nimport org.apache.tools.ant.BuildException;\nimport o... | java | chosen |
[
{
"from": "human",
"value": "Add ReccuringTask.java with minimal functionality\n"
},
{
"from": "gpt",
"value": "package seedu.jobs.model.task;\n\nimport seedu.jobs.model.tag.UniqueTagList;\n\npublic class RecurringTask extends Task{\n\t\n\tint period;\n\t\n\tpublic RecurringTask(Name name, Time ... | java | chosen |
[
{
"from": "human",
"value": "Add another ALTER VAR <varname> REAL DROP <attributename> test."
},
{
"from": "gpt",
"value": "package org.reldb.rel.tests.main;\r\n\r\nimport org.junit.AfterClass;\r\nimport org.junit.BeforeClass;\r\nimport org.junit.Test;\r\nimport org.reldb.rel.tests.BaseOfTest;\r... | java | chosen |
[
{
"from": "human",
"value": "Add utility `LoginModule` for future use\n"
},
{
"from": "gpt",
"value": "package solutions.digamma.damas.jaas;\n\nimport javax.security.auth.Subject;\nimport javax.security.auth.callback.CallbackHandler;\nimport javax.security.auth.callback.NameCallback;\nimport jav... | java | chosen |
[
{
"from": "human",
"value": "Add util class for scalar types.\n"
},
{
"from": "gpt",
"value": "// Copyright 2014 Square, Inc.\npackage com.squareup.protoparser;\n\nimport java.util.LinkedHashSet;\nimport java.util.Set;\n\nimport static java.util.Collections.unmodifiableSet;\n\n/** Utilities for ... | java | chosen |
[
{
"from": "human",
"value": "Add small program checking if an URI is valid"
},
{
"from": "gpt",
"value": "package won.protocol.util;\n\nimport java.net.URI;\n\nimport org.apache.jena.rdf.model.Model;\nimport org.apache.jena.rdf.model.ModelFactory;\nimport org.apache.jena.riot.Lang;\nimport org.a... | java | chosen |
[
{
"from": "human",
"value": "Add java solution for 113. Path Sum II\n\n113. Path Sum II: https://leetcode.com/problems/path-sum-ii/"
},
{
"from": "gpt",
"value": "package leetcode.path_sum_ii;\n\nimport java.util.ArrayList;\n\nimport common.TreeNode;\n\npublic class Solution {\n\tpublic void has... | java | chosen |
[
{
"from": "human",
"value": "Add complete Tests for Option Class\n"
},
{
"from": "gpt",
"value": "/*\n * DownloadClient Geodateninfrastruktur Bayern\n *\n * (c) 2016 GSt. GDI-BY (gdi.bayern.de)\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this fil... | java | chosen |
[
{
"from": "human",
"value": "[JENKINS-34350] Add test for crumb exclusion on /git/notifyCommit\n"
},
{
"from": "gpt",
"value": "package hudson.plugins.git;\n\nimport hudson.security.csrf.CrumbFilter;\n\nimport org.junit.Before;\nimport org.junit.Rule;\nimport org.junit.Test;\n\nimport javax.serv... | java | chosen |
[
{
"from": "human",
"value": "Test local job submission without stdin.\n"
},
{
"from": "gpt",
"value": "package nl.esciencecenter.octopus.adaptors.local;\n\nimport static org.junit.Assert.*;\nimport static org.mockito.Mockito.mock;\n\nimport nl.esciencecenter.octopus.engine.OctopusEngine;\nimport... | java | chosen |
[
{
"from": "human",
"value": "Add servlet version of single single on mechanism\n"
},
{
"from": "gpt",
"value": "package io.undertow.servlet.handlers.security;\n\nimport io.undertow.security.impl.SingleSignOnAuthenticationMechanism;\nimport io.undertow.security.impl.SingleSignOnManager;\nimport i... | java | chosen |
[
{
"from": "system",
"value": "Fix the build: latest bnd includes the most recent repoindex\n\nSigned-off-by: Ferry Huberts <66e11f9f5d965b69497c7e73d5e808f8b13c1218@pelagic.nl>\n"
},
{
"from": "human",
"value": "package bndtools;\n\nimport java.io.File;\nimport java.io.OutputStream;\nimport java... | java | chosen |
[
{
"from": "human",
"value": "Add prefix processor for Tilastokeskus\n"
},
{
"from": "gpt",
"value": "package fi.nls.oskari.control.statistics.plugins.pxweb.parser;\n\nimport fi.nls.oskari.control.statistics.data.RegionValue;\nimport fi.nls.oskari.control.statistics.plugins.db.DatasourceLayer;\ni... | java | chosen |
[
{
"from": "human",
"value": "Implement the domain class for result distribution.\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2009-2010 by The Regents of the University of California\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except i... | java | chosen |
[
{
"from": "human",
"value": "Introduce an entity that represents a change of the value of a field\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2018, TeamDev. All rights reserved.\n *\n * Redistribution and use in source and/or binary forms, with or without\n * modification, must retain the ... | java | chosen |
[
{
"from": "human",
"value": "Add new test for calculating distance between two points\n"
},
{
"from": "gpt",
"value": "package my.lux.brand.sandbox;\n\nimport org.testng.Assert;\nimport org.testng.annotations.Test;\n\n/**\n * Created by Alex on 2/28/2016.\n */\npublic class PointDistanceTests {\... | java | chosen |
[
{
"from": "human",
"value": "Add new interface to allow dealing with text issues in a uniform manner.\n"
},
{
"from": "gpt",
"value": "/**\n * \n */\npackage org.csstudio.utility.adlparser.fileParser.widgets;\n\n/**\n * @author hammonds\n *\n */\npublic interface ITextWidget {\n\tabstract String... | java | chosen |
[
{
"from": "human",
"value": "Create file tailer input exception.\n"
},
{
"from": "gpt",
"value": "package com.github.aureliano.evtbridge.input.file_tailer;\n\nimport com.github.aureliano.evtbridge.common.exception.EventBridgeException;\n\npublic class FileTailerInputException extends EventBridge... | java | chosen |
[
{
"from": "human",
"value": "Create injector for gene product type.\n"
},
{
"from": "gpt",
"value": "package uk.ac.ebi.quickgo.annotation.service.comm.rest.geneproduct.transformer;\n\nimport uk.ac.ebi.quickgo.annotation.model.Annotation;\nimport uk.ac.ebi.quickgo.annotation.service.comm.rest.gen... | java | chosen |
[
{
"from": "human",
"value": "Add class to handle a global bitmap cache\n"
},
{
"from": "gpt",
"value": "/*\n * BitmapCache.java\n *\n * Author: Ming Tsang\n * Copyright (c) 2015 Ming Tsang\n * Refer to LICENSE for details\n */\n\npackage com.nkming.utils.graphic;\n\nimport android.annotation.Tar... | java | chosen |
[
{
"from": "human",
"value": "Add JSON helper to send data over websockets"
},
{
"from": "gpt",
"value": "package com.haxademic.core.net;\n\nimport processing.data.JSONObject;\n\npublic class JSONUtil {\n\n\tpublic static String jsonToSingleLine(JSONObject jsonObj) {\n\t\treturn jsonObj.toString(... | java | chosen |
[
{
"from": "human",
"value": "Add some container utils for adding inventory and hotbar automatically.\n"
},
{
"from": "gpt",
"value": "package codechicken.lib.util;\n\nimport net.minecraft.entity.player.InventoryPlayer;\nimport net.minecraft.inventory.Container;\nimport net.minecraft.inventory.Sl... | java | chosen |
[
{
"from": "human",
"value": "Use to send a response of HTTP API call\n\n\nSVN-Revision: 2574\n"
},
{
"from": "gpt",
"value": "/*\r\n * Created on May 5, 2005\r\n *\r\n * TODO To change the template for this generated file go to\r\n * Window - Preferences - Java - Code Style - Code Templates\r\n ... | java | chosen |
[
{
"from": "human",
"value": "Add default implementation of VarianceFilterOp\n\nSigned-off-by: squareys <b4e1335d2c774058f7a95112f52894dcc752fd3f@googlemail.com>\n"
},
{
"from": "gpt",
"value": "\npackage net.imagej.ops.filter.variance;\n\nimport net.imagej.ops.ComputerOp;\nimport net.imagej.ops.... | java | chosen |
[
{
"from": "human",
"value": "Add a test for the constructor parameters detection.\n"
},
{
"from": "gpt",
"value": "package com.josketres.builderator;\n\nimport org.junit.Assert;\nimport org.junit.Test;\n\npublic class ConstructorAnalyserTest {\n\n class ConstructorWithOneParam {\n\n pr... | java | chosen |
[
{
"from": "human",
"value": "Add default implementation of Permute interface.\n"
},
{
"from": "gpt",
"value": "package net.imagej.ops.views;\n\nimport org.scijava.ItemIO;\nimport org.scijava.plugin.Parameter;\nimport org.scijava.plugin.Plugin;\n\nimport net.imagej.ops.view.ViewOps;\nimport net.i... | java | chosen |
[
{
"from": "human",
"value": "Add runnable SciJava command experiment\n"
},
{
"from": "gpt",
"value": "\npackage net.restlesscoder.sandbox.scijava;\n\nimport javax.swing.JOptionPane;\n\nimport org.scijava.MenuPath;\nimport org.scijava.SciJava;\nimport org.scijava.command.Command;\nimport org.scij... | java | chosen |
[
{
"from": "human",
"value": "Add --ui command line argument\n"
},
{
"from": "gpt",
"value": "/*\n * #%L\n * ImageJ software for multidimensional image processing and analysis.\n * %%\n * Copyright (C) 2009 - 2013 Board of Regents of the University of\n * Wisconsin-Madison, Broad Institute of MIT... | java | chosen |
[
{
"from": "human",
"value": "Remove consecutive duplicate characters in string\n"
},
{
"from": "gpt",
"value": "package com.interview.string;\n\n/**\n * Remove consecutive duplicate characters\n * e.g\n * AABBCDDAAB -> ABCDAB\n * ABBBCCD -> ABCD\n * Test cases\n * Empty string\n * all unique\n *... | java | chosen |
[
{
"from": "human",
"value": "Add some tests for XPath function\n\ngit-svn-id: 52ad764cdf1b64a6e804f4e5ad13917d3c4b2253@379305 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "gpt",
"value": "package org.apache.jmeter.functions;\n\nimport java.util.Collection;\nimport java.util.LinkedList;\n... | java | chosen |
[
{
"from": "human",
"value": "Add java solution for 98. Validate Binary Search Tree\n\n98. Validate Binary Search Tree: https://leetcode.com/problems/validate-binary-search-tree/"
},
{
"from": "gpt",
"value": "package leetcode.validate_binary_search_tree;\n\nimport common.TreeNode;\n\npublic clas... | java | chosen |
[
{
"from": "human",
"value": "Add a new test so that we do not have an empty set of unit tests. That situation now causes the build to fail.\n"
},
{
"from": "gpt",
"value": "package edu.pdx.cs410J;\n\nimport org.junit.Test;\n\nimport static org.hamcrest.MatcherAssert.assertThat;\nimport static o... | java | chosen |
[
{
"from": "human",
"value": "Test class for coeus-s2s engine\n\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2008 The Kuali Foundation.\n * \n * Licensed under the Educational Community License, Version 1.0 (the \"License\");\n * you may not use this file except in compliance with the Licens... | java | chosen |
[
{
"from": "human",
"value": "Create Constants Class for All Hardcoded Texts and URLs\n"
},
{
"from": "gpt",
"value": "package com.lucene;\n\npublic class LuceneConstants {\n\n\tpublic static final String DATA_DIRECTORY \t\t\t= \"/Users/Hurricanc/Documents/Projects/WJLucene-Server/MetaData/Data\"... | java | chosen |
[
{
"from": "human",
"value": "Add tests for use case 19\n"
},
{
"from": "gpt",
"value": "//19) Use Case: Load Relevant Comments\n\npublic class LoadRelevantCommentsTests extend \n ActivityInstrumentationTestCase2<BrowseCommentsActivity> {\n\n public LoadRelevantCommentsTests() {\n\tsuper(Lo... | java | chosen |
[
{
"from": "human",
"value": "Add abstract base class for Raft primitives.\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2017-present Open Networking Foundation\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with th... | java | chosen |
[
{
"from": "human",
"value": "Add unit test for NetworkThreadFactory\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2016 Ross Nicoll.\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 obtai... | java | chosen |
[
{
"from": "human",
"value": "Add command cache to handle test case lists\n\nThis will be an asynchronous processing of test cases from a list.\n"
},
{
"from": "gpt",
"value": "/*\nCopyright 2016, Johannes Mulder (Fraunhofer IOSB)\n\nLicensed under the Apache License, Version 2.0 (the \"License\"... | java | chosen |
[
{
"from": "human",
"value": "Update run configuration reference on module and build configuration rename (IDEA-74823)\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2000-2012 JetBrains s.r.o.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this fi... | java | chosen |
[
{
"from": "human",
"value": "Check for protein coding genes with invalid translations\n"
},
{
"from": "gpt",
"value": "/*\n Copyright (C) 2004 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 publ... | java | chosen |
[
{
"from": "human",
"value": "Add helper to see what ScriptEngineFactory are the classpath.\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 additio... | java | chosen |
[
{
"from": "human",
"value": "Use XML files as input for Python output tests.\nWrite Python output from the XML file tests to other files for comparison with the Python output."
},
{
"from": "gpt",
"value": "/*\n * To change this license header, choose License Headers in Project Properties.\n * T... | java | chosen |
[
{
"from": "human",
"value": "Add test for correctly unmarshalling multiple distribution codes\n"
},
{
"from": "gpt",
"value": "package com.webcohesion.ofx4j.domain.data.tax1099;\n\nimport com.webcohesion.ofx4j.io.AggregateMarshaller;\nimport com.webcohesion.ofx4j.io.v2.OFXV2Writer;\n\nimport jun... | java | chosen |
[
{
"from": "human",
"value": "Add test case for composing and decomposing trough pduSender\n\ngit-svn-id: 8aef34885c21801cc977f98956a081c938212632@248 1678c8a9-8d33-0410-b0a4-d546c816ed44\n"
},
{
"from": "gpt",
"value": "/*\n * Licensed under the Apache License, Version 2.0 (the \"License\"); \n ... | java | chosen |
[
{
"from": "human",
"value": "Add event logging for suggested pages.\n\n(Not hooked up to anything yet, but ready to go)\n\nChange-Id: Ifbe41ce447dc7040d9ea005ed0853be5b8bbb302\n"
},
{
"from": "gpt",
"value": "package org.wikipedia.analytics;\n\nimport android.text.TextUtils;\n\nimport org.json.J... | java | chosen |
[
{
"from": "human",
"value": "Add test that uses DeDupExample from the SDK.\n"
},
{
"from": "gpt",
"value": "package com.cloudera.dataflow.spark;\n\nimport com.google.cloud.dataflow.sdk.Pipeline;\nimport com.google.cloud.dataflow.sdk.coders.StringUtf8Coder;\nimport com.google.cloud.dataflow.sdk.o... | java | chosen |
[
{
"from": "human",
"value": "Add preprocessor which cancels on null inputs\n\nIf an input is required but unset, this preprocessor fails with a\nfriendlier message than you would likely get otherwise (probably NPE).\n"
},
{
"from": "gpt",
"value": "/*\n * #%L\n * ImageJ software for multidimensi... | java | chosen |
[
{
"from": "system",
"value": "Return via REST 'All-Projects' as parent name for projects under root\n\nAt the moment asking for the parent name of projects directly under the\n'All-Projects' root project may return an empty string. Instead make\nsure that in this case always 'All-Projects' is returned as na... | java | chosen |
[
{
"from": "human",
"value": "Add a DBOpenHelper to run manage the database schema\n\nThis class runs the initial db setup and all migrations.\n"
},
{
"from": "gpt",
"value": "package de.philipphager.disclosure.database;\n\nimport android.content.Context;\nimport android.database.sqlite.SQLiteDat... | java | chosen |
[
{
"from": "human",
"value": "Add some unit tests for DaemonicCellState\n\nSummary: Add a couple of unit tests for DaemonicCellState. In particular, that puts to the cache are treated correctly and that the cache path-based invalidation is triggered correctly.\n\nTest Plan: Unit tests\n\nReviewed By: yiding\... | java | chosen |
[
{
"from": "human",
"value": "Add a file utility to create new files.\n"
},
{
"from": "gpt",
"value": "package com.miguelgaeta.media_picker;\n\nimport android.os.Environment;\n\nimport java.io.File;\nimport java.io.IOException;\nimport java.util.UUID;\n\n@SuppressWarnings(\"UnusedDeclaration\")\n... | java | chosen |
[
{
"from": "human",
"value": "Add class for encapsulating state for daily session data\n"
},
{
"from": "gpt",
"value": "package com.stefanhoth.ropasclisp.achievements;\n\nimport android.content.Context;\nimport android.content.SharedPreferences;\n\nimport java.text.DateFormat;\nimport java.util.D... | java | chosen |
[
{
"from": "system",
"value": "Break dependency on profiler to the json package\n\nThis lays more of the groundwork for the core package to\nno longer be split (required for Java 9 modules) without\nus having to do a lot of additional work or move classes\naround.\n"
},
{
"from": "human",
"value"... | java | chosen |
[
{
"from": "human",
"value": "Test for new command-line functionality of FilterType."
},
{
"from": "gpt",
"value": "/*\r\n * To change this license header, choose License Headers in Project Properties.\r\n * To change this template file, choose Tools | Templates\r\n * and open the template in the... | java | chosen |
[
{
"from": "human",
"value": "Add a launcher with a main method.\n"
},
{
"from": "gpt",
"value": "package fr.mashbarth.hascode.qualificationround;\n\n\npublic final class Launcher {\n\n\n public static void main(String[] args) {\n System.out.println(\"#### Qualification Round ####\");\n... | java | chosen |
[
{
"from": "human",
"value": "Add test for CURIE short form provider\n"
},
{
"from": "gpt",
"value": "package org.obolibrary.robot;\n\nimport java.io.IOException;\nimport org.junit.Test;\nimport org.obolibrary.robot.providers.CURIEShortFormProvider;\nimport org.semanticweb.owlapi.apibinding.OWLMa... | java | chosen |
[
{
"from": "human",
"value": "Tests: Support creating BuildFlow projects using a TestRule\n"
},
{
"from": "gpt",
"value": "package org.jenkinsci.plugins.ghprb.rules;\n\nimport java.io.IOException;\n\nimport org.jvnet.hudson.test.JenkinsRule;\n\nimport com.cloudbees.plugins.flow.BuildFlow;\n\n/**\... | java | chosen |
[
{
"from": "human",
"value": "Add demo for paint picker.\n\ngit-svn-id: 9c6ef37dfd7eaa5a3748af7ba0f8d9e7b67c2a4c@3853 1312f61e-266d-0410-97fa-c3b71232c9ac\n"
},
{
"from": "gpt",
"value": "package org.jdesktop.beans.editors;\n\nimport javax.swing.JFrame;\nimport javax.swing.SwingUtilities;\n\n/**\... | java | chosen |
[
{
"from": "human",
"value": "Add default implementation of FlatIterable interface.\n"
},
{
"from": "gpt",
"value": "package net.imagej.ops.views;\n\nimport net.imagej.ops.view.ViewOps;\nimport net.imagej.ops.view.ViewOps.FlatIterable;\nimport net.imglib2.IterableInterval;\nimport net.imglib2.Ran... | java | chosen |
[
{
"from": "human",
"value": "Add test case for type qualifiers flowing across boxing/unboxing\n\ngit-svn-id: e7d6bde23f017c9ff4efd468d79d66def666766b@13101 eae3c2d3-9b19-0410-a86e-396b6ccb6ab3\n"
},
{
"from": "gpt",
"value": "package bugIdeas;\n\nimport java.lang.annotation.Documented;\nimport j... | java | chosen |
[
{
"from": "human",
"value": "Test ProfileParser independently (by cheating on parserState)\n"
},
{
"from": "gpt",
"value": "package uk.org.taverna.scufl2.rdfxml;\n\nimport static org.junit.Assert.assertNotNull;\n\nimport java.net.URI;\nimport java.net.URISyntaxException;\nimport java.net.URL;\n\... | java | chosen |
[
{
"from": "human",
"value": "Test stubs for request manager\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2015 Adam Speakman\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 cop... | java | chosen |
[
{
"from": "human",
"value": "Add test for DataLoaderMessageProcessFailureEvent spy event\n"
},
{
"from": "gpt",
"value": "package replicant.spy;\n\nimport arez.Arez;\nimport java.util.HashMap;\nimport org.testng.annotations.Test;\nimport replicant.AbstractReplicantTest;\nimport static org.testng... | java | chosen |
[
{
"from": "human",
"value": "Add a demo for the Stopwatch lap measurement class\n"
},
{
"from": "gpt",
"value": "package org.svetovid.demo;\r\n\r\nimport org.svetovid.io.Svetovid;\r\nimport org.svetovid.util.Stopwatch;\r\n\r\npublic class Laps {\r\n\r\n public static void main(String[] args) ... | java | chosen |
[
{
"from": "human",
"value": "ACE: Add Simulated Annealing structure. Not implemented.\n"
},
{
"from": "gpt",
"value": "/*\n * Project to resolve 2D cutting stock problem for Discreet Optimizations course at Polytech Lyon\n * Copyright (C) 2015. CARON Antoine and CHAUSSENDE Adrien\n *\n * This p... | java | chosen |
[
{
"from": "human",
"value": "Add java solution for 1. Two Sum\n\n1. Two Sum: https://leetcode.com/problems/two-sum/"
},
{
"from": "gpt",
"value": "package leetcode.two_sum;\n\nimport java.util.HashMap;\n\npublic class Solution {\n public int[] twoSum(int[] numbers, int target) {\n \tHashMa... | java | chosen |
[
{
"from": "human",
"value": "Add MWE that for TraceEquivalence as a unit test.\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 the License at\n ... | java | chosen |
[
{
"from": "human",
"value": "Add a test for System.currentTimeMillis()"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2019 Volker Berlin (i-net software)\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": "human",
"value": "Add unit test for PDUByteBuffer\n\ngit-svn-id: 8aef34885c21801cc977f98956a081c938212632@116 1678c8a9-8d33-0410-b0a4-d546c816ed44\n"
},
{
"from": "gpt",
"value": "package org.jsmpp.util;\nimport static org.testng.Assert.assertEquals;\n\nimport org.testng.annotations.B... | java | chosen |
[
{
"from": "human",
"value": "Add new column to represent the new item hashes\n\nThese will be populated using the objecthash algorithm, but\nfor now, make them the same as the existing hashes.\n"
},
{
"from": "gpt",
"value": "package uk.gov.migration;\n\nimport java.sql.Connection;\nimport java.... | java | chosen |
[
{
"from": "human",
"value": "Add single variable implementation of Matcher\n"
},
{
"from": "gpt",
"value": "package com.jmatch;\n\nimport org.apache.commons.lang3.StringUtils;\n\n/**\n * Uses single letters to represent variables in patterns.\n */\npublic class SingleVariablePatternMatcher imple... | java | chosen |
[
{
"from": "human",
"value": "Add unit tests for java User binding\n"
},
{
"from": "gpt",
"value": "package net.sectorsoftware.ygo.deck;\n\nimport static org.junit.Assert.assertEquals;\nimport static org.junit.Assert.assertTrue;\n\nimport java.io.Closeable;\nimport java.io.IOException;\nimport ja... | java | chosen |
[
{
"from": "human",
"value": "Create single wheel swerve drive subsystem."
},
{
"from": "gpt",
"value": "package org.usfirst.frc.team2339.Barracuda.subsystems;\n\nimport edu.wpi.first.wpilibj.MotorSafety;\nimport edu.wpi.first.wpilibj.MotorSafetyHelper;\nimport edu.wpi.first.wpilibj.SpeedControll... | java | chosen |
[
{
"from": "human",
"value": "Create script file to test app scalling capabilities.\n"
},
{
"from": "gpt",
"value": "package com.camillepradel.movierecommender.testscript;\n\nimport java.io.BufferedInputStream;\nimport java.io.DataInputStream;\nimport java.io.IOException;\nimport java.io.InputStr... | java | chosen |
[
{
"from": "human",
"value": "Add a new class for a print command\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (C) 2015 Atanas Gegov\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 obta... | java | chosen |
[
{
"from": "human",
"value": "Create migration from older version of graph\n"
},
{
"from": "gpt",
"value": "package com.orientechnologies.orient.graph.migration;\n\nimport java.util.List;\n\nimport com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx;\nimport com.orientechnologies.or... | java | chosen |
[
{
"from": "human",
"value": "Add default implementation of AddDimension interface.\n"
},
{
"from": "gpt",
"value": "package net.imagej.ops.views;\n\nimport net.imagej.ops.view.ViewOps;\nimport net.imagej.ops.view.ViewOps.AddDimension;\nimport net.imglib2.RandomAccessible;\nimport net.imglib2.vie... | java | chosen |
[
{
"from": "human",
"value": "Add the Query builder to the SDK\n"
},
{
"from": "gpt",
"value": "package com.sharefile.api;\n\nimport com.sharefile.api.entities.*;\n\n/** \n * The entities have non-static get* functions to build the queries. The auto-generated SDK does not want to change this. \n ... | java | chosen |
[
{
"from": "human",
"value": "Create a list fragment view factory \n\n creates for a given category the corresponding entity list view\n either course category or courses list fragment\n "
},
{
"from": "gpt",
"value": "/*\n * Copyright 2015 Quality and Usability Lab, Telekom Innvation Laborato... | java | chosen |
[
{
"from": "human",
"value": "Switch to 64 bit implementation if 64 bit VM is detected. Fix previous commit.\n"
},
{
"from": "gpt",
"value": "package org.cache2k.impl;\n\n/*\n * #%L\n * cache2k core package\n * %%\n * Copyright (C) 2000 - 2015 headissue GmbH, Munich\n * %%\n * This program is fre... | java | chosen |
[
{
"from": "human",
"value": "PUBDEV-7193: Add a test for race condition when DRF models are trained concurrently\n"
},
{
"from": "gpt",
"value": "package hex.tree.drf;\n\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.concurrent.Callable;\nimport java.util.concurrent.Execu... | java | chosen |
[
{
"from": "human",
"value": "Add support for buck project command\n\nAdds a button in the toolbar on the left side of the popup window\nto run buck project.\n\nshortcut: ctrl shift P\n\nSee Issue #5\n"
},
{
"from": "gpt",
"value": "package com.intellij.plugin.buck.actions;\n\nimport com.intellij... | java | chosen |
[
{
"from": "human",
"value": "Add a benchmark for sleeping\n"
},
{
"from": "gpt",
"value": "package net.openhft.chronicle.core;\n\nimport java.util.concurrent.locks.LockSupport;\n\npublic class SleepTesterMain {\n public static void main(String[] args) throws InterruptedException {\n {\... | java | chosen |
[
{
"from": "human",
"value": "Add vector render type with OpenLayers 3.16.0"
},
{
"from": "gpt",
"value": "/*\n * To change this license header, choose License Headers in Project Properties.\n * To change this template file, choose Tools | Templates\n * and open the template in the editor.\n */\n... | java | chosen |
[
{
"from": "human",
"value": "Add options helper for handling negative number CLI params\n"
},
{
"from": "gpt",
"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 publi... | java | chosen |
[
{
"from": "human",
"value": "Add a tool to watch for broadcasts of rotation transactions.\n"
},
{
"from": "gpt",
"value": "package com.google.bitcoin.tools;\n\nimport com.google.bitcoin.core.*;\nimport com.google.bitcoin.discovery.DnsDiscovery;\nimport com.google.bitcoin.params.MainNetParams;\ni... | java | chosen |
[
{
"from": "human",
"value": "Add UUID generator for Maven builds\n"
},
{
"from": "gpt",
"value": "\npackage info.freelibrary.maven;\n\nimport java.util.UUID;\n\nimport org.apache.maven.plugin.AbstractMojo;\nimport org.apache.maven.plugin.MojoExecutionException;\nimport org.apache.maven.plugin.Mo... | java | chosen |
[
{
"from": "human",
"value": "Add an annotation iterator overlay"
},
{
"from": "gpt",
"value": "/*******************************************************************************\n * Copyright (c) 2014 Codenvy, S.A.\n * All rights reserved. This program and the accompanying materials\n * are made a... | java | chosen |
[
{
"from": "human",
"value": "Create a custom data type and its associated handler for providers - TRUNK-3623\n\nCreate a custom data type and its associated handler for providers - TRUNK-3623\n"
},
{
"from": "gpt",
"value": "/**\n * This Source Code Form is subject to the terms of the Mozilla Pu... | java | chosen |
[
{
"from": "system",
"value": "Update helloworld to work with 1.1.1\n"
},
{
"from": "human",
"value": "package cucumber.examples.java.helloworld;\n\nimport cucumber.junit.Cucumber;\nimport org.junit.runner.RunWith;\n\n@RunWith(Cucumber.class)\n@Cucumber.Options(format = {\"pretty\", \"html:target... | java | chosen |
[
{
"from": "human",
"value": "Add unit test for Viewer\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2015 MovingBlocks\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 of ... | java | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.