<commit_before><?php
/**
 * Widget Framework
 *
 * @copyright   Copyright (c) 2008-2013 <NAME>
 * @license     http://www.opensource.org/licenses/apache2.0.php Apache License
 */

namespace Widget;

/**
 * Attr
 *
 * @author      <NAME> <<EMAIL>>
 */
class Attr extends AbstractWidget
{
    /**
     * Returns the value of specified key in $data
     * 
     * @param mixed $data The data, could be array or instance of \ArrayAccess
     * @param string $key The key of data<commit_msg>updated class description<commit_after><?php
/**
 * Widget Framework
 *
 * @copyright   Copyright (c) 2008-2013 <NAME>
 * @license     http://www.opensource.org/licenses/apache2.0.php Apache License
 */

namespace Widget;

/**
 * Returns the value of specified key in $data
 *
 * @author      <NAME> <<EMAIL>>
 */
class Attr extends AbstractWidget
{
    /**
     * Returns the value of specified key in $data
     * 
     * @param mixed $data The data, could be array, instance of \ArrayAccess, 
     *                    object or object with getter method 
     * @param string $key The key of data
{'fraction_non_alphanumeric': 0.11602209944751381, 'fraction_numerical': 0.01841620626151013, 'mean_word_length': 2.6722972972972974, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '7206036', 'n_tokens_mistral': 333, 'n_tokens_neox': 317, 'n_words': 111}