<commit_before><?php

namespace App\Bundle\AdminBundle\Controller;

use App\Bundle\AdminBundle\Form\MultiCurrencyType;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;

class MultiCurrencyController extends Controller
{
    public function multiCurrencyAction(Request $request)
    {
        $form = $this->createForm(MultiCurrencyType::class);
        $form->handleRequest($request);

        if ($form->isSubmitted() && $form->isValid()) {
            $formData = $form->getData();
            $this->get('app_shop_bundle.multi_currency')->process('USD', $formData['usd']);
            $this->get('app_shop_bundle.multi_currency')->process('EUR', $formData['eur']);
            $this->get('app_shop_bundle.multi_currency')->refreshCurrency();
            $this->addFlash('success', 'Курс успешно был изменен');

            return $this->redirectToRoute('app_admin_bundle_multicurrency');
        }

        return $this->render('AppAdminBundle:Admin/Page:parser.html.twig', [<commit_msg>changes<commit_after><?php

namespace App\Bundle\AdminBundle\Controller;

use App\Bundle\AdminBundle\Form\MultiCurrencyType;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
use VisualCraft\BeanstalkScheduler\Job;

class MultiCurrencyController extends Controller
{
    public function multiCurrencyAction(Request $request)
    {
        $form = $this->createForm(MultiCurrencyType::class);
        $form->handleRequest($request);

        if ($form->isSubmitted() && $form->isValid()) {
            $formData = $form->getData();
            $this->get('app_shop_bundle.multi_currency')->process('USD', $formData['usd']);
            $this->get('app_shop_bundle.multi_currency')->process('EUR', $formData['eur']);

            $this->get('visual_craft_beanstalk_scheduler.manager.multi_currency')
                ->submit(new Job([]))
            ;

            $this->addFlash('success', 'Курс успешно был изменен');

            return $this->redirectToRoute('app_admin_bundle_multicurrency');
        }

        return $this->render('AppAdminBundle:Admin/Page:parser.html.twig', [
{'fraction_non_alphanumeric': 0.14658726523133303, 'fraction_numerical': 0.0, 'mean_word_length': 3.8425720620842574, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 31, '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': '5936124', 'n_tokens_mistral': 623, 'n_tokens_neox': 624, 'n_words': 82}