<commit_before><?php

namespace OpenOrchestra\ModelInterface\Repository;

use OpenOrchestra\ModelInterface\Model\RedirectionInterface;
use OpenOrchestra\Pagination\Configuration\PaginationRepositoryInterface;

/**
 * Interface RedirectionRepositoryInterface
 */
interface RedirectionRepositoryInterface extends PaginationRepositoryInterface
{
    /**
     * @return array
     */
    public function findAll();

    /**
     * @param string $id
     *
     * @return RedirectionInterface
     */
    public function find($id);

    /**
     * @param string $nodeId
     * @param string $locale
     *
     * @return array
     */
    public function findByNode($nodeId, $locale);
}<commit_msg>add find redirection by siteId (#252) (#254)<commit_after><?php

namespace OpenOrchestra\ModelInterface\Repository;

use OpenOrchestra\ModelInterface\Model\RedirectionInterface;
use OpenOrchestra\Pagination\Configuration\PaginationRepositoryInterface;

/**
 * Interface RedirectionRepositoryInterface
 */
interface RedirectionRepositoryInterface extends PaginationRepositoryInterface
{
    /**
     * @return array
     */
    public function findAll();

    /**
     * @param string $id
     *
     * @return RedirectionInterface
     */
    public function find($id);

    /**
     * @param string $nodeId
     * @param string $locale
     *
     * @return array
     */
    public function findByNode($nodeId, $locale);

    /**
     * @param string $siteId
     *
     * @return array
     */
    public function findBySiteId($siteId);
}
{'fraction_non_alphanumeric': 0.10365058670143416, 'fraction_numerical': 0.003911342894393742, 'mean_word_length': 3.1825613079019073, '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': '3520443', 'n_tokens_mistral': 420, 'n_tokens_neox': 414, 'n_words': 90}