<commit_before># ??
context_is_cloud_admin: role:cloud_compute_admin

# ??
context_is_quota_admin: role:resource_service

# Decides what is required for the 'is_admin:True' check to succeed.
#context_is_admin: role:admin
context_is_admin: rule:context_is_cloud_admin

# ??
owner: project_id:%(project_id)s

# ??
member: role:member and rule:owner

# ??
viewer: role:compute_viewer and rule:owner

# ??
admin: (role:compute_admin or role:compute_admin_wsg) and rule:owner

# ??
context_is_compute_admin: rule:context_is_admin or rule:admin

# ??
context_is_editor: rule:context_is_compute_admin or rule:member

# ??
context_is_viewer: rule:context_is_editor or rule:viewer

# ??
compute_admin_all: role:compute_admin or role:cloud_compute_admin
<commit_msg>[nova] Policy: Simplify context_is_admin rule<commit_after># ??
context_is_quota_admin: role:resource_service

# Decides what is required for the 'is_admin:True' check to succeed.
#context_is_admin: role:admin
context_is_admin: role:cloud_compute_admin

# ??
owner: project_id:%(project_id)s

# ??
member: role:member and rule:owner

# ??
viewer: role:compute_viewer and rule:owner

# ??
admin: (role:compute_admin or role:compute_admin_wsg) and rule:owner

# ??
context_is_compute_admin: rule:context_is_admin or rule:admin

# ??
context_is_editor: rule:context_is_compute_admin or rule:member

# ??
context_is_viewer: rule:context_is_editor or rule:viewer

# ??
compute_admin_all: role:compute_admin or role:cloud_compute_admin

{'fraction_non_alphanumeric': 0.1009421265141319, 'fraction_numerical': 0.0, 'mean_word_length': 8.067073170731707, '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': '1455144', 'n_tokens_mistral': 525, 'n_tokens_neox': 522, 'n_words': 104}