components/variations/service/generate_ui_string_overrider.py
def _CheckForHashCollisions(sorted_resource_list):
  """Checks a sorted list of |Resource| objects for hash collisions.

  Args:
    sorted_resource_list: A sorted list of |Resource| objects.

  Returns:
    A set of all |Resource| objects with collisions.
  """
  collisions = set()
  for i in range(len(sorted_resource_list) - 1):
    resource = sorted_resource_list[i]
    next_resource = sorted_resource_list[i+1]
    if resource.hash == next_resource.hash:
      collisions.add(resource)
      collisions.add(next_resource)

  return collisions
Checks a sorted list of |Resource| objects for hash collisions.

  Args:
    sorted_resource_list: A sorted list of |Resource| objects.

  Returns:
    A set of all |Resource| objects with collisions.
  
Checks a sorted list of |Resource| objects for hash collisions.
Checks a sorted list of |Resource| objects for hash collisions .
def _CheckForHashCollisions(sorted_resource_list):
  collisions = set()
  for i in range(len(sorted_resource_list) - 1):
    resource = sorted_resource_list[i]
    next_resource = sorted_resource_list[i+1]
    if resource.hash == next_resource.hash:
      collisions.add(resource)
      collisions.add(next_resource)
  return collisions
def _CheckForHashCollisions ( sorted_resource_list ) : collisions = set ( ) for i in range ( len ( sorted_resource_list ) - 1 ) : resource = sorted_resource_list [ i ] next_resource = sorted_resource_list [ i + 1 ] if resource . hash == next_resource . hash : collisions . add ( resource ) collisions . add ( next_resource ) return collisions
Checks a sorted list of |Resource| objects for hash collisions.
Checks a sorted list of |Resource| objects for hash collisions .
"""Checks a sorted list of |Resource| objects for hash collisions.

  Args:
    sorted_resource_list: A sorted list of |Resource| objects.

  Returns:
    A set of all |Resource| objects with collisions.
  """
A set of all |Resource| objects with collisions.
A set of all |Resource| objects with collisions .
sorted_resource_list
A sorted list of |Resource| objects.
A sorted list of |Resource| objects .