<commit_before><?php
/**
 * File Discriminator.php
 *
 * @author <NAME> <<EMAIL>>
 */
namespace Epfremmer\SwaggerBundle\Annotations;

use Doctrine\Common\Annotations\Annotation;
use Doctrine\Common\Annotations\AnnotationException;
use JMS\Serializer\Annotation as JMS;

/**
 * Class Discriminator
 *
 * @Annotation
 * @Target("CLASS")
 *
 * @package Epfremmer\SwaggerBundle
 * @subpackage Annotations
 */
class Discriminator extends Annotation
{
    /**
     * @var string[]
     */
    public $map;

    /**
     * @var string
     */
    public $default;

    /**
     * @var string
     */
    public $field = 'type';

    /**
     * Return default kay
     *
     * @return string
     * @throws AnnotationException
     */
    private function getDefault()
    {<commit_msg>Refactored Discriminator annotation to extend JMS\Discriminator disabled by default<commit_after><?php
/**
 * File Discriminator.php
 *
 * @author <NAME> <<EMAIL>>
 */
namespace Epfremmer\SwaggerBundle\Annotations;

use Doctrine\Common\Annotations\Annotation;
use Doctrine\Common\Annotations\AnnotationException;
use JMS\Serializer\Annotation as JMS;

/**
 * Class Discriminator
 *
 * @Annotation
 * @Target("CLASS")
 *
 * @package Epfremmer\SwaggerBundle
 * @subpackage Annotations
 */
class Discriminator extends JMS\Discriminator
{

    /**
     * @var string
     */
    public $default;

    /**
     * @var bool
     */
    public $disabled = true;

    /**
     * Return default kay
     *
     * @return string
     * @throws AnnotationException
     */
    private function getDefault()
    {
{'fraction_non_alphanumeric': 0.12341772151898735, 'fraction_numerical': 0.0, 'mean_word_length': 2.837378640776699, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, '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': '216553', 'n_tokens_mistral': 487, 'n_tokens_neox': 479, 'n_words': 106}