Module Import alias Import alias ImportFrom alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr ClassDef bases NameLoad body Assign NameStore Str Assign NameStore Str Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore BinOpMod Str NameLoad Assign NameStore BinOpMod Str NameLoad Assign NameStore Dict Str Str Str Str Str Str Str Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Str For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Dict NameLoad NameLoad Dict Str Dict NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Str NameLoad BinOpAdd NameLoad Str With Call NameLoad NameLoad NameStore body Assign NameStore Dict Str Str NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If Call AttributeLoad NameLoad attr keyword Str body Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad AttributeLoad NameLoad attr attr Dict Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body If Call AttributeLoad NameLoad attr keyword Str body Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad AttributeLoad NameLoad attr attr Dict Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd NameLoad Num decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad AttributeLoad NameLoad attr attr Dict Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore NameLoad For TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body For NameStore Call AttributeLoad NameLoad attr NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad If NameLoad body If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Print BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body If Call AttributeLoad NameLoad attr body Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad AttributeLoad NameLoad attr attr Dict Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Str If UnaryOpNot Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad With Call NameLoad NameLoad NameStore body Assign NameStore Dict Str NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num If CompareNotEq Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd NameLoad Num body Print BinOpMod Str NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd NameLoad Num orelse Return NameLoad Assign AttributeStore NameLoad attr SubscriptLoad Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore BinOpMod Str AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Str Assign NameStore BinOpMod NameLoad Dict Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Str With Call NameLoad NameLoad NameStore body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad ListComp NameLoad comprehension NameStore AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num attr BoolOpAnd CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr Str Index Num Assign NameStore ListComp NameLoad comprehension NameStore AttributeLoad NameLoad attr BoolOpAnd CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Assign NameStore SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num With Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Dict Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Str Str Dict Dict Str AttributeLoad NameLoad attr NameLoad Str Dict Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Str Str Str For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If BoolOpAnd BoolOpAnd CompareNotEq NameLoad Str CompareNotEq NameLoad Str NameLoad body Assign NameStore SubscriptLoad NameLoad Slice Call NameLoad Str Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Delete SubscriptDel NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr CompareIn NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore NameLoad For NameStore NameLoad body If CompareEq SubscriptLoad Call AttributeLoad NameLoad attr Index Str NameLoad body Assign NameStore NameLoad Assign NameStore Dict Str Dict Str Str Dict Str NameLoad Dict Str Str Dict Str Str Dict Str Str Dict Str Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad NameLoad Assign NameStore Dict Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Str Str Str Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str keyword Dict Str Str AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad body For TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str keyword Dict Str Str AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore ListLoad Dict Str Str Str Str Str Str Str Str Str Str Dict Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Str Str Str Str Str Str Str Str Str Str Str Str Dict Str AttributeLoad NameLoad attr Str Str Str Str Str Str Str Str Str Str Str Str Dict Str Str Str AttributeLoad NameLoad attr Str Str Str Str Str Str Str Str Str Str Str Str Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr For TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad Call NameLoad NameLoad NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If BoolOpOr CompareIn NameLoad ListLoad Str Str CompareIn NameLoad Call AttributeLoad NameLoad attr body Delete SubscriptDel NameLoad Index NameLoad Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If BoolOpOr CompareEq NameLoad Str Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr TupleLoad BinOpAdd Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str keyword Dict Str Str AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore Call NameLoad Num AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Delete SubscriptDel NameLoad Index Num Delete SubscriptDel NameLoad Index Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num Expr Call AttributeLoad SubscriptLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Num attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str keyword Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Str Assign NameStore Call NameLoad keyword Call NameLoad NameLoad keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd NameLoad Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr CompareGt Call NameLoad AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Str Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Index Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad BinOpAdd NameLoad Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num Assign NameStore ListComp NameLoad comprehension NameStore AttributeLoad NameLoad attr BoolOpAnd CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Str UnaryOpNot Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore ListComp NameLoad comprehension NameStore AttributeLoad NameLoad attr BoolOpAnd CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Assign NameStore ListComp NameLoad comprehension NameStore AttributeLoad NameLoad attr BoolOpAnd CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr Str CompareEq Call AttributeLoad NameLoad attr Str BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Assign NameStore SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str BinOpMod Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Str attr ListLoad Str Str Str Str Assign NameStore Call NameLoad Str keyword Dict Str AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Dict Str NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore BinOpMult Str BinOpAdd NameLoad Num Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr attr Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad Str attr SubscriptLoad NameLoad Index Num NameLoad SubscriptLoad NameLoad Index Num Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr BinOpMult Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str Str decorator_list Call AttributeLoad NameLoad attr Str decorator_list
N/A N/A csv N/A fnmatch hashlib md5 N/A json N/A os N/A re N/A unittest django.core.urlresolvers reverse django.conf settings django_digest.test Client DigestClient django.core.files.uploadedfile UploadedFile xlrd open_workbook xml.dom minidom Node onadata.apps.main.models MetaData onadata.apps.logger.models XForm onadata.apps.logger.models.xform XFORM_TITLE_LENGTH onadata.apps.logger.xform_instance_parser clean_and_parse_xml onadata.apps.viewer.models.data_dictionary DataDictionary onadata.libs.utils.common_tags UUID SUBMISSION_TIME test_base TestBase N/A uuid_regex N/A N/A re compile (</instance>.*uuid[^//]+="\')([^\']+)(\'".*) N/A re DOTALL N/A xform_instances N/A N/A settings MONGO_DB instances TestProcess N/A TestBase N/A N/A loop_str loop_over_transport_types_frequency N/A frequency_str frequency_to_referral_facility N/A ambulance_key N/A %s/ambulance/%s N/A loop_str frequency_str N/A bicycle_key N/A %s/bicycle/%s N/A loop_str frequency_str N/A other_key N/A %s/other/%s N/A loop_str frequency_str N/A taxi_key N/A %s/taxi/%s N/A loop_str frequency_str N/A transport_ambulance_key N/A transport/%s ambulance_key N/A transport_bicycle_key N/A transport/%s bicycle_key N/A uuid_to_submission_times N/A 5b2cc313-fc09-437e-8149-fcd32f695d41 f3d8dc65-91a6-4d0f-9e97-802128083390 9c6f3468-cfda-46e8-84c1-75458e72805d 9f0a1508-c3b7-4c99-be00-9b237c26bcbf 2013-02-14T15:37:21 2013-02-14T15:37:22 2013-02-14T15:37:23 2013-02-14T15:37:24 setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestProcess self setUp N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A super TestProcess self tearDown N/A test_process N/A N/A self username password N/A None None N/A N/A N/A N/A self _publish_xls_file N/A N/A N/A self _check_formList N/A N/A N/A self _download_xform N/A N/A N/A self _make_submissions N/A N/A N/A self _update_dynamic_data N/A N/A N/A self _check_csv_export N/A N/A N/A self _check_delete N/A N/A N/A unittest skip Fails under Django 1.6 _update_dynamic_data N/A N/A self N/A N/A N/A 
        Update stuff like submission time so we can compare within out fixtures
         N/A N/A uuid submission_time N/A N/A N/A self uuid_to_submission_times iteritems N/A N/A N/A N/A xform_instances update N/A UUID uuid N/A $set N/A SUBMISSION_TIME submission_time N/A test_uuid_submit N/A N/A self N/A N/A N/A N/A N/A self _publish_xls_file N/A survey transport_2011-07-25_19-05-49 N/A path N/A N/A N/A os path join N/A self this_directory fixtures transportation instances survey N/A survey .xml N/A N/A open path f N/A N/A post_data N/A xml_submission_file uuid f N/A N/A self xform uuid N/A url /submission N/A N/A self response N/A N/A N/A self client post url post_data N/A test_publish_xlsx_file N/A N/A self N/A N/A N/A N/A N/A self _publish_xlsx_file N/A test_google_url_upload N/A N/A self N/A N/A N/A N/A N/A self _internet_on url http://google.com N/A N/A xls_url https://docs.google.com/spreadsheet/pub?key=0AvhZpT7ZLAWmdDhISGhqSjBOSl9XdXd5SHZHUUE2RFE&output=xls N/A pre_count N/A N/A N/A XForm objects count N/A response N/A N/A N/A self client post N/A /%s/ N/A N/A self user username N/A xls_url xls_url N/A N/A N/A self assertEqual N/A response status_code 200 N/A N/A N/A self assertEqual N/A N/A N/A XForm objects count N/A pre_count 1 N/A test_url_upload N/A N/A self N/A N/A N/A N/A N/A self _internet_on url http://google.com N/A N/A xls_url https://ona.io/examples/forms/tutorial/form.xls N/A pre_count N/A N/A N/A XForm objects count N/A response N/A N/A N/A self client post N/A /%s/ N/A N/A self user username N/A xls_url xls_url N/A N/A N/A self assertEqual N/A response status_code 200 N/A N/A N/A self assertEqual N/A N/A N/A XForm objects count N/A pre_count 1 N/A N/A N/A unittest skip Fails under Django 1.6 test_bad_url_upload N/A N/A self N/A N/A N/A xls_url formhuborg/pld/forms/transportation_2011_07_25/form.xls N/A pre_count N/A N/A N/A XForm objects count N/A response N/A N/A N/A self client post N/A /%s/ N/A N/A self user username N/A xls_url xls_url N/A N/A N/A self assertEqual N/A response status_code 200 N/A N/A N/A self assertEqual N/A N/A N/A XForm objects count pre_count N/A test_upload_all_xls N/A N/A self N/A N/A N/A root_dir N/A N/A N/A os path join N/A self this_directory fixtures online_xls N/A N/A N/A N/A os path exists root_dir N/A N/A success True N/A N/A root sub_folders filenames N/A N/A os walk root_dir N/A N/A filename N/A N/A fnmatch filter filenames *.xls N/A N/A success N/A N/A self _publish_file N/A N/A N/A os path join root filename False N/A success N/A N/A N/A self xform N/A N/A N/A N/A N/A self xform delete N/A N/A self xform None N/A N/A finished sub-folder %s root N/A N/A N/A self assertEqual success True N/A test_url_upload_non_dot_xls_path N/A N/A self N/A N/A N/A N/A N/A self _internet_on N/A N/A xls_url http://formhub.org/formhub_u/forms/tutorial/form.xls N/A pre_count N/A N/A N/A XForm objects count N/A response N/A N/A N/A self client post N/A /%s/ N/A N/A self user username N/A xls_url xls_url N/A N/A N/A self assertEqual N/A response status_code 200 N/A N/A N/A self assertEqual N/A N/A N/A XForm objects count N/A pre_count 1 N/A test_not_logged_in_cannot_upload N/A N/A self N/A N/A N/A path N/A N/A N/A os path join N/A self this_directory fixtures transportation transportation.xls N/A N/A N/A N/A path startswith N/A /%s/ N/A N/A self user username N/A N/A path N/A N/A N/A os path join N/A self this_directory path N/A N/A open path xls_file N/A N/A post_data N/A xls_file xls_file N/A N/A N/A N/A self client post N/A /%s/ N/A N/A self user username post_data N/A _publish_file N/A N/A self xls_path strict N/A True N/A N/A 
        Returns False if not strict and publish fails
         N/A pre_count N/A N/A N/A XForm objects count N/A N/A self response N/A N/A TestBase _publish_xls_file self xls_path N/A N/A N/A self assertEqual N/A N/A self response status_code 200 N/A N/A N/A N/A N/A XForm objects count N/A pre_count 1 N/A N/A N/A 
Publish Failure for file: %s xls_path N/A strict N/A N/A N/A N/A self assertEqual N/A N/A N/A XForm objects count N/A pre_count 1 N/A N/A False N/A N/A self xform N/A N/A list N/A N/A N/A XForm objects all N/A -1 N/A True N/A _publish_xls_file N/A N/A self N/A N/A N/A xls_path N/A N/A N/A os path join N/A self this_directory fixtures transportation transportation.xls N/A N/A N/A self _publish_file xls_path N/A N/A N/A self assertEqual N/A N/A self xform id_string transportation_2011_07_25 N/A _check_formList N/A N/A self N/A N/A N/A url N/A /%s/formList N/A N/A self user username N/A client N/A DigestClient N/A N/A N/A client set_authorization bob bob N/A response N/A N/A client get url N/A N/A self download_url N/A http://testserver/%s/forms/%s/form.xml N/A N/A N/A self user username N/A N/A self xform pk N/A N/A self manifest_url N/A http://testserver/%s/xformsManifest/%s N/A N/A N/A self user username N/A N/A self xform pk N/A md5_hash N/A N/A N/A md5 N/A N/A self xform xml hexdigest N/A expected_content <?xml version="1.0" encoding="utf-8"?>
<xforms xmlns="http://openrosa.org/xforms/xformsList"><xform><formID>transportation_2011_07_25</formID><name>transportation_2011_07_25</name><majorMinorVersion></majorMinorVersion><version></version><hash>md5:%(hash)s</hash><descriptionText>transportation_2011_07_25</descriptionText><downloadUrl>%(download_url)s</downloadUrl><manifestUrl>%(manifest_url)s</manifestUrl></xform></xforms> N/A expected_content N/A expected_content N/A download_url manifest_url hash N/A self download_url N/A self manifest_url md5_hash N/A N/A N/A self assertEqual N/A response content expected_content N/A N/A N/A self assertTrue N/A N/A response has_header X-OpenRosa-Version N/A N/A N/A self assertTrue N/A N/A response has_header Date N/A _download_xform N/A N/A self N/A N/A N/A client N/A DigestClient N/A N/A N/A client set_authorization bob bob N/A response N/A N/A client get N/A self download_url N/A response_doc N/A N/A minidom parseString N/A response content N/A xml_path N/A N/A N/A os path join N/A self this_directory fixtures transportation transportation.xml N/A N/A open xml_path xml_file N/A N/A expected_doc N/A N/A minidom parse xml_file N/A model_node N/A N/A n N/A n N/A N/A N/A N/A response_doc getElementsByTagName h:head N/A 0 childNodes N/A N/A N/A n nodeType N/A Node ELEMENT_NODE N/A N/A n tagName model N/A 0 N/A uuid_nodes N/A node N/A node N/A model_node childNodes N/A N/A N/A node nodeType N/A Node ELEMENT_NODE N/A N/A N/A node getAttribute nodeset /transportation/formhub/uuid N/A N/A N/A self assertEqual N/A len uuid_nodes 1 N/A uuid_node N/A uuid_nodes N/A 0 N/A N/A N/A uuid_node setAttribute calculate '' N/A N/A N/A self assertEqual N/A N/A response_doc toxml N/A N/A expected_doc toxml N/A _check_csv_export N/A N/A self N/A N/A N/A N/A N/A self _check_data_dictionary N/A N/A N/A self _check_data_for_csv_export N/A N/A N/A self _check_group_xpaths_do_not_appear_in_dicts_for_export N/A N/A N/A self _check_csv_export_first_pass N/A N/A N/A self _check_csv_export_second_pass N/A _check_data_dictionary N/A N/A self N/A N/A N/A qs N/A N/A N/A DataDictionary objects filter user N/A self user N/A N/A N/A self assertEqual N/A N/A qs count 1 N/A N/A self data_dictionary N/A N/A N/A N/A DataDictionary objects all N/A 0 N/A N/A open N/A N/A N/A os path join N/A self this_directory fixtures transportation headers.json f N/A N/A expected_list N/A N/A json load f N/A N/A N/A self assertEqual N/A N/A N/A self data_dictionary get_headers expected_list N/A actual_csv N/A N/A self _get_csv_ N/A N/A N/A self assertEqual N/A sorted N/A N/A actual_csv next N/A sorted expected_list N/A _check_data_for_csv_export N/A N/A self N/A N/A N/A data N/A N/A available_transportation_types_to_referral_facility/ambulance available_transportation_types_to_referral_facility/bicycle N/A self ambulance_key N/A self bicycle_key True True daily weekly N/A N/A available_transportation_types_to_referral_facility/ambulance N/A self ambulance_key True weekly N/A available_transportation_types_to_referral_facility/taxi available_transportation_types_to_referral_facility/other available_transportation_types_to_referral_facility_other N/A self taxi_key N/A self other_key True True camel daily other N/A d_from_db N/A N/A N/A self data_dictionary get_data_for_excel N/A N/A N/A k v N/A N/A d_from_db items N/A N/A N/A N/A N/A k _xform_id_string N/A k meta/instanceID v N/A N/A new_key N/A k N/A N/A len transport/ N/A N/A d_from_db N/A new_key N/A d_from_db N/A k N/A N/A d_from_db N/A k N/A N/A N/A self assertTrue N/A d_from_db data N/A N/A N/A data remove d_from_db N/A N/A N/A self assertEquals data N/A N/A _check_group_xpaths_do_not_appear_in_dicts_for_export N/A N/A self N/A N/A N/A uuid uuid:f3d8dc65-91a6-4d0f-9e97-802128083390 N/A instances N/A N/A N/A N/A self xform instances all N/A instance None N/A i instances N/A N/A N/A N/A N/A N/A i get_dict N/A meta/instanceID uuid N/A N/A instance i N/A expected_dict N/A transportation N/A meta transport N/A instanceID uuid N/A loop_over_transport_types_frequency available_transportation_types_to_referral_facility N/A bicycle ambulance N/A frequency_to_referral_facility weekly N/A frequency_to_referral_facility daily ambulance bicycle N/A N/A N/A self assertEqual N/A N/A instance get_dict flat False expected_dict N/A expected_dict N/A transport/available_transportation_types_to_referral_facility N/A self transport_ambulance_key N/A self transport_bicycle_key _xform_id_string meta/instanceID ambulance bicycle daily weekly transportation_2011_07_25 uuid N/A N/A N/A self assertEqual N/A N/A instance get_dict expected_dict N/A _get_csv_ N/A N/A self N/A N/A N/A url N/A reverse csv_export kwargs N/A username id_string N/A N/A self user username N/A N/A self xform id_string N/A response N/A N/A N/A self client get url N/A N/A N/A self assertEqual N/A response status_code 200 N/A actual_csv N/A N/A self _get_response_content response N/A actual_lines N/A N/A actual_csv split N/A N/A N/A csv reader actual_lines N/A _check_csv_export_first_pass N/A N/A self N/A N/A N/A actual_csv N/A N/A self _get_csv_ N/A f N/A open N/A N/A N/A os path join N/A self this_directory fixtures transportation transportation.csv r N/A expected_csv N/A N/A csv reader f N/A N/A actual_row expected_row N/A zip actual_csv expected_csv N/A N/A N/A actual_cell expected_cell N/A zip actual_row expected_row N/A N/A N/A N/A self assertEqual actual_cell expected_cell N/A N/A N/A f close N/A _check_csv_export_second_pass N/A N/A self N/A N/A N/A url N/A reverse csv_export kwargs N/A username id_string N/A N/A self user username N/A N/A self xform id_string N/A response N/A N/A N/A self client get url N/A N/A N/A self assertEqual N/A response status_code 200 N/A actual_csv N/A N/A self _get_response_content response N/A actual_lines N/A N/A actual_csv split N/A actual_csv N/A N/A csv reader actual_lines N/A headers N/A N/A actual_csv next N/A data N/A N/A meta/instanceID _uuid _submission_time _tags _notes uuid:5b2cc313-fc09-437e-8149-fcd32f695d41 5b2cc313-fc09-437e-8149-fcd32f695d41 2013-02-14T15:37:21 N/A available_transportation_types_to_referral_facility/ambulance available_transportation_types_to_referral_facility/bicycle N/A self ambulance_key N/A self bicycle_key meta/instanceID _uuid _submission_time _tags _notes True True daily weekly uuid:f3d8dc65-91a6-4d0f-9e97-802128083390 f3d8dc65-91a6-4d0f-9e97-802128083390 2013-02-14T15:37:22 N/A available_transportation_types_to_referral_facility/ambulance N/A self ambulance_key meta/instanceID _uuid _submission_time _tags _notes True weekly uuid:9c6f3468-cfda-46e8-84c1-75458e72805d 9c6f3468-cfda-46e8-84c1-75458e72805d 2013-02-14T15:37:23 N/A available_transportation_types_to_referral_facility/taxi available_transportation_types_to_referral_facility/other available_transportation_types_to_referral_facility_other N/A self taxi_key meta/instanceID _uuid _submission_time _tags _notes True True camel daily uuid:9f0a1508-c3b7-4c99-be00-9b237c26bcbf 9f0a1508-c3b7-4c99-be00-9b237c26bcbf 2013-02-14T15:37:24 N/A dd N/A N/A N/A DataDictionary objects get pk N/A N/A self xform pk N/A N/A row expected_dict N/A zip actual_csv data N/A N/A d N/A dict N/A zip headers row N/A N/A k v N/A N/A d items N/A N/A N/A N/A v N/A n/a False N/A k N/A N/A dd _additional_headers N/A N/A N/A d N/A k N/A l N/A N/A N/A k v N/A N/A expected_dict items N/A N/A N/A N/A k meta/instanceID N/A N/A k startswith _ N/A N/A N/A N/A l append N/A k v N/A N/A N/A N/A l append N/A N/A transport/ k v N/A N/A N/A self assertEqual d N/A dict l N/A test_xls_export_content N/A N/A self N/A N/A N/A N/A N/A self _publish_xls_file N/A N/A N/A self _make_submissions N/A N/A N/A self _update_dynamic_data N/A N/A N/A self _check_xls_export N/A _check_xls_export N/A N/A self N/A N/A N/A xls_export_url N/A reverse xls_export kwargs N/A username id_string N/A N/A self user username N/A N/A self xform id_string N/A response N/A N/A N/A self client get xls_export_url N/A expected_xls N/A open_workbook N/A N/A N/A os path join N/A self this_directory fixtures transportation transportation_export.xls N/A content N/A N/A self _get_response_content response N/A actual_xls N/A open_workbook file_contents content N/A actual_sheet N/A N/A actual_xls sheet_by_index 0 N/A expected_sheet N/A N/A expected_xls sheet_by_index 0 N/A N/A N/A self assertEqual N/A N/A actual_sheet row_values 0 N/A N/A expected_sheet row_values 0 N/A N/A N/A self assertEqual N/A actual_sheet ncols N/A expected_sheet ncols N/A N/A N/A self assertEqual N/A actual_sheet nrows N/A expected_sheet nrows N/A i N/A range 1 N/A actual_sheet nrows N/A N/A actual_row N/A N/A actual_sheet row_values i N/A expected_row N/A N/A expected_sheet row_values i N/A N/A actual_row N/A 22 N/A N/A expected_row N/A 22 N/A N/A N/A self assertEqual actual_row expected_row N/A _check_delete N/A N/A self N/A N/A N/A N/A N/A self assertEquals N/A N/A N/A N/A self user xforms count 1 N/A N/A N/A N/A N/A N/A N/A N/A self user xforms all N/A 0 delete N/A N/A N/A self assertEquals N/A N/A N/A N/A self user xforms count 0 N/A test_405_submission N/A N/A self N/A N/A N/A url N/A reverse submissions N/A response N/A N/A N/A self client get url N/A N/A N/A self assertContains response Method "GET" not allowed status_code 405 N/A test_publish_bad_xls_with_unicode_in_error N/A N/A self N/A N/A N/A 
        Check that publishing a bad xls where the error has a unicode character
        returns a 200, thus showing a readable error to the user
         N/A N/A N/A self _create_user_and_login N/A path N/A N/A N/A os path join N/A self this_directory fixtures form_with_unicode_in_relevant_column.xlsx N/A response N/A N/A TestBase _publish_xls_file self path N/A N/A N/A self assertEqual N/A response status_code 200 N/A test_metadata_file_hash N/A N/A self N/A N/A N/A N/A N/A self _publish_transportation_form N/A src N/A N/A N/A os path join N/A self this_directory fixtures transportation screenshot.png N/A uf N/A UploadedFile file N/A open src content_type image/png N/A count N/A N/A N/A MetaData objects count N/A N/A N/A MetaData media_upload N/A self xform uf N/A N/A N/A self assertEqual N/A N/A N/A MetaData objects count N/A count 1 N/A md N/A N/A N/A MetaData objects get xform N/A self xform data_value screenshot.png N/A N/A N/A self assertTrue N/A N/A len N/A md hash 16 N/A test_uuid_injection_in_cascading_select N/A N/A self N/A N/A N/A Test that the uuid is injected in the right instance node for
        forms with a cascading select N/A pre_count N/A N/A N/A XForm objects count N/A xls_path N/A N/A N/A os path join N/A self this_directory fixtures cascading_selects new_cascading_select.xls N/A N/A file_name file_ext N/A N/A N/A os path splitext N/A N/A N/A N/A os path split xls_path N/A 1 N/A N/A self response N/A N/A TestBase _publish_xls_file self xls_path N/A post_count N/A N/A N/A XForm objects count N/A N/A N/A self assertEqual post_count N/A pre_count 1 N/A xform N/A N/A N/A XForm objects latest date_created N/A xml N/A clean_and_parse_xml N/A xform xml N/A model_node N/A N/A N/A xml getElementsByTagName model N/A 0 N/A instance_nodes N/A node N/A node N/A model_node childNodes N/A N/A N/A node nodeType N/A Node ELEMENT_NODE N/A N/A N/A N/A node tagName lower instance N/A N/A N/A node hasAttribute id N/A N/A N/A self assertEqual N/A len instance_nodes 1 N/A instance_node N/A instance_nodes N/A 0 N/A form_nodes N/A node N/A node N/A instance_node childNodes N/A N/A N/A node nodeType N/A Node ELEMENT_NODE N/A N/A N/A node getAttribute id N/A xform id_string N/A form_node N/A form_nodes N/A 0 N/A formhub_nodes N/A N/A form_node getElementsByTagName formhub N/A N/A N/A self assertEqual N/A len formhub_nodes 1 N/A uuid_nodes N/A N/A N/A formhub_nodes N/A 0 getElementsByTagName uuid N/A N/A N/A self assertEqual N/A len uuid_nodes 1 N/A calculate_bind_nodes N/A node N/A node N/A model_node childNodes N/A N/A N/A node nodeType N/A Node ELEMENT_NODE N/A N/A node tagName bind N/A N/A N/A node getAttribute nodeset N/A /%s/formhub/uuid file_name N/A N/A N/A self assertEqual N/A len calculate_bind_nodes 1 N/A calculate_bind_node N/A calculate_bind_nodes N/A 0 N/A N/A N/A self assertEqual N/A N/A calculate_bind_node getAttribute calculate N/A '%s' N/A xform uuid N/A test_csv_publishing N/A N/A self N/A N/A N/A csv_text N/A N/A join N/A survey,, ,type,name,label ,text,whatsyourname,"What is your name?" choices,, N/A url N/A reverse onadata.apps.main.views.profile kwargs N/A username N/A N/A self user username N/A num_xforms N/A N/A N/A XForm objects count N/A params N/A text_xls_form csv_text N/A N/A self response N/A N/A N/A self client post url params N/A N/A N/A self assertEqual N/A N/A N/A XForm objects count N/A num_xforms 1 N/A test_truncate_xform_title_to_255 N/A N/A self N/A N/A N/A N/A N/A self _publish_transportation_form N/A title N/A a N/A XFORM_TITLE_LENGTH 1 N/A groups N/A N/A N/A N/A re match (.+<h:title>)([^<]+)(</h:title>.*) N/A N/A self xform xml N/A re DOTALL groups N/A N/A N/A self xform xml N/A N/A {0}{1}{2} format N/A groups N/A 0 title N/A groups N/A 2 N/A N/A N/A self xform title title N/A N/A N/A N/A self xform save N/A N/A N/A self assertEqual N/A N/A self xform title N/A a XFORM_TITLE_LENGTH N/A test_multiple_submissions_by_different_users N/A N/A self N/A N/A N/A 
        We had a problem when two users published the same form that the
        CSV export would break.
         N/A N/A N/A TestProcess test_process self N/A N/A N/A TestProcess test_process self doug doug N/A N/A N/A unittest skip Fails under Django 1.6 N/A