cb1dce916aaa1e3057e1fb962b4be4f33119418f,app/api/tests/test_api.py,TestFilter,setUpTestData,#,659

Before Change


        cls.label2 = mommy.make("Label", project=cls.main_project)
        doc1 = mommy.make("Document", project=cls.main_project)
        doc2 = mommy.make("Document", project=cls.main_project)
        doc3 = mommy.make("Document", project=cls.main_project)
        mommy.make("SequenceAnnotation", document=doc1, user=project_member, label=cls.label1)
        mommy.make("SequenceAnnotation", document=doc2, user=project_member, label=cls.label2)
        cls.url = reverse(viewname="doc_list", args=[cls.main_project.id])
        cls.params = {"seq_annotations__label__id": cls.label1.id}

After Change


        cls.label2 = mommy.make("Label", project=cls.main_project)
        doc1 = mommy.make("Document", project=cls.main_project)
        doc2 = mommy.make("Document", project=cls.main_project)
        mommy.make("Document", project=cls.main_project)
        mommy.make("SequenceAnnotation", document=doc1, user=project_member, label=cls.label1)
        mommy.make("SequenceAnnotation", document=doc2, user=project_member, label=cls.label2)
        cls.url = reverse(viewname="doc_list", args=[cls.main_project.id])
        cls.params = {"seq_annotations__label__id": cls.label1.id}
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 3

Instances


Project Name: chakki-works/doccano
Commit Name: cb1dce916aaa1e3057e1fb962b4be4f33119418f
Time: 2019-06-24
Author: light.tree.1.13@gmail.com
File Name: app/api/tests/test_api.py
Class Name: TestFilter
Method Name: setUpTestData


Project Name: chakki-works/doccano
Commit Name: 35c5ffad7244cd0b4601b9b10998274ff85c10f5
Time: 2019-09-03
Author: mkm248@cornell.edu
File Name: app/api/tests/test_api.py
Class Name: TestRoleMappingListAPI
Method Name: setUpTestData


Project Name: PacktPublishing/Deep-Reinforcement-Learning-Hands-On
Commit Name: a868c6dd92867f17a5b1c56299d445b0a115dcac
Time: 2018-02-09
Author: max.lapan@gmail.com
File Name: ch15/01_train_a2c.py
Class Name:
Method Name:


Project Name: PacktPublishing/Deep-Reinforcement-Learning-Hands-On
Commit Name: b8650875b58921f5b9bf6e5b091ff51d807cac3e
Time: 2018-02-09
Author: max.lapan@gmail.com
File Name: ch15/01_train_a2c.py
Class Name:
Method Name:


Project Name: chakki-works/doccano
Commit Name: cb1dce916aaa1e3057e1fb962b4be4f33119418f
Time: 2019-06-24
Author: light.tree.1.13@gmail.com
File Name: app/api/tests/test_api.py
Class Name: TestProjectDetailAPI
Method Name: setUpTestData


Project Name: chakki-works/doccano
Commit Name: cb1dce916aaa1e3057e1fb962b4be4f33119418f
Time: 2019-06-24
Author: light.tree.1.13@gmail.com
File Name: app/api/tests/test_api.py
Class Name: TestStatisticsAPI
Method Name: setUpTestData