<commit_before><?php

namespace App\Providers;

use Illuminate\Support\ServiceProvider;

class AppServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap any application services.
     *
     * @return void
     */
    public function boot()
    {
        //
    }

    /**
     * Register any application services.
     *
     * @return void
     */
    public function register()
    {
        //
    }
}
<commit_msg>Handle HTTPS reverse proxies correctly<commit_after><?php

namespace App\Providers;

use Illuminate\Support\ServiceProvider;

class AppServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap any application services.
     *
     * @return void
     */
    public function boot()
    {
        // Handle reverse proxy correctly
        if(isset($_SERVER['HTTP_X_FORWARDED_PROTO'])) {
            \URL::forceSchema($_SERVER['HTTP_X_FORWARDED_PROTO']);
        }
    }
    /**
     * Register any application services.
     *
     * @return void
     */
    public function register()
    {
        //
    }
}

{'fraction_non_alphanumeric': 0.1049618320610687, 'fraction_numerical': 0.0, 'mean_word_length': 2.0762463343108504, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '2631064', 'n_tokens_mistral': 291, 'n_tokens_neox': 292, 'n_words': 64}