<commit_before>import swgpy.object
from swgpy.app import *

if actor:
    # Check for burstrun flag
    if actor.run_speed == 5.75:
        actor.Controller().SendSystemMessage(swgpy.OutOfBand('cbt_spam', 'burstrun_start_single', swgpy.ProseType.TT, actor.id), False, False)
        actor.run_speed = 10.0

def EndBurstRun():
    actor.Controller().SendSystemMessage(swgpy.OutOfBand('cbt_spam', 'burstrun_stop_single', swgpy.ProseType.TT, actor.id), False, False)
    actor.run_speed = 5.75

# function to call, duration from now to call it
event = PythonEvent(EndBurstRun, 15.0)
kernel.event_dispatcher().dispatch(event)<commit_msg>Style fix: Put all function defs at the top of scripts, procedural execution code at the end (follows common shell scripting best practice)<commit_after>import swgpy.object
from swgpy.app import *

def EndBurstRun():
    actor.Controller().SendSystemMessage(swgpy.OutOfBand('cbt_spam', 'burstrun_stop_single', swgpy.ProseType.TT, actor.id), False, False)
    actor.run_speed = 5.75

if actor:
    # Check for burstrun flag
    if actor.run_speed == 5.75:
        actor.Controller().SendSystemMessage(swgpy.OutOfBand('cbt_spam', 'burstrun_start_single', swgpy.ProseType.TT, actor.id), False, False)
        actor.run_speed = 10.0

# function to call, duration from now to call it
event = PythonEvent(EndBurstRun, 15.0)
kernel.event_dispatcher().dispatch(event)
{'fraction_non_alphanumeric': 0.11350574712643678, 'fraction_numerical': 0.017241379310344827, 'mean_word_length': 4.780082987551867, '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': '951698', 'n_tokens_mistral': 491, 'n_tokens_neox': 471, 'n_words': 111}