<commit_before><?php
/**
 *
 *
 * PHP version 5
 *
 * @category PHP
 * @package  PHP_Reflect
 * @author   Laurent Laville <<EMAIL>>
 * @license  http://www.opensource.org/licenses/bsd-license.php  BSD License
 * @version  GIT: $Id$
 * @link     http://php5.laurent-laville.org/reflect/
 */

namespace Bartlett\Reflect\Api;

/**
 *
 *
 * @category PHP
 * @package  PHP_Reflect
 * @author   Laurent Laville <<EMAIL>>
 * @license  http://www.opensource.org/licenses/bsd-license.php  BSD License
 * @version  Release: @package_version@
 * @link     http://php5.laurent-laville.org/reflect/
 * @since    Class available since Release 3.0.0-alpha1
 */
class Reflection extends BaseApi
{
    /**
     *
     * @param string $argument Name of the class to reflect.
     * @param string $source   Path to the data source or its alias.
     * @param mixed  $alias    If set, the source refers to its alias.
     * @param mixed  $return   Format of result to return. False when raw text.
     *
     * @return mixed
     * @alias  class
     */
    public function class_($argument, $source, $alias = null, $return = false)
    {
        return $this->request('reflection/class', 'POST', array($argument, $source, $alias, $return));
    }

    /**
     *
     * @param string $argument Name of the function to reflect.
     * @param string $source   Path to the data source or its alias.
     * @param mixed  $alias    If set, the source refers to its alias.
     * @param mixed  $return   Format of result to return. False when raw text.
     *
     * @return mixed
     * @alias  function
     */
    public function function_($argument, $source, $alias = null, $return = false)
    {
        return $this->request('reflection/function', 'POST', array($argument, $source, $alias, $return));
    }
}
<commit_msg>add phpdoc tag description to comment reflection:class and reflection:function commands<commit_after><?php
/**
 *
 *
 * PHP version 5
 *
 * @category PHP
 * @package  PHP_Reflect
 * @author   <NAME> <<EMAIL>>
 * @license  http://www.opensource.org/licenses/bsd-license.php  BSD License
 * @version  GIT: $Id$
 * @link     http://php5.laurent-laville.org/reflect/
 */

namespace Bartlett\Reflect\Api;

/**
 *
 *
 * @category PHP
 * @package  PHP_Reflect
 * @author   Laurent Laville <<EMAIL>>
 * @license  http://www.opensource.org/licenses/bsd-license.php  BSD License
 * @version  Release: @package_version@
 * @link     http://php5.laurent-laville.org/reflect/
 * @since    Class available since Release 3.0.0-alpha1
 */
class Reflection extends BaseApi
{
    /**
     * Reports information about a user class present in a data source.
     *
     * @param string $argument Name of the class to reflect.
     * @param string $source   Path to the data source or its alias.
     * @param mixed  $alias    If set, the source refers to its alias.
     * @param mixed  $return   Format of result to return. False when raw text.
     *
     * @return mixed
     * @alias  class
     */
    public function class_($argument, $source, $alias = null, $return = false)
    {
        return $this->request('reflection/class', 'POST', array($argument, $source, $alias, $return));
    }

    /**
     * Reports information about a user function present in a data source.
     *
     * @param string $argument Name of the function to reflect.
     * @param string $source   Path to the data source or its alias.
     * @param mixed  $alias    If set, the source refers to its alias.
     * @param mixed  $return   Format of result to return. False when raw text.
     *
     * @return mixed
     * @alias  function
     */
    public function function_($argument, $source, $alias = null, $return = false)
    {
        return $this->request('reflection/function', 'POST', array($argument, $source, $alias, $return));
    }
}

{'fraction_non_alphanumeric': 0.12316561844863731, 'fraction_numerical': 0.003668763102725367, 'mean_word_length': 2.7311827956989245, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 16, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '1872148', 'n_tokens_mistral': 1157, 'n_tokens_neox': 1149, 'n_words': 378}