<commit_before><?php namespace Greplab\LaravelJsonrpcsmd;

class ServiceProvider extends \Illuminate\Support\ServiceProvider {

	/**
	 * Indicates if loading of the provider is deferred.
	 * @var bool
	 */
	protected $defer = false;

	/**
	 * List of paths where the services reside.
	 * @var array
	 */
	protected $paths = array();

	/**
	 * Bootstrap the application events.
	 * @return void
	 */
	public function boot()
	{
		$this->package('greplab/jsonrpcsmd');

		//Install the route on boot
		if (\Config::get('jsonrpcsmd::installRouteOnBoot')) {
			$this->installDefaultRoute();
		}
	}

	/**
	 * Register the service provider.
	 * @return void
	 */
	public function register() {

		\App::instance('JsonRpcSmd', $this);
	}

	/**
	 * Register a new path service to index.
	 * @param string $path
	 */
	public function addServicesPath($path)
	{
		$this->paths[] = $path;
	}

	/**
	 * Register the default route.
	 */
	public function installDefaultRoute()
	{
		$this->installRoute(\Config::get('jsonrpcsmd::route_prefix'));
	}

	/**
	 * Register a customized route.
	 * @param string $route_prefix
	 */
	public function installRoute($route_prefix)
	{
	    \Route::get($route_prefix, function()
        {
            $this->build();
        });
	}

	/**
	 * @return mixed
	 */
	public function build()
	{
		$mapper = \App::make('Greplab\LaravelJsonrpcsmd\Mapper');
		foreach ($this->paths as $path) {
			$mapper->addServicePath($path);
		}
		return $mapper->build();
	}<commit_msg>Traducción de los docblock del service provider<commit_after><?php namespace Greplab\LaravelJsonrpcsmd;

/**
 * This class is the service provider for Laravel to easily use the greplab/jsonrpcsmd library.
 *
 * @author <NAME> <dzeg<EMAIL>>
 * @package Greplab\LaravelJsonrpcsmd
 */
class ServiceProvider extends \Illuminate\Support\ServiceProvider {

	/**
	 * Indicates if loading of the provider is deferred.
	 * @var bool
	 */
	protected $defer = false;

	/**
	 * List of paths where the services files reside.
	 * @var array
	 */
	protected $paths = array();

	/**
	 * Bootstrap the application events.
	 * @return void
	 */
	public function boot()
	{
		$this->package('greplab/jsonrpcsmd');

		//Install the route on boot
		if (\Config::get('jsonrpcsmd::installRouteOnBoot')) {
			$this->installDefaultRoute();
		}
	}

	/**
	 * Register the service provider.
	 * @return void
	 */
	public function register()
	{
		\App::instance('JsonRpcSmd', $this);
	}

	/**
	 * Register a new path service to be indexed.
	 * @param string $path
	 */
	public function addServicesPath($path)
	{
		$this->paths[] = $path;
	}

	/**
	 * Register the default route.
	 */
	public function installDefaultRoute()
	{
		$this->installRoute(\Config::get('jsonrpcsmd::route_prefix'));
	}

	/**
	 * Register a customized route.
	 * @param string $route_prefix
	 */
	public function installRoute($route_prefix)
	{
	    \Route::get($route_prefix, function()
        {
            $this->build();
        });
	}

	/**
	 * Build the service map.
	 * @return array
	 */
	public function build()
	{
		$mapper = \App::make('Greplab\LaravelJsonrpcsmd\Mapper');
		foreach ($this->paths as $path) {
			$mapper->addServicePath($path);
		}
		return $mapper->build();
	}
{'fraction_non_alphanumeric': 0.14920733602735467, 'fraction_numerical': 0.0, 'mean_word_length': 3.2679045092838197, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 22, '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': '4036583', 'n_tokens_mistral': 1114, 'n_tokens_neox': 1009, 'n_words': 253}