def from_csv(self, user, row):
        if len(row) < 4:
            raise BadRequest(_("Invalid line"))
        self.name = row[1].strip()
        for model in [DomainAlias, Domain]:
            if model.objects.filter(name=self.name).exists():
                raise Conflict
        domname = row[2].strip()
        try:
            self.target = Domain.objects.get(name=domname)
        except Domain.DoesNotExist:
            raise BadRequest(_("Unknown domain %s") % domname)
        core_signals.can_create_object.send(
            sender="import", context=self.target, object_type="domain_aliases")
        self.enabled = row[3].strip() in ["True", "1", "yes", "y"]
        self.save(creator=user)
Given a set of reference values and a set of test values, return
dataset/ETHPy150Open tonioo/modoboa/modoboa/admin/models/domain_alias.py/DomainAlias.from_csv--crossover with--dataset/ETHPy150Open nltk/nltk/nltk/metrics/scores.py/precision