Module Expr Str Import alias ImportFrom alias alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults NameLoad body Assign NameStore Call NameLoad keyword Str keyword NameLoad keyword Str Assign NameStore AttributeLoad NameLoad attr Expr Call NameLoad Str Str keyword Str keyword NameLoad keyword Str Expr Call NameLoad Str Str keyword Str keyword NameLoad keyword Num Assign NameStore Call AttributeLoad NameLoad attr Import alias ImportFrom alias ImportFrom alias ImportFrom alias Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr TryExcept body Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str Raise NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A 
Create an index in the MongoDB reviews collection on the
'steam_id_number' key if one does not already exist.

:author: Matt Mulholland
:date: November, 2015
 N/A logging argparse ArgumentParser ArgumentDefaultsHelpFormatter src formatter N/A logger N/A N/A logging getLogger util.create_mongodb_index N/A logging_info N/A logging INFO N/A N/A N/A logger setLevel logging_info N/A sh N/A N/A logging StreamHandler N/A N/A N/A sh setLevel logging_info N/A N/A N/A sh setFormatter formatter N/A N/A N/A logger addHandler sh main N/A N/A argv N/A None N/A N/A parser N/A ArgumentParser description Run incremental learning experiments. formatter_class ArgumentDefaultsHelpFormatter conflict_handler resolve N/A _add_arg N/A parser add_argument N/A N/A _add_arg -dbhost --mongodb_host help Host that the MongoDB server is running on. type str default localhost N/A N/A _add_arg --mongodb_port -dbport help Port that the MongoDB server is running on. type int default 37017 N/A args N/A N/A parser parse_args N/A sys pymongo ASCENDING pymongo.errors ConnectionFailure src.mongodb connect_to_db N/A N/A N/A logger info N/A N/A Connecting to MongoDB database at {0}:{1}... format N/A args mongodb_host N/A args mongodb_port N/A N/A N/A db N/A connect_to_db N/A args mongodb_host N/A args mongodb_port N/A N/A N/A ConnectionFailure N/A e N/A N/A N/A N/A logger error Failed to connect to the MongoDB database collection. N/A e N/A N/A N/A logger info Creating index on the "steam_id_number" key. N/A N/A N/A db create_index steam_id_number ASCENDING N/A N/A N/A logger info Created new index named "steam_id_number_1" in the "reviews" collection. N/A N/A N/A __name__ __main__ N/A N/A N/A main