<commit_before><?php

namespace App\Http\Controllers;

use Auth;
use Validator;
use Carbon\Carbon;
use App\Models\Pod;
use App\Models\User;
use App\Models\Event;
use App\Models\Application;
use App\Models\Announcement;
use Illuminate\Http\Request;
use App\Models\InterestSignup;
use App\Models\ApplicationNote;
use Eluceo\iCal\Component\Calendar;

/**
 * Class ExecController.
 */
class ExecController extends Controller
{
    /**
     * @return array of the interest signup data
     */
    public function getInterestData()
    {
        return InterestSignup::all();
    }

    public function dashboardData()
    {
        return response()->success([
            'interest_count' => InterestSignup::count(),
        ]);
    }

    /**
     * Gets all the users, for the exec UI.
     */
    public function getUsers()
    {
        $users = User::all();
        foreach ($users as $eachUser) {
            $eachUser->roles = $eachUser->roles()->pluck('name');
        }

        return response()->success($users);
    }

    /**
     * Gets all applications
     */
    public function getApplications()
    {
        return response()->success(Application::with('user', 'school')->get());
    }
<commit_msg>more exec stats<commit_after><?php

namespace App\Http\Controllers;

use Auth;
use Validator;
use Carbon\Carbon;
use App\Models\Pod;
use App\Models\User;
use App\Models\Event;
use App\Models\Application;
use App\Models\Announcement;
use Illuminate\Http\Request;
use App\Models\InterestSignup;
use App\Models\ApplicationNote;
use Eluceo\iCal\Component\Calendar;

/**
 * Class ExecController.
 */
class ExecController extends Controller
{
    /**
     * @return array of the interest signup data
     */
    public function getInterestData()
    {
        return InterestSignup::all();
    }

    public function dashboardData()
    {
        $interestCount = InterestSignup::count();
        $interestEmails = InterestSignup::all()->pluck('email');
        $signupEmails = User::all()->pluck('email');
        $interestEmailsWhoHaveNotSignedUp = $interestEmails->intersect($signupEmails)->count();
        $percentOfInterestWhoApplied = ($interestCount-$interestEmailsWhoHaveNotSignedUp)/$interestCount;


        $reasonsMap = [];
        foreach (Application::all() as $app) {
            foreach ($app->validationDetails()['reasons'] as $reason) {
                $reasonsMap[$reason] = !array_key_exists($reason, $reasonsMap) ? 1 :  $reasonsMap[$reason] + 1;
            }
        }
        arsort($reasonsMap);
        return response()->success([
            'interest_count'           => $interestCount,
            'percent_interest_applied' => $percentOfInterestWhoApplied,
            'reasons_map'              => $reasonsMap
        ]);
    }

    /**
     * Gets all the users, for the exec UI.
     */
    public function getUsers()
    {
        $users = User::all();
        foreach ($users as $eachUser) {
            $eachUser->roles = $eachUser->roles()->pluck('name');
        }

        return response()->success($users);
    }

    /**
     * Gets all applications
     */
    public function getApplications()
    {
        return response()->success(Application::with('user', 'school')->get());
    }

{'fraction_non_alphanumeric': 0.1373880827415869, 'fraction_numerical': 0.0006174745291756715, 'mean_word_length': 2.6445444319460067, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 26, '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': '1996239', 'n_tokens_mistral': 947, 'n_tokens_neox': 921, 'n_words': 196}