<commit_before><%- @hash_data.sort.each do |host, data|
  scope.function_validate_hash([data]) -%>
<%-
  raise Puppet::ParseError, "Missing interfaces hash for host '#{host}'" unless data.has_key? 'interfaces' 
  data.fetch('interfaces').sort.each do |if_name, if_mac|
    scope.function_validate_re([if_name, '^\S+$'])
    scope.function_validate_string([if_mac])
    scope.function_validate_re([if_mac, '^[a-f0-9:.]+$'])
 -%>
host <%= host %>-<%= if_name %> {
  hardware ethernet <%= if_mac %>;
<%
  fixed_address = data.fetch('fixed_address', nil) || host
  scope.function_validate_string([fixed_address])
  scope.function_validate_re([fixed_address, '^\S+$'])
 -%>
  fixed-address <%= fixed_address %>;
<%
  options = data.fetch('options', nil) || @global_options
  scope.function_validate_array([options])
  unless options.empty?
 -%>
  <%= options.join(";\n") %>;
<% end -%>
}
<% end -%>
<% end -%><commit_msg>Simplify template<commit_after><%- @hash_data.sort.each do |host, data|
  scope.function_validate_hash([data]) 
  raise Puppet::ParseError, "Missing interfaces hash for host '#{host}'" unless data.has_key? 'interfaces' 
  data.fetch('interfaces').sort.each do |if_name, if_mac|
    scope.function_validate_re([if_name, '^\S+$'])
    scope.function_validate_string([if_mac])
    scope.function_validate_re([if_mac, '^[a-f0-9:.]+$'])
 -%>
host <%= host %>-<%= if_name %> {
  hardware ethernet <%= if_mac %>;
<%
  fixed_address = data.fetch('fixed_address', nil) || host
  scope.function_validate_string([fixed_address])
  scope.function_validate_re([fixed_address, '^\S+$'])
 -%>
  fixed-address <%= fixed_address %>;
<%
  options = data.fetch('options', nil) || @global_options
  scope.function_validate_array([options])
  unless options.empty?
 -%>
  <%= options.join(";\n") %>;
<% end -%>
}
<% end -%>
<% end -%>
{'fraction_non_alphanumeric': 0.20557681793329688, 'fraction_numerical': 0.002186987424822307, 'mean_word_length': 5.0, 'pattern_counts': {'":': 0, '<': 26, '<?xml version=': 0, '>': 26, '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': '3480070', 'n_tokens_mistral': 695, 'n_tokens_neox': 646, 'n_words': 105}