<commit_before><?php
    if (!empty($field['onclick'])) {
        if (!empty($field['onclick_params_data_path'])) {
            $data_path_params = [];
            foreach ($field['onclick_params_data_path'] as $data_path) {
                $data_path_params[] = Hash::extract($row, $data_path)[0];
            }
            $field['onclick'] = vsprintf($field['onclick'], $data_path_params);
        }
    }
    $title = empty($field['title']) ? __('%s toggle', $field['name']) : $field['title'];
    $default = (bool)Hash::extract($row, $field['data_path'])[0];
    echo sprintf(
        '<div id="%s"><input id="%s%s" type="checkbox" aria-label="%s" onClick="%s" %s /></div>',
        empty($field['checkbox_container']) ? 'GenericCheckboxContainer' : h($field['checkbox_container']),
        empty($field['checkbox_name']) ? 'GenericCheckbox' : h($field['checkbox_name']),<commit_msg>fix: [UI] small fix for the workflow trigger checkbox<commit_after><?php
    if (!empty($field['onclick'])) {
        if (!empty($field['onclick_params_data_path'])) {
            $data_path_params = [];
            foreach ($field['onclick_params_data_path'] as $data_path) {
                $extracted = Hash::extract($row, $data_path);
                if (empty($extracted)) {
                    $extracted = [null];
                    $doNotDisplay=true;
                }
                $data_path_params[] = $extracted[0];
            }
            $field['onclick'] = vsprintf($field['onclick'], $data_path_params);
        }
    }
    $title = empty($field['title']) ? __('%s toggle', $field['name']) : $field['title'];
    $default = !empty(Hash::extract($row, $field['data_path'])) ? (bool)Hash::extract($row, $field['data_path'])[0] : '';
    echo $doNotDisplay ? '' : sprintf(
        '<div id="%s"><input id="%s%s" type="checkbox" aria-label="%s" onClick="%s" %s /></div>',
        empty($field['checkbox_container']) ? 'GenericCheckboxContainer' : h($field['checkbox_container']),
        empty($field['checkbox_name']) ? 'GenericCheckbox' : h($field['checkbox_name']),
{'fraction_non_alphanumeric': 0.2068466730954677, 'fraction_numerical': 0.0019286403085824494, 'mean_word_length': 3.260780287474333, 'pattern_counts': {'":': 0, '<': 11, '<?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': '1794191', 'n_tokens_mistral': 642, 'n_tokens_neox': 640, 'n_words': 99}