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)
app.connect("builder-inited", process_generate_options_custom_files)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
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: biolab/orange3
Commit Name: 988ca547322b7e67240865fa4c631cd292c89db5
Time: 2013-08-27
Author: anze.staric@gmail.com
File Name: Orange/canvas/document/schemeedit.py
Class Name: SchemeEditWidget
Method Name: setScheme
Project Name: ilastik/ilastik
Commit Name: d0b83a588cc8214ec15bcb917bce94fb41576045
Time: 2013-04-23
Author: bergs@janelia.hhmi.org
File Name: lazyflow/operator.py
Class Name: Operator
Method Name: _setupOutputs
Project Name: ilastik/ilastik
Commit Name: f3d0fccfbee01fecaeb9f05b8f443e5852a20195
Time: 2013-08-02
Author: bergs@janelia.hhmi.org
File Name: ilastik/applets/base/appletSerializer.py
Class Name: SerialSlot
Method Name: _deserialize