<commit_before><?php
namespace GraphCommons\Graph\Entity;

use GraphCommons\Graph\GraphEntity;

final class Edge extends GraphEntity
{
    protected $id;
    protected $name;
    protected $typeId;
    protected $userId;
    protected $from;
    protected $to;
    protected $weight;
    protected $directed;
    protected $properties;

    final public function setId(string $id): self
    {
        $this->id = $id;
        return $this;
    }
    final public function setName(string $name = null): self
    {
        $this->name = (string) $name;
        return $this;
    }
    final public function setTypeId(string $typeId = null): self
    {
        $this->typeId = (string) $typeId;
        return $this;
    }
    final public function setUserId(string $userId = null): self
    {
        $this->userId = (string) $userId;
        return $this;
    }
    final public function setFrom(string $from = null): self
    {
        $this->from = (string) $from;
        return $this;
    }
    final public function setTo(string $to = null): self
    {
        $this->to = (string) $to;
        return $this;
    }
    final public function setWeight(int $weight = null): self
    {
        $this->weight = (int) $weight;
        return $this;
    }
    final public function setDirected(int $directed = null): self
    {
        $this->directed = (int) $directed;
        return $this;
    }
    final public function setProperties(\stdClass $properties = null): self
    {
        $this->properties = (object) $properties;
        return $this;
    }

    final public function getId(): string
    {
        return $this->id;
    }
    final public function getName(): string
    {
        return $this->name;
    }
    final public function getTypeId(): string
    {
        return $this->typeId;
    }
    final public function getUserId(): string
    {
        return $this->userId;
    }
    final public function getFrom(): string
    {
        return $this->from;
    }
    final public function getTo(): string
    {
        return $this->to;
    }
    final public function getWeight(): int
    {
        return $this->weight;
    }
    final public function getDirected(): int
    {
        return $this->directed;
    }
    final public function getProperties(): \stdClass
    {
        return $this->properties;
    }
}<commit_msg>add $fromNode, $toNode and related methods.<commit_after><?php
namespace GraphCommons\Graph\Entity;

use GraphCommons\Graph\GraphEntity;

final class Edge extends GraphEntity
{
    protected $id;
    protected $name;
    protected $typeId;
    protected $userId;
    protected $from;
    protected $fromNode;
    protected $to;
    protected $toNode;
    protected $weight;
    protected $directed;
    protected $properties;

    final public function setId(string $id): self
    {
        $this->id = $id;
        return $this;
    }
    final public function setName(string $name = null): self
    {
        $this->name = (string) $name;
        return $this;
    }
    final public function setTypeId(string $typeId = null): self
    {
        $this->typeId = (string) $typeId;
        return $this;
    }
    final public function setUserId(string $userId = null): self
    {
        $this->userId = (string) $userId;
        return $this;
    }
    final public function setFrom(string $from = null): self
    {
        $this->from = (string) $from;
        return $this;
    }
    final public function setFromNode(Node $fromNode): self
    {
        $this->fromNode = $fromNode;
        return $this;
    }
    final public function setTo(string $to = null): self
    {
        $this->to = (string) $to;
        return $this;
    }
    final public function setToNode(Node $toNode): self
    {
        $this->toNode = $toNode;
        return $this;
    }
    final public function setWeight(int $weight = null): self
    {
        $this->weight = (int) $weight;
        return $this;
    }
    final public function setDirected(int $directed = null): self
    {
        $this->directed = (int) $directed;
        return $this;
    }
    final public function setProperties(\stdClass $properties = null): self
    {
        $this->properties = (object) $properties;
        return $this;
    }

    final public function getId(): string
    {
        return $this->id;
    }
    final public function getName(): string
    {
        return $this->name;
    }
    final public function getTypeId(): string
    {
        return $this->typeId;
    }
    final public function getUserId(): string
    {
        return $this->userId;
    }
    final public function getFrom(): string
    {
        return $this->from;
    }
    final public function getFromNode(): Node
    {
        return $this->fromNode;
    }
    final public function getTo(): string
    {
        return $this->to;
    }
    final public function getToNode(): Node
    {
        return $this->toNode;
    }
    final public function getWeight(): int
    {
        return $this->weight;
    }
    final public function getDirected(): int
    {
        return $this->directed;
    }
    final public function getProperties(): \stdClass
    {
        return $this->properties;
    }
}
{'fraction_non_alphanumeric': 0.11183704842428902, 'fraction_numerical': 0.0, 'mean_word_length': 2.141219070609535, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 43, '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': '1666704', 'n_tokens_mistral': 1509, 'n_tokens_neox': 1509, 'n_words': 437}