00e131977b4e2cbe134f8832f3fbac7940644586,beginner_source/hybrid_frontend/introduction_to_hybrid_frontend_tutorial.py,,,#,185
Before Change
//
url = "https://archive.ics.uci.edu/ml/machine-learning-databases/iris/iris.data" // url to data
filename = os .path.join("data", url.split("/")[-1])
// Download file if it doesn"t already exist
if not os .path.exists(filename):
os.makedirs("data")
print("Downloading...")
wget.download(url, filename)
print("Download complete!")
else:
After Change
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)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
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: pantsbuild/pants
Commit Name: c83f6f17866a3d114c174ba282e4dff2fd9996f7
Time: 2018-11-18
Author: wisechengyi@gmail.com
File Name: src/python/pants/cache/artifact.py
Class Name: TarballArtifact
Method Name: extract
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: hyperspy/hyperspy
Commit Name: 629167ee324a0b955ef46cd5a0cd7bb504ef8c44
Time: 2020-09-09
Author: tjof2@cam.ac.uk
File Name: hyperspy/misc/io/tools.py
Class Name:
Method Name: ensure_directory