<commit_before>"""Utilities to operate Nuxeo Drive from the command line"""
import os
import sys
import argparse
from getpass import getpass
import traceback
try:
    import ipdb
    debugger = ipdb
except ImportError:
    import pdb
    debugger = pdb

from nxdrive.controller import Controller
from nxdrive.logging_config import configure

if sys.platform == "win32":
    DEFAULT_NX_DRIVE_FOLDER = '~\\Documents\\Nuxeo Drive'
else:
    DEFAULT_NX_DRIVE_FOLDER = '~/Nuxeo Drive'


def make_cli_parser():
    """Parse commandline arguments using a git-like subcommands scheme"""

    parser = argparse.ArgumentParser(
        description="Command line interface for Nuxeo Drive operations.")

    parser.add_argument(
        "--nxdrive-home",
        default="~/.nuxeo-drive",
        help="Folder to store the Nuxeo Drive configuration."
    )<commit_msg>NXP-9794: Use 'My Documents' on Windows XP<commit_after>"""Utilities to operate Nuxeo Drive from the command line"""
import os
import sys
import argparse
from getpass import getpass
import traceback
try:
    import ipdb
    debugger = ipdb
except ImportError:
    import pdb
    debugger = pdb

from nxdrive.controller import Controller
from nxdrive.logging_config import configure

if sys.platform == "win32":
    if os.path.exists(os.path.expanduser('~\\My Documents')):
        # Compat for Windows XP
        DEFAULT_NX_DRIVE_FOLDER = '~\\My Documents\\Nuxeo Drive'
    else:
        # Default Documents folder with navigation shortcuts in Windows 7
        # and up.
        DEFAULT_NX_DRIVE_FOLDER = '~\\Documents\\Nuxeo Drive'
else:
    DEFAULT_NX_DRIVE_FOLDER = '~/Nuxeo Drive'


def make_cli_parser():
    """Parse commandline arguments using a git-like subcommands scheme"""

    parser = argparse.ArgumentParser(
        description="Command line interface for Nuxeo Drive operations.")

    parser.add_argument(
        "--nxdrive-home",
        default="~/.nuxeo-drive",
        help="Folder to store the Nuxeo Drive configuration."
    )
{'fraction_non_alphanumeric': 0.08914342629482072, 'fraction_numerical': 0.004482071713147411, 'mean_word_length': 3.4251101321585904, 'pattern_counts': {'":': 2, '<': 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': '6070255', 'n_tokens_mistral': 626, 'n_tokens_neox': 590, 'n_words': 187}