<commit_before><?php

namespace PetrKnap\Php\FileStorage;

/**
 * @author   <NAME> <<EMAIL>>
 * @since    2016-05-09
 * @category FileStorage
 * @package  PetrKnap\Php\FileStorage
 * @license  https://github.com/petrknap/php-filestorage/blob/master/LICENSE MIT
 */
interface StorageManagerInterface
{
    /**
     * Returns storage permissions for files
     *
     * NOTE: Value between 0600 and 0666, add 0111 for directory permissions.
     *
     * @return int
     */
    public function getStoragePermissions();

    /**
     * Returns path to file
     *
     * @param FileInterface $file
     * @return string
     */
    public function getPathToFile(FileInterface $file);

    /**
     * Assigns file to storage
     *
     * @param FileInterface $file
     * @return $this
     */
    public function assignFile(FileInterface $file);

    /**
     * Unassigns file from storage
     *
     * @param FileInterface $file
     * @return $this
     */
    public function unassignFile(FileInterface $file);

    /**
     * Returns all stored files
     *
     * @return \Iterator|FileInterface[]
     */
    public function getFiles();
}
<commit_msg>Fixed PhpDoc<commit_after><?php

namespace PetrKnap\Php\FileStorage;

/**
 * @author   <NAME> <<EMAIL>>
 * @since    2016-05-09
 * @category FileStorage
 * @package  PetrKnap\Php\FileStorage
 * @license  https://github.com/petrknap/php-filestorage/blob/master/LICENSE MIT
 */
interface StorageManagerInterface
{
    /**
     * Returns storage permissions for files
     *
     * NOTE: Value between 0600 and 0666, add 0111 for directory permissions.
     *
     * @return int
     */
    public function getStoragePermissions();

    /**
     * Returns path to file
     *
     * @param FileInterface $file
     * @return string
     */
    public function getPathToFile(FileInterface $file);

    /**
     * Assigns file to storage
     *
     * @param FileInterface $file
     * @return $this
     */
    public function assignFile(FileInterface $file);

    /**
     * Unassigns file from storage
     *
     * @param FileInterface $file
     * @return $this
     */
    public function unassignFile(FileInterface $file);

    /**
     * Returns all stored files
     *
     * @return \Generator|FileInterface[]
     */
    public function getFiles();
}

{'fraction_non_alphanumeric': 0.11063094209161625, 'fraction_numerical': 0.01728608470181504, 'mean_word_length': 2.4144542772861355, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, 'https://': 2, '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': '6191561', 'n_tokens_mistral': 714, 'n_tokens_neox': 677, 'n_words': 173}