conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Use program arguments to specify ip and ip ranges.\n"
},
{
"from": "human",
"value": "import dto.LiveNode;\nimport java.util.List;\n\npublic class Client {\n public static void main(String[] args) {\n\n String ips = \"109.231.122.0-100\";//\"109.231.122.54... | java | chosen |
[
{
"from": "system",
"value": "Rename edit task descriptor set address method to set deadline\n"
},
{
"from": "human",
"value": "package seedu.address.logic.parser;\n\nimport static seedu.address.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT;\nimport static seedu.address.logic.parser.CliSy... | java | chosen |
[
{
"from": "system",
"value": "Handle null found project for default java project finder"
},
{
"from": "human",
"value": "package org.springframework.ide.vscode.commons.languageserver.java;\r\n\r\nimport org.springframework.ide.vscode.commons.java.IJavaProject;\r\nimport org.springframework.ide.v... | java | chosen |
[
{
"from": "system",
"value": "Fix bugs in item test case\n"
},
{
"from": "human",
"value": "package org.qpt.receipt;\n\nimport org.junit.Test;\n\nimport static org.junit.Assert.*;\n\n/**\n * Created by Sora on 2016/7/6.\n */\npublic class ItemTest {\n\n private static Goods getGoods() {\n ... | java | chosen |
[
{
"from": "system",
"value": "Increase version to 0.5.1 alpha 2.\n"
},
{
"from": "human",
"value": "package ch.ethz.scu.obit.common.version;\n\npublic class VersionInfo {\n\n\t// Program version\n\tpublic static final String version = \"0.5.1\";\n\t\n\t// Version status: \"alpha\", \"beta\", or ... | java | chosen |
[
{
"from": "system",
"value": "Revert \"fixed pen styling bug\"\n\nThis reverts commit 2acf214f5479ca2a691e0f4b09bcef8a28f99e2a.\n"
},
{
"from": "human",
"value": "package application.Actions;\n\nimport javafx.geometry.Point2D;\nimport application.SLogoCanvas;\nimport application.Turtle;\n\npubli... | java | chosen |
[
{
"from": "system",
"value": "Add sources 4 different ways!\n"
},
{
"from": "human",
"value": "package com.dragonheart.dijkstra;\n\nimport java.util.ArrayList;\n\npublic class DijkstraGraph {\n\tprivate ArrayList<Edge> listOfEdges;\n\tprivate ArrayList<Point> listOfPoints, sourceNodes;\n\n\tpubl... | java | chosen |
[
{
"from": "system",
"value": "Set correct background color in Settings.\n\nBug: T186104\nChange-Id: I44e2a1276fb208b20e7ff54bd7bb19d4ceaae2c7\n"
},
{
"from": "human",
"value": "package org.wikipedia.settings;\n\nimport android.os.Bundle;\nimport android.support.v7.preference.PreferenceFragmentCo... | java | chosen |
[
{
"from": "system",
"value": "Add method to fire the EditNote activity\n"
},
{
"from": "human",
"value": "package com.simplenote.android.ui;\n\nimport android.app.Activity;\nimport android.content.Context;\nimport android.content.Intent;\n\nimport com.simplenote.android.Constants;\n\n/**\n * Col... | java | chosen |
[
{
"from": "system",
"value": "Change default features files to r4\n"
},
{
"from": "human",
"value": "package acceptance;\n\nimport cucumber.api.CucumberOptions;\nimport net.serenitybdd.cucumber.CucumberWithSerenity;\nimport org.junit.runner.RunWith;\n\n\n@RunWith(CucumberWithSerenity.class)\n@Cu... | java | chosen |
[
{
"from": "system",
"value": "Set \"public static String readFile()\" :book:"
},
{
"from": "human",
"value": "public class Wift {\n \n /** \n * Wift - The BASIC Programming Language\n * \n * BASIC FUNCTIONALITY:\n * - STRINGS []\n * - INTEGERS []\n * ... | java | chosen |
[
{
"from": "system",
"value": "Use constants from Gradle rather than custom.\n"
},
{
"from": "human",
"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 noti... | java | chosen |
[
{
"from": "system",
"value": "Remove double binding in custom view example.\n"
},
{
"from": "human",
"value": "package com.example.zipper.customview;\n\nimport com.example.zipper.R;\n\nimport android.os.Bundle;\nimport android.support.annotation.Nullable;\nimport android.support.v4.app.Fragment;... | java | chosen |
[
{
"from": "system",
"value": "Use the scale in the var name.\n"
},
{
"from": "human",
"value": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information regarding c... | java | chosen |
[
{
"from": "system",
"value": "Fix changes in the registry of tile entity renderer in the latest forge updates (30.0.19)\n"
},
{
"from": "human",
"value": "package info.u_team.u_team_core.util.registry;\r\n\r\nimport net.minecraft.client.renderer.tileentity.TileEntityRenderer;\r\nimport net.minec... | java | chosen |
[
{
"from": "system",
"value": "Print out inputstream from eksamensplan\n"
},
{
"from": "human",
"value": "import java.net.*;\nimport udir.types.eksamensplan.*;\nimport javax.xml.bind.*;\nimport java.io.*;\n\npublic class EksamensplanExample {\n\t\n\tprivate static String baseAddress = \"https://e... | java | chosen |
[
{
"from": "system",
"value": "Fix issue with parsing out the port number\n"
},
{
"from": "human",
"value": "package com.hamishrickerby.http_server;\n\n/**\n * Created by rickerbh on 15/08/2016.\n */\npublic class App {\n public static void main(String[] args) {\n AppArguments arguments... | java | chosen |
[
{
"from": "system",
"value": "Create TDD test for Util class.\n"
},
{
"from": "human",
"value": "package com.m4gik.util;\n\nimport static org.hamcrest.MatcherAssert.assertThat;\nimport static org.hamcrest.Matchers.is;\nimport static org.hamcrest.Matchers.notNullValue;\n\nimport java.util.Arrays;... | java | chosen |
[
{
"from": "system",
"value": "Update validation regex and add comment\n"
},
{
"from": "human",
"value": "/*\n * This file is part of Bisq.\n *\n * Bisq is free software: you can redistribute it and/or modify it\n * under the terms of the GNU Affero General Public License as published by\n * the ... | java | chosen |
[
{
"from": "system",
"value": ":ok_hand: Add class test in suite class test.\n"
},
{
"from": "human",
"value": "import br.com.cronapi.DatabaseTest;\nimport br.com.cronapi.RestClientTest;\nimport br.com.cronapi.VarTest;\nimport br.com.cronapi.dateTime.DateTimeTest;\nimport br.com.cronapi.json.Json... | java | chosen |
[
{
"from": "system",
"value": "Add the feed forward gain"
},
{
"from": "human",
"value": "package org.camsrobotics.frc2016;\r\n\r\n/**\r\n * Assorted Constants\r\n * \r\n * @author Wesley\r\n *\r\n */\r\npublic class Constants {\r\n\t\r\n\t/*\r\n\t * Camera Constants\r\n\t */\r\n\tpublic final st... | java | chosen |
[
{
"from": "system",
"value": "Add markers on long-pressing the map.\n"
},
{
"from": "human",
"value": "\npackage com.uwetrottmann.shopr.ui;\n\nimport android.os.Bundle;\n\nimport com.google.android.gms.maps.SupportMapFragment;\n\npublic class ShopMapFragment extends SupportMapFragment {\n\n p... | java | chosen |
[
{
"from": "system",
"value": "Fix sqlite plugin javadoc typo.\n"
},
{
"from": "human",
"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 * http:... | java | chosen |
[
{
"from": "system",
"value": "Add test for default module find pattern\n"
},
{
"from": "human",
"value": "package test.integration.project;\n\nimport static org.junit.jupiter.api.Assertions.assertEquals;\nimport static org.junit.jupiter.api.Assertions.assertLinesMatch;\n\nimport com.github.sormu... | java | chosen |
[
{
"from": "system",
"value": "Use 100 images in list\n\nAgain, a bit more real-world-ish stress testing here.\n"
},
{
"from": "human",
"value": "package com.wrapp.android.webimageexample;\n\nimport android.view.View;\nimport android.view.ViewGroup;\nimport android.widget.BaseAdapter;\n\npublic c... | java | chosen |
[
{
"from": "system",
"value": "Allow wrapping of other exceptions"
},
{
"from": "human",
"value": "package hu.mentlerd.hybrid;\r\n\r\npublic class LuaException extends RuntimeException{\r\n\tprivate static final long serialVersionUID = -8214311557059032574L;\r\n\r\n\tprivate Object luaCause;\r\n\... | java | chosen |
[
{
"from": "system",
"value": "Add 3 arrayLists for 3 types of tasks\n\n#44"
},
{
"from": "human",
"value": "package sg.edu.cs2103aug2015_w13_2j;\r\n\r\n/**\r\nThis class implements methods from LogicInterface\r\n@author Nguyen Tuong Van \r\n\r\nTODO: Should we include a HashMap besides the Arra... | java | chosen |
[
{
"from": "system",
"value": "Remove printStackTrace from Ant task\n\nChange StopZapTask to remove the call to Throwable.printStackTrace(),\nthe exception is wrapped and thrown for the caller to handle (e.g. Ant\nwhich already outputs the stack trace).\n"
},
{
"from": "human",
"value": "/*\r\n *... | java | chosen |
[
{
"from": "system",
"value": "Remove package access as not needed\n"
},
{
"from": "human",
"value": "package org.realityforge.replicant.client.ee;\n\nimport java.io.StringReader;\nimport javax.annotation.Nonnull;\nimport javax.json.Json;\nimport javax.json.JsonObject;\nimport javax.json.JsonRead... | java | chosen |
[
{
"from": "system",
"value": "Solve problem 60 (time limit exceeded)\n"
},
{
"from": "human",
"value": "package leetcode;\n\n/**\n * https://leetcode.com/problems/permutation-sequence/\n */\npublic class Problem60 {\n public String getPermutation(int n, int k) {\n getPermutation(n, \"\... | java | chosen |
[
{
"from": "system",
"value": "Simplify the declaration.\nReformat the code.\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2020, 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 noti... | java | chosen |
[
{
"from": "system",
"value": "Support for setting fake AWS creds\n"
},
{
"from": "human",
"value": "package com.github.mlk.junit.rules;\n\nimport static org.hamcrest.MatcherAssert.assertThat;\nimport static org.hamcrest.core.Is.is;\n\nimport com.amazonaws.auth.AWSStaticCredentialsProvider;\nimpo... | java | chosen |
[
{
"from": "system",
"value": "Add ability to transform queries using QueryTraversal with full type information.\n"
},
{
"from": "human",
"value": "package graphql.util;\n\nimport graphql.PublicApi;\n\nimport java.util.Objects;\n\n/**\n * A specific {@link NodeLocation} inside a node. This means ... | java | chosen |
[
{
"from": "system",
"value": "Allow the password to be an optional argument, the only requirement being that it cannot be in the form of a number\n"
},
{
"from": "human",
"value": "package net.hexid.hexbot.bots;\n\nimport java.util.ArrayList;\n\npublic class Bing extends net.hexid.hexbot.bot.cmd... | java | chosen |
[
{
"from": "system",
"value": "Add a projectile hit handler, and allow for hit FX on projectiles\n"
},
{
"from": "human",
"value": "package com.elmakers.mine.bukkit.api.spell;\n\nimport org.bukkit.Location;\nimport org.bukkit.command.CommandSender;\nimport org.bukkit.entity.Entity;\nimport org.bu... | java | chosen |
[
{
"from": "system",
"value": "Remove unnecessary visibility modifiers in interface\n"
},
{
"from": "human",
"value": "package im.delight.android.ddp;\n\n/*\n * Copyright (c) delight.im <info@delight.im>\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use... | java | chosen |
[
{
"from": "system",
"value": "Check that datestamp and status fields exist before setting them, since incoming messages don't have a status view.\n"
},
{
"from": "human",
"value": "/*\n * Copyright (c) 2015, Apptentive, Inc. All Rights Reserved.\n * Please refer to the LICENSE file for the terms... | java | chosen |
[
{
"from": "system",
"value": "Add inline doc to the asynchronous example\n"
},
{
"from": "human",
"value": "package examples.async;\n\nimport com.vtence.molecule.WebServer;\nimport com.vtence.molecule.middlewares.Failsafe;\n\nimport java.io.IOException;\nimport java.util.concurrent.CompletionExc... | java | chosen |
[
{
"from": "system",
"value": "\tUse a bigger buffer size for the ``lots of sets'' test.\n"
},
{
"from": "human",
"value": "package net.spy.memcached;\n\nimport java.util.Arrays;\nimport java.util.concurrent.TimeUnit;\n\n/**\n * Small test program that does a bunch of sets in a tight loop.\n */\n... | java | chosen |
[
{
"from": "system",
"value": "Align centrally contact avatar in chat window.\n"
},
{
"from": "human",
"value": "/*\n * SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.\n *\n * Distributable under LGPL license.\n * See terms of license at gnu.org.\n */\npackage net.java.si... | java | chosen |
[
{
"from": "system",
"value": "Upgrade Spring boot verions (1.*.* to 2.0) Remove Test case\n"
},
{
"from": "human",
"value": "package com.pingconsole;\n\n\nimport static io.restassured.RestAssured.*;\nimport static io.restassured.matcher.RestAssuredMatchers.*;\nimport static org.hamcrest.Matchers... | java | chosen |
[
{
"from": "system",
"value": "Add tracing to when SO libraries are loaded\n\nSummary:\nCurrently, loading SO libraries is pretty expensive. While they are triggered due to accessing `ReadableNativeArray`. However, with preloader experiments, this block seems to move around and is loaded when the first depen... | java | chosen |
[
{
"from": "system",
"value": "Add an error message for no user login found\n"
},
{
"from": "human",
"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 ... | java | chosen |
[
{
"from": "system",
"value": "Fix for Android change events"
},
{
"from": "human",
"value": "package com.mapbox.rctmgl.components.mapview.helpers;\n\nimport android.util.Log;\n\n/**\n * Created by nickitaliano on 12/12/17.\n */\n\npublic class CameraChangeTracker {\n public static final int U... | java | chosen |
[
{
"from": "system",
"value": "Remove superflous access modifiers in interface\n"
},
{
"from": "human",
"value": "\npackage dk.es.br.dibs;\n\n/**\n *\n * @author osa\n */\npublic interface DibsResponse {\n /**\n * @return <code>true</code> of the check validated the card\n */\n publ... | java | chosen |
[
{
"from": "system",
"value": "Add methods to get material tool types\n"
},
{
"from": "human",
"value": "package net.wayward_realms.waywardlib.professions;\n\nimport org.bukkit.Material;\n\nimport static org.bukkit.Material.*;\n\npublic enum ToolType {\n\n PICKAXE(WOOD_PICKAXE, STONE_PICKAXE, ... | java | chosen |
[
{
"from": "system",
"value": "Add missing value for sml:axis\n"
},
{
"from": "human",
"value": "package com.sensia.tools.client.swetools.editors.sensorml.renderer.editor.panels.sml;\n\nimport com.google.gwt.core.shared.GWT;\nimport com.sensia.relaxNG.RNGElement;\nimport com.sensia.relaxNG.RNGTag... | java | chosen |
[
{
"from": "system",
"value": "Call getText() instead of toString().trim().\n"
},
{
"from": "human",
"value": "package mjc.analysis;\n\nimport org.apache.log4j.Logger;\n\nimport mjc.node.AMainClassDeclaration;\nimport mjc.node.Start;\n\npublic class BasicAnalyzer extends DepthFirstAdapter {\n ... | java | chosen |
[
{
"from": "system",
"value": "Add at least some criteria\n\n--HG--\nbranch : jax-rs\n"
},
{
"from": "human",
"value": "package com.oreilly.com.rdf.tenuki.jaxrs.io;\n\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.lang.annotation.Annotation;\nimport java.lang.reflect.Type;... | java | chosen |
[
{
"from": "system",
"value": "Make tests green to build on Hudson.\nNeed to check warnings from checkstyle plugin.\n"
},
{
"from": "human",
"value": "package ua.yandex.shad;\n\npublic class DoubleArray {\n\n /**\n * The default capacity of new DoubleArrays.\n */\n private static fi... | java | chosen |
[
{
"from": "system",
"value": "Fix package info to match public api\n"
},
{
"from": "human",
"value": "/*\n * # Licensed Materials - Property of IBM # Copyright IBM Corp. 2017\n */\n\n/**\n * Java wrappers for the REST API of IBM Streams.\n * \n * <p>\n * This API is used to access the REST API i... | java | chosen |
[
{
"from": "system",
"value": "Fix syntax error and refer correct method\n"
},
{
"from": "human",
"value": "package org.edx.mobile.module.analytics;\n\nimport android.content.Context;\n\nimport org.edx.mobile.util.Config;\n\npublic class SegmentFactory {\n\n private static ISegment sInstance;\... | java | chosen |
[
{
"from": "system",
"value": "Test commit to branch 1.0.0 test 2\n"
},
{
"from": "human",
"value": "package Test;\n\n/**\n * Hello world!\n *\n */\npublic class App\n{\n public static void main( String[] args )\n {\n System.out.println( \"Hello World!\" );\n System.out.printl... | java | chosen |
[
{
"from": "system",
"value": "Add a simple JUL test.\n"
},
{
"from": "human",
"value": "package dk.bitcraft.lc;\n\nimport org.junit.Rule;\nimport org.junit.Test;\n\nimport java.util.List;\nimport java.util.logging.Logger;\n\nimport static org.assertj.core.api.Assertions.assertThat;\n\npublic cla... | java | chosen |
[
{
"from": "system",
"value": "[COLAB-2861] Fix staff members widget error\n"
},
{
"from": "human",
"value": "package org.xcolab.service.members.web;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.web.bind.annotation.RequestMapping;\nimport org.sprin... | java | chosen |
[
{
"from": "system",
"value": "Use plocal, otherwise the Travis tests fail with OutOfMemoryError.\n"
},
{
"from": "human",
"value": "package org.jbake.app;\n\nimport org.junit.After;\nimport org.junit.AfterClass;\nimport org.junit.Before;\nimport org.junit.BeforeClass;\n\npublic abstract class Co... | java | chosen |
[
{
"from": "system",
"value": "Return JIRA home directory\nSAL-59\n\ngit-svn-id: 2433085265c0232ec46d186f8a8240da49417e22@36264 2c54a935-e501-0410-bc05-97a93f6bca70\n"
},
{
"from": "human",
"value": "package com.atlassian.sal.jira;\n\nimport com.atlassian.jira.util.BuildUtils;\nimport com.atlassi... | java | chosen |
[
{
"from": "system",
"value": "Refactor: Break number apart into digits using math instead of string operations.\n"
},
{
"from": "human",
"value": "package org.asaph.happynumber;\n\nimport java.util.HashSet;\nimport java.util.Set;\n\npublic class HappyNumber {\n\tpublic static int nextNumber(int ... | java | chosen |
[
{
"from": "system",
"value": "Create package for Iterator pattern.\n"
},
{
"from": "human",
"value": "package jp.ne.naokiur.design.pattern.iterator;\n\npublic class ItelatorSample {\n\n}\n"
},
{
"from": "gpt",
"value": "package jp.ne.naokiur.design.pattern.iterator;\n\npublic class I... | java | chosen |
[
{
"from": "system",
"value": "Add constructor for duplicating supplied item\n"
},
{
"from": "human",
"value": "package retail;\r\n\r\npublic class Item\r\n{\r\n\tprivate String barcode;\r\n\tprivate String description;\r\n\tprivate int price;\r\n\tprivate boolean taxable;\r\n\t\r\n\tpublic Item(... | java | chosen |
[
{
"from": "system",
"value": "Update expected number of metrics\n"
},
{
"from": "human",
"value": "// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\npackage com.yahoo.container.jdisc.metric;\n\nimport com.yahoo.jdisc.Metric;\nimport com.yah... | java | chosen |
[
{
"from": "system",
"value": "Remove temporary patch for broken TestNG 6.9.13\n\nNow that 6.9.13.2 is out this is not needed anymore.\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2016 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");... | java | chosen |
[
{
"from": "system",
"value": "Disable JS test for a while since the CP hack breaks things\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2016 Red Hat, Inc.\n *\n * Red Hat licenses this file to you under the Apache License, version 2.0\n * (the \"License\"); you may not use this file except... | java | chosen |
[
{
"from": "system",
"value": "Fix broken code, comment out sun.awt.X11.XLayerProtocol\n\ngit-svn-id: 67bc77c75b8364e4e9cdff0eb6560f5818674cd8@2216 ca793f91-a31e-0410-b540-2769d408b6a1\n"
},
{
"from": "human",
"value": "package dr.inference.model;\n\nimport dr.xml.*;\nimport sun.awt.X11.XLayerPro... | java | chosen |
[
{
"from": "system",
"value": "Replace CENOReqFlags array with an EnumSet\n"
},
{
"from": "human",
"value": "package plugins.CENO;\n\nimport plugins.CENO.FreenetInterface.FreemailAPI.Freemail;\n\npublic class CENORequest extends Freemail {\n\n\tprivate CENOReqFlags[] reqFlags;\n\n\tpublic CENOReq... | java | chosen |
[
{
"from": "system",
"value": "Add Enum class and create objects"
},
{
"from": "human",
"value": "/**\n * @file EnumDemo.java\n * @author Valery Samovich\n * @version 1.0.0\n * @date 10/15/2014\n */\n\npackage com.valerysamovich.java.enums;\n\npublic class EnumDemo {\n\n public static void mai... | java | chosen |
[
{
"from": "system",
"value": "Test case for redo add command\n"
},
{
"from": "human",
"value": "package guitests;\n\npublic class RedoCommandTest extends TaskManagerGuiTest {\n\n}\n"
},
{
"from": "gpt",
"value": "package guitests;\n\nimport org.junit.Test;\n\nimport seedu.address.log... | java | chosen |
[
{
"from": "system",
"value": "Fix test after JUnit upgrade"
},
{
"from": "human",
"value": "package patterns.document;\r\n\r\nimport java.util.HashMap;\r\nimport java.util.Map;\r\nimport java.util.OptionalDouble;\r\nimport java.util.OptionalInt;\r\n\r\nimport org.junit.Test;\r\n\r\nimport org.ju... | java | chosen |
[
{
"from": "system",
"value": "Change the interface layout to reflect the changes we spoke about in icq\n\ngit-svn-id: 00f83033766efed07e2b0af284f6d6b8c92b3c53@408254 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "human",
"value": "/*********************************************************... | java | chosen |
[
{
"from": "system",
"value": "Prepare for deploy to production.\n"
},
{
"from": "human",
"value": "package org.kefirsf.tk;\n\nimport twitter4j.Twitter;\nimport twitter4j.TwitterException;\nimport twitter4j.TwitterFactory;\nimport twitter4j.auth.RequestToken;\n\nimport javax.servlet.ServletExcept... | java | chosen |
[
{
"from": "system",
"value": "Make parameterized assertion error extend assertion error\n"
},
{
"from": "human",
"value": "package org.junit.experimental.theories.internal;\n\nimport java.util.Arrays;\nimport java.util.Collection;\nimport java.util.Iterator;\n\npublic class ParameterizedAssertio... | java | chosen |
[
{
"from": "system",
"value": "Clean up interface for system clock\n"
},
{
"from": "human",
"value": "package org.jvirtanen.nassau.util;\n\npublic class SystemClock implements Clock {\n\n public static final SystemClock INSTANCE = new SystemClock();\n\n @Override\n public long currentTim... | java | chosen |
[
{
"from": "system",
"value": "Change for local pid prefix\n"
},
{
"from": "human",
"value": "package org.jsoftware.tjconsole.local;\n\nimport com.sun.tools.attach.VirtualMachine;\n\n/**\n * Check if tools.jar is available\n * Receive local java PIDs\n * Try to load agent for JMX\n * @author szal... | java | chosen |
[
{
"from": "system",
"value": "Fix formatting and a warning for FoursqauredAppTestCase.\n\ncommitter: Joe LaPenna <16a9a54ddf4259952e3c118c763138e83693d7fd@joelapenna.com>\n"
},
{
"from": "human",
"value": "/**\n * Copyright 2009 Joe LaPenna\n */\npackage com.joelapenna.foursquared.test;\n\nimpor... | java | chosen |
[
{
"from": "system",
"value": "Fix test: Missing Guice dependency\n"
},
{
"from": "human",
"value": "package guice;\n\nimport play.Application;\nimport services.AuthenticationService;\nimport services.StubConfigurationImplTest;\nimport services.ConfigurationService;\nimport services.ESConstantImp... | java | chosen |
[
{
"from": "system",
"value": "Update comment for passport creation\n"
},
{
"from": "human",
"value": "package co.inventorsoft.oop.basic.demo;\n\nimport co.inventorsoft.oop.basic.model.Passport;\nimport co.inventorsoft.oop.basic.model.Person;\n\nimport java.time.LocalDate;\nimport java.time.Loca... | java | chosen |
[
{
"from": "system",
"value": "Copy main module descriptor 1:1\n"
},
{
"from": "human",
"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": "system",
"value": "Add log statement on ignore\n"
},
{
"from": "human",
"value": "package org.rmatil.sync.event.aggregator.core.modifier;\n\nimport org.rmatil.sync.event.aggregator.core.events.IEvent;\nimport org.rmatil.sync.event.aggregator.core.events.ModifyEvent;\n\nimport java.uti... | java | chosen |
[
{
"from": "system",
"value": "Create service for reading file.\n"
},
{
"from": "human",
"value": "package com.github.aureliano.achmed.server.service;\n\nimport com.github.aureliano.achmed.common.exception.AchmedException;\n\npublic final class ServiceFactory {\n\n\tprivate ServiceFactory() {}\n\... | java | chosen |
[
{
"from": "system",
"value": "Undo alteration of generated file\n"
},
{
"from": "human",
"value": "package org.testng.internal;\n\npublic class Version {\n\n public static final String VERSION = \"7.1.1-SNAPSHOT\";\n\n public static String getVersionString() {\n return VERSION;\n ... | java | chosen |
[
{
"from": "system",
"value": "Add suppression to try and fix test errors\n"
},
{
"from": "human",
"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 obta... | java | chosen |
[
{
"from": "system",
"value": "Print exception details for UI\n\n\nFormer-commit-id: 1433ca9b57894491926f5e10a8c9bc8e068020ba"
},
{
"from": "human",
"value": "package org.deeplearning4j.ui.exception;\n\n\nimport javax.ws.rs.core.MediaType;\nimport javax.ws.rs.core.Response;\nimport javax.ws.rs.ex... | java | chosen |
[
{
"from": "system",
"value": "RED: Test uses non existing size method."
},
{
"from": "human",
"value": "package de.itemis.mosig.ringbuffer;\n\nimport org.junit.Test;\n\npublic class CircularBufferTest {\n\n\t@Test\n\tpublic void constructorShouldSetProvidedSize() {\n\t\tnew CircularBuffer(3);\n\... | java | chosen |
[
{
"from": "system",
"value": "Make coremod description a bit more enhanced"
},
{
"from": "human",
"value": "package info.u_team.u_team_core.intern.asm;\n\nimport info.u_team.u_team_core.menu.UAbstractContainerMenu;\nimport net.minecraft.server.level.ServerPlayer;\nimport net.minecraft.world.inve... | java | chosen |
[
{
"from": "system",
"value": "Update basic fluid inventory screen to UBasicContainerScreen and reduce\ncode"
},
{
"from": "human",
"value": "package info.u_team.u_team_test.screen;\n\nimport com.mojang.blaze3d.matrix.MatrixStack;\n\nimport info.u_team.u_team_core.screen.UContainerScreen;\nimport... | java | chosen |
[
{
"from": "system",
"value": "Change code style to google code style.\n"
},
{
"from": "human",
"value": "package com.saintdan.framework.annotation;\n\n\nimport org.springframework.security.core.annotation.AuthenticationPrincipal;\n\nimport java.lang.annotation.ElementType;\nimport java.lang.anno... | java | chosen |
[
{
"from": "system",
"value": "Add all response CancelOrder fields\n"
},
{
"from": "human",
"value": "package org.knowm.xchange.binance.dto.trade;\n\nimport com.fasterxml.jackson.annotation.JsonProperty;\n\npublic final class BinanceCancelledOrder {\n\n public final String symbol;\n public fina... | java | chosen |
[
{
"from": "system",
"value": "Update copyright notice with MIT license"
},
{
"from": "human",
"value": "/*++\r\n\r\nNASM Assembly Language Plugin\r\nCopyright (c) 2017-2018 Aidan Khoury. All rights reserved.\r\n\r\nThis program is free software: you can redistribute it and/or modify\r\nit under ... | java | chosen |
[
{
"from": "system",
"value": "Rewrite converting Node to GPathResult\n"
},
{
"from": "human",
"value": "package org.apache.camel.groovy.converter;\n\nimport groovy.util.XmlSlurper;\nimport groovy.util.slurpersupport.GPathResult;\nimport groovy.xml.StreamingMarkupBuilder;\nimport org.apache.camel... | java | chosen |
[
{
"from": "system",
"value": "Add better logging when getting a broken BlockState from item meta\n"
},
{
"from": "human",
"value": "package com.laytonsmith.abstraction.bukkit;\n\nimport com.laytonsmith.abstraction.blocks.MCBlockState;\nimport com.laytonsmith.abstraction.MCBlockStateMeta;\nimport... | java | chosen |
[
{
"from": "system",
"value": "Add javadoc to the Jackson Module Repository\n\nSigned-off-by: Clement Escoffier <6397137e57d1f87002962a37058f2a1c76fca9db@gmail.com>\n"
},
{
"from": "human",
"value": "/*\n * #%L\n * Wisdom-Framework\n * %%\n * Copyright (C) 2013 - 2014 Wisdom Framework\n * %%\n * ... | java | chosen |
[
{
"from": "system",
"value": "Solve Red John Is Back\n"
},
{
"from": "human",
"value": "package hackerrank;\n\nimport java.util.Scanner;\n\n/**\n * https://www.hackerrank.com/challenges/red-john-is-back\n */\npublic class RedJohnIsBack {\n public static void main(String[] args) {\n Sca... | java | chosen |
[
{
"from": "system",
"value": "Use a sub-directory so that in the future we can have other directories for jar files, custom functions, etc.\n"
},
{
"from": "human",
"value": "package org.jenkinsci.plugins.workflow.cps.global;\n\nimport groovy.lang.GroovyClassLoader;\nimport groovy.lang.GroovyShe... | java | chosen |
[
{
"from": "system",
"value": "Set \"public static void\" for \"main\" :thumbsup:"
},
{
"from": "human",
"value": "public class Wift {\n \n /** \n * Wift - The BASIC Programming Language\n * \n * BASIC FUNCTIONALITY:\n * - STRINGS []\n * - INTEGERS []\n ... | java | chosen |
[
{
"from": "system",
"value": "Enforce explicit declaration of required CryptorProvider version [ci skip]\n"
},
{
"from": "human",
"value": "/*******************************************************************************\n * Copyright (c) 2016 Sebastian Stenzel and others.\n * All rights reserve... | java | chosen |
[
{
"from": "system",
"value": "Fix whitespace in info file"
},
{
"from": "human",
"value": "package com.cjburkey.cubulus;\n\npublic final class Info {\n\t\n\tpublic static final int GAME_MAJOR = 0;\n\tpublic static final int GAME_MINOR = 0;\n\tpublic static final int GAME_PATCH = 1;\n\t\n\tpublic... | java | chosen |
[
{
"from": "system",
"value": "Fix to the GI CDF test, so now all tests from SVN pass\n\ngit-svn-id: b371d604c7577be4609d70acd88b8a3995ce0a58@2259 3a8262b2-faa5-11dc-8610-ff947880b6b2\n"
},
{
"from": "human",
"value": "package jsx3.xml;\n\nimport org.junit.Test;\n\nimport static org.junit.Assert.... | java | chosen |
[
{
"from": "system",
"value": "Check sum tree redo completed"
},
{
"from": "human",
"value": "package GeeksforGeeksPractice;\r\n\r\npublic class _0017CheckSumTree {\r\n\tpublic static class TreeNode {\r\n\t\tint val;\r\n\t\tTreeNode left;\r\n\t\tTreeNode right;\r\n\t\tTreeNode(int x) { val = x; }... | java | chosen |
[
{
"from": "system",
"value": "Test that player is asked a question and that question is of proper category\n"
},
{
"from": "human",
"value": "package com.adaptionsoft.games.uglytrivia;\n\nimport org.junit.Test;\n\nimport static org.mockito.Mockito.mock;\nimport static org.mockito.Mockito.verify;... | java | chosen |
[
{
"from": "system",
"value": "Remove the identifier parameter in the object constructor.\n"
},
{
"from": "human",
"value": "package org.obda.query.domain.imp;\r\n\r\nimport java.net.URI;\r\n\r\nimport org.obda.query.domain.Predicate;\r\n\r\npublic class PredicateImp implements Predicate{\r\n\r\n... | java | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.