<commit_before>#!/bin/bash

/bin/chown -R kapture.kapture /var/kapture /etc/kapture

/sbin/iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8080

if [ -x /etc/init.d/netfilter-persistent ]; then
  /usr/sbin/invoke-rc.d netfilter-persistent save > /dev/null 2>&1
fi

if [ -x /etc/init.d/iptables-persistent ]; then
  /usr/sbin/invoke-rc.d iptables-persistent save  > /dev/null 2>&1
fi

# since this dep contains a binary that needs to be arch dependent, install it in the dir
if [ ! -x /var/kapture/server/node_modules/ngrok/bin/ngrok ]; then
  /usr/bin/nodejs /var/kapture/server/node_modules/ngrok/postinstall.js
fi

/bin/systemctl enable kapture > /dev/null 2>&1
/usr/sbin/service kapture start<commit_msg>bin exists on npm install time, need to run it on dpkg install time<commit_after>#!/bin/bash

/bin/chown -R kapture.kapture /var/kapture /etc/kapture

/sbin/iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8080

if [ -x /etc/init.d/netfilter-persistent ]; then
  /usr/sbin/invoke-rc.d netfilter-persistent save > /dev/null 2>&1
fi

if [ -x /etc/init.d/iptables-persistent ]; then
  /usr/sbin/invoke-rc.d iptables-persistent save  > /dev/null 2>&1
fi

# since this dep contains a binary that needs to be arch dependent, install it in the dir
/usr/bin/nodejs /var/kapture/server/node_modules/ngrok/postinstall.js

/bin/systemctl enable kapture > /dev/null 2>&1
/usr/sbin/service kapture start
{'fraction_non_alphanumeric': 0.13106796116504854, 'fraction_numerical': 0.016643550624133148, 'mean_word_length': 3.3463855421686746, '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': '7270740', 'n_tokens_mistral': 567, 'n_tokens_neox': 562, 'n_words': 149}