<commit_before>@{
    type definitions for filesystems
}
declaration template quattor/filesystems;

@documentation{ 
    desc = check that no duplicate mountpoints or blockdevices are used
    arg = array of structure_filesystem, from quattor/types/system
}
function filesystems_uniq_paths = {
    mounts = dict();
    blockdevs = dict();
    foreach (idx;data;SELF){
        bd = data['block_device'];
        mp = data['mountpoint'];
        if (exists(mounts[escape(mp)])) {
            error(format('Duplicate mountpoint %s in filesystems', mp));
        } else {
            mounts[escape(mp)] = 1;
        };
        if (exists(blockdevs[escape(bd)])) {
            error(format('Duplicate blockdevice %s used in filesystems', bd));
        } else {<commit_msg>replace SELF with ARGV[0]<commit_after>@{
    type definitions for filesystems
}
declaration template quattor/filesystems;

@documentation{ 
    desc = check that no duplicate mountpoints or blockdevices are used
    arg = array of structure_filesystem, from quattor/types/system
}
function filesystems_uniq_paths = {
    mounts = dict();
    blockdevs = dict();
    foreach (idx;data;ARGV[0]){
        bd = data['block_device'];
        mp = data['mountpoint'];
        if (exists(mounts[escape(mp)])) {
            error(format('Duplicate mountpoint %s in filesystems', mp));
        } else {
            mounts[escape(mp)] = 1;
        };
        if (exists(blockdevs[escape(bd)])) {
            error(format('Duplicate blockdevice %s used in filesystems', bd));
        } else {
{'fraction_non_alphanumeric': 0.12007746933505488, 'fraction_numerical': 0.0025823111684958036, 'mean_word_length': 2.914141414141414, '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': '3065042', 'n_tokens_mistral': 471, 'n_tokens_neox': 451, 'n_words': 119}