<commit_before># https://gist.github.com/idleberg/03bc3766c760bb4b81e3

import os, stat, sublime, sublime_plugin

# Package name, must match directory name
p = 'makensis'

# Array of files, relative to package directory
files = [
    'build.sh'
]

def plugin_loaded():
    from package_control import events

    if (events.install(p) or events.post_upgrade(p)) and os.name is 'posix' or 'mac':
        for file in files:

            # Concat full path
            f = sublime.packages_path() + '/' + p + '/' + file

            # Change permissions, if file exists
            if os.path.isfile(f):
                st = os.stat(f)
                os.chmod(f, st.st_mode | stat.S_IEXEC)<commit_msg>use join() for script path<commit_after># https://gist.github.com/idleberg/03bc3766c760bb4b81e3

import os, stat, sublime, sublime_plugin

# Package name, must match directory name
p = 'makensis'

# Array of files, relative to package directory
files = [
    'build.sh'
]

def plugin_loaded():
    from os.path import join
    from package_control import events

    if (events.install(p) or events.post_upgrade(p)) and os.name is 'posix' or 'mac':
        for file in files:

            # Concat full path
            f = join(sublime.packages_path(), '/' + p + '/' + file)

            # Change permissions, if file exists
            if os.path.isfile(f):
                st = os.stat(f)
                os.chmod(f, st.st_mode | stat.S_IEXEC)
{'fraction_non_alphanumeric': 0.11141868512110727, 'fraction_numerical': 0.017993079584775088, 'mean_word_length': 2.4184397163120566, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '2152676', 'n_tokens_mistral': 494, 'n_tokens_neox': 463, 'n_words': 133}