<commit_before>#!/usr/bin/python

"""
    
    Installer for RoboFab for FontLabs on OSX
    
    Operation:
        1.  This script builds a .flw with the right paths hardwired.
        2.  Then calls all of the FontLab applications it can find to run the .flw script.
            This ensures the paths are written to exactly the right Pythons. 
        3.  The .flw finds out which site-packages can be used to install in.
        4.  Then it places a *.pth file pointing to the current location of the
                robofab/trunk/Lib folder
            This means the setup is a bit more fragile, for instance if you
            move or rename the folder that contains robofab. But it also makes
            it possible for multiple fontlabs to point to a single install of robofab. 
        5.  Logs are kept.
    
    Notes
    In its current form OSX might have permission restrictions for writing in site-packages.

    This script assumes is here:
        robofab/
            trunk/
                Tools/
                    installModuleForMacFontLab.py
                # and the robofab package is here:
                Lib/
                    robofab/
                        __init__.py
                        #etc
                        
    Future functionality could include:
        - FontLab windows version
        - sniff for other useful modules, link those too
        - run this script as part of a .pkg
                        
    
"""

import os
from time import localtime, strftime, sleep<commit_msg>Added warning about saving and closing fonts before running the installer.<commit_after>#!/usr/bin/python

"""
    
    Installer for RoboFab for FontLabs on OSX
    
    Operation:
        1.  This script builds a .flw with the right paths hardwired.
        2.  Then calls all of the FontLab applications it can find to run the .flw script.
            This ensures the paths are written to exactly the right Pythons. 
        3.  The .flw finds out which site-packages can be used to install in.
        4.  Then it places a *.pth file pointing to the current location of the
                robofab/trunk/Lib folder
            This means the setup is a bit more fragile, for instance if you
            move or rename the folder that contains robofab. But it also makes
            it possible for multiple fontlabs to point to a single install of robofab. 
        5.  Logs are kept.
        6.  SAVE YOUR WORK IN RUNNING FONTLAB APPLICATIONS BEFORE RUNNING.
            This script will instruct FontLab to quit at the end of the installation.
            Unsaved work will be lost.
    
    Notes
    In its current form OSX might have permission restrictions for writing in site-packages.

    This script assumes is here:
        robofab/
            trunk/
                Tools/
                    installModuleForMacFontLab.py
                # and the robofab package is here:
                Lib/
                    robofab/
                        __init__.py
                        #etc
                        
    Future functionality could include:
        - FontLab windows version
        - sniff for other useful modules, link those too
        - run this script as part of a .pkg
                        
    
"""

import os
from time import localtime, strftime, sleep
{'fraction_non_alphanumeric': 0.035746470411534996, 'fraction_numerical': 0.0033042955842595375, 'mean_word_length': 1.5674633770239013, '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': '3379748', 'n_tokens_mistral': 844, 'n_tokens_neox': 796, 'n_words': 401}