<commit_before><?php

use Orchestra\Resources;

class Orchestra_Resources_Controller extends Orchestra\Controller
{
	public $restful = true;

	/**
	 * Construct Pages Controller, only authenticated user should 
	 * be able to access this controller.
	 *
	 * @access public
	 * @return void
	 */
	public function __construct()
	{
		parent::__construct();

		$this->filter('before', 'orchestra::auth');
		$this->filter('before', 'orchestra::manage');
		
		Event::fire('orchestra.started: backend');
	}

	/**
	 * Add a drop-in page anywhere on Orchestra
	 *
	 * @access public
	 * @param  string $request
	 * @param  array  $arguments
	 * @return Response
	 */
	public function __call($request, $arguments = array())
	{
		list($method, $name) = explode('_', $request, 2);

		$action  = array_shift($arguments) ?: 'index';
		$content = Resources::call($name, $action, $arguments);

		if (false === $content) return Response::error('404');

		return View::make('orchestra::resources.pages', array('content' => $content));<commit_msg>Minor changes on docblock<commit_after><?php

use Orchestra\Resources;

class Orchestra_Resources_Controller extends Orchestra\Controller
{
	public $restful = true;

	/**
	 * Construct Resources Controller, only authenticated user should 
	 * be able to access this controller.
	 *
	 * @access public
	 * @return void
	 */
	public function __construct()
	{
		parent::__construct();

		$this->filter('before', 'orchestra::auth');
		$this->filter('before', 'orchestra::manage');
		
		Event::fire('orchestra.started: backend');
	}

	/**
	 * Add a drop-in resource anywhere on Orchestra
	 *
	 * @access public
	 * @param  string $request
	 * @param  array  $arguments
	 * @return Response
	 */
	public function __call($request, $arguments = array())
	{
		list($method, $name) = explode('_', $request, 2);

		$action  = array_shift($arguments) ?: 'index';
		$content = Resources::call($name, $action, $arguments);

		if (false === $content) return Response::error('404');

		return View::make('orchestra::resources.pages', array('content' => $content));
{'fraction_non_alphanumeric': 0.1579961464354528, 'fraction_numerical': 0.0038535645472061657, 'mean_word_length': 4.523936170212766, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6479022', 'n_tokens_mistral': 667, 'n_tokens_neox': 599, 'n_words': 162}