d6f191b463be921b9ec5fbaebf08677700540d51,dataflow/encryption-keys/noxfile.py,,readmegen,#Any#Any#,142

Before Change


    (Re-)generates the readme for a sample.
    session.install("jinja2", "pyyaml")

    if os.path.exists(os.path.join(path, "requirements.txt")):
        session.install("-r", os.path.join(path, "requirements.txt"))

    in_file = os.path.join(path, "README.rst.in")
    session.run(
        "python", _get_repo_root() + "/scripts/readme-gen/readme_gen.py", in_file
    )

After Change


def readmegen(session, path):
    (Re-)generates the readme for a sample.
    session.install("jinja2", "pyyaml")
    dir_ = os.path.dirname(path)

    if os.path.exists(os.path.join(dir_, "requirements.txt")):
        session.install("-r", os.path.join(dir_, "requirements.txt"))

    in_file = os.path.join(dir_, "README.rst.in")
    session.run(
        "python", _get_repo_root() + "/scripts/readme-gen/readme_gen.py", in_file
    )
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 13

Instances


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: d6f191b463be921b9ec5fbaebf08677700540d51
Time: 2020-05-12
Author: tmatsuo@google.com
File Name: dataflow/encryption-keys/noxfile.py
Class Name:
Method Name: readmegen


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: d6f191b463be921b9ec5fbaebf08677700540d51
Time: 2020-05-12
Author: tmatsuo@google.com
File Name: appengine/flexible/memcache/noxfile.py
Class Name:
Method Name: readmegen


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: d6f191b463be921b9ec5fbaebf08677700540d51
Time: 2020-05-12
Author: tmatsuo@google.com
File Name: ml_engine/online_prediction/noxfile.py
Class Name:
Method Name: readmegen


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: d6f191b463be921b9ec5fbaebf08677700540d51
Time: 2020-05-12
Author: tmatsuo@google.com
File Name: pubsub/streaming-analytics/noxfile.py
Class Name:
Method Name: readmegen


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 32777eb29a276cd24c8ed8deb9cb8ff7ab91b71d
Time: 2020-05-05
Author: seth@sethvargo.com
File Name: noxfile-template.py
Class Name:
Method Name: readmegen


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: d6f191b463be921b9ec5fbaebf08677700540d51
Time: 2020-05-12
Author: tmatsuo@google.com
File Name: dataflow/flex-templates/streaming_beam/noxfile.py
Class Name:
Method Name: readmegen


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: d6f191b463be921b9ec5fbaebf08677700540d51
Time: 2020-05-12
Author: tmatsuo@google.com
File Name: dataflow/encryption-keys/noxfile.py
Class Name:
Method Name: readmegen