<commit_before>import DataHandling.LeCroy
import matplotlib.pyplot as _plt
import numpy as _np
import scipy.signal
from bisect import bisect_left as _bisect_left
from scipy.optimize import curve_fit as _curve_fit
import uncertainties as _uncertainties
from mpl_toolkits.mplot3d.axes3d import Axes3D
from matplotlib import rcParams
import matplotlib.animation as _animation

def LoadData(Filepath):
    """
    Parameters
    ----------
    Filepath : string
        filepath to the file containing the data used to initialise 
        and create an instance of the DataObject class

    Returns
    -------
    Data : DataObject
        An instance of the DataObject class contaning the data
        that you requested to be loaded.
    """
    return DataObject(Filepath)

class DataObject():
    """
    Creates an object containing data and all it's properties. 

    Attributes
    ----------
	filepath : string
		filepath to the file containing the data used to initialise
		this particular instance of the DataObject class
	filename : string
		filename of the file containing the data used to initialise
		this particular instance of the DataObject class
	waveDescription : dictionary
		Contains various information about the data as it was collected.
	time : ndarray
		Contains the time data in seconds
	Voltage : ndarray
		Contains the voltage data in Volts
	SampleFreq : sample frequency used to sample the data (when it was
		taken by the oscilloscope)
	freqs : ndarray
		Contains the frequencies corresponding to the PSD (Pulse Spectral
		Density)
	PSD : ndarray
		Contains the values for the PSD (Pulse Spectral Density) as calculated
		at each frequency contained in freqs<commit_msg>changed documentation formatting for LoadData function<commit_after>import DataHandling.LeCroy
import matplotlib.pyplot as _plt
import numpy as _np
import scipy.signal
from bisect import bisect_left as _bisect_left
from scipy.optimize import curve_fit as _curve_fit
import uncertainties as _uncertainties
from mpl_toolkits.mplot3d.axes3d import Axes3D
from matplotlib import rcParams
import matplotlib.animation as _animation

def LoadData(Filepath):
    """
    Parameters
    ----------
        Filepath : string
            filepath to the file containing the data used to initialise 
            and create an instance of the DataObject class

    Returns
    -------
        Data : DataObject
            An instance of the DataObject class contaning the data
            that you requested to be loaded.
    """
    return DataObject(Filepath)

class DataObject():
    """
    Creates an object containing data and all it's properties. 

    Attributes
    ----------
	filepath : string
		filepath to the file containing the data used to initialise
		this particular instance of the DataObject class
	filename : string
		filename of the file containing the data used to initialise
		this particular instance of the DataObject class
	waveDescription : dictionary
		Contains various information about the data as it was collected.
	time : ndarray
		Contains the time data in seconds
	Voltage : ndarray
		Contains the voltage data in Volts
	SampleFreq : sample frequency used to sample the data (when it was
		taken by the oscilloscope)
	freqs : ndarray
		Contains the frequencies corresponding to the PSD (Pulse Spectral
		Density)
	PSD : ndarray
		Contains the values for the PSD (Pulse Spectral Density) as calculated
		at each frequency contained in freqs
{'fraction_non_alphanumeric': 0.04278693263949118, 'fraction_numerical': 0.0017346053772766695, 'mean_word_length': 3.3686868686868685, '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': '3300234', 'n_tokens_mistral': 940, 'n_tokens_neox': 880, 'n_words': 418}