c2008cf2cc69513db82fd8539ed8f5d9f2d8f5b6,conf.py,,,#,22

Before Change


if os.access(".git", os.F_OK):
    p = subprocess.Popen(["git", "--no-pager", "log", "-1", "--pretty=%H"],
                         stdout=subprocess.PIPE)
    version = str(p.stdout.readlines()[0][:-1])
    p = subprocess.Popen(["git", "--no-pager", "log", "-1", "--pretty=%ai"],
                         stdout=subprocess.PIPE)
    release = str(p.stdout.readlines()[0][:-1])

After Change


    version = subprocess.Popen(
        ["git", "--no-pager", "log", "-1", "--pretty=%H"],
        stdout=subprocess.PIPE).communicate()[0][:-1].decode("utf-8")
    release = subprocess.Popen(
        ["git", "--no-pager", "log", "-1", "--pretty=%ai"],
        stdout=subprocess.PIPE).communicate()[0][:-1].decode("utf-8")
else:
    version = "Unknown"
    release = version
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: tkamishima/mlmpy
Commit Name: c2008cf2cc69513db82fd8539ed8f5d9f2d8f5b6
Time: 2017-01-06
Author: mail@kamishima.net
File Name: conf.py
Class Name:
Method Name:


Project Name: regel/loudml
Commit Name: bbc70825c6042af761aa816bdf5be153f8e7597c
Time: 2018-08-27
Author: christophe@redmintnetwork.fr
File Name: loudml/loudml/license.py
Class Name: License
Method Name: load


Project Name: mynlp/ccg2lambda
Commit Name: b5c5ee14adc3d343ceb1f7510027b8965e1f9af4
Time: 2017-05-31
Author: pascual@nii.ac.jp
File Name: scripts/semantic_tools.py
Class Name:
Method Name: prove_statements