<commit_before><?php
class notification_NotificationWebService extends webservices_WebServiceBase
{
	/**
	 * @param string $notificationCode
	 * @param string $domainName
	 * @param string $lang
	 * @param string[] $destEmailArray
	 * @param string[] $replacementArrayKeys
	 * @param string[] $replacementArrayValues
	 * @param string $senderModuleName
	 * @param string $replyTo
	 * @param string $senderEmail
	 * @return boolean
	 */
	public function send($notificationCode, $domainName, $lang, $destEmailArray, $replacementArrayKeys, $replacementArrayValues , $senderModuleName, $replyTo, $senderEmail)
	{
		if (!is_array($destEmailArray) || count($destEmailArray) === 0)
		{
			throw new Exception("Can not send mail to nobody");
		}
		$this->setLang($lang);
		$websiteId = null;
		$wsm = website_WebsiteModuleService::getInstance();
		$website = $wsm->getWebsiteByUrl($domainName);
		if ($website !== null)
		{
			$wsm->setCurrentWebsite($website);
			$websiteId = $website->getId();
		}
		$ns = notification_NotificationService::getInstance();
		$notification = $ns->getByCodeName($notificationCode, $websiteId);
		if ($notification === null)
		{
			return false;
		}
		if (is_array($replacementArrayKeys) && is_array($replacementArrayValues) && count($replacementArrayKeys) === count($replacementArrayValues))
		{
			$replacementArray = array_combine($replacementArrayKeys, $replacementArrayValues);
		}
		else 
		{
			$replacementArray = array();
		}
		$recipients = new mail_MessageRecipients();
		$recipients->setTo($destEmailArray);
		return $ns->send($notification, $recipients, $replacementArray, $senderModuleName, $replyTo, $senderEmail);
	}
}<commit_msg>[FIX] Bad soap type conversion<commit_after><?php
class notification_NotificationWebService extends webservices_WebServiceBase
{
	/**
	 * @param string $notificationCode
	 * @param string $domainName
	 * @param string $lang
	 * @param string[] $destEmailArray
	 * @param string[] $replacementArrayKeys
	 * @param string[] $replacementArrayValues
	 * @param string $senderModuleName
	 * @param string $replyTo
	 * @param string $senderEmail
	 * @return boolean
	 */
	public function send($notificationCode, $domainName, $lang, $destEmailArray, $replacementArrayKeys, $replacementArrayValues , $senderModuleName, $replyTo, $senderEmail)
	{
		$destEmailArray = $this->getWsdlTypes()->getType('ArrayOfstring')->formatPhpValue($destEmailArray);
		$replacementArrayKeys = $this->getWsdlTypes()->getType('ArrayOfstring')->formatPhpValue($replacementArrayKeys);
		$replacementArrayValues = $this->getWsdlTypes()->getType('ArrayOfstring')->formatPhpValue($replacementArrayValues);
		if (!is_array($destEmailArray) || count($destEmailArray) === 0)
		{
			throw new Exception("Can not send mail to nobody");
		}
		$this->setLang($lang);
		$websiteId = null;
		$wsm = website_WebsiteModuleService::getInstance();
		$website = $wsm->getWebsiteByUrl($domainName);
		if ($website !== null)
		{
			$wsm->setCurrentWebsite($website);
			$websiteId = $website->getId();
		}
		$ns = notification_NotificationService::getInstance();
		$notification = $ns->getByCodeName($notificationCode, $websiteId);
		if ($notification === null)
		{
			return false;
		}
		if (is_array($replacementArrayKeys) && is_array($replacementArrayValues) && count($replacementArrayKeys) === count($replacementArrayValues))
		{
			$replacementArray = array_combine($replacementArrayKeys, $replacementArrayValues);
		}
		else 
		{
			$replacementArray = array();
		}
		$recipients = new mail_MessageRecipients();
		$recipients->setTo($destEmailArray);
		return $ns->send($notification, $recipients, $replacementArray, $senderModuleName, $replyTo, $senderEmail);
	}
}
{'fraction_non_alphanumeric': 0.1416960173394744, 'fraction_numerical': 0.000541858574911948, 'mean_word_length': 6.08637236084453, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 26, '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': '815925', 'n_tokens_mistral': 1215, 'n_tokens_neox': 1087, 'n_words': 214}