<commit_before># Licensed under a 3-clause BSD style license - see PYFITS.rst
from __future__ import absolute_import

import os
from distutils.core import Extension
from astropy_helpers import setup_helpers

def get_extensions():
    # Get gary path
    import gary
    gary_base_path = os.path.split(gary.__file__)[0]
    gary_incl_path = os.path.join(gary_base_path, "potential")

    # Get biff path
    import biff
    biff_base_path = os.path.split(biff.__file__)[0]
    biff_incl_path = os.path.join(biff_base_path, "src")
    print(biff_incl_path)

    cfg = setup_helpers.DistutilsExtensionArgs()
    cfg['include_dirs'].append('numpy')
    cfg['include_dirs'].append(gary_incl_path)
    cfg['include_dirs'].append(biff_incl_path)
    cfg['sources'].append('ophiuchus/potential/core.pyx')
    cfg['sources'].append('ophiuchus/potential/src/_potential.c')
    cfg['sources'].append(os.path.join(gary_incl_path, '_cbuiltin.c'))
    cfg['sources'].append(os.path.join(biff_incl_path, 'bfe.c'))
    cfg['sources'].append(os.path.join(biff_incl_path, 'bfe_helper.c'))
    cfg['libraries'] = ['gsl', 'gslcblas']

    return [Extension('ophiuchus.potential._potential', **cfg)]<commit_msg>try gnu99 for this package too<commit_after># Licensed under a 3-clause BSD style license - see PYFITS.rst
from __future__ import absolute_import

import os
from distutils.core import Extension
from astropy_helpers import setup_helpers

def get_extensions():
    # Get gary path
    import gary
    gary_base_path = os.path.split(gary.__file__)[0]
    gary_incl_path = os.path.join(gary_base_path, "potential")

    # Get biff path
    import biff
    biff_base_path = os.path.split(biff.__file__)[0]
    biff_incl_path = os.path.join(biff_base_path, "src")
    print(biff_incl_path)

    cfg = setup_helpers.DistutilsExtensionArgs()
    cfg['include_dirs'].append('numpy')
    cfg['include_dirs'].append(gary_incl_path)
    cfg['include_dirs'].append(biff_incl_path)
    cfg['sources'].append('ophiuchus/potential/core.pyx')
    cfg['sources'].append('ophiuchus/potential/src/_potential.c')
    cfg['sources'].append(os.path.join(gary_incl_path, '_cbuiltin.c'))
    cfg['sources'].append(os.path.join(biff_incl_path, 'bfe.c'))
    cfg['sources'].append(os.path.join(biff_incl_path, 'bfe_helper.c'))
    cfg['libraries'] = ['gsl', 'gslcblas']
    cfg['extra_compile_args'] = ['--std=gnu99']

    return [Extension('ophiuchus.potential._potential', **cfg)]
{'fraction_non_alphanumeric': 0.14151329243353783, 'fraction_numerical': 0.00408997955010225, 'mean_word_length': 4.893975903614458, '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': '7572010', 'n_tokens_mistral': 892, 'n_tokens_neox': 877, 'n_words': 138}