dad615ae7a53e0b19cd6a3db11c3362fd58f99ad,doc/sphinxext/custom_autosummary_new_suffix.py,,setup,#Any#,64
Before Change
// Override process_generate_options added by sphinx.ext.autosummary
builder_inited_listeners = app.events.listeners["builder-inited"]
for listener_id, obj in builder_inited_listeners.items():
if (inspect.isfunction(obj)
and obj.__name__ == "process_generate_options"):
builder_inited_listeners[listener_id] = \
process_generate_options_custom_files
break
After Change
app.add_config_value(
"custom_autosummary_generated_dirname", "", None)
if sphinx.version_info[0] <= 2:
raise ModuleNotFoundError("Please install Sphinx >= 3.0 in order "
"to build docs")
// Find listener id for process_generate_options added by
process_generate_options_id = None
builder_inited_listeners = app.events.listeners["builder-inited"]
for event_listener in builder_inited_listeners:
func = event_listener.handler
if func.__name__ == "process_generate_options":
process_generate_options_id = event_listener.id
break
assert process_generate_options_id is not None
// Override process_generate_options added by sphinx.ext.autosummary
app.disconnect(process_generate_options_id)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
Project Name: scikit-learn/scikit-learn
Commit Name: dad615ae7a53e0b19cd6a3db11c3362fd58f99ad
Time: 2020-06-25
Author: thomasjpfan@gmail.com
File Name: doc/sphinxext/custom_autosummary_new_suffix.py
Class Name:
Method Name: setup
Project Name: onnx/onnx-coreml
Commit Name: 624d14284e35d6ce9c371c39f7e387002ccf4913
Time: 2018-08-25
Author: aseem.elec@gmail.com
File Name: onnx_coreml/_transformers.py
Class Name: ImageScalerRemover
Method Name: __call__
Project Name: deepmipt/DeepPavlov
Commit Name: c672738b39c8f739551da0d88991a2fedfba3e14
Time: 2018-10-04
Author: puleon@mail.ru
File Name: deeppavlov/models/ranking/metrics.py
Class Name:
Method Name: rank_response