<commit_before>#!/bin/bash

port=2047

./visualizer.lua &

ncat --keep-open -l $port |
while read line
do
    echo $line > queue/$(uuidgen)
done
<commit_msg>Make visualizer work when called from somewhere else<commit_after>#!/bin/bash

scripts_dir=$(cd $(dirname $0); pwd)
port=2047

cd $scripts_dir

./visualizer.lua &

ncat --keep-open -l $port |
while read line
do
    echo $line > queue/$(uuidgen)
done

{'fraction_non_alphanumeric': 0.14250614250614252, 'fraction_numerical': 0.022113022113022112, 'mean_word_length': 3.8, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '739664', 'n_tokens_mistral': 162, 'n_tokens_neox': 151, 'n_words': 43}