<commit_before>#cython: embedsignature = True, c_string_type = unicode, c_string_encoding = ascii
from __future__ import division
#
# This file provides wrapper functions of all the CoolProp functions
#
# Each of the functions from the CoolProp header are renamed in cython code to
# an underscored name so that the same name can be used in the exposed functions below

import cython
cimport cython

import math
import warnings

try:
    import numpy as np
    _numpy_supported = True
except ImportError:
    _numpy_supported = False

from libcpp.string cimport string
from libcpp.vector cimport vector

from constants import *
from constants_header cimport *
import constants_header

cdef bint iterable(object a):
    """
    If numpy is supported, this function retuns true if the argument is a 
    numpy array or another iterable, otherwise just checks if list or tuple
    """
    if _numpy_supported:
        return isinstance(a,(list, tuple, np.ndarray))
    else:
        return isinstance(a,(list, tuple))<commit_msg>Fixed import/cimport issue<commit_after>#cython: embedsignature = True, c_string_type = unicode, c_string_encoding = ascii
from __future__ import division
#
# This file provides wrapper functions of all the CoolProp functions
#
# Each of the functions from the CoolProp header are renamed in cython code to
# an underscored name so that the same name can be used in the exposed functions below

import cython
cimport cython

import math
import warnings

try:
    import numpy as np
    _numpy_supported = True
except ImportError:
    _numpy_supported = False

from libcpp.string cimport string
from libcpp.vector cimport vector

from constants import *
from constants_header cimport *
cimport constants_header

cdef bint iterable(object a):
    """
    If numpy is supported, this function retuns true if the argument is a 
    numpy array or another iterable, otherwise just checks if list or tuple
    """
    if _numpy_supported:
        return isinstance(a,(list, tuple, np.ndarray))
    else:
        return isinstance(a,(list, tuple))
{'fraction_non_alphanumeric': 0.04888673765730881, 'fraction_numerical': 0.0, 'mean_word_length': 4.116336633663367, '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': '3089736', 'n_tokens_mistral': 561, 'n_tokens_neox': 556, 'n_words': 251}