<commit_before><?php namespace media;

use spitfire\storage\database\Table;

class MissingThumbModel extends ThumbModel
{
	// Disable database access
	public function __construct(Table $table = null, $data = null)
	{
		$table = null;
		$data = null;
		parent::__construct($table, $data);
	}
	
	public function getEmbed()
	{
		// TODO: temporary styling until overhaul with vue and tailwind
		$style = 'font-weight: bold; font-style: italic; text-align: center;';
		$style.= 'border: 1px solid black; padding: 5px; font-size: 0.9em; margin: 5px';
		return '<div style="${style}">Media Error</div>';
	}
	
	public function getMediaEmbed()
	{
		return $this->getEmbed();
	}
}<commit_msg>Replace Media Error Exception with a less site breaking alternative<commit_after><?php namespace media;

use spitfire\storage\database\Table;

class MissingThumbModel extends ThumbModel
{
	// Disable database access
	public function __construct(Table $table = null, $data = null)
	{
		$table = null;
		$data = null;
		parent::__construct($table, $data);
	}
	
	public function getEmbed()
	{
		// TODO: temporary styling until overhaul with vue and tailwind
		$style = 'font-weight: bold; font-style: italic; text-align: center;';
		$style.= 'border: 1px solid black; padding: 5px; font-size: 0.9em; margin: 5px';
		return '<div style="' . $style . '">Media Error</div>';
	}
	
	public function getMediaEmbed()
	{
		return $this->getEmbed();
	}
}
{'fraction_non_alphanumeric': 0.13744740532959326, 'fraction_numerical': 0.0070126227208976155, 'mean_word_length': 4.364661654135339, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '3289753', 'n_tokens_mistral': 504, 'n_tokens_neox': 453, 'n_words': 139}