def contains(self, activity):
        # get all the current aggregated activities
        aggregated = self[:self.max_length]
        activities = sum([list(a.activities) for a in aggregated], [])
        # make sure we don't modify things in place
        activities = copy.deepcopy(activities)
        activity = copy.deepcopy(activity)

        activity_dict = dict()
        for a in activities:
            key = (a.verb.id, a.actor_id, a.object_id, a.target_id)
            activity_dict[key] = a

        a = activity
        activity_key = (a.verb.id, a.actor_id, a.object_id, a.target_id)
        present = activity_key in activity_dict
        return present
Total number of records from the input set to be retrieved, up to a maximum
dataset/ETHPy150Open tschellenbach/Stream-Framework/stream_framework/feeds/aggregated_feed/base.py/AggregatedFeed.contains--crossover with--dataset/ETHPy150Open ARTbio/tools-artbio/tools/fetch_fasta_from_ncbi/retrieve_fasta_from_NCBI.py/Eutils.get_sequences