def _MatchBrackets(uwline):
  bracket_stack = []
  for token in uwline.tokens:
    if token.value in pytree_utils.OPENING_BRACKETS:
      bracket_stack.append(token)
    elif token.value in pytree_utils.CLOSING_BRACKETS:
      assert _BRACKET_MATCH[token.value] == bracket_stack[-1].value
      bracket_stack[-1].matching_bracket = token
      token.matching_bracket = bracket_stack[-1]
      bracket_stack.pop()
Fit the data and transform it using the linear model.
dataset/ETHPy150Open google/yapf/yapf/yapflib/pytree_unwrapper.py/_MatchBrackets--crossover with--dataset/ETHPy150Open mne-tools/mne-python/mne/decoding/base.py/LinearModel.fit_transform