00e131977b4e2cbe134f8832f3fbac7940644586,beginner_source/hybrid_frontend/introduction_to_hybrid_frontend_tutorial.py,,,#,185

Before Change


    wget.download(url, filename)
    print("Download complete!")
else:
    print("File exists, skipping download.")

// Print 10 random lines
with open(filename, "r") as datafile:
    lines = datafile.readlines()

After Change


//    and extract it in a ``data`` directory under the current directory.
//

filename = "data/iris.data"

// Print 10 random lines
try:
    datafile = open(filename, "r")
except IOError:
    print("Cannot open data file: {}. Have you downloaded it yet?".format(filename))
    exit()
lines = datafile.readlines()
// Last line in file is empty, we"ll deal with this later
lines = lines[:-1]
random.shuffle(lines)
for line in lines[:10]:
    print(line.strip())
datafile.close()

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Next, we"ll create our dataset, which is a list of lists containing each
// row of the data file (shape=(150,5)).
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: pytorch/tutorials
Commit Name: 00e131977b4e2cbe134f8832f3fbac7940644586
Time: 2018-08-29
Author: minkawhich@fb.com
File Name: beginner_source/hybrid_frontend/introduction_to_hybrid_frontend_tutorial.py
Class Name:
Method Name:


Project Name: sobhe/hazm
Commit Name: 44d3cc8e594304051b8fd20b9723a0c978068fe7
Time: 2013-12-26
Author: alireza.nournia@gmail.com
File Name: hazm/DependencyParser.py
Class Name: DependencyParser
Method Name: tagged_batch_parse


Project Name: SeanNaren/deepspeech.pytorch
Commit Name: 598d2b54295bdb2b741b1bcf1f794eabbdf3200b
Time: 2017-04-23
Author: seannaren@hotmail.com
File Name: data/ted.py
Class Name:
Method Name: main


Project Name: hanxiao/bert-as-service
Commit Name: dd3c13d51975d7ca569681dd19639473d19e8e85
Time: 2018-12-14
Author: hanhxiao@tencent.com
File Name: server/bert_serving/server/__init__.py
Class Name: BertWorker
Method Name: run