<commit_before><?php

namespace Kunstmaan\NodeSearchBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use Kunstmaan\AdminBundle\Entity\AbstractEntity;
use Kunstmaan\NodeBundle\Entity\Node;

/**
 * Node
 *
 * @ORM\Entity()
 * @ORM\Table(name="kuma_nodes_search")
 */
class NodeSearch extends AbstractEntity
{
    /**
     * @var Node
     *
     * @ORM\OneToOne(targetEntity="Kunstmaan\NodeBundle\Entity\Node")
     * @ORM\JoinColumn(name="node_id", referencedColumnName="id")
     */
    protected $node;

    /**
     * @var int
     *
     * @ORM\Column(name="boost", type="float", nullable=true)
     */
    protected $boost;

    /**
     * @param float $boost
     */
    public function setBoost($boost)
    {
        $this->boost = $boost;
    }

    /**
     * @return float
     */
    public function getBoost()
    {
        return $this->boost;
    }

    public function setNode(Node $node)
    {
        $this->node = $node;
    }

    /**
     * @return Node
     */
    public function getNode()
    {
        return $this->node;
    }
}
<commit_msg>[NodeSearchBundle] Add php8 attribute support in entities<commit_after><?php

namespace Kunstmaan\NodeSearchBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use Kunstmaan\AdminBundle\Entity\AbstractEntity;
use Kunstmaan\NodeBundle\Entity\Node;

/**
 * @ORM\Entity()
 * @ORM\Table(name="kuma_nodes_search")
 */
#[ORM\Entity]
#[ORM\Table(name: 'kuma_nodes_search')]
class NodeSearch extends AbstractEntity
{
    /**
     * @var Node
     *
     * @ORM\OneToOne(targetEntity="Kunstmaan\NodeBundle\Entity\Node")
     * @ORM\JoinColumn(name="node_id", referencedColumnName="id")
     */
    #[ORM\OneToOne(targetEntity: Node::class)]
    #[ORM\JoinColumn(name: 'node_id', referencedColumnName: 'id')]
    protected $node;

    /**
     * @var int
     *
     * @ORM\Column(name="boost", type="float", nullable=true)
     */
    #[ORM\Column(name: 'boost', type: 'float', nullable: true)]
    protected $boost;

    /**
     * @param float $boost
     */
    public function setBoost($boost)
    {
        $this->boost = $boost;
    }

    /**
     * @return float
     */
    public function getBoost()
    {
        return $this->boost;
    }

    public function setNode(Node $node)
    {
        $this->node = $node;
    }

    /**
     * @return Node
     */
    public function getNode()
    {
        return $this->node;
    }
}

{'fraction_non_alphanumeric': 0.15281837160751566, 'fraction_numerical': 0.0004175365344467641, 'mean_word_length': 2.472463768115942, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '3829025', 'n_tokens_mistral': 805, 'n_tokens_neox': 804, 'n_words': 140}