<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-

from codecs import open
import os
import sys

__title__ = 'baidupcs'
__version__ = '0.3.1'
__author__ = 'mozillazg'
__license__ = 'MIT'
__copyright__ = 'Copyright (c) 2014 mozillazg'

try:
    from setuptools import setup
except ImportError:
    from distutils.core import setup

if sys.argv[-1] == 'publish':
    os.system('python setup.py sdist upload')
    sys.exit()

requirements = open('requirements.txt').read().split('\n')
packages = [
    'baidupcs',
]


def long_description():
    readme = open('README.rst', encoding= 'utf-8').read()
    changelog = open('CHANGELOG.rst', encoding= 'utf-8').read()
    return readme + '\n\n' + changelog
<commit_msg>Fixed "TypeError: Type str doesn't support the buffer API"<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-

from codecs import open
import os
import sys

__title__ = 'baidupcs'
__version__ = '0.3.1'
__author__ = 'mozillazg'
__license__ = 'MIT'
__copyright__ = 'Copyright (c) 2014 mozillazg'

try:
    from setuptools import setup
except ImportError:
    from distutils.core import setup

if sys.argv[-1] == 'publish':
    os.system('python setup.py sdist upload')
    sys.exit()

requirements = open('requirements.txt').read().decode().split('\n')
packages = [
    'baidupcs',
]


def long_description():
    readme = open('README.rst', encoding= 'utf-8').read()
    changelog = open('CHANGELOG.rst', encoding= 'utf-8').read()
    return readme + '\n\n' + changelog

{'fraction_non_alphanumeric': 0.158, 'fraction_numerical': 0.014666666666666666, 'mean_word_length': 3.9701986754966887, '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': '2663356', 'n_tokens_mistral': 543, 'n_tokens_neox': 531, 'n_words': 132}