<commit_before><?php
/*
 * This file is part of the CampaignChain package.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace CampaignChain\Security\Authentication\Client\OAuthBundle\Entity;

use CampaignChain\CoreBundle\Entity\Meta;
use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity
 * @ORM\Table(name="campaignchain_security_authentication_client_oauth_application")
 */
class Application extends Meta
{
    /**
     * @ORM\OneToMany(targetEntity="Token", mappedBy="application")
     */
    protected $tokens;

    /**
     * @ORM\Column(type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    protected $id;

    /**
     * @ORM\Column(type="string", length=255)
     */
    protected $resourceOwner;

    /**
     * @ORM\Column(type="string", length=255, name="`key`")
     */
    protected $key;

    /**
     * @ORM\Column(type="string", length=255, nullable=true)
     */
    protected $secret;

    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {<commit_msg>CE-226 Allow secret field to be empty for OAuth application (in form and DB)<commit_after><?php
/*
 * This file is part of the CampaignChain package.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace CampaignChain\Security\Authentication\Client\OAuthBundle\Entity;

use CampaignChain\CoreBundle\Entity\Meta;
use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity
 * @ORM\Table(name="campaignchain_security_authentication_client_oauth_application")
 */
class Application extends Meta
{
    /**
     * @ORM\OneToMany(targetEntity="Token", mappedBy="application")
     */
    protected $tokens;

    /**
     * @ORM\Column(type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    protected $id;

    /**
     * @ORM\Column(type="string", length=255)
     */
    protected $resourceOwner;

    /**
     * @ORM\Column(type="string", length=255, name="`key`")
     */
    protected $key;

    /**
     * @ORM\Column(type="string", length=255)
     */
    protected $secret;

    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
{'fraction_non_alphanumeric': 0.14507989907485283, 'fraction_numerical': 0.008830950378469302, 'mean_word_length': 2.9, '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': '5486345', 'n_tokens_mistral': 750, 'n_tokens_neox': 724, 'n_words': 162}