class_docstr: For GAP console sessions. Modeled after JuliaConsoleLexer.
  
  .. versionadded:: 2.14
class_docstr_tok: ["For","GAP","console","sessions",".","Modeled","after","JuliaConsoleLexer",".","..","versionadded",":",":","2.14"]
code: def analyse_text(text):
      # GAP prompts are a dead give away, although hypothetical;y a
      # file in another language could be trying to compare a variable
      # "gap" as in "gap> 0.1". But that this should happen at the
      # start of a line seems unlikely...
      if re.search(r"^gap> ", text):
          return 0.9
      else:
          return 0.0
  
file_path: catboost/contrib/python/Pygments/py3/pygments/lexers/algebra.py
imports: import re
  from pygments.lexer import Lexer, RegexLexer, bygroups, do_insertions, words
  from pygments.token import Text, Comment, Operator, Keyword, Name, String, Number, Punctuation, Generic, Whitespace
label_desc: Use image node_id 2 for calling the GAPConsoleLexer obj's underlying member method code with example usage: obj.analyse_text(text) and returns: int, int