<commit_before><?php

/**
 * This file is part of the duckduckgo-api package.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace DDG\API;

use Buzz\Message\MessageInterface;

/**
 * @author <NAME> <<EMAIL>>
 */
class Disambiguation extends Api
{
    /**
     * @access public
     * @param  string           $query
     * @return MessageInterface
     */
    public function get($query)
    {
        return $this->getClient()->get('/', array('q' => $query));
    }
}<commit_msg>Disambiguation::get: allow extra params to be specified<commit_after><?php

/**
 * This file is part of the duckduckgo-api package.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace DDG\API;

use Buzz\Message\MessageInterface;

/**
 * @author <NAME> <<EMAIL>>
 */
class Disambiguation extends Api
{
    /**
     * @access public
     * @param  string           $query
     * @param  array            $params
     * @return MessageInterface
     */
    public function get($query, array $params = array())
    {
        return $this->getClient()->get('/', array_merge(array('q' => $query), $params));
    }
}
{'fraction_non_alphanumeric': 0.14070729872084273, 'fraction_numerical': 0.0, 'mean_word_length': 2.7891737891737893, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 21, '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': '496444', 'n_tokens_mistral': 397, 'n_tokens_neox': 392, 'n_words': 125}