def find_completions(self, view, prefix):
    self.load_completions(_corona_utils.GetSetting("corona_sdk_use_docset", "public"))

    completion_target = self.current_word(view)

    # Because we adjust the prefix to make completions with periods in them work better we may need to
    # trim the part before the period from the returned string (or it will appear to be doubled)
    completion_adjustment = "" if completion_target not in "." else completion_target.partition('.')[0] + '.'

    # _corona_utils.debug('prefix: ', prefix, 'completion_target: ', completion_target, "; completion_adjustment: ", completion_adjustment, "; corona_sdk_complete_periods: ", _corona_utils.GetSetting("corona_sdk_complete_periods", True) )

    self.setupFuzzyMatch(completion_target)

    # Sample:
    #   { "trigger": "audio.stopWithDelay()", "contents": "audio.stopWithDelay( ${1:duration}, ${2:[, options ]} )"},
    #   "audio.totalChannels ",

    # This is horrible on a variety of levels but is brought upon us by the fact that
    # ST completion files contain an array that is a mixture of strings and dicts
    comps = []
    for c in self._completions['completions']:
      trigger = ""
      contents = ""
      if isinstance(c, dict):
        if self.fuzzyMatchString(c['trigger'], self._use_fuzzy_completion):
          trigger = c['trigger']
          contents = c['contents']
      elif is_string_instance(c):
        if self.fuzzyMatchString(c, self._use_fuzzy_completion):
          _corona_utils.debug("String match: ", c)
          trigger = c
          contents = c

      if trigger is not "":
        if self._strip_white_space and contents is not "":
           contents = self._findWhiteSpace.sub("\\1", contents)
        # If we do the completion adjustment on completions that aren't functions
        # ST somehow erases the text before the period from the document leaving
        # just the piece after it (it makes no sense).  This fixes that but will
        # almost certainly have to be changed when ST's behavior changes.
        if "(" in contents:
          comps.append((trigger, contents.replace(completion_adjustment, '')))
        else:
          comps.append((trigger, contents))

    # _corona_utils.debug("extract_completions: ", view.extract_completions(completion_target))

    # Add textual completions from the document
    for c in view.extract_completions(completion_target):
      comps.append((c, c))

    # Reorganize into a list
    comps = list(set(comps))
    comps.sort()

    # _corona_utils.debug("comps: ", comps)

    return comps
dataset/ETHPy150Open coronalabs/CoronaSDK-SublimeText/completions.py/CoronaLabs.find_completions/swapped operands of `not in`