<commit_before>from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from __future__ import print_function

import appdirs
import sys

from argh import ArghParser
from . import commands
from . import PACKAGE, VERSION


def initialize_env(config_dir):
    from . import repos
    repos.initialize(config_dir)


def make_argument_parser():
    parser = ArghParser(prog=__name__)
    parser.add_argument('--version', action='version', version=VERSION)
    parser.add_commands(
        [
            commands.workspace.new,
            commands.workspace.develop,
            commands.workspace.save,
            commands.workspace.status,
            commands.workspace.nuke,
            # TODO: #10 names for packages
            # rename  # package
        ])
    # FIXME: ArghParser.add_subcommands
    # https://github.com/neithere/argh/issues/88
    parser.add_commands(
        [
            commands.input.load,
            # named('unload')(unload_input),
            commands.input.add,
            commands.input.delete,
            commands.input.update,
        ],
        namespace='input',
        namespace_kwargs=dict(
            title='Manage data loaded from other packages...',
        ))
    parser.add_commands(
        [
            commands.repo.add,
            commands.repo.list,
            commands.repo.forget,
        ],
        namespace='repo',
        namespace_kwargs=dict(
            title='Manage package repositories...',
        ))
    return parser

<commit_msg>red - remove out of date TODO comment, downgrade a FIXME to TODO<commit_after>from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from __future__ import print_function

import appdirs
import sys

from argh import ArghParser
from . import commands
from . import PACKAGE, VERSION


def initialize_env(config_dir):
    from . import repos
    repos.initialize(config_dir)


def make_argument_parser():
    parser = ArghParser(prog=__name__)
    parser.add_argument('--version', action='version', version=VERSION)
    parser.add_commands(
        [
            commands.workspace.new,
            commands.workspace.develop,
            commands.workspace.save,
            commands.workspace.status,
            commands.workspace.nuke,
        ])
    # TODO: ArghParser.add_subcommands
    # https://github.com/neithere/argh/issues/88
    parser.add_commands(
        [
            commands.input.load,
            # named('unload')(unload_input),
            commands.input.add,
            commands.input.delete,
            commands.input.update,
        ],
        namespace='input',
        namespace_kwargs=dict(
            title='Manage data loaded from other packages...',
        ))
    parser.add_commands(
        [
            commands.repo.add,
            commands.repo.list,
            commands.repo.forget,
        ],
        namespace='repo',
        namespace_kwargs=dict(
            title='Manage package repositories...',
        ))
    return parser


{'fraction_non_alphanumeric': 0.089025574619618, 'fraction_numerical': 0.0019423761735189381, 'mean_word_length': 2.1627430910951895, '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': '2294814', 'n_tokens_mistral': 846, 'n_tokens_neox': 828, 'n_words': 174}