<commit_before><?php namespace RubenArakelyan\YelpApi;

// **********************************************************************
// Yelp API PHP wrapper
// Version 1.0.1
// Author: <NAME> <<EMAIL>>
//
// Copyright (C) 2015 <NAME>.
// This file is licensed under the MIT licence.
//
// For more information, see https://github.com/rubenarakelyan/yelp-api-php
// **********************************************************************

/**
 * Class YelpApi
 * @package YelpApi
 */
class YelpApi extends Stevenmaguire\Yelp\Client
{
    /**
     * Build query string params using defaults
     *
     * @param  array $attributes
     *
     * @return string
     */
    public function buildQueryParams($attributes = [])
    {
        $defaults = [
            'limit' => $this->searchLimit
        ];
        
        $attributes = array_merge($defaults, $attributes);
        
        return http_build_query($attributes);
    }
    
    /**
     * Query the Search API by a search term and location
     *
     * @param    array    $attributes   Query attributes
     *
     * @return   stdClass               The JSON response from the request
     */
    public function search($attributes = [])
    {
        $query_string = $this->buildQueryParams($attributes);
        $searchPath = $this->searchPath . "?" . $query_string;
        
        return $this->request($searchPath);
    }
}

?><commit_msg>Fix extends<commit_after><?php namespace RubenArakelyan\YelpApi;

// **********************************************************************
// Yelp API PHP wrapper
// Version 1.0.2
// Author: <NAME> <<EMAIL>>
//
// Copyright (C) 2015 <NAME>.
// This file is licensed under the MIT licence.
//
// For more information, see https://github.com/rubenarakelyan/yelp-api-php
// **********************************************************************

/**
 * Class YelpApi
 * @package YelpApi
 */
class YelpApi extends \Stevenmaguire\Yelp\Client
{
    /**
     * Build query string params using defaults
     *
     * @param  array $attributes
     *
     * @return string
     */
    public function buildQueryParams($attributes = [])
    {
        $defaults = [
            'limit' => $this->searchLimit
        ];
        
        $attributes = array_merge($defaults, $attributes);
        
        return http_build_query($attributes);
    }
}

?>
{'fraction_non_alphanumeric': 0.23434171282488284, 'fraction_numerical': 0.005965061780997018, 'mean_word_length': 2.552193645990923, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 20, 'https://': 2, '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': '7610815', 'n_tokens_mistral': 666, 'n_tokens_neox': 626, 'n_words': 152}