<commit_before>from .exceptions import PathLengthException

MAX_FS_NAME_LEN = 31


def remotePath(path):
    """Do various checks on the remote file name like max length.
    Raises exception if not valid
    """
    if len(path) > MAX_FS_NAME_LEN:
        raise PathLengthException
    if len(path) < 1:
        raise PathLengthException<commit_msg>prettier validation of path length<commit_after>from .exceptions import ValidationException

MAX_FS_NAME_LEN = 31


def remotePath(path):
    """Do various checks on the remote file name like max length.
    Raises exception if not valid
    """
    if len(path) > MAX_FS_NAME_LEN:
        raise ValidationException('To long. >{0}'.format(MAX_FS_NAME_LEN), 'path', path)
    if len(path) < 1:
        raise ValidationException('To short', 'path', path)
{'fraction_non_alphanumeric': 0.08603491271820449, 'fraction_numerical': 0.008728179551122194, 'mean_word_length': 3.723529411764706, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, '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': '7530173', 'n_tokens_mistral': 246, 'n_tokens_neox': 233, 'n_words': 78}