def ComputeSplitPenalties(tree):
  _TreePenaltyAssigner().Visit(tree)
Compute split penalties on tokens in the given parse tree.
dataset/ETHPy150Open google/yapf/yapf/yapflib/split_penalty.py/ComputeSplitPenalties