<commit_before>from eucadeploy.plugins.validator.validatorplugin import ValidatorPlugin
from schema import Schema, And, Or, Use, Optional

class Structure(ValidatorPlugin):
    def validate(self):
        self.envdata = self.environment
        self.schema = Schema(
            {
                'description': And(str, error="Invalid environment.yml value(s) for 'description'."),
                'name': And(str, error="Invalid environment.yml value(s) for 'name'."),
                Optional('cookbook_versions'):
                    And(dict, error="Invalid environment.yml value(s) for 'cookbook_versions'."),
                Optional('override_attributes'):
                    And(dict, error="Invalid environment.yml value(s) for 'override_attributes'."),
                'default_attributes':
                    {
                        'eucalyptus':
                            {
                                'network':
                                    {
                                        'mode': And(str, error="Invalid environment.yml value(s) for 'mode'."),
                                        'config-json':
                                            {<commit_msg>Changing structre options<commit_after>from eucadeploy.plugins.validator.validatorplugin import ValidatorPlugin
from schema import Schema, And, Or, Use, Optional

class Structure(ValidatorPlugin):
    def validate(self):
        self.envdata = self.environment
        self.schema = Schema(
            {
                'description': And(str, error="Invalid environment.yml value(s) for 'description'."),
                'name': And(str, error="Invalid environment.yml value(s) for 'name'."),
                Optional('cookbook_versions'):
                    And(dict, error="Invalid environment.yml value(s) for 'cookbook_versions'."),
                Optional('override_attributes'):
                    And(dict, error="Invalid environment.yml value(s) for 'override_attributes'."),
                'default_attributes':
                    {
                        'eucalyptus':
                            {
                                'network':
                                    {
                                        'mode': And(str, error="Invalid environment.yml value(s) for 'mode'."),
                                        Optional('config-json'):
                                            {
{'fraction_non_alphanumeric': 0.10339123242349049, 'fraction_numerical': 0.0, 'mean_word_length': 1.4165834165834166, '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': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2877051', 'n_tokens_mistral': 548, 'n_tokens_neox': 511, 'n_words': 120}