@@ -182,7 +182,7 @@ def __init__(self, iterable_or_length, domain=None, *, n_elements=None,
182182 # #
183183 if self .is_rapplied :
184184 self .is_recurrent = any (count >= 2 for count in
185- self ._frozen_ordered_tally .values ())
185+ self ._frozen_ordered_bag .values ())
186186 else :
187187 self .is_recurrent = False
188188 # #
@@ -382,7 +382,7 @@ def _unsliced_length(self):
382382 if self .is_recurrent :
383383 return calculate_length_of_recurrent_perm_space (
384384 self .n_elements - len (self .fixed_map ),
385- nifty_collections .FrozenTallyTally (
385+ nifty_collections .FrozenBagBag (
386386 collections .Counter (self .free_values ).values ()
387387 )
388388 )
@@ -399,12 +399,12 @@ def _unsliced_length(self):
399399 if self .is_combination :
400400 return calculate_length_of_recurrent_comb_space (
401401 self .n_elements ,
402- self ._frozen_tally_tally
402+ self ._frozen_bag_bag
403403 )
404404 else :
405405 return calculate_length_of_recurrent_perm_space (
406406 self .n_elements ,
407- self ._frozen_tally_tally
407+ self ._frozen_bag_bag
408408 )
409409
410410 else :
@@ -445,11 +445,11 @@ def variation_selection(self):
445445 return variation_selection
446446
447447 @caching .CachedProperty
448- def _frozen_ordered_tally (self ):
449- return nifty_collections .FrozenOrderedTally (self .sequence )
448+ def _frozen_ordered_bag (self ):
449+ return nifty_collections .FrozenOrderedBag (self .sequence )
450450
451- _frozen_tally_tally = caching .CachedProperty (
452- lambda self : self ._frozen_ordered_tally . frozen_tally_tally
451+ _frozen_bag_bag = caching .CachedProperty (
452+ lambda self : self ._frozen_ordered_bag . frozen_bag_bag
453453 )
454454
455455
@@ -577,7 +577,7 @@ def __getitem__(self, i):
577577 assert not self .is_dapplied and not self .is_degreed and \
578578 not self .is_sliced
579579 available_values = list (self .sequence )
580- reserved_values = nifty_collections .Tally (self .fixed_map .values ())
580+ reserved_values = nifty_collections .Bag (self .fixed_map .values ())
581581 wip_perm_sequence_dict = dict (self .fixed_map )
582582 wip_i = i
583583 shit_set = set ()
@@ -588,7 +588,7 @@ def __getitem__(self, i):
588588 continue
589589 unused_values = [
590590 item for item in
591- nifty_collections .OrderedTally (available_values ) -
591+ nifty_collections .OrderedBag (available_values ) -
592592 reserved_values if item not in shit_set
593593 ]
594594 for unused_value in unused_values :
0 commit comments