<commit_before><?php
/**
 * This file is part of the PHP Open Doc library.
 *
 * @author <NAME> <<EMAIL>>
 * @since  1.0
 *
 */
namespace PHPDOC\Document\Writer\Word2007\Formatter;

use PHPDOC\Element\ElementInterface,
    PHPDOC\Document\Writer\Exception\SaveException;

/**
 * Shared property formats
 */
class Shared
{
    protected $map;
    private $aliases;

    public function __construct() {
        $this->initMap();
    }

    /**
     * Initialize the property map
     *
     * Subclasses should override this to provide a property map.
     */
    protected function initMap($aliases = null)
    {
        $this->map = array();
        $this->aliases = array();
        if (is_array($aliases) and count($aliases)) {
            $this->aliases = $aliases;
        }
    }

    /**
     * Create a new properties DOM object for the element.
     *
     * @param mixed     $element The element to extract properties from<commit_msg>Add missing 'use' clause for Translator.<commit_after><?php
/**
 * This file is part of the PHP Open Doc library.
 *
 * @author <NAME> <<EMAIL>>
 * @since  1.0
 *
 */
namespace PHPDOC\Document\Writer\Word2007\Formatter;

use PHPDOC\Element\ElementInterface,
    PHPDOC\Document\Writer\Exception\SaveException,
    PHPDOC\Document\Writer\Word2007\Translator;

/**
 * Shared property formats
 */
class Shared
{
    protected $map;
    private $aliases;

    public function __construct() {
        $this->initMap();
    }

    /**
     * Initialize the property map
     *
     * Subclasses should override this to provide a property map.
     */
    protected function initMap($aliases = null)
    {
        $this->map = array();
        $this->aliases = array();
        if (is_array($aliases) and count($aliases)) {
            $this->aliases = $aliases;
        }
    }

    /**
     * Create a new properties DOM object for the element.
     *
     * @param mixed     $element The element to extract properties from
{'fraction_non_alphanumeric': 0.11932687404385518, 'fraction_numerical': 0.00815910249872514, 'mean_word_length': 2.43006993006993, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 17, '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': '258453', 'n_tokens_mistral': 590, 'n_tokens_neox': 571, 'n_words': 163}