conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Add problem description of height of tree.\n"
},
{
"from": "human",
"value": "/**\n * Created by youweilu on 4/9/17.\n */\npublic class HeightofaTree{\n private static int treeHeight(Node n){\n if(n==null)return 0;\n return 1+Math.max(treeHeight(n.g... | java | chosen |
[
{
"from": "system",
"value": "Add License item to Help menu.\n"
},
{
"from": "human",
"value": "package com.github.aureliano.edocs.app.gui.menu;\n\nimport javax.swing.JMenu;\n\npublic class HelpMenu extends JMenu {\n\n\tprivate static final long serialVersionUID = -3275074190970882751L;\n\n\tpri... | java | chosen |
[
{
"from": "system",
"value": "Test for using local variables\n"
},
{
"from": "human",
"value": "// Copyright © 2013 Esko Luontola <www.orfjackal.net>\n// This software is released under the Apache License 2.0.\n// The license text is at http://www.apache.org/licenses/LICENSE-2.0\n\npackage net.o... | java | chosen |
[
{
"from": "system",
"value": "Make permission nodes better again\n"
},
{
"from": "human",
"value": "package com.bwfcwalshy.flarebot.permissions;\n\nimport java.util.function.Predicate;\n\npublic class PermissionNode implements Predicate<PermissionNode> {\n\n private final String node;\n\n ... | java | chosen |
[
{
"from": "system",
"value": "Add throws IOException to getCredentials"
},
{
"from": "human",
"value": "package org.bouncycastle.crypto.tls;\r\n\r\nimport java.io.IOException;\r\nimport java.util.Hashtable;\r\n\r\npublic interface TlsServer {\r\n\r\n void init(TlsServerContext context);\r\n\r... | java | chosen |
[
{
"from": "system",
"value": "Update Javadoc in class placeholder test\n"
},
{
"from": "human",
"value": "package org.tinylog.impl.format;\n\nimport org.junit.jupiter.api.Test;\nimport org.tinylog.impl.LogEntry;\nimport org.tinylog.impl.test.LogEntryBuilder;\nimport org.tinylog.impl.test.Placeho... | java | chosen |
[
{
"from": "system",
"value": "Add heartbeat listener to mock channel provider class\n"
},
{
"from": "human",
"value": "package com.simperium.test;\n\nimport com.simperium.client.Bucket;\nimport com.simperium.client.ChannelProvider;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic... | java | chosen |
[
{
"from": "system",
"value": "Use class loader resource in test.\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 regardin... | java | chosen |
[
{
"from": "system",
"value": "Solve problem 238 without using division\n"
},
{
"from": "human",
"value": "package leetcode;\n\nimport java.util.Arrays;\n\n/**\n * https://leetcode.com/problems/product-of-array-except-self/\n */\npublic class Problem238 {\n public int[] productExceptSelf(int[] ... | java | chosen |
[
{
"from": "system",
"value": "Use BOOLEAN as default H2 boolean type.\n"
},
{
"from": "human",
"value": "package it.unibz.inf.ontop.model.type.impl;\n\nimport com.google.common.collect.ImmutableMap;\nimport com.google.inject.assistedinject.Assisted;\nimport com.google.inject.assistedinject.Assis... | java | chosen |
[
{
"from": "system",
"value": "Determine whether coordinates are relative\n"
},
{
"from": "human",
"value": "import java.util.*;\n\nclass PathDElement {\n char type;\n ArrayList<Float> values; \n PathDElement() {\n values = new ArrayList<Float>(); \n }\n}\n\nclass PathDParser {\n \n ... | java | chosen |
[
{
"from": "system",
"value": "Fix wrench capability failing to register\n"
},
{
"from": "human",
"value": "package org.cyclops.commoncapabilities.capability.wrench;\n\nimport net.minecraft.world.IWorldNameable;\nimport net.minecraftforge.common.capabilities.Capability;\nimport net.minecraftforge... | java | chosen |
[
{
"from": "system",
"value": "Address TODO in force type cast method\n"
},
{
"from": "human",
"value": "package com.sleekbyte.tailor.listeners;\n\nimport com.sleekbyte.tailor.antlr.SwiftBaseListener;\nimport com.sleekbyte.tailor.antlr.SwiftParser;\nimport com.sleekbyte.tailor.common.Location;\ni... | java | chosen |
[
{
"from": "system",
"value": "Store the SPARQL update queries\n"
},
{
"from": "human",
"value": "package uk.ac.abdn.foodsafety.provenance;\n\nimport java.util.Observable;\n\nimport uk.ac.abdn.foodsafety.common.Logging;\nimport eu.larkc.csparql.common.RDFTable;\nimport eu.larkc.csparql.core.Resul... | java | chosen |
[
{
"from": "system",
"value": "Set main frame default location.\n"
},
{
"from": "human",
"value": "package com.github.aureliano.edocs.app.gui;\n\nimport java.awt.BorderLayout;\nimport java.awt.Dimension;\n\nimport javax.swing.JFrame;\nimport javax.swing.JPanel;\n\nimport com.github.aureliano.edoc... | java | chosen |
[
{
"from": "system",
"value": "Rewrite ternary operator. Remove unnecessary casting of the object to compare\n"
},
{
"from": "human",
"value": "package entity;\n\nimport java.util.HashSet;\nimport java.util.Set;\n\n/**\n * Created by Jakob Pfeiffer on 19.10.17.\n */\npublic abstract class BaseEnt... | java | chosen |
[
{
"from": "system",
"value": "Add method to get handler in sound rewriter\n"
},
{
"from": "human",
"value": "package us.myles.ViaVersion.api.rewriters;\n\nimport us.myles.ViaVersion.api.protocol.ClientboundPacketType;\nimport us.myles.ViaVersion.api.protocol.Protocol;\nimport us.myles.ViaVersion... | java | chosen |
[
{
"from": "system",
"value": "Check if two blocks are non-solid before moving forward.\n"
},
{
"from": "human",
"value": "package de.craften.plugins.educraft.luaapi.functions;\n\nimport de.craften.plugins.educraft.luaapi.EduCraftApiFunction;\nimport org.bukkit.Location;\nimport org.luaj.vm2.LuaV... | java | chosen |
[
{
"from": "system",
"value": "Fix instrument does not exist for id bug in survey launch receiver\n"
},
{
"from": "human",
"value": "package org.adaptlab.chpir.android.survey.Receivers;\n\nimport org.adaptlab.chpir.android.survey.SurveyActivity;\nimport org.adaptlab.chpir.android.survey.SurveyFra... | java | chosen |
[
{
"from": "system",
"value": "Change Ribots database version from 2 to 1\n\n"
},
{
"from": "human",
"value": "package com.vikashkothary.life.data.local;\n\nimport android.content.Context;\nimport android.database.sqlite.SQLiteDatabase;\nimport android.database.sqlite.SQLiteOpenHelper;\n\nimport ... | java | chosen |
[
{
"from": "system",
"value": "Add javadoc to source dao.\n\ngit-svn-id: 4b387fe5ada7764508e2ca96c335714e4c1692c6@2436 0d517254-b314-0410-acde-c619094fa49f\n"
},
{
"from": "human",
"value": "package edu.northwestern.bioinformatics.studycalendar.dao;\n\nimport edu.northwestern.bioinformatics.study... | java | chosen |
[
{
"from": "system",
"value": "Fix empty author assignment inline if\n"
},
{
"from": "human",
"value": "package com.indeed.proctor.builder.maven;\n\nimport com.indeed.proctor.builder.LocalProctorBuilder;\nimport org.apache.maven.plugin.AbstractMojo;\nimport org.apache.maven.plugin.MojoExecutionEx... | java | chosen |
[
{
"from": "system",
"value": "[auth] Add injected values check infra, and add checkcs for product and ProductChange.\n"
},
{
"from": "human",
"value": "package to.etc.domui.injector;\n\nimport org.eclipse.jdt.annotation.Nullable;\nimport to.etc.domui.dom.html.AbstractPage;\nimport to.etc.util.Pr... | java | chosen |
[
{
"from": "system",
"value": "Update the 'send' parameter to work with the actual API spec\n"
},
{
"from": "human",
"value": "package com.tozny.sdk.realm.methods.email_challenge;\n\nimport com.fasterxml.jackson.annotation.JsonAutoDetect;\nimport com.fasterxml.jackson.annotation.JsonProperty;\nim... | java | chosen |
[
{
"from": "system",
"value": "Configure JDK while importing a project\n\nRB: https://rbcommons.com/s/twitter/r/956/\n"
},
{
"from": "human",
"value": "package com.twitter.intellij.pants.service.project.wizard;\n\nimport com.intellij.openapi.externalSystem.service.project.wizard.AbstractExternalP... | java | chosen |
[
{
"from": "system",
"value": "Add copyright and a little bit of javadoc.\n"
},
{
"from": "human",
"value": "package org.opennms.netmgt.model;\n\nimport org.hibernate.criterion.Criterion;\nimport org.hibernate.criterion.Restrictions;\nimport org.hibernate.type.StringType;\n\npublic class OnmsRest... | java | chosen |
[
{
"from": "system",
"value": "Test cases for slavelabel check\n"
},
{
"from": "human",
"value": "package org.jenkins.ci.plugins.jenkinslint.check;\n\nimport hudson.slaves.DumbSlave;\nimport org.junit.Rule;\nimport org.junit.Test;\nimport org.jvnet.hudson.test.JenkinsRule;\n\nimport static org.ju... | java | chosen |
[
{
"from": "system",
"value": "Use the method in test loot tables now"
},
{
"from": "human",
"value": "package info.u_team.u_team_test.data.provider;\n\nimport java.util.function.BiConsumer;\n\nimport info.u_team.u_team_core.data.*;\nimport info.u_team.u_team_test.init.*;\nimport net.minecraft.ut... | java | chosen |
[
{
"from": "system",
"value": "Use Opcodes.ASM7_EXPERIMENTAL if system property spotbugs.experimental=true\n"
},
{
"from": "human",
"value": "/*\n * FindBugs - Find Bugs in Java programs\n * Copyright (C) 2003-2008 University of Maryland\n *\n * This library is free software; you can redistribute... | java | chosen |
[
{
"from": "system",
"value": "Add function that takes a Collection of beans and returns a Set of ids\n"
},
{
"from": "human",
"value": "package org.beanmaker.util;\n\npublic class Ids {\n\n public static String getProtectionCodeFromParameterName(final String parameterName) {\n return g... | java | chosen |
[
{
"from": "system",
"value": "Revert \"Fix bug in strategy\"\n\nThis reverts commit 706d13192eff33a3c71d5279e50a2830fc9d6568.\n\nConflicts:\n\tsrc/Engine/Strategy.java\n"
},
{
"from": "human",
"value": "package Engine;\n\nimport java.util.HashMap;\n\npublic class Strategy {\n\n HashMap<String... | java | chosen |
[
{
"from": "system",
"value": "Add reset color to default mention templates.\n"
},
{
"from": "human",
"value": "package com.nguyenquyhy.discordbridge.models;\n\nimport ninja.leaping.configurate.objectmapping.Setting;\nimport ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable;\n\... | java | chosen |
[
{
"from": "system",
"value": "Fix Spring CORS Filter impl\n"
},
{
"from": "human",
"value": "package com.porterhead.filter.spring;\n\nimport com.porterhead.filter.BaseCORSFilter;\nimport org.springframework.beans.factory.annotation.Value;\nimport org.springframework.stereotype.Component;\n\nimpo... | java | chosen |
[
{
"from": "system",
"value": "Add the ingest param to the context only if present\n"
},
{
"from": "human",
"value": "/*\n * Licensed to Elasticsearch under one or more contributor\n * license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copy... | java | chosen |
[
{
"from": "system",
"value": "[Android] Return the correct context for external extensions\n\nThe previous implementation returns the context of runtime side which is\na context for library package. This is true for internal extensions. However,\nfor external extensions, the context should be the same as th... | java | chosen |
[
{
"from": "system",
"value": "Update to match new framework\n"
},
{
"from": "human",
"value": "package dk.statsbiblioteket.medieplatform.newspaper.ninestars;\n\n\nimport dk.statsbiblioteket.medieplatform.autonomous.Batch;\nimport dk.statsbiblioteket.medieplatform.autonomous.ResultCollector;\nimp... | java | chosen |
[
{
"from": "system",
"value": "Add further output to main\n"
},
{
"from": "human",
"value": "package com.greetings;\n\nimport java.util.concurrent.ConcurrentHashMap;\n\npublic class Main {\n public static void main(String[] args) {\n System.out.println(new ConcurrentHashMap());\n }\n... | java | chosen |
[
{
"from": "system",
"value": "Fix for loading bar flicking to empty for some steps.\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2013 MovingBlocks\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": "Remove tokens from parse forest\n"
},
{
"from": "human",
"value": "package org.spoofax.jsglr2.parseforest;\n\nimport org.spoofax.jsglr.client.imploder.IToken;\nimport org.spoofax.jsglr2.parser.Position;\n\npublic abstract class AbstractParseForest {\n\n private f... | java | chosen |
[
{
"from": "system",
"value": "Add \"short\" param serialized name.\n"
},
{
"from": "human",
"value": "package com.github.daniel_sc.rocketchat.modern_client.request;\n\n/**\n * {@link} https://rocket.chat/docs/developer-guides/rest-api/chat/postmessage/#attachments-detail\n *\n */\npublic class A... | java | chosen |
[
{
"from": "system",
"value": "Add the reading from file in the test programme java\n\n"
},
{
"from": "human",
"value": "import java.util.*;\nimport machine.learning.ARL;\n\npublic class Programme {\n\n public static void main(String[] args){\n\n ArrayList array = new ArrayList<Double>(... | java | chosen |
[
{
"from": "system",
"value": "Make reachable depend on availability\n"
},
{
"from": "human",
"value": "package com.phonegap.demo;\n\nimport org.apache.http.client.methods.HttpGet;\nimport org.apache.http.impl.client.DefaultHttpClient;\n\nimport android.content.Context;\nimport android.net.*;\nim... | java | chosen |
[
{
"from": "system",
"value": "Use error log instead of sys out"
},
{
"from": "human",
"value": "package org.javaan;\n\nimport java.io.IOException;\nimport java.io.PrintStream;\nimport java.util.List;\n\nimport org.apache.commons.cli.CommandLine;\nimport org.javaan.model.Type;\nimport org.slf4j.L... | java | chosen |
[
{
"from": "system",
"value": "Test to ensure LocalMappingBuilder and RemoteMappingBuilder are the same\n"
},
{
"from": "human",
"value": "package com.github.tomakehurst.wiremock.client;\n\nimport org.jmock.Expectations;\nimport org.jmock.Mockery;\nimport org.junit.Test;\n\npublic class LocalMapp... | java | chosen |
[
{
"from": "system",
"value": "Fix bot placing blocks inside entities.\n"
},
{
"from": "human",
"value": "package de.craften.plugins.educraft.luaapi.functions;\n\nimport de.craften.plugins.educraft.luaapi.EduCraftApiFunction;\nimport org.luaj.vm2.LuaValue;\nimport org.luaj.vm2.Varargs;\n\n/**\n *... | java | chosen |
[
{
"from": "system",
"value": "Add debug messages for all region actions..\n"
},
{
"from": "human",
"value": "package au.com.mineauz.minigamesregions.actions;\n\nimport java.util.Map;\n\nimport org.bukkit.configuration.file.FileConfiguration;\n\nimport au.com.mineauz.minigames.MinigamePlayer;\nim... | java | chosen |
[
{
"from": "system",
"value": "Set valid parents on carousel item"
},
{
"from": "human",
"value": "/*\n * Copyright (c) 2014 Darren Scott - All Rights Reserved\n * \n * This program is distributed under LGPL Version 2.1 in the hope that\n * it will be useful, but WITHOUT ANY WARRANTY.\n */\npacka... | java | chosen |
[
{
"from": "system",
"value": "[INTENG-3874] Add Snapchat to Sharesheet Enum\n\nA partner requested we add Snapchat to the shareSheet. However, it is a known issue that app.links don't linkify in Snapchat chat. \r\n\r\nAdding this small change in case we do want to support it.\r\n\r\nTesting:\r\n- Snapchat s... | java | chosen |
[
{
"from": "system",
"value": "Fix encoding (breaks for some configurations)\n"
},
{
"from": "human",
"value": "package openmods.utils;\n\nimport java.util.Random;\n\npublic class StringUtils {\n\n\tpublic static final String AB = \"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n\tpublic static Random ... | java | chosen |
[
{
"from": "system",
"value": "Support naming the Crunch pipelines.\n"
},
{
"from": "human",
"value": "package org.kitesdk.apps.crunch;\n\nimport org.kitesdk.apps.scheduled.AbstractSchedulableJob;\nimport org.apache.crunch.Pipeline;\nimport org.apache.crunch.impl.mr.MRPipeline;\n\n/**\n * Abstrac... | java | chosen |
[
{
"from": "system",
"value": "Replace bad usage of SimpleDateFormat with threadsafe java 8 DateTimeFormatter.\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2017-present Open Networking Foundation\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use ... | java | chosen |
[
{
"from": "system",
"value": "Allow CORS access to the /info/ endpoint\n"
},
{
"from": "human",
"value": "package org.marsik.elshelves.backend.app.servlet;\n\nimport org.springframework.stereotype.Component;\n\nimport javax.servlet.Filter;\nimport javax.servlet.FilterChain;\nimport javax.servlet... | java | chosen |
[
{
"from": "system",
"value": "Use single binding with '*' as scheme.\n"
},
{
"from": "human",
"value": "// Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\npackage com.yahoo.vespa.model.admin;\n\nimport com.yahoo.config.model.deploy.D... | java | chosen |
[
{
"from": "system",
"value": "Reset to device connection usb communication\n\n"
},
{
"from": "human",
"value": "package com.github.mjdev.libaums.usb;\n\nimport android.hardware.usb.UsbDeviceConnection;\nimport android.hardware.usb.UsbEndpoint;\nimport android.os.Build;\nimport android.util.Log;\... | java | chosen |
[
{
"from": "system",
"value": "Add Check for Negative Value.\n"
},
{
"from": "human",
"value": "package com.streever.hadoop.hive.money.honey;\n\nimport org.apache.commons.logging.Log;\nimport org.apache.commons.logging.LogFactory;\nimport org.apache.hadoop.hive.ql.exec.Description;\nimport org.ap... | java | chosen |
[
{
"from": "system",
"value": "Improve coverart fetching\n- Replace the whole LastFM project by a single class.\n"
},
{
"from": "human",
"value": "package com.namelessdev.mpdroid.cover;\n\nimport de.umass.lastfm.Album;\nimport de.umass.lastfm.ImageSize;\n\npublic class LastFMCover implements ICov... | java | chosen |
[
{
"from": "system",
"value": "Add JUnit test cases for command type under BakaProcessor\n"
},
{
"from": "human",
"value": "package bakatxt.test;\n\nimport static org.junit.Assert.*;\n\nimport org.junit.AfterClass;\nimport org.junit.Test;\n\npublic class BakaProcessorTest {\n\n @AfterClass\n ... | java | chosen |
[
{
"from": "system",
"value": "Add the null check/initialization for the characteristics delegation to active as well.\n"
},
{
"from": "human",
"value": "package com.oath.cyclops.internal.stream.spliterators;\n\nimport java.util.Iterator;\nimport java.util.Spliterator;\nimport java.util.Spliterat... | java | chosen |
[
{
"from": "system",
"value": "Use constructor injection for Jersey sample\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2012-2014 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 wit... | java | chosen |
[
{
"from": "system",
"value": "Add map recycling in BitmapMatcher\n"
},
{
"from": "human",
"value": "package com.jraska.falcon.sample.matchers;\n\nimport android.graphics.Bitmap;\nimport android.graphics.BitmapFactory;\nimport org.hamcrest.Description;\nimport org.hamcrest.Matcher;\nimport org.ha... | java | chosen |
[
{
"from": "system",
"value": "Add method to send data (sendUsageData)\n"
},
{
"from": "human",
"value": "package controller;\n\n/*\n* Copyright (c) ${date}, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.\n*\n* WSO2 Inc. licenses this file to you under the Apache License,\n* Version 2.0 ... | java | chosen |
[
{
"from": "system",
"value": "Fix accidental removal of WeakReference\n\n+review REVIEW-5606\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2015 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 ... | java | chosen |
[
{
"from": "system",
"value": "Update the factory after common js editor change"
},
{
"from": "human",
"value": "/*******************************************************************************\n * Copyright (c) 2014 Codenvy, S.A.\n * All rights reserved. This program and the accompanying materia... | java | chosen |
[
{
"from": "system",
"value": "Improve documentation of Euclidean distance strategy.\n"
},
{
"from": "human",
"value": "package cs437.som.distancemetrics;\n\nimport cs437.som.DistanceMetric;\nimport cs437.som.SOMError;\n\n/**\n * Euclidean distance strategy.\n */\npublic class EuclideanDistanceMe... | java | chosen |
[
{
"from": "system",
"value": "Add a criterion kind for extends/implements. It's not used anywhere yet. An option would be to have separate constants for extends and implements, but that's probably not needed.\n"
},
{
"from": "human",
"value": "package annotator.find;\n\nimport com.sun.source.uti... | java | chosen |
[
{
"from": "system",
"value": "Fix crash problem on orientation change\n"
},
{
"from": "human",
"value": "package se.treehou.ng.ohcommunicator.connector.models;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\nimport se.treehou.ng.ohcommunicator.connector.ConnectorUtil;\n\npublic class O... | java | chosen |
[
{
"from": "system",
"value": "Fix incompatibility between IntelliJ<=10.0.2 and >10.0.2 (build 103.72)\n\ngit-svn-id: 0427e1078a53407f977bcf4fee640b7bafc12131@136 9796b3e4-e716-bb5d-d578-ca2f8dc3330c\n"
},
{
"from": "human",
"value": "package de.plushnikov.intellij.lombok.util;\r\n\r\nimport com.... | java | chosen |
[
{
"from": "system",
"value": "Add querydsl to wordgrid repository\n"
},
{
"from": "human",
"value": "/*\n * WordGridRepository.java\n *\n * Copyright (C) 2017 [ A Legge Up ]\n *\n * This software may be modified and distributed under the terms\n * of the MIT license. See the LICENSE file for de... | java | chosen |
[
{
"from": "system",
"value": "Fix bed pieces not rendering when z-fighting fix is enabled (whoops).\n"
},
{
"from": "human",
"value": "package carpentersblocks.renderer;\n\nimport net.minecraft.block.Block;\nimport carpentersblocks.block.BlockBase;\nimport cpw.mods.fml.relauncher.Side;\nimport c... | java | chosen |
[
{
"from": "system",
"value": "Add switch hostname to node entity\n"
},
{
"from": "human",
"value": "// Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\npackage com.yahoo.vespa.hosted.controller.api.integration.entity;\n\nimport java.u... | java | chosen |
[
{
"from": "system",
"value": "Stop using weak references to keep track of subscribers\n\nIt turns out that we don't actually reference them elsewhere in some cases where\nthey're still needed, so the UI was pretty much completely non-functional in the\nemulator.\n"
},
{
"from": "human",
"value":... | java | chosen |
[
{
"from": "system",
"value": "Fix use of deprecated api\n"
},
{
"from": "human",
"value": "package de.christinecoenen.code.zapp.utils.video;\n\nimport android.view.View;\n\nimport com.google.android.exoplayer2.Player;\n\nimport java.lang.ref.WeakReference;\n\n/**\n * Allows the screen to turn of... | java | chosen |
[
{
"from": "system",
"value": "Use existing method to create an AddFileInterface\n"
},
{
"from": "human",
"value": "// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\npackage com.yahoo.vespa.config.server.filedistribution;\n\nimport c... | java | chosen |
[
{
"from": "system",
"value": "Use CachingConnectionFactory when creating Rabbit connections\n\nChange-Id: I1b56a6c701d35dbf5823e342d43f1a778e38e528\n"
},
{
"from": "human",
"value": "package org.cloudfoundry.runtime.service.messaging;\n\nimport org.cloudfoundry.runtime.env.CloudEnvironment;\nimp... | java | chosen |
[
{
"from": "system",
"value": "Update penjualan abstract tabel model"
},
{
"from": "human",
"value": "package com.rizki.mufrizal.aplikasi.inventory.abstractTableModel;\n\n/**\n *\n * @Author Rizki Mufrizal <mufrizalrizki@gmail.com>\n * @Since Mar 20, 2016\n * @Time 1:26:45 PM\n * @Encoding UTF-8\... | java | chosen |
[
{
"from": "system",
"value": "Add test case for VectorTimestamp ctor\n"
},
{
"from": "human",
"value": "package rxbroadcast;\n\nimport nl.jqno.equalsverifier.EqualsVerifier;\nimport org.junit.Test;\n\n@SuppressWarnings({\"checkstyle:MagicNumber\"})\npublic final class VectorTimestampTest {\n ... | java | chosen |
[
{
"from": "system",
"value": "Use meta-config and commons-configuration to get location of ORDS server config, rather than CommonVars class\n"
},
{
"from": "human",
"value": "package uk.ac.ox.it.ords.api.statistics.services.impl;\n\nimport java.io.FileNotFoundException;\nimport java.util.Arrays;... | java | chosen |
[
{
"from": "system",
"value": "Use simple cache for known transactions\n"
},
{
"from": "human",
"value": "package io.debezium.examples.cacheinvalidation.persistence;\n\nimport java.util.concurrent.TimeUnit;\n\nimport javax.annotation.PreDestroy;\nimport javax.enterprise.context.ApplicationScoped;... | java | chosen |
[
{
"from": "system",
"value": "Convert sync upload test to use getBlobOutputStream()\n- Most similar to Track1 upload() method\n- Track2 upload() method only supports blobs up to 256 MB\n"
},
{
"from": "human",
"value": "package com.azure.storage.blob.perfstress;\n\nimport java.io.IOException;\ni... | java | chosen |
[
{
"from": "system",
"value": "Use Provider annotation in filter with injected Context\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2016 Lime - HighTech Solutions s.r.o.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compli... | java | chosen |
[
{
"from": "system",
"value": "Clean up test for BinaryFILE writer\n"
},
{
"from": "human",
"value": "package com.paritytrading.nassau.binaryfile;\n\nimport static com.paritytrading.nassau.Strings.*;\nimport static java.util.Arrays.*;\nimport static org.junit.Assert.*;\n\nimport java.io.ByteArray... | java | chosen |
[
{
"from": "system",
"value": "Fix test failures with yaml\n"
},
{
"from": "human",
"value": "package org.apereo.cas.services.util;\n\nimport com.fasterxml.jackson.core.JsonFactory;\nimport com.fasterxml.jackson.dataformat.yaml.YAMLFactory;\n\n/**\n * This is {@link RegisteredServiceYamlSerialize... | java | chosen |
[
{
"from": "system",
"value": "Add DEFAULT_MAX_DELAY as 200 ms.\n"
},
{
"from": "human",
"value": "/*\n * Kurento Android Media: Android Media Library based on FFmpeg.\n * Copyright (C) 2011 Tikal Technologies\n *\n * This program is free software: you can redistribute it and/or modify\n * it un... | java | chosen |
[
{
"from": "system",
"value": "[PLAT-3891] Exit with -1 status if server failed to start up\n"
},
{
"from": "human",
"value": "/**\n * Copyright (C) 2011 - present by OpenGamma Inc. and the OpenGamma group of companies\n *\n * Please see distribution for license.\n */\npackage com.opengamma.integ... | java | chosen |
[
{
"from": "system",
"value": "Enable context logging based on class loader for web applications as well\n\nsvn path=/trunk/openspaces/; revision=56810\n\n\nFormer-commit-id: 8ff005d892540fff54955d50bcd10492a862efcd"
},
{
"from": "human",
"value": "package org.openspaces.pu.container.jee.jetty.su... | java | chosen |
[
{
"from": "system",
"value": "Fix precision issue on MacOS\n\nCo-authored-by: Marco Geweke <8bae85dbfa00ce59d1b81e4121747343f331087b@otto.de>\n"
},
{
"from": "human",
"value": "package de.otto.jlineup.image;\n\nimport org.junit.Test;\n\nimport static org.hamcrest.CoreMatchers.is;\nimport static ... | java | chosen |
[
{
"from": "system",
"value": "Remove unused filter parameters from data request.\n\nChange-Id: Ic4e9f38a63dd99aa28d5faf28d392fb8b132141d\n"
},
{
"from": "human",
"value": "package com.vaadin.components.grid.config;\n\nimport com.google.gwt.core.client.JavaScriptObject;\nimport com.google.gwt.cor... | java | chosen |
[
{
"from": "system",
"value": "Add client to retrofit service builder\n"
},
{
"from": "human",
"value": "package com.thinkabstract.exercise.news.api.service;\n\nimport retrofit2.Retrofit;\nimport retrofit2.converter.gson.GsonConverterFactory;\n\npublic class NewsFeedServiceFactory {\n\n private ... | java | chosen |
[
{
"from": "system",
"value": "Fix error when setting CSS property\n"
},
{
"from": "human",
"value": "package com.codenvy.ide.ext.datasource.client.sqllauncher;\n\nimport com.google.gwt.user.client.ui.TextArea;\n\n// temporary class\npublic class SqlLauncherTextArea extends TextArea {\n\n SqlL... | java | chosen |
[
{
"from": "system",
"value": "Swap public and static for consistency"
},
{
"from": "human",
"value": "package yokohama.unit.position;\r\n\r\nimport java.nio.file.Path;\r\nimport java.util.Optional;\r\nimport lombok.Value;\r\n\r\n@Value\r\npublic class Span {\r\n private final Optional<Path> s... | java | chosen |
[
{
"from": "system",
"value": "Fix incompatibility between IntelliJ<=10.0.2 and >10.0.2 (build 103.72)\n"
},
{
"from": "human",
"value": "package de.plushnikov.intellij.lombok.util;\r\n\r\nimport com.intellij.psi.PsiType;\r\n\r\n/**\r\n * Gets all of primitive types as PsiType\r\n * Attention: In... | java | chosen |
[
{
"from": "system",
"value": "Add test for top level files (no package)"
},
{
"from": "human",
"value": "import com.redhat.ceylon.compiler.typechecker.TypeChecker;\nimport com.redhat.ceylon.compiler.typechecker.TypeCheckerBuilder;\nimport com.redhat.ceylon.compiler.typechecker.tree.Tree;\n\nimpo... | java | chosen |
[
{
"from": "system",
"value": "Exclude jobExecution on client side\n\n- To overcome future errors in `JobCommandTests` exclude `jobExecution` if\n client side `StepExecutionJacksonMixIn` is used as what happens with those\n tests when hateoas 1.0.2 is brought in.\n- Issue will happen with real server/shell... | java | chosen |
[
{
"from": "system",
"value": "Make GENERIC_REASON consistent with web messages.\n"
},
{
"from": "human",
"value": "package uk.ac.ic.wlgitbridge.snapshot.base;\n\nimport com.google.gson.JsonElement;\nimport uk.ac.ic.wlgitbridge.git.exception.SnapshotAPIException;\n\nimport java.util.Arrays;\nimpo... | java | chosen |
[
{
"from": "system",
"value": "Add addIdentityUrl attribute to result from findAuthenticationProviders\n"
},
{
"from": "human",
"value": "/*\n * Copyright (C) 2013 ickStream GmbH\n * All rights reserved\n */\n\npackage com.ickstream.protocol.service.core;\n\npublic class AuthenticationProviderRes... | java | chosen |
[
{
"from": "system",
"value": "Remove unused imports in web tech type."
},
{
"from": "human",
"value": "/*******************************************************************************\n * Copyright (c) 2016 IBM Corp.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * y... | java | chosen |
[
{
"from": "system",
"value": "Choose a random (brightish) colour for food\n"
},
{
"from": "human",
"value": "package entities;\n\nimport java.awt.Color;\nimport java.awt.Graphics2D;\nimport java.util.Random;\n\nimport snake.Screen;\n\npublic class Food extends Entity {\n private final int SIZE ... | java | chosen |
[
{
"from": "system",
"value": "Complete javadoc and don't throw NPE\n"
},
{
"from": "human",
"value": "package com.alexrnl.commons.error;\n\nimport java.util.Objects;\nimport java.util.logging.Logger;\n\n/**\n * TODO\n * @author Alex\n */\npublic final class ExceptionUtils {\n\t/** Logger */\n\tp... | java | chosen |
[
{
"from": "system",
"value": "Add population based divide option\n"
},
{
"from": "human",
"value": "/**\n * Copyright (C) 2010 openecho\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": "system",
"value": "Make sure we follow the MP-CP spec and disallow our container-managed executor to be shut down\n\nSince it's the underlying executor service which must be shut down, by Quarkus\n"
},
{
"from": "human",
"value": "package io.quarkus.smallrye.context.runtime;\n\nimport... | java | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.