<commit_before><?php
    $suffix=$done?'ed':'ing';
    $http_code=$info['http_code'];
    switch($http_code)
    {
        case 0:
            $verb='connect';
            break;
        case 200:
            $verb='download';
            break;
        case 404:
            $verb='not found';
            break;
        case($http_code>=300 && $http_code<=400):
            $verb='redirect';
            break;
        case($http_code>=400 && $http_code<=500):
            $verb='error'.$http_code;
            break;
        default:
            $verb='wtf'.$http_code;
    }
    if($info['download_content_length'])
        $percent=$info['size_download']/$info['download_content_length'] *100.0;
    else
    $percent=0;
?>
<html>
    <head>
        <title><?php echo $verb,$suffix ?></title>
    </head>
    <body>
        <?php echo $verb,$suffix,' ',$info['url'],"($percent%)"; ?>
        <div style="background: red; <?php
            echo "width: $percent%; ";
        ?>">&nbsp;
        </div>
        <!--
        <pre>
            <?php print_r($info); ?>
            <?php echo "calls $calls ; skipped $skipped"; ?>
        </pre> -->
        <?php echo '<!--',str_repeat(' ',1024),'-->'; ?>
    </body>
</html><commit_msg>Reload iframe parent on upload success<commit_after><?php
    $suffix=$done?'ed':'ing';
    $http_code=$info['http_code'];
    switch($http_code)
    {
        case 0:
            $verb='connect';
            break;
        case 200:
            $verb='download';
            break;
        case 404:
            $verb='not found';
            break;
        case($http_code>=300 && $http_code<=400):
            $verb='redirect';
            break;
        case($http_code>=400 && $http_code<=500):
            $verb='error'.$http_code;
            break;
        default:
            $verb='wtf'.$http_code;
    }
    if($info['download_content_length'])
        $percent=$info['size_download']/$info['download_content_length'] *100.0;
    else
       $percent=0;
?>
<html>
<?php if($percent=='100'): ?>
    <body><script>window.top.location.reload();</script></body>
<?php else: ?>
    <head>
        <title><?php echo $verb,$suffix ?></title>
    </head>
    <body>
        <?php echo $verb,$suffix,' ',$info['url'],"($percent%)"; ?>
        <div style="background: red; <?php
            echo "width: $percent%; ";
        ?>">&nbsp;
        </div>
        <!--
        <pre>
            <?php print_r($info); ?>
            <?php echo "calls $calls ; skipped $skipped"; ?>
        </pre> -->
        <?php echo '<!--',str_repeat(' ',1024),'-->'; ?>
    </body>
<?php endif; ?>
</html>
{'fraction_non_alphanumeric': 0.2032736962314427, 'fraction_numerical': 0.022459078797106968, 'mean_word_length': 1.87527352297593, 'pattern_counts': {'":': 0, '<': 56, '<?xml version=': 0, '>': 56, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3866153', 'n_tokens_mistral': 860, 'n_tokens_neox': 818, 'n_words': 149}