<commit_before><?php
return [

    'securityToken' => null,

    'retrieverMap' => [
        $_SERVER['HTTP_HOST'] => $_SERVER['DOCUMENT_ROOT']
    ],

    'cache' => [
        'cacheRoot'   => sys_get_temp_dir() . '/phast-cache-' . posix_geteuid(),
        'cacheMaxAge' => 86400 * 365,
        'garbageCollection' => [
            'maxItems'    => 100,
            'probability' => 0.1,
        ]
    ],

    'servicesUrl' => '/Phast/services.php',

    'documents' => [
        'maxBufferSizeToApply' => pow(1024, 3),

        'baseUrl' => (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
            . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'],

        'filters' => [

            \Kibo\Phast\Filters\HTML\ScriptsRearrangementHTMLFilter::class => [],

            \Kibo\Phast\Filters\HTML\CSSInliningHTMLFilter::class => [],

            \Kibo\Phast\Filters\HTML\CSSOptimizingHTMLFilter::class => [],

            \Kibo\Phast\Filters\HTML\CSSDeferHTMLFilter::class => [],

            \Kibo\Phast\Filters\HTML\IFrameDelayedLoadingHTMLFilter::class => [],

            \Kibo\Phast\Filters\HTML\ImagesOptimizationServiceHTMLFilter::class => [],

            \Kibo\Phast\Filters\HTML\CSSImagesOptimizationServiceHTMLFilter::class => [],

            \Kibo\Phast\Filters\HTML\ScriptProxyServiceHTMLFilter::class => [
                'urlRefreshTime' => 7200,
                'match' => [
                    '~^https?://www\.google-analytics\.com/~',
                    '~^https?://static\.hotjar\.com/~',
                    '~' . preg_quote($_SERVER['HTTP_HOST']) . '~'
                ]
            ],

            \Kibo\Phast\Filters\HTML\ScriptsDeferHTMLFilter::class => [],

        ]
    ],

    'images' => [
        'enable-cache' => true,

        'filters' => [
            \Kibo\Phast\Filters\Image\ResizerImageFilter::class => [
                'defaultMaxWidth'  => 1920 * 2,
                'defaultMaxHeight' => 1080 * 2
            ],

            \Kibo\Phast\Filters\Image\CompressionImageFilter::class => [
                \Kibo\Phast\Filters\Image\Image::TYPE_PNG  =>  9,
                \Kibo\Phast\Filters\Image\Image::TYPE_JPEG => 80
            ],

            \Kibo\Phast\Filters\Image\WEBPEncoderImageFilter::class => [
                'enabled'     => function_exists('imagewebp'),
                'compression' => 80
            ],

            \Kibo\Phast\Filters\Image\PNGQuantCompressionImageFilter::class => [
                'enabled' => @file_exists('/usr/bin/pngquant'),
                'cmdpath' => '/usr/bin/pngquant',
                'quality' => '50-85'
            ],

            \Kibo\Phast\Filters\Image\JPEGTransEnhancerImageFilter::class => [
                'enabled' => @file_exists('/usr/bin/jpegtran'),
                'cmdpath' => '/usr/bin/jpegtran'
            ]
        ]
    ]
];

<commit_msg>Add ssl.google-analytics.com to proxy list<commit_after><?php
return [

    'securityToken' => null,

    'retrieverMap' => [
        $_SERVER['HTTP_HOST'] => $_SERVER['DOCUMENT_ROOT']
    ],

    'cache' => [
        'cacheRoot'   => sys_get_temp_dir() . '/phast-cache-' . posix_geteuid(),
        'cacheMaxAge' => 86400 * 365,
        'garbageCollection' => [
            'maxItems'    => 100,
            'probability' => 0.1,
        ]
    ],

    'servicesUrl' => '/Phast/services.php',

    'documents' => [
        'maxBufferSizeToApply' => pow(1024, 3),

        'baseUrl' => (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
            . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'],

        'filters' => [

            \Kibo\Phast\Filters\HTML\ScriptsRearrangementHTMLFilter::class => [],

            \Kibo\Phast\Filters\HTML\CSSInliningHTMLFilter::class => [],

            \Kibo\Phast\Filters\HTML\CSSOptimizingHTMLFilter::class => [],

            \Kibo\Phast\Filters\HTML\CSSDeferHTMLFilter::class => [],

            \Kibo\Phast\Filters\HTML\IFrameDelayedLoadingHTMLFilter::class => [],

            \Kibo\Phast\Filters\HTML\ImagesOptimizationServiceHTMLFilter::class => [],

            \Kibo\Phast\Filters\HTML\CSSImagesOptimizationServiceHTMLFilter::class => [],

            \Kibo\Phast\Filters\HTML\ScriptProxyServiceHTMLFilter::class => [
                'urlRefreshTime' => 7200,
                'match' => [
                    '~^https?://(ssl|www)\.google-analytics\.com/~',
                    '~^https?://static\.hotjar\.com/~',
                    '~' . preg_quote($_SERVER['HTTP_HOST']) . '~'
                ]
            ],

            \Kibo\Phast\Filters\HTML\ScriptsDeferHTMLFilter::class => [],

        ]
    ],

    'images' => [
        'enable-cache' => true,

        'filters' => [
            \Kibo\Phast\Filters\Image\ResizerImageFilter::class => [
                'defaultMaxWidth'  => 1920 * 2,
                'defaultMaxHeight' => 1080 * 2
            ],

            \Kibo\Phast\Filters\Image\CompressionImageFilter::class => [
                \Kibo\Phast\Filters\Image\Image::TYPE_PNG  =>  9,
                \Kibo\Phast\Filters\Image\Image::TYPE_JPEG => 80
            ],

            \Kibo\Phast\Filters\Image\WEBPEncoderImageFilter::class => [
                'enabled'     => function_exists('imagewebp'),
                'compression' => 80
            ],

            \Kibo\Phast\Filters\Image\PNGQuantCompressionImageFilter::class => [
                'enabled' => @file_exists('/usr/bin/pngquant'),
                'cmdpath' => '/usr/bin/pngquant',
                'quality' => '50-85'
            ],

            \Kibo\Phast\Filters\Image\JPEGTransEnhancerImageFilter::class => [
                'enabled' => @file_exists('/usr/bin/jpegtran'),
                'cmdpath' => '/usr/bin/jpegtran'
            ]
        ]
    ]
];


{'fraction_non_alphanumeric': 0.16953274274795901, 'fraction_numerical': 0.014243529616119507, 'mean_word_length': 1.7709335899903753, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 91, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '1035796', 'n_tokens_mistral': 1936, 'n_tokens_neox': 1765, 'n_words': 166}