<commit_before><?php
/**
 * @author Field Nation <<EMAIL>>
 * @license Apache 2.0
 * @copyright 2017 Field Nation
 */
namespace FieldNation;

abstract class AbstractAttribute
{
    private function __construct()
    {
    }

    public static function getConstants()
    {
        $klass = new \ReflectionClass(__CLASS__);
        return $klass->getConstants();
    }
}<commit_msg>Fix getConstants to return the constants of the called class<commit_after><?php
/**
 * @author <NAME> <<EMAIL>>
 * @license Apache 2.0
 * @copyright 2017 Field Nation
 */
namespace FieldNation;

abstract class AbstractAttribute
{
    private function __construct()
    {
    }

    public static function getConstants()
    {
        $klass = new \ReflectionClass(get_called_class());
        return $klass->getConstants();
    }
}
{'fraction_non_alphanumeric': 0.11330049261083744, 'fraction_numerical': 0.014778325123152709, 'mean_word_length': 3.256544502617801, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, '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': '4653584', 'n_tokens_mistral': 232, 'n_tokens_neox': 225, 'n_words': 66}