Module Expr Str ImportFrom alias Import alias ImportFrom alias Assign TupleStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad AttributeLoad AttributeLoad NameLoad attr attr ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword ListComp SubscriptLoad NameLoad Index Str comprehension NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call NameLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr CompareEq AttributeLoad NameLoad attr NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr CompareEq AttributeLoad NameLoad attr NameLoad attr decorator_list NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Return BinOpMod Str TupleLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad keyword NameLoad decorator_list NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Return BinOpMod Str TupleLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad keyword NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If NameLoad body Return NameLoad orelse Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list NameLoad decorator_list
N/A N/A Models for Oppia users. core.platform models N/A feconf google.appengine.ext ndb N/A N/A base_models N/A N/A N/A models Registry import_models N/A N/A N/A models NAMES base_model UserSettingsModel N/A N/A base_models BaseModel N/A N/A Settings and preferences for a particular user.

    Instances of this class are keyed by the user id.
     N/A email N/A N/A ndb StringProperty required True indexed True N/A username N/A N/A ndb StringProperty indexed True N/A normalized_username N/A N/A ndb StringProperty indexed True N/A last_agreed_to_terms N/A N/A ndb DateTimeProperty default None N/A last_started_state_editor_tutorial N/A N/A ndb DateTimeProperty default None N/A profile_picture_data_url N/A N/A ndb TextProperty default None indexed False N/A user_bio N/A N/A ndb TextProperty indexed False N/A subject_interests N/A N/A ndb StringProperty repeated True indexed True N/A first_contribution_msec N/A N/A ndb FloatProperty default None N/A preferred_language_codes N/A N/A ndb StringProperty repeated True indexed True choices N/A N/A lc N/A code N/A lc N/A feconf ALL_LANGUAGE_CODES is_normalized_username_taken N/A N/A cls normalized_username N/A N/A N/A Returns whether or a given normalized_username is taken. N/A N/A bool N/A N/A N/A N/A N/A N/A cls get_all filter N/A N/A cls normalized_username normalized_username get N/A classmethod get_by_normalized_username N/A N/A cls normalized_username N/A N/A N/A Returns a user model given a normalized username N/A N/A N/A N/A N/A N/A N/A cls get_all filter N/A N/A cls normalized_username normalized_username get N/A classmethod N/A UserContributionsModel N/A N/A base_models BaseModel N/A N/A Tracks explorations created/edited for a particular user.

    Instances of this class are keyed by the user id.
     N/A created_exploration_ids N/A N/A ndb StringProperty repeated True indexed True default None N/A edited_exploration_ids N/A N/A ndb StringProperty repeated True indexed True default None N/A UserEmailPreferencesModel N/A N/A base_models BaseModel N/A N/A Email preferences for a particular user.

    Instances of this class are keyed by the user id.
     N/A site_updates N/A N/A ndb BooleanProperty indexed True N/A editor_role_notifications N/A N/A ndb BooleanProperty indexed True default N/A feconf DEFAULT_EDITOR_ROLE_EMAIL_PREFERENCE N/A UserSubscriptionsModel N/A N/A base_models BaseModel N/A N/A A list of things that a user subscribes to.

    Instances of this class are keyed by the user id.
     N/A activity_ids N/A N/A ndb StringProperty repeated True indexed True N/A collection_ids N/A N/A ndb StringProperty repeated True indexed True N/A feedback_thread_ids N/A N/A ndb StringProperty repeated True indexed True N/A last_checked N/A N/A ndb DateTimeProperty default None N/A UserRecentChangesBatchModel N/A N/A base_models BaseMapReduceBatchResultsModel N/A N/A A list of recent changes corresponding to things a user subscribes to.

    This is computed using a MapReduce batch job and may not be up to date.
    Instances of this class are keyed by the user id.
     N/A output N/A N/A ndb JsonProperty indexed False N/A job_queued_msec N/A N/A ndb FloatProperty indexed False N/A UserStatsModel N/A N/A base_models BaseMapReduceBatchResultsModel N/A N/A The impact score for a particular user, where impact is defined as:
    Sum of (
    ln(playthroughs) * (ratings_scaler) * (average(ratings) - 2.5))
    *(multiplier),
    where multiplier = 10, and ratings_scaler is .1 * (number of ratings)
    if there are < 10 ratings for that exploration.

    The impact score is 0 for an exploration with 0 playthroughs or with an
    average rating of less than 2.5.

    Impact scores are calculated over explorations for which a user
    is listed as a contributor. Keys for this model are user_ids.
     N/A impact_score N/A N/A ndb FloatProperty indexed True N/A ExplorationUserDataModel N/A N/A base_models BaseModel N/A N/A User-specific data pertaining to a specific exploration.

    Instances of this class have keys of the form
    [USER_ID].[EXPLORATION_ID]
     N/A user_id N/A N/A ndb StringProperty required True indexed True N/A exploration_id N/A N/A ndb StringProperty required True indexed True N/A rating N/A N/A ndb IntegerProperty default None indexed True N/A rated_on N/A N/A ndb DateTimeProperty default None indexed False N/A draft_change_list N/A N/A ndb JsonProperty default None N/A draft_change_list_last_updated N/A N/A ndb DateTimeProperty default None N/A draft_change_list_exp_version N/A N/A ndb IntegerProperty default None _generate_id N/A N/A cls user_id exploration_id N/A N/A N/A N/A %s.%s N/A user_id exploration_id N/A classmethod create N/A N/A cls user_id exploration_id N/A N/A N/A Creates a new ExplorationUserDataModel entry and returns it.

        Note that the client is responsible for actually saving this entity to
        the datastore.
         N/A instance_id N/A N/A cls _generate_id user_id exploration_id N/A N/A cls id instance_id user_id user_id exploration_id exploration_id N/A classmethod get N/A N/A cls user_id exploration_id N/A N/A N/A Gets the ExplorationUserDataModel for the given ids. N/A instance_id N/A N/A cls _generate_id user_id exploration_id N/A N/A N/A N/A super ExplorationUserDataModel cls get instance_id strict False N/A classmethod N/A CollectionProgressModel N/A N/A base_models BaseModel N/A N/A Stores progress a user has made within a collection, including all
    explorations which have been completed within the context of the collection.

    Please note instances of this progress model will persist even after a
    collection is deleted.

    TODO(bhenning): Implement a job which removes stale versions of this model
    in the data store. That is, it should go through all completion models and
    ensure both the user and collection it is associated with still exist within
    the data store, otherwise it should remove the instance of the completion
    model.
     N/A user_id N/A N/A ndb StringProperty required True indexed True N/A collection_id N/A N/A ndb StringProperty required True indexed True N/A completed_explorations N/A N/A ndb StringProperty repeated True _generate_id N/A N/A cls user_id collection_id N/A N/A N/A N/A %s.%s N/A user_id collection_id N/A classmethod create N/A N/A cls user_id collection_id N/A N/A N/A Creates a new CollectionProgressModel entry and returns it.

        Note: the client is responsible for actually saving this entity to the
        datastore.
         N/A instance_id N/A N/A cls _generate_id user_id collection_id N/A N/A cls id instance_id user_id user_id collection_id collection_id N/A classmethod get N/A N/A cls user_id collection_id N/A N/A N/A Gets the CollectionProgressModel for the given ids. N/A instance_id N/A N/A cls _generate_id user_id collection_id N/A N/A N/A N/A super CollectionProgressModel cls get instance_id strict False N/A classmethod get_or_create N/A N/A cls user_id collection_id N/A N/A N/A Gets the CollectionProgressModel for the given ids, or creates a new
        entry with the given ids if no such instance yet exists within the data
        store.
         N/A instance_model N/A N/A cls get user_id collection_id N/A instance_model N/A N/A instance_model N/A N/A N/A N/A cls create user_id collection_id N/A classmethod N/A