<commit_before><?php

/**
 * Manage user roles.
 *
 * @package wp-cli
 */
class Role_Command extends WP_CLI_Command {

    /**
     * List all roles.
     *
     * @subcommand list
     */
    public function _list( $args ) {
        global $wp_roles;

        foreach ( $wp_roles->roles as $key => $role ) {
                WP_CLI::line( $role['name'] . " ($key)");
        }
    }

    /**
     * Check if a role exists.
     * Will return 0 if the role exists, 1 if it does not.
     *
     * @subcommand exists
     * @synopsis <role-key>
     */
    public function _exists( $args ) {
        global $wp_roles;

        if ( ! in_array($args[0], array_keys( $wp_roles->roles ) ) ) {
            exit(1);
        }
    }

    /**
     * Create a new role.
     *
     * @synopsis <role-key> <role-name>
     */
    public function create( $args ) {
        self::persistence_check();
<commit_msg>s/_exists/exists<commit_after><?php

/**
 * Manage user roles.
 *
 * @package wp-cli
 */
class Role_Command extends WP_CLI_Command {

    /**
     * List all roles.
     *
     * @subcommand list
     */
    public function _list( $args ) {
        global $wp_roles;

        foreach ( $wp_roles->roles as $key => $role ) {
                WP_CLI::line( $role['name'] . " ($key)");
        }
    }

    /**
     * Check if a role exists.
     * Will return 0 if the role exists, 1 if it does not.
     *
     * @synopsis <role-key>
     */
    public function exists( $args ) {
        global $wp_roles;

        if ( ! in_array($args[0], array_keys( $wp_roles->roles ) ) ) {
            exit(1);
        }
    }

    /**
     * Create a new role.
     *
     * @synopsis <role-key> <role-name>
     */
    public function create( $args ) {
        self::persistence_check();

{'fraction_non_alphanumeric': 0.1463963963963964, 'fraction_numerical': 0.0045045045045045045, 'mean_word_length': 1.6802413273001509, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 15, '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': '76570', 'n_tokens_mistral': 607, 'n_tokens_neox': 596, 'n_words': 144}