<commit_before><?php

namespace Integrated\Common\Storage;

use Integrated\Common\Content\Document\Storage\Embedded\StorageInterface;
use Integrated\Common\Storage\Command\CommandInterface;
use Integrated\Common\Storage\Handler\QueuedCommandBusInterface;
use Integrated\Common\Storage\Reader\ReaderInterface;

use Doctrine\Common\Collections\ArrayCollection;
use Psr\Log\LoggerInterface;

/**
 * @author <NAME> <<EMAIL>>
 */
interface ManagerInterface
{
    /**
     * @const string
     */
    const LOG_PREFIX = 'IntegratedStorage: ';

    /**
     * The (queued) command (message) bus strategy
     *
     * @param CommandInterface $command
     */
    public function handle(CommandInterface $command);

    /**
     * Fast and simple read action (without a promise)
     *
     * @param StorageInterface $storage
     * @throws \LogicException
     * @return string
     */
    public function read(StorageInterface $storage);

    /**
     * @param ReaderInterface $reader
     * @param ArrayCollection $filesystems
     * @return StorageInterface
     * @throws \Exception
     */
    public function write(ReaderInterface $reader, ArrayCollection $filesystems = null);

    /**
     * A new storage object (make sure you update it)
     *
     * @param StorageInterface $storage
     * @param ReaderInterface $reader
     * @return ManagerInterface
     */
    public function update(StorageInterface $storage, ReaderInterface $reader);

    /**
     * @param StorageInterface $storage
     * @param ArrayCollection $filesystems
     * @return StorageInterface
     */
    public function delete(StorageInterface $storage, ArrayCollection $filesystems = null);

    /**
     * Copy the storage object to any other filesystem
     *
     * @param StorageInterface $storage
     * @param ArrayCollection $filesystems
     * @return StorageInterface
     */
    public function copy(StorageInterface $storage, ArrayCollection $filesystems);
}
<commit_msg>Updated the interface to make it more clear and clean.<commit_after><?php

namespace Integrated\Common\Storage;

use Integrated\Common\Content\Document\Storage\Embedded\StorageInterface;
use Integrated\Common\Storage\Command\CommandInterface;
use Integrated\Common\Storage\Handler\QueuedCommandBusInterface;
use Integrated\Common\Storage\Reader\ReaderInterface;

use Doctrine\Common\Collections\ArrayCollection;
use Psr\Log\LoggerInterface;

/**
 * @author <NAME> <<EMAIL>>
 */
interface ManagerInterface
{
    /**
     * @const string
     */
    const LOG_PREFIX = 'IntegratedStorage: ';

    /**
     * The (queued) command (message) bus strategy
     *
     * @param CommandInterface $command
     */
    public function handle(CommandInterface $command);

    /**
     * Fast and simple read action (without a promise)
     *
     * @param StorageInterface $storage
     * @throws \LogicException
     * @return string
     */
    public function read(StorageInterface $storage);

    /**
     * @param ReaderInterface $reader
     * @param ArrayCollection $filesystems
     * @return StorageInterface
     * @throws \Exception
     */
    public function write(ReaderInterface $reader, ArrayCollection $filesystems = null);

    /**
     * @param StorageInterface $storage
     * @return void
     */
    public function delete(StorageInterface $storage);

    /**
     * Move the file to the specified filesystems
     *
     * @param StorageInterface $storage
     * @param ArrayCollection $filesystems
     * @return StorageInterface
     */
    public function move(StorageInterface $storage, ArrayCollection $filesystems);
}

{'fraction_non_alphanumeric': 0.09788654060066741, 'fraction_numerical': 0.0, 'mean_word_length': 3.2618483412322274, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, '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': '6714136', 'n_tokens_mistral': 944, 'n_tokens_neox': 906, 'n_words': 247}