<commit_before><?php
/**
 * This file is part of the prooph/event-store.
 * (c) 2014-2017 prooph software GmbH <<EMAIL>>
 * (c) 2015-2017 <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

declare(strict_types=1);

namespace Prooph\EventStore\Projection;

interface ProjectionManager
{
    public function createQuery(): Query;

    public function createProjection(
        string $name,
        array $options = []
    ): Projector;

    public function createReadModelProjection(
        string $name,
        ReadModel $readModel,
        array $options = []
    ): ReadModelProjector;

    public function deleteProjection(string $name, bool $deleteEmittedEvents): void;

    public function resetProjection(string $name): void;

    public function stopProjection(string $name): void;

    /**
     * @return string[]
     */
    public function fetchProjectionNames(?string $filter, int $limit = 20, int $offset = 0): array;

    /**
     * @return string[]
     */
    public function fetchProjectionNamesRegex(string $regex, int $limit = 20, int $offset = 0): array;

    public function fetchProjectionStatus(string $name): ProjectionStatus;

    public function fetchProjectionStreamPositions(string $name): array;

    public function fetchProjectionState(string $name): array;
}<commit_msg>add phpdoc<commit_after><?php
/**
 * This file is part of the prooph/event-store.
 * (c) 2014-2017 prooph software GmbH <<EMAIL>>
 * (c) 2015-2017 <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

declare(strict_types=1);

namespace Prooph\EventStore\Projection;

use Prooph\EventStore\Exception\ProjectionNotFound;

interface ProjectionManager
{
    public function createQuery(): Query;

    public function createProjection(
        string $name,
        array $options = []
    ): Projector;

    public function createReadModelProjection(
        string $name,
        ReadModel $readModel,
        array $options = []
    ): ReadModelProjector;

    /**
     * @throws ProjectionNotFound
     */
    public function deleteProjection(string $name, bool $deleteEmittedEvents): void;

    /**
     * @throws ProjectionNotFound
     */
    public function resetProjection(string $name): void;

    /**
     * @throws ProjectionNotFound
     */
    public function stopProjection(string $name): void;

    /**
     * @return string[]
     */
    public function fetchProjectionNames(?string $filter, int $limit = 20, int $offset = 0): array;

    /**
     * @return string[]
     */
    public function fetchProjectionNamesRegex(string $regex, int $limit = 20, int $offset = 0): array;

    /**
     * @throws ProjectionNotFound
     */
    public function fetchProjectionStatus(string $name): ProjectionStatus;

    /**
     * @throws ProjectionNotFound
     */
    public function fetchProjectionStreamPositions(string $name): array;

    /**
     * @throws ProjectionNotFound
     */
    public function fetchProjectionState(string $name): array;
}
{'fraction_non_alphanumeric': 0.10639645345155162, 'fraction_numerical': 0.014566181127295756, 'mean_word_length': 3.292119565217391, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 13, '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': '3088107', 'n_tokens_mistral': 915, 'n_tokens_neox': 846, 'n_words': 259}