<commit_before><?php
namespace OpenCFP;

use Silex\Application;
use Symfony\Component\HttpFoundation\Request;

class LoginController
{
    public function indexAction(Request $req, Application $app)
    {
        $template = $app['twig']->loadTemplate('create_user.twig');
        return $template->render(array());
    }

    public function processAction(Request $req, Application $app)
    {
        $templateName = 'create_user.twig';
        $formData = array(
            'first_name' => $req->get('first_name'),
            'last_name' => $req->get('last_name'),
            'email' => $req->get('email'),
            'password' => $req->get('password'),
            'password2' => $<PASSWORD>('<PASSWORD>')
        );
        $formData['speaker_info'] = $req->get('speaker_info') ?: null;
        $formData['speaker_bio'] = $req->get('speaker_bio') ?: null;

        $form = new \OpenCFP\SignupForm($formData);

        if ($form->validateAll()) {
            $sanitizedData = $form->sanitize();

            // Create account using Sentry
            $userData = array(
                'email' => $sanitizedData['email'],
                'password' => $<PASSWORD>['password'],
            );

            try {
                $user = $app['sentry']->getUserProvider()->create($userData);
<commit_msg>Fixed bad controller name and added in automatically activating people's accounts<commit_after><?php
namespace OpenCFP;

use Silex\Application;
use Symfony\Component\HttpFoundation\Request;

class SignupController
{
    public function indexAction(Request $req, Application $app)
    {
        $template = $app['twig']->loadTemplate('create_user.twig');
        return $template->render(array());
    }

    public function processAction(Request $req, Application $app)
    {
        $templateName = 'create_user.twig';
        $formData = array(
            'first_name' => $req->get('first_name'),
            'last_name' => $req->get('last_name'),
            'email' => $req->get('email'),
            'password' => $req->get('password'),
            'password2' => $req->get('password2')
        );
        $formData['speaker_info'] = $req->get('speaker_info') ?: null;
        $formData['speaker_bio'] = $req->get('speaker_bio') ?: null;

        $form = new \OpenCFP\SignupForm($formData);

        if ($form->validateAll()) {
            $sanitizedData = $form->sanitize();

            // Create account using Sentry
            $userData = array(
                'email' => $sanitizedData['email'],
                'password' => $<PASSWORD>['password'],
                'activated' => 1
            );

            try {
                $user = $app['sentry']->getUserProvider()->create($userData);

{'fraction_non_alphanumeric': 0.16586980507539537, 'fraction_numerical': 0.001471129091577786, 'mean_word_length': 2.430012610340479, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 47, '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': '4106428', 'n_tokens_mistral': 805, 'n_tokens_neox': 784, 'n_words': 142}