<commit_before>function(keys,values,rereduce) {

    var merge_field = function(field,pos,merged_field){
        var field_copy = field;
        if(field_copy == null) return merged_field;
        if(typeof(field_copy)==='string') {
            merged_field.push(field_copy);
        }else if(typeof(field_copy)==='number') {
            merged_field.push(field_copy);
        }
        else {
            for(key in field_copy) {
                if(in_array(field_copy[key], merged_field)) {

                    continue;
                }
                merged_field.push(field_copy[key]);
            }
        }

        merged_field.sort();
        
        for (var i = 1; i < merged_field.length; i++){
            if (merged_field[i-1] === merged_field[i]) {
                    merged_field.splice(i, 1);
            }
        }
        var result = [];
        for (var i = 0; i < merged_field.length; i++){
            if (merged_field[i] != null) {
                    result.push(merged_field[i]);
            }
        }       
        return result;  
    }

    var in_array = function(value, tab) {
        for(key in tab) {
            if(tab[key] == value) {
                
                return true;
            }
        }

        return false;
    }

    var reduce_result = function(tab)
    {
        if(tab.length) return tab[0];
        
        return null;
    }

    var reduce_origines = function(tab)
    {
        if(tab.length == 1) return tab;
        
        return null;
    }

    var origines = new Array();
    var produits_libelles = new Array();
    var types_libelles = new Array();
    var total_volume = 0;
    var cvos = new Array();
    var dates = new Array();
    var vrac_destinataire = new Array();
    var details_libelles = new Array();
    var identifiants = new Array();
    
    for(item in values)
    {
        produits_libelles = merge_field(values[item][0],item,produits_libelles);<commit_msg>La vue du reduce des mouvements factures n'était pas à jour<commit_after>function(keys,values,rereduce) {

    var merge_field = function(field,pos,merged_field){
        var field_copy = field;
        if(field_copy == null) return merged_field;
        if(typeof(field_copy)==='string') {
            merged_field.push(field_copy);
        }else if(typeof(field_copy)==='number') {
            merged_field.push(field_copy);
        }
        else {
            for(key in field_copy) {
                if(in_array(field_copy[key], merged_field)) {

                    continue;
                }
                merged_field.push(field_copy[key]);
            }
        }

        merged_field.sort();
        
        for (var i = 1; i < merged_field.length; i++){
            if (merged_field[i-1] === merged_field[i]) {
                    merged_field.splice(i, 1);
            }
        }
        var result = [];
        for (var i = 0; i < merged_field.length; i++){
            if (merged_field[i] != null) {
                    result.push(merged_field[i]);
            }
        }       
        return result;  
    }

    var in_array = function(value, tab) {
        for(key in tab) {
            if(tab[key] == value) {
                
                return true;
            }
        }

        return false;
    }

    var reduce_result = function(tab)
    {
        if(tab.length) return tab[0];
        
        return null;
    }

    var reduce_origines = function(tab)
    {
        if(tab.length == 1) return tab[0];
        
        return false;
    }

    var origines = new Array();
    var produits_libelles = new Array();
    var types_libelles = new Array();
    var total_volume = 0;
    var cvos = new Array();
    var dates = new Array();
    var vrac_destinataire = new Array();
    var details_libelles = new Array();
    var identifiants = new Array();
    
    for(item in values)
    {
        produits_libelles = merge_field(values[item][0],item,produits_libelles);
{'fraction_non_alphanumeric': 0.11511335012594459, 'fraction_numerical': 0.0042821158690176326, 'mean_word_length': 1.6073539067629679, 'pattern_counts': {'":': 0, '<': 7, '<?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': '980552', 'n_tokens_mistral': 1223, 'n_tokens_neox': 1173, 'n_words': 253}