Module Expr Str Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias Import alias Assign TupleStore NameStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr ClassDef bases AttributeLoad NameLoad attr body Pass decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Return ListLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults vararg body Pass decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad Return TupleLoad IfExp NameLoad AttributeLoad NameLoad attr NameLoad IfExp NameLoad AttributeLoad NameLoad attr ListLoad decorator_list NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore ListLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad SubscriptLoad NameLoad Index NameLoad Continue Assign NameStore AttributeLoad NameLoad attr Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad NameLoad keyword NameLoad Index Num While CompareEq SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr body AugAssignSub NameStore Num Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad NameLoad keyword NameLoad Index Num Expr Call AttributeLoad NameLoad attr Dict Str Str Str Str Str Str NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str IfExp AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Return TupleLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return ListLoad AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body If CompareNotIn AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AugAssignAdd NameStore SubscriptLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Index Num For NameStore NameLoad body Expr Yield TupleLoad NameLoad NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Yield TupleLoad NameLoad Dict Str Str Str Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body If CompareNotIn Str NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore SubscriptLoad NameLoad Slice Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad SubscriptLoad NameLoad Slice BinOpAdd Call AttributeLoad NameLoad attr Str Num Assign NameStore ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad Assign NameStore Call NameLoad NameLoad keyword Lambda arguments args NameParam defaults SubscriptLoad NameLoad Index Str keyword NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr keyword NameLoad keyword SubscriptLoad NameLoad Slice AttributeLoad NameLoad attr keyword NameLoad attr decorator_list NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Pass decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Return ListLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults vararg body Pass decorator_list NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return ListLoad AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Return Assign NameStore BinOpDiv Num Num Assign NameStore Num For NameStore AttributeLoad NameLoad attr body AugAssignAdd NameStore BinOpMult SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Call NameLoad NameLoad If UnaryOpNot Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr body Return Assign NameStore BinOpDiv NameLoad Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore BinOpSub NameLoad Num If CompareLtE NameLoad Num body Return Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Num For NameStore SubscriptLoad NameLoad Index Str body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Num Assign NameStore Call AttributeLoad NameLoad attr Str Num AugAssignAdd NameStore BinOpSub NameLoad NameLoad Assign NameStore BinOpPow NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr If CompareEq NameLoad Num body Return For NameStore NameLoad body Assign NameStore BinOpDiv SubscriptLoad NameLoad Index NameLoad Call NameLoad NameLoad Assign NameStore BinOpMult BinOpMult NameLoad NameLoad NameLoad Expr Yield TupleLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad Assign NameStore BinOpDiv Num Num Assign NameStore Call NameLoad Call NameLoad BinOpPow Call NameLoad NameLoad NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad attr decorator_list NameLoad decorator_list
N/A N/A Jobs for queries personalized to individual users. N/A ast N/A logging core jobs core.domain exp_services core.domain feedback_domain core.domain feedback_services core.domain stats_jobs_continuous core.platform models N/A feconf N/A utils N/A N/A exp_models collection_models feedback_models user_models N/A N/A N/A models Registry import_models N/A N/A N/A models NAMES exploration N/A N/A models NAMES collection N/A N/A models NAMES feedback N/A N/A models NAMES user RecentUpdatesRealtimeModel N/A N/A jobs BaseRealtimeDatastoreClassForContinuousComputations N/A N/A N/A DashboardRecentUpdatesAggregator N/A N/A jobs BaseContinuousComputationManager N/A N/A A continuous-computation job that computes a list of recent updates
    of explorations and feedback threads to show on a user's dashboard.

    This job does not have a working realtime component: the
    RecentUpdatesRealtimeModel does nothing. There will be a delay in
    propagating new updates to the dashboard; the length of the delay will be
    approximately the time it takes a batch job to run.
     get_event_types_listened_to N/A N/A cls N/A N/A N/A N/A N/A classmethod _get_realtime_datastore_class N/A N/A cls N/A N/A N/A RecentUpdatesRealtimeModel N/A classmethod _get_batch_job_manager_class N/A N/A cls N/A N/A N/A RecentUpdatesMRJobManager N/A classmethod _handle_incoming_event N/A N/A cls active_realtime_layer event_type N/A args N/A N/A N/A classmethod get_recent_notifications N/A N/A cls user_id N/A N/A N/A Gets a list of recent notifications to show on this user's
        dashboard.

        Returns a 2-tuple. The first element is a float representing the number
        of milliseconds since the Epoch when the job was queued. The second
        element is a list of recent updates to explorations and feedback
        threads; each entry is a dict with keys 'type', 'activity_id',
        'activity_title', 'last_updated_ms', 'author_id' and 'subject'. Here,
        'type' is either feconf.UPDATE_TYPE_EXPLORATION_COMMIT or
        feconf.UPDATE_TYPE_FEEDBACK_MESSAGE, 'activity_id' is the id of the
        exploration being committed to or to which the feedback thread belongs,
        and 'activity_title' is the corresponding title.
         N/A user_model N/A N/A N/A user_models UserRecentChangesBatchModel get user_id strict False N/A N/A N/A user_model N/A user_model job_queued_msec None N/A user_model N/A user_model output N/A N/A classmethod N/A RecentUpdatesMRJobManager N/A N/A jobs BaseMapReduceJobManagerForContinuousComputations N/A N/A Manager for a MapReduce job that computes a list of recent notifications
    for explorations, collections, and feedback threads watched by a user.
     _get_continuous_computation_class N/A N/A cls N/A N/A N/A DashboardRecentUpdatesAggregator N/A classmethod _get_most_recent_activity_commits N/A N/A activity_model_cls activity_ids_list activity_type commit_type delete_commit_message N/A N/A N/A Gets and returns a list of dicts representing the most recent
        commits made for each activity represented by each ID provided in the
        activity_ids_list parameter. These are the latest commits made by users
        to each activity (that is, it will skip over any automated commits such
        as those from the Oppia migration bot).

        Args:
            activity_model_cls: The storage layer object for an activity, such
                as exp_models.ExplorationModel.
            activity_ids_list: A list of activity IDs (such as exploration IDS)
                for which the latest commits will be retrieved.
            activity_type: The type (string) of activity being referenced, such
                as 'exploration' or 'collection'.
            commit_type: This (string) represents the activity update commit
                type, such as feconf.UPDATE_TYPE_EXPLORATION_COMMIT.
            delete_commit_message: This (string) represents the commit message
                to use when an activity is found to be deleted, such as
                feconf.COMMIT_MESSAGE_EXPLORATION_DELETED.

        Returns:
            A tuple with two entries:
                - A list (one entry per activity ID) of dictionaries with the
                  following keys:
                    - type: The value of the commit_type argument.
                    - activity_id: The ID of the activity for this commit.
                    - activity_title: The title of the activity.
                    - author_id: The author who made the commit.
                    - last_update_ms: When the commit was created.
                    - subject: The commit message, otherwise (if the activity
                      has been deleted) a message indicating that the activity
                      was deleted.
                - A list containing valid activity model instances which are
                  mappable to feedback threads
         N/A most_recent_commits N/A N/A activity_models N/A N/A activity_model_cls get_multi activity_ids_list include_deleted True N/A tracked_models_for_feedback N/A N/A N/A ind activity_model N/A enumerate activity_models N/A N/A N/A activity_model None N/A N/A N/A N/A logging error N/A Could not find %s %s N/A activity_type N/A activity_ids_list N/A ind N/A N/A latest_manual_commit_version N/A activity_model version N/A metadata_obj N/A N/A N/A activity_model_cls get_snapshots_metadata N/A activity_model id N/A latest_manual_commit_version allow_deleted True N/A 0 N/A N/A N/A metadata_obj N/A committer_id N/A feconf MIGRATION_BOT_USER_ID N/A N/A latest_manual_commit_version 1 N/A metadata_obj N/A N/A N/A activity_model_cls get_snapshots_metadata N/A activity_model id N/A latest_manual_commit_version allow_deleted True N/A 0 N/A N/A N/A most_recent_commits append N/A type activity_id activity_title author_id last_updated_ms subject commit_type N/A activity_model id N/A activity_model title N/A metadata_obj N/A committer_id N/A metadata_obj N/A created_on_ms N/A N/A activity_model deleted delete_commit_message N/A metadata_obj N/A commit_message N/A N/A N/A activity_model deleted N/A N/A N/A N/A tracked_models_for_feedback append activity_model N/A N/A most_recent_commits tracked_models_for_feedback N/A staticmethod entity_classes_to_map_over N/A N/A cls N/A N/A N/A N/A N/A user_models UserSubscriptionsModel N/A classmethod map N/A N/A item N/A N/A N/A user_id N/A item id N/A job_queued_msec N/A N/A RecentUpdatesMRJobManager _get_job_queued_msec N/A reducer_key N/A %s@%s N/A user_id job_queued_msec N/A exploration_ids_list N/A item activity_ids N/A collection_ids_list N/A item collection_ids N/A feedback_thread_ids_list N/A item feedback_thread_ids N/A N/A most_recent_activity_commits tracked_exp_models_for_feedback N/A N/A RecentUpdatesMRJobManager _get_most_recent_activity_commits N/A exp_models ExplorationModel exploration_ids_list exploration N/A feconf UPDATE_TYPE_EXPLORATION_COMMIT N/A feconf COMMIT_MESSAGE_EXPLORATION_DELETED N/A exp_model tracked_exp_models_for_feedback N/A N/A threads N/A N/A feedback_services get_all_threads N/A exp_model id False N/A thread threads N/A N/A N/A N/A thread id feedback_thread_ids_list N/A N/A N/A N/A feedback_thread_ids_list append N/A thread id N/A most_recent_activity_commits N/A N/A N/A RecentUpdatesMRJobManager _get_most_recent_activity_commits N/A collection_models CollectionModel collection_ids_list collection N/A feconf UPDATE_TYPE_COLLECTION_COMMIT N/A feconf COMMIT_MESSAGE_COLLECTION_DELETED N/A 0 N/A recent_activity_commit_dict most_recent_activity_commits N/A N/A N/A N/A reducer_key recent_activity_commit_dict N/A feedback_thread_id feedback_thread_ids_list N/A N/A exp_id N/A N/A N/A feedback_domain FeedbackThread get_exp_id_from_full_thread_id feedback_thread_id N/A thread_id N/A N/A N/A feedback_domain FeedbackThread get_thread_id_from_full_thread_id feedback_thread_id N/A last_message N/A N/A N/A feedback_models FeedbackMessageModel get_most_recent_message exp_id thread_id N/A N/A N/A reducer_key N/A type activity_id activity_title author_id last_updated_ms subject N/A feconf UPDATE_TYPE_FEEDBACK_MESSAGE N/A last_message exploration_id N/A N/A N/A N/A exp_models ExplorationModel get_by_id N/A last_message exploration_id title N/A last_message author_id N/A N/A utils get_time_in_millisecs N/A last_message created_on N/A N/A last_message get_thread_subject N/A staticmethod reduce N/A N/A key stringified_values N/A N/A N/A N/A @ key N/A N/A N/A N/A logging error N/A Invalid reducer key for RecentUpdatesMRJob: %s key N/A user_id N/A key N/A N/A N/A key find @ N/A job_queued_msec N/A float N/A key N/A N/A N/A N/A key find @ 1 N/A values N/A N/A N/A ast literal_eval sv N/A sv stringified_values N/A sorted_values N/A sorted values key N/A N/A N/A x N/A N/A x N/A last_updated_ms reverse True N/A N/A N/A N/A N/A user_models UserRecentChangesBatchModel id user_id output N/A sorted_values N/A N/A feconf DEFAULT_QUERY_LIMIT job_queued_msec job_queued_msec put N/A staticmethod N/A UserImpactRealtimeModel N/A N/A jobs BaseRealtimeDatastoreClassForContinuousComputations N/A N/A N/A UserImpactAggregator N/A N/A jobs BaseContinuousComputationManager N/A N/A A continuous-computation job that computes the impact score
    for every user.

    This job does not have a working realtime component: the
    UserImpactRealtimeModel does nothing. There will be a delay in
    propagating new updates to the profile page; the length of the
    delay will be approximately the time it takes a batch job to run.
     get_event_types_listened_to N/A N/A cls N/A N/A N/A N/A N/A classmethod _get_realtime_datastore_class N/A N/A cls N/A N/A N/A UserImpactRealtimeModel N/A classmethod _get_batch_job_manager_class N/A N/A cls N/A N/A N/A UserImpactMRJobManager N/A classmethod _handle_incoming_event N/A N/A cls active_realtime_layer event_type N/A args N/A N/A N/A classmethod N/A UserImpactMRJobManager N/A N/A jobs BaseMapReduceJobManagerForContinuousComputations N/A _get_continuous_computation_class N/A N/A cls N/A N/A N/A UserImpactAggregator N/A classmethod entity_classes_to_map_over N/A N/A cls N/A N/A N/A N/A N/A exp_models ExpSummaryModel N/A classmethod map N/A N/A item N/A N/A N/A N/A item deleted N/A N/A N/A exponent N/A 2.0 3 N/A total_rating 0 N/A ratings_value N/A item ratings N/A N/A total_rating N/A N/A N/A item ratings N/A ratings_value N/A int ratings_value N/A N/A N/A sum N/A N/A N/A item ratings itervalues N/A N/A N/A average_rating N/A total_rating N/A sum N/A N/A N/A item ratings itervalues N/A value_per_user N/A average_rating 2 N/A N/A value_per_user 0 N/A N/A N/A statistics N/A N/A N/A stats_jobs_continuous StatisticsAggregator get_statistics N/A item id N/A stats_jobs_continuous VERSION_ALL N/A answer_count 0 N/A state_name N/A statistics N/A state_hit_counts N/A N/A state_stats N/A N/A statistics N/A state_hit_counts N/A state_name N/A first_entry_count N/A N/A state_stats get first_entry_count 0 N/A no_answer_count N/A N/A state_stats get no_answer_count 0 N/A answer_count N/A first_entry_count no_answer_count N/A reach N/A answer_count exponent N/A exploration_summary N/A N/A exp_services get_exploration_summary_by_id N/A item id N/A contributors N/A exploration_summary contributors_summary N/A total_commits N/A sum N/A N/A contributors itervalues N/A N/A total_commits 0 N/A N/A N/A contrib_id contributors N/A N/A contribution N/A N/A contributors N/A contrib_id N/A float total_commits N/A exploration_impact_score N/A N/A value_per_user reach contribution N/A N/A N/A contrib_id exploration_impact_score N/A staticmethod reduce N/A N/A key stringified_values N/A N/A N/A values N/A N/A N/A ast literal_eval v N/A v stringified_values N/A exponent N/A 2.0 3 N/A user_impact_score N/A int N/A round N/A N/A sum values exponent N/A N/A N/A N/A N/A user_models UserStatsModel id key impact_score user_impact_score put N/A staticmethod N/A