<commit_before><?php namespace Davispeixoto\Laravel5Salesforce;

use Illuminate\Foundation\AliasLoader;
use Illuminate\Support\ServiceProvider;

/**
 * Class SalesforceServiceProvider
 * @package Davispeixoto\Laravel5Salesforce
 *
 * The Laravel Service Provider for Salesforce Service
 */
class SalesforceServiceProvider extends ServiceProvider
{

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


    /**
     * Bootstrap the configuration
     *
     * @return void
     */
    public function boot()
    {
        $config = __DIR__ . '/config/config.php';
        $this->mergeConfigFrom($config, 'foo');
        //$this->publishes([$config => config_path('salesforce.php')], 'config');
        $this->publishes([$config => config_path('salesforce.php')]);

    }


    /**
     * Register the service provider.
     *
     * @return void
     */
    public function register()
    {
        $this->app->booting(function() {
            $loader = AliasLoader::getInstance();
            $loader->alias('Salesforce', 'Davispeixoto\Laravel5Salesforce\SalesforceFacade');
            $loader->alias('SF', 'Davispeixoto\Laravel5Salesforce\SalesforceFacade');
        });

//        $this->app['salesforce'] = $this->app->share(function($app) {
//            return new Salesforce($app['config']);
//        });

        $this->app->singleton('salesforce', function ($app) {
            $config = $app['config']->get('salesforce');
            return new Salesforce($config);
        });
        //$this->app->alias('salesforce', 'Davispeixoto\Laravel5Salesforce\Salesforce');
    }


    /**
     * Get the services provided by the provider.
     *
     * @return array
     */
    public function provides()
    {
        return ['salesforce', 'Davispeixoto\Laravel5Salesforce\Salesforce'];<commit_msg>resolving binding<commit_after><?php namespace Davispeixoto\Laravel5Salesforce;

use Illuminate\Foundation\AliasLoader;
use Illuminate\Support\ServiceProvider;

/**
 * Class SalesforceServiceProvider
 * @package Davispeixoto\Laravel5Salesforce
 *
 * The Laravel Service Provider for Salesforce Service
 */
class SalesforceServiceProvider extends ServiceProvider
{

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


    /**
     * Bootstrap the configuration
     *
     * @return void
     */
    public function boot()
    {
        $config = __DIR__ . '/config/config.php';
        $this->mergeConfigFrom($config, 'salesforce');
        $this->publishes([$config => config_path('salesforce.php')]);

    }


    /**
     * Register the service provider.
     *
     * @return void
     */
    public function register()
    {
        $this->app->booting(function() {
            $loader = AliasLoader::getInstance();
            $loader->alias('Salesforce', 'Davispeixoto\Laravel5Salesforce\SalesforceFacade');
            $loader->alias('SF', 'Davispeixoto\Laravel5Salesforce\SalesforceFacade');
        });

        $this->app['salesforce'] = $this->app->share(function($app) {
            return new Salesforce($app['config']);
        });
    }


    /**
     * Get the services provided by the provider.
     *
     * @return array
     */
    public function provides()
    {
        return ['salesforce', 'Davispeixoto\Laravel5Salesforce\Salesforce'];
{'fraction_non_alphanumeric': 0.13801169590643275, 'fraction_numerical': 0.003216374269005848, 'mean_word_length': 2.6124604012671595, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 30, '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': '937612', 'n_tokens_mistral': 1021, 'n_tokens_neox': 954, 'n_words': 185}