def annotate_metadata_code(repo, files):
package = repo.package<EOL>package['<STR_LIT:code>'] = []<EOL>for p in files:<EOL><INDENT>matching_files = glob2.glob("<STR_LIT>".format(p))<EOL>for f in matching_files:<EOL><INDENT>absf = os.path.abspath(f)<EOL>print("<STR_LIT>".format(f))<EOL>package['<STR_LIT:code>'].append(OrderedDict([<EOL>('<STR_LIT>', f),<EOL>('<STR_LIT>', repo.manager.permalink(repo, absf)),<EOL>('<STR_LIT>', mimetypes.guess_type(absf)[<NUM_LIT:0>]),<EOL>('<STR_LIT>', compute_sha256(absf))<EOL>]))<EOL><DEDENT><DEDENT>
Update metadata with the commit information