<commit_before>module Vagrant
  module HostGateway
    class Host
      module Linux
        def enable_forwarding
          system('sudo sysctl -w net.ipv4.ip_forward=1')
        end

        def setup_nat(nic, net)
          unless system(%Q/ip address show dev #{nic}/)
            raise InvalidInterface
          end
          unless system(%Q/sudo iptables -t nat -L POSTROUTING -nvx | egrep 'MASQUERADE.*#{nic}.*#{net}'/)
            system("sudo iptables -t nat -I POSTROUTING 1 -o #{nic} -s #{net} -j MASQUERADE -m comment --comment 'Done by Vagrant'")
          end
        end
      end
    end
  end
end<commit_msg>Remove useless message during linux host configuration.<commit_after>module Vagrant
  module HostGateway
    class Host
      module Linux
        def enable_forwarding
          system('sudo sysctl -w net.ipv4.ip_forward=1 >/dev/null 2>&1')
        end

        def setup_nat(nic, net)
          unless system(%Q\ip address show dev #{nic} >/dev/null 2>&1\)
            raise InvalidInterface
          end
          unless system(%Q/sudo iptables -t nat -L POSTROUTING -nvx | egrep 'MASQUERADE.*#{nic}.*#{net}'/)
            system("sudo iptables -t nat -I POSTROUTING 1 -o #{nic} -s #{net} -j MASQUERADE -m comment --comment 'Done by Vagrant'")
          end
        end
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.10316265060240964, 'fraction_numerical': 0.007530120481927711, 'mean_word_length': 2.006787330316742, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '7234147', 'n_tokens_mistral': 435, 'n_tokens_neox': 418, 'n_words': 133}