<commit_before>from cumulusci.core.config import BaseGlobalConfig, BaseProjectConfig


class MetaCIProjectConfig(BaseProjectConfig):
    def __init__(self, global_config_obj, build, *args, **kwargs):
        self.build = build

        if "additional_yaml" not in kwargs:
            kwargs["additional_yaml"] = build.plan.yaml_config

        super(MetaCIProjectConfig, self).__init__(global_config_obj, *args, **kwargs)

    def construct_subproject_config(self, **kwargs):
        # make sure build gets attached to projects for included sources
        return MetaCIProjectConfig(
            self.global_config_obj,
            self.build,
            included_sources=self.included_sources,
            **kwargs
        )

    @property
    def config_project_local_path(self):
        """ MetaCI never uses the local path """
        return

    @property
    def repo_root(self):
        return self.build.build_dir

    @property
    def repo_name(self):
        return self.build.repo.name

    @property<commit_msg>we just want a vanilla project config for the included projects<commit_after>from cumulusci.core.config import BaseGlobalConfig, BaseProjectConfig


class MetaCIProjectConfig(BaseProjectConfig):
    def __init__(self, global_config_obj, build, *args, **kwargs):
        self.build = build

        if "additional_yaml" not in kwargs:
            kwargs["additional_yaml"] = build.plan.yaml_config

        super(MetaCIProjectConfig, self).__init__(global_config_obj, *args, **kwargs)

    def construct_subproject_config(self, **kwargs):
        # For included sources, use a normal project config not tied to the build.
        return BaseProjectConfig(
            self.global_config_obj, included_sources=self.included_sources, **kwargs
        )

    @property
    def config_project_local_path(self):
        """ MetaCI never uses the local path """
        return

    @property
    def repo_root(self):
        return self.build.build_dir

    @property
    def repo_name(self):
        return self.build.repo.name

    @property
{'fraction_non_alphanumeric': 0.08147429679922405, 'fraction_numerical': 0.0, 'mean_word_length': 2.990328820116054, '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': '4980621', 'n_tokens_mistral': 570, 'n_tokens_neox': 548, 'n_words': 143}