class_docstr: Lexer for .desktop files.
  
  .. versionadded:: 2.16
class_docstr_tok: ["Lexer","for",".desktop","files",".","..","versionadded",":",":","2.16"]
code: def analyse_text(text):
      if text.startswith("[Desktop Entry]"):
          return 1.0
      if (
          re.search(
              r"^\[Desktop Entry\][ \t]*$", text[:500], re.MULTILINE
          )
          is not None
      ):
          return 0.9
      return 0.0
  
imports: import re
  from pygments.lexer import ExtendedRegexLexer, RegexLexer, default, words, bygroups, include, using, line_re
  from pygments.token import Text, Comment, Operator, Keyword, Name, String, Number, Punctuation, Whitespace, Literal, Error, Generic
  from pygments.lexers.shell import BashLexer
  from pygments.lexers.data import JsonLexer
label_desc: Use image node_id 1 for calling the DesktopLexer obj's underlying member method code with example usage: obj.analyse_text(text) and returns: int, int, int