<commit_before><?php
/**
 * WHIP libary file.
 *
 * @package Yoast\WHIP
 */

/**
 * Class Whip_HostMessage.
 */
class Whip_HostMessage implements Whip_Message {

	/**
	 * @var string
	 */
	private $textdomain;

	/**
	 * @var string
	 */
	private $messageKey;

	/**
	 * @var string
	 */
	private $filterKey;

	/**
	 * Whip_Message constructor.
	 *
	 * @param string $messageKey The environment key to use to retrieve the message from.
	 * @param string $textdomain The text domain to use for translations.
	 */
	public function __construct( $messageKey, $textdomain ) {
		$this->textdomain = $textdomain;
		$this->messageKey = $messageKey;
	}

	/**
	 * Renders the message body.
	 *
	 * @return string The message body.
	 */
	public function body() {
		$message = array();

		$message[] = Whip_MessageFormatter::strong( $this->title() ) . '<br />';
		$message[] = Whip_MessageFormatter::paragraph( Whip_Host::message( $this->messageKey, $this->filterKey ) );

		return implode( $message, "\n" );
	}

	/**
	 * Renders the message title.<commit_msg>Clean up: Remove unused property and function call parameter<commit_after><?php
/**
 * WHIP libary file.
 *
 * @package Yoast\WHIP
 */

/**
 * Class Whip_HostMessage.
 */
class Whip_HostMessage implements Whip_Message {

	/**
	 * @var string
	 */
	private $textdomain;

	/**
	 * @var string
	 */
	private $messageKey;

	/**
	 * Whip_Message constructor.
	 *
	 * @param string $messageKey The environment key to use to retrieve the message from.
	 * @param string $textdomain The text domain to use for translations.
	 */
	public function __construct( $messageKey, $textdomain ) {
		$this->textdomain = $textdomain;
		$this->messageKey = $messageKey;
	}

	/**
	 * Renders the message body.
	 *
	 * @return string The message body.
	 */
	public function body() {
		$message = array();

		$message[] = Whip_MessageFormatter::strong( $this->title() ) . '<br />';
		$message[] = Whip_MessageFormatter::paragraph( Whip_Host::message( $this->messageKey ) );

		return implode( $message, "\n" );
	}

	/**
	 * Renders the message title.
{'fraction_non_alphanumeric': 0.1476121562952243, 'fraction_numerical': 0.0, 'mean_word_length': 3.422174840085288, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 14, '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': '4420150', 'n_tokens_mistral': 701, 'n_tokens_neox': 641, 'n_words': 180}