<commit_before>import argparse, shutil, os
import ue4util
def install_plugin(project_file, plugin_folder):
    project_folder = os.path.dirname(project_file)
    install_folder = os.path.join(project_folder, 'Plugins', 'unrealcv')
    if os.path.isdir(install_folder):
        shutil.rmtree(install_folder) # Complete remove old version, a little dangerous

    shutil.copytree(plugin_folder, install_folder)


if __name__ == '__main__':
    parser = argparse.ArgumentParser()
    parser.add_argument('plugin_version')
    parser.add_argument('project_file')
    args = parser.parse_args()

    plugin_version = args.plugin_version
    project_file = ue4util.get_real_abspath(args.project_file)

    plugin_folder = 'built_plugin/%s' % plugin_version
    install_plugin(project_file, plugin_folder)<commit_msg>Update relative path with respect to __file__<commit_after>import argparse, shutil, os
import ue4util
def install_plugin(project_file, plugin_folder):
    project_folder = os.path.dirname(project_file)
    install_folder = os.path.join(project_folder, 'Plugins', 'unrealcv')
    if os.path.isdir(install_folder):
        shutil.rmtree(install_folder) # Complete remove old version, a little dangerous

    shutil.copytree(plugin_folder, install_folder)


if __name__ == '__main__':
    parser = argparse.ArgumentParser()
    parser.add_argument('plugin_version')
    parser.add_argument('project_file')
    args = parser.parse_args()

    plugin_version = args.plugin_version
    project_file = ue4util.get_real_abspath(args.project_file)

    cur_dir = os.path.dirname(os.path.abspath(__file__))
    plugin_folder = os.path.join(cur_dir, 'built_plugin/%s' % plugin_version)
    install_plugin(project_file, plugin_folder)
{'fraction_non_alphanumeric': 0.09815242494226328, 'fraction_numerical': 0.0023094688221709007, 'mean_word_length': 5.123674911660777, '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': '2624799', 'n_tokens_mistral': 553, 'n_tokens_neox': 545, 'n_words': 98}