e928b77ac0860b6d37a256a5f2270e76ae269c7c,Orange/tests/test_table.py,CreateTableWithDomainAndTable,test_can_use_attributes_as_new_columns,#CreateTableWithDomainAndTable#,1639

Before Change


    def test_can_use_attributes_as_new_columns(self):
        a, _, _ = column_sizes(self.table)
        order = [random.randrange(a) for _ in self.domain.attributes]
        new_attributes = [self.domain.attributes[i] for i in order]
        new_domain = self.create_domain(
            new_attributes, new_attributes, new_attributes)
        new_table = data.Table.from_table(new_domain, self.table)

After Change



    def test_can_use_attributes_as_new_columns(self):
        a, _, _ = column_sizes(self.table)
        order = np.random.permutation(a)
        new_attributes = [self.domain.attributes[i] for i in order]
        new_domain = self.create_domain(
            new_attributes[:2], new_attributes[2:4], new_attributes[4:])
        new_table = data.Table.from_table(new_domain, self.table)

        self.assert_table_with_filter_matches(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 5

Instances


Project Name: biolab/orange3
Commit Name: e928b77ac0860b6d37a256a5f2270e76ae269c7c
Time: 2020-05-27
Author: kovacic.andreja@gmail.com
File Name: Orange/tests/test_table.py
Class Name: CreateTableWithDomainAndTable
Method Name: test_can_use_attributes_as_new_columns


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 32a9e66e0e45b1a6119fcb0e1ed5f74c0d5dab15
Time: 2020-05-28
Author: kz.takemoto@gmail.com
File Name: art/attacks/evasion/universal_simba_pixel.py
Class Name: Universal_SimBA_pixel
Method Name: generate


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 32a9e66e0e45b1a6119fcb0e1ed5f74c0d5dab15
Time: 2020-05-28
Author: kz.takemoto@gmail.com
File Name: art/attacks/evasion/simba_pixel.py
Class Name: SimBA_pixel
Method Name: generate


Project Name: biolab/orange3
Commit Name: e928b77ac0860b6d37a256a5f2270e76ae269c7c
Time: 2020-05-27
Author: kovacic.andreja@gmail.com
File Name: Orange/tests/test_table.py
Class Name: CreateTableWithDomainAndTable
Method Name: test_can_use_class_vars_as_new_columns


Project Name: biolab/orange3
Commit Name: e928b77ac0860b6d37a256a5f2270e76ae269c7c
Time: 2020-05-27
Author: kovacic.andreja@gmail.com
File Name: Orange/tests/test_table.py
Class Name: CreateTableWithDomainAndTable
Method Name: test_can_use_metas_as_new_columns