<s> import config <EOL> import os <EOL> import hashlib <EOL> import random <EOL> import string <EOL> def genPassword ( * seeds ) : <EOL> return hashlib . sha224 ( "<STR_LIT>" + "<STR_LIT>" . join ( seeds ) ) . hexdigest ( ) <EOL> def genSecretKey ( ) : <EOL> """<STR_LIT>""" <EOL> return '<STR_LIT>' . join ( random . choice ( string . ascii_uppercase + string . ascii_lowercase + string . digits ) for x in range ( <NUM_LIT:64> ) ) <EOL> def conf_path_builder ( script_file ) : <EOL> """<STR_LIT>""" <EOL> config_path = os . path . join ( os . path . dirname ( os . path . abspath ( script_file ) ) , config . CONFIG_DIR ) <EOL> def conf ( file_name ) : <EOL> return os . path . join ( config_path , file_name ) <EOL> return conf </s>
