<commit_before><?php

/**
 * Manage a user's sessions.
 *
 * ## EXAMPLES
 *
 */
class User_Session_Command extends WP_CLI_Command {

	private $fields = array(
		'token',
		'login_time',
		'expiration_time',
		'ip',
		'ua',
	);

	public function __construct() {
		$this->fetcher = new \WP_CLI\Fetchers\User;
	}

	/**
	 * Destroy a session for the given user.
	 *
	 * ## OPTIONS
	 *
	 * <user>
	 * : User ID, user email, or user login.
	 *
	 * [<token>]
	 * : The token of the session to destroy. Defaults to the most recently created session.
	 *
	 * [--all]
	 * : Destroy all of the user's sessions.
	 *
	 * ## EXAMPLES
	 *
	 *     # Destroy the most recent session of the given user
	 *     $ wp user session destroy admin
	 *     Success: Destroyed session. 3 sessions remaining.
	 *
	 *     # Destroy a specific session of the given user
	 *     $ wp user session destroy admin e073ad8540a9c2...
	 *     Success: Destroyed session. 2 sessions remaining.
	 *
	 *     # Destroy all the sessions of the given user
	 *     $ wp user session destroy admin --all
	 *     Success: Destroyed all sessions.
	 */
	public function destroy( $args, $assoc_args ) {<commit_msg>Add example for destroying all sessions for all users<commit_after><?php

/**
 * Manage a user's sessions.
 *
 * ## EXAMPLES
 *
 */
class User_Session_Command extends WP_CLI_Command {

	private $fields = array(
		'token',
		'login_time',
		'expiration_time',
		'ip',
		'ua',
	);

	public function __construct() {
		$this->fetcher = new \WP_CLI\Fetchers\User;
	}

	/**
	 * Destroy a session for the given user.
	 *
	 * ## OPTIONS
	 *
	 * <user>
	 * : User ID, user email, or user login.
	 *
	 * [<token>]
	 * : The token of the session to destroy. Defaults to the most recently created session.
	 *
	 * [--all]
	 * : Destroy all of the user's sessions.
	 *
	 * ## EXAMPLES
	 *
	 *     # Destroy the most recent session of the given user
	 *     $ wp user session destroy admin
	 *     Success: Destroyed session. 3 sessions remaining.
	 *
	 *     # Destroy a specific session of the given user
	 *     $ wp user session destroy admin e073ad8540a9c2...
	 *     Success: Destroyed session. 2 sessions remaining.
	 *
	 *     # Destroy all the sessions of the given user
	 *     $ wp user session destroy admin --all
	 *     Success: Destroyed all sessions.
	 *
	 *     # Destroy all sessions for all users
	 *     $ wp user list --field=ID | xargs wp user session destroy --all
	 *     Success: Destroyed all sessions. 0 remaining.
	 *     Success: Destroyed all sessions. 0 remaining.
	 */
	public function destroy( $args, $assoc_args ) {
{'fraction_non_alphanumeric': 0.10880430603613994, 'fraction_numerical': 0.00922722029988466, 'mean_word_length': 2.598893499308437, 'pattern_counts': {'":': 0, '<': 9, '<?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': '6933807', 'n_tokens_mistral': 887, 'n_tokens_neox': 793, 'n_words': 288}