<commit_before><?php
namespace MessageComposite;
use MessageComposite\Formatter\Formatter;
use MessageComposite\Formatter\XMLFormatter;

/**
 * Composite implementation
 *
 * Class Message
 * @package MessageComposite
 */
abstract class Message implements MessageInterface
{

    /** @var Message[] */
    private $elements = [];

    /** @var  Message */
    protected $parent;

    protected $name = '';
    protected $attrs = [];

    /**
     * Message raw content, used by MessageElement
     *
     * @var null
     */
    protected $value = null;

    /**
     * Returns node name
     *
     * @return string
     */<commit_msg>JSON Formatter - Message class now don't know about formatters - added some functionality<commit_after><?php
namespace MessageComposite;

/**
 * Composite implementation
 *
 * Class Message
 * @package MessageComposite
 */
abstract class Message implements MessageInterface
{

    /** @var Message[] */
    private $elements = [];

    /** @var  Message */
    protected $parent;

    protected $name = '';
    protected $attrs = [];

    /**
     * Message raw content, used by MessageElement
     *
     * @var null
     */
    protected $value = null;

    /**
     * Returns node name
     *
     * @return string
     */
{'fraction_non_alphanumeric': 0.11816019032513878, 'fraction_numerical': 0.0, 'mean_word_length': 2.525139664804469, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '3978905', 'n_tokens_mistral': 339, 'n_tokens_neox': 329, 'n_words': 99}