<commit_before>---
# Settings Config File
org.openbmc.settings.Host:
    settings:
        powercap:
            name: power_cap
            type: i
            default: 0
            min: 0
            max: 1000
            unit: watts
            validation: range
        bootflags:
            name: boot_flags
            type: s
            default: "default"
            validation: list
            allowed: ["Network", "Disk", "Safe", "CDROM", "Setup", "default"]
        sysstate:
            name: system_state
            type: s
            default: ""
            validation: None
        powerpolicy:
            name: power_policy
            type: s
            default: "RESTORE_LAST_STATE"
            validation: list
            allowed: ["ALWAYS_POWER_ON", "RESTORE_LAST_STATE", "LEAVE_OFF"]
        restrictedmode:
            name: restricted_mode
            type: b
            default: false
            min: 0
            max: 1
            validation: range
        bootpolicy:
            name: boot_policy
            type: s
            default: "ONETIME"
            validation: list
            allowed: ["ONETIME", "PERMANENT"]
        networkconfig:
            name: network_config
            type: s
            default: "ipaddress=,prefix=,gateway=,mac=,addr_type="
            validation: custom
            method: validate_net_config
        TimeMode:
            name: time_mode
            type: s
            default: "NTP"
            validation: list
            allowed: ["NTP", "MANUAL"]
        TimeOwner:
            name: time_owner
            type: s
            default: "BMC"
            validation: list
            allowed: ["BMC", "HOST", "SPLIT", "BOTH"]
        UseDhcpNtp:
            name: use_dhcp_ntp
            type: s
            default: "yes"
            validation: list
            allowed: ["yes", "no"]
    query:
        type: instance_query
        keyregex: "host"
        subtree: "/org/openbmc/control"
        matchregex: "control/(host\d*)$"

# Example of using regex
#    macaddress:
#        name: mac_address
#        type: s
#        default: "aa:bb:cc:dd:ee:ff"
#        validation: regex
#        regex: '([a-fA-F0-9]{2}[:|\-]?){6}'
<commit_msg>Add double-escape to a regex in settings.yaml<commit_after>---
# Settings Config File
org.openbmc.settings.Host:
    settings:
        powercap:
            name: power_cap
            type: i
            default: 0
            min: 0
            max: 1000
            unit: watts
            validation: range
        bootflags:
            name: boot_flags
            type: s
            default: "default"
            validation: list
            allowed: ["Network", "Disk", "Safe", "CDROM", "Setup", "default"]
        sysstate:
            name: system_state
            type: s
            default: ""
            validation: None
        powerpolicy:
            name: power_policy
            type: s
            default: "RESTORE_LAST_STATE"
            validation: list
            allowed: ["ALWAYS_POWER_ON", "RESTORE_LAST_STATE", "LEAVE_OFF"]
        restrictedmode:
            name: restricted_mode
            type: b
            default: false
            min: 0
            max: 1
            validation: range
        bootpolicy:
            name: boot_policy
            type: s
            default: "ONETIME"
            validation: list
            allowed: ["ONETIME", "PERMANENT"]
        networkconfig:
            name: network_config
            type: s
            default: "ipaddress=,prefix=,gateway=,mac=,addr_type="
            validation: custom
            method: validate_net_config
        TimeMode:
            name: time_mode
            type: s
            default: "NTP"
            validation: list
            allowed: ["NTP", "MANUAL"]
        TimeOwner:
            name: time_owner
            type: s
            default: "BMC"
            validation: list
            allowed: ["BMC", "HOST", "SPLIT", "BOTH"]
        UseDhcpNtp:
            name: use_dhcp_ntp
            type: s
            default: "yes"
            validation: list
            allowed: ["yes", "no"]
    query:
        type: instance_query
        keyregex: "host"
        subtree: "/org/openbmc/control"
        matchregex: "control/(host\\d*)$"

# Example of using regex
#    macaddress:
#        name: mac_address
#        type: s
#        default: "aa:bb:cc:dd:ee:ff"
#        validation: regex
#        regex: '([a-fA-F0-9]{2}[:|\-]?){6}'

{'fraction_non_alphanumeric': 0.09935541231384752, 'fraction_numerical': 0.005334518781951545, 'mean_word_length': 1.3219814241486068, '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': '1012472', 'n_tokens_mistral': 1261, 'n_tokens_neox': 1236, 'n_words': 318}