<commit_before>#!/bin/sh
export snort_path=/usr/local
export LUA_PATH=$snort_path/include/snort/lua/\?.lua\;\;
export SNORT_LUA_PATH=$snort_path/etc/snort

iptables -A FORWARD -j NFQUEUE
snort -c $snort_path/etc/snort/snort.lua -R $snort_path/etc/snort/sample.rules --max-packet-threads 8 --daq nfq -Q -L dump -l /log/<commit_msg>nf : run snort in daemon mode<commit_after>#!/bin/sh
export snort_path=/usr/local
export LUA_PATH=$snort_path/include/snort/lua/\?.lua\;\;
export SNORT_LUA_PATH=$snort_path/etc/snort

iptables -A FORWARD -j NFQUEUE
snort -c $snort_path/etc/snort/snort.lua -R $snort_path/etc/snort/sample.rules --max-packet-threads 8 --daq nfq -Q -L dump -l /log/ -D
{'fraction_non_alphanumeric': 0.1561119293078056, 'fraction_numerical': 0.0029455081001472753, 'mean_word_length': 4.037037037037037, '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': '7620634', 'n_tokens_mistral': 297, 'n_tokens_neox': 284, 'n_words': 57}