<commit_before>"""
    **Author :** *<NAME>*

    This module read (.txt) file from physical storage as a memory-
    mapped file.

"""

import numpy as np


def loaddata(filename):
    """
        This function opens a (.txt) format file specified by it's absolute 
        path and returns a memory-mapped file object.

        Parameters
        --------------------------
            filename : string
                Absolute path to (.txt) format file to be read.

        Returns
        --------------------------
            signal : file object
                Memory mapped file object of specified (.txt) file.
    """

    try:

        signal = np.memmap(filename, dtype='complex128', mode='r', mmap=True)
        return signal

    except:

        return None<commit_msg>Removed error<commit_after>"""
    **Author :** *<NAME>*

    This module read (.txt) file from physical storage as a memory-
    mapped file.

"""

import numpy as np


def loaddata(filename):
    """
        This function opens a (.txt) format file specified by it's absolute 
        path and returns a memory-mapped file object.

        Parameters
        --------------------------
            filename : string
                Absolute path to (.txt) format file to be read.

        Returns
        --------------------------
            signal : file object
                Memory mapped file object of specified (.txt) file.
    """

    try:

        signal = np.memmap(filename, dtype='complex128', mode='r')
        return signal

    except:

        return None
{'fraction_non_alphanumeric': 0.1471529110684581, 'fraction_numerical': 0.003838771593090211, 'mean_word_length': 1.4864864864864864, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2804581', 'n_tokens_mistral': 406, 'n_tokens_neox': 367, 'n_words': 149}