<s> """<STR_LIT>""" <EOL> import logging <EOL> import os <EOL> from . exceptions import NonTemplatedInputDirException <EOL> def find_template ( repo_dir ) : <EOL> """<STR_LIT>""" <EOL> logging . debug ( '<STR_LIT>' . format ( repo_dir ) ) <EOL> repo_dir_contents = os . listdir ( repo_dir ) <EOL> project_template = None <EOL> for item in repo_dir_contents : <EOL> if '<STR_LIT>' in item and '<STR_LIT>' in item and '<STR_LIT>' in item : <EOL> project_template = item <EOL> break <EOL> if project_template : <EOL> project_template = os . path . join ( repo_dir , project_template ) <EOL> logging . debug ( <EOL> '<STR_LIT>' . format ( project_template ) <EOL> ) <EOL> return project_template <EOL> else : <EOL> raise NonTemplatedInputDirException </s>
