<commit_before># -*- coding: utf-8 -*-

import os
import logging
import sys
from os.path import expanduser

try:
    from os import getuid
except ImportError:
    pass

from subprocess import call, Popen, PIPE, CalledProcessError
from . import debug
from .pontoon import Pontoon
from .exceptions import SSHKeyException, ConfigureException

user_cfg = os.path.join(os.path.expanduser('~'), '.pontoon')<commit_msg>getuid set to None on ImportError, to pass tests<commit_after># -*- coding: utf-8 -*-

import os
import logging
import sys
from os.path import expanduser

try:
    from os import getuid
except ImportError:
    getuid = None

from subprocess import call, Popen, PIPE, CalledProcessError
from . import debug
from .pontoon import Pontoon
from .exceptions import SSHKeyException, ConfigureException

user_cfg = os.path.join(os.path.expanduser('~'), '.pontoon')
{'fraction_non_alphanumeric': 0.08986175115207373, 'fraction_numerical': 0.002304147465437788, 'mean_word_length': 4.606451612903226, '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': '727952', 'n_tokens_mistral': 267, 'n_tokens_neox': 260, 'n_words': 94}