conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "human",
"value": "Add simple wrapper for streaming results\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2019 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtai... | java | chosen |
[
{
"from": "human",
"value": "Add a class to iterate through collections in order of priority\n\nSigned-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>\n\nThis used to be revision r4524.\n"
},
{
"from": "gpt",
"value": "//\n// SortByPriority.java\n//\n\n/*\nImageJ software for multidimen... | java | chosen |
[
{
"from": "human",
"value": "Add switch to single shift when first column / last row almost deflated"
},
{
"from": "gpt",
"value": "/*\r\n * The MIT License\r\n *\r\n * Copyright 2016 Y.K. Chan.\r\n *\r\n * Permission is hereby granted, free of charge, to any person obtaining a copy\r\n * of thi... | java | chosen |
[
{
"from": "human",
"value": "Introduce a Substitution to fix PostgreSQL's driver handling of XML default features\n"
},
{
"from": "gpt",
"value": "package io.quarkus.jdbc.postgresql.runtime.graal;\n\nimport javax.xml.XMLConstants;\n\nimport com.oracle.svm.core.annotate.Alias;\nimport com.oracle.... | java | chosen |
[
{
"from": "human",
"value": "Add beginnings of a GUI using Swing\n"
},
{
"from": "gpt",
"value": "package name.ambidextrous.compendium.ui;\n\nimport java.awt.event.ActionEvent;\nimport java.awt.event.ActionListener;\n\nimport javax.swing.JButton;\nimport javax.swing.JFrame;\n\npublic class UserI... | java | chosen |
[
{
"from": "human",
"value": "Add a dummy test to check that assertions are on in Junit.\n"
},
{
"from": "gpt",
"value": "/* This file is part of VoltDB.\n * Copyright (C) 2008-2012 VoltDB Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining\n * a copy of this softwa... | java | chosen |
[
{
"from": "human",
"value": "Add adapter class for event listener\n"
},
{
"from": "gpt",
"value": "// MIT License\n//\n// Copyright (c) 2016 Michel Kraemer\n//\n// Permission is hereby granted, free of charge, to any person obtaining\n// a copy of this software and associated documentation files... | java | chosen |
[
{
"from": "human",
"value": "Create base data structure to problem 22\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 Lice... | java | chosen |
[
{
"from": "human",
"value": "Add a global storage for data sources\n"
},
{
"from": "gpt",
"value": "package cz.cuni.mff.d3s.spl.core.data;\n\nimport java.util.HashMap;\nimport java.util.Map;\nimport java.util.NoSuchElementException;\n\n\npublic class DataSourceRegister {\n\n\tprivate static Map<... | java | chosen |
[
{
"from": "human",
"value": "Add gui util for drawing default container borders\n"
},
{
"from": "gpt",
"value": "package info.u_team.u_team_core.util;\n\nimport net.minecraft.client.gui.AbstractGui;\n\n/**\n * Some utility methods for guis\n * @author HyCraftHD\n *\n */\npublic class GuiUtil {\n... | java | chosen |
[
{
"from": "human",
"value": "Add Key make helper that is typed.\n"
},
{
"from": "gpt",
"value": "package water;\n\npublic class KeyUtils {\n public static <X extends Keyed> Key<X> make(String s) {\n Key k = water.Key.make(s);\n return (Key<X>) k;\n }\n}\n"
}
] | java | chosen |
[
{
"from": "human",
"value": "Make new dialog for displaying component input files...\n\n…generated by the parameters in the client. Has Save & Cancel buttons.\nCurrently, the Cancel button works.\n"
},
{
"from": "gpt",
"value": "package edu.colorado.csdms.wmt.client.ui;\n\nimport com.google.gwt.... | java | chosen |
[
{
"from": "human",
"value": "Add class used for profiling\n"
},
{
"from": "gpt",
"value": "package org.commonmark;\n\nimport org.commonmark.parser.Parser;\nimport org.commonmark.renderer.html.HtmlRenderer;\nimport org.commonmark.testutil.TestResources;\n\nimport java.util.Collections;\nimport ja... | java | chosen |
[
{
"from": "human",
"value": "Load keywords.propertis using iso8859-1 and converts each key to utf-8 when reading\n"
},
{
"from": "gpt",
"value": "package com.codificando.jbehavei18n;\n\nimport java.io.UnsupportedEncodingException;\nimport java.util.ResourceBundle;\n\npublic class I18nKeywords {\... | java | chosen |
[
{
"from": "human",
"value": "Add model class for review table\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2015 Ryan Gilera.\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 co... | java | chosen |
[
{
"from": "human",
"value": "Add a simple Shamir Secret-Sharing Engine\n\n* without any from of error-checking\n* should be ITS\n"
},
{
"from": "gpt",
"value": "package at.archistar.crypto;\n\nimport at.archistar.crypto.data.Share;\nimport at.archistar.crypto.decode.DecoderFactory;\nimport at.ar... | java | chosen |
[
{
"from": "human",
"value": "Add tests for InMemoryPasswords class\n\nThis flexes some basic branching cases of the class without requiring\ninstantiation of the main Executor or directly providing the\nHttpRequest.\n"
},
{
"from": "gpt",
"value": "package org.webbitserver.handler.authentication... | java | chosen |
[
{
"from": "human",
"value": "Add demo for javax.security.auth.login.Configuration leak"
},
{
"from": "gpt",
"value": "package org.apache.markt.leaks.security;\n\nimport org.apache.markt.leaks.LeakBase;\n\n/**\n * Java 5\n * - leaks\n * Java 6\n * - leaks\n * Java 7\n * - update <=45 - leaks... | java | chosen |
[
{
"from": "human",
"value": "Add folder for Java classes and make value class to hold user authentication info\n"
},
{
"from": "gpt",
"value": "package com.google.sps.data;\n\n/** An object to hold authentication information*/\npublic final class AuthInfo {\n\n private final boolean isLoggedI... | java | chosen |
[
{
"from": "human",
"value": "[JENKINS-58964] Test git is considered a \"Modern SCM\"\n\nTest that the git plugin provides a modern SCM implementation.\n\nAPI extensions added in workflow-cps-global-lib 2.14 are used in git\nplugin 3.11.0 and later and are required for it to be recognized as a\nmodern SCM im... | java | chosen |
[
{
"from": "human",
"value": "Solve homework2-problem4: Smallest of 3 Numbers\n"
},
{
"from": "gpt",
"value": "import java.lang.Math;\nimport java.util.Scanner;\n\npublic class SmallestNumber {\n\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n ... | java | chosen |
[
{
"from": "human",
"value": "Add MyListenerService.java from Udacity sample code.\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (C) 2015 The Android Open Source Project\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in complianc... | java | chosen |
[
{
"from": "human",
"value": "Allow startup without network access\n\n\ngit-svn-id: ba1d8d5a2a2c535e023d6080c1e5c29aa0f5364e@896 3a8262b2-faa5-11dc-8610-ff947880b6b2\n"
},
{
"from": "gpt",
"value": "package org.directwebremoting.util;\n\nimport java.io.IOException;\nimport java.io.StringReader;\n... | java | chosen |
[
{
"from": "human",
"value": "Add common log output util class\n"
},
{
"from": "gpt",
"value": "package com.jun.common.util;\n\nimport android.util.Log;\n\nimport com.orhanobut.logger.Logger;\n\n/**\n * 日志管理工具\n * Created by Jun on 2016/2/25.\n */\npublic class LogUtil {\n\n public static fina... | java | chosen |
[
{
"from": "human",
"value": "Add new task added event"
},
{
"from": "gpt",
"value": "package tars.commons.events.ui;\n\nimport tars.commons.events.BaseEvent;\n\n/**\n * Indicates a task has been added\n */\npublic class TaskAddedEvent extends BaseEvent {\n\n public final int targetIndex;\n\n ... | java | chosen |
[
{
"from": "human",
"value": "Add the --showUI console argument\n\nThis shows the UI immediately. It is useful if you want to have some\narguments get processed after the UI appears, instead of beforehand.\n"
},
{
"from": "gpt",
"value": "/*\n * #%L\n * SciJava Common shared library for SciJava s... | java | chosen |
[
{
"from": "human",
"value": "Add unit test for EditLogOperation. For now adding just for CREATE_DEPENDENCY.\n"
},
{
"from": "gpt",
"value": "package tachyon.master;\n\nimport com.fasterxml.jackson.core.type.TypeReference;\nimport com.fasterxml.jackson.databind.ObjectMapper;\n\nimport org.junit.T... | java | chosen |
[
{
"from": "human",
"value": "Define interface for \"spy\" that can be used to receive notifications on different events within an Arez system\n"
},
{
"from": "gpt",
"value": "package org.realityforge.arez;\n\nimport javax.annotation.Nonnull;\n\n/**\n * Interface for receiving spy events.\n */\n@... | java | chosen |
[
{
"from": "human",
"value": "Add solution for 287. Find the Duplicate Number\n\n287. Find the Duplicate Number: https://leetcode.com/problems/find-the-duplicate-number/\n"
},
{
"from": "gpt",
"value": "package leetcode.find_the_duplicate_number;\n\npublic class Solution {\n public int findDup... | java | chosen |
[
{
"from": "human",
"value": "Check for incorrect spelling of UniprotKB/SWISSPROT in gene descriptions.\n"
},
{
"from": "gpt",
"value": "/*\n Copyright (C) 2003 EBI, GRL\n \n This library is free software; you can redistribute it and/or\n modify it under the terms of the GNU Lesser General Public... | java | chosen |
[
{
"from": "human",
"value": "Add verticies to Cells, rewrite connectCells method to use shared verticies\n"
},
{
"from": "gpt",
"value": "/**\n * This class is the graph class for each cell having eight neighbors, which\n * includes each adjacent neighbor and each diagonally adjacent neighbor.\n... | java | chosen |
[
{
"from": "human",
"value": "Add binary in order traversal iteratively\n"
},
{
"from": "gpt",
"value": "/**\n * Given a binary tree, return the inorder traversal of its nodes' values.\n */\n\n/** Iterative version **/\npublic List<Integer> inorderTraversal(TreeNode root) {\n Stack<TreeNode> sta... | java | chosen |
[
{
"from": "human",
"value": "Add java solution for 95. Unique Binary Search Trees II\n\n95. Unique Binary Search Trees II: https://leetcode.com/problems/unique-binary-search-trees-ii/"
},
{
"from": "gpt",
"value": "package leetcode.unique_binary_search_trees_ii;\n\nimport java.util.ArrayList;\n\... | java | chosen |
[
{
"from": "human",
"value": "Add basic test for CLI.\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (c) 2014 Santiago M. Mola <santi@mola.io>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a\n * copy of this software and associated documentation files (the \... | java | chosen |
[
{
"from": "human",
"value": "Add test case for the Object class\n"
},
{
"from": "gpt",
"value": "package nl.github.martijn9612.fishy;\n\nimport java.awt.Dimension;\nimport java.awt.Rectangle;\n\nimport org.junit.Test;\n\nimport junit.framework.Assert;\n\npublic class TestObject {\n\t\n\tpublic s... | java | chosen |
[
{
"from": "human",
"value": "Add an exception type for bad configuration values\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2016 The Board of Trustees of The Leland Stanford Junior University.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use thi... | java | chosen |
[
{
"from": "human",
"value": "Add some tests to problem 62\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 unit tests for connected element parsing"
},
{
"from": "gpt",
"value": "package org.monospark.spongematchers.parser.element;\n\nimport static org.hamcrest.CoreMatchers.equalTo;\nimport static org.junit.Assert.assertThat;\n\nimport org.junit.Test;\nimport org.mono... | java | chosen |
[
{
"from": "human",
"value": "Add module to remove operator status on join.\n"
},
{
"from": "gpt",
"value": "package com.skcraft.plume.module;\n\nimport com.mojang.authlib.GameProfile;\nimport com.skcraft.plume.common.util.config.Config;\nimport com.skcraft.plume.common.util.config.InjectConfig;\... | java | chosen |
[
{
"from": "human",
"value": "Solve No.2558 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 obtain... | java | chosen |
[
{
"from": "human",
"value": "Add support for custom filter chain and generating the 'XSRF-TOKEN' for Angular\n"
},
{
"from": "gpt",
"value": "package com.application;\n\n\nimport org.springframework.security.web.csrf.CsrfToken;\nimport org.springframework.web.filter.OncePerRequestFilter;\nimport... | java | chosen |
[
{
"from": "human",
"value": "Add compression tests in Java\n"
},
{
"from": "gpt",
"value": "package xerial.larray.japi;\n\nimport org.junit.Test;\nimport org.xerial.snappy.Snappy;\nimport xerial.larray.LByteArray;\nimport xerial.larray.LIntArray;\nimport xerial.larray.MMapMode;\nimport xerial.la... | java | chosen |
[
{
"from": "human",
"value": "[ADD] Add Java solution of 1-1\n"
},
{
"from": "gpt",
"value": "package Part1;\n\n/**\n * Created by matao on 10/15/16.\n */\npublic class Q1 {\n public static void main(String[] args) {\n System.out.println(\"Hello World!\");\n }\n}\n"
}
] | java | chosen |
[
{
"from": "human",
"value": "Add class for encapsulating summary stat snapshots\n"
},
{
"from": "gpt",
"value": "package io.sigpipe.sing.stat;\n\npublic class SummaryStatistics {\n\n private double min;\n private double max;\n private double mean;\n private double std;\n private d... | java | chosen |
[
{
"from": "human",
"value": "Define a placeholder for an algorithm\n"
},
{
"from": "gpt",
"value": "/*\n * Zorbage: an algebraic data hierarchy for use in numeric processing.\n *\n * Copyright (C) 2016-2019 Barry DeZonia\n * \n * Redistribution and use in source and binary forms, with or without... | java | chosen |
[
{
"from": "human",
"value": "NXP-14010: Enable to configure the ES index name, the type name must be doc\n"
},
{
"from": "gpt",
"value": "/*\n * (C) Copyright 2014 Nuxeo SA (http://nuxeo.com/) and contributors.\n *\n * All rights reserved. This program and the accompanying materials\n * are made... | java | chosen |
[
{
"from": "human",
"value": "Add tests to verify method argument validation\n"
},
{
"from": "gpt",
"value": "package org.jboss.forge.furnace;\n\nimport java.io.File;\n\nimport org.jboss.forge.furnace.impl.FurnaceImpl;\nimport org.jboss.forge.furnace.repositories.AddonRepositoryMode;\nimport org.... | java | chosen |
[
{
"from": "human",
"value": "Check if a binary tree is complete or not.\n"
},
{
"from": "gpt",
"value": "package com.sunny.grokkingalgorithms.fasttrack.week1;\n\nimport com.sunny.grokkingalgorithms.ctci.c4.util.BinaryTreeNode;\nimport com.sunny.grokkingalgorithms.ctci.c4.util.TreeUtils;\n\n/**\n... | java | chosen |
[
{
"from": "human",
"value": "Add class to combine an OWL ontology and a Bayesian network"
},
{
"from": "gpt",
"value": "package de.tudresden.inf.lat.born.owlapi.processor;\n\nimport org.semanticweb.owlapi.model.OWLOntology;\n\n/**\n * An object of this class is a pair OWL ontology - Bayesian net... | java | chosen |
[
{
"from": "human",
"value": "Add abstract base for testing `Subject`s\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 t... | java | chosen |
[
{
"from": "human",
"value": "Add package javadoc for clearable package\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2016-2019 Talsma ICT\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": "Create the SQL DAO for the Dummy entity\n"
},
{
"from": "gpt",
"value": "package com.alexrnl.commons.database.sql;\n\nimport java.sql.Connection;\nimport java.sql.PreparedStatement;\nimport java.sql.ResultSet;\nimport java.sql.SQLException;\nimport java.util.Map;\n\n... | java | chosen |
[
{
"from": "human",
"value": "Add alternate shell main program\n"
},
{
"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 */\npackage com... | java | chosen |
[
{
"from": "human",
"value": "Add event hub (no code yet)\n"
},
{
"from": "gpt",
"value": "package org.aanguita.jacuzzi.event.hub;\n\n/**\n * This class provides named event hubs. An event hub allows publishing messages with some tags, while other classes can subscribe from specific\n * tags and ... | java | chosen |
[
{
"from": "human",
"value": "Add second, less elegant solution for assignment 1, problem 4\n"
},
{
"from": "gpt",
"value": "/*\n * File: MidpointFindingKarel.java\n * -------------------------------\n * When you finish writing it, the MidpointFindingKarel class should\n * leave a beeper on the c... | java | chosen |
[
{
"from": "human",
"value": "Add unit tests for model class constructors.\n"
},
{
"from": "gpt",
"value": "\n/*\n * Copyright (C) 2015 Archie L. Cobbs. All rights reserved.\n */\n\npackage org.jsimpledb;\n\nimport org.jsimpledb.annotation.JSimpleClass;\nimport org.jsimpledb.core.ObjId;\nimport o... | java | chosen |
[
{
"from": "human",
"value": "Add tests for Path-related helpers\n"
},
{
"from": "gpt",
"value": "/*\n * Bach - Java Shell Builder\n * Copyright (C) 2019 Christian Stein\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance wi... | java | chosen |
[
{
"from": "human",
"value": "Add gradient edge demo for projection mapping utility"
},
{
"from": "gpt",
"value": "package com.haxademic.demo.draw.mapping;\n\nimport com.haxademic.core.app.P;\nimport com.haxademic.core.app.PAppletHax;\nimport com.haxademic.core.constants.AppSettings;\nimport com.... | java | chosen |
[
{
"from": "human",
"value": "Add a test into the package\njp.ac.shibaura_it.se.tslab.aaextractor.predicate.attributes"
},
{
"from": "gpt",
"value": "package jp.ac.shibaura_it.se.tslab.aaextractor.predicate.attributes;\n\nimport static org.junit.Assert.*;\nimport static org.hamcrest.core.Is.*;\n\... | java | chosen |
[
{
"from": "human",
"value": "Revert \"removed some unused code, added check for server version\"\n\nThis reverts commit 1b36778e9e64700c7f6acb66c8002846e070c328.\n"
},
{
"from": "gpt",
"value": "/**\n * \n */\npackage com.microsoft.sqlserver.jdbc.datatypes;\n\nimport java.util.Arrays;\n\nimport ... | java | chosen |
[
{
"from": "system",
"value": "Delete performance benchmarks, they are now hosted as a separate github repository.\n"
},
{
"from": "human",
"value": "package com.zaxxer.hikari;\n\nimport java.sql.Statement;\nimport java.util.ArrayList;\n\nimport org.junit.Assert;\nimport org.junit.Test;\n\nimport... | java | chosen |
[
{
"from": "human",
"value": "Add test case for ForkJoin memory leak"
},
{
"from": "gpt",
"value": "package org.apache.markt.leaks.concurrent;\n\nimport java.util.concurrent.ForkJoinPool;\nimport java.util.concurrent.RecursiveAction;\n\nimport org.apache.markt.leaks.LeakBase;\n\n/**\n * Java 5 - ... | java | chosen |
[
{
"from": "human",
"value": "Add default maven directory in bootstrap-or module\n"
},
{
"from": "gpt",
"value": "package woko.facets.builtin.developer;\n\n\nimport net.sourceforge.jfacets.IFacetDescriptorManager;\nimport net.sourceforge.stripes.action.ActionBeanContext;\nimport net.sourceforge.s... | java | chosen |
[
{
"from": "human",
"value": "Add escaping test for html renderer servlet\n\ngit-svn-id: 6eed74fe9a15c8da84b9a8d7f2960c0406113ece@1800667 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "gpt",
"value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor... | java | chosen |
[
{
"from": "human",
"value": "Add interface for database interaction.\n"
},
{
"from": "gpt",
"value": "package eic.beike.projectx.projectXServer;\n\nimport eic.beike.projectx.util.ScoreEntry;\n\n/**\n * Used to interact with the database, these are long running network operations and should not b... | java | chosen |
[
{
"from": "human",
"value": "Solve No.1110 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 obtain... | java | chosen |
[
{
"from": "human",
"value": "Solve No.2908 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 obtain... | java | chosen |
[
{
"from": "human",
"value": "Add an I/O plugin for LUTs\n\nThe implementation is simple because it leans on the LUTService.\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... | java | chosen |
[
{
"from": "human",
"value": "Add model to capture form data from home page\n"
},
{
"from": "gpt",
"value": "package com.naba.url.shortner;\n\npublic class UrlShortner {\n private String originalUrl;\n\n public String getOriginalUrl() {\n return originalUrl;\n }\n\n public void... | java | chosen |
[
{
"from": "human",
"value": "Add test case for `java.util.Properties`\n"
},
{
"from": "gpt",
"value": "package test.base;\n\nimport static org.junit.jupiter.api.Assertions.assertEquals;\n\nimport java.io.StringReader;\nimport java.util.Properties;\nimport org.junit.jupiter.api.Test;\n\nclass Pro... | java | chosen |
[
{
"from": "human",
"value": "Add necessary component for bed design texture pack support.\n"
},
{
"from": "gpt",
"value": "package carpentersblocks.util;\n\nimport java.io.ByteArrayInputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.util.zip.ZipEntry;\nimport java... | java | chosen |
[
{
"from": "human",
"value": "Move the encode*() and decode*() methods in SerializingTranscoder.java\ninto a new class and make them static. This will allow other transcoders\nto use them.\n"
},
{
"from": "gpt",
"value": "// Copyright (c) 2006 Dustin Sallings <dustin@spy.net>\n\npackage net.spy... | java | chosen |
[
{
"from": "human",
"value": "Define marked interface for enrichments\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 th... | java | chosen |
[
{
"from": "human",
"value": "Implement signature parser that creates ParameterizedType\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... | java | chosen |
[
{
"from": "human",
"value": "Test when in non-desktop mode, that the access token is not set\n"
},
{
"from": "gpt",
"value": "package org.corpus_tools.annis.gui;\n\nimport static org.junit.Assert.assertNotNull;\nimport static org.junit.Assert.assertNull;\n\nimport com.github.mvysny.kaributesting... | java | chosen |
[
{
"from": "human",
"value": "Add constants class to carry important constants.\n"
},
{
"from": "gpt",
"value": "package eic.beike.projectx.util;\n\n/**\n * Created by alex on 9/22/15.\n */\npublic class Constants {\n public static final String BASE_URL = \"https://ece01.ericsson.net:4443/ecit... | java | chosen |
[
{
"from": "human",
"value": "Create : 463 Island Perimeter\n"
},
{
"from": "gpt",
"value": "public class Solution {\n\n public int islandPerimeter(int[][] grid) {\n\n int perimeter = 0;\n\n for (int i = 0; i < grid.length; i++) {\n\n for (int j = 0; j < grid[i].length... | java | chosen |
[
{
"from": "human",
"value": "Add class for generating service check configuration query\n\n\nFormer-commit-id: 34e6c9d1b1c892f8e5d0e742618c3d6a6a893ca3"
},
{
"from": "gpt",
"value": "package com.boundary.sdk.event.service.db;\n\nimport java.util.HashMap;\nimport java.util.List;\nimport java.util... | java | chosen |
[
{
"from": "human",
"value": "[ASL] Add testsuite for the *algorithms.ilp.tests plugin\n"
},
{
"from": "gpt",
"value": "package org.muml.psm.allocation.algorithm.ilp.tests;\n\nimport org.junit.runner.RunWith;\nimport org.junit.runners.Suite;\nimport org.junit.runners.Suite.SuiteClasses;\n\n@RunWi... | java | chosen |
[
{
"from": "human",
"value": "Add an example for \"git update-index --assume-changed\"\n"
},
{
"from": "gpt",
"value": "package org.dstadler.jgit.unfinished;\n\nimport java.io.File;\nimport java.io.IOException;\nimport java.util.Date;\nimport java.util.Set;\n\nimport org.apache.commons.io.FileUti... | java | chosen |
[
{
"from": "human",
"value": "Create sample data for testing\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 th... | java | chosen |
[
{
"from": "human",
"value": "Add a Hello World sample\n\nThis sample is essentially a super simplified version\nof the preexisting White Fang sample. Instead of adding\npictures and formatted text to multiple pages it adds the\nclassic \"Hello World\" text with no special \nfont/formatting/styling/etc. "
... | java | chosen |
[
{
"from": "human",
"value": "Add tests for Translation servlet\n"
},
{
"from": "gpt",
"value": "package com.google.sps.servlets;\n\nimport org.junit.Assert;\nimport org.junit.Before;\nimport org.junit.Test;\nimport org.junit.After;\nimport static org.mockito.Mockito.*;\n\nimport java.io.PrintWri... | java | chosen |
[
{
"from": "human",
"value": "Return object for the widget creator calls."
},
{
"from": "gpt",
"value": "package uk.ac.edukapp.renderer;\n\nimport java.io.File;\nimport java.util.ArrayList;\nimport java.util.List;\n\nimport uk.ac.edukapp.model.Widgetprofile;\n\npublic class UploadResults {\n\t\n\... | java | chosen |
[
{
"from": "human",
"value": "Add load harness for profiling.\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": "Move from API, remove localization from API\n"
},
{
"from": "gpt",
"value": "/* This file is part of PV-StarAPI for Bukkit, licensed under the MIT License (MIT).\n *\n * Copyright (c) JCThePants (www.jcwhatever.com)\n *\n * Permission is hereby granted, free of charg... | java | chosen |
[
{
"from": "human",
"value": "Add open CORS filter - let anyone in!\n"
},
{
"from": "gpt",
"value": "package com.redhat.ipaas.rest;\n\nimport org.jboss.resteasy.plugins.interceptors.CorsFilter;\n\nimport javax.ws.rs.core.Feature;\nimport javax.ws.rs.core.FeatureContext;\nimport javax.ws.rs.ext.Pr... | java | chosen |
[
{
"from": "human",
"value": "Add settings for the books analysis\n"
},
{
"from": "gpt",
"value": "package ch.hearc.p3.recsys.settings;\n\nimport java.util.HashMap;\nimport java.util.Map;\n\nimport ch.hearc.p3.recsys.bookanalysis.TypeData;\n\npublic class SettingsBookAnalysis\n{\n\tpublic static ... | java | chosen |
[
{
"from": "human",
"value": "Make sortedness a trait, and add a rule, RemoveSortRule, that implements ORDER BY by finding a rel that is already sorted. SortRel is now defined by a RelCollation, not a List<RelFieldCollation>, although they are fairly similar in content. (Most of the functionality is disabled... | java | chosen |
[
{
"from": "human",
"value": "Add simple Particle effect, for repeating particle spawns\n"
},
{
"from": "gpt",
"value": "package de.slikey.effectlib.effect;\n\nimport org.bukkit.Particle;\n\nimport de.slikey.effectlib.Effect;\nimport de.slikey.effectlib.EffectManager;\nimport de.slikey.effectlib.... | java | chosen |
[
{
"from": "human",
"value": "Document current deserialization of Ports with a test"
},
{
"from": "gpt",
"value": "package com.github.dockerjava.api.model;\n\nimport static org.testng.Assert.assertEquals;\n\nimport java.util.Map;\n\nimport org.testng.annotations.Test;\n\nimport com.fasterxml.jack... | java | chosen |
[
{
"from": "human",
"value": "Add a user object to our model."
},
{
"from": "gpt",
"value": "package ca.corefacility.bioinformatics.irida.model;\n\nimport java.util.Objects;\n\n/**\n * A user object.\n *\n * @author Franklin Bristow\n */\npublic class User {\n\n private String username;\n p... | java | chosen |
[
{
"from": "human",
"value": "Create list item model for description\n"
},
{
"from": "gpt",
"value": "package com.cube.storm.ui.model.list;\n\nimport android.os.Parcel;\n\nimport com.cube.storm.ui.model.property.TextProperty;\n\nimport lombok.Getter;\n\n/**\n * A view model with a description pro... | java | chosen |
[
{
"from": "human",
"value": "Add java solution for 166. Fraction to Recurring Decimal\n\n166. Fraction to Recurring Decimal: https://leetcode.com/problems/fraction-to-recurring-decimal/"
},
{
"from": "gpt",
"value": "package leetcode.fraction_to_recurring_decimal;\n\nimport java.util.HashMap;\ni... | java | chosen |
[
{
"from": "human",
"value": "Add a command for waking the vehicle.\n"
},
{
"from": "gpt",
"value": "package com.openxc.measurements;\n\nimport com.openxc.units.Boolean;\n\npublic class VehicleWakeCommand extends BaseMeasurement<Boolean> {\n public final static String ID = \"vehicle_wake_comma... | java | chosen |
[
{
"from": "human",
"value": "Add class for the ontology information."
},
{
"from": "gpt",
"value": "/*\n * OntologyInfo.java\n *\n */\n\npackage de.uni_stuttgart.vis.vowl.owl2vowl.model;\n\n/**\n * This class saves all information of the processed ontology.\n */\npublic class OntologyInfo {\n\tp... | java | chosen |
[
{
"from": "human",
"value": "Add utility class for determining the device's OS version.\n"
},
{
"from": "gpt",
"value": "package com.cocoahero.android.essentials.util;\n\nimport android.os.Build;\n\npublic class System {\n\n public static boolean isVersion(int version) {\n return Build... | java | chosen |
[
{
"from": "human",
"value": "Add a 'test drive' for the script interpreter\n\nThis makes it easier to debug and improve.\n\nSigned-off-by: Johannes Schindelin <53fb8db7833fca1e1746dd8592f61048d350f64c@gmx.de>\n"
},
{
"from": "gpt",
"value": "/*\n * #%L\n * ImageJ software for multidimensional im... | java | chosen |
[
{
"from": "human",
"value": "Add exception type to represent subversion of Ceylon's type system, required by switch/case\n"
},
{
"from": "gpt",
"value": "package com.redhat.ceylon.compiler.metadata.java;\n\n/**\n * Indicates the occurance of an 'impossible' situation which breaks Ceylon's\n * ty... | java | chosen |
[
{
"from": "human",
"value": "Add tests on Application controller\n"
},
{
"from": "gpt",
"value": "package controller;\n\nimport static org.fest.assertions.Assertions.assertThat;\nimport static play.test.Helpers.fakeApplication;\nimport static play.test.Helpers.fakeRequest;\nimport static play.te... | java | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.