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
for c in self.completers:
try:
matched = c.get_completions(doc, CompleteEvent(completion_requested=True))
log(code)
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
// No match
return "", []
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
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: gooofy/zamia-speech
Commit Name: 9f376975884e7a0d7a553dcdfa1ab54b66ddbb1f
Time: 2018-12-10
Author: guenter@zamia.org
File Name: speech_editor.py
Class Name:
Method Name:
Project Name: soft-matter/trackpy
Commit Name: b1316a19bc2c0ad8647b523cafcb0516754869f8
Time: 2012-09-17
Author: tcaswell@gmail.com
File Name: trackpy/tracking.py
Class Name: Hash_table
Method Name: get_region