conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Add multiline test for canonical representation\n"
},
{
"from": "human",
"value": "package net.sf.jabref.model.entry;\n\nimport org.junit.Assert;\nimport org.junit.Test;\n\npublic class CanonicalBibEntryTest {\n\n /**\n * Simple test for the canonical format\... | java | chosen |
[
{
"from": "human",
"value": "Make sure ExampleWorkflow can be created\n"
},
{
"from": "gpt",
"value": "package uk.org.taverna.scufl2.api;\n\nimport org.junit.Test;\n\npublic class TestExampleWorkflow extends ExampleWorkflow {\n\n\t@Test\n\tpublic void makeflowBundle() throws Exception {\n\t\tmak... | java | chosen |
[
{
"from": "human",
"value": "Add class to allow jUnit tests to be run directly from command line, with our RunListeners attached\n"
},
{
"from": "gpt",
"value": "package nl.hsac.fitnesse.junit;\n\nimport org.junit.runner.JUnitCore;\nimport org.junit.runner.Result;\nimport org.junit.runner.notifi... | java | chosen |
[
{
"from": "human",
"value": "ENG-5569: Add junit test for @Shutdown\n"
},
{
"from": "gpt",
"value": "/* This file is part of VoltDB.\n * Copyright (C) 2008-2014 VoltDB Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining\n * a copy of this software and associated do... | java | chosen |
[
{
"from": "human",
"value": "Include Edge in development version (Chromium based) test\n"
},
{
"from": "gpt",
"value": "/*\n * (C) Copyright 2019 Boni Garcia (http://bonigarcia.github.io/)\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file exc... | java | chosen |
[
{
"from": "human",
"value": "Add filter namespace completeness test\n"
},
{
"from": "gpt",
"value": "/*\n * #%L\n * ImageJ software for multidimensional image processing and analysis.\n * %%\n * Copyright (C) 2014 - 2015 Board of Regents of the University of\n * Wisconsin-Madison, University of ... | java | chosen |
[
{
"from": "human",
"value": "Add a test demonstrating how WiredFile can be used.\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (C) 2015 higherfrequencytrading.com\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesse... | java | chosen |
[
{
"from": "human",
"value": "[Android] Add test that asserts screen is on.\n\nLots of tests fail with seemingly random failures if the screen turns off. Add an explicit test for this so it's obvious why tests are failing.\n\nBUG=167141\n\nReview URL: https://chromiumcodereview.appspot.com/11642050\n\ngit-sv... | java | chosen |
[
{
"from": "human",
"value": "Add unit test for VaultPropertySource with profiles.\n\nSee gh-193.\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2018 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except i... | java | chosen |
[
{
"from": "human",
"value": "core: Add parameter class for vnic profile commands\n\nThe class will be using for vnic profile actions, e.g.:\nadding/updating/removing a vnic profile.\n\nChange-Id: Ia98a96e4413f1b9cbc7012c2e2fc6da70a4027e4\nSigned-off-by: Moti Asayag <da1debb83a8e12b6e8822edf2c275f55cc51b720@... | java | chosen |
[
{
"from": "human",
"value": "Add example showing executors being num-of-processors orders faster.\n"
},
{
"from": "gpt",
"value": "package no.javazone;\n\nimport org.junit.Test;\n\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.concurrent.ExecutorService;\nimport java.util... | java | chosen |
[
{
"from": "human",
"value": "Add first version of untested UDP connector"
},
{
"from": "gpt",
"value": "/**\n * Copyright (c) 2010-2017 by the respective copyright holders.\n *\n * All rights reserved. This program and the accompanying materials\n * are made available under the terms of the Ecli... | java | chosen |
[
{
"from": "human",
"value": "Add test case from mailing list\n"
},
{
"from": "gpt",
"value": "package org.mapdb.issues;\n\nimport org.junit.Test;\nimport org.mapdb.*;\n\nimport java.util.concurrent.ConcurrentMap;\n\nimport static org.junit.Assert.assertEquals;\n\npublic class MailList_HeapReopen... | java | chosen |
[
{
"from": "human",
"value": "Add unit tests for ScratchObject\n"
},
{
"from": "gpt",
"value": "package scratchlib.objects;\n\nimport java.io.ByteArrayInputStream;\nimport java.io.ByteArrayOutputStream;\nimport java.io.IOException;\n\nimport org.junit.Test;\n\nimport static org.junit.Assert.asser... | java | chosen |
[
{
"from": "human",
"value": "Add statement to problem 34\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 utility to register and remove OIM plugins\n"
},
{
"from": "gpt",
"value": "package com.blogspot.oraclestack.utilities;\n\nimport java.io.File;\nimport java.io.FileInputStream;\nimport java.io.FileNotFoundException;\nimport java.io.IOException;\nimport oracle.iam... | java | chosen |
[
{
"from": "human",
"value": "Add helper to restore immersive modes"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2014 Kevin Quan (kevin.quan@gmail.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 License... | java | chosen |
[
{
"from": "human",
"value": "Fix one total cell format will affect the other total cells when export\nto excel and enable pivot table. (T 50403)\n\nAdded a new fixed style class to avoid buggy cache and delegation\nbehavior provided by ComputedStyle."
},
{
"from": "gpt",
"value": "package org.ec... | java | chosen |
[
{
"from": "human",
"value": "Add statement to problem 38\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 a specific test for externalizable\n"
},
{
"from": "gpt",
"value": "package org.objenesis;\n\nimport org.junit.Test;\n\nimport java.io.*;\nimport java.util.ArrayList;\n\n/**\n * This test makes sure an issue mentioned is not occurring.\n * @author Henri Tremblay\... | java | chosen |
[
{
"from": "human",
"value": "Add a first unit test\n"
},
{
"from": "gpt",
"value": "package jenkins.plugins.jsonHelper;\n\nimport hudson.model.Hudson;\nimport jenkins.model.Jenkins;\nimport net.sf.json.JSONObject;\nimport org.junit.Before;\nimport org.junit.Test;\nimport org.junit.runner.RunWith... | java | chosen |
[
{
"from": "human",
"value": "Use a factory to decide which downstream manager to use\n"
},
{
"from": "gpt",
"value": "package org.jenkinsci.plugins.ghprb.downstreambuilds;\n\nimport org.jenkinsci.plugins.ghprb.GhprbDefaultBuildManager;\n\nimport com.cloudbees.plugins.flow.FlowRun;\n\nimport huds... | java | chosen |
[
{
"from": "system",
"value": "Use the @Configured stereotype for command line parameters no need for a special option..."
},
{
"from": "human",
"value": "/**\n * Copyright (c) 2010 RedEngine Ltd, http://www.redengine.co.nz. All rights reserved.\n *\n * This program is licensed to you under the A... | java | chosen |
[
{
"from": "human",
"value": "Create abstract class for objects that need to be rendered\n"
},
{
"from": "gpt",
"value": "package com.google.android.gnd.ui.map;\n\n/** Abstract class defining objects that need to be rendered on map. */\npublic abstract class MapFeature {\n\n // TODO: Pull common... | java | chosen |
[
{
"from": "human",
"value": "Add unit test for DiscoveryWriter\n"
},
{
"from": "gpt",
"value": "package com.rackspacecloud.blueflood.inputs.processors;\n\nimport com.rackspacecloud.blueflood.concurrent.ThreadPoolBuilder;\nimport com.rackspacecloud.blueflood.io.DiscoveryIO;\nimport com.rackspacec... | java | chosen |
[
{
"from": "human",
"value": "Implement simple callback completion based workflows (currently only \"sequence\")\n"
},
{
"from": "gpt",
"value": "\npackage eu.mosaic_cloud.tools.callbacks.tools;\n\n\nimport java.util.ArrayDeque;\nimport java.util.concurrent.Callable;\n\nimport eu.mosaic_cloud.too... | java | chosen |
[
{
"from": "human",
"value": "Check for HGNCs that have been assigned as display labels more than one gene.\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (C) 2006 WTSI & EBI\n *\n * This library is free software; you can redistribute it and/or modify it under the terms of the\n * GNU Lesser G... | java | chosen |
[
{
"from": "human",
"value": "Add a class that can find and select the best SASL mechanism based on\nthe remote peers reported mechanisms."
},
{
"from": "gpt",
"value": "/**\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE ... | java | chosen |
[
{
"from": "human",
"value": "Add example of finish even when @After fails\n"
},
{
"from": "gpt",
"value": "package com.github.havarunner.beforeafter;\n\nimport com.github.havarunner.HavaRunner;\nimport com.github.havarunner.annotation.RunSequentially;\nimport org.junit.After;\nimport org.junit.T... | java | chosen |
[
{
"from": "human",
"value": "Add test to ensure that a newly-created job can be configured via the web UI.\n\nRe: #18.\n"
},
{
"from": "gpt",
"value": "package org.jenkinsci.plugins.deploydb;\n\nimport com.gargoylesoftware.htmlunit.html.HtmlPage;\nimport hudson.model.AbstractProject;\nimport org... | java | chosen |
[
{
"from": "human",
"value": "Examples: Add Download blocks to test block processing\n"
},
{
"from": "gpt",
"value": "package org.bitcoinj.examples;\n\nimport org.bitcoinj.core.*;\nimport org.bitcoinj.net.discovery.DnsDiscovery;\nimport org.bitcoinj.params.MainNetParams;\nimport org.bitcoinj.sto... | java | chosen |
[
{
"from": "human",
"value": "Make a reusable panel with a centered \"Close\" button\n"
},
{
"from": "gpt",
"value": "/**\n * <License>\n */\npackage edu.colorado.csdms.wmt.client.ui.widgets;\n\nimport com.google.gwt.dom.client.Style.Unit;\nimport com.google.gwt.user.client.ui.Button;\nimport com... | java | chosen |
[
{
"from": "human",
"value": "Introduce unit tests for IntegerToEnumConverterFactory\n\nCloses gh-25292\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2002-2020 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this fi... | java | chosen |
[
{
"from": "human",
"value": "Add statement to problem 78\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 visitor to reset task statuses.\n\nFEA: ItEr75S27PerProjectDashboard\n"
},
{
"from": "gpt",
"value": "/*\n * This file is part of LibrePlan\n *\n * Copyright (C) 2011 Igalia, S.L.\n *\n * This program is free software: you can redistribute it and/or modify\n * it... | java | chosen |
[
{
"from": "human",
"value": "Add custom class for illegal feature comparisons\n"
},
{
"from": "gpt",
"value": "/*\nCopyright (c) 2016, Colorado State University\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification,\nare permitted provided that ... | java | chosen |
[
{
"from": "human",
"value": "Add java solution for 164. Maximum Gap\n\n164. Maximum Gap: https://leetcode.com/problems/maximum-gap/"
},
{
"from": "gpt",
"value": "package leetcode.maximum_gap;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class Solution {\n public int maxim... | java | chosen |
[
{
"from": "human",
"value": "Add method for blocking on file persist in tests\n"
},
{
"from": "gpt",
"value": "/*\n * Licensed to the University of California, Berkeley under one or more contributor license\n * agreements. See the NOTICE file distributed with this work for additional information... | java | chosen |
[
{
"from": "human",
"value": "Add abstract class for non-linear filters\n\nSigned-off-by: squareys <b4e1335d2c774058f7a95112f52894dcc752fd3f@googlemail.com>\n"
},
{
"from": "gpt",
"value": "\npackage net.imagej.ops.filter;\n\nimport net.imagej.ops.AbstractComputerOp;\nimport net.imagej.ops.Comput... | java | chosen |
[
{
"from": "human",
"value": "Add route finder by constraint so that we can apply different constraint\n"
},
{
"from": "gpt",
"value": "package son.graph;\n\nimport java.util.List;\n\nimport son.graph.algorithms.RoutesContraint;\nimport son.graph.algorithms.RoutesFinder;\nimport son.graph.models.... | java | chosen |
[
{
"from": "human",
"value": "Add test for eigen decomposition.\n"
},
{
"from": "gpt",
"value": "package hu.kazocsaba.math.matrix;\n\nimport java.util.Iterator;\nimport java.util.Map.Entry;\nimport java.util.SortedMap;\nimport java.util.TreeMap;\nimport org.junit.Test;\nimport static org.junit.As... | java | chosen |
[
{
"from": "human",
"value": "Add a mouse listener for displaying term meta properties.\n\nSVN-Revision: 2973\n"
},
{
"from": "gpt",
"value": "package gov.nih.nci.cbiit.cdms.formula.gui.listener;\r\n\r\nimport gov.nih.nci.cbiit.cdms.formula.gui.FormulaButtonPane;\r\nimport gov.nih.nci.cbiit.cdms.... | java | chosen |
[
{
"from": "human",
"value": "Add test that we can detect wrongly encoded language property files automatically.\n"
},
{
"from": "gpt",
"value": "package net.sf.jabref.logic.l10n;\n\nimport org.junit.Test;\n\nimport java.io.IOException;\nimport java.nio.file.Files;\nimport java.nio.file.Path;\nim... | java | chosen |
[
{
"from": "human",
"value": "Add default implementation of PermuteCoordinatesInverse interface.\n"
},
{
"from": "gpt",
"value": "package net.imagej.ops.views;\n\nimport net.imagej.ops.view.ViewOps;\nimport net.imagej.ops.view.ViewOps.PermuteCoordinatesInverse;\nimport net.imglib2.RandomAccessibl... | java | chosen |
[
{
"from": "human",
"value": "Check that not all xrefs have the same identifier.\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (C) 2003 EBI, GRL\n * \n * This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as publish... | java | chosen |
[
{
"from": "human",
"value": "Add unit test for LBzip2InputStream\n"
},
{
"from": "gpt",
"value": "/*-\n * Copyright (c) 2014 Mikolaj Izdebski\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may... | java | chosen |
[
{
"from": "human",
"value": "Add planetary masses constants in java\n"
},
{
"from": "gpt",
"value": "package com.units.constants;\n\nimport com.units.mass.SolarMasses;\n\npublic class PlanetaryMasses {\n\t\n\t//the mass of the sun\n\tstatic public final SolarMasses sunMass = new SolarMasses(1.0)... | java | chosen |
[
{
"from": "human",
"value": "Test of events originated from components\n"
},
{
"from": "gpt",
"value": "//-----------------------------------------------------------------------//\n// //\n// T e s t C o m p o ... | java | chosen |
[
{
"from": "human",
"value": "Add enumeration for severity levels\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2020 Martin Winandy\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with\n * the License. You may obtain a c... | java | chosen |
[
{
"from": "human",
"value": "Create the data object that will be used when fetching from server\n"
},
{
"from": "gpt",
"value": "package com.andela.webservice.model;\n\n/**\n * Created by Spykins on 08/06/16.\n */\npublic class Flower {\n private int productId;\n private String name;\n ... | java | chosen |
[
{
"from": "human",
"value": "[AS7-1754] Add transactional integration endpoint (STOMP)\n"
},
{
"from": "gpt",
"value": "/*\n * JBoss, Home of Professional Open Source.\n * Copyright 2008, Red Hat Middleware LLC, and individual contributors\n * as indicated by the @author tags. See the copyright.... | java | chosen |
[
{
"from": "human",
"value": "Add ability to generate example config\n"
},
{
"from": "gpt",
"value": "package org.jboss.shamrock.maven;\n\nimport java.io.File;\nimport java.io.FileOutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.nio.charset.StandardCharsets;\ni... | java | chosen |
[
{
"from": "human",
"value": "[PAXEXAM-326] Test directory for associating test addresses to test\nmethods (preliminary solution)"
},
{
"from": "gpt",
"value": "package org.ops4j.pax.exam;\n\nimport java.net.URI;\nimport java.util.HashMap;\nimport java.util.Map;\n\npublic class TestDirectory\n{\n... | java | chosen |
[
{
"from": "human",
"value": "Create a Token superclass implementation to add offsets and previous token"
},
{
"from": "gpt",
"value": "package fr.insalyon.citi.golo.compiler.parser;\n\n/**\n *\n * @author david\n */\npublic class GoloTokenBase {\n public int startOffset;\n public int endOf... | java | chosen |
[
{
"from": "human",
"value": "Add tests for creation of CompositePathIterable\n\nTest cases for various scenarios of file status when creating\na CompositePathIterable\n"
},
{
"from": "gpt",
"value": "package com.cloudera.crunch.io;\n\nimport static org.junit.Assert.*;\n\nimport java.io.File;\nim... | java | chosen |
[
{
"from": "human",
"value": "Fix X-GFE header search bug\n\nThe current code fails if there's no X-* header even if there is a X-GFE-*\nheader, although just having one of them should be enough.\n\nBug was introduced in []\n\n-------------\nCreated by MOE: https://github.com/google/moe\nMOE_MIGRATED_REVID=1... | java | chosen |
[
{
"from": "human",
"value": "Add test for Euler 14\n\nExample of how to use memoization and currying.\n"
},
{
"from": "gpt",
"value": "/* / \\____ _ ______ _____ / \\____ ____ _____\n * / \\__ \\/ \\ / \\__ \\ / __// \\__ \\ / \\/ __ \\ Javaslang\n * _/ // _\\ \\ ... | java | chosen |
[
{
"from": "human",
"value": "Add Constants file (Might trim down constants later to optomize)\n"
},
{
"from": "gpt",
"value": "/*\n* Created by: Jason Salas\n* Last edited by: Jason Salas\n* Written on: 11/7/16\n* Assignment: Ultimate Tic Tac Toe - Constants Folder\n*/\npublic interface UTTTCons... | java | chosen |
[
{
"from": "human",
"value": "Add a regex matcher to use with assertThat\n"
},
{
"from": "gpt",
"value": "package uk.ac.ebi.atlas.utils;\n\nimport org.hamcrest.BaseMatcher;\nimport org.hamcrest.Description;\n\npublic class RegexMatcher extends BaseMatcher {\n private final String regex;\n\n ... | java | chosen |
[
{
"from": "human",
"value": "Add some tests to problem 47\n"
},
{
"from": "gpt",
"value": "package com.github.pedrovgs.problem47;\n\nimport com.github.pedrovgs.binarytree.BinaryNode;\nimport com.github.pedrovgs.problem46.BinaryTreeSerialization;\nimport org.junit.Before;\nimport org.junit.Test;\... | java | chosen |
[
{
"from": "human",
"value": "Address the issue with embedded entities being indexed\n\n“Fix in documentation”\n"
},
{
"from": "gpt",
"value": "/*\n */\n\npackage com.googlecode.objectify.test;\n\nimport com.google.cloud.datastore.Key;\nimport com.google.cloud.datastore.Value;\nimport com.googlec... | java | chosen |
[
{
"from": "human",
"value": "Add java keystore helper class, prepare for dynamically generating keystore for SSL use\n"
},
{
"from": "gpt",
"value": "package com.cloud.utils.security;\n\nimport java.io.BufferedInputStream;\nimport java.io.ByteArrayInputStream;\nimport java.io.ByteArrayOutputStre... | java | chosen |
[
{
"from": "human",
"value": "Add class for managing database changes\n"
},
{
"from": "gpt",
"value": "package de.eightbitboy.hijacr.data;\n\nimport android.content.Context;\nimport android.database.sqlite.SQLiteDatabase;\n\nimport de.eightbitboy.hijacr.data.dao.DaoMaster;\n\npublic class Databas... | java | chosen |
[
{
"from": "human",
"value": "Add file for BrickHelper tests.\n"
},
{
"from": "gpt",
"value": "package com.sharparam.sharpmemory.helpers;\n\nimport org.junit.Test;\n\n/**\n * Created on 2014-04-04.\n *\n * @author Sharparam\n */\npublic class BrickHelperTest {\n @Test\n public void testGetI... | java | chosen |
[
{
"from": "human",
"value": "Add tests for existing AbstractArchiver behaviour.\n"
},
{
"from": "gpt",
"value": "package org.codehaus.plexus.archiver;\n\nimport java.io.IOException;\n\nimport junit.framework.TestCase;\n\npublic class AbstractArchiverTest extends TestCase\n{\n private Abstract... | java | chosen |
[
{
"from": "human",
"value": "Add test cases for handling user logins\n"
},
{
"from": "gpt",
"value": "package com.twu.biblioteca.user;\n\nimport com.twu.biblioteca.com.twu.biblioteca.exceptions.IncorrectLoginException;\nimport com.twu.biblioteca.com.twu.biblioteca.exceptions.InvalidLibraryNumber... | java | chosen |
[
{
"from": "human",
"value": "Add constructor test for leaf node\n"
},
{
"from": "gpt",
"value": "/**\n * Copyright (c) 2014-2015, Kristian Klette\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the ... | java | chosen |
[
{
"from": "human",
"value": "Add own class for event\n"
},
{
"from": "gpt",
"value": "/*\n * Perfclispe\n * \n * \n * Copyright (c) 2013 Jakub Knetl\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": "human",
"value": "Add java solution for 14. Longest Common Prefix\n\n14. Longest Common Prefix: https://leetcode.com/problems/longest-common-prefix/"
},
{
"from": "gpt",
"value": "package leetcode.longest_common_prefix;\n\npublic class Solution {\n public String longestCommonPrefix... | java | chosen |
[
{
"from": "human",
"value": "Add statement to problem 49\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 JUnit test for Threshold class\n"
},
{
"from": "gpt",
"value": "package com.atreceno.it.javanese.concurrency;\n\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.List;\n\nimport org.junit.Assert;\nimport org.junit.Test;\n\npublic class Thre... | java | chosen |
[
{
"from": "human",
"value": "Solve question 19 in java\n"
},
{
"from": "gpt",
"value": "public class Solution {\n public static IntPair PairyTime(int k, int[] A) {\n int[] found = new int[k+1];\n for (int i = 0; i < k+1; i++) {\n found[i] = -1;\n }\n \n ... | java | chosen |
[
{
"from": "human",
"value": "Add problem 7 to unit 2\n"
},
{
"from": "gpt",
"value": "import java.util.Scanner;\n\n/**\n * This program check if an entered value is prime.\n **/\npublic class Prime_Check {\n // This is a very inefficient, but easy to write prime check algorithm\n public st... | java | chosen |
[
{
"from": "human",
"value": "Add site log received notification service\n"
},
{
"from": "gpt",
"value": "package au.gov.ga.geodesy.domain.service;\n\nimport org.springframework.stereotype.Component;\n\nimport au.gov.ga.geodesy.domain.model.event.Event;\nimport au.gov.ga.geodesy.domain.model.even... | java | chosen |
[
{
"from": "human",
"value": "@Hasasn: Add Facility by level dto\n"
},
{
"from": "gpt",
"value": "/*\n * Electronic Logistics Management Information System (eLMIS) is a supply chain management system for health commodities in a developing country setting.\n *\n * Copyright (C) 2015 Clinton Health... | java | chosen |
[
{
"from": "human",
"value": "Create a servlet to access the details of sentry stub\n"
},
{
"from": "gpt",
"value": "package net.kencochrane.raven.sentrystub;\n\nimport com.fasterxml.jackson.core.JsonFactory;\nimport com.fasterxml.jackson.core.JsonGenerator;\n\nimport javax.servlet.ServletExcepti... | java | chosen |
[
{
"from": "human",
"value": "[V0.2][Commons] Add changes in list panel event handling class\n"
},
{
"from": "gpt",
"value": "package seedu.address.commons.events.ui;\n\nimport seedu.address.commons.events.BaseEvent;\nimport seedu.address.model.tasklist.TaskList;\n\n/**\n * Represents a selection... | java | chosen |
[
{
"from": "human",
"value": "Add test for CodeOwnerBackendId.getBackendId(Class) method\n\nThis increases the test coverage for CodeOwnerBackendId from 83.3% to\n100%.\n\nSigned-off-by: Edwin Kempin <d43fb6c98c97e553b671ed9a9318100f1de386e7@google.com>\nChange-Id: Id7be33472f4baebd85648986d84bc84f65a3e655\n... | java | chosen |
[
{
"from": "human",
"value": "Add a marker interface for internal active objects such as IC2D spy, p2p managers ...\n\n\ngit-svn-id: 9146c88ff6d39b48099bf954d15d68f687b3fa69@2685 28e8926c-6b08-0410-baaa-805c5e19b8d6\n"
},
{
"from": "gpt",
"value": "/*\n * #########################################... | java | chosen |
[
{
"from": "human",
"value": "Add helper class for creating XSD file.\n"
},
{
"from": "gpt",
"value": "/*\n * Java Genetic Algorithm Library (@__identifier__@).\n * Copyright (c) @__year__@ Franz Wilhelmstötter\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may ... | java | chosen |
[
{
"from": "human",
"value": "Create singleton class for managing DAO units data preparation.\n"
},
{
"from": "gpt",
"value": "package com.github.aureliano.verbum_domini.dao.helper;\n\nimport com.github.aureliano.verbum_domini.orm.PersistenceManager;\n\npublic final class DataHelper {\n\n\tprivat... | java | chosen |
[
{
"from": "human",
"value": "Add re-index component for Project, Community.\n"
},
{
"from": "gpt",
"value": "package org.fedorahosted.flies.core.action;\n\nimport java.util.List;\n\nimport javax.persistence.EntityManager;\n\nimport org.fedorahosted.flies.core.model.Community;\nimport org.fedorah... | java | chosen |
[
{
"from": "human",
"value": "Add statement to problem 39\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 tree level order traversal ii\n"
},
{
"from": "gpt",
"value": "/**\n * Given a binary tree, return the bottom-up level order traversal of its nodes' values.\n * (ie, from left to right, level by level from leaf to root).\n */\npublic class Solution {\n public Li... | java | chosen |
[
{
"from": "human",
"value": "Add in a listener to record events as part of testing\n"
},
{
"from": "gpt",
"value": "package org.realityforge.replicant.client;\n\nimport java.util.ArrayList;\n\nclass RecordingListener\n implements EntityChangeListener\n{\n private final ArrayList<EntityChange... | java | chosen |
[
{
"from": "human",
"value": "Add basic load event servlet\n"
},
{
"from": "gpt",
"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// You may obtain a copy of the ... | java | chosen |
[
{
"from": "human",
"value": "[dbgeneric] Fix relations between ColumnStore and PhysicalTypes; implement a ColumnStore based bloom filter (incomplete).\n"
},
{
"from": "gpt",
"value": "package to.etc.util;\n\n/**\n * @author <a href=\"mailto:jal@etc.to\">Frits Jalvingh</a>\n * Created on 14-04-21... | java | chosen |
[
{
"from": "human",
"value": "Create a Simple factory to create Raven instances\n"
},
{
"from": "gpt",
"value": "package net.kencochrane.raven;\n\nimport java.util.ServiceLoader;\nimport java.util.logging.Level;\nimport java.util.logging.Logger;\n\npublic abstract class RavenFactory {\n privat... | java | chosen |
[
{
"from": "human",
"value": "Add a new Preferences class for saving user information.\n"
},
{
"from": "gpt",
"value": "package org.zeropage.apps.zeropage.utility;\n\nimport android.content.Context;\nimport android.content.SharedPreferences;\nimport android.preference.PreferenceManager;\nimport a... | java | chosen |
[
{
"from": "human",
"value": "Add a right manager for the team\n"
},
{
"from": "gpt",
"value": "//\n// Copyright (c) 2011 Linkeos.\n//\n// This file is part of Elveos.org.\n// Elveos.org is free software: you can redistribute it and/or modify it\n// under the terms of the GNU General Public Licen... | java | chosen |
[
{
"from": "human",
"value": "Add JUnit test for UnlockKeys.\n"
},
{
"from": "gpt",
"value": "package water;\n\nimport org.junit.Assert;\nimport org.junit.BeforeClass;\nimport org.junit.Test;\nimport water.api.UnlockTask;\nimport water.fvec.Frame;\nimport water.util.Log;\n\npublic class UnlockTes... | java | chosen |
[
{
"from": "human",
"value": "Add java solution for 64. Minimum Path Sum\n\n64. Minimum Path Sum: https://leetcode.com/problems/minimum-path-sum/"
},
{
"from": "gpt",
"value": "package leetcode.minimum_path_sum;\n\npublic class Solution {\n public int minPathSum(int[][] grid) {\n \tif(grid ... | java | chosen |
[
{
"from": "human",
"value": "Add rest resource and upload method\n"
},
{
"from": "gpt",
"value": "package com.tymiller.controller;\n\nimport java.io.File;\nimport java.io.IOException;\nimport java.util.Iterator;\n\nimport javax.servlet.http.HttpServletRequest;\nimport javax.servlet.http.HttpServ... | java | chosen |
[
{
"from": "human",
"value": "Add test showing how to map a one-to-one table relationship without @MapsId\n"
},
{
"from": "gpt",
"value": "package com.vladmihalcea.book.hpjp.hibernate.association;\n\nimport com.vladmihalcea.book.hpjp.util.AbstractTest;\nimport org.junit.Test;\n\nimport javax.pers... | java | chosen |
[
{
"from": "human",
"value": "Add some constants for lighting for future use\n"
},
{
"from": "gpt",
"value": "package org.hollowcraft.model;\n/*\n * HollowCraft License\n * Copyright (c) 2010 Caleb Champlin.\n * All rights reserved\n * This license must be include in all copied, cloned and der... | java | chosen |
[
{
"from": "human",
"value": "Add @ManyToMany with @ElementCollection test\n"
},
{
"from": "gpt",
"value": "package com.vladmihalcea.hibernate.masterclass.laboratory.mapping;\n\nimport com.vladmihalcea.hibernate.masterclass.laboratory.util.AbstractTest;\nimport org.junit.Test;\n\nimport javax.per... | java | chosen |
[
{
"from": "human",
"value": "[Misc] Fix mutation score (put it back to 8%, was 7% after recent commits)\n"
},
{
"from": "gpt",
"value": "/*\n * See the NOTICE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redi... | java | chosen |
[
{
"from": "human",
"value": "Add a functional interface for random generators.\n"
},
{
"from": "gpt",
"value": "package org.uma.jmetal.util.pseudorandom;\n\n/**\n * A {@link RandomGenerator} aims to provide a random value of a given type. Any\n * value of this type can be generated.<br>\n * <br>... | java | chosen |
[
{
"from": "human",
"value": "Fix a possible duplication bug\n"
},
{
"from": "gpt",
"value": "package com.Acrobot.ChestShop.Listeners.Player;\n\nimport org.bukkit.event.EventHandler;\nimport org.bukkit.event.Listener;\nimport org.bukkit.event.player.PlayerTeleportEvent;\n\n/**\n * A fix for a Cra... | java | chosen |
[
{
"from": "human",
"value": "Test serialization with delayed init\n"
},
{
"from": "gpt",
"value": "/*\n * Yet Another UserAgent Analyzer\n * Copyright (C) 2013-2018 Niels Basjes\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in comp... | java | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.