def cmu_urls_files(subj_motions, messages = True):
dr = data_resources['<STR_LIT>']<EOL>cmu_url = dr['<STR_LIT>'][<NUM_LIT:0>]<EOL>subjects_num = subj_motions[<NUM_LIT:0>]<EOL>motions_num = subj_motions[<NUM_LIT:1>]<EOL>resource = {'<STR_LIT>' : [], '<STR_LIT>' : []}<EOL>subjects = []<EOL>motions = [list() for _ in range(len(subjects_num))]<EOL>for i in range(len(subjects_num)):<EOL><INDENT>curSubj = str(int(subjects_num[i]))<EOL>if int(subjects_num[i]) < <NUM_LIT:10>:<EOL><INDENT>curSubj = '<STR_LIT:0>' + curSubj<EOL><DEDENT>subjects.append(curSubj)<EOL>for j in range(len(motions_num[i])):<EOL><INDENT>curMot = str(int(motions_num[i][j]))<EOL>if int(motions_num[i][j]) < <NUM_LIT:10>:<EOL><INDENT>curMot = '<STR_LIT:0>' + curMot<EOL><DEDENT>motions[i].append(curMot)<EOL><DEDENT><DEDENT>all_skels = []<EOL>assert len(subjects) == len(motions)<EOL>all_motions = []<EOL>for i in range(len(subjects)):<EOL><INDENT>skel_dir = os.path.join(data_path, '<STR_LIT>')<EOL>cur_skel_file = os.path.join(skel_dir, subjects[i] + '<STR_LIT>')<EOL>url_required = False<EOL>file_download = []<EOL>if not os.path.exists(cur_skel_file):<EOL><INDENT>if not os.path.isdir(skel_dir):<EOL><INDENT>os.makedirs(skel_dir)<EOL><DEDENT>url_required = True<EOL>file_download.append(subjects[i] + '<STR_LIT>')<EOL><DEDENT>for j in range(len(motions[i])):<EOL><INDENT>file_name = subjects[i] + '<STR_LIT:_>' + motions[i][j] + '<STR_LIT>'<EOL>cur_motion_file = os.path.join(skel_dir, file_name)<EOL>if not os.path.exists(cur_motion_file):<EOL><INDENT>url_required = True<EOL>file_download.append(subjects[i] + '<STR_LIT:_>' + motions[i][j] + '<STR_LIT>')<EOL><DEDENT><DEDENT>if url_required:<EOL><INDENT>resource['<STR_LIT>'].append(cmu_url + '<STR_LIT:/>' + subjects[i] + '<STR_LIT:/>')<EOL>resource['<STR_LIT>'].append(file_download)<EOL><DEDENT><DEDENT>return resource<EOL>
Find which resources are missing on the local disk for the requested CMU motion capture motions.

:param subj_motions: the subject motions to be checked for.
:type subj_motions: tuple of lists containing subject numbers and motion numbers.