<commit_before>from spack import *

class PyNumpy(Package):
    """array processing for numbers, strings, records, and objects."""
    homepage = "https://pypi.python.org/pypi/numpy"
    url      = "https://pypi.python.org/packages/source/n/numpy/numpy-1.9.1.tar.gz"

    version('1.9.1', '78842b73560ec378142665e712ae4ad9')
    version('1.9.2', 'a1ed53432dbcd256398898d35bc8e645')
    
    extends('python')
    depends_on('py-nose')
    depends_on('netlib-blas+fpic')
    depends_on('netlib-lapack+shared')

    def patch(self):
        filter_file(
            "possible_executables = \['(gfortran|g77|ifort|efl)",
            "possible_executables = ['fc",
            "numpy/distutils/fcompiler/gnu.py",
            "numpy/distutils/fcompiler/intel.py")

    def install(self, spec, prefix):
        with open('site.cfg', 'w') as f:
            f.write('[DEFAULT]\n')
            f.write('libraries=lapack,blas\n')
            f.write('library_dirs=%s/lib:%s/lib\n' % (spec['blas'].prefix, spec['lapack'].prefix))<commit_msg>remove numpy compiler patch<commit_after>from spack import *

class PyNumpy(Package):
    """array processing for numbers, strings, records, and objects."""
    homepage = "https://pypi.python.org/pypi/numpy"
    url      = "https://pypi.python.org/packages/source/n/numpy/numpy-1.9.1.tar.gz"

    version('1.9.1', '78842b73560ec378142665e712ae4ad9')
    version('1.9.2', 'a1<PASSWORD>432dbcd256398898d35bc8e<PASSWORD>')
    
    extends('python')
    depends_on('py-nose')
    depends_on('netlib-blas+fpic')
    depends_on('netlib-lapack+shared')

    def install(self, spec, prefix):
        with open('site.cfg', 'w') as f:
            f.write('[DEFAULT]\n')
            f.write('libraries=lapack,blas\n')
            f.write('library_dirs=%s/lib:%s/lib\n' % (spec['blas'].prefix, spec['lapack'].prefix))
{'fraction_non_alphanumeric': 0.17419706042460534, 'fraction_numerical': 0.05715841045182363, 'mean_word_length': 3.1678004535147393, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, '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': '235933', 'n_tokens_mistral': 728, 'n_tokens_neox': 679, 'n_words': 89}