<commit_before><?php
/**
 * This file is part of the login-cidadao project or it's bundles.
 *
 * (c) <NAME> <guilhermednt on github>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace LoginCidadao\RemoteClaimsBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use LoginCidadao\RemoteClaimsBundle\Model\ClaimProviderInterface;
use LoginCidadao\RemoteClaimsBundle\Model\RemoteClaimInterface;
use LoginCidadao\RemoteClaimsBundle\Model\TagUri;
use LoginCidadao\RemoteClaimsBundle\Validator\Constraints\HostBelongsToClaimProvider;

/**
 * RemoteClaim
 * @package LoginCidadao\RemoteClaimsBundle\Entity
 * @HostBelongsToClaimProvider
 * @ORM\Entity(repositoryClass="LoginCidadao\RemoteClaimsBundle\Entity\RemoteClaimRepository")
 * @ORM\Table(name="remote_claim")
 */
class RemoteClaim implements RemoteClaimInterface
{
    /**
     * @ORM\Id
     * @ORM\Column(type="integer")
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    protected $id;

    /**
     * @var TagUri
     * @ORM\Column(name="name", type="string", length=255, nullable=false)
     */
    private $name;

    /**
     * Uri used to access the Claim Metadata.
     *
     * This value is to be considered a "cached value" and will be used only when the Discovery process fails.
     *
     * @var string
     *
     * @ORM\Column(name="claim_uri", type="string", length=2083, nullable=true)
     */
    private $uri;

    /**
     * @var string
     * @ORM\Column(name="display_name", type="string", length=255, nullable=false)
     */
    private $displayName;

    /**
     * @var string
     * @ORM\Column(name="description", type="text", nullable=true)
     */
    private $description;

    /**
     * @var string[]
     * @ORM\Column(name="provider_recommended_scope", type="json_array", nullable=true)
     */
    private $providerRecommendedScope;

    /**
     * @var string[]
     * @ORM\Column(name="provider_essential_scope", type="json_array", nullable=true)
     */
    private $providerEssentialScope;

    /**
     * @var ClaimProviderInterface
     *
     * @ORM\OneToOne(targetEntity="LoginCidadao\OAuthBundle\Entity\Client")
     * @ORM\JoinColumn(name="provider_id", referencedColumnName="id")
     */
    private $provider;

    /**
     * @return mixed
     */
    public function getId()<commit_msg>fixed Entity relationship PROCERGS#666<commit_after><?php
/**
 * This file is part of the login-cidadao project or it's bundles.
 *
 * (c) <NAME> <guilhermednt on github>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace LoginCidadao\RemoteClaimsBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use LoginCidadao\RemoteClaimsBundle\Model\ClaimProviderInterface;
use LoginCidadao\RemoteClaimsBundle\Model\RemoteClaimInterface;
use LoginCidadao\RemoteClaimsBundle\Model\TagUri;
use LoginCidadao\RemoteClaimsBundle\Validator\Constraints\HostBelongsToClaimProvider;

/**
 * RemoteClaim
 * @package LoginCidadao\RemoteClaimsBundle\Entity
 * @HostBelongsToClaimProvider
 * @ORM\Entity(repositoryClass="LoginCidadao\RemoteClaimsBundle\Entity\RemoteClaimRepository")
 * @ORM\Table(name="remote_claim")
 */
class RemoteClaim implements RemoteClaimInterface
{
    /**
     * @ORM\Id
     * @ORM\Column(type="integer")
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    protected $id;

    /**
     * @var TagUri
     * @ORM\Column(name="name", type="string", length=255, nullable=false)
     */
    private $name;

    /**
     * Uri used to access the Claim Metadata.
     *
     * This value is to be considered a "cached value" and will be used only when the Discovery process fails.
     *
     * @var string
     *
     * @ORM\Column(name="claim_uri", type="string", length=2083, nullable=true)
     */
    private $uri;

    /**
     * @var string
     * @ORM\Column(name="display_name", type="string", length=255, nullable=false)
     */
    private $displayName;

    /**
     * @var string
     * @ORM\Column(name="description", type="text", nullable=true)
     */
    private $description;

    /**
     * @var string[]
     * @ORM\Column(name="provider_recommended_scope", type="json_array", nullable=true)
     */
    private $providerRecommendedScope;

    /**
     * @var string[]
     * @ORM\Column(name="provider_essential_scope", type="json_array", nullable=true)
     */
    private $providerEssentialScope;

    /**
     * @var ClaimProviderInterface
     *
     * @ORM\ManyToOne(targetEntity="LoginCidadao\OAuthBundle\Entity\Client")
     * @ORM\JoinColumn(name="provider_id", referencedColumnName="id")
     */
    private $provider;

    /**
     * @return mixed
     */
    public function getId()
{'fraction_non_alphanumeric': 0.128338898163606, 'fraction_numerical': 0.004799666110183639, 'mean_word_length': 3.4461966604823746, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, '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': '1460168', 'n_tokens_mistral': 1515, 'n_tokens_neox': 1465, 'n_words': 298}