conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "human",
"value": "Add more constructors to TwoDShape\n\nhttp://ideone.com/iVyxUK"
},
{
"from": "gpt",
"value": "// Add more constructors to TwoDShape.\n\n// A class for two-dimensional objects.\nclass TwoDShape {\n private double width; // these are\n private double height; // now ... | java | chosen |
[
{
"from": "human",
"value": "Write arbitrary objects to SD card"
},
{
"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.\n... | java | chosen |
[
{
"from": "human",
"value": "Fix docs module Sonar build\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2014-2016 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 in compliance with the License.\n * ... | java | chosen |
[
{
"from": "human",
"value": "Add file missed in last check-in."
},
{
"from": "gpt",
"value": "/*\n * Copyright (c) 2013-2013, KNOPFLERFISH project\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": "Tag for providing name-value pairs to a parent tag\n\n\ngit-svn-id: 6c0206e3b9edd104850923da33ebd73b435d374d@625005 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "gpt",
"value": "/* \n JSPWiki - a JSP-based WikiWiki clone.\n\n Copyright (C) 2001-2002 Jan... | java | chosen |
[
{
"from": "human",
"value": "Add learn Java class ClassWrapper\n"
},
{
"from": "gpt",
"value": "/**\n * Apresentar os conceitos de Classes Wrapper\n * @author Fabrício Silva\n */\n\npublic class ClasseWrapper {\n public static void main(String[] args) {\n Integer idade = new Integer(29);\n ... | java | chosen |
[
{
"from": "system",
"value": "Update for the interface has changed. \n\ngit-svn-id: 5648d1bec6962b0a6d1d1b40eba8cf5cdb62da3d@1455 6f19259b-4bc3-4df7-8a09-765794883524\n"
},
{
"from": "human",
"value": "/*++\r\n\r\nCopyright (c) 2006, Intel Corporation\r\nAll rights reserved. This program and the... | java | chosen |
[
{
"from": "human",
"value": "Add the main function of evaluation of the closest parish.\n"
},
{
"from": "gpt",
"value": "package com.lri.eeclocalizer.core.model;\n\nimport com.google.android.gms.maps.model.LatLng;\n\n/**\n * Created by Lyonnel T. DZOTANG on 14/12/2015.\n */\npublic enum Parish {... | java | chosen |
[
{
"from": "human",
"value": "Test the sequence of messages displayed to user\n"
},
{
"from": "gpt",
"value": "package com.twu.biblioteca;\n\nimport org.junit.Test;\n\nimport java.io.StringWriter;\n\nimport static org.junit.Assert.assertEquals;\n\npublic class BibliotecaApplicationTest {\n\n S... | java | chosen |
[
{
"from": "human",
"value": "PIG-3654: Add class cache to PigContext\n\ngit-svn-id: c4d08399a8c07badad33cbf13a0909bacb78f41f@1560469 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "gpt",
"value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor lic... | java | chosen |
[
{
"from": "human",
"value": "Add very simple anagram O(n)\n"
},
{
"from": "gpt",
"value": "import org.junit.Test;\n\nimport java.util.Arrays;\n\nimport static org.assertj.core.api.Assertions.assertThat;\n\npublic class AnagramTest {\n\n /*\n O(n) anagram\n */\n @Test\n public voi... | java | chosen |
[
{
"from": "human",
"value": "Add clcok demo for DateUtil functions\n"
},
{
"from": "gpt",
"value": "package com.haxademic.demo.draw.text;\n\nimport com.haxademic.core.app.PAppletHax;\nimport com.haxademic.core.data.constants.PTextAlign;\nimport com.haxademic.core.draw.text.FontCacher;\nimport co... | java | chosen |
[
{
"from": "human",
"value": "Define an algo that computes the real world bounds of n-d data\n"
},
{
"from": "gpt",
"value": "/*\n * Zorbage: an algebraic data hierarchy for use in numeric processing.\n *\n * Copyright (C) 2016-2020 Barry DeZonia\n * \n * Redistribution and use in source and bina... | java | chosen |
[
{
"from": "human",
"value": "Create : 9 Palindrome Number\n"
},
{
"from": "gpt",
"value": "public class Solution {\n\n public boolean isPalindrome(int x) {\n\n if (x < 0 || (x != 0 && x % 10 == 0)) {\n return false;\n }\n\n int reversedNum = 0;\n while (... | java | chosen |
[
{
"from": "human",
"value": "Test case for inverse sqrt.\n"
},
{
"from": "gpt",
"value": "package com.hackoeur.jglm;\n\nimport org.junit.Assert;\nimport org.junit.Test;\n\nimport com.hackoeur.jglm.support.FastMath;\n\n/**\n * @author James Royalty\n */\npublic class InvSqrtTest {\n\t@Test\n\tpub... | java | chosen |
[
{
"from": "human",
"value": "Add java solution for 88. Merge Sorted Array\n\n88. Merge Sorted Array: https://leetcode.com/problems/merge-sorted-array/"
},
{
"from": "gpt",
"value": "package leetcode.merge_sorted_array;\n\npublic class Solution {\n public void merge(int A[], int m, int B[], in... | java | chosen |
[
{
"from": "human",
"value": "Introduce new net package for networking things\n"
},
{
"from": "gpt",
"value": "/*\n * JBoss, Home of Professional Open Source.\n * Copyright 2017 Red Hat, Inc., and individual contributors\n * as indicated by the @author tags.\n *\n * Licensed under the Apache Lice... | java | chosen |
[
{
"from": "human",
"value": "Create 'Sign up' window - temporary in server package, but only for tests purposes\n"
},
{
"from": "gpt",
"value": "package tcs.javaproject.guitest;\n\nimport javafx.application.Application;\nimport javafx.geometry.Insets;\nimport javafx.geometry.Pos;\nimport javafx.... | java | chosen |
[
{
"from": "system",
"value": "Implement iterative solution to problem 27\n"
},
{
"from": "human",
"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... | java | chosen |
[
{
"from": "human",
"value": "Add observer pattern example, swing\n"
},
{
"from": "gpt",
"value": "import java.awt.*;\nimport javax.swing.*;\n\npublic class SwingObserverExample {\n JFrame frame;\n\n public static void main(String[] args) {\n SwingObserverExample example = new SwingO... | java | chosen |
[
{
"from": "human",
"value": "Add default implementation of PermuteCoordinates interface.\n"
},
{
"from": "gpt",
"value": "package net.imagej.ops.views;\n\nimport net.imagej.ops.view.ViewOps;\nimport net.imagej.ops.view.ViewOps.PermuteCoordinates;\nimport net.imglib2.RandomAccessibleInterval;\nim... | java | chosen |
[
{
"from": "human",
"value": "Add utility class with debugging methods\n\nThe code was migrated from io.scif.util.DebugTools.\n"
},
{
"from": "gpt",
"value": "/*\n * #%L\n * SciJava Common shared library for SciJava software.\n * %%\n * Copyright (C) 2009 - 2014 Board of Regents of the University... | java | chosen |
[
{
"from": "human",
"value": "Add unit tests for ArrayUtils.deepCopyOf\n\ndeepCopyOf is a large and complex method and is probably doomed to fail\nat some point...so let's catch it early with some well-written unit\ntests!"
},
{
"from": "gpt",
"value": "/**\n * \n */\npackage mathsquared.resultsw... | java | chosen |
[
{
"from": "human",
"value": "Initialize prroject and setup map"
},
{
"from": "gpt",
"value": "package courseexamples.module2;\n\nimport de.fhpotsdam.unfolding.UnfoldingMap;\nimport de.fhpotsdam.unfolding.providers.Google;\nimport de.fhpotsdam.unfolding.utils.MapUtils;\nimport processing.core.PAp... | java | chosen |
[
{
"from": "human",
"value": "Add investment Servlets to sent all users investments to the frontend\n"
},
{
"from": "gpt",
"value": "// Copyright 2021 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 L... | java | chosen |
[
{
"from": "human",
"value": "Add java solution for 29. Divide Two Integers\n\n29. Divide Two Integers: https://leetcode.com/problems/divide-two-integers/"
},
{
"from": "gpt",
"value": "package leetcode.divide_two_integers;\n\npublic class Solution {\n public int divide(int dividend, int divis... | java | chosen |
[
{
"from": "human",
"value": "Test the default implementation of I_Device class."
},
{
"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... | java | chosen |
[
{
"from": "human",
"value": "Add java solution for 112. Path Sum\n\n112. Path Sum: https://leetcode.com/problems/path-sum/"
},
{
"from": "gpt",
"value": "package leetcode.path_sum;\n\nimport common.TreeNode;\n\npublic class Solution {\n\tpublic boolean hasPathSum(TreeNode root, int sum) {\n\t\ti... | java | chosen |
[
{
"from": "human",
"value": "Add listener to detect individual MSUs"
},
{
"from": "gpt",
"value": "/*\r\n * SUDA2: An implementation of the SUDA2 algorithm for Java\r\n * Copyright 2017 Fabian Prasser\r\n * \r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may no... | java | chosen |
[
{
"from": "human",
"value": "Add some tests for Utilities\n"
},
{
"from": "gpt",
"value": "/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 Norwegian Defence Research Establishment / NTNU\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this soft... | java | chosen |
[
{
"from": "human",
"value": "Add unit tests for org.rapidpm.frp.model.Single\nThese tests were written using Diffblue Cover.\n"
},
{
"from": "gpt",
"value": "package junit.org.rapidpm.frp.model;\n\nimport static org.junit.jupiter.api.Assertions.assertEquals;\nimport static org.junit.jupiter.api.... | java | chosen |
[
{
"from": "human",
"value": "Add plugin class implementing QuestionService"
},
{
"from": "gpt",
"value": "package com.github.boformer.answerme.impl;\n\nimport org.apache.commons.collections4.map.LRUMap;\nimport org.slf4j.Logger;\nimport org.spongepowered.api.Game;\nimport org.spongepowered.api.e... | java | chosen |
[
{
"from": "human",
"value": "Add test file for flattening sample\n\ncurrently it just tests the sample with flattening a form\nwhich is what the sample does by default, but we will want\nto test it with annotations and layers as well.\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2015 Datalo... | java | chosen |
[
{
"from": "human",
"value": "Add test for setdigest functions\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 *\n * htt... | java | chosen |
[
{
"from": "human",
"value": "Create ModuleConfiguration implementation for Metrics\n\nCreate ModuleConfiguration implementation for Metrics\n\n#236\n"
},
{
"from": "gpt",
"value": "package org.axonframework.metrics;\n\nimport org.axonframework.config.Configurer;\nimport org.axonframework.config.... | java | chosen |
[
{
"from": "human",
"value": "Add basic tests for the commands\n"
},
{
"from": "gpt",
"value": "package beaform.commands;\n\nimport static org.junit.Assert.assertEquals;\n\nimport java.util.concurrent.Callable;\n\nimport org.junit.After;\nimport org.junit.Before;\nimport org.junit.Test;\nimport o... | java | chosen |
[
{
"from": "human",
"value": "Add utility method for applying XSLT from WiscScan\n"
},
{
"from": "gpt",
"value": "//\n// XSLTTools.java\n//\n\n/*\nJava code for use with WiscScan.\n\nCopyright (c) 2008, UW-Madison LOCI\nAll rights reserved.\n\nRedistribution and use in source and binary forms, wi... | java | chosen |
[
{
"from": "human",
"value": "Add a config loader for the classpath.\n\nAllows loading a properties object from the classpath and expose the\nresult as a Map suitable for a Configuration factory.\n"
},
{
"from": "gpt",
"value": "package com.proofpoint.testing;\n\nimport static com.google.common.c... | java | chosen |
[
{
"from": "human",
"value": "Add simple test for Health\n"
},
{
"from": "gpt",
"value": "package fi.jgke.tagger.domain;\n\nimport java.util.UUID;\nimport org.junit.Test;\nimport static org.junit.Assert.*;\n\npublic class HealthTest {\n\n @Test\n public void testGetVersion() {\n Stri... | java | chosen |
[
{
"from": "human",
"value": "Add a tool that prints out an arbitrary block given its hash.\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2011 Google Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the Lice... | java | chosen |
[
{
"from": "human",
"value": "Copy List with Random Pointer\n"
},
{
"from": "gpt",
"value": "package leetcode131_140;\n\nimport java.util.HashMap;\nimport java.util.LinkedList;\nimport java.util.Map;\nimport java.util.Queue;\n\n/**A linked list is given such that each node contains an additional ... | java | chosen |
[
{
"from": "human",
"value": "Add an empty test file.\n\n-------------\nCreated by MOE: https://github.com/google/moe\nMOE_MIGRATED_REVID=255304474\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2019 The Closure Compiler Authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"Li... | java | chosen |
[
{
"from": "human",
"value": "Add some simple unit tests for indentation levels."
},
{
"from": "gpt",
"value": "package wyboogie;\n\nimport static org.junit.Assert.*;\n\nimport java.io.ByteArrayOutputStream;\nimport java.io.PrintWriter;\n\nimport org.junit.Test;\n\npublic class Wyil2BoogieTest {\... | java | chosen |
[
{
"from": "human",
"value": "Test case for new OnmsCriteria\n\n\n\n"
},
{
"from": "gpt",
"value": "package org.opennms.netmgt.dao;\n\nimport java.util.Collection;\n\nimport org.hibernate.criterion.Restrictions;\nimport org.opennms.netmgt.model.OnmsCriteria;\nimport org.opennms.netmgt.model.OnmsN... | java | chosen |
[
{
"from": "human",
"value": "Check a probe and verify that the result is available from the statuses holder\n"
},
{
"from": "gpt",
"value": "package se.arbetsformedlingen.venice.probe;\n\nimport org.junit.Test;\n\nimport static org.assertj.core.api.AssertionsForClassTypes.assertThat;\nimport sta... | java | chosen |
[
{
"from": "human",
"value": "Add support for sending private messages\n"
},
{
"from": "gpt",
"value": "package com.brewtab.irc;\n\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\n\nimport com.brewtab.irc.messages.IRCMessage;\nimport com.brewtab.irc.messages.IRCMessageType;\nimport com... | java | chosen |
[
{
"from": "human",
"value": "Add a test verifying naming of constants in com.github.seratch.jslack.api.audit.Actions\n"
},
{
"from": "gpt",
"value": "package test_locally.api.audit;\n\nimport com.github.seratch.jslack.api.audit.Actions;\nimport org.junit.Test;\n\nimport java.lang.reflect.Field;\... | java | chosen |
[
{
"from": "human",
"value": "Add package for SubRip format\n"
},
{
"from": "gpt",
"value": "/**\n * Package with the classes for reading and writing\n * <a href=\"https://en.wikipedia.org/wiki/SubRip#SubRip_text_file_format\">SubRip</a> file format.\n * @author Alex\n */\npackage com.alexrnl.sub... | java | chosen |
[
{
"from": "human",
"value": "Test for nonnull annotations on fields\n\n\ngit-svn-id: e7d6bde23f017c9ff4efd468d79d66def666766b@5358 eae3c2d3-9b19-0410-a86e-396b6ccb6ab3\n"
},
{
"from": "gpt",
"value": "package nullnessAnnotations;\n\nimport edu.umd.cs.findbugs.annotations.CheckForNull;\nimport ed... | java | chosen |
[
{
"from": "human",
"value": "[Java] Merge two sorted arrays with one containing space for the other.\n"
},
{
"from": "gpt",
"value": "package sorting;\n\nimport java.util.Comparator;\n\n/**\n * Merge two sorted arrays A of length M and B of length N into the same array\n * A. Assume that A has e... | java | chosen |
[
{
"from": "human",
"value": "Include basic test using the generic manager\n"
},
{
"from": "gpt",
"value": "/*\n * (C) Copyright 2022 Boni Garcia (https://bonigarcia.github.io/)\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compl... | java | chosen |
[
{
"from": "human",
"value": "TT: Add a filter that just writes bytes to the console.\n"
},
{
"from": "gpt",
"value": "package com.crankuptheamps.ttunnel.filters;\n\nimport com.crankuptheamps.ttunnel.ConnectionProcessor;\n\nimport java.util.Properties;\n\n/**\n * SpyFilter\n * Spy on a connection... | java | chosen |
[
{
"from": "human",
"value": "Add the utility class to get device id.\n"
},
{
"from": "gpt",
"value": "\r\npackage com.dove.common;\r\n\r\nimport android.content.Context;\r\n\r\npublic final class Device {\r\n private static String sDeviceId = null;\r\n\r\n public synchronized static String... | java | chosen |
[
{
"from": "human",
"value": "Add dashed line pyramid demo\n"
},
{
"from": "gpt",
"value": "package com.haxademic.demo.draw.shapes;\n\nimport com.haxademic.core.app.P;\nimport com.haxademic.core.app.PAppletHax;\nimport com.haxademic.core.draw.context.DrawUtil;\nimport com.haxademic.core.draw.shap... | java | chosen |
[
{
"from": "human",
"value": "Test Template added to project added folder for unit test cases\n"
},
{
"from": "gpt",
"value": "package edu.asu.se.model;\n\nimport static org.junit.Assert.*;\n\nimport org.junit.BeforeClass;\nimport org.junit.Test;\n\npublic class AddPatientTest {\n\n\t@BeforeClass... | java | chosen |
[
{
"from": "human",
"value": "Create interface that specifies which fields are searchable within a document.\n"
},
{
"from": "gpt",
"value": "package uk.ac.ebi.quickgo.common;\n\nimport java.util.stream.Stream;\n\n/**\n * Defines which fields are searchable for a given {@link QuickGODocument}.\n ... | java | chosen |
[
{
"from": "human",
"value": "Add test for the sitemap writer\n"
},
{
"from": "gpt",
"value": "package uk.ac.ebi.atlas.utils;\n\n\nimport autovalue.shaded.com.google.common.common.collect.Lists;\nimport com.google.common.collect.ImmutableMap;\nimport org.apache.commons.io.output.ByteArrayOutputSt... | java | chosen |
[
{
"from": "human",
"value": "Add simple Java test application target\n\nThis target burns CPU in a couple of methods, and makes some syscalls\nby opening a procfs file repeatedly. This is the target for our\nsmoke test that verifies we can successfully sample the process.\n"
},
{
"from": "gpt",
... | java | chosen |
[
{
"from": "human",
"value": "Add \"bump\" commands for fine position adjustment."
},
{
"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 ed... | java | chosen |
[
{
"from": "human",
"value": "Add java solution for 90. Subsets II\n\n90. Subsets II: https://leetcode.com/problems/subsets-ii/"
},
{
"from": "gpt",
"value": "package leetcode.subsets_ii;\n\nimport java.util.ArrayList;\nimport java.util.Arrays;\n\npublic class Solution {\n\tpublic void dfs(ArrayL... | java | chosen |
[
{
"from": "human",
"value": "Implement a custom serializer for VoidResult\n\nThe serializer respects the singleton property of the object,\navoiding creating an instance from the JSON stream when we\nalready have one available as a constant.\n\nSigned-off-by: Shawn O. Pearce <f3ea74d906fa9fe97c1fef6bad9cb87... | java | chosen |
[
{
"from": "human",
"value": "Add skeleton for auto shoot low\n"
},
{
"from": "gpt",
"value": "package org.robockets.stronghold.robot.autonomous;\n\nimport org.robockets.stronghold.robot.Direction;\nimport org.robockets.stronghold.robot.drivetrain.AssistedDrive;\nimport org.robockets.stronghold.r... | java | chosen |
[
{
"from": "human",
"value": "Test to check if properties set are properly propogated\n"
},
{
"from": "gpt",
"value": "package com.uber.hoodie.config;\n\nimport static org.junit.Assert.*;\n\nimport com.google.common.collect.Maps;\nimport com.uber.hoodie.config.HoodieWriteConfig.Builder;\nimport j... | java | chosen |
[
{
"from": "human",
"value": "Include test using Chrome Beta in Windows\n"
},
{
"from": "gpt",
"value": "/*\n * (C) Copyright 2022 Boni Garcia (https://bonigarcia.github.io/)\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in complian... | java | chosen |
[
{
"from": "human",
"value": "Test for deep copying projects\n"
},
{
"from": "gpt",
"value": "/*\n * This file is part of COMPASS. It is subject to the license terms in\n * the LICENSE file found in the top-level directory of this distribution.\n * (Also available at http://www.apache.org/license... | java | chosen |
[
{
"from": "human",
"value": "Add test that can not be tested in XQsuite.\n"
},
{
"from": "gpt",
"value": "/*\n * eXist-db Open Source Native XML Database\n * Copyright (C) 2001 The eXist-db Authors\n *\n * info@exist-db.org\n * http://www.exist-db.org\n *\n * This library is free software; you c... | java | chosen |
[
{
"from": "human",
"value": "Add test for nested CSVs\n"
},
{
"from": "gpt",
"value": "package org.sjj.csvstream;\n\nimport static org.junit.Assert.*;\nimport org.junit.Test;\n\npublic class QuotingTest {\n @Test\n public void testEncodeDecodeNestedQuotes() {\n String[] inner_data = { \"3.1... | java | chosen |
[
{
"from": "human",
"value": "Add the oacs.issues test package for adding tests specific to an issue (and its fix, if any).\n\n\ngit-svn-id: 5d8fe9a566db79829532a6a4175371ceef757e7a@608640 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "gpt",
"value": "/*\n * Licensed to the Apache Software... | java | chosen |
[
{
"from": "human",
"value": "[ONOS-3250] Add the junit test code of FixedIp\n\nChange-Id: Ic8a6ff9d81b0bfca667bec49c11399e6cd3838db\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2015 Open Networking Laboratory\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you ... | java | chosen |
[
{
"from": "human",
"value": "Add index that can be used to load and verify assert conditions about index\n"
},
{
"from": "gpt",
"value": "package arez.downstream;\n\nimport java.io.IOException;\nimport java.nio.file.Path;\nimport java.text.ParseException;\nimport java.util.ArrayList;\nimport jav... | java | chosen |
[
{
"from": "human",
"value": "Add java DTO for jaarverbruik\n"
},
{
"from": "gpt",
"value": "package main.java.meterstanden.model;\nimport java.io.Serializable;\n\nimport javax.persistence.*;\n\n@Entity @IdClass(Jaarverbruik.class)\n@Table(name = \"JAARVERBRUIK\", schema = \"APP\")\npublic class ... | java | chosen |
[
{
"from": "human",
"value": "Add a factory method for stars!\n"
},
{
"from": "gpt",
"value": "package starpunk;\n\nimport com.artemis.Entity;\nimport com.artemis.World;\nimport com.badlogic.gdx.math.MathUtils;\nimport starpunk.components.Position;\nimport starpunk.components.Sprite;\n\npublic fi... | java | chosen |
[
{
"from": "human",
"value": "Divide and Conquer Approach for Max Subarray Problem\n"
},
{
"from": "gpt",
"value": "package MaximumSubarray;\n\n/**\n * User: Danyang\n * Date: 1/22/2015\n * Time: 20:49\n *\n * Find the contiguous subarray within an array (containing at least one number) which has... | java | chosen |
[
{
"from": "human",
"value": "Allow multiple independent random walks for different indices of the same parameter.\n\ngit-svn-id: 67bc77c75b8364e4e9cdff0eb6560f5818674cd8@2790 ca793f91-a31e-0410-b540-2769d408b6a1\n"
},
{
"from": "gpt",
"value": "package dr.inference.operators;\r\n\r\nimport dr.in... | java | chosen |
[
{
"from": "human",
"value": "Rename main class to match project name\n\ngit-svn-id: 326906f25eac0196cf968068262a06313b1d5d7a@5 9a24f7ba-d458-11dd-86d7-074df07e0730\n"
},
{
"from": "gpt",
"value": "package com.googlecode.gentyref;\nimport java.lang.reflect.Field;\nimport java.lang.reflect.Method;... | java | chosen |
[
{
"from": "human",
"value": "Add summoners rift inhibitors to the api\n"
},
{
"from": "gpt",
"value": "package no.stelar7.api.l4j8.basic.constants.types;\n\nimport javafx.util.Pair;\n\nimport java.util.*;\n\npublic final class InhibitorLocationType\n{\n private InhibitorLocationType()\n {\... | java | chosen |
[
{
"from": "human",
"value": "Create a skeleton for problem 145\n"
},
{
"from": "gpt",
"value": "package leetcode;\n\nimport java.util.ArrayList;\nimport java.util.HashSet;\nimport java.util.List;\nimport java.util.Set;\nimport java.util.Stack;\n\n/**\n * https://leetcode.com/problems/binary-tree... | java | chosen |
[
{
"from": "human",
"value": "Add structure for bugs sync command\n"
},
{
"from": "gpt",
"value": "package de.unistuttgart.iste.rss.bugminer.cli;\n\nimport de.unistuttgart.iste.rss.bugminer.computing.SshConnector;\nimport de.unistuttgart.iste.rss.bugminer.model.entities.Project;\nimport de.unistu... | java | chosen |
[
{
"from": "human",
"value": "Add an IT for Persistit storage.\n"
},
{
"from": "gpt",
"value": "/**\n * Copyright (C) 2011 Akiban Technologies Inc.\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License, version 3,\... | java | chosen |
[
{
"from": "human",
"value": "Add basic climber with logging\n"
},
{
"from": "gpt",
"value": "package org.redalert1741.steamworks;\r\n\r\nimport org.redalert1741.robotBase.logging.DataLogger;\r\nimport org.redalert1741.robotBase.logging.Loggable;\r\n\r\nimport edu.wpi.first.wpilibj.Spark;\r\n\r\n... | java | chosen |
[
{
"from": "human",
"value": "Add the file for creating the ready made topic model training app.\n"
},
{
"from": "gpt",
"value": "\npackage gate.plugin.learningframework.pipelines;\n\nimport gate.creole.PackagedController;\nimport gate.creole.metadata.AutoInstance;\nimport gate.creole.metadata.Au... | java | chosen |
[
{
"from": "human",
"value": "Add the shows/note DELETE request\n"
},
{
"from": "gpt",
"value": "package com.alexrnl.jbetaseries.request.shows;\n\nimport com.alexrnl.jbetaseries.request.APIAddresses;\nimport com.alexrnl.jbetaseries.request.Request;\nimport com.alexrnl.jbetaseries.request.Verb;\ni... | java | chosen |
[
{
"from": "human",
"value": "Create a skeleton for problem 341\n"
},
{
"from": "gpt",
"value": "package leetcode;\n\nimport java.util.Iterator;\nimport java.util.List;\n\n/**\n * @author fredy\n */\npublic class Problem341 {\n public interface NestedInteger {\n // @return true if this ... | java | chosen |
[
{
"from": "human",
"value": "Add sample temperature sensor application."
},
{
"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 */\npac... | java | chosen |
[
{
"from": "human",
"value": "Implement provider for singleton scope\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2015 Michael Rozumyanskiy\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 m... | java | chosen |
[
{
"from": "human",
"value": "Test for GME connection. Still not working\n\n\nSVN-Revision: 9\n"
},
{
"from": "gpt",
"value": "package gov.nih.nci.objectCart.jUnit.applicationService.impl;\nimport gov.nih.nci.objectCart.util.xml.ValidationErrorHandler;\nimport gov.nih.nci.objectCart.util.xml.Val... | java | chosen |
[
{
"from": "human",
"value": "Add property editor for identifiable enums\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2012 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 ... | java | chosen |
[
{
"from": "human",
"value": "Create : 198 House Robber\n"
},
{
"from": "gpt",
"value": "public class Solution {\n\n public int rob(int[] nums) {\n\n int current = 0;\n int last = 0;\n\n for (int i = 0; i < nums.length; i++) {\n\n int tmp = current;\n ... | java | chosen |
[
{
"from": "human",
"value": "Add a Rule to make writing tests easy\n"
},
{
"from": "gpt",
"value": "package org.jdbi.v3.pg;\n\nimport com.opentable.db.postgres.embedded.EmbeddedPostgreSQLRule;\n\nimport org.jdbi.v3.DBI;\nimport org.jdbi.v3.Handle;\nimport org.junit.rules.TestRule;\nimport org.ju... | java | chosen |
[
{
"from": "human",
"value": "Add a program that just loads a wallet, runs through the block chain, and then saves/prints out the resulting wallet at the end.\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2011 Google Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\"... | java | chosen |
[
{
"from": "human",
"value": "METAL-18: Test valid vs. invalid length reference handling\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2013-2016 Netherlands Forensic Institute\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in com... | java | chosen |
[
{
"from": "human",
"value": "Add static utility methods for filters\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2011 Greplin, Inc. All Rights Reserved.\n */\n\npackage com.greplin.lucene.query;\n\nimport com.sun.istack.internal.Nullable;\nimport org.apache.lucene.search.BooleanClause;\nimp... | java | chosen |
[
{
"from": "human",
"value": "Add controller for courses of a subject in the current semester\n\n"
},
{
"from": "gpt",
"value": "package at.ac.tuwien.inso.controller.student;\n\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\nimport org.springframework.beans.factory.annotation.Autowire... | java | chosen |
[
{
"from": "human",
"value": "Add amazing lookup table class"
},
{
"from": "gpt",
"value": "package org.usfirst.frc2832.Robot_2016.vision;\r\n\r\nimport java.util.NavigableMap;\r\nimport java.util.TreeMap;\r\n\r\npublic class InterpolatedLookupTable {\r\n\tprivate NavigableMap<Double, Double> map... | java | chosen |
[
{
"from": "human",
"value": "[hotfix][core] Add adapter between Sink.InitContext and SerializationSchema.InitializationContext\n"
},
{
"from": "gpt",
"value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distr... | java | chosen |
[
{
"from": "human",
"value": "KYLO-1188: Initialize ModeShape indexes during 0.8.4 upgrade.\n"
},
{
"from": "gpt",
"value": "package com.thinkbiganalytics.metadata.upgrade.v084;\n\n/*-\n * #%L\n * kylo-upgrade-service\n * %%\n * Copyright (C) 2017 ThinkBig Analytics\n * %%\n * Licensed under the ... | java | chosen |
[
{
"from": "human",
"value": "Add a resource files test.\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2019, TeamDev. 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 and the following\n... | java | chosen |
[
{
"from": "human",
"value": "Add unit test for deliver_sm with optional parameters.\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 Lice... | java | chosen |
[
{
"from": "human",
"value": "Add triple-reassembly testcase. Unfortunately it won't pass at the moment, because the 'repeatableterms' logic isn't completely consistent.\n"
},
{
"from": "gpt",
"value": "package whelk.export.servlet;\n\nimport org.junit.Assert;\nimport org.junit.Test;\nimport whel... | java | chosen |
[
{
"from": "human",
"value": "Test map overrides on Entity.\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2012 Splunk, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\"): you may\n * not use this file except in compliance with the License. You may obtain\n * a copy ... | java | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.