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

Before Change


            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: 4

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: uber/petastorm
Commit Name: 0af7a0cbaae5bc2d04deb3aa77dff65eb81cc8d9
Time: 2018-10-10
Author: yevgeni@uber.com
File Name: petastorm/workers_pool/process_pool.py
Class Name: ProcessPool
Method Name: get_results


Project Name: deepfakes/faceswap
Commit Name: b07c8cbe4889f39221955a27d22d52052b7e7c2a
Time: 2019-03-05
Author: 36920800+torzdf@users.noreply.github.com
File Name: tools/lib_alignments/jobs.py
Class Name: Rename
Method Name: check_multi_hashes