<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-

import os
import sys
from setuptools import setup, Extension
import numpy as np

# Version number
version = '0.6.1'

def read(fname):
    return open(os.path.join(os.path.dirname(__file__), fname)).read()

#Mac OS X Clang doesn't support OpenMP th the current time.
#This detects if we are building on a Mac
def ismac():
    platform = sys.platform
    ismac = False
    if platform[:6] == 'darwin':
        ismac = True
    return ismac

if ismac():
    compile_flags = [ '-O3', ]
    link_args = ['']
else:
    compile_flags = [ '-fopenmp', '-O3', ]
    link_args = ['-lgomp']

ext_mods = [Extension(name='GPy.kern._src.stationary_cython',
                      sources=['GPy/kern/_src/stationary_cython.c','GPy/kern/_src/stationary_utils.c'],
                      include_dirs=[np.get_include()],
                      extra_compile_args=compile_flags,
                      extra_link_args = link_args),
            Extension(name='GPy.util.choleskies_cython',
                      sources=['GPy/util/choleskies_cython.c'],<commit_msg>bug fix for compilation on Mac<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-

import os
import sys
from setuptools import setup, Extension
import numpy as np

# Version number
version = '0.6.1'

def read(fname):
    return open(os.path.join(os.path.dirname(__file__), fname)).read()

#Mac OS X Clang doesn't support OpenMP th the current time.
#This detects if we are building on a Mac
def ismac():
    platform = sys.platform
    ismac = False
    if platform[:6] == 'darwin':
        ismac = True
    return ismac

if ismac():
    compile_flags = [ '-O3', ]
    link_args = []
else:
    compile_flags = [ '-fopenmp', '-O3', ]
    link_args = ['-lgomp']

ext_mods = [Extension(name='GPy.kern._src.stationary_cython',
                      sources=['GPy/kern/_src/stationary_cython.c','GPy/kern/_src/stationary_utils.c'],
                      include_dirs=[np.get_include()],
                      extra_compile_args=compile_flags,
                      extra_link_args = link_args),
            Extension(name='GPy.util.choleskies_cython',
                      sources=['GPy/util/choleskies_cython.c'],
{'fraction_non_alphanumeric': 0.13237280504277352, 'fraction_numerical': 0.006303466906798739, 'mean_word_length': 2.572347266881029, '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': '5943930', 'n_tokens_mistral': 735, 'n_tokens_neox': 718, 'n_words': 162}