<commit_before><?php
require __DIR__.'/common.php';

global $allow;
$redis = redis();
$ip = realip();
if (in_array($_REQUEST['id'], $allow) and $redis->get('us~'.$ip) === null) {
    $pipe = $redis->pipeline();
    $pipe->incr($_REQUEST['id']);
    $pipe->setex('us~'.$ip, 1, time());
    $pipe->execute();
    echo $_REQUEST['callback'], '({"stat":0});';
    exit;
}
echo $_REQUEST['callback'], '({"stat":1});';
<commit_msg>change commit time from 1 seconds to 3600 seconds<commit_after><?php
require __DIR__.'/common.php';

global $allow;
$redis = redis();
$ip = realip();
if (in_array($_REQUEST['id'], $allow) and $redis->get('us~'.$ip) === null) {
    $pipe = $redis->pipeline();
    $pipe->incr($_REQUEST['id']);
    $pipe->setex('us~'.$ip, 3600, time());
    $pipe->execute();
    echo $_REQUEST['callback'], '({"stat":0});';
    exit;
}
echo $_REQUEST['callback'], '({"stat":1});';

{'fraction_non_alphanumeric': 0.27896512935883017, 'fraction_numerical': 0.015748031496062992, 'mean_word_length': 4.973154362416107, 'pattern_counts': {'":': 4, '<': 5, '<?xml version=': 0, '>': 13, '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': '2917471', 'n_tokens_mistral': 331, 'n_tokens_neox': 330, 'n_words': 66}