f96a9c451ebc69e761baa633a33472e974a014d5,accounts/models.py,Profile,get_enabled_email_types,#Profile#,192
Before Change
enabled = all_emails.filter(id__in=email_preferences,
send_by_default=False)
return set(enabled) | set(not_disabled)
def update_enabled_email_types(self, email_type_ids):
// Update user"s email_settings from the list of enabled email_types
After Change
List[EmailPreferenceType]: EmailPreferenceType objects corresponding to email types enabled by the user
enabled_email_types = list()
for email_type in EmailPreferenceType.objects.all():
if self.email_type_enabled(email_type):
enabled_email_types.append(email_type)
return enabled_email_types
def set_enabled_email_types(self, email_type_ids):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: MTG/freesound
Commit Name: f96a9c451ebc69e761baa633a33472e974a014d5
Time: 2019-07-24
Author: frederic.font@upf.edu
File Name: accounts/models.py
Class Name: Profile
Method Name: get_enabled_email_types
Project Name: pgmpy/pgmpy
Commit Name: 3e6b2db90f08a226f751f706ac0f6eb1d487de1b
Time: 2015-10-19
Author: yashuseth2503@gmail.com
File Name: pgmpy/models/FactorGraph.py
Class Name: FactorGraph
Method Name: check_model
Project Name: pgmpy/pgmpy
Commit Name: ca25da7c55ba436ab557410d5f2e2e9b557d2840
Time: 2015-03-02
Author: abinash.panda.ece10@itbhu.ac.in
File Name: pgmpy/models/MarkovModel.py
Class Name: MarkovModel
Method Name: to_junction_tree