<commit_before>import numpy as np, os
from SimPEG import Utils

class TensorMeshIO(object):

    @classmethod
    def readUBC(TensorMesh, fileName):
        """
            Read UBC GIF 3DTensor mesh and generate 3D Tensor mesh in simpegTD

            Input:
            :param fileName, path to the UBC GIF mesh file

            Output:
            :param SimPEG TensorMesh object
        """

        # Interal function to read cell size lines for the UBC mesh files.
        def readCellLine(line):
            for seg in line.split():
                if '*' in seg:
                    st = seg
                    sp = seg.split('*')
                    re = np.array(sp[0],dtype=int)*(' ' + sp[1])
                    line = line.replace(st,re.strip())
            return np.array(line.split(),dtype=float)
<commit_msg>Fixing bug in readUBC mesh (happened possibly because of numpy update)<commit_after>import numpy as np, os
from SimPEG import Utils

class TensorMeshIO(object):

    @classmethod
    def readUBC(TensorMesh, fileName):
        """
            Read UBC GIF 3DTensor mesh and generate 3D Tensor mesh in simpegTD

            Input:
            :param fileName, path to the UBC GIF mesh file

            Output:
            :param SimPEG TensorMesh object
        """

        # Interal function to read cell size lines for the UBC mesh files.
        def readCellLine(line):
            for seg in line.split():
                if '*' in seg:
                    st = seg
                    sp = seg.split('*')
                    re = int(sp[0])*(' ' + sp[1])
                    line = line.replace(st,re.strip())
            return np.array(line.split(),dtype=float)

{'fraction_non_alphanumeric': 0.08903301886792453, 'fraction_numerical': 0.0047169811320754715, 'mean_word_length': 1.6350931677018634, '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': '1031434', 'n_tokens_mistral': 473, 'n_tokens_neox': 453, 'n_words': 158}