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)
        self.assert_table_with_filter_matches(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

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: reinforceio/tensorforce
Commit Name: 1c7c76e3ac8d1c0b10a5f91efcf56d804d8bca26
Time: 2017-07-25
Author: aok25@cl.cam.ac.uk
File Name: tensorforce/agents/agent.py
Class Name: Agent
Method Name: act