<commit_before>#!/usr/bin/env python
# To use:
#       python setup.py install
#

import os, sys, string
# this isn't in scipy_distutils -- need to figure out clean way to do that
from distutils import dep_util
from scipy_distutils.core import Extension
from scipy_distutils.misc_util import get_path, default_config_dict, dot_join
import interface_gen
from scipy_distutils.atlas_info import get_atlas_info
from scipy_distutils.system_info import dict_append,AtlasNotFoundError

# needed now for pyf_extensions

if os.name == 'nt':
    from scipy_distutils.mingw32_support import *

def configuration(parent_package=''):
    config = default_config_dict('linalg',parent_package)
    local_path = get_path(__name__)
    test_path = os.path.join(local_path,'tests')

    config['packages'].append(dot_join(parent_package,'linalg.tests'))
    config['package_dir']['linalg.tests'] = test_path
    config['ext_modules'].extend(extensions(dot_join(parent_package,'linalg')))
    return config
       
def generic_extension(mod_name,sources,parent_package='',use_underscore = 1):
    atlas_info = get_atlas_info()
    if not atlas_info:
        raise AtlasNotFoundError,AtlasNotFoundError.__doc__
    
    local_path = get_path(__name__)
    mod_file = mod_name + '.pyf'<commit_msg>Fixed interface_gen conflict in linalg and linalg2<commit_after>#!/usr/bin/env python
# To use:
#       python setup.py install
#

import os, sys, string
# this isn't in scipy_distutils -- need to figure out clean way to do that
from distutils import dep_util
from scipy_distutils.core import Extension
from scipy_distutils.misc_util import get_path, default_config_dict, dot_join
import interface_gen
reload(interface_gen)
from scipy_distutils.atlas_info import get_atlas_info
from scipy_distutils.system_info import dict_append,AtlasNotFoundError

# needed now for pyf_extensions

if os.name == 'nt':
    from scipy_distutils.mingw32_support import *

def configuration(parent_package=''):
    config = default_config_dict('linalg',parent_package)
    local_path = get_path(__name__)
    test_path = os.path.join(local_path,'tests')

    config['packages'].append(dot_join(parent_package,'linalg.tests'))
    config['package_dir']['linalg.tests'] = test_path
    config['ext_modules'].extend(extensions(dot_join(parent_package,'linalg')))
    return config
       
def generic_extension(mod_name,sources,parent_package='',use_underscore = 1):
    atlas_info = get_atlas_info()
    if not atlas_info:
        raise AtlasNotFoundError,AtlasNotFoundError.__doc__
    
    local_path = get_path(__name__)
    mod_file = mod_name + '.pyf'
{'fraction_non_alphanumeric': 0.09191880505553428, 'fraction_numerical': 0.002680965147453083, 'mean_word_length': 5.309178743961352, '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': '3797364', 'n_tokens_mistral': 853, 'n_tokens_neox': 836, 'n_words': 180}