<commit_before>#!/usr/bin/env python

######################################################################
# Copyright (C) 2011,2012 <NAME>
#
# This file is licensed under Version 3.0 of the GNU General Public
# License. See LICENSE for a text of the license.
######################################################################

######################################################################
# This file is part of BayesPy.
#
# BayesPy is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 3 as
# published by the Free Software Foundation.
#
# BayesPy is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with BayesPy.  If not, see <http://www.gnu.org/licenses/>.
######################################################################

LONG_DESCRIPTION    = \
"""
Bayesian inference tools for Python.

The package provides tools for building models and performing
posterior inference using variational Bayesian message passing.
"""

NAME         = 'bayespy'
DESCRIPTION  = 'Bayesian inference tools for Python'
AUTHOR       = '<NAME>',
AUTHOR_EMAIL = '<EMAIL>',
URL          = 'https://github.com/bayespy/bayespy'
LICENSE      = 'GPLv3'
VERSION      = '0.0'

if __name__ == "__main__":

    from distutils.core import setup, Extension
    from Cython.Distutils import build_ext
    import numpy as np
    
    # Sparse distance extension.
    # Use numpy.get_include() in order to use the correct NumPy for building.
    sparse_distance = Extension('bayespy.utils.covfunc.distance',
                                sources=['bayespy/utils/covfunc/distance.pyx',
                                         'bayespy/utils/covfunc/sparse_distance/sparse_distance.c'],
                                         include_dirs=['bayespy/utils/covfunc/sparse_distance',
                                                       np.get_include()])

    # Setup for BayesPy
    setup(requires = ['numpy (>=1.7.1)', # 1.7.0 contains a memory leak bug
                      'scipy (>=0.11.0)',
                      'scikits.sparse (>=0.1)',
                      'matplotlib (>=1.2.0)',
                      'cython',
                      'h5py'],
          packages = ['bayespy',
                      'bayespy.demos',
                      'bayespy.inference',
                      'bayespy.inference.vmp',
                      'bayespy.inference.vmp.nodes',
                      'bayespy.inference.vmp.nodes.tests',
                      'bayespy.nodes',
                      'bayespy.plot',
                      'bayespy.utils',
                      'bayespy.utils.tests',
                      'bayespy.utils.covfunc',
                      'bayespy.utils.covfunc.tests'],
          name             = NAME,
          version          = VERSION,
          author           = AUTHOR,
          author_email     = AUTHOR_EMAIL,
          description      = DESCRIPTION,
          license          = LICENSE,
          url              = URL,
          long_description = LONG_DESCRIPTION,
          classifiers =
            [ 
              'Programming Language :: Python',
              'Programming Language :: Python :: 3',
              'Development Status :: 2 - Pre-Alpha',
              'Environment :: Console',
              'Intended Audience :: Developers',
              'Intended Audience :: Science/Research',
              'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
              'Operating System :: OS Independent',
              'Topic :: Scientific/Engineering',
              'Topic :: Scientific/Engineering :: Information Analysis'
            ],
          cmdclass = {'build_ext': build_ext},
          ext_modules = [sparse_distance],
          )

<commit_msg>Fixed typos in setup.py<commit_after>#!/usr/bin/env python

######################################################################
# Copyright (C) 2011,2012 <NAME>
#
# This file is licensed under Version 3.0 of the GNU General Public
# License. See LICENSE for a text of the license.
######################################################################

######################################################################
# This file is part of BayesPy.
#
# BayesPy is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 3 as
# published by the Free Software Foundation.
#
# BayesPy is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with BayesPy.  If not, see <http://www.gnu.org/licenses/>.
######################################################################

LONG_DESCRIPTION    = \
"""
Bayesian inference tools for Python.

The package provides tools for building models and performing
posterior inference using variational Bayesian message passing.
"""

NAME         = 'bayespy'
DESCRIPTION  = 'Bayesian inference tools for Python'
AUTHOR       = '<NAME>'
AUTHOR_EMAIL = '<EMAIL>'
URL          = 'https://github.com/bayespy/bayespy'
LICENSE      = 'GPLv3'
VERSION      = '0.0'

if __name__ == "__main__":

    from distutils.core import setup, Extension
    from Cython.Distutils import build_ext
    import numpy as np
    
    # Sparse distance extension.
    # Use numpy.get_include() in order to use the correct NumPy for building.
    sparse_distance = Extension('bayespy.utils.covfunc.distance',
                                sources=['bayespy/utils/covfunc/distance.pyx',
                                         'bayespy/utils/covfunc/sparse_distance/sparse_distance.c'],
                                         include_dirs=['bayespy/utils/covfunc/sparse_distance',
                                                       np.get_include()])

    # Setup for BayesPy
    setup(requires = ['numpy (>=1.7.1)', # 1.7.0 contains a memory leak bug
                      'scipy (>=0.11.0)',
                      'scikits.sparse (>=0.1)',
                      'matplotlib (>=1.2.0)',
                      'cython',
                      'h5py'],
          packages = ['bayespy',
                      'bayespy.demos',
                      'bayespy.inference',
                      'bayespy.inference.vmp',
                      'bayespy.inference.vmp.nodes',
                      'bayespy.inference.vmp.nodes.tests',
                      'bayespy.nodes',
                      'bayespy.plot',
                      'bayespy.utils',
                      'bayespy.utils.tests',
                      'bayespy.utils.covfunc',
                      'bayespy.utils.covfunc.tests'],
          name             = NAME,
          version          = VERSION,
          author           = AUTHOR,
          author_email     = AUTHOR_EMAIL,
          description      = DESCRIPTION,
          license          = LICENSE,
          url              = URL,
          long_description = LONG_DESCRIPTION,
          classifiers =
            [ 
              'Programming Language :: Python',
              'Programming Language :: Python :: 3',
              'Development Status :: 2 - Pre-Alpha',
              'Environment :: Console',
              'Intended Audience :: Developers',
              'Intended Audience :: Science/Research',
              'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
              'Operating System :: OS Independent',
              'Topic :: Scientific/Engineering',
              'Topic :: Scientific/Engineering :: Information Analysis'
            ],
          cmdclass = {'build_ext': build_ext},
          ext_modules = [sparse_distance]
          )


{'fraction_non_alphanumeric': 0.15698898105732326, 'fraction_numerical': 0.008418967438405348, 'mean_word_length': 1.8737104233368909, 'pattern_counts': {'":': 2, '<': 11, '<?xml version=': 0, '>': 19, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 16, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '579190', 'n_tokens_mistral': 2103, 'n_tokens_neox': 1937, 'n_words': 577}