<commit_before>import sys
import re
from setuptools import find_packages, setup, Command
from pygdbmi.tests import test_app

EXCLUDE_FROM_PACKAGES = []

readme = open('README.rst', 'r').read()

with open('pygdbmi/__init__.py', 'r') as fd:
    version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
                        fd.read(), re.MULTILINE).group(1)


class TestCommand (Command):
    description = 'test task'
    user_options = []

    def initialize_options(self):
        pass<commit_msg>Use codecs.open() to open the readme.rst, to prevent locale related bugs<commit_after>import sys
import re
from codecs import open
from setuptools import find_packages, setup, Command
from pygdbmi.tests import test_app

EXCLUDE_FROM_PACKAGES = []

readme = open('README.rst', 'rb', 'utf-8').read()

with open('pygdbmi/__init__.py', 'r') as fd:
    version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
                        fd.read(), re.MULTILINE).group(1)


class TestCommand (Command):
    description = 'test task'
    user_options = []

    def initialize_options(self):
        pass
{'fraction_non_alphanumeric': 0.1583710407239819, 'fraction_numerical': 0.0027149321266968325, 'mean_word_length': 3.5892116182572615, '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': '3119378', 'n_tokens_mistral': 385, 'n_tokens_neox': 369, 'n_words': 88}