parameters: (xm_dict, name_re, status)
docstring: Set the status (enabled/disabled) of a dictionary of xmethods.
docstring_summary: Set the status (enabled/disabled) of a dictionary of xmethods.
docstring_tokens: Set the status ( enabled / disabled ) of a dictionary of xmethods .
function: def set_xm_status1(xm_dict, name_re, status):
      """Set the status (enabled/disabled) of a dictionary of xmethods."""
      for locus_str, matchers in xm_dict.items():
          for matcher in matchers:
              if not name_re:
                  # If the name regex is missing, then set the status of the
                  # matcher and move on.
                  matcher.enabled = status
                  continue
              if not matcher.methods:
                  # The methods attribute could be None.  Move on.
                  continue
              for m in matcher.methods:
                  if name_re.match(m.name):
                      m.enabled = status
function_tokens: def set_xm_status1 ( xm_dict , name_re , status ) : for locus_str , matchers in xm_dict . items ( ) : for matcher in matchers : if not name_re : # If the name regex is missing, then set the status of the # matcher and move on. matcher . enabled = status continue if not matcher . methods : # The methods attribute could be None.  Move on. continue for m in matcher . methods : if name_re . match ( m . name ) : m . enabled = status