<commit_before><?php
namespace BetaKiller\Utils\Kohana;

use BetaKiller\Model\AbstractEntityInterface;

interface TreeModelSingleParentInterface extends AbstractEntityInterface
{
    /**
     * Return parent model or null
     *
     * @return static|$this|null
     */
    public function getParent();

    /**
     * Returns list of child models
     *
     * @return $this[]|mixed
     * @todo Rewrite this to tree model repository
     * @deprecated
     */
    public function getChildren();

    /**
     * @return $this[]
     * @todo Rewrite this to tree model repository
     * @deprecated
     */
    public function getRoot();

    /**
     * @param string|null $columnName
     *
     * @return int[]
     * @todo Rewrite this to tree model repository
     * @deprecated
     */
    public function getAllChildren(string $columnName = null);

    /**
     * @param TreeModelSingleParentInterface|null $parent
     *
     * @return $this
     */
    public function setParent(TreeModelSingleParentInterface $parent = null);

    /**
     * @return $this[]
     */
    public function getParents();

    /**
     * @param TreeModelSingleParentInterface $model
     *
     * @return bool
     * @todo Rewrite this to tree model repository
     * @deprecated
     */
    public function hasInAscendingBranch(TreeModelSingleParentInterface $model);
}
<commit_msg>Add @deprecated and @todo tags to TreeModelSingleParentInterface<commit_after><?php
namespace BetaKiller\Utils\Kohana;

use BetaKiller\Model\AbstractEntityInterface;

interface TreeModelSingleParentInterface extends AbstractEntityInterface
{
    /**
     * Return parent model or null
     *
     * @return static|$this|null
     * @todo Rewrite this to tree model repository
     * @deprecated
     */
    public function getParent();

    /**
     * Returns list of child models
     *
     * @return $this[]|mixed
     * @todo Rewrite this to tree model repository
     * @deprecated
     */
    public function getChildren();

    /**
     * @return $this[]
     * @todo Rewrite this to tree model repository
     * @deprecated
     */
    public function getRoot();

    /**
     * @param string|null $columnName
     *
     * @return int[]
     * @todo Rewrite this to tree model repository
     * @deprecated
     */
    public function getAllChildren(string $columnName = null);

    /**
     * @param TreeModelSingleParentInterface|null $parent
     *
     * @return $this
     * @deprecated
     */
    public function setParent(TreeModelSingleParentInterface $parent = null);

    /**
     * @return $this[]
     * @todo Rewrite this to tree model repository
     * @deprecated
     */
    public function getParents();

    /**
     * @param TreeModelSingleParentInterface $model
     *
     * @return bool
     * @todo Rewrite this to tree model repository
     * @deprecated
     */
    public function hasInAscendingBranch(TreeModelSingleParentInterface $model);
}

{'fraction_non_alphanumeric': 0.0976271186440678, 'fraction_numerical': 0.0, 'mean_word_length': 2.5813106796116503, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '5217414', 'n_tokens_mistral': 823, 'n_tokens_neox': 806, 'n_words': 223}