<commit_before><?php

namespace Ddeboer\DataImport\Reader;

/**
 * Iterator that reads data to be imported
 *
 * @author <NAME> <<EMAIL>>
 */
interface ReaderInterface extends \Iterator, \Countable
{
    /**
     * Get the field (column, property) names
     *
     * @return array
     */
    function getFields();
}<commit_msg>Note why count() is not in interface<commit_after><?php

namespace Ddeboer\DataImport\Reader;

/**
 * Iterator that reads data to be imported
 *
 * @author <NAME> <<EMAIL>>
 */
interface ReaderInterface extends \Iterator, \Countable
{
    /**
     * Get the field (column, property) names
     *
     * @return array
     */
    function getFields();
    
    // Don't add count() to interface: see https://github.com/ddeboer/data-import/pull/5
}
{'fraction_non_alphanumeric': 0.1329032258064516, 'fraction_numerical': 0.0012903225806451613, 'mean_word_length': 2.9591836734693877, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, 'https://': 1, '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': '4663084', 'n_tokens_mistral': 239, 'n_tokens_neox': 236, 'n_words': 69}