<commit_before>#!/bin/bash

curdir=$( cd `dirname $0` && pwd)

if [ ! -d "$curdir/env" ]; then
    echo "Virtual environment does not exist; run the following then try again:"
    echo "    setup-env.sh"
    exit 1
fi

source "$curdir/env/bin/activate"
python -m lgid.main "$@"
deactivate<commit_msg>Set python IO encoding to utf8 in run script<commit_after>#!/bin/bash

curdir=$( cd `dirname $0` && pwd)

if [ ! -d "$curdir/env" ]; then
    echo "Virtual environment does not exist; run the following then try again:"
    echo "    setup-env.sh"
    exit 1
fi

source "$curdir/env/bin/activate"
PYTHONIOENCODING=UTF-8 python -m lgid.main "$@"
deactivate
{'fraction_non_alphanumeric': 0.14067278287461774, 'fraction_numerical': 0.009174311926605505, 'mean_word_length': 3.5172413793103448, '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': '7066415', 'n_tokens_mistral': 238, 'n_tokens_neox': 225, 'n_words': 74}