<commit_before><?php

namespace Yosmanyga\Resource\Cacher;

use Yosmanyga\Resource\ResourceInterface;

/**
 * Interface used by cachers.
 */
interface CacherInterface
{
    /**
     * Cache given data from given resource.
     *
     * @param  \Yosmanyga\Resource\ResourceInterface $resource
     * @param  mixed                                 $data
     * @return mixed
     */
    public function store($data, ResourceInterface $resource);

    /**
     * Gets cached data from given resource.
     *
     * @param  \Yosmanyga\Resource\ResourceInterface $resource
     * @return mixed
     */
    public function retrieve(ResourceInterface $resource);

    /**
     * Returns whether cachers has cached data for given resource.
     *
     * @param  \Yosmanyga\Resource\ResourceInterface $resource
     * @return mixed true if the cacher has the cached data for given resource,
     *         false otherwise
     */
    public function check(ResourceInterface $resource);
}<commit_msg>Fixed some doc typos<commit_after><?php

namespace Yosmanyga\Resource\Cacher;

use Yosmanyga\Resource\ResourceInterface;

/**
 * Interface used by cachers.
 */
interface CacherInterface
{
    /**
     * Caches given data from given resource.
     *
     * @param  \Yosmanyga\Resource\ResourceInterface $resource
     * @param  mixed                                 $data
     * @return mixed
     */
    public function store($data, ResourceInterface $resource);

    /**
     * Gets cached data from given resource.
     *
     * @param  \Yosmanyga\Resource\ResourceInterface $resource
     * @return mixed
     */
    public function retrieve(ResourceInterface $resource);

    /**
     * Returns whether cacher has cached data for given resource.
     *
     * @param  \Yosmanyga\Resource\ResourceInterface $resource
     * @return mixed true if the cacher has the cached data for given resource,
     *         false otherwise
     */
    public function check(ResourceInterface $resource);
}
{'fraction_non_alphanumeric': 0.08765743073047859, 'fraction_numerical': 0.0, 'mean_word_length': 2.4599303135888504, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1783839', 'n_tokens_mistral': 522, 'n_tokens_neox': 516, 'n_words': 155}