<commit_before>#!/bin/bash
#
#Tourne les script sur l'article 1 du PL Hopital

bash bin/compare_textes.sh example/article1_pl.txt example/article1_anfin1lecture.txt > tmp/article1.wdiff
perl bin/prepare_amendemnts.pl < example/amendements_adoptés.csv > tmp/amendements_adoptés.comparables.csv
perl bin/compare_diffs_amendements.pl bin/compare_diff_amendements.pl tmp/amendements_adoptés.comparables.csv < tmp/article1.wdiff | sh > tmp/compare_diffs_amendements.log
<commit_msg>Comme le tmp n'est pas dans le git, on le crée<commit_after>#!/bin/bash
#
#Tourne les script sur l'article 1 du PL Hopital
mkdir -p tmp
bash bin/compare_textes.sh example/article1_pl.txt example/article1_anfin1lecture.txt > tmp/article1.wdiff
perl bin/prepare_amendemnts.pl < example/amendements_adoptés.csv > tmp/amendements_adoptés.comparables.csv
perl bin/compare_diffs_amendements.pl bin/compare_diff_amendements.pl tmp/amendements_adoptés.comparables.csv < tmp/article1.wdiff | sh > tmp/compare_diffs_amendements.log

{'fraction_non_alphanumeric': 0.08708708708708708, 'fraction_numerical': 0.012012012012012012, 'mean_word_length': 6.246376811594203, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '5787018', 'n_tokens_mistral': 379, 'n_tokens_neox': 365, 'n_words': 65}