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: 3

Non-data size: 6

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: 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