<commit_before>control "open-development-environment-devbox-script-networking" do
  title "open-development-environment-devbox-script-networking control"

  describe file("/etc/network/interfaces") do
    it { should exist }
    it { should be_owned_by 'root' }
    it { should be_grouped_into 'root' }
    it { should be_readable.by_user('root') }
    its('mode') { should cmp '0644' }
    its('content') { should match('pre-up sleep 2') }
  end

end<commit_msg>Update test for networking script<commit_after>control "open-development-environment-devbox-script-networking" do
  title "open-development-environment-devbox-script-networking control"

  describe file("/etc/network/interfaces") do
    it { should exist }
    it { should be_owned_by 'root' }
    it { should be_grouped_into 'root' }
    it { should be_readable.by_user('root') }
    its('mode') { should cmp '0644' }
    its('content') { should match('pre-up sleep 2') }
  end

  describe file("/etc/default/grub") do
    it { should exist }
    it { should be_owned_by 'root' }
    it { should be_grouped_into 'root' }
    it { should be_readable.by_user('root') }
    its('mode') { should cmp '0644' }
    its('content') { should match('GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0') }
  end

  describe file("/etc/netplan/01-netcfg.yaml") do
    it { should exist }
    it { should be_owned_by 'root' }
    it { should be_grouped_into 'root' }
    it { should be_readable.by_user('root') }
    its('mode') { should cmp '0644' }
    its('content') { should match('eth0') }
  end

end
{'fraction_non_alphanumeric': 0.13586606567933032, 'fraction_numerical': 0.014810045074050225, 'mean_word_length': 3.6666666666666665, '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': '6005090', 'n_tokens_mistral': 540, 'n_tokens_neox': 516, 'n_words': 122}