<commit_before><?php
// Define helper function for checking time components
function component_matches ($comp, $time_elem) {
    $time_elem = intval ($time_elem);
    if ($comp === '*') {
        return true;
    }
    
    if (!is_numeric ($comp)) {
        if (strpos ($comp, ',') !== false) {
            $parts = explode (',', $comp);
            foreach ($parts as $part) {
                if (intval($part) === $time_elem) {
                    return true;
                }
            }
        }
        else if (strpos ($comp, '/') !== false) {
            $parts = explode ('/', $comp);
            if (($time_elem % intval ($parts[1])) === 0) {
                return true;
            }
        }
        <commit_msg>Adding range to cron scheduler<commit_after><?php
// Define helper function for checking time components
function component_matches ($comp, $time_elem) {
    $time_elem = intval ($time_elem);
    if ($comp === '*') {
        return true;
    }
    
    if (!is_numeric ($comp)) {
        if (strpos ($comp, ',') !== false) {
            $parts = explode (',', $comp);
            foreach ($parts as $part) {
                if (intval($part) === $time_elem) {
                    return true;
                }
            }
        }
        else if (strpos ($comp, '-') !== false) {
            $parts = explode ('-', $comp);
            foreach (range(intval($parts[0]), intval($parts[1])) as $part) {
                if (intval($part) === $time_elem) {
                    return true;
                }
            }
        }
        else if (strpos ($comp, '/') !== false) {
            $parts = explode ('/', $comp);
            if (($time_elem % intval ($parts[1])) === 0) {
                return true;
            }
        }
        
{'fraction_non_alphanumeric': 0.16666666666666666, 'fraction_numerical': 0.0033783783783783786, 'mean_word_length': 1.4342465753424658, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '3183368', 'n_tokens_mistral': 514, 'n_tokens_neox': 498, 'n_words': 128}