e928b77ac0860b6d37a256a5f2270e76ae269c7c,Orange/tests/test_table.py,CreateTableWithDomainAndTable,test_can_use_combination_of_all_as_new_columns,#CreateTableWithDomainAndTable#,1670

Before Change



    def test_can_use_combination_of_all_as_new_columns(self):
        a, c, m = column_sizes(self.table)
        order = ([random.randrange(a) for _ in self.domain.attributes] +
                 [random.randrange(a, a + c) for _ in self.domain.class_vars] +
                 [random.randrange(-m + 1, 0) for _ in self.domain.metas])
        random.shuffle(order)
        vars = list(self.domain.variables) + list(self.domain.metas[::-1])
        vars = [vars[i] for i in order]

After Change



    def test_can_use_combination_of_all_as_new_columns(self):
        a, c, m = column_sizes(self.table)
        order = (list(range(a+c)) + list(range(-m+1, 0)))
        random. shuffle(order)
        vars = list(self.domain.variables) + list(self.domain.metas[::-1])
        atrs = [vars[order[i]] for i in range(a)]
        cv = [vars[order[i]] for i in range(a, a+c)]
        metas = [vars[order[i]] for i in range(a+c, a+c+m-1)]

        new_domain = self.create_domain(atrs, cv, metas)
        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: 8

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_combination_of_all_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_creates_table_with_given_domain_and_row_filter