1fd297c5cc72ed18c5d9932b1f465824df75d48d,python-sdk/examples/export_pointclouds_as_obj.py,,,#,156

Before Change


    if not osp.isdir(pointcloud_dir):
        os.mkdir(pointcloud_dir)
    for scene_token in scene_tokens:
        scene = nusc.get("scene", scene_token)
        out_path = osp.join(pointcloud_dir, "%s.obj" % scene["name"])
        if not osp.exists(out_path):
            export_scene_pointcloud(nusc.explorer, out_path, scene["token"], channel="LIDAR_TOP")

After Change


    args = parser.parse_args()
    out_dir = args.out_dir
    scene_name = args.scene
    verbose = bool(args.verbose)

    // Create output folder
    if not out_dir == "" and not osp.isdir(out_dir):
        os.makedirs(out_dir)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: nutonomy/nuscenes-devkit
Commit Name: 1fd297c5cc72ed18c5d9932b1f465824df75d48d
Time: 2018-10-03
Author: holger@nutonomy.com
File Name: python-sdk/examples/export_pointclouds_as_obj.py
Class Name:
Method Name:


Project Name: RasaHQ/rasa
Commit Name: cc8a2647604cfc96138813c3081d5268af622c10
Time: 2020-10-08
Author: vladimir@rasa.com
File Name: rasa/shared/nlu/training_data/message.py
Class Name: Message
Method Name: is_core_message


Project Name: chakki-works/doccano
Commit Name: 617db50c8c95f5013f9f47c0171dd36de89125c5
Time: 2019-03-01
Author: clewolff@microsoft.com
File Name: app/app/settings.py
Class Name:
Method Name:


Project Name: home-assistant/home-assistant
Commit Name: b2a1204bc5fe8006a5343248e769f2e5194798ea
Time: 2019-05-13
Author: s.teunissen@gmail.com
File Name: homeassistant/components/homematic/binary_sensor.py
Class Name: HMBatterySensor
Method Name: is_on