34bae27ac7d3c39335a2b8c7d4cd4efba56aa398,rllib/policy/sample_batch.py,MultiAgentBatch,total,#MultiAgentBatch#,331

Before Change


        Returns:
            int: The sum of counts over all policy batches.
        
        ct = 0
        for batch in self.policy_batches.values():
            ct += batch.count
        return ct

    @DeveloperAPI
    def compress(self, bulk=False, columns=frozenset(["obs", "new_obs"])):
        Compresses each policy batch.

After Change


    // Deprecated.
    def total(self):
        deprecation_warning("batch.total()", "batch.agent_steps()")
        return self.agent_steps()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 8

Instances


Project Name: ray-project/ray
Commit Name: 34bae27ac7d3c39335a2b8c7d4cd4efba56aa398
Time: 2020-06-12
Author: ekhliang@gmail.com
File Name: rllib/policy/sample_batch.py
Class Name: MultiAgentBatch
Method Name: total


Project Name: eth-cscs/reframe
Commit Name: ba058676b504f7456f6e4015e9697b179f791336
Time: 2018-03-08
Author: samuel.omlin@cscs.ch
File Name: reframe/frontend/statistics.py
Class Name: TestStats
Method Name: num_cases


Project Name: home-assistant/home-assistant
Commit Name: 97f62cfb789733693c537d2ad68bbf96260a1c86
Time: 2017-06-08
Author: that@teagantotally.rocks
File Name: homeassistant/components/image_processing/opencv.py
Class Name: OpenCVImageProcessor
Method Name: state


Project Name: eth-cscs/reframe
Commit Name: ba058676b504f7456f6e4015e9697b179f791336
Time: 2018-03-08
Author: samuel.omlin@cscs.ch
File Name: reframe/frontend/statistics.py
Class Name: TestStats
Method Name: num_failures