<commit_before>import os
from subprocess import Popen, PIPE
from firefox_env_handler import IniHandler
from outlawg import Outlawg


__version__ = '0.0.1'


CHANNELS = ['release',
            'beta',
            'aurora',
            'nightly',
            'ALL']

DEFAULT_CHANNEL = 'nightly'

DIR_TEMP = '_temp'
DIR_TEMP_BROWSERS = os.path.join(DIR_TEMP, 'browsers')
DIR_TEMP_PROFILES = os.path.join(DIR_TEMP, 'profiles')

OS_CONFIG = IniHandler()
OS_CONFIG.load_os_config('configs')

PATH_PREFS_ROOT = os.environ.get('PATH_PREFS_ROOT')

Log = Outlawg()


def local(cmd):
    output = Popen(cmd, stdout=PIPE, shell=True)
    return output.stdout.read().strip()<commit_msg>add condition for win profile path<commit_after>import os
from subprocess import Popen, PIPE
from firefox_env_handler import IniHandler
from outlawg import Outlawg


__version__ = '0.0.1'


CHANNELS = ['release',
            'beta',
            'aurora',
            'nightly',
            'ALL']

DEFAULT_CHANNEL = 'nightly'

DIR_TEMP = '_temp'
DIR_TEMP_BROWSERS = os.path.join(DIR_TEMP, 'browsers')

OS_CONFIG = IniHandler()
OS_CONFIG.load_os_config('configs')

if IniHandler.is_windows():
    DIR_TEMP_PROFILES = os.environ.get('PATH_FIREFOX_PROFILES_ENV')
else:
    DIR_TEMP_PROFILES = os.path.join(DIR_TEMP, 'profiles')

PATH_PREFS_ROOT = os.environ.get('PATH_PREFS_ROOT')

Log = Outlawg()


def local(cmd):
    output = Popen(cmd, stdout=PIPE, shell=True)
    return output.stdout.read().strip()
{'fraction_non_alphanumeric': 0.12075983717774763, 'fraction_numerical': 0.004070556309362279, 'mean_word_length': 3.983108108108108, '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': '1731617', 'n_tokens_mistral': 542, 'n_tokens_neox': 545, 'n_words': 105}