745411a15f079db48029b001621940a7d8547875,utils.py,,read_hdf5,#Any#Any#Any#,133

Before Change


            out_cameras = []
            for camera_name in frame:
                camera = frame[camera_name]
                out_camera = dict(camera.attrs)
                out_camera["image"] = camera["image"].value
                out_camera["depth"] = camera["depth"].value
                out_cameras.append(out_camera)
                if save_png_dir is not None:
                    save_camera(out_camera["image"], out_camera["depth"], save_dir=save_png_dir, name=str(i).zfill(10))
            out_frame["cameras"] = out_cameras

After Change


        for i, frame_name in enumerate(file):
            out_frame = read_frame(file, frame_name, i, save_png_dir)
            if out_frame is None:
                log.error("Could not read frame, skipping")
            else:
                ret.append(out_frame)
                if overfit:
                    log.info("overfitting to %r, image// %d", filename, i)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: deepdrive/deepdrive
Commit Name: 745411a15f079db48029b001621940a7d8547875
Time: 2018-10-08
Author: cquiter@gmail.com
File Name: utils.py
Class Name:
Method Name: read_hdf5


Project Name: home-assistant/home-assistant
Commit Name: df4a9ea1da5638089830b3ed13473d2d8263f0cf
Time: 2016-08-18
Author: pascal.vizeli@syshack.ch
File Name: homeassistant/components/homematic.py
Class Name:
Method Name: _get_devices


Project Name: home-assistant/home-assistant
Commit Name: d16bc632da35a31957ba3ac399dab4769591af17
Time: 2017-03-07
Author: appzer@users.noreply.github.com
File Name: homeassistant/components/notify/pushsafer.py
Class Name: PushsaferNotificationService
Method Name: send_message