<commit_before>from azure.cli.commands.azure_resource_id import AzureResourceId

def _convert_id_list_to_object(data):
    if not data:
        return None

    if not isinstance(data, list):
        data = [data]
    data_list = []
    for val in data:
        # currently only supports accepting ids, not names
        data_list.append({'id': str(AzureResourceId(val))})
    return data_list

def process_nic_namespace(namespace):
    if namespace.public_ip_address_name:
        namespace.public_ip_address_type = 'existing'<commit_msg>Wrap value error in CLIError when an ID parsing error occurs in NIC create. (#455)<commit_after>from azure.cli.commands.azure_resource_id import AzureResourceId
from azure.cli._util import CLIError

def _convert_id_list_to_object(data):
    if not data:
        return None

    if not isinstance(data, list):
        data = [data]
    data_list = []
    for val in data:
        # currently only supports accepting ids, not names
        try:
            data_list.append({'id': str(AzureResourceId(val))})
        except ValueError:
            raise CLIError('Please supply a space-separated list of well-formed IDs.')
    return data_list

def process_nic_namespace(namespace):
    if namespace.public_ip_address_name:
        namespace.public_ip_address_type = 'existing'
{'fraction_non_alphanumeric': 0.07832699619771863, 'fraction_numerical': 0.0022813688212927757, 'mean_word_length': 3.372093023255814, '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': '5632636', 'n_tokens_mistral': 387, 'n_tokens_neox': 375, 'n_words': 107}