<commit_before>from __future__ import print_function

from azure.mgmt.authorization.operations import RoleAssignmentsOperations, RoleDefinitionsOperations

from azure.cli.commands import CommandTable
from azure.cli.commands._auto_command import build_operation, CommandDefinition

from ._params import PARAMETER_ALIASES, _auth_client_factory

command_table = CommandTable()

build_operation(
    'role', 'role_definitions', _auth_client_factory,
    [
        CommandDefinition(RoleDefinitionsOperations.list, '[Role]'),
        #CommandDefinition(RoleDefinitionsOperations.create_or_update, 'Result', 'create'),
        #CommandDefinition(RoleDefinitionsOperations.delete, 'Result'),
        CommandDefinition(RoleDefinitionsOperations.get, 'Role', 'show'),
        CommandDefinition(RoleDefinitionsOperations.get_by_id, 'Role', 'show-by-id')
    ], command_table, PARAMETER_ALIASES)

build_operation(
    'role assignment', 'role_assignments', _auth_client_factory,
    [
        #CommandDefinition(RoleAssignmentsOperations.create, 'Result'),
        #CommandDefinition(RoleAssignmentsOperations.create_by_id, 'Result'),
        #CommandDefinition(RoleAssignmentsOperations.delete, 'Result'),
        #CommandDefinition(RoleAssignmentsOperations.delete_by_id, 'Result'),
        CommandDefinition(RoleAssignmentsOperations.get, 'Result', 'show'),
        CommandDefinition(RoleAssignmentsOperations.get_by_id, 'Result', 'show-by-id'),
        CommandDefinition(RoleAssignmentsOperations.list, '[RoleAssignment]'),
        CommandDefinition(RoleAssignmentsOperations.list_for_resource, '[RoleAssignment]'),
        CommandDefinition(RoleAssignmentsOperations.list_for_resource_group, '[RoleAssignment]'),
        CommandDefinition(RoleAssignmentsOperations.list_for_scope, '[RoleAssignment]')
    ], command_table, PARAMETER_ALIASES)<commit_msg>Enable deletes.<commit_after>from __future__ import print_function

from azure.mgmt.authorization.operations import RoleAssignmentsOperations, RoleDefinitionsOperations

from azure.cli.commands import CommandTable
from azure.cli.commands._auto_command import build_operation, CommandDefinition

from ._params import PARAMETER_ALIASES, _auth_client_factory

command_table = CommandTable()

build_operation(
    'role', 'role_definitions', _auth_client_factory,
    [
        CommandDefinition(RoleDefinitionsOperations.list, '[Role]'),
        #CommandDefinition(RoleDefinitionsOperations.create_or_update, 'Result', 'create'),
        CommandDefinition(RoleDefinitionsOperations.delete, 'Result'),
        CommandDefinition(RoleDefinitionsOperations.get, 'Role', 'show'),
        CommandDefinition(RoleDefinitionsOperations.get_by_id, 'Role', 'show-by-id')
    ], command_table, PARAMETER_ALIASES)

build_operation(
    'role assignment', 'role_assignments', _auth_client_factory,
    [
        #CommandDefinition(RoleAssignmentsOperations.create, 'Result'),
        #CommandDefinition(RoleAssignmentsOperations.create_by_id, 'Result'),
        CommandDefinition(RoleAssignmentsOperations.delete, 'Result'),
        CommandDefinition(RoleAssignmentsOperations.delete_by_id, 'Result'),
        CommandDefinition(RoleAssignmentsOperations.get, 'Result', 'show'),
        CommandDefinition(RoleAssignmentsOperations.get_by_id, 'Result', 'show-by-id'),
        CommandDefinition(RoleAssignmentsOperations.list, '[RoleAssignment]'),
        CommandDefinition(RoleAssignmentsOperations.list_for_resource, '[RoleAssignment]'),
        CommandDefinition(RoleAssignmentsOperations.list_for_resource_group, '[RoleAssignment]'),
        CommandDefinition(RoleAssignmentsOperations.list_for_scope, '[RoleAssignment]')
    ], command_table, PARAMETER_ALIASES)
{'fraction_non_alphanumeric': 0.09802328730029786, 'fraction_numerical': 0.0, 'mean_word_length': 6.200779727095517, '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': '3753934', 'n_tokens_mistral': 964, 'n_tokens_neox': 1004, 'n_words': 146}