<commit_before>#!/bin/bash

. bin/config.inc

php symfony export:facture > /tmp/factures.csv

awk -F ';' '{print $14}' /tmp/factures.csv  | grep FACTURE | sort | uniq  | while read facture ; 
do
	FACTUREDIR=$PDFDIR"/"$(echo $facture | cut -f 3 -d '-' | sed 's/\(....\)\(..\)..../\1\/\2/');
	mkdir -p $FACTUREDIR 2> /dev/null;
	php symfony generate:AFacture --directory=$FACTUREDIR $facture ; 
done

if test $SAMBA_FACTURELOCALDIR; then
    mount $SAMBA_FACTURELOCALDIR
    rsync -a $PDFDIR $SAMBA_FACTURELOCALDIR
    umount $SAMBA_FACTURELOCALDIR
fi<commit_msg>Répertoires correspondent à l'année et mois de facture et non de la facturation<commit_after>#!/bin/bash

. bin/config.inc

php symfony export:facture > /tmp/factures.csv

awk -F ';' '{print $2";"$14}' /tmp/factures.csv  | grep FACTURE | sort | uniq  | while read datefacture ; 
do
        facture=$(echo $datefacture | sed 's/.*;//')
        date=$(echo $datefacture | sed 's/;.*//')
	FACTUREDIR=$PDFDIR"/"$(echo $date  | sed 's/\(....\)-\(..\)-../\1\/\2/');
	mkdir -p $FACTUREDIR 2> /dev/null;
	php symfony generate:AFacture --directory=$FACTUREDIR $facture ; 
done

if test $SAMBA_FACTURELOCALDIR; then
    mount $SAMBA_FACTURELOCALDIR
    rsync -a $PDFDIR $SAMBA_FACTURELOCALDIR
    umount $SAMBA_FACTURELOCALDIR
fi
{'fraction_non_alphanumeric': 0.17109375, 'fraction_numerical': 0.009375, 'mean_word_length': 3.3423728813559324, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '3844456', 'n_tokens_mistral': 529, 'n_tokens_neox': 514, 'n_words': 117}