9ffa63ec2b1d80812e6a242e36fa856d70952f4e,apps/notifications/models.py,MUserFeedNotification,push_feed_notifications,#Any#Any#Any#Any#,83

Before Change


        for feed_notification in notifications:
            last_notification_date = feed_notification.last_notification_date
            classifiers = feed_notification.classifiers()
            if not classifiers:
                continue
            for story in stories:
                if story["story_date"] < last_notification_date and not force:
                    continue
                if story["story_date"] > feed_notification.last_notification_date:

After Change


        stories = Feed.format_stories(mstories)
        
        for feed_notification in notifications:
            sent_count = 0
            last_notification_date = feed_notification.last_notification_date
            classifiers = feed_notification.classifiers()

            if classifiers == None:
                logging.debug("Has no usersubs")
                continue

            for story in stories:
                if sent_count >= 3:
                    logging.debug("Sent too many, ignoring...")
                    continue                    
                if story["story_date"] < last_notification_date and not force:
                    logging.debug("Story date older than last notification date: %s < %s" % (story["story_date"], last_notification_date))
                    continue
                
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: samuelclay/NewsBlur
Commit Name: 9ffa63ec2b1d80812e6a242e36fa856d70952f4e
Time: 2016-11-16
Author: samuel@ofbrooklyn.com
File Name: apps/notifications/models.py
Class Name: MUserFeedNotification
Method Name: push_feed_notifications


Project Name: automl/SMAC3
Commit Name: 10761d179f88347b8155671d16b501ca85dcc162
Time: 2020-03-17
Author: ashraaghav@gmail.com
File Name: smac/intensification/intensification.py
Class Name: Intensifier
Method Name: eval_challenger


Project Name: senarvi/theanolm
Commit Name: b73fc0c21ea55c7d3357fbf633944e1e67db8bdf
Time: 2016-07-31
Author: seppo.git@marjaniemi.com
File Name: theanolm/scoring/latticedecoder.py
Class Name: LatticeDecoder
Method Name: decode