<commit_before>(function () {
    var commands = [
        {
            'display_name': gettext('Whitelist a user'),
            'method': 'cert_whitelist',
            'description': gettext('Add a user to the whitelist for a course'),
            'kwargs': [
                {
                    'argument': 'add',
                    'display_name': gettext('username'),
                    'required': true,
                },
                {
                    'argument': 'course_id',
                    'display_name': gettext('course_id'),
                    'required': true,
                },
            ],
        },
        {
            'display_name': gettext('De-whitelist a user'),
            'method': 'cert_whitelist',
            'description': gettext('Remove a user from the whitelist for a course'),
            'kwargs': [
                {
                    'argument': 'del',
                    'display_name': gettext('username'),
                    'required': true,
                },
                {
                    'argument': 'course_id',
                    'display_name': gettext('course_id'),
                    'required': true,
                },
            ],
        },
        {
            'display_name': gettext('View user whitelist'),
            'method': 'cert_whitelist',
            'description': gettext('View the list of whitelisted users for a course'),
            'kwargs': [
                {
                    'argument': 'course_id',
                    'display_name': gettext('course_id'),
                    'required': true,
                },
            ],
        },
        {
            'display_name': gettext('Generate a single certificate'),
            'method': 'regenerate_user',
            'description': gettext('Put a request on the queue to recreate the certificate for a particular user in a particular course'),
            'kwargs': [
                {
                    'argument': 'course',
                    'display_name': gettext('course_id'),
                    'required': true,
                },
                {
                    'argument': 'username',
                    'display_name': gettext('username'),
                    'required': true,
                },
                {
                    'argument': 'grade_value',
                    'display_name': gettext('grade'),
                    'required': false,
                },
                {
                    'argument': 'designation',
                    'display_name': gettext('designation'),
                    'required': false,
                },
                {
                    'argument': 'template_file',
                    'display_name': gettext('template'),
                    'required': false,
                },
            ]
        },
        {
            'display_name': gettext('Rescind a single certificate'),
            'method': 'update_cert_status',
            'description': gettext('Rescind a certificate for a particular user in a particular course'),
            'kwargs': [
                {
                    'argument': 'course_id',
                    'display_name': gettext('course_id'),
                    'required': true,
                },
                {
                    'argument': 'username_or_email',
                    'display_name': gettext('username or email'),
                    'required': true,
                },
                {
                    'argument': 'status',
                    'display_name': gettext('status'),
                    'required': false,
                },
            ],<commit_msg>Rename rescind cert command in sysadmin<commit_after>(function () {
    var commands = [
        {
            'display_name': gettext('Whitelist a user'),
            'method': 'cert_whitelist',
            'description': gettext('Add a user to the whitelist for a course'),
            'kwargs': [
                {
                    'argument': 'add',
                    'display_name': gettext('username'),
                    'required': true,
                },
                {
                    'argument': 'course_id',
                    'display_name': gettext('course_id'),
                    'required': true,
                },
            ],
        },
        {
            'display_name': gettext('De-whitelist a user'),
            'method': 'cert_whitelist',
            'description': gettext('Remove a user from the whitelist for a course'),
            'kwargs': [
                {
                    'argument': 'del',
                    'display_name': gettext('username'),
                    'required': true,
                },
                {
                    'argument': 'course_id',
                    'display_name': gettext('course_id'),
                    'required': true,
                },
            ],
        },
        {
            'display_name': gettext('View user whitelist'),
            'method': 'cert_whitelist',
            'description': gettext('View the list of whitelisted users for a course'),
            'kwargs': [
                {
                    'argument': 'course_id',
                    'display_name': gettext('course_id'),
                    'required': true,
                },
            ],
        },
        {
            'display_name': gettext('Generate a single certificate'),
            'method': 'regenerate_user',
            'description': gettext('Put a request on the queue to recreate the certificate for a particular user in a particular course'),
            'kwargs': [
                {
                    'argument': 'course',
                    'display_name': gettext('course_id'),
                    'required': true,
                },
                {
                    'argument': 'username',
                    'display_name': gettext('username'),
                    'required': true,
                },
                {
                    'argument': 'grade_value',
                    'display_name': gettext('grade'),
                    'required': false,
                },
                {
                    'argument': 'designation',
                    'display_name': gettext('designation'),
                    'required': false,
                },
                {
                    'argument': 'template_file',
                    'display_name': gettext('template'),
                    'required': false,
                },
            ]
        },
        {
            'display_name': gettext('Update certificate status'),
            'method': 'update_cert_status',
            'description': gettext('Update the status of a certificate for a particular user in a particular course'),
            'kwargs': [
                {
                    'argument': 'course_id',
                    'display_name': gettext('course_id'),
                    'required': true,
                },
                {
                    'argument': 'username_or_email',
                    'display_name': gettext('username or email'),
                    'required': true,
                },
                {
                    'argument': 'status',
                    'display_name': gettext('status (defaults to `unavailable`)'),
                    'required': false,
                },
            ],
{'fraction_non_alphanumeric': 0.11766289714593431, 'fraction_numerical': 0.0, 'mean_word_length': 1.055048409405256, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1871876', 'n_tokens_mistral': 1744, 'n_tokens_neox': 1647, 'n_words': 372}