<commit_before><?php

namespace Herrera\Box
{
    use InvalidArgumentException;
    use LengthException;
    use RuntimeException;
    use UnexpectedValueException;

    /**
     * Extracts a phar without the extension.
     *
     * This class is a rewrite of the `Extract_Phar` class that is included
     * in the default stub for all phars. The class is designed to work from
     * inside and outside of a phar. Unlike the original class, the stub
     * length must be specified.
     *
     * @author <NAME> <<EMAIL>>
     *
     * @link https://github.com/php/php-src/blob/master/ext/phar/shortarc.php
     */
    class Extract
    {
        /**
         * The default stub pattern.
         *
         * @var string
         */
        const PATTERN_DEFAULT = "__HALT_COMPILER(); ?>";

        /**
         * The open-ended stub pattern.
         *
         * @var string
         */
        const PATTERN_OPEN = "__HALT_COMPILER(); ?>\r\n";

        /**
         * The gzip compression flag.
         *
         * @var integer
         */
        const GZ = 0x1000;

        /**
         * The bzip2 compression flag.
         *
         * @var integer
         */
        const BZ2 = 0x2000;

        /**
         * @var integer
         */
        const MASK = 0x3000;

        /**
         * The phar file path to extract.
         *
         * @var string
         */
        private $file;

        /**<commit_msg>Breaking up the __HALT_COMPILER() patterns.<commit_after><?php

namespace Herrera\Box
{
    use InvalidArgumentException;
    use LengthException;
    use RuntimeException;
    use UnexpectedValueException;

    /**
     * The default stub pattern.
     *
     * @var string
     */
    define('BOX_EXTRACT_PATTERN_DEFAULT', '__HALT' . '_COMPILER(); ?>');

    /**
     * The open-ended stub pattern.
     *
     * @var string
     */
    define('BOX_EXTRACT_PATTERN_OPEN', "__HALT" . "_COMPILER(); ?>\r\n");

    /**
     * Extracts a phar without the extension.
     *
     * This class is a rewrite of the `Extract_Phar` class that is included
     * in the default stub for all phars. The class is designed to work from
     * inside and outside of a phar. Unlike the original class, the stub
     * length must be specified.
     *
     * @author <NAME> <<EMAIL>>
     *
     * @link https://github.com/php/php-src/blob/master/ext/phar/shortarc.php
     */
    class Extract
    {
        /**
         * The default stub pattern.
         *
         * @var string
         */
        const PATTERN_DEFAULT = BOX_EXTRACT_PATTERN_DEFAULT;

        /**
         * The open-ended stub pattern.
         *
         * @var string
         */
        const PATTERN_OPEN = BOX_EXTRACT_PATTERN_OPEN;

        /**
         * The gzip compression flag.
         *
         * @var integer
         */
        const GZ = 0x1000;

        /**
         * The bzip2 compression flag.
         *
         * @var integer
         */
        const BZ2 = 0x2000;

        /**
         * @var integer
         */
        const MASK = 0x3000;

        /**
         * The phar file path to extract.
         *
         * @var string
         */
        private $file;

        /**
{'fraction_non_alphanumeric': 0.10341585709808837, 'fraction_numerical': 0.01065496709495456, 'mean_word_length': 1.4534973097617216, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, 'https://': 2, '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': '2991335', 'n_tokens_mistral': 976, 'n_tokens_neox': 926, 'n_words': 258}