487c03af5cbe18777b0d3413aae572f29711d028,mkdocs/code_doc_autogen.py,,process_docstring,#Any#,300
Before Change
// Strip all remaining leading spaces.
lines = _docstring.split("\n")
_docstring = "\n".join([line.lstrip(" ") for line in lines])
// Reinject list blocks.
for marker, content in sections.items():
_docstring = _docstring.replace(marker, content)
After Change
yield l.lstrip(" ")
lines = _docstring.split("\n")
_docstring = "\n".join(strip_leading_spaces(lines))
// Reinject list blocks.
for marker, content in sections.items():
_docstring = _docstring.replace(marker, content)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 6
Instances
Project Name: uber/ludwig
Commit Name: 487c03af5cbe18777b0d3413aae572f29711d028
Time: 2019-12-23
Author: jimthompson5802@aol.com
File Name: mkdocs/code_doc_autogen.py
Class Name:
Method Name: process_docstring
Project Name: dmlc/gluon-cv
Commit Name: 960a107ad419d2690e352972950e76495deb1ad6
Time: 2019-03-18
Author: xinyu1.chen@intel.com
File Name: scripts/detection/ssd/eval_ssd.py
Class Name:
Method Name:
Project Name: hanxiao/bert-as-service
Commit Name: 129f293bc8e87ded5f3a4300b65e643b5e5ef9f0
Time: 2018-12-15
Author: hanhxiao@tencent.com
File Name: benchmark.py
Class Name:
Method Name:
Project Name: microsoft/nni
Commit Name: 8af731463df46f6c73c933bdc45ed9a4ecd4e422
Time: 2020-11-17
Author: Quanlu.Zhang@microsoft.com
File Name: nni/retiarii/codegen/pytorch.py
Class Name:
Method Name: model_to_pytorch_script