<commit_before>auto lo
iface lo inet loopback
<% if @int_loopback -%>
    address <%= int_loopback %>
    netmask 255.255.255.255
<% end -%>

auto eth0
iface eth0 inet dhcp

<% if @int_unnumbered -%>
# unnumbered interfaces
<% @int_unnumbered.each do |val| -%>
auto <%= val %>
iface <%= val %> inet static
    address <%= int_loopback %>
    netmask 255.255.255.255

<% end -%>
<% else %>
# no unnumbered interfaces
<% end -%>

<% if @int_layer3 %>
# l3 interfaces
<% int_layer3.each_pair do |key, value_hash| %>
auto <%= key %>
iface <%= key %> inet static
    address <%= value_hash['address'] %>
    netmask <%= value_hash['netmask'] %>

<% end %>
<% else %>
# no l3 interfaces
<% end %>

<% if int_bridges %>
# bridges
<% int_bridges.each_pair do |key, value_hash| %>
auto <%= key %>
iface <%= key %> inet static
    address <%= value_hash['address'] %>
    netmask <%= value_hash['netmask'] %>
    bridge_ports <% value_hash['members'].each do |val| -%><%= val%> <% end -%><commit_msg>fixed strange space character in comment<commit_after>auto lo
iface lo inet loopback
<% if @int_loopback -%>
    address <%= int_loopback %>
    netmask 255.255.255.255
<% end -%>

auto eth0
iface eth0 inet dhcp

<% if @int_unnumbered -%>
# unnumbered interfaces
<% @int_unnumbered.each do |val| -%>
auto <%= val %>
iface <%= val %> inet static
    address <%= int_loopback %>
    netmask 255.255.255.255

<% end -%>
<% else %>
# no unnumbered interfaces
<% end -%>

<% if @int_layer3 %>
# l3 interfaces
<% int_layer3.each_pair do |key, value_hash| %>
auto <%= key %>
iface <%= key %> inet static
    address <%= value_hash['address'] %>
    netmask <%= value_hash['netmask'] %>

<% end %>
<% else %>
# no l3 interfaces
<% end %>

<% if int_bridges %>
# bridges
<% int_bridges.each_pair do |key, value_hash| %>
auto <%= key %>
iface <%= key %> inet static
    address <%= value_hash['address'] %>
    netmask <%= value_hash['netmask'] %>
    bridge_ports <% value_hash['members'].each do |val| -%><%= val%> <% end -%>
{'fraction_non_alphanumeric': 0.18834080717488788, 'fraction_numerical': 0.029895366218236172, 'mean_word_length': 3.7358490566037736, 'pattern_counts': {'":': 0, '<': 61, '<?xml version=': 0, '>': 61, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '4945486', 'n_tokens_mistral': 870, 'n_tokens_neox': 701, 'n_words': 183}