def _update_headers(self, po, language):
        po.metadata['Project-Id-Version'] = self.resource.project.name
        po.metadata['Content-Type'] = u"text/plain; charset=%s" % self.format_encoding
        # The above doesn't change the charset of the actual object, so we
        # need to do it for the pofile object as well.
        po.encoding = self.format_encoding

        po.metadata['PO-Revision-Date'] = self.resource.created.strftime("%Y-%m-%d %H:%M+0000")
        po.metadata['Plural-Forms'] = "nplurals=%s; plural=%s" % (language.nplurals, language.pluralequation)
        # The following is in the specification but isn't being used by po
        # files. What should we do?
        po.metadata['Language'] = language.code

        if self.resource.project.bug_tracker:
            po.metadata['Report-Msgid-Bugs-To'] = self.resource.project.bug_tracker

        if 'fuzzy' in po.metadata_is_fuzzy:
            po.metadata_is_fuzzy.remove('fuzzy')

        try:
            team = Team.objects.get(
                language=language, project = self.resource.project.outsource or self.resource.project
            )
        except Team.DoesNotExist:
            pass
        else:
            team_contact = "<%s>" % team.mainlist if team.mainlist else \
                "(http://%s%s)" % (Site.objects.get_current().domain,
                                   team.get_absolute_url())

            po.metadata['Language-Team'] = "%s %s" % (language.name, team_contact)

        stat = RLStats.objects.by_resource(self.resource).by_language(language)
        if stat and stat[0].last_committer:
            u = stat[0].last_committer
            po.metadata['Last-Translator'] = "%s <%s>" % (u.get_full_name() or u.username , u.email)
            po.metadata['PO-Revision-Date'] = stat[0].last_update.strftime("%Y-%m-%d %H:%M+0000")
        return po
Compute the Generalized Hamming Distance for a reference and a hypothetical
dataset/ETHPy150Open rvanlaar/easy-transifex/src/transifex/transifex/resources/formats/pofile.py/GettextHandler._update_headers--crossover with--dataset/ETHPy150Open nltk/nltk/nltk/metrics/segmentation.py/ghd