tools/variations/split_variations_cmd.py
def _SplitFeatures(features):
  """Splits a list of _Features objects into two lists.

  Note that either returned list could be empty, depending on the number of
  elements in the input list.
  """
  # Split a list of size N into two list: one of size middle, the other of size
  # N - middle. This works even when N is 0 or 1, resulting in empty list(s).
  middle = (len(features) + 1) // 2
  return features[:middle], features[middle:]
Splits a list of _Features objects into two lists.

  Note that either returned list could be empty, depending on the number of
  elements in the input list.
  
Splits a list of _Features objects into two lists.
Note that either returned list could be empty, depending on the number of
elements in the input list.
Splits a list of _Features objects into two lists . Note that either returned list could be empty depending on the number of elements in the input list .
def _SplitFeatures(features):
  middle = (len(features) + 1) // 2
  return features[:middle], features[middle:]
def _SplitFeatures ( features ) : middle = ( len ( features ) + 1 ) // 2 return features [ : middle ] , features [ middle : ]
Splits a list of _Features objects into two lists.
Splits a list of _Features objects into two lists .
"""Splits a list of _Features objects into two lists.

  Note that either returned list could be empty, depending on the number of
  elements in the input list.
  """ # Split a list of size N into two list: one of size middle, the other of size # N - middle. This works even when N is 0 or 1, resulting in empty list(s).
features