<commit_before>from __future__ import with_statement
from setuptools import setup, find_packages
import versioneer

def readme():
    with open('README.md', encoding="utf-8") as f:
        return f.read()

def pip_requirements(fname='requirements.txt'):
    with open(fname, 'r') as f:
        for line in f:
            line = line.strip()
            if not line or line.startswith('#'):
                continue
            reqs.append(line)
    return reqs

reqs = [line.strip() for line in open('requirements.txt')]

setup(<commit_msg>Use io import for open of file<commit_after>from __future__ import with_statement
from setuptools import setup, find_packages
import io
import versioneer

def readme():
    with io.open('README.md') as f:
        return f.read()

def pip_requirements(fname='requirements.txt'):
    with open(fname, 'r') as f:
        for line in f:
            line = line.strip()
            if not line or line.startswith('#'):
                continue
            reqs.append(line)
    return reqs

reqs = [line.strip() for line in open('requirements.txt')]

setup(
{'fraction_non_alphanumeric': 0.10805860805860806, 'fraction_numerical': 0.0009157509157509158, 'mean_word_length': 2.7176870748299318, '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': '6655839', 'n_tokens_mistral': 336, 'n_tokens_neox': 330, 'n_words': 104}