<commit_before>from setuptools import setup

setup(name='pyshp',
      version='2.0.0',
      description='Pure Python read/write support for ESRI Shapefile format',
      long_description=open('README.md').read(),
      author='<NAME>',
      author_email='<EMAIL>',
      url='https://github.com/GeospatialPython/pyshp',
      download_url='https://github.com/GeospatialPython/pyshp/archive/2.0.0.tar.gz',
      py_modules=['shapefile'],
      license='MIT',
      zip_safe=False,
      keywords='gis geospatial geographic shapefile shapefiles',
      classifiers=['Programming Language :: Python',
                   'Topic :: Scientific/Engineering :: GIS',
                   'Topic :: Software Development :: Libraries',
                   'Topic :: Software Development :: Libraries :: Python Modules'])<commit_msg>Fix UnicodeDecodeError in setup.py.<commit_after>import codecs
import sys

from setuptools import setup


PYTHON3 = sys.version_info[0] == 3

def read_file(file):
    if PYTHON3:
        return open(file, encoding='utf-8').read()
    else:
        return codecs.open(file, encoding='utf-8').read()

setup(name='pyshp',
      version='2.0.0',
      description='Pure Python read/write support for ESRI Shapefile format',
      long_description=read_file('README.md'),
      author='<NAME>',
      author_email='<EMAIL>',
      url='https://github.com/GeospatialPython/pyshp',
      download_url='https://github.com/GeospatialPython/pyshp/archive/2.0.0.tar.gz',
      py_modules=['shapefile'],
      license='MIT',
      zip_safe=False,
      keywords='gis geospatial geographic shapefile shapefiles',
      classifiers=['Programming Language :: Python',
                   'Topic :: Scientific/Engineering :: GIS',
                   'Topic :: Software Development :: Libraries',
                   'Topic :: Software Development :: Libraries :: Python Modules'])
{'fraction_non_alphanumeric': 0.13853503184713375, 'fraction_numerical': 0.009554140127388535, 'mean_word_length': 3.0712742980561556, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '841084', 'n_tokens_mistral': 579, 'n_tokens_neox': 543, 'n_words': 106}