<commit_before><?php namespace Orchestra\View;

class FileViewFinder extends \Illuminate\View\FileViewFinder {

	/**
	 * File view finder cache paths.
	 *
	 * @var array
	 */
	protected $caches = array();

	/**
	 * Get the fully qualified location of the view.
	 *
	 * @param  string   $name
	 * @return string
	 */
	public function find($name)
	{
		if ( ! isset($this->caches[$name])) 
		{
			$this->caches[$name] = parent::find($name);
		}

		return $this->caches[$name];
	}

	/**
	 * Get the path to a template with a named path.
	 *
	 * @param  string   $name
	 * @return string
	 */
	protected function findNamedPathView($name)
	{
		list($namespace, $view) = $this->getNamespaceSegments($name);

		$generatePath = function ($path) use ($namespace) {
			return "{$path}/packages/{$namespace}";
		};

		$paths = array_map($generatePath, $this->paths);

		return $this->findInPaths($view, array_merge($paths, $this->hints[$namespace]));<commit_msg>Cache found views has been added to Illuminate\View\FileViewFinder in laravel/framework@16bcbf7<commit_after><?php namespace Orchestra\View;

class FileViewFinder extends \Illuminate\View\FileViewFinder {

	/**
	 * Get the path to a template with a named path.
	 *
	 * @param  string   $name
	 * @return string
	 */
	protected function findNamedPathView($name)
	{
		list($namespace, $view) = $this->getNamespaceSegments($name);

		$generatePath = function ($path) use ($namespace) {
			return "{$path}/packages/{$namespace}";
		};

		$paths = array_map($generatePath, $this->paths);

		return $this->findInPaths($view, array_merge($paths, $this->hints[$namespace]));
{'fraction_non_alphanumeric': 0.15594059405940594, 'fraction_numerical': 0.0018564356435643563, 'mean_word_length': 4.100946372239748, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6185848', 'n_tokens_mistral': 545, 'n_tokens_neox': 504, 'n_words': 124}