<commit_before><?php
namespace SubscribeWithGoogle\WordPress\Tests;

use SubscribeWithGoogle\WordPress\Header;
use SubscribeWithGoogle\WordPress\Plugin;
use WP_UnitTestCase;

class HeaderTest extends WP_UnitTestCase {

	private $post_id = null;

	public function setUp() {
		parent::setUp();

		if ( $this->post_id == null ) {
			// Set publication ID site-wide.
			update_option( 'SubscribeWithGoogle_publication_id', 'example.com' );

			// Create a post.
			$this->post_id = $this->factory->post->create();
			wp_update_post( array(
				'ID' => $this->post_id,
				'post_content' => 'Hello world',
				'post_name' => 'paid-post',
				'post_title' => 'Paid post',
			) );

			// Visit the post.
			$this->go_to("/?p={$this->post_id}");
		}

		// Instantiate plugin.
		Plugin::load();
<commit_msg>Removes extra instantiation<commit_after><?php
namespace SubscribeWithGoogle\WordPress\Tests;

use SubscribeWithGoogle\WordPress\Header;
use SubscribeWithGoogle\WordPress\Plugin;
use WP_UnitTestCase;

class HeaderTest extends WP_UnitTestCase {

	private $post_id = null;

	public function setUp() {
		parent::setUp();

		if ( $this->post_id == null ) {
			// Set publication ID site-wide.
			update_option( 'SubscribeWithGoogle_publication_id', 'example.com' );

			// Create a post.
			$this->post_id = $this->factory->post->create();
			wp_update_post( array(
				'ID' => $this->post_id,
				'post_content' => 'Hello world',
				'post_name' => 'paid-post',
				'post_title' => 'Paid post',
			) );

			// Visit the post.
			$this->go_to("/?p={$this->post_id}");
		}

{'fraction_non_alphanumeric': 0.1583652618135377, 'fraction_numerical': 0.0, 'mean_word_length': 3.9122257053291536, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 27, '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': '1998362', 'n_tokens_mistral': 608, 'n_tokens_neox': 531, 'n_words': 107}