<commit_before># USB HID Usage → Text converter

C function for converting USB HID Usage values to text

## Example

    int main(void)
    {
        uint32_t usagePage = 0x02;
        uint32_t usage     = 0x04;
        printf("%04x:%04x  %s\n", usagePage, usage, getHidUsageText(usagePage, usage));
    }

Output:

    0002:0004  Spaceship Simulation Device
<commit_msg>In the example, fix memory leak.<commit_after># USB HID Usage → Text converter

C function for converting USB HID Usage values to text

## Example
```c
#include "usb-hid-usage.h"

#include <stdio.h>
#include <stdlib.h>

int main(void)
{
    uint32_t usagePage = 0x02;
    uint32_t usage     = 0x04;
    char *usageText = getHidUsageText(usagePage, usage);
    printf("%04x:%04x  %s\n", usagePage, usage, usageText);
    free(usageText);
    return 0;
}
```

Output:

    0002:0004  Spaceship Simulation Device

{'fraction_non_alphanumeric': 0.10783200908059024, 'fraction_numerical': 0.0510783200908059, 'mean_word_length': 3.323529411764706, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5840091', 'n_tokens_mistral': 345, 'n_tokens_neox': 301, 'n_words': 92}