<commit_before><?php
/**
 * This file is part of the Essence library.
 *
 * @author     <NAME> <<EMAIL>>
 * @copyright  2014-2015
 *
 * For the full copyright and license information,
 * please view the LICENSE.md file that was distributed
 * with this source code.
 */

namespace Impensavel\Essence;

interface EssenceInterface
{
    /**
     * Register an Element
     *
     * @access  public
     * @param   array  $element Element
     * @param   string $key     Element key
     * @throws  EssenceException
     * @return  void
     */
    public function register(array $element, $key = 'default');

    /**
     * Extract data
     *
     * @access  public
     * @param   mixed  $input  Input data
     * @param   array  $config Configuration settings (optional)
     * @param   mixed  $extra  Extra callback data (optional)
     * @throws  EssenceException
     * @return  bool
     */
    public function extract($input, array $config = array(), $extra = null);
}<commit_msg>feat(*): user data is now passed by reference<commit_after><?php
/**
 * This file is part of the Essence library.
 *
 * @author     <NAME> <<EMAIL>>
 * @copyright  2014-2015
 *
 * For the full copyright and license information,
 * please view the LICENSE.md file that was distributed
 * with this source code.
 */

namespace Impensavel\Essence;

interface EssenceInterface
{
    /**
     * Register an Element
     *
     * @access  public
     * @param   array  $element Element
     * @param   string $key     Element key
     * @throws  EssenceException
     * @return  void
     */
    public function register(array $element, $key = 'default');

    /**
     * Extract data
     *
     * @access  public
     * @param   mixed  $input  Input data
     * @param   array  $config Configuration settings (optional)
     * @param   mixed  $data   User data (optional)
     * @throws  EssenceException
     * @return  bool
     */
    public function extract($input, array $config = array(), &$data = null);
}
{'fraction_non_alphanumeric': 0.10381143430290872, 'fraction_numerical': 0.00802407221664995, 'mean_word_length': 2.475609756097561, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, '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': '3186387', 'n_tokens_mistral': 580, 'n_tokens_neox': 561, 'n_words': 196}