<commit_before><?php namespace Searchmetrics\Api;

/**
 * Class ApiBase.
 *
 * @package Searchmetrics\Api
 */
interface ApiBase
{

    /**
     * Make a POST request to the Searchmetrics API.
     *
     * @param string $url
     *   The URL to make the request against.
     * @param array $body
     *   The data to send to the API.
     *
     * @return array
     *   Result of the API request.
     */
    public function makePostRequest($url, $body = array());

    /**
     * Make a GET request to the Searchmetrics API.
     *
     * @param string $url
     *   The URL to make the request against.
     * @param array $query_params
     *   The data to send to the API.
     *
     * @return array
     *   Result of the API request.
     */
    public function makeGetRequest($url, $query_params = array());
}<commit_msg>Changed args to interface methods to from $url to $endpoint.<commit_after><?php namespace Searchmetrics\Api;

/**
 * Class ApiBase.
 *
 * @package Searchmetrics\Api
 */
interface ApiBase
{

    /**
     * Make a POST request to the Searchmetrics API.
     *
     * @param string $endpoint
     *   The API endpoint to make the request against.
     * @param array $body
     *   The data to send to the API.
     *
     * @return array
     *   Result of the API request.
     */
    public function makePostRequest($endpoint, $body = array());

    /**
     * Make a GET request to the Searchmetrics API.
     *
     * @param string $endpoint
     *   The API endpoint to make the request against.
     * @param array $query_params
     *   The data to send to the API.
     *
     * @return array
     *   Result of the API request.
     */
    public function makeGetRequest($endpoint, $query_params = array());
}
{'fraction_non_alphanumeric': 0.09788208357183743, 'fraction_numerical': 0.0, 'mean_word_length': 2.1495495495495494, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '4771136', 'n_tokens_mistral': 500, 'n_tokens_neox': 498, 'n_words': 189}