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

"""
clint.arguments
~~~~~~~~~~~~~~~

This module provides the CLI argument interface.

"""


from __future__ import absolute_import

import os
from sys import argv
from glob import glob

from .packages.ordereddict import OrderedDict
from .utils import is_collection



__all__ = (Args, )



def _expand_path(path):
	"""Expands directories and globs in given path."""

	paths = []

	if os.path.isdir(path):

		for (dir, dirs, files) in os.walk(path):
			for file in files:
				paths.append(os.path.join(dir, file))
	else:
		paths.extend(glob(path))

	return paths


class Args(object):
    """CLI Argument management."""

    def __init__(self, args=None, no_argv=False):
        if not args:
            if not no_argv:
                self._args = argv[1:]
            else:
                self._args = []
        else:
            self._args = args<commit_msg>all uses strings<commit_after># -*- coding: utf-8 -*-

"""
clint.arguments
~~~~~~~~~~~~~~~

This module provides the CLI argument interface.

"""


from __future__ import absolute_import

import os
from sys import argv
from glob import glob

from .packages.ordereddict import OrderedDict
from .utils import is_collection



__all__ = ('Args', )



def _expand_path(path):
	"""Expands directories and globs in given path."""

	paths = []

	if os.path.isdir(path):

		for (dir, dirs, files) in os.walk(path):
			for file in files:
				paths.append(os.path.join(dir, file))
	else:
		paths.extend(glob(path))

	return paths


class Args(object):
    """CLI Argument management."""

    def __init__(self, args=None, no_argv=False):
        if not args:
            if not no_argv:
                self._args = argv[1:]
            else:
                self._args = []
        else:
            self._args = args
{'fraction_non_alphanumeric': 0.12810601877415792, 'fraction_numerical': 0.0022087244616234127, 'mean_word_length': 2.6458752515090542, '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': '7513041', 'n_tokens_mistral': 597, 'n_tokens_neox': 550, 'n_words': 171}