original_docstring: Iterate over all groups, users, and proxy users in creation-order.
docstring: Iterate over all groups, users, and proxy users in creation-order.
docstring_tokens: Iterate over all groups users and proxy users in creation - order .
code: def iterate_identities(
          identities,
          create_group,
          create_user,
          add_user_to_group,
          create_proxy_user,
  ):
      """Iterate over all groups, users, and proxy users in creation-order."""
  
      created_group_names = set()
      for group_name in identities['groups']:
          if group_name not in created_group_names:
              create_group(group_name)
              created_group_names.add(group_name)
  
      for user_name, (pgroup_name, sgroup_names) in identities['users'].items():
          for group_name in sgroup_names.union({pgroup_name}):
              if group_name not in created_group_names:
                  create_group(group_name)
                  created_group_names.add(group_name)
          create_user(user_name, pgroup_name)
          for group_name in sgroup_names:
              add_user_to_group(user_name, group_name)
  
      for proxy_user_name, members in identities['proxy_users'].items():
          create_proxy_user(proxy_user_name, members)
code_tokens: def iterate_identities ( identities , create_group , create_user , add_user_to_group , create_proxy_user , ) : created_group_names = set ( ) for group_name in identities [ 'groups' ] : if group_name not in created_group_names : create_group ( group_name ) created_group_names . add ( group_name ) for user_name , ( pgroup_name , sgroup_names ) in identities [ 'users' ] . items ( ) : for group_name in sgroup_names . union ( { pgroup_name } ) : if group_name not in created_group_names : create_group ( group_name ) created_group_names . add ( group_name ) create_user ( user_name , pgroup_name ) for group_name in sgroup_names : add_user_to_group ( user_name , group_name ) for proxy_user_name , members in identities [ 'proxy_users' ] . items ( ) : create_proxy_user ( proxy_user_name , members )
short_docstring: Iterate over all groups, users, and proxy users in creation-order.
short_docstring_tokens: Iterate over all groups users and proxy users in creation - order .
comment: """Iterate over all groups, users, and proxy users in creation-order."""