<commit_before>
class FileResolver(object):

    def read(self, path):
        with open(path, 'r') as file:
            return file.read()<commit_msg>Throw  CfnSphereException on IOErrors. Fix landmark issue.<commit_after>
class FileResolver(object):

    def read(self, path):
        try:
            with open(path, 'r') as f:
                return f.read()
        except IOError as e:
            raise CfnSphereException("Cannot read file " + path, e) 
{'fraction_non_alphanumeric': 0.10434782608695652, 'fraction_numerical': 0.0, 'mean_word_length': 2.389705882352941, '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': '2356726', 'n_tokens_mistral': 137, 'n_tokens_neox': 132, 'n_words': 42}