<commit_before><?php


/**
 * @Description: Email spefically for communicating with customer about order.
 * @package: ecommerce
 * @authors: Silverstripe, <NAME>
 **/

class Order_Email extends Email {

	protected static $send_all_emails_plain = false;
		function set_send_all_emails_plain($b) {self::$send_all_emails_plain = $b;}
		function get_send_all_emails_plain() {return self::$send_all_emails_plain;}

	protected static $css_file_location = "ecommerce/css/EcommerceEmailReceiptStyle.css";
		function set_css_file_location($s) {self::$css_file_location = $s;}
		function get_css_file_location() {return self::$css_file_location;}

	protected static $copy_to_admin_for_all_emails = true;
		function set_copy_to_admin_for_all_emails($b) {self::$copy_to_admin_for_all_emails = $b;}
		function get_copy_to_admin_for_all_emails() {return self::$copy_to_admin_for_all_emails;}

	public function send($messageID = null, $order, $resend = false) {
		if(!$this->hasBeenSent($order) || $resend) {
			if(self::get_copy_to_admin_for_all_emails()) {<commit_msg>changed location for CSS for email<commit_after><?php


/**
 * @Description: Email spefically for communicating with customer about order.
 * @package: ecommerce
 * @authors: Silverstripe, <NAME>
 **/

class Order_Email extends Email {

	protected static $send_all_emails_plain = false;
		function set_send_all_emails_plain($b) {self::$send_all_emails_plain = $b;}
		function get_send_all_emails_plain() {return self::$send_all_emails_plain;}

	protected static $css_file_location = "ecommerce/css/OrderReport.css";
		function set_css_file_location($s) {self::$css_file_location = $s;}
		function get_css_file_location() {return self::$css_file_location;}

	protected static $copy_to_admin_for_all_emails = true;
		function set_copy_to_admin_for_all_emails($b) {self::$copy_to_admin_for_all_emails = $b;}
		function get_copy_to_admin_for_all_emails() {return self::$copy_to_admin_for_all_emails;}

	public function send($messageID = null, $order, $resend = false) {
		if(!$this->hasBeenSent($order) || $resend) {
			if(self::get_copy_to_admin_for_all_emails()) {
{'fraction_non_alphanumeric': 0.11898016997167139, 'fraction_numerical': 0.0, 'mean_word_length': 7.544354838709677, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '1278321', 'n_tokens_mistral': 757, 'n_tokens_neox': 737, 'n_words': 135}