<commit_before><?php

/**
 * Manage rewrite rules.
 *
 * @package wp-cli
 */
class Rewrite_Command extends WP_CLI_Command {

	/**
	 * Flush rewrite rules.
	 *
	 * ## OPTIONS
	 *
	 * --hard
	 * : Perform a hard flush - do not overwrite `.htaccess`. The default is to update `.htaccess` rules as well as rewrite rules in database.
	 *
	 * @synopsis [--hard]
	 */
	public function flush( $args, $assoc_args ) {
		// make sure we detect mod_rewrite if configured in apache_modules in config
		self::apache_modules();
		flush_rewrite_rules( isset( $assoc_args['hard'] ) );
	}

	/**
	 * Update the permalink structure.
	 *
	 * ## OPTIONS
	 *<commit_msg>Correct the inline docs for the `--hard` flag on `wp rewrite flush`<commit_after><?php

/**
 * Manage rewrite rules.
 *
 * @package wp-cli
 */
class Rewrite_Command extends WP_CLI_Command {

	/**
	 * Flush rewrite rules.
	 *
	 * ## OPTIONS
	 *
	 * --hard
	 * : Perform a hard flush - update `.htaccess` rules as well as rewrite rules in database.
	 *
	 * @synopsis [--hard]
	 */
	public function flush( $args, $assoc_args ) {
		// make sure we detect mod_rewrite if configured in apache_modules in config
		self::apache_modules();
		flush_rewrite_rules( isset( $assoc_args['hard'] ) );
	}

	/**
	 * Update the permalink structure.
	 *
	 * ## OPTIONS
	 *
{'fraction_non_alphanumeric': 0.13076923076923078, 'fraction_numerical': 0.0, 'mean_word_length': 3.091194968553459, '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': '3186093', 'n_tokens_mistral': 467, 'n_tokens_neox': 416, 'n_words': 131}