<commit_before># -*- coding: utf-8 -*-
"""
This file is part of pyCMBS. (c) 2012-2014
For COPYING and LICENSE details, please refer to the file
COPYRIGHT.md
"""


"""
module to compile the required python extensions
This is for development purposes only! Later on
it might be integrated into the standard setup.py
"""

# http://docs.cython.org/src/tutorial/cython_tutorial.htmlfrom distutils.core import setup
from distutils.core import setup
from Cython.Build import cythonize

setup(
  ext_modules = cythonize(["./pycmbs/polygon_utils.pyx", "./pycmbs/geostatistic/variogram_base.pyx"]),
)

# run as ... to build extension
# $ python setup_extensions.py build_ext --inplace<commit_msg>[setup_extensions] modified script to automatically include numpy headers; in some cases these are otherwise not found<commit_after># -*- coding: utf-8 -*-
"""
This file is part of pyCMBS. (c) 2012-2014
For COPYING and LICENSE details, please refer to the file
COPYRIGHT.md
"""


"""
module to compile the required python extensions
This is for development purposes only! Later on
it might be integrated into the standard setup.py
"""

# http://docs.cython.org/src/tutorial/cython_tutorial.htmlfrom distutils.core import setup
from distutils.core import setup
from Cython.Build import cythonize
import numpy

setup(
  ext_modules = cythonize(["./pycmbs/polygon_utils.pyx", "./pycmbs/geostatistic/variogram_base.pyx"]),
  include_dirs = [numpy.get_include()]  # this is needed to get proper information on numpy headers
)

# run as ... to build extension
# $ python setup_extensions.py build_ext --inplace
{'fraction_non_alphanumeric': 0.1018867924528302, 'fraction_numerical': 0.011320754716981131, 'mean_word_length': 4.602112676056338, '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': '6772338', 'n_tokens_mistral': 495, 'n_tokens_neox': 468, 'n_words': 168}