<s> from __future__ import unicode_literals <EOL> from django . db import models , migrations <EOL> def add_pearson_similarity ( apps , schema_editor ) : <EOL> Similarity = apps . get_model ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> pearson_metric = Similarity ( similarity_metric = "<STR_LIT>" , <EOL> transformation = "<STR_LIT>" , <EOL> metric_ontology_iri = "<STR_LIT>" , <EOL> transformation_ontology_iri = "<STR_LIT>" ) <EOL> pearson_metric . save ( ) <EOL> class Migration ( migrations . Migration ) : <EOL> dependencies = [ <EOL> ( '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ] <EOL> operations = [ <EOL> migrations . CreateModel ( <EOL> name = '<STR_LIT>' , <EOL> fields = [ <EOL> ( '<STR_LIT:id>' , models . AutoField ( verbose_name = '<STR_LIT>' , serialize = False , auto_created = True , primary_key = True ) ) , <EOL> ( '<STR_LIT>' , models . FloatField ( help_text = b'<STR_LIT>' , verbose_name = b'<STR_LIT>' ) ) , <EOL> ( '<STR_LIT>' , models . ForeignKey ( related_name = '<STR_LIT>' , to = '<STR_LIT>' ) ) , <EOL> ( '<STR_LIT>' , models . ForeignKey ( related_name = '<STR_LIT>' , to = '<STR_LIT>' ) ) , <EOL> ] , <EOL> options = { <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> } , <EOL> bases = ( models . Model , ) , <EOL> ) , <EOL> migrations . CreateModel ( <EOL> name = '<STR_LIT>' , <EOL> fields = [ <EOL> ( '<STR_LIT:id>' , models . AutoField ( verbose_name = '<STR_LIT>' , serialize = False , auto_created = True , primary_key = True ) ) , <EOL> ( '<STR_LIT>' , models . CharField ( help_text = b'<STR_LIT>' , max_length = <NUM_LIT:200> , verbose_name = b'<STR_LIT>' , db_index = True ) ) , <EOL> ( '<STR_LIT>' , models . CharField ( help_text = b'<STR_LIT>' , max_length = <NUM_LIT:200> , verbose_name = b'<STR_LIT>' , db_index = True , blank = True ) ) , <EOL> ( '<STR_LIT>' , models . URLField ( help_text = b'<STR_LIT>' , verbose_name = b'<STR_LIT>' , db_index = True , blank = True ) ) , <EOL> ( '<STR_LIT>' , models . URLField ( help_text = b'<STR_LIT>' , verbose_name = b'<STR_LIT>' , db_index = True , blank = True ) ) , <EOL> ] , <EOL> options = { <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> } , <EOL> bases = ( models . Model , ) , <EOL> ) , <EOL> migrations . AddField ( <EOL> model_name = '<STR_LIT>' , <EOL> name = '<STR_LIT>' , <EOL> field = models . ForeignKey ( to = '<STR_LIT>' ) , <EOL> preserve_default = True , <EOL> ) , <EOL> migrations . AlterUniqueTogether ( <EOL> name = '<STR_LIT>' , <EOL> unique_together = set ( [ ( '<STR_LIT>' , '<STR_LIT>' ) ] ) , <EOL> ) , <EOL> migrations . RunPython ( add_pearson_similarity ) , <EOL> ] </s>
