<commit_before>"""

This script downloads and updates the module builder.

"""


# Dont checkout all files
IGNORE_FILES = [
    "__init__.py",
    ".gitignore",
    "LICENSE",
    "README.md",
    "config.ini",
    "Source/config_module.cpp",
    "Source/config_module.h",
    "Source/ExampleClass.cpp",
    "Source/ExampleClass.h",
    "Source/ExampleClass.I",
]

import sys
import os
sys.path.insert(0, "../../")
from Code.Util.SubmoduleDownloader import SubmoduleDownloader

if __name__ == "__main__":
    curr_dir = os.path.dirname(os.path.realpath(__file__))
    SubmoduleDownloader.download_submodule("tobspr", "P3DModuleBuilder", curr_dir, IGNORE_FILES)<commit_msg>Fix missing __init__ in native directory<commit_after>"""

This script downloads and updates the module builder.

"""


# Dont checkout all files
IGNORE_FILES = [
    "__init__.py",
    ".gitignore",
    "LICENSE",
    "README.md",
    "config.ini",
    "Source/config_module.cpp",
    "Source/config_module.h",
    "Source/ExampleClass.cpp",
    "Source/ExampleClass.h",
    "Source/ExampleClass.I",
]

import sys
import os
sys.path.insert(0, "../../")
from Code.Util.SubmoduleDownloader import SubmoduleDownloader

if __name__ == "__main__":
    curr_dir = os.path.dirname(os.path.realpath(__file__))
    SubmoduleDownloader.download_submodule("tobspr", "P3DModuleBuilder", curr_dir, IGNORE_FILES)

    # Make the init file at the Scripts directory
    with open(os.path.join(curr_dir, "Scripts/__init__.py"), "w") as handle:
        pass
{'fraction_non_alphanumeric': 0.1388888888888889, 'fraction_numerical': 0.0026455026455026454, 'mean_word_length': 3.896440129449838, 'pattern_counts': {'":': 2, '<': 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': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7231327', 'n_tokens_mistral': 516, 'n_tokens_neox': 507, 'n_words': 103}