<commit_before><?php

namespace OpenCFP\Http\Controller;

use Cartalyst\Sentry\Sentry;
use OpenCFP\Domain\Services\Authentication;
use OpenCFP\Domain\Services\Login;
use Silex\Application;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;

class SecurityController extends BaseController
{
    use FlashableTrait;

    public function indexAction()
    {
        return $this->render('login.twig');
    }

    public function processAction(Request $req, Application $app)
    {
        /** @var Authentication $auth */
        $auth = $this->service(Authentication::class);

        try {
            $auth->authenticate($req->get('email', $req->get('password')));

            // This is for redirecting to OAuth endpoint if we arrived<commit_msg>Fix typo in SecurityController<commit_after><?php

namespace OpenCFP\Http\Controller;

use Cartalyst\Sentry\Sentry;
use OpenCFP\Domain\Services\Authentication;
use OpenCFP\Domain\Services\Login;
use Silex\Application;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;

class SecurityController extends BaseController
{
    use FlashableTrait;

    public function indexAction()
    {
        return $this->render('login.twig');
    }

    public function processAction(Request $req, Application $app)
    {
        /** @var Authentication $auth */
        $auth = $this->service(Authentication::class);

        try {
            $auth->authenticate($req->get('email'), $req->get('password'));

            // This is for redirecting to OAuth endpoint if we arrived
{'fraction_non_alphanumeric': 0.11117612638970158, 'fraction_numerical': 0.0, 'mean_word_length': 3.776536312849162, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '5992347', 'n_tokens_mistral': 473, 'n_tokens_neox': 464, 'n_words': 106}