cdbe12c9ecc86fb54e6310d6aeab98edc6eba879,pyntcloud/plot/points.py,,plot_PyntCloud,#,6

Before Change


    conf["camera_position"] = (cloud.xyz.max(0) + abs(cloud.xyz.max(0))).tolist()
    conf["look_at"] = cloud.xyz.mean(0).tolist()

    with open("{}.json".format(output_name), "w") as json_out_file:
        json.dump(conf, json_out_file)

    cloud.to_file("{}.ply".format(output_name))

    return IFrame("{}.html".format(output_name), width=width, height=height)

After Change


            elif "CAMERA_POSITION_PLACEHOLDER" in line:
                line = line.replace("CAMERA_POSITION_PLACEHOLDER", "{}".format(camera_position))

            elif "LOOK_AT_PLACEHOLDER" in line:
                line = line.replace("LOOK_AT_PLACEHOLDER", "{}".format(look_at))

            out.write(line)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: daavoo/pyntcloud
Commit Name: cdbe12c9ecc86fb54e6310d6aeab98edc6eba879
Time: 2017-05-02
Author: daviddelaiglesiacastro@gmail.com
File Name: pyntcloud/plot/points.py
Class Name:
Method Name: plot_PyntCloud


Project Name: ufoym/deepo
Commit Name: 6dae167d1ae86dbc6c9da47447fc15b411d3aa5a
Time: 2017-12-03
Author: a@ufoym.com
File Name: scripts/make-gen-docker.py
Class Name:
Method Name: generate


Project Name: OpenNMT/OpenNMT-py
Commit Name: 35cf4f0ae774a4aa500318879a1a4d53408ac129
Time: 2020-06-02
Author: plison@nr.no
File Name: onmt/translate/translation.py
Class Name: TranslationBuilder
Method Name: _build_target_tokens