<commit_before>package com.heroku.api.command;


import com.heroku.api.http.Accept;
import com.heroku.api.http.Method;

import java.net.URL;
import java.util.HashMap;
import java.util.Map;

public abstract class GetURLCommand<T extends CommandResponse> implements Command<T> {

    protected URL get;

    public GetURLCommand(URL toGet) {
        get = toGet;
    }

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

    @Override
    public String getEndpoint() {
        return get.toString();
    }

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

    @Override
    public String getBody() {
        return null;
    }

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

    @Override
    public Map<String, String> getHeaders() {
        return new HashMap<String, String>();
    }


}
<commit_msg>bit of doc for GetURLCommand<commit_after>package com.heroku.api.command;


import com.heroku.api.http.Accept;
import com.heroku.api.http.Method;

import java.net.URL;
import java.util.HashMap;
import java.util.Map;

/**
 * Base Command for Commands that simply do a get on a URL and do something with the response
 *
 * @param <T> the type of the response, probably TextResponse or StreamResponse
 */
public abstract class GetURLCommand<T extends CommandResponse> implements Command<T> {

    protected URL get;

    public GetURLCommand(URL toGet) {
        get = toGet;
    }

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

    @Override
    public String getEndpoint() {
        return get.toString();
    }

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

    @Override
    public String getBody() {
        return null;
    }

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

    @Override
    public Map<String, String> getHeaders() {
        return new HashMap<String, String>();
    }


}

{'fraction_non_alphanumeric': 0.0940940940940941, 'fraction_numerical': 0.0, 'mean_word_length': 2.5632798573975046, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, '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': '6346133', 'n_tokens_mistral': 593, 'n_tokens_neox': 574, 'n_words': 167}