<commit_before><?php
/**
 * Created by PhpStorm.
 * File: FinancialType.php
 * User: <NAME>
 * Date: 11.02.14
 * Time: 12:29
 */

namespace Geekhub\DreamBundle\Form;

//use Geekhub\DreamBundle\Entity\AbstractContributeResource;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;

class FinancialType extends AbstractType
{
    public function getName()
    {
        return 'financialForm';
    }

    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add('title', 'text', array('label' => 'dream.financial.title'))
            ->add('quantity', 'money', array('label' => 'dream.financial.quantity', 'currency' => 'UAH'));
    }

    public function setDefaultOptions(OptionsResolverInterface $resolver)
    {<commit_msg>In financial field numbers will be grouped with a comma<commit_after><?php
/**
 * Created by PhpStorm.
 * File: FinancialType.php
 * User: <NAME>
 * Date: 11.02.14
 * Time: 12:29
 */

namespace Geekhub\DreamBundle\Form;

//use Geekhub\DreamBundle\Entity\AbstractContributeResource;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;

class FinancialType extends AbstractType
{
    public function getName()
    {
        return 'financialForm';
    }

    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add('title', 'text', array('label' => 'dream.financial.title'))
            ->add('quantity', 'money', array('label' => 'dream.financial.quantity', 'currency' => 'UAH', 'grouping' => true));
    }

    public function setDefaultOptions(OptionsResolverInterface $resolver)
    {
{'fraction_non_alphanumeric': 0.1284153005464481, 'fraction_numerical': 0.01092896174863388, 'mean_word_length': 3.962059620596206, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 16, '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': '817061', 'n_tokens_mistral': 555, 'n_tokens_neox': 526, 'n_words': 115}