<commit_before>import abc


class BassetException(Exception):
    @abc.abstractmethod
    def get_message(self):
        pass


class NoConfigurationProvidedException(BassetException):
    def get_message(self):
        return "No configuration provided!"


class NoConfigFileFoundException(BassetException):
    def get_message(self):
        return "Config file not found!"


class NotCompleteConfigurationInConfigFileException(BassetException):
    def get_message(self):
        return "Config file broken!"


class NotAllConfigurationParametersPresentException(BassetException):
    def get_message(self):
        return "Not all config parameters found!"


class NoXCAssetsFoundException(BassetException):
    def get_message(self):
        return "No xcassets found"


class AssetsDirNotFoundException(BassetException):
    def __init__(self, asset_dir_candidate):
        self.asset_dir_candidate = asset_dir_candidate

    def get_message(self):
        if self.asset_dir_candidate is None:
            return "I haven't found any vector assets. In order to use basset, you need to create directory with them and run thi command \n" \
               "basset_ios -r <assets_directory_path>"
        else:
            return "I haven't found vector assets directory, but it looks like most of them are in \"{0}\" directory. You can use this directory by running basset with command: \n" \
               "basset_ios -r {1} \n or create config file.".format(self.asset_dir_candidate)


class NoDefaultXCAssetFoundException(BassetException):
    def __init__(self, assets_count):
        self.assets_count = assets_count

    def get_message(self):
        return "Found {0} xcassets, but none of them is default one!".format(str(self.assets_count))<commit_msg>Fixed wrong exceptions messages<commit_after>import abc


class BassetException(Exception):
    @abc.abstractmethod
    def get_message(self):
        pass


class NoConfigurationProvidedException(BassetException):
    def get_message(self):
        return "No configuration provided!"


class NoConfigFileFoundException(BassetException):
    def get_message(self):
        return "Config file not found!"


class NotCompleteConfigurationInConfigFileException(BassetException):
    def get_message(self):
        return "Config file broken!"


class NotAllConfigurationParametersPresentException(BassetException):
    def get_message(self):
        return "Not all config parameters found!"


class NoXCAssetsFoundException(BassetException):
    def get_message(self):
        return "No xcassets found"


class AssetsDirNotFoundException(BassetException):
    def __init__(self, asset_dir_candidate):
        self.asset_dir_candidate = asset_dir_candidate

    def get_message(self):
        if self.asset_dir_candidate is None:
            return "I haven't found any vector assets. In order to use basset, you need to create directory with them and run this command:\n" \
               "basset_ios -r <assets_directory_path>"
        else:
            return "I haven't found vector assets directory you've provided, but it looks like most of them are in \"{0}\" directory. You can use this directory by running basset with command: \n" \
               "basset_ios -r {1} \nor create config file.".format(self.asset_dir_candidate,self.asset_dir_candidate)


class NoDefaultXCAssetFoundException(BassetException):
    def __init__(self, assets_count):
        self.assets_count = assets_count

    def get_message(self):
        return "Found {0} xcassets, but none of them is default one!".format(str(self.assets_count))
{'fraction_non_alphanumeric': 0.07407407407407407, 'fraction_numerical': 0.001670843776106934, 'mean_word_length': 3.7450462351387053, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1416350', 'n_tokens_mistral': 987, 'n_tokens_neox': 964, 'n_words': 300}