conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Fix autostart bug observed in recent Android OS\n\nIt appears that recent versions of Android no longer\nallow a grace period for background service startup\nin this particular situation. However, since our\nservice is actually a foreground service, we can use\nstartForeground... | java | chosen |
[
{
"from": "system",
"value": "Fix compilation error in mutability"
},
{
"from": "human",
"value": "package org.genericsystem.mutability;\n\nimport java.io.Serializable;\nimport java.util.List;\n\nimport org.genericsystem.defaults.DefaultVertex;\n\npublic interface Generic extends DefaultVertex<G... | java | chosen |
[
{
"from": "system",
"value": "Fix for JodaTime not being initialized correctly in dev builds\n"
},
{
"from": "human",
"value": "package mn.devfest;\n\nimport android.app.Application;\nimport android.content.Context;\n\nimport net.danlew.android.joda.JodaTimeAndroid;\n\nimport timber.log.Timber;\... | java | chosen |
[
{
"from": "system",
"value": "Add equals method for comparision purpose.\n"
},
{
"from": "human",
"value": "package im.darkgeek.dicts;\n\n/**\n * Created by justin on 15-8-28.\n */\npublic class DictItem {\n private String word;\n private String explanation;\n\n public String getWord() ... | java | chosen |
[
{
"from": "system",
"value": "Add new messages for invalid end date\n"
},
{
"from": "human",
"value": "package tars.commons.core;\n\n/**\n * Container for user visible messages.\n */\npublic class Messages {\n\n public static final String MESSAGE_UNKNOWN_COMMAND = \"Unknown command\";\n pu... | java | chosen |
[
{
"from": "system",
"value": "Implement a very basic http server\n"
},
{
"from": "human",
"value": "package net.zephyrizing.http_server;\n\nimport java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.PrintWriter;\nimport java.net.ServerSocket;\nimport java.net.Socket;\n\npu... | java | chosen |
[
{
"from": "system",
"value": "Add torpedo failure rate as an environment variable\n"
},
{
"from": "human",
"value": "package hu.bme.mit.spaceship;\n\nimport java.util.Random;\n\n/**\n* Class storing and managing the torpedoes of a ship\n*/\npublic class TorpedoStore {\n\n private int torpedoCou... | java | chosen |
[
{
"from": "system",
"value": "Add getKeys and count to Patricia Tree\n"
},
{
"from": "human",
"value": "package com.cc4102.stringDict;\n\nimport java.util.ArrayList;\n\n/**\n * @author Lucas Puebla Silva\n *\n */\npublic class PatriciaTree implements StringDictionary {\n\n private PatriciaNod... | java | chosen |
[
{
"from": "system",
"value": "Test change for retina branch"
},
{
"from": "human",
"value": "package main.powercalc;\n\npublic class DataTuple {\n\tprivate double lat;\n\tprivate double lon;\n\tprivate double data;\n\t\n\tDataTuple() {\n\t\tthis.lat = 0.0;\n\t\tthis.lon = 0.0;\n\t\tthis.data = 0... | java | chosen |
[
{
"from": "system",
"value": "Add new available search scopes.\n"
},
{
"from": "human",
"value": "package co.omise.models;\n\nimport com.fasterxml.jackson.annotation.JsonProperty;\n\npublic enum SearchScope {\n @JsonProperty(\"dispute\")Dispute,\n @JsonProperty(\"charge\")Charge,\n @Jso... | java | chosen |
[
{
"from": "system",
"value": "Fix stats triggering at count + 1"
},
{
"from": "human",
"value": "package mnm.mods.achget;\n\nimport net.minecraft.entity.player.EntityPlayerMP;\n\npublic class StatHandler {\n\n private final StatAchievement achievement;\n\n public StatHandler(StatAchievemen... | java | chosen |
[
{
"from": "system",
"value": "Write task output to skype window\n"
},
{
"from": "human",
"value": "package pl.mkrystek.mkbot.task;\n\nimport java.util.List;\nimport java.util.concurrent.ScheduledExecutorService;\nimport java.util.concurrent.TimeUnit;\n\nimport org.slf4j.Logger;\nimport org.slf4j... | java | chosen |
[
{
"from": "system",
"value": "Change retry limit from 20 down to 3, to fail fast.\n"
},
{
"from": "human",
"value": "package org.nguyenhuy.buffer.job;\n\nimport android.os.Handler;\nimport com.path.android.jobqueue.Params;\nimport com.squareup.otto.Bus;\n\nimport javax.inject.Inject;\n\n/**\n * ... | java | chosen |
[
{
"from": "system",
"value": "Update problem 204 (still too slow)\n"
},
{
"from": "human",
"value": "package leetcode;\n\n/**\n * https://leetcode.com/problems/count-primes/\n */\npublic class Problem204 {\n public int countPrimes(int n) {\n // TODO:\n return 0;\n }\n \n ... | java | chosen |
[
{
"from": "system",
"value": "Fix timestamp crash in message list view\n"
},
{
"from": "human",
"value": "package com.frinder.frinder.model;\n\nimport org.parceler.Parcel;\n\nimport java.util.Date;\n\n@Parcel(analyze={MessageThread.class})\npublic class MessageThread implements Comparable<Messag... | java | chosen |
[
{
"from": "system",
"value": "Fix compile error when compiling on OS X\n"
},
{
"from": "human",
"value": "package net.md_5.bungee;\n\nimport java.net.InetAddress;\nimport java.net.UnknownHostException;\nimport org.junit.Assert;\nimport org.junit.Test;\n\npublic class ThrottleTest\n{\n\n @Test... | java | chosen |
[
{
"from": "system",
"value": "Include line number in unhandled token exception.\n\ngit-svn-id: 2eebe84b5b32eb059849d530d3c549d0da009da8@114348 cb919951-1609-0410-8833-993d306c94f7\n"
},
{
"from": "human",
"value": "/**\n * File: AbstractObjectFactory.java\n *\n * Author: David Hay (dhay@localmat... | java | chosen |
[
{
"from": "system",
"value": "Revert \"basic bolts check for reportedfailedexception\"\n\nThis reverts commit e8d886485923b0f7a5101e55ded48103751f55a0.\n"
},
{
"from": "human",
"value": "package backtype.storm.topology;\n\nimport backtype.storm.task.OutputCollector;\nimport backtype.storm.task.T... | java | chosen |
[
{
"from": "system",
"value": "Add a custom hashCode and equals for performance.\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2016 higherfrequencytrading.com\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with th... | java | chosen |
[
{
"from": "system",
"value": "Add spinner activity with navigation drawer\n"
},
{
"from": "human",
"value": "package com.alsash.reciper.ui;\n\nimport android.content.Intent;\nimport android.os.Bundle;\nimport android.support.annotation.Nullable;\nimport android.support.design.widget.FloatingActi... | java | chosen |
[
{
"from": "system",
"value": "[MySQL] Use the default number of queries\n"
},
{
"from": "human",
"value": "package sqlancer.dbms;\n\nimport static org.junit.jupiter.api.Assertions.assertEquals;\nimport static org.junit.jupiter.api.Assumptions.assumeTrue;\n\nimport org.junit.jupiter.api.Test;\n\n... | java | chosen |
[
{
"from": "system",
"value": "Set more turns for testing."
},
{
"from": "human",
"value": "package com.ibm.sk;\r\n\r\npublic class WorldConstans {\r\n\r\n\tpublic static final int X_BOUNDRY = 15;\r\n\tpublic static final int Y_BOUNDRY = 10;\r\n\t/**\r\n\t * number of TURNS to evaluate game.\r\n\... | java | chosen |
[
{
"from": "system",
"value": "Disable optimized implementation with compound format.\n\n\ngit-svn-id: 4c5078813df38efa56971a28e09a55254294f104@150562 13f79535-47bb-0310-9956-ffa450edef68\n"
},
{
"from": "human",
"value": "package org.apache.lucene.index;\n\n/**\n * Copyright 2004 The Apache Soft... | java | chosen |
[
{
"from": "system",
"value": "Fix a needless ArithmeticException with TPS tracking\n"
},
{
"from": "human",
"value": "package ee.ellytr.autoclick.tps;\n\npublic class TPSTracker {\n\n private static double lastTick = System.nanoTime();\n private static double tps = 0;\n\n public static ... | java | chosen |
[
{
"from": "system",
"value": "Add svn:ignore to the list of standard properties.\n"
},
{
"from": "human",
"value": "package com.github.cstroe.svndumpgui.api;\n\npublic interface SvnProperty {\n String DATE = \"svn:date\";\n String AUTHOR = \"svn:author\";\n String LOG = \"svn:log\";\n ... | java | chosen |
[
{
"from": "system",
"value": "fix: Add docs to class header\n"
},
{
"from": "human",
"value": "package me.coley.recaf.plugin.api;\n\nimport org.objectweb.asm.ClassVisitor;\n\npublic interface ClassVisitorPlugin extends BasePlugin {\n /**\n * Intercepts the given {@link ClassVisitor}.\n ... | java | chosen |
[
{
"from": "system",
"value": "Fix typing in SPlitFrame return values.\n"
},
{
"from": "human",
"value": "package hex;\n\nimport jsr166y.CountedCompleter;\nimport water.*;\nimport water.fvec.*;\n\npublic class SplitFrame extends Job<SplitFrame> {\n public Frame dataset;\n public double[] ra... | java | chosen |
[
{
"from": "system",
"value": "Add more tests for the SystemTime class\n"
},
{
"from": "human",
"value": "package beaform.utilities;\n\nimport static org.junit.Assert.assertTrue;\n\nimport org.junit.After;\nimport org.junit.Test;\n\npublic class SystemTimeTest {\n\n\t@After\n\tpublic void destroy... | java | chosen |
[
{
"from": "system",
"value": "Change db parameters dbcp for production\n\nWe want to use dbcp on AWS/k8s. This copies over the db parameters we are\ncurrently using in production in our context.xml when using jndi instead of\ndbcp. This change will furthermore make sure when a different institution uses\ndb... | java | chosen |
[
{
"from": "system",
"value": "Return the actual bank number in 0xFF70.\n"
},
{
"from": "human",
"value": "package eu.rekawek.coffeegb.memory;\n\nimport eu.rekawek.coffeegb.AddressSpace;\n\npublic class GbcRam implements AddressSpace {\n\n private int[] ram = new int[7 * 0x1000];\n\n privat... | java | chosen |
[
{
"from": "system",
"value": "Fix SQL connection in blank route\n"
},
{
"from": "human",
"value": "package nuclibook.routes;\n\nimport nuclibook.server.SqlServerConnection;\nimport spark.Request;\nimport spark.Response;\nimport spark.Route;\n\nimport java.sql.Connection;\n\npublic class BlankRou... | java | chosen |
[
{
"from": "system",
"value": "Throw an error for unrecoverable exceptions.\n"
},
{
"from": "human",
"value": "package com.cjmalloy.torrentfs.server;\n\nimport org.eclipse.jetty.server.Server;\nimport org.eclipse.jetty.servlet.ServletContextHandler;\nimport org.eclipse.jetty.servlet.ServletHolder... | java | chosen |
[
{
"from": "system",
"value": "Test commit to new client module"
},
{
"from": "human",
"value": "package com.completetrsst.client;\n\npublic class Application {\n\n public static void main(String[] args) {\n\n }\n\n}\n"
},
{
"from": "gpt",
"value": "package com.completetrsst.cli... | java | chosen |
[
{
"from": "system",
"value": "Add log in user receive.\n"
},
{
"from": "human",
"value": "package com.raillearn;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.web.bind.annotation.*;\n\nimport java.util.List;\n\n@RestController\npublic class TripCon... | java | chosen |
[
{
"from": "system",
"value": "Update package description and remove Galileo ref\n"
},
{
"from": "human",
"value": "/*\nCopyright (c) 2013, Colorado State University\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification,\nare permitted provided t... | java | chosen |
[
{
"from": "system",
"value": "Add debug flag to base test case, by default false.\n"
},
{
"from": "human",
"value": "package com.uwetrottmann.tmdb;\n\nimport junit.framework.TestCase;\n\npublic abstract class BaseTestCase extends TestCase {\n\tprotected static final String API_KEY = \"<FILL-ME-I... | java | chosen |
[
{
"from": "system",
"value": "Use instanceof instead of try clause\n\nFixes https://github.com/CompEvol/beast2/pull/953#pullrequestreview-606074482\n\nAlso replace tabs by 4 space, to make the global diff of this PR more\ntransparent. Apparently I had auto-reformatted the code at some point, which I\nhad ne... | java | chosen |
[
{
"from": "system",
"value": "Allow entry of generic protocols too without forcing a search\n\nE.g. if you try to open ftp:.... we should actually try to open that\ninstead of searching (in future we will try to search for apps that actually\nsupport ftp, followed by falling back to the unsupported protocol... | java | chosen |
[
{
"from": "system",
"value": "Add double quotes for JSON formatting\n"
},
{
"from": "human",
"value": "package data;\n\nimport util.UserAuthUtil;\n\npublic class ResponseBuilder {\n public static String toJson(boolean isLoggedIn, String redirectURL) {\n // sample output (logged in): { \"isLo... | java | chosen |
[
{
"from": "system",
"value": "Fix weird base context bug in sample app\n\nSummary:\nThe demo components are created when you start DemoListActivity and stored in a static map. Each individual demo however, runs in DemoActivity. This means you can get a component with a context based on activity (DemoListAc... | java | chosen |
[
{
"from": "system",
"value": "Add an utility method 'startAll' to start all components."
},
{
"from": "human",
"value": "package cn.shiyanjun.platform.api.utils;\n\nimport cn.shiyanjun.platform.api.LifecycleAware;\n\npublic class ComponentUtils {\n\n\tpublic static void stopAllQuietly(LifecycleA... | java | chosen |
[
{
"from": "system",
"value": "Add function for getting starting power\n"
},
{
"from": "human",
"value": "package io.github.aquerr.eaglefactions.logic;\n\nimport io.github.aquerr.eaglefactions.config.ConfigAccess;\nimport io.github.aquerr.eaglefactions.config.IConfig;\nimport io.github.aquerr.eag... | java | chosen |
[
{
"from": "system",
"value": "Add method to determine if a computer is \"mostly on\"\n\nThis means it is in the process of turning on, is on or is shutting down:\nbasically anything which hasn't been fully stopped.\n"
},
{
"from": "human",
"value": "package org.squiddev.cctweaks.lua.patch;\n\nim... | java | chosen |
[
{
"from": "system",
"value": "Add basic functions for queue\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2015 The Mashub Project\n *\n * The Mashub Project licenses this file to you under the Apache License,\n * version 2.0 (the \"License\"); you may not use this file except in compliance... | java | chosen |
[
{
"from": "system",
"value": "Use Java 8 constructs for unwrap\n"
},
{
"from": "human",
"value": "/*\n * Copyright Terracotta, 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 License.\n * You may obtain a ... | java | chosen |
[
{
"from": "system",
"value": "Disable JPEG decoder test for now.\n"
},
{
"from": "human",
"value": "package us.ihmc.codecs;\r\n\r\nimport static org.junit.jupiter.api.Assertions.*;\r\n\r\nimport java.io.IOException;\r\nimport java.nio.ByteBuffer;\r\nimport java.util.Random;\r\n\r\nimport org.jun... | java | chosen |
[
{
"from": "system",
"value": "Add some logging to alerts\n"
},
{
"from": "human",
"value": "package com.rhomobile.rhodes.alert;\n\npublic class Alert {\n\n\tpublic static void showPopup(String message) {\n\t\t// TODO: implement\n\t}\n\t\n\tpublic static void vibrate(int duration) {\n\t\t// TODO:... | java | chosen |
[
{
"from": "system",
"value": "Add onSelectedListener and native function call to picker"
},
{
"from": "human",
"value": "package com.sometrik.framework;\r\n\r\nimport java.util.ArrayList;\r\nimport java.util.TreeMap;\r\n\r\nimport android.content.Context;\r\nimport android.widget.ArrayAdapter;\r... | java | chosen |
[
{
"from": "system",
"value": "Add \"bc\" alias to /broadcast\n"
},
{
"from": "human",
"value": "package in.twizmwaz.cardinal.command;\n\nimport com.sk89q.minecraft.util.commands.Command;\nimport com.sk89q.minecraft.util.commands.CommandContext;\nimport com.sk89q.minecraft.util.commands.CommandEx... | java | chosen |
[
{
"from": "system",
"value": "Update test for sphere methods"
},
{
"from": "human",
"value": "/*******************************************************************************\n * Copyright 2014, 2018 gwt-ol3\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may no... | java | chosen |
[
{
"from": "system",
"value": "Make object wrapper function idempotent\n"
},
{
"from": "human",
"value": "package com.btk5h.skriptmirror;\n\nimport ch.njol.skript.registrations.Classes;\n\nimport java.util.Arrays;\n\npublic class ObjectWrapper {\n protected Object object;\n\n private ObjectWrap... | java | chosen |
[
{
"from": "system",
"value": "Check provided Activity and ResourceResolver\n"
},
{
"from": "human",
"value": "package android;\n\nimport android.app.Activity;\nimport android.app.ActivityManager;\nimport android.content.Intent;\nimport android.content.res.BaseResourceResolver;\nimport android.co... | java | chosen |
[
{
"from": "system",
"value": "Remove override on createJSModules. Required for RN 0.57.0\n"
},
{
"from": "human",
"value": "\npackage ca.bigdata.voice.dtmf;\n\nimport java.util.Arrays;\nimport java.util.Collections;\nimport java.util.List;\n\nimport com.facebook.react.ReactPackage;\nimport com.f... | java | chosen |
[
{
"from": "system",
"value": "Update example to match others\n"
},
{
"from": "human",
"value": "package io.scanse.sweep;\n\nimport java.util.List;\n\npublic class Example {\n\n public static void main(String[] args) throws Exception {\n try (SweepDevice device = new SweepDevice(\"/dev/... | java | chosen |
[
{
"from": "system",
"value": "Add getter/setter so we can actually use this..."
},
{
"from": "human",
"value": "/*\n * Copyright (C) 2016 Prowave Consulting, LLC\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License ... | java | chosen |
[
{
"from": "system",
"value": "Add required record seperators. Track bytes written."
},
{
"from": "human",
"value": "/*\n * SPDX-License-Identifier: Apache-2.0\n * Copyright (C) 2018 National Library of Australia and the jwarc contributors\n */\n\npackage org.netpreserve.jwarc;\n\nimport java.io.... | java | chosen |
[
{
"from": "system",
"value": "Switch to primarily using the GUI instead of CLI\n"
},
{
"from": "human",
"value": "/*\n * The MIT License\n *\n * Copyright 2016 veeti \"walther\" haapsamo.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software an... | java | chosen |
[
{
"from": "system",
"value": "Add to javadoc, make constructor package private.\n"
},
{
"from": "human",
"value": "package uk.ac.ebi.quickgo.rest.cache;\n\nimport com.google.common.base.Preconditions;\nimport java.time.DayOfWeek;\nimport java.time.LocalTime;\nimport java.util.Objects;\nimport ja... | java | chosen |
[
{
"from": "system",
"value": "Refactor to use method references\n"
},
{
"from": "human",
"value": "package helloworld;\n\nimport static org.requirementsascode.UseCaseModelBuilder.newBuilder;\n\nimport java.util.function.Consumer;\n\nimport org.requirementsascode.UseCaseModel;\nimport org.require... | java | chosen |
[
{
"from": "system",
"value": "Add agro and walk required methods for ai\n"
},
{
"from": "human",
"value": "package revert.AI;\n\nimport revert.Entities.Actor;\n\npublic interface EnemyAi {\n\t\n\t/**\n\t * AI to be invoked when an actor is told to attack\n\t */\n\tpublic void attack(Actor a);\n\... | java | chosen |
[
{
"from": "system",
"value": "Test with more readable time value"
},
{
"from": "human",
"value": "/**\n * Copyright 2009 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.\... | java | chosen |
[
{
"from": "system",
"value": "Support auto-registering of requested concrete component classes.\n"
},
{
"from": "human",
"value": "package geeks.expressive;\n\nimport org.picocontainer.MutablePicoContainer;\nimport org.picocontainer.PicoBuilder;\nimport org.picocontainer.PicoContainer;\nimport o... | java | chosen |
[
{
"from": "system",
"value": "Remove wrong link from Javadoc"
},
{
"from": "human",
"value": "/*\n * Copyright (C) 2010-2014 Hamburg Sud and the contributors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the Lic... | java | chosen |
[
{
"from": "system",
"value": "Add getters for synopsis and payload\n"
},
{
"from": "human",
"value": "package galileo.event;\n\nimport java.io.IOException;\n\nimport galileo.serialization.SerializationInputStream;\nimport galileo.serialization.SerializationOutputStream;\n\n/**\n * Encapsulates a... | java | chosen |
[
{
"from": "system",
"value": "Improve the dispose by disposing the containing atlas\n"
},
{
"from": "human",
"value": "package starpunk;\n\nimport com.badlogic.gdx.Gdx;\nimport com.badlogic.gdx.graphics.g2d.TextureAtlas;\nimport java.util.HashMap;\n\npublic final class AssetManager\n{\n private... | java | chosen |
[
{
"from": "system",
"value": "Align master, 9.0.x and 8.5.x"
},
{
"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 copy... | java | chosen |
[
{
"from": "system",
"value": "Use mask 0xff for the joypad.\n"
},
{
"from": "human",
"value": "package eu.rekawek.coffeegb.controller;\n\nimport eu.rekawek.coffeegb.AddressSpace;\nimport eu.rekawek.coffeegb.cpu.InterruptManager;\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\n\nimpor... | java | chosen |
[
{
"from": "system",
"value": "Improve drink model with ingredients, instructions and history\n"
},
{
"from": "human",
"value": "package fr.masciulli.drinks.model;\n\npublic class Drink {\n private String mName;\n private String mImageURL;\n\n public Drink(String name, String imageURL) {... | java | chosen |
[
{
"from": "system",
"value": "Add comments to GenericsPlugin, refactor GenericsPlugin.getSettings to getDataNode\n"
},
{
"from": "human",
"value": "package com.jcwhatever.bukkit.tpregions;\n\nimport com.jcwhatever.bukkit.generic.GenericsPlugin;\nimport org.bukkit.ChatColor;\nimport org.bukkit.pl... | java | chosen |
[
{
"from": "system",
"value": "Remove persisting of unnecessary permission\n"
},
{
"from": "human",
"value": "package de.stephanlindauer.criticalmaps.utils;\n\nimport android.content.ContentResolver;\nimport android.content.Intent;\nimport android.os.Build;\n\npublic class GpxUtils {\n\n publi... | java | chosen |
[
{
"from": "system",
"value": "Rename ambiguous variable name \"word\" to \"letters\"\n\nThe variable is renamed because it is better to call an ArrayList of Letter\n\"letters\" rather than \"word\".\n"
},
{
"from": "human",
"value": "package com.nigorojr.typebest;\n\nimport java.util.ArrayList;\... | java | chosen |
[
{
"from": "system",
"value": "Add starting anchor to regular expression.\n"
},
{
"from": "human",
"value": "package sqlancer.common;\n\nimport java.util.regex.Matcher;\nimport java.util.regex.Pattern;\n\npublic final class DBMSCommon {\n\n private static final Pattern sqlancerIndexPattern = P... | java | chosen |
[
{
"from": "system",
"value": "Add explanation as to why we depend on Jedis\n"
},
{
"from": "human",
"value": "package redis.embedded.cluster;\n\nimport redis.clients.jedis.*;\n\nimport java.io.*;\n\n// TODO Remove dependency on Jedis\nclass Client implements Closeable {\n\n private final Jedi... | java | chosen |
[
{
"from": "system",
"value": "Delete a tree redo completed"
},
{
"from": "human",
"value": "package GeeksforGeeksPractice;\r\n\r\npublic class _0003DeleteATree {\r\n\tpublic static void main(String args[]){\r\n\t\tTreeNode tn=new TreeNode(1);\r\n\t\ttn.left=new TreeNode(2);\r\n\t\ttn.right=new T... | java | chosen |
[
{
"from": "system",
"value": "Add environment variable for password.\n"
},
{
"from": "human",
"value": "package org.kelley;\n\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.context.annotation.Configuration;\nimport org.springframework.security.config.... | java | chosen |
[
{
"from": "system",
"value": "Save data in local DB.\n"
},
{
"from": "human",
"value": "package cloudsimulator.requestsimulator.config;\n\nimport com.mongodb.Mongo;\nimport com.mongodb.MongoClient;\nimport org.springframework.context.annotation.Bean;\nimport org.springframework.context.annotatio... | java | chosen |
[
{
"from": "system",
"value": "Implement the client bus register in the construct annotation for test\nmod"
},
{
"from": "human",
"value": "package info.u_team.u_team_test.init;\n\nimport info.u_team.u_team_core.util.registry.BusRegister;\n\npublic class TestClientBusRegister {\n\t\n\tpublic stat... | java | chosen |
[
{
"from": "system",
"value": "Add slash if not present\n"
},
{
"from": "human",
"value": "/*\n * This file is released under terms of BSD license\n * See LICENSE file for more information\n */\n\npackage cx2x.xcodeml.xnode;\n\nimport org.w3c.dom.Document;\n\n/**\n * The Xmod represents the modul... | java | chosen |
[
{
"from": "system",
"value": "Support for SystemConfig and EnvConfig when not using DI\n"
},
{
"from": "human",
"value": "package com.netflix.evcache.util;\n\n\nimport javax.inject.Inject;\n\nimport com.netflix.archaius.DefaultPropertyFactory;\nimport com.netflix.archaius.api.PropertyRepository;... | java | chosen |
[
{
"from": "system",
"value": "Extend simple field from `SubscribableField`\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 notic... | java | chosen |
[
{
"from": "system",
"value": "Change to the Stripes test fixture to supply the new init-param ActionResolver.Packages\n\ngit-svn-id: eee8cf2eb4cac5fd9f9d7b672efb1c285d99a606@436 d471f07e-d8fc-0310-a67b-dd4c8ff0e7cd\n"
},
{
"from": "human",
"value": "package net.sourceforge.stripes;\n\nimport net... | java | chosen |
[
{
"from": "system",
"value": "Fix to make the Spring Boot standalone JAR runnable."
},
{
"from": "human",
"value": "package se.ivankrizsan.restexample.restadapter;\n\nimport org.glassfish.jersey.server.ResourceConfig;\nimport org.springframework.stereotype.Component;\n\n/**\n * Jersey configurat... | java | chosen |
[
{
"from": "system",
"value": "Tweak license labels for consistency\n"
},
{
"from": "human",
"value": "package net.squanchy.about.licenses;\n\nimport android.support.annotation.StringRes;\n\nimport net.squanchy.R;\n\nenum License {\n APACHE_2(\"Apache 2.0\", R.string.license_notice_apache_2),\... | java | chosen |
[
{
"from": "system",
"value": "Add baseCalbackUrl as app configuration\n"
},
{
"from": "human",
"value": "package org.aslak.github.merge.model;\n\nimport javax.annotation.PostConstruct;\nimport javax.ejb.Singleton;\nimport javax.ejb.Startup;\n\n@Singleton @Startup\npublic class CurrentApp {\n\n ... | java | chosen |
[
{
"from": "system",
"value": "Add particle count parameter to Smoke effect\n"
},
{
"from": "human",
"value": "package de.slikey.effectlib.effect;\n\nimport de.slikey.effectlib.Effect;\nimport de.slikey.effectlib.EffectManager;\nimport de.slikey.effectlib.EffectType;\nimport org.bukkit.Particle;\... | java | chosen |
[
{
"from": "system",
"value": "Support user/password containing / and @\n"
},
{
"from": "human",
"value": "package org.utplsql.cli;\n\nimport java.util.regex.Matcher;\nimport java.util.regex.Pattern;\n\npublic class ConnectionConfig {\n\n private final String user;\n private final String pa... | java | chosen |
[
{
"from": "system",
"value": "Make sure ConfigFactory is in Singleton scope\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... | java | chosen |
[
{
"from": "system",
"value": "Fix 16-bit unsigned hex parsing Exception with custom unsigned hex parser.\n"
},
{
"from": "human",
"value": "package com.example.testapp;\n\nimport java.net.InetAddress;\n\n/** All public data members, similar to a C-struct */\npublic class ClientDevice {\n\tpublic... | java | chosen |
[
{
"from": "system",
"value": "Update naming for NeuralNet2 Progress.\n"
},
{
"from": "human",
"value": "package water.api;\n\nimport hex.nn.NNModel;\nimport water.Job;\nimport water.Key;\nimport water.UKV;\n\npublic class NNProgressPage extends Progress2 {\n /** Return {@link water.api.RequestB... | java | chosen |
[
{
"from": "system",
"value": "Fix breaking changes in React Native 0.47\n\n- 'createJSModules' was removed in RN 0.47, so the original code has\n nothing to override and building fails. Remove the override, but not the\n function, to maintain BC.\n- See https://github.com/facebook/react-native/commit/ce6f... | java | chosen |
[
{
"from": "system",
"value": "Create subdirectory in temporary folder\n"
},
{
"from": "human",
"value": "package io.digdag.server.rs;\n\nimport org.junit.Before;\nimport org.junit.Rule;\nimport org.junit.Test;\nimport org.junit.rules.TemporaryFolder;\nimport utils.CommandStatus;\nimport utils.Te... | java | chosen |
[
{
"from": "system",
"value": "Implement first shot at main method"
},
{
"from": "human",
"value": "package ca.ubc.ca.ocrreader;\n\npublic class ContextCompareLoader {\n\n\tpublic static void main(String[] args) {\n\t\t// get the file where images are stored\n\t\t// iterate over all files and pas... | java | chosen |
[
{
"from": "system",
"value": "Add digital input in Arm"
},
{
"from": "human",
"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 editor.\r\n */\r\npackage ... | java | chosen |
[
{
"from": "system",
"value": "Fix test case to account for method rename\n"
},
{
"from": "human",
"value": "import java.io.File;\nimport org.opensim.modeling.*;\n\nclass TestXsensDataReader {\n public static void test_XsensDataReader() {\n\n // Test creation and population of XsensData... | java | chosen |
[
{
"from": "human",
"value": "Document and annotate `aggregate.storage` package\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright 2017, TeamDev Ltd. All rights reserved.\n *\n * Redistribution and use in source and/or binary forms, with or without\n * modification, must retain the above copyright... | java | chosen |
[
{
"from": "system",
"value": "Fix initialization of the Set trough comma separated values"
},
{
"from": "human",
"value": "package af.props;\n\nimport java.util.ArrayList;\nimport java.util.HashMap;\nimport java.util.HashSet;\nimport java.util.List;\nimport java.util.Map;\nimport java.util.Set;\... | java | chosen |
[
{
"from": "system",
"value": "Use Junit4 and fix accessibility bug\n"
},
{
"from": "human",
"value": "package com.justcoffee.projects.core;\n\n\nimport org.junit.jupiter.api.Test;\n\nimport static org.junit.jupiter.api.Assertions.assertEquals;\n\nclass SolarSystemTest {\n\n @Test\n public ... | java | chosen |
[
{
"from": "system",
"value": "Remove the use of the BSONByteBuffer\n"
},
{
"from": "human",
"value": "/*\n * Copyright (C) 2011 Benoit GUEROUT <bguerout at gmail dot com> and Yves AMSELLEM <amsellem dot yves at gmail dot com>\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\... | java | chosen |
[
{
"from": "system",
"value": "Add annotations to prevent ibatis binding exception\n"
},
{
"from": "human",
"value": "package fi.nls.oskari.map.layer;\n\nimport fi.nls.oskari.domain.map.DataProvider;\nimport org.apache.ibatis.annotations.*;\nimport org.json.JSONObject;\n\nimport java.util.List;\n... | java | chosen |
[
{
"from": "system",
"value": "Remove join in offline account cache\n"
},
{
"from": "human",
"value": "package peergos.shared.login;\n\nimport peergos.shared.crypto.asymmetric.*;\nimport peergos.shared.user.*;\n\nimport java.util.*;\nimport java.util.concurrent.*;\n\npublic class OfflineAccountSt... | java | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.