72cb7a23af6fbe31367cbfcbbe13994455708593,doc/sphinxext/numpy_ext/docscrape.py,NumpyDocString,_parse,#NumpyDocString#,288
Before Change
for (section, content) in self._read_sections():
if not section.startswith(".." ):
section = " " .join([s.capitalize()
for s in section.split(" " )])
if section in ("Parameters" , "Attributes" , "Methods" ,
"Returns" , "Raises" , "Warns" ) :
self[section] = self._parse_param_list(content)
elif section.startswith(".. index::" ):
After Change
self._parse_summary()
sections = list(self._read_sections())
section_names = set([section for section, content in sections])
has_returns = "Returns" in section_names
has_yields = "Yields" in section_names
if has_returns and has_yields:
msg = "Docstring contains both a Returns and Yields section."
raise ValueError (msg)
for (section, content) in sections:
if not section.startswith (".." ) :
section = (s.capitalize() for s in section.split(" " ))
section = " " .join(section)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: astroML/astroML
Commit Name: 72cb7a23af6fbe31367cbfcbbe13994455708593
Time: 2019-01-02
Author: bsipocz@gmail.com
File Name: doc/sphinxext/numpy_ext/docscrape.py
Class Name: NumpyDocString
Method Name: _parse
Project Name: MolSSI/QCEngine
Commit Name: 952e63ef222188ff04be084af2362a39df8b8e53
Time: 2019-09-30
Author: malorian@me.com
File Name: qcengine/programs/mopac.py
Class Name: MopacHarness
Method Name: build_input
Project Name: mozilla/mozregression
Commit Name: 6c74272aff08e0f67ca680b31299901d4e76963c
Time: 2015-10-18
Author: j.parkouss@gmail.com
File Name: mozregression/fetch_configs.py
Class Name: CommonConfig
Method Name: set_build_type