Module Expr Str Import alias Import alias Import alias Import alias ImportFrom alias Import alias Import alias Import alias Import alias Import alias TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body ImportFrom alias ImportFrom alias alias alias alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str Assign NameStore ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword Str keyword NameLoad Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd Str AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr ImportFrom alias handlers ExceptHandler type NameLoad name NameStore body If CompareEq Call NameLoad NameLoad Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Raise orelse Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr orelse Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad Call NameLoad AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Str Str decorator_list Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults NameLoad body Expr Str Expr Call AttributeLoad NameLoad attr decorator_list AttributeLoad NameLoad attr FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword UnaryOpUSub Call AttributeLoad NameLoad attr Str Str Assign NameStore BinOpAdd Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr CompareEq AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str attr Call NameLoad CompareEq AttributeLoad NameLoad attr NameLoad CompareEq AttributeLoad NameLoad attr NameLoad CompareEq AttributeLoad NameLoad attr NameLoad CompareEq AttributeLoad NameLoad attr NameLoad CompareGt AttributeLoad NameLoad attr NameLoad attr Assign NameStore Call NameLoad For NameStore Call NameLoad NameLoad body For NameStore Call NameLoad NameLoad body Assign SubscriptStore NameLoad Index TupleLoad NameLoad NameLoad Num For NameStore NameLoad body AugAssignAdd SubscriptStore NameLoad Index TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore ListComp NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr CompareEq NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str Dict Str Str NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Return Call NameLoad Str decorator_list Call AttributeLoad NameLoad attr Str NameLoad FunctionDef arguments args defaults body Expr Str Return Call AttributeLoad NameLoad attr Str decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args defaults body Expr Str Return Call NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args defaults body Expr Str If CompareNotIn Str AttributeLoad NameLoad attr body Assign NameStore Dict Str Str Return Call NameLoad NameLoad orelse Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str TryExcept body Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr CompareEq AttributeLoad NameLoad attr NameLoad attr Assign NameStore AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr body Assign NameStore NameLoad Assign NameStore Dict Str NameLoad Return Call NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword ListLoad Str FunctionDef arguments args defaults body Expr Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad For NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str Str body Assign NameStore Call AttributeLoad NameLoad attr If CompareIn NameLoad ListLoad Str Str Str Str Str body If BoolOpOr BoolOpAnd CompareEq NameLoad Str AttributeLoad NameLoad attr BoolOpAnd CompareEq NameLoad Str AttributeLoad NameLoad attr BoolOpAnd CompareEq NameLoad Str AttributeLoad NameLoad attr BoolOpAnd CompareEq NameLoad Str AttributeLoad NameLoad attr BoolOpAnd CompareEq NameLoad Str AttributeLoad NameLoad attr body Assign NameStore NameLoad orelse If BoolOpOr CompareEq NameLoad Str CompareEq NameLoad Str body If BoolOpAnd CompareIn Str NameLoad CompareIn Str NameLoad body Pass orelse If CompareIn Str NameLoad body Assign NameStore NameLoad orelse If CompareIn NameLoad NameLoad body Assign NameStore NameLoad If UnaryOpNot NameLoad body Raise Call NameLoad Str If UnaryOpNot BoolOpAnd CompareIn Str AttributeLoad NameLoad attr CompareIn Str AttributeLoad NameLoad attr body Raise Call NameLoad Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str If CompareEq SubscriptLoad NameLoad Slice Num Str body Assign NameStore NameLoad orelse Assign NameStore NameLoad Assign NameStore NameLoad If CompareIn Str AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr CompareNotEq AttributeLoad NameLoad attr NameLoad attr CompareEq AttributeLoad NameLoad attr NameLoad attr If CompareGt NameLoad Num body Assign NameStore NameLoad orelse Assign NameStore NameLoad TryExcept body Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr CompareEq AttributeLoad NameLoad attr NameLoad attr CompareEq AttributeLoad NameLoad attr NameLoad attr CompareEq AttributeLoad NameLoad attr NameLoad attr Assign NameStore AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr body Assign NameStore NameLoad If BoolOpAnd CompareEq NameLoad NameLoad UnaryOpNot NameLoad body Raise Call NameLoad Str orelse If CompareEq NameLoad NameLoad body Return Call NameLoad Str keyword CompareEq NameLoad Str keyword NameLoad keyword NameLoad keyword NameLoad orelse If BoolOpAnd NameLoad UnaryOpNot NameLoad body Raise Call NameLoad Str orelse If BoolOpOr CompareEq NameLoad NameLoad UnaryOpNot NameLoad NameLoad body With Call NameLoad Str Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad Return Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad orelse Raise Call NameLoad Str decorator_list Call AttributeLoad NameLoad attr Str keyword ListLoad Str NameLoad FunctionDef arguments args defaults body Expr Str If UnaryOpNot BoolOpAnd CompareIn Str AttributeLoad NameLoad attr CompareIn Str AttributeLoad NameLoad attr CompareIn Str AttributeLoad NameLoad attr body Raise Call NameLoad Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str With Call NameLoad Str Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad Return Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword ListLoad Str NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad keyword TupleLoad NameLoad NameLoad handlers ExceptHandler body Raise Call NameLoad Str orelse If CompareEq AttributeLoad NameLoad attr Num body Return SubscriptLoad Call AttributeLoad NameLoad attr Index Str orelse Return Str decorator_list FunctionDef arguments args defaults body Expr Str If UnaryOpNot BoolOpAnd CompareIn Str AttributeLoad NameLoad attr CompareIn Str AttributeLoad NameLoad attr CompareIn Str AttributeLoad NameLoad attr CompareIn Str AttributeLoad NameLoad attr body Raise Call NameLoad Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str Dict Str Str Str NameLoad NameLoad NameLoad If CompareEq SubscriptLoad NameLoad Slice Num Str body Assign NameStore NameLoad orelse Assign NameStore NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr CompareEq AttributeLoad NameLoad attr NameLoad attr Assign NameStore Call NameLoad NameLoad If CompareEq NameLoad Num body Assign TupleStore NameStore NameStore Call NameLoad Assign NameStore IfExp UnaryOpNot AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore IfExp UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore IfExp UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore IfExp UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr orelse Assign NameStore Num For NameStore NameLoad body Assign NameStore NameLoad If CompareNotEq AttributeLoad NameLoad attr NameLoad body Assign NameStore NameLoad orelse AugAssignAdd NameStore Num If BoolOpAnd CompareLtE NameLoad Num UnaryOpNot NameLoad body Assign NameStore SubscriptLoad NameLoad Index Num If BoolOpAnd CompareGtE AttributeLoad NameLoad attr NameLoad UnaryOpNot NameLoad body Raise Call NameLoad Str orelse If CompareGt NameLoad Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Raise Call NameLoad Str If NameLoad body Raise Call NameLoad Str If BoolOpOr CompareEq NameLoad Str CompareEq NameLoad Str body Assign NameStore Call NameLoad NameLoad If CompareNotEq NameLoad Str body If CompareEq NameLoad Str body Assign NameStore BinOpAdd Str Call NameLoad NameLoad orelse If CompareEq NameLoad Str body Assign NameStore BinOpAdd Str Call NameLoad NameLoad orelse Raise Call NameLoad Str orelse Assign NameStore Str Return Call NameLoad Str keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword ListLoad Str NameLoad FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str If UnaryOpNot CompareIn Str AttributeLoad NameLoad attr body Raise Call NameLoad Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str TryExcept body Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr CompareEq AttributeLoad NameLoad attr NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Dict Str Str handlers ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Dict Str Str Return Call NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword ListLoad Str FunctionDef arguments args NameParam defaults NameLoad body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad TryExcept body Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr CompareEq AttributeLoad NameLoad attr NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler body Assign NameStore Dict Str Str Str Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword ListLoad Str FunctionDef arguments args NameParam defaults NameLoad body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad TryExcept body Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr CompareEq AttributeLoad NameLoad attr NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str If Call NameLoad NameLoad Str body Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr TryExcept body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler body Assign NameStore Dict Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad NameLoad Assign NameStore Dict Str Str Return Call NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword ListLoad Str FunctionDef arguments args defaults body Expr Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str If CompareEq SubscriptLoad NameLoad Slice Num Str body Assign NameStore NameLoad orelse Assign NameStore NameLoad If NameLoad body Assign NameStore Dict Str Str Return Call NameLoad NameLoad orelse TryExcept body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr CompareEq AttributeLoad NameLoad attr NameLoad attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr body Raise Call NameLoad Str orelse Assign NameStore Dict Str Str Return Call NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword ListLoad Str FunctionDef arguments args defaults body Expr Str If UnaryOpNot CompareIn Str AttributeLoad NameLoad attr body Raise Call NameLoad Str orelse Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str TryExcept body Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr CompareEq AttributeLoad NameLoad attr NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr handlers ExceptHandler body Raise Call NameLoad Str orelse Return Call NameLoad Str decorator_list Call AttributeLoad NameLoad attr Str keyword ListLoad Str NameLoad FunctionDef arguments args defaults body Expr Str If UnaryOpNot CompareIn Str AttributeLoad NameLoad attr body Assign NameStore Dict Str Str Return Call NameLoad NameLoad orelse Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad TryExcept body Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr CompareEq AttributeLoad NameLoad attr NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Str handlers ExceptHandler type AttributeLoad NameLoad attr body Assign NameStore Str Assign NameStore Dict Str NameLoad Return Call NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword ListLoad Str FunctionDef arguments args defaults body Expr Str If UnaryOpNot CompareIn Str AttributeLoad NameLoad attr body Assign NameStore Dict Str Str Return Call NameLoad NameLoad orelse Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad TryExcept body Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr CompareEq AttributeLoad NameLoad attr NameLoad attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Str handlers ExceptHandler type AttributeLoad NameLoad attr body Assign NameStore Str Assign NameStore Dict Str NameLoad Return Call NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword ListLoad Str FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Return Call NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore NameLoad For NameStore NameLoad body Assign NameStore NameLoad If NameLoad body Assign NameStore BinOpAdd BinOpAdd BinOpAdd SubscriptLoad NameLoad Slice Call AttributeLoad NameLoad attr Str NameLoad SubscriptLoad NameLoad Slice Call AttributeLoad NameLoad attr Return NameLoad orelse Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad NameLoad body Expr Str If BoolOpAnd CompareIs NameLoad NameLoad CompareIs NameLoad NameLoad body Raise Call NameLoad Str If BoolOpAnd CompareIs NameLoad NameLoad CompareIsNot NameLoad NameLoad body Return Call NameLoad NameLoad orelse Return Call NameLoad BinOpAdd BinOpAdd NameLoad Str NameLoad decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str FunctionDef arguments args defaults body Expr Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Print Str BinOpAdd BinOpAdd BinOpAdd Str NameLoad Str Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A  This module provides the backend Flask server used by psiTurk.  N/A os N/A sys N/A datetime N/A logging random choice N/A user_agents N/A string N/A requests N/A re N/A json N/A N/A collections Counter N/A N/A N/A ImportError N/A counter Counter flask Flask render_template render_template_string request jsonify db db_session init_db models Participant sqlalchemy or_ exc psiturk_config PsiturkConfig experiment_errors ExperimentError psiturk.user_utils nocache N/A CONFIG N/A PsiturkConfig N/A N/A N/A CONFIG load_config N/A LOG_FILE_PATH N/A N/A N/A os path join N/A N/A os getcwd N/A N/A CONFIG get Server Parameters logfile N/A LOG_LEVELS N/A N/A logging DEBUG N/A logging INFO N/A logging WARNING N/A logging ERROR N/A logging CRITICAL N/A LOG_LEVEL N/A LOG_LEVELS N/A N/A N/A CONFIG getint Server Parameters loglevel N/A N/A N/A logging basicConfig filename LOG_FILE_PATH format %(asctime)s %(message)s level LOG_LEVEL N/A NOT_ACCEPTED 0 N/A ALLOCATED 1 N/A STARTED 2 N/A COMPLETED 3 N/A SUBMITTED 4 N/A CREDITED 5 N/A QUITEARLY 6 N/A BONUSED 7 N/A app N/A Flask Experiment_Server N/A N/A N/A N/A app config update SEND_FILE_MAX_AGE_DEFAULT 10 N/A N/A app secret_key N/A N/A CONFIG get Server Parameters secret_key N/A N/A N/A N/A app logger info N/A Secret key:  N/A app secret_key N/A N/A N/A N/A N/A N/A sys path append N/A N/A os getcwd custom custom_code N/A N/A N/A ImportError N/A e N/A N/A N/A N/A str e No module named custom N/A N/A N/A N/A N/A app logger info Hmm... it seems no custom code (custom.py) associated                         with this project. N/A N/A N/A N/A N/A app logger error There is custom code (custom.py) associated with this                           project but it doesn't import cleanly.  Raising exception, N/A N/A N/A N/A N/A app register_blueprint custom_code N/A N/A init_db N/A PSITURK_JS_FILE N/A N/A N/A os path join N/A N/A N/A os path dirname __file__ psiturk_js/psiturk.js N/A N/A N/A N/A app logger info PSITURK_JS_FILE N/A N/A N/A N/A os path exists PSITURK_JS_FILE N/A N/A PSITURK_JS_CODE N/A N/A N/A open PSITURK_JS_FILE read N/A N/A PSITURK_JS_CODE alert('psiturk.js file not found!'); handle_exp_error N/A N/A exception N/A N/A N/A Handle errors by sending an error page. N/A N/A N/A N/A app logger error %s (%s) %s N/A exception value N/A exception errornum N/A str N/A dict N/A request args N/A N/A N/A exception error_page request N/A N/A CONFIG get HIT Configuration contact_email_on_error N/A N/A N/A app errorhandler ExperimentError shutdown_session N/A N/A _ N/A None N/A N/A  Shut down session route  N/A N/A N/A db_session remove N/A N/A app teardown_request get_random_condcount N/A N/A N/A N/A N/A 
    HITs can be in one of three states:
        - jobs that are finished
        - jobs that are started but not finished
        - jobs that are never going to finish (user decided not to do it)
    Our count should be based on the first two, so we count any tasks finished
    or any tasks not finished that were started in the last cutoff_time
    minutes, as specified in the cutoff_time variable in the config file.

    Returns a tuple: (cond, condition)
     N/A cutofftime N/A N/A datetime timedelta minutes N/A N/A N/A CONFIG getint Server Parameters cutoff_time N/A starttime N/A N/A N/A N/A datetime datetime now cutofftime N/A numconds N/A N/A CONFIG getint Task Parameters num_conds N/A numcounts N/A N/A CONFIG getint Task Parameters num_counters N/A participants N/A N/A N/A N/A N/A N/A N/A Participant query filter N/A N/A Participant codeversion N/A N/A CONFIG get Task Parameters experiment_code_version filter N/A or_ N/A N/A Participant status COMPLETED N/A N/A Participant status CREDITED N/A N/A Participant status SUBMITTED N/A N/A Participant status BONUSED N/A N/A Participant beginhit starttime all N/A counts N/A Counter N/A cond N/A range numconds N/A N/A counter N/A range numcounts N/A N/A N/A counts N/A N/A cond counter 0 N/A participant participants N/A N/A N/A counts N/A N/A N/A participant cond N/A participant counterbalance 1 N/A mincount N/A min N/A N/A counts values N/A minima N/A hsh N/A N/A hsh count N/A N/A counts iteritems N/A count mincount N/A chosen N/A choice minima N/A N/A N/A N/A app logger info N/A given %(a)s chose %(b)s N/A a b counts chosen N/A chosen N/A index N/A N/A N/A N/A N/A  Index route  N/A N/A render_template default.html N/A N/A N/A app route / nocache favicon N/A N/A N/A N/A N/A  Serve favicon  N/A N/A N/A app send_static_file favicon.ico N/A N/A N/A app route /favicon.ico psiturk_js N/A N/A N/A N/A N/A  psiTurk js route  N/A N/A render_template_string PSITURK_JS_CODE N/A N/A N/A app route /static/js/psiturk.js check_worker_status N/A N/A N/A N/A N/A  Check worker status route  N/A N/A workerId N/A request args N/A N/A resp N/A status bad request N/A N/A jsonify resp N/A N/A worker_id N/A N/A request args N/A workerId N/A N/A N/A part N/A N/A N/A N/A N/A Participant query filter N/A N/A Participant workerid worker_id one N/A status N/A part status N/A N/A N/A N/A exc SQLAlchemyError N/A N/A status NOT_ACCEPTED N/A resp N/A status status N/A N/A jsonify resp N/A N/A N/A app route /check_worker_status methods N/A GET advertisement N/A N/A N/A N/A N/A 
    This is the url we give for the ad for our 'external question'.  The ad has
    to display two different things: This page will be called from within
    mechanical turk, with url arguments hitId, assignmentId, and workerId.
    If the worker has not yet accepted the hit:
        These arguments will have null values, we should just show an ad for
        the experiment.
    If the worker has accepted the hit:
        These arguments will have appropriate values and we should enter the
        person in the database and provide a link to the experiment popup.
     N/A user_agent_string N/A N/A request user_agent string N/A user_agent_obj N/A N/A user_agents parse user_agent_string N/A browser_ok True N/A rule N/A N/A string split N/A N/A CONFIG get HIT Configuration browser_exclude_rule , N/A N/A myrule N/A N/A rule strip N/A N/A myrule N/A mobile tablet touchcapable pc bot N/A N/A N/A N/A N/A myrule mobile N/A user_agent_obj is_mobile N/A N/A myrule tablet N/A user_agent_obj is_tablet N/A N/A myrule touchcapable N/A user_agent_obj is_touch_capable N/A N/A myrule pc N/A user_agent_obj is_pc N/A N/A myrule bot N/A user_agent_obj is_bot N/A N/A browser_ok False N/A N/A N/A N/A myrule Safari N/A myrule safari N/A N/A N/A N/A Chrome user_agent_string N/A Safari user_agent_string N/A N/A N/A N/A N/A Safari user_agent_string N/A N/A browser_ok False N/A N/A N/A myrule user_agent_string N/A N/A browser_ok False N/A N/A browser_ok N/A N/A N/A ExperimentError browser_type_not_allowed N/A N/A N/A N/A hitId N/A request args N/A assignmentId N/A request args N/A N/A N/A ExperimentError hit_assign_worker_id_not_set_in_mturk N/A hit_id N/A N/A request args N/A hitId N/A assignment_id N/A N/A request args N/A assignmentId N/A mode N/A N/A request args N/A mode N/A N/A N/A hit_id N/A 5 debug N/A N/A debug_mode True N/A N/A debug_mode False N/A already_in_db False N/A N/A workerId N/A request args N/A N/A worker_id N/A N/A request args N/A workerId N/A nrecords N/A N/A N/A N/A N/A N/A N/A Participant query filter N/A N/A Participant assignmentid assignment_id filter N/A N/A Participant workerid worker_id count N/A N/A nrecords 0 N/A N/A already_in_db True N/A N/A worker_id None N/A N/A N/A part N/A N/A N/A N/A N/A N/A N/A N/A N/A Participant query filter N/A N/A Participant hitid hit_id filter N/A N/A Participant assignmentid assignment_id filter N/A N/A Participant workerid worker_id one N/A status N/A part status N/A N/A N/A N/A exc SQLAlchemyError N/A N/A status None N/A N/A N/A status STARTED N/A debug_mode N/A N/A N/A ExperimentError already_started_exp_mturk N/A N/A N/A status COMPLETED N/A N/A N/A render_template thanks.html is_sandbox N/A mode sandbox hitid hit_id assignmentid assignment_id workerid worker_id N/A N/A N/A already_in_db N/A debug_mode N/A N/A N/A ExperimentError already_did_exp_hit N/A N/A N/A N/A status ALLOCATED N/A status debug_mode N/A N/A N/A open templates/ad.html r temp_file N/A N/A ad_string N/A N/A temp_file read N/A ad_string N/A insert_mode ad_string mode N/A N/A render_template_string ad_string hitid hit_id assignmentid assignment_id workerid worker_id N/A N/A N/A ExperimentError status_incorrectly_set N/A N/A N/A app route /ad methods N/A GET nocache give_consent N/A N/A N/A N/A N/A 
    Serves up the consent in the popup window.
     N/A N/A N/A N/A hitId N/A request args N/A assignmentId N/A request args N/A workerId N/A request args N/A N/A N/A ExperimentError hit_assign_worker_id_not_set_in_consent N/A hit_id N/A N/A request args N/A hitId N/A assignment_id N/A N/A request args N/A assignmentId N/A worker_id N/A N/A request args N/A workerId N/A mode N/A N/A request args N/A mode N/A N/A open templates/consent.html r temp_file N/A N/A consent_string N/A N/A temp_file read N/A consent_string N/A insert_mode consent_string mode N/A N/A render_template_string consent_string hitid hit_id assignmentid assignment_id workerid worker_id N/A N/A N/A app route /consent methods N/A GET nocache get_ad_via_hitid N/A N/A hit_id N/A N/A N/A  Get ad via HIT id  N/A username N/A N/A CONFIG get psiTurk Access psiturk_access_key_id N/A password N/A N/A CONFIG get psiTurk Access psiturk_secret_access_id N/A N/A N/A req N/A N/A requests get N/A https://api.psiturk.org/api/ad/lookup/ hit_id auth N/A username password N/A N/A N/A N/A N/A ExperimentError api_server_not_reachable N/A N/A N/A N/A req status_code 200 N/A N/A N/A N/A N/A req json N/A ad_id N/A N/A error N/A start_exp N/A N/A N/A N/A N/A  Serves up the experiment applet.  N/A N/A N/A N/A hitId N/A request args N/A assignmentId N/A request args N/A workerId N/A request args N/A mode N/A request args N/A N/A N/A ExperimentError hit_assign_worker_id_not_set_in_exp N/A hit_id N/A N/A request args N/A hitId N/A assignment_id N/A N/A request args N/A assignmentId N/A worker_id N/A N/A request args N/A workerId N/A mode N/A N/A request args N/A mode N/A N/A N/A N/A app logger info N/A Accessing /exp: %(h)s %(a)s %(w)s  N/A h a w hit_id assignment_id worker_id N/A N/A N/A hit_id N/A 5 debug N/A N/A debug_mode True N/A N/A debug_mode False N/A matches N/A N/A N/A N/A N/A Participant query filter N/A N/A Participant workerid worker_id all N/A numrecs N/A len matches N/A N/A numrecs 0 N/A N/A N/A subj_cond subj_counter N/A get_random_condcount N/A worker_ip N/A N/A N/A request remote_addr UNKNOWN N/A request remote_addr N/A browser N/A N/A N/A N/A request user_agent browser UNKNOWN N/A N/A request user_agent browser N/A platform N/A N/A N/A N/A request user_agent platform UNKNOWN N/A N/A request user_agent platform N/A language N/A N/A N/A N/A request user_agent language UNKNOWN N/A N/A request user_agent language N/A participant_attributes N/A dict assignmentid assignment_id workerid worker_id hitid hit_id cond subj_cond counterbalance subj_counter ipaddress worker_ip browser browser platform platform language language N/A part N/A Participant participant_attributes N/A N/A N/A db_session add part N/A N/A N/A db_session commit N/A N/A nrecords 0 N/A record matches N/A N/A other_assignment False N/A N/A N/A record assignmentid assignment_id N/A N/A other_assignment True N/A N/A nrecords 1 N/A N/A N/A nrecords 1 N/A other_assignment N/A N/A part N/A matches N/A 0 N/A N/A N/A N/A part status STARTED N/A debug_mode N/A N/A N/A ExperimentError already_started_exp N/A N/A N/A nrecords 1 N/A N/A N/A N/A N/A app logger error Error, hit/assignment appears in database                                  more than once (serious problem) N/A N/A ExperimentError hit_assign_appears_in_database_more_than_once N/A other_assignment N/A N/A N/A ExperimentError already_did_exp_hit N/A N/A N/A mode sandbox N/A mode live N/A N/A ad_id N/A get_ad_via_hitid hit_id N/A N/A ad_id error N/A N/A N/A mode sandbox N/A N/A ad_server_location N/A https://sandbox.ad.psiturk.org/complete/ N/A str ad_id N/A N/A N/A mode live N/A N/A ad_server_location N/A https://ad.psiturk.org/complete/ N/A str ad_id N/A N/A N/A ExperimentError hit_not_registered_with_ad_server N/A N/A ad_server_location /complete N/A N/A render_template exp.html uniqueId N/A part uniqueid condition N/A part cond counterbalance N/A part counterbalance adServerLoc ad_server_location mode mode N/A N/A N/A app route /exp methods N/A GET nocache enterexp N/A N/A N/A N/A N/A 
    AJAX listener that listens for a signal from the user's script when they
    leave the instructions and enter the real experiment. After the server
    receives this signal, it will no longer allow them to re-access the
    experiment applet (meaning they can't do part of the experiment and
    referesh to start over).
     N/A N/A N/A N/A app logger info Accessing /inexp N/A N/A N/A uniqueId N/A request form N/A N/A N/A ExperimentError improper_inputs N/A unique_id N/A N/A request form N/A uniqueId N/A N/A N/A user N/A N/A N/A N/A N/A Participant query filter N/A N/A Participant uniqueid unique_id one N/A N/A user status STARTED N/A N/A user beginexp N/A N/A N/A datetime datetime now N/A N/A N/A db_session add user N/A N/A N/A db_session commit N/A resp N/A status success N/A N/A N/A N/A exc SQLAlchemyError N/A N/A N/A N/A N/A app logger error DB error: Unique user not found. N/A resp N/A status error, uniqueId not found N/A N/A jsonify resp N/A N/A N/A app route /inexp methods N/A POST load N/A N/A uid N/A None N/A N/A 
    Load experiment data, which should be a JSON object and will be stored
    after converting to string.
     N/A N/A N/A N/A app logger info N/A GET /sync route with id: %s uid N/A N/A N/A user N/A N/A N/A N/A N/A Participant query filter N/A N/A Participant uniqueid uid one N/A N/A N/A N/A exc SQLAlchemyError N/A N/A N/A N/A N/A app logger error DB error: Unique user not found. N/A N/A N/A resp N/A N/A json loads N/A user datastring N/A N/A N/A N/A resp N/A condition counterbalance assignmentId workerId hitId bonus N/A user cond N/A user counterbalance N/A user assignmentid N/A user workerid N/A user hitid N/A user bonus N/A N/A jsonify resp N/A N/A N/A app route /sync/<uid> methods N/A GET update N/A N/A uid N/A None N/A N/A 
    Save experiment data, which should be a JSON object and will be stored
    after converting to string.
     N/A N/A N/A N/A app logger info N/A PUT /sync route with id: %s uid N/A N/A N/A user N/A N/A N/A N/A N/A Participant query filter N/A N/A Participant uniqueid uid one N/A N/A N/A N/A exc SQLAlchemyError N/A N/A N/A N/A N/A app logger error DB error: Unique user not found. N/A N/A hasattr request json N/A N/A N/A user datastring N/A N/A N/A N/A N/A request data decode utf-8 encode ascii xmlcharrefreplace N/A N/A N/A db_session add user N/A N/A N/A db_session commit N/A N/A N/A data N/A N/A json loads N/A user datastring N/A N/A N/A N/A data N/A N/A trial N/A N/A data get currenttrial None N/A N/A N/A N/A app logger info saved data for %s (current trial: %s) uid trial N/A resp N/A status user data saved N/A N/A jsonify resp N/A N/A N/A app route /sync/<uid> methods N/A PUT quitter N/A N/A N/A N/A N/A 
    Mark quitter as such.
     N/A unique_id N/A N/A request form N/A uniqueId N/A N/A N/A unique_id N/A 5 debug N/A N/A debug_mode True N/A N/A debug_mode False N/A debug_mode N/A N/A resp N/A status didn't mark as quitter since this is debugging N/A N/A jsonify resp N/A N/A N/A N/A unique_id N/A N/A request form N/A uniqueId N/A N/A N/A N/A app logger info N/A Marking quitter %s unique_id N/A user N/A N/A N/A N/A N/A Participant query filter N/A N/A Participant uniqueid unique_id one N/A N/A user status QUITEARLY N/A N/A N/A db_session add user N/A N/A N/A db_session commit N/A N/A N/A N/A exc SQLAlchemyError N/A N/A N/A ExperimentError tried_to_quit N/A N/A resp N/A status marked as quitter N/A N/A jsonify resp N/A N/A N/A app route /quitter methods N/A POST debug_complete N/A N/A N/A N/A N/A  Debugging route for complete.  N/A N/A N/A uniqueId N/A request args N/A N/A N/A ExperimentError improper_inputs N/A N/A unique_id N/A N/A request args N/A uniqueId N/A N/A N/A user N/A N/A N/A N/A N/A Participant query filter N/A N/A Participant uniqueid unique_id one N/A N/A user status COMPLETED N/A N/A user endhit N/A N/A N/A datetime datetime now N/A N/A N/A db_session add user N/A N/A N/A db_session commit N/A N/A N/A N/A N/A ExperimentError error_setting_worker_complete N/A N/A N/A render_template complete.html N/A N/A N/A app route /complete methods N/A GET nocache worker_complete N/A N/A N/A N/A N/A  Complete worker.  N/A N/A N/A uniqueId N/A request args N/A N/A resp N/A status bad request N/A N/A jsonify resp N/A N/A unique_id N/A N/A request args N/A uniqueId N/A N/A N/A N/A app logger info N/A Completed experiment %s unique_id N/A N/A N/A user N/A N/A N/A N/A N/A Participant query filter N/A N/A Participant uniqueid unique_id one N/A N/A user status COMPLETED N/A N/A user endhit N/A N/A N/A datetime datetime now N/A N/A N/A db_session add user N/A N/A N/A db_session commit N/A status success N/A N/A N/A N/A exc SQLAlchemyError N/A N/A status database error N/A resp N/A status status N/A N/A jsonify resp N/A N/A N/A app route /worker_complete methods N/A GET worker_submitted N/A N/A N/A N/A N/A  Submit worker  N/A N/A N/A uniqueId N/A request args N/A N/A resp N/A status bad request N/A N/A jsonify resp N/A N/A unique_id N/A N/A request args N/A uniqueId N/A N/A N/A N/A app logger info N/A Submitted experiment for %s unique_id N/A N/A N/A user N/A N/A N/A N/A N/A Participant query filter N/A N/A Participant uniqueid unique_id one N/A N/A user status SUBMITTED N/A N/A N/A db_session add user N/A N/A N/A db_session commit N/A status success N/A N/A N/A N/A exc SQLAlchemyError N/A N/A status database error N/A resp N/A status status N/A N/A jsonify resp N/A N/A N/A app route /worker_submitted methods N/A GET ppid N/A N/A N/A N/A N/A  Get ppid  N/A proc_id N/A N/A os getppid N/A N/A str proc_id N/A N/A N/A app route /ppid insert_mode N/A N/A page_html mode N/A N/A N/A  Insert mode  N/A page_html N/A N/A page_html decode utf-8 N/A match_found False N/A matches N/A N/A re finditer workerId={{ workerid }} page_html N/A match None N/A match matches N/A N/A match_found True N/A match_found N/A N/A new_html N/A N/A N/A N/A page_html N/A N/A N/A match end &mode= mode N/A page_html N/A N/A N/A match end N/A new_html N/A N/A N/A ExperimentError insert_mode_failed N/A regularpage N/A N/A foldername pagename N/A None None N/A N/A 
    Route not found by the other routes above. May point to a static template.
     N/A N/A N/A foldername None N/A pagename None N/A N/A N/A ExperimentError page_not_found N/A N/A N/A foldername None N/A pagename None N/A N/A N/A render_template pagename N/A N/A N/A render_template N/A N/A foldername / pagename N/A N/A N/A app route /<pagename> N/A N/A app route /<foldername>/<pagename> run_webserver N/A N/A N/A N/A N/A  Run web server  N/A host 0.0.0.0 N/A port N/A N/A CONFIG getint Server Parameters port N/A Serving on  N/A N/A N/A http:// host : N/A str port N/A N/A N/A app run debug True host host port port N/A N/A N/A __name__ __main__ N/A N/A N/A run_webserver