<commit_before>
. bin/config.inc

cat $PATH_MISEADISPO_CIVA/ds/*csv | head -n 1 > data/ds.csv
for csv in $PATH_MISEADISPO_CIVA/ds/*csv ; do
    tail -n +2 $csv
done >> data/ds.csv

cat $PATH_MISEADISPO_CIVA/tmp/export_drs_2* | head -n 1 > data/dr.csv
ls $PATH_MISEADISPO_CIVA/tmp/ | grep export_drs_2 | awk -F '_' '{print $1"_"$2"_"$3}'  | sort -u | while read file ; do
    ls -rt  $PATH_MISEADISPO_CIVA"/tmp/"$file* | tail -n 1 ;
done | while read file ; do
    tail -n +2 $file ;
done >> data/dr.csv<commit_msg>Données homogènes<commit_after>
. bin/config.inc

cat $PATH_MISEADISPO_CIVA/ds/*csv | head -n 1 > data/ds.csv
for csv in $PATH_MISEADISPO_CIVA/ds/*csv ; do
    tail -n +2 $csv
done >> data/ds.csv

echo -n "TYPE;ANNEE;" > data/dr.csv
cat $PATH_MISEADISPO_CIVA/tmp/export_drs_2019* | head -n 1 >> data/dr.csv
ls $PATH_MISEADISPO_CIVA/tmp/ | grep export_drs_2 | grep -vE '2014|2015|2016' | awk -F '_' '{print $1"_"$2"_"$3}'  | sort -u | while read file ; do
    ls -rt  $PATH_MISEADISPO_CIVA"/tmp/"$file* | tail -n 1 ;
done | while read file ; do
    ANNEE=$(echo $file | sed 's/.*export_drs_//' | sed 's/_.*//')
    tail -n +2 $file  | sed 's/^/DR;'$ANNEE';/';
done >> data/dr.csv
{'fraction_non_alphanumeric': 0.174496644295302, 'fraction_numerical': 0.02936241610738255, 'mean_word_length': 3.2759856630824373, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, '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': '946504', 'n_tokens_mistral': 565, 'n_tokens_neox': 540, 'n_words': 127}