Module ImportFrom kamaki.cli.config alias Config ImportFrom kamaki.clients alias astakos alias cyclades alias ClientError ImportFrom kamaki.clients.utils alias https Expr Call AttributeLoad NameLoad https attr patch_with_certs Str /etc/ssl/certs/ca-certificates.crt Assign NameStore cnf Call NameLoad Config Assign NameStore CLOUD Call AttributeLoad NameLoad cnf attr get Str global Str default_cloud Assign NameStore URL Call AttributeLoad NameLoad cnf attr get_cloud NameLoad CLOUD Str url Assign NameStore TOKEN Call AttributeLoad NameLoad cnf attr get_cloud NameLoad CLOUD Str token Assign NameStore identity_client Call AttributeLoad NameLoad astakos attr CachedAstakosClient NameLoad URL NameLoad TOKEN Assign NameStore computeURL Call AttributeLoad NameLoad identity_client attr get_endpoint_url AttributeLoad AttributeLoad NameLoad cyclades attr CycladesComputeClient attr service_type Assign NameStore compute_client Call AttributeLoad NameLoad cyclades attr CycladesComputeClient NameLoad computeURL NameLoad TOKEN Assign NameStore srv Call NameLoad dict keyword id Num 613275 FunctionDef assert_status arguments args NameParam new NameParam expected defaults body Assert CompareIsNot NameLoad new NameLoad None BinOpMod Str Timeout-while-waiting-for-status-%s NameLoad expected Assert CompareEq NameLoad new NameLoad expected BinOpMod Str Server-did-not-reach-status-%s NameLoad expected decorator_list Assign SubscriptStore NameLoad srv Index Str status SubscriptLoad Call AttributeLoad NameLoad compute_client attr get_server_details SubscriptLoad NameLoad srv Index Str id Index Str status Expr Call AttributeLoad NameLoad compute_client attr shutdown_server SubscriptLoad NameLoad srv Index Str id Print Str Wait-for-server-to-shutdown Assign SubscriptStore NameLoad srv Index Str status Call AttributeLoad NameLoad compute_client attr wait_server SubscriptLoad NameLoad srv Index Str id SubscriptLoad NameLoad srv Index Str status Expr Call NameLoad assert_status SubscriptLoad NameLoad srv Index Str status Str STOPPED Print Str ...-OK Expr Call AttributeLoad NameLoad compute_client attr start_server SubscriptLoad NameLoad srv Index Str id Print Str Wait-for-server-to-start Assign SubscriptStore NameLoad srv Index Str status Call AttributeLoad NameLoad compute_client attr wait_server SubscriptLoad NameLoad srv Index Str id SubscriptLoad NameLoad srv Index Str status Expr Call NameLoad assert_status SubscriptLoad NameLoad srv Index Str status Str ACTIVE Print Str ...-OK Expr Call AttributeLoad NameLoad compute_client attr reboot_server SubscriptLoad NameLoad srv Index Str id Print Str Wait-for-server-to-reboot Assign SubscriptStore NameLoad srv Index Str status Call AttributeLoad NameLoad compute_client attr wait_server SubscriptLoad NameLoad srv Index Str id Str REBOOT Expr Call NameLoad assert_status SubscriptLoad NameLoad srv Index Str status Str ACTIVE Print Str ...-OK Expr Call AttributeLoad NameLoad compute_client attr delete_server SubscriptLoad NameLoad srv Index Str id Print Str Wait-for-server-to-be-deleted Assign SubscriptStore NameLoad srv Index Str status Call AttributeLoad NameLoad compute_client attr wait_server SubscriptLoad NameLoad srv Index Str id SubscriptLoad NameLoad srv Index Str status Expr Call NameLoad assert_status SubscriptLoad NameLoad srv Index Str status Str DELETED Print Str ...-OK 
Module ImportFrom mixbox alias entities ImportFrom mixbox.vendor alias six Import alias cybox.bindings.cybox_common identifier common_binding ClassDef StructuredText bases AttributeLoad NameLoad entities attr Entity body Assign NameStore _binding NameLoad common_binding Assign NameStore _namespace Str http://cybox.mitre.org/common-2 FunctionDef __init__ arguments args NameParam self NameParam value defaults NameLoad None body Expr Call AttributeLoad Call NameLoad super NameLoad StructuredText NameLoad self attr __init__ Assign AttributeStore NameLoad self attr value NameLoad value Assign AttributeStore NameLoad self attr structuring_format NameLoad None decorator_list FunctionDef to_obj arguments args NameParam self NameParam return_obj NameParam ns_info defaults NameLoad None NameLoad None body Expr Call AttributeLoad NameLoad self attr _collect_ns_info NameLoad ns_info If UnaryOpNot NameLoad return_obj body Assign NameStore return_obj Call AttributeLoad NameLoad common_binding attr StructuredTextType Assign AttributeStore NameLoad return_obj attr valueOf_ AttributeLoad NameLoad self attr value If CompareIsNot AttributeLoad NameLoad self attr structuring_format NameLoad None body Assign AttributeStore NameLoad return_obj attr structuring_format AttributeLoad NameLoad self attr structuring_format Return NameLoad return_obj decorator_list FunctionDef to_dict arguments args NameParam self defaults body If Call AttributeLoad NameLoad self attr is_plain body Return AttributeLoad NameLoad self attr value Assign NameStore text_dict Dict Assign SubscriptStore NameLoad text_dict Index Str value AttributeLoad NameLoad self attr value Assign SubscriptStore NameLoad text_dict Index Str structuring_format AttributeLoad NameLoad self attr structuring_format Return NameLoad text_dict decorator_list FunctionDef is_plain arguments args NameParam self defaults body Expr Str Whether-this-can-be-represented-as-a-string-rather-than-a-dictionary--------Subclasses-can-override-this-to-include-their-custom-fields-in-this--------check:------------return-(super(...,-self).is_plain()-and-self.other_field-is-None) Return CompareIs AttributeLoad NameLoad self attr structuring_format NameLoad None decorator_list FunctionDef from_obj arguments args NameParam cls NameParam text_obj NameParam text defaults NameLoad None body If UnaryOpNot NameLoad text_obj body Return NameLoad None If UnaryOpNot NameLoad text body Assign NameStore text Call NameLoad StructuredText Assign AttributeStore NameLoad text attr value AttributeLoad NameLoad text_obj attr valueOf_ Assign AttributeStore NameLoad text attr structuring_format AttributeLoad NameLoad text_obj attr structuring_format Return NameLoad text decorator_list NameLoad classmethod FunctionDef from_dict arguments args NameParam cls NameParam text_dict NameParam text defaults NameLoad None body If CompareIs NameLoad text_dict NameLoad None body Return NameLoad None If UnaryOpNot NameLoad text body Assign NameStore text Call NameLoad StructuredText If UnaryOpNot Call NameLoad isinstance NameLoad text_dict NameLoad dict body Assign AttributeStore NameLoad text attr value NameLoad text_dict orelse Assign AttributeStore NameLoad text attr value Call AttributeLoad NameLoad text_dict attr get Str value Assign AttributeStore NameLoad text attr structuring_format Call AttributeLoad NameLoad text_dict attr get Str structuring_format Return NameLoad text decorator_list NameLoad classmethod FunctionDef __str__ arguments args NameParam self defaults body Return Call AttributeLoad NameLoad six attr text_type AttributeLoad NameLoad self attr value decorator_list decorator_list AttributeLoad NameLoad six attr python_2_unicode_compatible 
Module ImportFrom mock alias Mock alias patch ClassDef TestEngine bases NameLoad object body FunctionDef test_includeme arguments args NameParam self NameParam mock_resolve defaults body Assign NameStore module Call NameLoad Mock Assign NameStore config Call NameLoad Mock Assign AttributeStore AttributeLoad NameLoad config attr registry attr settings Dict Str nefertari.engine Str foo Assign AttributeStore NameLoad module attr log Num 1 Assign AttributeStore NameLoad module attr __testvar__ Num 3 Assign AttributeStore NameLoad module attr another_var Num 4 Assign AttributeStore NameLoad module attr includeme Num 42 Assign AttributeStore NameLoad module attr __all__ ListLoad Str another_var Str includeme Assign AttributeStore NameLoad mock_resolve attr return_value NameLoad module ImportFrom nefertari alias engine Assert UnaryOpNot Call NameLoad hasattr NameLoad engine Str log Assert UnaryOpNot Call NameLoad hasattr NameLoad engine Str __testvar__ Assert UnaryOpNot Call NameLoad hasattr NameLoad engine Str another_var Expr Call AttributeLoad NameLoad engine attr includeme NameLoad config Expr Call AttributeLoad AttributeLoad NameLoad config attr include attr assert_called_once_with Str foo Expr Call AttributeLoad NameLoad mock_resolve attr assert_called_with Str foo Assert UnaryOpNot Call NameLoad hasattr NameLoad engine Str log Assert UnaryOpNot Call NameLoad hasattr NameLoad engine Str __testvar__ Assert Call NameLoad hasattr NameLoad engine Str another_var Assert CompareEq AttributeLoad NameLoad engine attr engines TupleLoad NameLoad module decorator_list Call NameLoad patch Str nefertari.engine.resolve FunctionDef test_multiple_engines arguments args NameParam self NameParam mock_resolve defaults body ImportFrom nefertari alias engine Assign NameStore foo Call NameLoad Mock Assign NameStore bar Call NameLoad Mock Assign AttributeStore NameLoad foo attr __all__ ListLoad Str one Str two Assign AttributeStore NameLoad bar attr __all__ ListLoad Str three Str four Assign NameStore config Call NameLoad Mock Assign AttributeStore AttributeLoad NameLoad config attr registry attr settings Dict Str nefertari.engine ListLoad Str foo Str bar Assign AttributeStore NameLoad mock_resolve attr side_effect Lambda arguments args NameParam m defaults IfExp CompareEq NameLoad m Str foo NameLoad foo NameLoad bar Expr Call AttributeLoad NameLoad engine attr includeme NameLoad config Expr Call AttributeLoad AttributeLoad NameLoad config attr include attr assert_any_call Str foo Expr Call AttributeLoad AttributeLoad NameLoad config attr include attr assert_any_call Str bar Expr Call AttributeLoad NameLoad mock_resolve attr assert_any_call Str foo Expr Call AttributeLoad NameLoad mock_resolve attr assert_any_call Str bar Assert UnaryOpNot Call NameLoad hasattr NameLoad engine Str three Assert UnaryOpNot Call NameLoad hasattr NameLoad engine Str four Assert Call NameLoad hasattr NameLoad engine Str one Assert Call NameLoad hasattr NameLoad engine Str two Assert CompareEq AttributeLoad NameLoad engine attr engines TupleLoad NameLoad foo NameLoad bar decorator_list Call NameLoad patch Str nefertari.engine.resolve decorator_list 
Module ImportFrom os.path alias join alias abspath alias dirname Import alias threading ImportFrom twilio.rest alias TwilioRestClient ImportFrom jinja2 alias Environment alias FileSystemLoader ImportFrom amonone.utils.dates alias dateformat_local ImportFrom amonone.sms.models alias sms_model FunctionDef _send_sms_in_thread arguments args NameParam client NameParam from_ NameParam to NameParam body defaults NameLoad None NameLoad None NameLoad None NameLoad None body TryExcept body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad client attr sms attr messages attr create keyword to NameLoad to keyword from_ NameLoad from_ keyword body NameLoad body handlers ExceptHandler type NameLoad Exception name NameStore e body Raise NameLoad e Expr Call AttributeLoad NameLoad logging attr exception Str Can't-send-SMS decorator_list FunctionDef send_test_sms arguments args NameParam recepient defaults NameLoad None body Assign NameStore details Call AttributeLoad NameLoad sms_model attr get Assign NameStore client Call NameLoad TwilioRestClient SubscriptLoad NameLoad details Index Str account SubscriptLoad NameLoad details Index Str token Assign NameStore t Call AttributeLoad NameLoad threading attr Thread keyword target NameLoad _send_sms_in_thread keyword kwargs Dict Str client Str from_ Str to Str body NameLoad client SubscriptLoad NameLoad details Index Str from_ NameLoad recepient Str Amon-alert! Expr Call AttributeLoad NameLoad t attr start decorator_list FunctionDef render_template arguments args NameParam alert NameParam template defaults NameLoad None NameLoad None body Assign NameStore ROOT Call NameLoad abspath Call NameLoad dirname NameLoad __file__ Assign NameStore TEMPLATES_DIR Call NameLoad join NameLoad ROOT Str templates Assign NameStore env Call NameLoad Environment keyword loader Call NameLoad FileSystemLoader NameLoad TEMPLATES_DIR Assign SubscriptStore AttributeLoad NameLoad env attr filters Index Str date_local NameLoad dateformat_local Assign NameStore template_file Call AttributeLoad NameLoad env attr get_template NameLoad template Assign NameStore rendered_template Call AttributeLoad NameLoad template_file attr render keyword alert NameLoad alert Return NameLoad rendered_template decorator_list FunctionDef send_sms arguments args NameParam alert NameParam recepients NameParam template defaults NameLoad None NameLoad None NameLoad None body Assign NameStore details Call AttributeLoad NameLoad sms_model attr get TryExcept body Assign NameStore client Call NameLoad TwilioRestClient SubscriptLoad NameLoad details Index Str account SubscriptLoad NameLoad details Index Str token handlers ExceptHandler body Assign NameStore client NameLoad None If CompareNotEq NameLoad client NameLoad None body Assign NameStore body Call NameLoad render_template keyword alert NameLoad alert keyword template NameLoad template For NameStore recepient NameLoad recepients body Assign NameStore t Call AttributeLoad NameLoad threading attr Thread keyword target NameLoad _send_sms_in_thread keyword kwargs Dict Str client Str from_ Str to Str body NameLoad client SubscriptLoad NameLoad details Index Str from_ SubscriptLoad NameLoad recepient Index Str phone NameLoad body Expr Call AttributeLoad NameLoad t attr start decorator_list 
Module ImportFrom os alias environ identifier env Import alias web ImportFrom karesansui alias KaresansuiGadgetException ImportFrom karesansui.lib.rest alias Rest alias auth ImportFrom karesansui.lib.net.http alias is_ssl ImportFrom karesansui.lib.file.k2v alias K2V ImportFrom karesansui.lib.virt.virt alias KaresansuiVirtConnection alias KaresansuiVirtException ImportFrom karesansui.lib.merge alias MergeHost ImportFrom karesansui.db.access.machine alias findbyhostall ImportFrom karesansui.lib.utils alias available_virt_uris ClassDef Tree bases NameLoad Rest body FunctionDef _post arguments args NameParam self NameParam f defaults body Assign NameStore ret Call AttributeLoad NameLoad Rest attr _post NameLoad self NameLoad f If CompareIs Call NameLoad hasattr NameLoad self Str kvc NameLoad True body Expr Call AttributeLoad AttributeLoad NameLoad self attr kvc attr close Return NameLoad ret decorator_list FunctionDef _GET arguments args NameParam self defaults vararg param kwarg params body Assign NameStore models Call NameLoad findbyhostall AttributeLoad NameLoad self attr orm Assign NameStore uris Call NameLoad available_virt_uris TryExcept body Assign NameStore conf Call AttributeLoad NameLoad env attr get Str KARESANSUI_CONF Assign NameStore _K2V Call NameLoad K2V NameLoad conf Assign NameStore config Call AttributeLoad NameLoad _K2V attr read handlers ExceptHandler type TupleLoad NameLoad IOError NameLoad KaresansuiGadgetException body Raise NameLoad KaresansuiGadgetException Assign AttributeStore AttributeLoad NameLoad self attr view attr application_uniqkey SubscriptLoad NameLoad config Index Str application.uniqkey Assign NameStore port_number Num 443 TryExcept body Assign NameStore hosts ListLoad For NameStore model NameLoad models body If BoolOpAnd CompareEq AttributeLoad NameLoad model attr attribute Num 0 CompareEq AttributeLoad NameLoad model attr hypervisor Num 1 body Assign NameStore uri SubscriptLoad NameLoad uris Index Str XEN orelse If BoolOpAnd CompareEq AttributeLoad NameLoad model attr attribute Num 0 CompareEq AttributeLoad NameLoad model attr hypervisor Num 2 body Assign NameStore uri SubscriptLoad NameLoad uris Index Str KVM orelse Assign NameStore uri NameLoad None Assign AttributeStore NameLoad self attr kvc Call NameLoad KaresansuiVirtConnection NameLoad uri Assign NameStore host Call NameLoad MergeHost AttributeLoad NameLoad self attr kvc NameLoad model Assign AttributeStore SubscriptLoad AttributeLoad NameLoad host attr info Index Str model attr is_ssl Call NameLoad is_ssl AttributeLoad SubscriptLoad AttributeLoad NameLoad host attr info Index Str model attr hostname Assign AttributeStore SubscriptLoad AttributeLoad NameLoad host attr info Index Str model attr port_number NameLoad port_number Expr Call AttributeLoad NameLoad hosts attr append NameLoad host Assign AttributeStore AttributeLoad NameLoad self attr view attr machines NameLoad hosts handlers ExceptHandler type NameLoad KaresansuiVirtException body If CompareIs Call NameLoad hasattr NameLoad self Str kvc NameLoad True body Expr Call AttributeLoad AttributeLoad NameLoad self attr kvc attr close Raise NameLoad KaresansuiGadgetException Return NameLoad True decorator_list NameLoad auth decorator_list Assign NameStore urls TupleLoad Str /tree/?(\\.part)$ NameLoad Tree 
Module ImportFrom setuptools alias setup alias find_packages Import alias os FunctionDef fullsplit arguments args NameParam path NameParam result defaults NameLoad None body Expr Str Split-a-pathname-into-components-(the-opposite-of-os.path.join)----in-a-platform-neutral-way.--From-django. If CompareIs NameLoad result NameLoad None body Assign NameStore result ListLoad Assign TupleStore NameStore head NameStore tail Call AttributeLoad AttributeLoad NameLoad os attr path attr split NameLoad path If CompareEq NameLoad head Str null body Return BinOpAdd ListLoad NameLoad tail NameLoad result If CompareEq NameLoad head NameLoad path body Return NameLoad result Return Call NameLoad fullsplit NameLoad head BinOpAdd ListLoad NameLoad tail NameLoad result decorator_list Assign NameStore packages ListLoad Assign NameStore package_data Dict Assign NameStore percept_dir Str percept For TupleStore NameStore dirpath NameStore dirnames NameStore filenames Call AttributeLoad NameLoad os attr walk NameLoad percept_dir body Assign SubscriptStore NameLoad dirnames Slice ListComp NameLoad d comprehension NameStore d NameLoad dirnames BoolOpAnd UnaryOpNot Call AttributeLoad NameLoad d attr startswith Str . CompareNotEq NameLoad d Str __pycache__ Assign NameStore parts Call NameLoad fullsplit NameLoad dirpath Assign NameStore package_name Call AttributeLoad Str . attr join NameLoad parts If CompareIn Str __init__.py NameLoad filenames body Expr Call AttributeLoad NameLoad packages attr append NameLoad package_name orelse If NameLoad filenames body Assign NameStore relative_path ListLoad While CompareNotIn Call AttributeLoad Str . attr join NameLoad parts NameLoad packages body Expr Call AttributeLoad NameLoad relative_path attr append Call AttributeLoad NameLoad parts attr pop Expr Call AttributeLoad NameLoad relative_path attr reverse Assign NameStore path Call AttributeLoad AttributeLoad NameLoad os attr path attr join NameLoad relative_path Assign NameStore package_files Call AttributeLoad NameLoad package_data attr setdefault Call AttributeLoad Str . attr join NameLoad parts ListLoad Expr Call AttributeLoad NameLoad package_files attr extend ListComp Call AttributeLoad AttributeLoad NameLoad os attr path attr join NameLoad path NameLoad f comprehension NameStore f NameLoad filenames With Call NameLoad open Str requirements.txt NameStore f body Assign NameStore required Call AttributeLoad Call AttributeLoad NameLoad f attr read attr splitlines With Call NameLoad open Str base_requirements.txt NameStore f body AugAssignAdd NameStore required Call AttributeLoad Call AttributeLoad NameLoad f attr read attr splitlines Assign NameStore required ListComp NameLoad r comprehension NameStore r NameLoad required UnaryOpNot Call AttributeLoad NameLoad r attr startswith Str -r Expr Call NameLoad setup keyword name Str percept keyword version Str 0.14 keyword author Str Equirio keyword author_email Str vik@equirio.com keyword description Str Modular-machine-learning-framework-that-is-easy-to-test-and-deploy. keyword license Str AGPL keyword keywords Str ml-machine-learning-nlp-ai-algorithm keyword url Str https://github.com/equirio/percept keyword include_package_data NameLoad True keyword packages NameLoad packages keyword package_data NameLoad package_data keyword scripts ListLoad Str percept/bin/percept-admin.py 
Module Import alias argparse ImportFrom collections alias defaultdict Import alias numpy identifier np ImportFrom glove alias Glove alias metrics If CompareEq NameLoad __name__ Str __main__ body Assign NameStore parser Call AttributeLoad NameLoad argparse attr ArgumentParser keyword description Str Evaluate-a-trained-GloVe-model-on-an-analogy-task. Expr Call AttributeLoad NameLoad parser attr add_argument Str --test Str -t keyword action Str store keyword required NameLoad True keyword help Str The-filename-of-the-analogy-test-set. Expr Call AttributeLoad NameLoad parser attr add_argument Str --model Str -m keyword action Str store keyword required NameLoad True keyword help Str The-filename-of-the-stored-GloVe-model. Expr Call AttributeLoad NameLoad parser attr add_argument Str --encode Str -e keyword action Str store_true keyword default NameLoad False keyword help Str If-True,-words-from-the-evaluation-set-will-be-utf-8-encoded-before-looking-them-up-in-the-model-dictionary Expr Call AttributeLoad NameLoad parser attr add_argument Str --parallelism Str -p keyword action Str store keyword default Num 1 keyword help Str Number-of-parallel-threads-to-use Assign NameStore args Call AttributeLoad NameLoad parser attr parse_args Assign NameStore glove Call AttributeLoad NameLoad Glove attr load AttributeLoad NameLoad args attr model If AttributeLoad NameLoad args attr encode body Assign NameStore encode Lambda arguments args NameParam words defaults ListComp Call AttributeLoad Call AttributeLoad NameLoad x attr lower attr encode Str utf-8 comprehension NameStore x NameLoad words orelse Assign NameStore encode Lambda arguments args NameParam words defaults ListComp Call NameLoad unicode Call AttributeLoad NameLoad x attr lower comprehension NameStore x NameLoad words Assign NameStore sections Call NameLoad defaultdict NameLoad list Assign NameStore evaluation_words ListComp Call AttributeLoad SubscriptLoad NameLoad sections Index NameLoad section attr append Call NameLoad encode NameLoad words comprehension TupleStore NameStore section NameStore words Call AttributeLoad NameLoad metrics attr read_analogy_file AttributeLoad NameLoad args attr test Assign NameStore section_ranks ListLoad For TupleStore NameStore section NameStore words Call AttributeLoad NameLoad sections attr items body Assign NameStore evaluation_ids Call AttributeLoad NameLoad metrics attr construct_analogy_test_set NameLoad words AttributeLoad NameLoad glove attr dictionary keyword ignore_missing NameLoad True Assign NameStore ranks Call AttributeLoad NameLoad metrics attr analogy_rank_score NameLoad evaluation_ids AttributeLoad NameLoad glove attr word_vectors keyword no_threads Call NameLoad int AttributeLoad NameLoad args attr parallelism Expr Call AttributeLoad NameLoad section_ranks attr append NameLoad ranks Print BinOpMod Str Section-%s-mean-rank:-%s,-accuracy:-%s TupleLoad NameLoad section Call AttributeLoad NameLoad ranks attr mean BinOpDiv Call AttributeLoad CompareEq NameLoad ranks Num 0 attr sum Call NameLoad float Call NameLoad len NameLoad ranks Assign NameStore ranks Call AttributeLoad NameLoad np attr hstack NameLoad section_ranks Print BinOpMod Str Overall-rank:-%s,-accuracy:-%s TupleLoad Call AttributeLoad NameLoad ranks attr mean BinOpDiv Call AttributeLoad CompareEq NameLoad ranks Num 0 attr sum Call NameLoad float Call NameLoad len NameLoad ranks 
Module Import alias argparse Import alias os TryExcept body ImportFrom unittest alias mock handlers ExceptHandler type NameLoad ImportError body Import alias mock ImportFrom tap.loader alias Loader ImportFrom tap.main alias build_suite alias get_status alias main alias parse_args ImportFrom tap.tests alias TestCase ClassDef TestMain bases NameLoad TestCase body Expr Str Tests-for-tap.main FunctionDef test_exits_with_error arguments args NameParam self defaults body Expr Str The-main-function-returns-an-error-status-if-there-were-failures. Assign NameStore argv ListLoad Str /bin/fake Str fake.tap Assign NameStore stream Call NameLoad open AttributeLoad NameLoad os attr devnull Str w Assign NameStore status Call NameLoad main NameLoad argv keyword stream NameLoad stream Expr Call AttributeLoad NameLoad self attr assertEqual Num 1 NameLoad status decorator_list FunctionDef test_get_successful_status arguments args NameParam self defaults body Assign NameStore result Call AttributeLoad NameLoad mock attr Mock Assign AttributeStore AttributeLoad NameLoad result attr wasSuccessful attr return_value NameLoad True Expr Call AttributeLoad NameLoad self attr assertEqual Num 0 Call NameLoad get_status NameLoad result decorator_list FunctionDef test_build_suite_from_stdin arguments args NameParam self NameParam load_suite_from_stdin defaults body Assign NameStore args Call AttributeLoad NameLoad mock attr Mock Assign AttributeStore NameLoad args attr files ListLoad Assign NameStore expected_suite Call AttributeLoad NameLoad mock attr Mock Assign AttributeStore NameLoad load_suite_from_stdin attr return_value NameLoad expected_suite Assign NameStore suite Call NameLoad build_suite NameLoad args Expr Call AttributeLoad NameLoad self attr assertEqual NameLoad expected_suite NameLoad suite decorator_list Call AttributeLoad AttributeLoad NameLoad mock attr patch attr object NameLoad Loader Str load_suite_from_stdin FunctionDef test_build_suite_from_stdin_dash arguments args NameParam self NameParam load_suite_from_stdin defaults body Assign NameStore argv ListLoad Str /bin/fake Str - Assign NameStore args Call NameLoad parse_args NameLoad argv Assign NameStore expected_suite Call AttributeLoad NameLoad mock attr Mock Assign AttributeStore NameLoad load_suite_from_stdin attr return_value NameLoad expected_suite Assign NameStore suite Call NameLoad build_suite NameLoad args Expr Call AttributeLoad NameLoad self attr assertEqual NameLoad expected_suite NameLoad suite decorator_list Call AttributeLoad AttributeLoad NameLoad mock attr patch attr object NameLoad Loader Str load_suite_from_stdin FunctionDef test_when_no_pipe_to_stdin arguments args NameParam self NameParam print_help NameParam sys_exit NameParam mock_stdin defaults body Assign NameStore argv ListLoad Str /bin/fake Assign AttributeStore NameLoad mock_stdin attr isatty Call AttributeLoad NameLoad mock attr Mock keyword return_value NameLoad True Expr Call NameLoad parse_args NameLoad argv Expr Call AttributeLoad NameLoad self attr assertTrue AttributeLoad NameLoad print_help attr called Expr Call AttributeLoad NameLoad self attr assertTrue AttributeLoad NameLoad sys_exit attr called decorator_list Call AttributeLoad NameLoad mock attr patch Str tap.main.sys.stdin Call AttributeLoad NameLoad mock attr patch Str tap.main.sys.exit Call AttributeLoad AttributeLoad NameLoad mock attr patch attr object AttributeLoad NameLoad argparse attr ArgumentParser Str print_help decorator_list 
Module Import alias datetime Import alias hashlib Import alias time ImportFrom flask_login alias UserMixin ImportFrom daimaduan.bootstrap alias db ClassDef BaseDocument bases AttributeLoad NameLoad db attr Document body Assign NameStore meta Dict Str abstract Str strict NameLoad True NameLoad False FunctionDef increase_counter arguments args NameParam self NameParam field NameParam count defaults Num 1 body Assign NameStore counter_field BinOpMod Str %s_count NameLoad field Assign NameStore counter_value BinOpAdd Call NameLoad getattr NameLoad self NameLoad counter_field Num 0 NameLoad count If CompareLtE NameLoad counter_value Num 0 body Assign NameStore counter_value Num 0 Assign NameStore attributes Call NameLoad dict ListLoad TupleLoad NameLoad counter_field NameLoad counter_value Expr Call AttributeLoad NameLoad self attr update NameLoad attributes decorator_list FunctionDef find_or_create_by arguments args NameParam cls defaults kwarg attributes body Assign NameStore record Call AttributeLoad Call AttributeLoad NameLoad cls attr objects NameLoad attributes attr first If CompareIs NameLoad record NameLoad None body Assign NameStore record Call AttributeLoad Call NameLoad cls NameLoad attributes attr save Return NameLoad record decorator_list NameLoad classmethod FunctionDef find_and_delete_by arguments args NameParam cls defaults kwarg attributes body Assign NameStore record Call AttributeLoad Call AttributeLoad NameLoad cls attr objects NameLoad attributes attr first If NameLoad record body Expr Call AttributeLoad NameLoad record attr delete decorator_list NameLoad classmethod FunctionDef create_hash_id arguments args NameParam self NameParam salt NameParam string defaults body If UnaryOpNot AttributeLoad NameLoad self attr hash_id body FunctionDef generate_hash_id arguments args defaults body Return SubscriptLoad Call AttributeLoad Call AttributeLoad NameLoad hashlib attr sha1 BinOpMod Str %s%s%s TupleLoad NameLoad salt NameLoad string Call NameLoad str Call AttributeLoad NameLoad time attr time attr hexdigest Slice Num 11 decorator_list Assign AttributeStore NameLoad self attr hash_id Call NameLoad generate_hash_id While CompareIsNot Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad self attr __class__ attr objects keyword hash_id AttributeLoad NameLoad self attr hash_id attr first NameLoad None body Assign AttributeStore NameLoad self attr hash_id Call NameLoad generate_hash_id decorator_list Assign NameStore created_at Call AttributeLoad NameLoad db attr DateTimeField keyword default AttributeLoad AttributeLoad NameLoad datetime attr datetime attr now Assign NameStore updated_at Call AttributeLoad NameLoad db attr DateTimeField keyword default AttributeLoad AttributeLoad NameLoad datetime attr datetime attr now decorator_list ClassDef LoginManagerUser bases NameLoad UserMixin body FunctionDef __init__ arguments args NameParam self NameParam user defaults body Assign AttributeStore NameLoad self attr user NameLoad user Assign AttributeStore NameLoad self attr id AttributeLoad NameLoad user attr id Assign AttributeStore NameLoad self attr username AttributeLoad NameLoad user attr username Assign AttributeStore NameLoad self attr email AttributeLoad NameLoad user attr email decorator_list decorator_list 
Module Import alias easypost Assign AttributeStore NameLoad easypost attr api_key Str cueqNZUb3ldeWTNX7MU3Mel8UXtaAMUi Assign NameStore to_address Call AttributeLoad AttributeLoad NameLoad easypost attr Address attr create keyword name Str Sawyer-Bateman keyword street1 Str 1A-Larkspur-Cres. keyword street2 Str null keyword city Str St.-Albert keyword state Str AB keyword zip Str t8n2m4 keyword country Str CA keyword phone Str 780-283-9384 Assign NameStore from_address Call AttributeLoad AttributeLoad NameLoad easypost attr Address attr create keyword company Str EasyPost keyword street1 Str 118-2nd-St keyword street2 Str 4th-Fl keyword city Str San-Francisco keyword state Str CA keyword zip Str 94105 keyword phone Str 415-456-7890 TryExcept body Assign NameStore verified_from_address Call AttributeLoad NameLoad from_address attr verify handlers ExceptHandler type AttributeLoad NameLoad easypost attr Error name NameStore e body Raise NameLoad e If Call NameLoad hasattr NameLoad verified_from_address Str message body Pass TryExcept body Assign NameStore parcel Call AttributeLoad AttributeLoad NameLoad easypost attr Parcel attr create keyword predefined_package Str InvalidPackageName keyword weight Num 21.2 handlers ExceptHandler type AttributeLoad NameLoad easypost attr Error name NameStore e body Print NameLoad e If CompareIsNot AttributeLoad NameLoad e attr param NameLoad None body Print BinOpAdd Str Specifically-an-invalid-param: AttributeLoad NameLoad e attr param TryExcept body Assign NameStore parcel Call AttributeLoad AttributeLoad NameLoad easypost attr Parcel attr create keyword length Num 10.2 keyword width Num 7.8 keyword height Num 4.3 keyword weight Num 21.2 handlers ExceptHandler type AttributeLoad NameLoad easypost attr Error name NameStore e body Raise NameLoad e Assign NameStore customs_item Call AttributeLoad AttributeLoad NameLoad easypost attr CustomsItem attr create keyword description Str EasyPost-t-shirts keyword hs_tariff_number Num 123456 keyword origin_country Str US keyword quantity Num 2 keyword value Num 96.27 keyword weight Num 21.1 Assign NameStore customs_info Call AttributeLoad AttributeLoad NameLoad easypost attr CustomsInfo attr create keyword customs_certify Num 1 keyword customs_signer Str Hector-Hammerfall keyword contents_type Str gift keyword contents_explanation Str null keyword eel_pfc Str NOEEI-30.37(a) keyword non_delivery_option Str return keyword restriction_type Str none keyword restriction_comments Str null keyword customs_items ListLoad NameLoad customs_item Assign NameStore shipment Call AttributeLoad AttributeLoad NameLoad easypost attr Shipment attr create keyword to_address NameLoad to_address keyword from_address NameLoad verified_from_address keyword parcel NameLoad parcel keyword customs_info NameLoad customs_info Expr Call AttributeLoad NameLoad shipment attr buy keyword rate Call AttributeLoad NameLoad shipment attr lowest_rate ListLoad Str USPS Str ups Str priorityMAILInternational Expr Call AttributeLoad NameLoad shipment attr insure keyword amount Num 100 Print AttributeLoad NameLoad shipment attr tracking_code Print AttributeLoad NameLoad shipment attr insurance Print AttributeLoad AttributeLoad NameLoad shipment attr postage_label attr label_url 
