tools/perf/cli_tools/flakiness_cli/frames.py
def _RunLengthDecode(count_value_pairs):
  """Iterator to expand a run length encoded sequence.

  The test results dashboard compresses some long lists using "run length
  encoding", for example:

    ['F', 'F', 'F', 'P', 'P', 'P', 'P', 'F', 'F']

  becomes:

    [[3, 'F'], [4, 'P'], [2, 'F']]

  This function takes the encoded version and returns an iterator that yields
  the elements of the expanded one.

  Args:
    count_value_pairs: A list of [count, value] pairs.

  Yields:
    Each value of the expanded sequence, one at a time.
  """
  for count, value in count_value_pairs:
    for _ in range(count):
      yield value
Iterator to expand a run length encoded sequence.

  The test results dashboard compresses some long lists using "run length
  encoding", for example:

    ['F', 'F', 'F', 'P', 'P', 'P', 'P', 'F', 'F']

  becomes:

    [[3, 'F'], [4, 'P'], [2, 'F']]

  This function takes the encoded version and returns an iterator that yields
  the elements of the expanded one.

  Args:
    count_value_pairs: A list of [count, value] pairs.

  Yields:
    Each value of the expanded sequence, one at a time.
  
Iterator to expand a run length encoded sequence.
The test results dashboard compresses some long lists using "run length
encoding", for example.







This function takes the encoded version and returns an iterator that yields
the elements of the expanded one.
Iterator to expand a run length encoded sequence . The test results dashboard compresses some long lists using " run length encoding " for example . This function takes the encoded version and returns an iterator that yields the elements of the expanded one .
def _RunLengthDecode(count_value_pairs):
  for count, value in count_value_pairs:
    for _ in range(count):
      yield value
def _RunLengthDecode ( count_value_pairs ) : for count , value in count_value_pairs : for _ in range ( count ) : yield value
Iterator to expand a run length encoded sequence.
Iterator to expand a run length encoded sequence .
"""Iterator to expand a run length encoded sequence.

  The test results dashboard compresses some long lists using "run length
  encoding", for example:

    ['F', 'F', 'F', 'P', 'P', 'P', 'P', 'F', 'F']

  becomes:

    [[3, 'F'], [4, 'P'], [2, 'F']]

  This function takes the encoded version and returns an iterator that yields
  the elements of the expanded one.

  Args:
    count_value_pairs: A list of [count, value] pairs.

  Yields:
    Each value of the expanded sequence, one at a time.
  """
Each value of the expanded sequence, one at a time.
Each value of the expanded sequence one at a time .
count_value_pairs
A list of [count, value] pairs.
A list of [ count value ] pairs .