<commit_before># -*- coding: utf-8
from __future__ import unicode_literals

import os
import codecs

__version__ = (1,1,1)

class FragmentsError(Exception): pass

def _iterate_over_files(args, config):
    if args:
        seen = set()
        for a in args:
            if a not in seen:
                yield os.path.realpath(a)
                seen.add(a)
    else:
        for f in sorted(config['files']):
            yield os.path.join(config.root, f)
<commit_msg>version 1.2.0 for better modified file detection<commit_after># -*- coding: utf-8
from __future__ import unicode_literals

import os
import codecs

__version__ = (1,2,0)

class FragmentsError(Exception): pass

def _iterate_over_files(args, config):
    if args:
        seen = set()
        for a in args:
            if a not in seen:
                yield os.path.realpath(a)
                seen.add(a)
    else:
        for f in sorted(config['files']):
            yield os.path.join(config.root, f)

{'fraction_non_alphanumeric': 0.10051282051282051, 'fraction_numerical': 0.011282051282051283, 'mean_word_length': 2.221122112211221, 'pattern_counts': {'":': 0, '<': 3, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1640236', 'n_tokens_mistral': 318, 'n_tokens_neox': 308, 'n_words': 92}