def _get_enabling_map(self, config_dict):
        self._log_severity(config_dict)

        severity = config_dict['cmdargs']['severity']
        policy_enabling_map = {}

        for policy_name, policy in self._all_policies_map.items():
            policy_enabling_map[policy_name] = is_level_enabled(policy.level, severity)

        prior_policy_enabling_map = config_dict['policies']

        for policy_name, policy in prior_policy_enabling_map.items():
            if 'enabled' in policy:
                policy_enabling_map[policy_name] = policy['enabled']

        return policy_enabling_map
dataset/ETHPy150Open Kuniwak/vint/vint/linting/policy_set.py/PolicySet._get_enabling_map/original