<commit_before><?php

namespace App\Http\Controllers;

use App;
use Illuminate\Support\Facades\Log;
use Auth;
use Mail;
use View;
use DB;
use SocialOAuth;
use Request;
use Response;
use App\Models;
use Validator;
use Exception;
use Carbon\Carbon;

class HomeController extends BaseController
{
    // 6 hours
    const MAX_EXPIRY = 21600;

    const CONCIERGE_TAG = 'concierge';

    /**
     * Stage One - The Login form.
     *
     * @return Login View
     */
    public function getIndex()
    {
        $code = Request::get('code');

        $google_service = SocialOAuth::consumer('Google', config('app.url'));

        if (! $code) {
            $url = $google_service->getAuthorizationUri([
                'hosted_domain' =>  config('concierge.google_domain')
            ]);

            return redirect((string) $url);
        } else {
            $token = $google_service->requestAccessToken($code);<commit_msg>setting MAX_EXPIRY to 9 hours<commit_after><?php

namespace App\Http\Controllers;

use App;
use Illuminate\Support\Facades\Log;
use Auth;
use Mail;
use View;
use DB;
use SocialOAuth;
use Request;
use Response;
use App\Models;
use Validator;
use Exception;
use Carbon\Carbon;

class HomeController extends BaseController
{
    // 6 hours
    const MAX_EXPIRY = 32400;

    const CONCIERGE_TAG = 'concierge';

    /**
     * Stage One - The Login form.
     *
     * @return Login View
     */
    public function getIndex()
    {
        $code = Request::get('code');

        $google_service = SocialOAuth::consumer('Google', config('app.url'));

        if (! $code) {
            $url = $google_service->getAuthorizationUri([
                'hosted_domain' =>  config('concierge.google_domain')
            ]);

            return redirect((string) $url);
        } else {
            $token = $google_service->requestAccessToken($code);
{'fraction_non_alphanumeric': 0.1223175965665236, 'fraction_numerical': 0.006974248927038627, 'mean_word_length': 2.621359223300971, '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': '5756660', 'n_tokens_mistral': 585, 'n_tokens_neox': 564, 'n_words': 141}