<commit_before>from   pathlib     import Path
import click
from   ghutil      import __version__
from   ghutil.api  import GitHub
from   ghutil.util import package_group

@package_group(
    __package__, __file__,
    context_settings={"help_option_names": ["-h", "--help"]},
)
@click.option('-c', '--config', type=click.Path(dir_okay=False),
              default=str(Path.home() / '.config' / 'ghutil.cfg'))
@click.version_option(__version__, '-V', '--version',
                      message='%(prog)s %(version)s')
@click.pass_context
def cli(ctx, config):
    """ Interact with GitHub from the command line """
    if ctx.obj is None:
        # ctx.obj is non-None when mocking with Betamax
        ctx.obj = GitHub()
    ctx.obj.configure(config)

if __name__ == '__main__':
    cli()
<commit_msg>Freaking Python 3.4...<commit_after>import os.path
import click
from   ghutil      import __version__
from   ghutil.api  import GitHub
from   ghutil.util import package_group

#DEFAULT_CFG = str(pathlib.Path.home() / '.config' / 'ghutil.cfg')  # Py3.5+
DEFAULT_CFG = os.path.join(os.path.expanduser('~'), '.config', 'ghutil.cfg')

@package_group(
    __package__, __file__,
    context_settings={"help_option_names": ["-h", "--help"]},
)
@click.option('-c', '--config', type=click.Path(dir_okay=False),
              default=DEFAULT_CFG)
@click.version_option(__version__, '-V', '--version',
                      message='%(prog)s %(version)s')
@click.pass_context
def cli(ctx, config):
    """ Interact with GitHub from the command line """
    if ctx.obj is None:
        # ctx.obj is non-None when mocking with Betamax
        ctx.obj = GitHub()
    ctx.obj.configure(config)

if __name__ == '__main__':
    cli()

{'fraction_non_alphanumeric': 0.15174418604651163, 'fraction_numerical': 0.002325581395348837, 'mean_word_length': 3.218137254901961, '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': '2321327', 'n_tokens_mistral': 584, 'n_tokens_neox': 559, 'n_words': 135}