<commit_before># Setup firewall
#
# NOTE: Add your custom rules to "dist/etc/firewall_rules.sh"

initializer = "/etc/init.d/firewall"
rules       = "/etc/firewall_rules.sh"

modified = false
modified |= cp(dist+initializer, initializer, :mode => 0555, :user => "root", :group => "root")
modified |= cp(dist+rules,       rules,       :mode => 0555, :user => "root", :group => "root")

service_manager.restart("firewall") if modified
service_manager.enable("firewall")<commit_msg>Fixed base_firewall, added dependency for 'iptables' so it can be used without base_ban2fail.<commit_after># Setup firewall
#
# NOTE: Add your custom rules to "dist/etc/firewall_rules.sh"

initializer = "/etc/init.d/firewall"
rules       = "/etc/firewall_rules.sh"

package_manager.install "iptables"

modified = false
modified |= cp(dist+initializer, initializer, :mode => 0555, :user => "root", :group => "root")
modified |= cp(dist+rules,       rules,       :mode => 0555, :user => "root", :group => "root")

service_manager.restart("firewall") if modified
service_manager.enable("firewall")
{'fraction_non_alphanumeric': 0.15578358208955223, 'fraction_numerical': 0.01585820895522388, 'mean_word_length': 4.831521739130435, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, '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': '7427241', 'n_tokens_mistral': 357, 'n_tokens_neox': 342, 'n_words': 89}