class_docstr: For GAP source code.
  
  .. versionadded:: 2.0
class_docstr_tok: ["For","GAP","source","code",".","..","versionadded",":",":","2.0"]
code: def analyse_text(text):
      score = 0.0
  
      # Declaration part
      if re.search(
          r"(InstallTrueMethod|Declare(Attribute|Category|Filter|Operation"
          + r"|GlobalFunction|Synonym|SynonymAttr|Property))",
          text,
      ):
          score += 0.7
  
      # Implementation part
      if re.search(
          r"(DeclareRepresentation|Install(GlobalFunction|Method|"
          + r"ImmediateMethod|OtherMethod)|New(Family|Type)|Objectify)",
          text,
      ):
          score += 0.7
  
      return min(score, 1.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 1 for calling the GAPLexer obj's underlying member method code with example usage: obj.analyse_text(text) and returns: min