Did I find the right examples for you? yes no

All Samples(12)  |  Call(12)  |  Derive(0)  |  Import(0)
SetMultimap is based on sets and prevents multiple instances of same value. 

src/g/m/gmvault-HEAD/src/sandbox/common_gmvault.py   gmvault(Download)
        existing_labels     = set() #set of existing labels to not call create_gmail_labels all the time
        nb_emails_restored  = 0  #to count nb of emails restored
        labels_to_apply     = collections_utils.SetMultimap()
 
        #get all mail folder name
            finally:
                self.src.select_folder(folder_def_location) # go back to an empty DIR (Drafts) to be fast
                labels_to_apply = collections_utils.SetMultimap() #reset label to apply
 
            nb_emails_restored += nb_items
        existing_labels     = set() #set of existing labels to not call create_gmail_labels all the time
        nb_emails_restored  = 0  #to count nb of emails restored
        labels_to_apply     = collections_utils.SetMultimap()
 
        #get all mail folder name
            finally:
                self.src.select_folder(folder_def_location) # go back to an empty DIR (Drafts) to be fast
                labels_to_apply = collections_utils.SetMultimap() #reset label to apply
 
            nb_emails_restored += nb_items

src/g/m/gmvault-HEAD/src/gmv/gmvault.py   gmvault(Download)
                              { u'migrated' : u'gmv-migrated', u'\muted' : u'gmv-muted' })
        nb_emails_restored  = 0  #to count nb of emails restored
        labels_to_apply     = collections_utils.SetMultimap()
 
        #get all mail folder name
            finally:
                self.src.select_folder(folder_def_location) # go back to an empty DIR (Drafts) to be fast
                labels_to_apply = collections_utils.SetMultimap() #reset label to apply
 
            nb_emails_restored += nb_items
        reserved_labels_map = gmvault_utils.get_conf_defaults().get_dict("Restore", "reserved_labels_map", { u'migrated' : u'gmv-migrated', u'\muted' : u'gmv-muted' })
        nb_emails_restored  = 0  #to count nb of emails restored
        labels_to_apply     = collections_utils.SetMultimap()
 
        #get all mail folder name
            finally:
                self.src.select_folder(folder_def_location) # go back to an empty DIR (Drafts) to be fast
                labels_to_apply = collections_utils.SetMultimap() #reset label to apply
 
            nb_emails_restored += nb_items

src/g/m/gmvault-1.8.1-beta/src/gmv/gmvault.py   gmvault(Download)
                              { u'migrated' : u'gmv-migrated', u'\muted' : u'gmv-muted' })
        nb_emails_restored  = 0  #to count nb of emails restored
        labels_to_apply     = collections_utils.SetMultimap()
 
        #get all mail folder name
            finally:
                self.src.select_folder(folder_def_location) # go back to an empty DIR (Drafts) to be fast
                labels_to_apply = collections_utils.SetMultimap() #reset label to apply
 
            nb_emails_restored += nb_items
        reserved_labels_map = gmvault_utils.get_conf_defaults().get_dict("Restore", "reserved_labels_map", { u'migrated' : u'gmv-migrated', u'\muted' : u'gmv-muted' })
        nb_emails_restored  = 0  #to count nb of emails restored
        labels_to_apply     = collections_utils.SetMultimap()
 
        #get all mail folder name
            finally:
                self.src.select_folder(folder_def_location) # go back to an empty DIR (Drafts) to be fast
                labels_to_apply = collections_utils.SetMultimap() #reset label to apply
 
            nb_emails_restored += nb_items