<commit_before><?php

namespace Samsui;

class Definition implements DefinitionInterface
{
    protected $sequence = 1;

    protected $sequences = array();

    protected $values = array();

    public function sequence($name)
    {
        $this->sequences[] = $name;
        return $this;
    }

    public function attr($name, $value)
    {
        if (!isset($this->values[$name])) {
            $this->values[$name] = $value;
        }<commit_msg>methods implementation in build definition<commit_after><?php

namespace Samsui;

class Definition implements DefinitionInterface
{
    protected $sequence = 1;

    protected $sequences = array();

    protected $values = array();

    protected $methods = array();

    public function sequence($name)
    {
        $this->sequences[] = $name;
        return $this;
    }

    public function attr($name, $value)
    {
        if (!isset($this->values[$name])) {
            $this->values[$name] = $value;
        }
        return $this;
    }

    public function method($name, $closure)
    {
        if (is_callable($closure) && !isset($this->methods[$name])) {
            $this->methods[$name] = $closure;
        }
{'fraction_non_alphanumeric': 0.14212765957446807, 'fraction_numerical': 0.001702127659574468, 'mean_word_length': 2.5209580838323356, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '2612287', 'n_tokens_mistral': 336, 'n_tokens_neox': 318, 'n_words': 80}