<commit_before><?php

namespace Craft;

class EmbeddedAssetsVariable
{
	public function isEmbeddedAsset(AssetFileModel $asset)
	{
		return craft()->embeddedAssets->getEmbeddedAsset($asset) !== null;
	}

	public function getEmbeddedAsset(AssetFileModel $asset)
	{
		return craft()->embeddedAssets->getEmbeddedAsset($asset);
	}

	public function getEmbeddedAssets($assets, $indexBy = null)
	{
		return craft()->embeddedAssets->getEmbeddedAssets($assets, $indexBy);
	}
}<commit_msg>Shorter, more descriptive template methods<commit_after><?php

namespace Craft;

class EmbeddedAssetsVariable
{
	public function isEmbedded(AssetFileModel $asset)
	{
		return craft()->embeddedAssets->getEmbeddedAsset($asset) !== null;
	}

	public function fromAsset(AssetFileModel $asset)
	{
		return craft()->embeddedAssets->getEmbeddedAsset($asset);
	}

	public function fromAssets($assets, $indexBy = null)
	{
		return craft()->embeddedAssets->getEmbeddedAssets($assets, $indexBy);
	}
}
{'fraction_non_alphanumeric': 0.12706611570247933, 'fraction_numerical': 0.0, 'mean_word_length': 6.752, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '1455748', 'n_tokens_mistral': 329, 'n_tokens_neox': 301, 'n_words': 56}