<commit_before>""" Completers for miscellaneous command line apps

"""
import IPython.ipapi
ip = IPython.ipapi.get()
import os

def surfraw_completer(self,cmdline):
    """ Completer for 'surfraw'

    example::
      sr go<tob>  => sr google

    """
    compl = [l.split(None,1)[0] for l in os.popen('sr -elvi')]
    return compl


ip.set_hook('complete_command', surfraw_completer, str_key = 'sr')<commit_msg>fix typo in surfraw completer docstring<commit_after>""" Completers for miscellaneous command line apps

"""
import IPython.ipapi
ip = IPython.ipapi.get()
import os

def surfraw_completer(self,cmdline):
    """ Completer for 'surfraw'

    example::
      sr go<tab>  => sr google

    """
    compl = [l.split(None,1)[0] for l in os.popen('sr -elvi')]
    return compl


ip.set_hook('complete_command', surfraw_completer, str_key = 'sr')
{'fraction_non_alphanumeric': 0.13647058823529412, 'fraction_numerical': 0.004705882352941176, 'mean_word_length': 4.0058823529411764, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7228824', 'n_tokens_mistral': 320, 'n_tokens_neox': 303, 'n_words': 76}