<commit_before>"""
The egg formula will install scripts from an egg (including dependencies) into a sandboxed directory.
[eggs]
formula = sprinter.formulas.egg
egg = sprinter
"""

from sprinter.formulabase import FormulaBase


class EggFormula(FormulaBase):

    def install(self, feature_name, config):
        self.lib.call("easy_install %s" % config['egg'])
        super(EggFormula, self).install(feature_name, config)

    def update(self, feature_name, source_config, target_config):
        super(EggFormula, self).update(feature_name, source_config, target_config)
<commit_msg>Update re-installs egg<commit_after>"""
The egg formula will install scripts from an egg (including dependencies) into a sandboxed directory.
[eggs]
formula = sprinter.formulas.egg
egg = sprinter
"""

from sprinter.formulabase import FormulaBase


class EggFormula(FormulaBase):

    def install(self, feature_name, config):
        self.lib.call("easy_install %s" % config['egg'])
        super(EggFormula, self).install(feature_name, config)

    def update(self, feature_name, source_config, target_config):
        self.lib.call("easy_install %s" % target_config['egg'])
        super(EggFormula, self).update(feature_name, source_config, target_config)

{'fraction_non_alphanumeric': 0.10699919549477072, 'fraction_numerical': 0.0, 'mean_word_length': 4.980769230769231, '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': '2066378', 'n_tokens_mistral': 389, 'n_tokens_neox': 368, 'n_words': 97}