<commit_before><?php

header('Expires: ' . gmdate('D, d M Y H:i:s \G\M\T', time() + 30));

JSON::respond(array(
    'success' => true,
    'foo' => 'bar',
    'time' => date('Y-m-d H:i:s')
));<commit_msg>added params for cachable test api<commit_after><?php

$cacheSecs = !empty($_GET['secs']) && ctype_digit($_GET['secs']) ? $_GET['secs'] : 30;

header('Expires: ' . gmdate('D, d M Y H:i:s \G\M\T', time() + $cacheSecs));

JSON::respond(array(
    'success' => true,
    'foo' => 'bar',
    'time' => date('Y-m-d H:i:s')
));
{'fraction_non_alphanumeric': 0.2704761904761905, 'fraction_numerical': 0.007619047619047619, 'mean_word_length': 4.0576923076923075, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '4205048', 'n_tokens_mistral': 232, 'n_tokens_neox': 230, 'n_words': 46}