c68815a01e04ad21d0128b53235ab1bd915b6c6a,benchmarking/platforms/ios/ios_platform.py,IOSPlatform,preprocess,#IOSPlatform#,34

Before Change


        assert os.path.isfile(programs["bundle_id"]), "bundle_id is not a file"

        // find out the bundle id
        with open(programs["bundle_id"], "r") as f:
            bundle_id = f.read().strip()
            self.util.setBundleId(bundle_id)
        del programs["bundle_id"]
        // find the first zipped app file
        assert "program" in programs, "program is not specified"
        program = programs["program"]

After Change



        processRun(["unzip", "-d", self.tempdir, program])
        // get the app name
        app_dir = os.path.join(self.tempdir, "Payload")
        dirs = [f for f in os.listdir(app_dir)
                if os.path.isdir(os.path.join(app_dir, f))]
        assert len(dirs) == 1, "Only one app in the Payload directory"
        app_name = dirs[0]
        self.app = os.path.join(app_dir, app_name)
        del programs["program"]

        bundle_id, _ = processRun(["osascript", "-e",
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: facebook/FAI-PEP
Commit Name: c68815a01e04ad21d0128b53235ab1bd915b6c6a
Time: 2018-09-07
Author: sf_wind@hotmail.com
File Name: benchmarking/platforms/ios/ios_platform.py
Class Name: IOSPlatform
Method Name: preprocess


Project Name: riga/tfdeploy
Commit Name: 2984beef3784e514a7b8512ab0e658ad01e86564
Time: 2016-03-11
Author: marcelrieger@me.com
File Name: setup.py
Class Name:
Method Name:


Project Name: arviz-devs/arviz
Commit Name: 0965a4400a8382fd03b3258c4908d99ad55107a5
Time: 2018-09-21
Author: ColCarroll@users.noreply.github.com
File Name: setup.py
Class Name:
Method Name: