48c26c0eb5d972e965ff678a9014ca0004e6fa20,sos/jupyter/completer.py,SoS_Completer,complete_text,#SoS_Completer#Any#Any#,107

Before Change


        for idx,c in enumerate(self.completers):
            try:
                event = CompleteEvent()
                matched.extend(list(c.get_completions(doc, event)))
                if matched:
                    return code[matched[0].start_position:], [x.text for x in matched]
            except Exception as e:
                pass

After Change


                log(matched)
                if matched is None:
                    continue
                elif isinstance(matched, tuple):
                    if matched[1]:
                        return matched
                else:
                    // iterator ...
                    matched = list(matched)
                    if matched:
                        return code[matched[0].start_position:], [x.text for x in matched]
            except Exception as e:
                raise
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: vatlab/SoS
Commit Name: 48c26c0eb5d972e965ff678a9014ca0004e6fa20
Time: 2016-12-03
Author: ben.bog@gmail.com
File Name: sos/jupyter/completer.py
Class Name: SoS_Completer
Method Name: complete_text


Project Name: tensorflow/tensorboard
Commit Name: 960273ee8fc5d4c660beac7ec0882216424ed8f9
Time: 2020-02-12
Author: cais@google.com
File Name: tensorboard/plugins/debugger_v2/debug_data_multiplexer.py
Class Name: DebuggerV2EventMultiplexer
Method Name: Alerts


Project Name: pantsbuild/pants
Commit Name: d169a350686b11a3025cc6b4e10d90fc1c118bbf
Time: 2019-10-10
Author: 1305167+cosmicexplorer@users.noreply.github.com
File Name: src/python/pants/backend/native/tasks/link_shared_libraries.py
Class Name: LinkSharedLibraries
Method Name: _make_link_request