class_docstr: Special lexer for MySQL.
class_docstr_tok: ["Special","lexer","for","MySQL","."]
code: def analyse_text(text):
      rating = 0
      name_between_backtick_count = len(
          name_between_backtick_re.findall(text)
      )
      name_between_bracket_count = len(
          name_between_bracket_re.findall(text)
      )
      # Same logic as above in the TSQL analysis
      dialect_name_count = (
          name_between_backtick_count + name_between_bracket_count
      )
      if (
          dialect_name_count >= 1
          and name_between_backtick_count
          >= 2 * name_between_bracket_count
      ):
          # Found at least twice as many `name` as [name].
          rating += 0.5
      elif name_between_backtick_count > name_between_bracket_count:
          rating += 0.2
      elif name_between_backtick_count > 0:
          rating += 0.1
      return rating
  
imports: import re
  from pygments.lexer import Lexer, RegexLexer, do_insertions, bygroups, words
  from pygments.token import Punctuation, Whitespace, Text, Comment, Operator, Keyword, Name, String, Number, Generic
  from pygments.lexers import get_lexer_by_name, ClassNotFound
  from pygments.util import iteritems
  from pygments.lexers._postgres_builtins import KEYWORDS, DATATYPES, PSEUDO_TYPES, PLPGSQL_KEYWORDS
  from pygments.lexers import _tsql_builtins
label_desc: Use image node_id 1 for calling the MySqlLexer obj's underlying member method code with example usage: obj.analyse_text(text) and returns: rating