<commit_before><?xml version="1.0"?>
<ruleset name="WordPress VIP">
	<description>WordPress VIP Coding Standards</description>

	<autoload>./../WordPress/PHPCSAliases.php</autoload>

	<rule ref="WordPress-Core"/>

	<!-- Covers:
		 https://vip.wordpress.com/documentation/code-review-what-we-look-for/#removing-the-admin-bar
		 https://vip.wordpress.com/documentation/code-review-what-we-look-for/#cron-schedules-less-than-15-minutes-or-expensive-events
		 https://vip.wordpress.com/documentation/code-review-what-we-look-for/#direct-database-queries
		 https://vip.wordpress.com/documentation/code-review-what-we-look-for/#filesystem-writes
		 https://vip.wordpress.com/documentation/code-review-what-we-look-for/#order-by-rand
		 https://vip.wordpress.com/documentation/code-review-what-we-look-for/#using-__file__-for-page-registration
		 https://vip.wordpress.com/documentation/code-review-what-we-look-for/#uncached-functions
		 https://vip.wordpress.com/documentation/code-review-what-we-look-for/#flush_rewrite_rules
		 https://vip.wordpress.com/documentation/code-review-what-we-look-for/#session_start-and-other-session-related-functions
		 https://vip.wordpress.com/documentation/code-review-what-we-look-for/#functions-that-use-joins-taxonomy-relation-queries-cat-tax-queries-subselects-or-api-calls
		 https://vip.wordpress.com/documentation/code-review-what-we-look-for/#querying-on-meta_value
		 https://vip.wordpress.com/documentation/code-review-what-we-look-for/#manipulating-the-timezone-server-side
		 https://vip.wordpress.com/documentation/code-review-what-we-look-for/#validation-sanitization-and-escaping
	-->
	<rule ref="WordPress.VIP"/>

	<!-- https://vip.wordpress.com/documentation/code-review-what-we-look-for/#validation-sanitization-and-escaping -->
	<!-- https://vip.wordpress.com/documentation/best-practices/security/validating-sanitizing-escaping/ -->
	<rule ref="WordPress.XSS.EscapeOutput"/>
	<rule ref="WordPress.CSRF.NonceVerification"/>

	<!-- https://vip.wordpress.com/documentation/code-review-what-we-look-for/#using-instead-of -->
	<rule ref="WordPress.PHP.StrictComparisons"/>

	<!-- https://vip.wordpress.com/documentation/best-practices/database-queries/ -->
	<rule ref="WordPress.WP.PreparedSQL"/>

	<!-- https://vip.wordpress.com/documentation/code-review-what-we-look-for/#commented-out-code-debug-code-or-output -->
	<rule ref="Squiz.PHP.CommentedOutCode">
		<properties>
			<property name="maxPercentage" value="45"/>
		</properties>
	</rule>

	<!-- https://vip.wordpress.com/documentation/vip/code-review-what-we-look-for/#eval-and-create_function -->
	<rule ref="Squiz.PHP.Eval"/>
	<rule ref="Squiz.PHP.Eval.Discouraged">
		<type>error</type>
		<message>eval() is a security risk so not allowed.</message>
	</rule><commit_msg>VIP ruleset: remove the explicit inclusion of two sniffs which are also in `Core`<commit_after><?xml version="1.0"?>
<ruleset name="WordPress VIP">
	<description>WordPress VIP Coding Standards</description>

	<autoload>./../WordPress/PHPCSAliases.php</autoload>

	<rule ref="WordPress-Core"/>

	<!-- Covers:
		 https://vip.wordpress.com/documentation/code-review-what-we-look-for/#removing-the-admin-bar
		 https://vip.wordpress.com/documentation/code-review-what-we-look-for/#cron-schedules-less-than-15-minutes-or-expensive-events
		 https://vip.wordpress.com/documentation/code-review-what-we-look-for/#direct-database-queries
		 https://vip.wordpress.com/documentation/code-review-what-we-look-for/#filesystem-writes
		 https://vip.wordpress.com/documentation/code-review-what-we-look-for/#order-by-rand
		 https://vip.wordpress.com/documentation/code-review-what-we-look-for/#using-__file__-for-page-registration
		 https://vip.wordpress.com/documentation/code-review-what-we-look-for/#uncached-functions
		 https://vip.wordpress.com/documentation/code-review-what-we-look-for/#flush_rewrite_rules
		 https://vip.wordpress.com/documentation/code-review-what-we-look-for/#session_start-and-other-session-related-functions
		 https://vip.wordpress.com/documentation/code-review-what-we-look-for/#functions-that-use-joins-taxonomy-relation-queries-cat-tax-queries-subselects-or-api-calls
		 https://vip.wordpress.com/documentation/code-review-what-we-look-for/#querying-on-meta_value
		 https://vip.wordpress.com/documentation/code-review-what-we-look-for/#manipulating-the-timezone-server-side
		 https://vip.wordpress.com/documentation/code-review-what-we-look-for/#validation-sanitization-and-escaping
	-->
	<rule ref="WordPress.VIP"/>

	<!-- https://vip.wordpress.com/documentation/code-review-what-we-look-for/#validation-sanitization-and-escaping -->
	<!-- https://vip.wordpress.com/documentation/best-practices/security/validating-sanitizing-escaping/ -->
	<rule ref="WordPress.XSS.EscapeOutput"/>
	<rule ref="WordPress.CSRF.NonceVerification"/>

	<!-- https://vip.wordpress.com/documentation/code-review-what-we-look-for/#using-instead-of -->
	<rule ref="WordPress.PHP.StrictComparisons"/>

	<!-- https://vip.wordpress.com/documentation/code-review-what-we-look-for/#commented-out-code-debug-code-or-output -->
	<rule ref="Squiz.PHP.CommentedOutCode">
		<properties>
			<property name="maxPercentage" value="45"/>
		</properties>
	</rule>
{'fraction_non_alphanumeric': 0.1796785304247991, 'fraction_numerical': 0.002296211251435132, 'mean_word_length': 4.444791666666666, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 2, '>': 55, 'https://': 36, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '7555998', 'n_tokens_mistral': 1905, 'n_tokens_neox': 1729, 'n_words': 122}