<commit_before>"""
This file contains the event scheduler system.

ADDING AN EVENT:
* Create an event sub-class in events.py. 
* Add it to the add_global_events() function at the end of the module.
* Profit.
"""

# List of IntervalEvent sub-classed objects.
schedule = []
        
def add_event(event):
    """
    Adds an event instance to the scheduled event list.
    
    Args:
     * event: (IntervalEvent) The event to add to the scheduler.
    """
    schedule.append(event)
    event.start_event_loop()<commit_msg>Clarify the instructions in src.scheduler.py<commit_after>"""
This file contains the event scheduler system.

ADDING AN EVENT:
* Create an event sub-class from the IntervalEvent class in events.py. 
* Call src.scheduler.add_event() with your IntervalEvent subclass as the arg.
* Make sure that the module where your add_event() call resides is either
  imported, or that add_event() is called by a command or some kind of action.
* Profit.
"""

# List of IntervalEvent sub-classed objects.
schedule = []
        
def add_event(event):
    """
    Adds an event instance to the scheduled event list. Call this any time you
    need to add a custom event to the global scheduler.
    
    Args:
     * event: (IntervalEvent) The event to add to the scheduler.
    """
    schedule.append(event)
    event.start_event_loop()
{'fraction_non_alphanumeric': 0.08190618019359643, 'fraction_numerical': 0.0, 'mean_word_length': 3.3076923076923075, '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': '62079', 'n_tokens_mistral': 391, 'n_tokens_neox': 389, 'n_words': 163}