<commit_before>package com.heroku.api.request.config;

import com.heroku.api.Heroku;
import com.heroku.api.exception.RequestFailedException;
import com.heroku.api.http.Http;
import com.heroku.api.http.HttpUtil;
import com.heroku.api.request.Request;
import com.heroku.api.request.RequestConfig;

import java.util.Collections;
import java.util.Map;

import static com.heroku.api.parser.Json.parse;

/**
 * TODO: Javadoc
 *
 * @author <NAME>
 */
public class ConfigRemove implements Request<Map<String, String>> {

    private final RequestConfig config;

    public ConfigRemove(String appName, String configVarName) {
        config = new RequestConfig().app(appName).with(Heroku.RequestKey.ConfigVarName, configVarName);
    }

    @Override
    public Http.Method getHttpMethod() {
        return Http.Method.DELETE;
    }

    @Override
    public String getEndpoint() {
        return Heroku.Resource.ConfigVar.format(config.get(Heroku.RequestKey.AppName), config.get(Heroku.RequestKey.ConfigVarName));
    }

    @Override
    public boolean hasBody() {
        return false;
    }

    @Override
    public String getBody() {
        throw HttpUtil.noBody();
    }

    @Override
    public Http.Accept getResponseType() {
        return Http.Accept.JSON;
    }

    @Override
    public Map<String, String> getHeaders() {
        return Collections.emptyMap();
    }
<commit_msg>encodeIncludingSpecialCharacters config key in ConfigRemove command<commit_after>package com.heroku.api.request.config;

import com.heroku.api.Heroku;
import com.heroku.api.exception.RequestFailedException;
import com.heroku.api.http.Http;
import com.heroku.api.http.HttpUtil;
import com.heroku.api.request.Request;
import com.heroku.api.request.RequestConfig;

import java.util.Collections;
import java.util.Map;

import static com.heroku.api.http.HttpUtil.encodeIncludingSpecialCharacters;
import static com.heroku.api.parser.Json.parse;

/**
 * TODO: Javadoc
 *
 * @author <NAME>
 */
public class ConfigRemove implements Request<Map<String, String>> {

    private final RequestConfig config;

    public ConfigRemove(String appName, String configVarName) {
        config = new RequestConfig().app(appName).with(Heroku.RequestKey.ConfigVarName, configVarName);
    }

    @Override
    public Http.Method getHttpMethod() {
        return Http.Method.DELETE;
    }

    @Override
    public String getEndpoint() {
        return Heroku.Resource.ConfigVar.format(config.get(Heroku.RequestKey.AppName), encodeIncludingSpecialCharacters(config.get(Heroku.RequestKey.ConfigVarName)));
    }

    @Override
    public boolean hasBody() {
        return false;
    }

    @Override
    public String getBody() {
        throw HttpUtil.noBody();
    }

    @Override
    public Http.Accept getResponseType() {
        return Http.Accept.JSON;
    }

    @Override
    public Map<String, String> getHeaders() {
        return Collections.emptyMap();
    }

{'fraction_non_alphanumeric': 0.10691181477698332, 'fraction_numerical': 0.0, 'mean_word_length': 3.52, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2278382', 'n_tokens_mistral': 882, 'n_tokens_neox': 860, 'n_words': 172}