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])

After Change


        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)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

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_creates_table_with_given_domain_and_row_filter


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: catalyst-team/catalyst
Commit Name: 8364f669c3a79df0e40840cd169a82abe9716972
Time: 2019-06-05
Author: scitator@gmail.com
File Name: catalyst/rl/core/sampler.py
Class Name: Sampler
Method Name: _get_seed