<s> """<STR_LIT>""" <EOL> def tokenProgressFunc ( state = "<STR_LIT>" , action = None , text = None , tick = <NUM_LIT:0> ) : <EOL> """<STR_LIT>""" <EOL> print ( "<STR_LIT>" % ( state , str ( title ) , str ( text ) , str ( tick ) ) ) <EOL> def build ( <EOL> documentPath , <EOL> outputUFOFormatVersion = <NUM_LIT:2> , <EOL> roundGeometry = True , <EOL> verbose = True , <EOL> logPath = None , <EOL> progressFunc = None , <EOL> ) : <EOL> """<STR_LIT>""" <EOL> from mutatorMath . ufo . document import DesignSpaceDocumentReader <EOL> import os , glob <EOL> if os . path . isdir ( documentPath ) : <EOL> todo = glob . glob ( os . path . join ( documentPath , "<STR_LIT>" ) ) <EOL> else : <EOL> todo = [ documentPath ] <EOL> results = [ ] <EOL> for path in todo : <EOL> reader = DesignSpaceDocumentReader ( <EOL> path , <EOL> ufoVersion = outputUFOFormatVersion , <EOL> roundGeometry = roundGeometry , <EOL> verbose = verbose , <EOL> logPath = logPath , <EOL> progressFunc = progressFunc <EOL> ) <EOL> reader . process ( ) <EOL> results . append ( reader . results ) <EOL> reader = None <EOL> return results </s>
