<commit_before><?xml version="1.0"?>
<ruleset name="WordPress Core">
	<description>Non-controversial generally-agreed upon WordPress Coding Standards</description>

	<!-- http://make.wordpress.org/core/handbook/coding-standards/php/#brace-style -->
	<rule ref="Generic.ControlStructures.InlineControlStructure" />
	<rule ref="Squiz.ControlStructures.ControlSignature" />
	<rule ref="Squiz.ControlStructures.ControlSignature.NewlineAfterOpenBrace">
		<severity>0</severity>
	</rule>

	<!-- https://make.wordpress.org/core/handbook/best-practices/coding-standards/php/#use-elseif-not-else-if -->
	<rule ref="PSR2.ControlStructures.ElseIfDeclaration"/>

	<!-- http://make.wordpress.org/core/handbook/coding-standards/php/#remove-trailing-spaces -->
	<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace"/>

	<!-- http://make.wordpress.org/core/handbook/coding-standards/php/#no-shorthand-php-tags -->
	<rule ref="Generic.PHP.DisallowShortOpenTag"/>

	<!-- important to prevent issues with content being sent before headers -->
	<rule ref="Generic.Files.ByteOrderMark"/>

	<!-- http://make.wordpress.org/core/handbook/coding-standards/php/#naming-conventions -->
	<rule ref="Generic.PHP.LowerCaseConstant"/>

	<!-- http://make.wordpress.org/core/handbook/coding-standards/php/#indentation -->
	<arg name="tab-width" value="4"/>
	<rule ref="Generic.WhiteSpace.DisallowSpaceIndent"/>
	<rule ref="Generic.WhiteSpace.ScopeIndent">
		<properties>
			<property name="indent" value="4"/>
			<property name="tabIndent" value="true"/>
		</properties>
	</rule>

	<!-- http://make.wordpress.org/core/handbook/coding-standards/php/#error-control-operator -->
	<rule ref="Generic.PHP.NoSilencedErrors" />

	<rule ref="Squiz.Strings.DoubleQuoteUsage"/>
	<rule ref="Squiz.Strings.DoubleQuoteUsage.ContainsVar">
		<severity>0</severity>
	</rule>

	<rule ref="Generic.PHP.LowerCaseKeyword"/>

	<rule ref="Generic.Files.LineEndings">
		<properties>
			<property name="eolChar" value="\n"/>
		</properties>
	</rule>


	<rule ref="Generic.Files.EndFileNewline"/>

	<!-- https://make.wordpress.org/core/handbook/coding-standards/php/#naming-conventions --><commit_msg>Add sniff to detect lowercase CONSTANT definitions.<commit_after><?xml version="1.0"?>
<ruleset name="WordPress Core">
	<description>Non-controversial generally-agreed upon WordPress Coding Standards</description>

	<!-- http://make.wordpress.org/core/handbook/coding-standards/php/#brace-style -->
	<rule ref="Generic.ControlStructures.InlineControlStructure" />
	<rule ref="Squiz.ControlStructures.ControlSignature" />
	<rule ref="Squiz.ControlStructures.ControlSignature.NewlineAfterOpenBrace">
		<severity>0</severity>
	</rule>

	<!-- https://make.wordpress.org/core/handbook/best-practices/coding-standards/php/#use-elseif-not-else-if -->
	<rule ref="PSR2.ControlStructures.ElseIfDeclaration"/>

	<!-- http://make.wordpress.org/core/handbook/coding-standards/php/#remove-trailing-spaces -->
	<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace"/>

	<!-- http://make.wordpress.org/core/handbook/coding-standards/php/#no-shorthand-php-tags -->
	<rule ref="Generic.PHP.DisallowShortOpenTag"/>

	<!-- important to prevent issues with content being sent before headers -->
	<rule ref="Generic.Files.ByteOrderMark"/>

	<!-- Lowercase PHP constants, like true, false and null. -->
	<!-- http://make.wordpress.org/core/handbook/coding-standards/php/#naming-conventions -->
	<rule ref="Generic.PHP.LowerCaseConstant"/>

	<!-- Dev defined constants should be in all upper-case with underscores separating words -->
	<!-- http://make.wordpress.org/core/handbook/coding-standards/php/#naming-conventions -->
	<rule ref="Generic.NamingConventions.UpperCaseConstantName"/>

	<!-- http://make.wordpress.org/core/handbook/coding-standards/php/#indentation -->
	<arg name="tab-width" value="4"/>
	<rule ref="Generic.WhiteSpace.DisallowSpaceIndent"/>
	<rule ref="Generic.WhiteSpace.ScopeIndent">
		<properties>
			<property name="indent" value="4"/>
			<property name="tabIndent" value="true"/>
		</properties>
	</rule>

	<!-- http://make.wordpress.org/core/handbook/coding-standards/php/#error-control-operator -->
	<rule ref="Generic.PHP.NoSilencedErrors" />

	<rule ref="Squiz.Strings.DoubleQuoteUsage"/>
	<rule ref="Squiz.Strings.DoubleQuoteUsage.ContainsVar">
		<severity>0</severity>
	</rule>

	<rule ref="Generic.PHP.LowerCaseKeyword"/>

	<rule ref="Generic.Files.LineEndings">
		<properties>
			<property name="eolChar" value="\n"/>
		</properties>
	</rule>


	<rule ref="Generic.Files.EndFileNewline"/>

	<!-- https://make.wordpress.org/core/handbook/coding-standards/php/#naming-conventions -->
{'fraction_non_alphanumeric': 0.1803845322963923, 'fraction_numerical': 0.003024411319939512, 'mean_word_length': 4.7875, 'pattern_counts': {'":': 0, '<': 97, '<?xml version=': 2, '>': 97, 'https://': 4, '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': '783342', 'n_tokens_mistral': 1573, 'n_tokens_neox': 1461, 'n_words': 195}