<commit_before>#---------------------------------------------------------------------
# Example user initialisation script: idapythonrc.py
#
# Place this script to ~/.idapro/ or to 
# C:\Documents and Settings\%USER%\Application Data\Hex-Rays\IDA Pro
#---------------------------------------------------------------------

# Add your favourite script to ScriptBox for easy access
# scriptbox.addscript("/here/is/my/favourite/script.py")

# Uncomment if you want to set Python as default interpreter in IDA
# idaapi.enable_extlang_python(True)

# Disable the Python from interactive command-line
# idaapi.enable_python_cli(False)<commit_msg>idapythonrc.py: Added example for setting the script run timeout<commit_after>#---------------------------------------------------------------------
# Example user initialisation script: idapythonrc.py
#
# Place this script to ~/.idapro/ or to 
# C:\Documents and Settings\%USER%\Application Data\Hex-Rays\IDA Pro
#---------------------------------------------------------------------
import idaapi

# Add your favourite script to ScriptBox for easy access
# scriptbox.addscript("/here/is/my/favourite/script.py")

# Uncomment if you want to set Python as default interpreter in IDA
# idaapi.enable_extlang_python(True)

# Disable the Python from interactive command-line
# idaapi.enable_python_cli(False)

# Set the timeout for the script execution cancel dialog
# idaapi.set_script_timeout(10)
{'fraction_non_alphanumeric': 0.2641114982578397, 'fraction_numerical': 0.0013937282229965157, 'mean_word_length': 2.0815450643776825, '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': '5488731', 'n_tokens_mistral': 372, 'n_tokens_neox': 361, 'n_words': 115}