5041068ea241f946217690aee63942261911b42d,tasks.py,,build_docs,#Any#,33
Before Change
"url=./master/index.html\\" />\" > _build/html/index.html")
for ref in refs:
c.run("echo _build/html/{}/index.html ".format(ref)
+ ">> _build/html/versions.html")
c.run("git checkout gh-pages")
After Change
all_refs = c.run("git tag --list", hide="out").stdout.split("\n")
all_refs = [tag for tag in all_refs if tag]
all_refs = ALLOWED_BRANCHES + sorted(all_refs)
if head_name == "master":
refs = [r for r in all_refs] // copy all_refs
else:
refs = [head_name]
with c.cd("./docs/"):
c.run("mkdir -p _static _templates")
c.run("make clean", hide="out")
build_dirs = []
for ref in refs:
c.run("git checkout " + ref)
b_dir = "_build/html/{}".format(ref)
build_dirs += b_dir
version_str = ref
release_str = ref
c.run("QUCUMBER_VERSION={}; ".format(version_str)
+ "QUCUMBER_RELEASE={}; ".format(release_str)
+ "sphinx-build -b html ./ {} -aT".format(b_dir))
if head_name == "master":
c.run("touch _build/html/.nojekyll")
c.run("mv _templates/index.html _build/html/index.html")
with open("_build/html/versions.html", "wb") as f:
f.write(versions_template.render(refs=refs))
c.run("git checkout gh-pages")
dir_contents = os.listdir()
dir_contents = ((set(dir_contents) - set(all_refs))
In pattern: SUPERPATTERN
Frequency: 6
Non-data size: 6
Instances
Project Name: PIQuIL/QuCumber
Commit Name: 5041068ea241f946217690aee63942261911b42d
Time: 2018-08-07
Author: emerali@users.noreply.github.com
File Name: tasks.py
Class Name:
Method Name: build_docs
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: c2f175a20b4e65eafbbeb37aa193d6f7da870b71
Time: 2017-05-17
Author: valentina.zantedeschi@ibm.com
File Name: attack_on_mnist.py
Class Name:
Method Name:
Project Name: NeuromorphicProcessorProject/snn_toolbox
Commit Name: d933ed8ebfbfd1dbdc256e4b39c10d184c5f1abf
Time: 2016-06-30
Author: bodo.rueckauer@gmail.com
File Name: snntoolbox/target_simulators/INI_target_sim.py
Class Name: SNN_compiled
Method Name: run
Project Name: bokeh/bokeh
Commit Name: beb173d604c9f975b7eed1c6e8e1152a3d4aab12
Time: 2017-04-25
Author: lcanavan@continuum.io
File Name: bokeh/io.py
Class Name:
Method Name: export
Project Name: prody/ProDy
Commit Name: e93f4d4dcd70fc3eaf87779fc9f0b34f98e04ac8
Time: 2012-10-17
Author: lordnapi@gmail.com
File Name: lib/prody/utilities/pathtools.py
Class Name:
Method Name: gunzip
Project Name: mindsdb/mindsdb
Commit Name: 7d9422d82cb90c79ff40b19bfe6a843f2427cea3
Time: 2020-11-23
Author: george@cerebralab.com
File Name: distributions/linux/rename_installers.py
Class Name:
Method Name: