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

from suplemon_module import Module


class Eval(Module):
    def run(self, app, editor, args):
        value = eval(args)
        app.set_status("Eval:{}".format(value))

module = {
    "class": Eval,
    "name": "eval",
}<commit_msg>Failure tolerance etc.<commit_after># -*- encoding: utf-8

from suplemon_module import Module


class Eval(Module):
    def run(self, app, editor, args):
        if not args:
            app.set_status("Please enter an expression to evaluate.")
            return False
        try:
            value = eval(args)
        except:
            app.set_status("Eval failed.")
            return False
        app.set_status("Result:{}".format(value))
        return True

module = {
    "class": Eval,
    "name": "eval",
}
{'fraction_non_alphanumeric': 0.13383838383838384, 'fraction_numerical': 0.0025252525252525255, 'mean_word_length': 2.345991561181435, 'pattern_counts': {'":': 4, '<': 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': '6781588', 'n_tokens_mistral': 239, 'n_tokens_neox': 235, 'n_words': 65}