original_docstring: Loads variable substitutions from files and applies them to the
      patterns. Makes sure all patterns compile to regular expressions.
      
docstring: Loads variable substitutions from files and applies them to the
  patterns. Makes sure all patterns compile to regular expressions.
docstring_tokens: Loads variable substitutions from files and applies them to the patterns . Makes sure all patterns compile to regular expressions .
code: def compile():
      """Loads variable substitutions from files and applies them to the
      patterns. Makes sure all patterns compile to regular expressions.
      """
      for var, filename in VAR_FILES.items():
          tokens = codecs.open(os.path.join("serapis/corpus", filename), 'r', 'utf-8').read().splitlines()
          VARS[var] = r"\b({})\b ?".format("|".join(tokens))
  
      # Prepare patterns
      for key, pattern in patterns.items():
          patterns[key] = multiple_replace(pattern, VARS, re_style=True)
  
      return patterns
code_tokens: def compile ( ) : for var , filename in VAR_FILES . items ( ) : tokens = codecs . open ( os . path . join ( "serapis/corpus" , filename ) , 'r' , 'utf-8' ) . read ( ) . splitlines ( ) VARS [ var ] = r"\b({})\b ?" . format ( "|" . join ( tokens ) ) for key , pattern in patterns . items ( ) : patterns [ key ] = multiple_replace ( pattern , VARS , re_style = True ) return patterns
short_docstring: Loads variable substitutions from files and applies them to the
  patterns.
short_docstring_tokens: Loads variable substitutions from files and applies them to the patterns .
comment: """Loads variable substitutions from files and applies them to the
      patterns. Makes sure all patterns compile to regular expressions.
      """$SEP$# Prepare patterns