<commit_before>#!/bin/bash
cd

if [ ! -d ~/Engine ]; then
  git clone https://github.com/fp7-netide/Engine
fi

# TODO: install netip libraries so that java and python can find them

#echo "export PYTHONPATH=\$PYTHONPATH:~/Engine/ryu-backend:~/Engine/ryu-backend/tests" >> $HOME/.bashrc
#echo "export PYTHONPATH=\$PYTHONPATH:~/Engine/ryu-backend:~/Engine/ryu-backend/tests" >> $HOME/.profile

#echo "export PYTHONPATH=\$PYTHONPATH:~/Engine/ryu-shim" >> $HOME/.bashrc
#echo "export PYTHONPATH=\$PYTHONPATH:~/Engine/ryu-shim" >> $HOME/.profile<commit_msg>Add path to netip libraries to Python path when installing engine<commit_after>#!/bin/bash

cd

if [ ! -d ~/Engine ]; then
  git clone https://github.com/fp7-netide/Engine
fi

x="export PYTHONPATH=\$PYTHONPATH:~/Engine/libraries/netip/python"

echo "$x" >> $HOME/.bashrc
echo "$x" >> $HOME/.profile

# TODO: install netip libraries so that java can find them
{'fraction_non_alphanumeric': 0.16483516483516483, 'fraction_numerical': 0.002197802197802198, 'mean_word_length': 4.588957055214724, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, 'https://': 2, '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': '7590044', 'n_tokens_mistral': 348, 'n_tokens_neox': 332, 'n_words': 75}