76a3a0f60c1f837ed75e5783b49c241490920edd,plotnine/_version.py,,git_pieces_from_vcs,#Any#Any#Any#Any#,192
Before Change
expanded, and _version.py hasn"t already been rewritten with a short
version string, meaning we"re inside a checked out source tree.
if not os.path.exists(os.path.join(root, ".git")):
if verbose:
print("no .git in %s" % root)
raise NotThisMethod("no .git directory")
GITS = ["git"]
if sys.platform == "win32":
GITS = ["git.cmd", "git.exe"]
// if there is a tag matching tag_prefix, this yields TAG-NUM-gHEX[-dirty]
After Change
pieces["distance"] = int(count_out) // total number of commits
// commit date: see ISO-8601 comment in git_versions_from_keywords()
date = run_command(GITS, ["show", "-s", "--format=%ci", "HEAD"],
cwd=root)[0].strip()
pieces["date"] = date.strip().replace(" ", "T", 1).replace(" ", "", 1)
return pieces
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: has2k1/plotnine
Commit Name: 76a3a0f60c1f837ed75e5783b49c241490920edd
Time: 2017-01-28
Author: has2k1@gmail.com
File Name: plotnine/_version.py
Class Name:
Method Name: git_pieces_from_vcs
Project Name: OpenNMT/OpenNMT-py
Commit Name: a904430292728a20adb86a9aa3601729c22e7434
Time: 2017-11-11
Author: dengyuntian@gmail.com
File Name: onmt/IO.py
Class Name: ONMTDataset
Method Name: _read_img_file
Project Name: markovmodel/PyEMMA
Commit Name: f0697e182f4ddb4bbbf853af9328ad61e4ecef02
Time: 2017-11-06
Author: m.scherer@fu-berlin.de
File Name: pyemma/_version.py
Class Name:
Method Name: git_pieces_from_vcs