<commit_before>import time
import analysis.event
import analysis.beamline
import analysis.background
import analysis.pixel_detector
import ipc
import numpy
from backend import ureg

state = {
    'Facility': 'Dummy',

    'Dummy': {
        'Repetition Rate' : 1,
        'Data Sources': {
            'CCD': {
                'data': lambda: numpy.random.rand(256,128),
                'unit': ureg.ADU,                                       
                'type': 'photonPixelDetectors'
            }
        }        
    }
}
<commit_msg>Provide some commentary documentation about the configurable dummy backend<commit_after>import time
import analysis.event
import analysis.beamline
import analysis.background
import analysis.pixel_detector
import ipc
import numpy
from backend import ureg

state = {
    'Facility': 'Dummy',

    'Dummy': {
        # The event repetition rate of the facility 
        'Repetition Rate' : 1,
        # Dictionary of data sources
        'Data Sources': {
            # The name of the data source. This is the key under which it will be found
            # when iterating over members of its type.
            # It's also the native key that will be used
            'CCD': {
                # A function that will generate the data for every event
                'data': lambda: numpy.random.rand(256,128),
                # The units to be used
                'unit': ureg.ADU,     
                # The name of the category for this data source.
                # All data sources are aggregated by type, which is the key
                # used when asking for them in the analysis code.
                'type': 'photonPixelDetectors'
            }
        }        
    }
}

{'fraction_non_alphanumeric': 0.07317073170731707, 'fraction_numerical': 0.008130081300813009, 'mean_word_length': 1.748006379585327, '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': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2093741', 'n_tokens_mistral': 467, 'n_tokens_neox': 427, 'n_words': 165}