cd3704616759710b50062abf3b8e8041b4b7c95f,slm_lab/experiment/monitor.py,AEBDataSpace,__str__,#AEBDataSpace#,71

Before Change


        self.dual_data_proj = None

    def __str__(self):
        return str(self.data_proj)

    def __bool__(self):
        return bool(np.all(self.data_proj))

After Change


        x_yb_proj = self.aeb_space.a_eb_proj if self.dual_proj_axis == "a" else self.aeb_space.e_ab_proj
        for x, y_map_idx_list in enumerate(x_map):
            s += f"\n  {self.proj_axis}:{x} ["
            for x_idx, (y, xb_idx) in enumerate(y_map_idx_list):
                b = x_yb_proj[x][x_idx][1]
                data = self.data_proj[y][xb_idx]
                s += f"({self.dual_proj_axis}:{y},b:{b}) {data} "
            s += "]"
        s += "\n]"
        return s
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: kengz/SLM-Lab
Commit Name: cd3704616759710b50062abf3b8e8041b4b7c95f
Time: 2017-12-01
Author: kengzwl@gmail.com
File Name: slm_lab/experiment/monitor.py
Class Name: AEBDataSpace
Method Name: __str__


Project Name: tensorflow/datasets
Commit Name: 3be1154314111df8cd327a321fe3d68e7b661c68
Time: 2020-05-29
Author: charlespatel07@gmail.com
File Name: tensorflow_datasets/text/pg19.py
Class Name: Pg19
Method Name: _generate_examples


Project Name: AlexEMG/DeepLabCut
Commit Name: 857cb1f38abfc3f467b6a8e53ae54365e05fcff2
Time: 2019-02-23
Author: amathis@fas.harvard.edu
File Name: deeplabcut/generate_training_dataset/labeling_toolbox.py
Class Name: MainFrame
Method Name: browseDir