<commit_before><?php

/**
 * Admin class that handle ajax calls.
 */
class Papi_Admin_Ajax {

	/**
	 * The action prefix for Papi ajax actions.
	 *
	 * @var string
	 */
	protected $action_prefix = 'papi/ajax/';

	/**
	 * The permalink structure.
	 *
	 * @var string
	 */
	protected $structure;

	/**
	 * The construct.
	 */
	public function __construct() {
		$this->setup_actions();
		$this->structure = get_option( 'permalink_structure' );
	}

	/**
	 * Add ajax endpoint.
	 */
	public function add_endpoint() {
		if ( empty( $this->structure ) ) {
			return;
		}

		add_rewrite_tag( '%action%', '([^/]*)' );
		add_rewrite_rule( 'papi-ajax/([^/]*)/?', 'index.php?papi-ajax=true&action=$matches[1]', 'top' );
	}<commit_msg>Remove papi-ajax query parameter<commit_after><?php

/**
 * Admin class that handle ajax calls.
 */
class Papi_Admin_Ajax {

	/**
	 * The action prefix for Papi ajax actions.
	 *
	 * @var string
	 */
	protected $action_prefix = 'papi/ajax/';

	/**
	 * The permalink structure.
	 *
	 * @var string
	 */
	protected $structure;

	/**
	 * The construct.
	 */
	public function __construct() {
		$this->setup_actions();
		$this->structure = get_option( 'permalink_structure' );
	}

	/**
	 * Add ajax endpoint.
	 */
	public function add_endpoint() {
		if ( empty( $this->structure ) ) {
			return;
		}

		add_rewrite_tag( '%action%', '([^/]*)' );
		add_rewrite_rule( 'papi-ajax/([^/]*)/?', 'index.php?action=$matches[1]', 'top' );
	}
{'fraction_non_alphanumeric': 0.1878453038674033, 'fraction_numerical': 0.0013812154696132596, 'mean_word_length': 3.1878612716763004, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5268498', 'n_tokens_mistral': 568, 'n_tokens_neox': 508, 'n_words': 109}