<commit_before><?php

require_once 'Request.php';
require_once 'Share.php';

class Etc
{
    public static function analyze(string $url) : string
    {
        $response = Request::get($url);
        if ($response['status'] < 200 || $response['status'] >= 400) {
            echo '[!] HTTP Status: ' . $response['status'] . PHP_EOL;
            exit(-1);
        }
        $html = $response['body'] . '';
        file_put_contents(Share::$_['dir'] . Share::$_['count'] . '.html', $html);
        Share::$_['count']++;
        $url = explode("\\'", explode("location = \\'", $html)[1])[0];
        return $url;
    }
}
<commit_msg>:up: Updated Campaign/Etc.php<commit_after><?php

require_once 'Request.php';
require_once 'Share.php';

class Etc
{
    public static function analyze(string $url) : string
    {
        $response = Request::get($url);
        if ($response['status'] < 200 || $response['status'] >= 400) {
            echo '[!] HTTP Status: ' . $response['status'] . PHP_EOL;
            exit(-1);
        }
        $html = $response['body'] . '';
        file_put_contents(Share::$_['dir'] . Share::$_['count'] . '.html', $html);
        Share::$_['count']++;
        $html = str_replace("\\", "", $html);
        $html = str_replace(' ', '', $html);
        $url = explode("'", explode("location='", $html)[1])[0];
        return $url;
    }
}

{'fraction_non_alphanumeric': 0.21494661921708186, 'fraction_numerical': 0.012811387900355872, 'mean_word_length': 2.300469483568075, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '4465149', 'n_tokens_mistral': 456, 'n_tokens_neox': 441, 'n_words': 86}