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


    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)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

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: apache/incubator-tvm
Commit Name: 4c13ae9d17d1709ed7a777ce1bb72212e8d2559d
Time: 2020-12-25
Author: masahi129@gmail.com
File Name: tests/python/frontend/pytorch/test_object_detection.py
Class Name:
Method Name: test_detection_models


Project Name: pantsbuild/pants
Commit Name: 27b837981e7e04cea66f5ffee974c271a350946d
Time: 2016-03-17
Author: nhoward@twopensource.com
File Name: tests/python/pants_test/backend/jvm/tasks/test_ivy_resolve_integration.py
Class Name: IvyResolveIntegrationTest
Method Name: test_java_compile_with_ivy_report