e6c548e4ee92eeeec83d4936f307b2fbeed468ca,example/demo.py,,,#,23

Before Change


    try:
        audio_url = "http://www.externalharddrive.com/waves/animal/dolphin.wav"
        // linux
        if _platform == "linux" or _platform == "linux2":
            audiofile = "/home/%s/dolphin.wav" % getpass.getuser()
        // MAC OS X
        elif _platform == "darwin":
            audiofile = "/Users/%s/dolphin.wav" % getpass.getuser()
        // download audio
        urllib.request.urlretrieve(audio_url, audiofile)

        if os.path.isfile(audiofile):
            viz.audio(audiofile=audiofile)

After Change


        // video demo:
        // download video from http://media.w3.org/2010/05/sintel/trailer.ogv
        video_url = "http://media.w3.org/2010/05/sintel/trailer.ogv"
        videofile = os.path.join(tempfile.gettempdir(), "trailer.ogv")
        urllib.request.urlretrieve(video_url, videofile)

        if os.path.isfile(videofile):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: facebookresearch/visdom
Commit Name: e6c548e4ee92eeeec83d4936f307b2fbeed468ca
Time: 2019-03-25
Author: griffin@covar.com
File Name: example/demo.py
Class Name:
Method Name:


Project Name: GoogleCloudPlatform/cloudml-samples
Commit Name: d51209696066200aa728831ab3b467cb9c38ae9f
Time: 2018-08-28
Author: dcavazos@google.com
File Name: molecules/data-extractor.py
Class Name:
Method Name:


Project Name: GoogleCloudPlatform/cloudml-samples
Commit Name: c6685e84a170e0bf6a099d49d29435d2feaa2a94
Time: 2018-08-29
Author: dcavazos@google.com
File Name: molecules/data-extractor.py
Class Name:
Method Name: