<commit_before>#!/usr/bin/python
import os
import shutil
import fileinput

####################################################
## Define the attributes used to enrich your data
#
#ldap_attributes = ['eduPersonPrimaryAffiliation', 'supannEntiteAffectationPrincipale', 'supannEtuCursusAnnee', 'supannEtuSecteurDisciplinaire']
ldap_attributes = ['eduPersonPrimaryAffiliation', 'supannEntiteAffectationPrincipale', 'supannEtuDiplome', 'supannEtuCursusAnnee', 'supannEtuSecteurDisciplinaire', 'supannEtuRegimeInscription', 'supannEtablissement']
#
##
####################################################


## Initialize script
script_dir=os.path.dirname(os.path.abspath(__file__))
conf_dir=os.path.abspath(script_dir+'/../logstash')
build_dir=os.path.abspath(script_dir+'/../build')

## The computed values for replacement<commit_msg>change deploy univ to pass ldap attribute in parameters<commit_after>#!/usr/bin/python
import os
import shutil
import fileinput
import sys

####################################################
## Define the attributes used to enrich your data
#
#ldap_attributes = ['eduPersonPrimaryAffiliation', 'supannEntiteAffectationPrincipale', 'supannEtuCursusAnnee', 'supannEtuSecteurDisciplinaire']

ldap_attributes = []

if sys.argv and len(sys.argv) > 1 :
	for arg in sys.argv[1:]:
		ldap_attributes.append(arg)
else :
	ldap_attributes = ['eduPersonPrimaryAffiliation', 'supannEntiteAffectationPrincipale', 'supannEtuDiplome', 'supannEtuCursusAnnee', 'supannEtuSecteurDisciplinaire', 'supannEtuRegimeInscription', 'supannEtablissement']
#
##
####################################################


## Initialize script
script_dir=os.path.dirname(os.path.abspath(__file__))
conf_dir=os.path.abspath(script_dir+'/../logstash')
build_dir=os.path.abspath(script_dir+'/../build')

## The computed values for replacement
{'fraction_non_alphanumeric': 0.22004357298474944, 'fraction_numerical': 0.0010893246187363835, 'mean_word_length': 9.320224719101123, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '2061722', 'n_tokens_mistral': 593, 'n_tokens_neox': 576, 'n_words': 97}