<commit_before><?php
/**
 * Class AMP_Story_Sanitizer.
 *
 * @package AMP
 */

/**
 * Class AMP_Story_Sanitizer
 *
 * Sanitizes pages within AMP Stories.
 */
class AMP_Story_Sanitizer extends AMP_Base_Sanitizer {

	/**
	 * Tag.
	 *
	 * @var string Figure tag to identify wrapper around AMP elements.
	 * @since 1.0
	 */
	public static $tag = 'amp-story-page';

	/**
	 * Sanitize the AMP elements contained by <figure> element where necessary.
	 *
	 * @since 0.2
	 */
	public function sanitize() {
		$nodes     = $this->dom->getElementsByTagName( self::$tag );
		$num_nodes = $nodes->length;

		if ( 0 === $num_nodes ) {
			return;
		}

		for ( $i = $num_nodes - 1; $i >= 0; $i-- ) {
			$node = $nodes->item( $i );

			$cta_layers = $node->getElementsByTagName( 'amp-story-cta-layer' );
			$num_cta_layers = $cta_layers->length;

			for ( $j = $num_cta_layers - 1; $j >= 0; $j-- ) {
				$cta_layer_node = $cta_layers->item( $j );
<commit_msg>Align equal signs<commit_after><?php
/**
 * Class AMP_Story_Sanitizer.
 *
 * @package AMP
 */

/**
 * Class AMP_Story_Sanitizer
 *
 * Sanitizes pages within AMP Stories.
 */
class AMP_Story_Sanitizer extends AMP_Base_Sanitizer {

	/**
	 * Tag.
	 *
	 * @var string Figure tag to identify wrapper around AMP elements.
	 * @since 1.0
	 */
	public static $tag = 'amp-story-page';

	/**
	 * Sanitize the AMP elements contained by <figure> element where necessary.
	 *
	 * @since 0.2
	 */
	public function sanitize() {
		$nodes     = $this->dom->getElementsByTagName( self::$tag );
		$num_nodes = $nodes->length;

		if ( 0 === $num_nodes ) {
			return;
		}

		for ( $i = $num_nodes - 1; $i >= 0; $i-- ) {
			$node = $nodes->item( $i );

			$cta_layers     = $node->getElementsByTagName( 'amp-story-cta-layer' );
			$num_cta_layers = $cta_layers->length;

			for ( $j = $num_cta_layers - 1; $j >= 0; $j-- ) {
				$cta_layer_node = $cta_layers->item( $j );

{'fraction_non_alphanumeric': 0.16613756613756614, 'fraction_numerical': 0.009523809523809525, 'mean_word_length': 2.9478079331941545, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 23, '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': '2395905', 'n_tokens_mistral': 794, 'n_tokens_neox': 697, 'n_words': 166}