from otree.api import * c = cu doc = '' class C(BaseConstants): NAME_IN_URL = 'SC_202604' PLAYERS_PER_GROUP = None NUM_ROUNDS = 1 class Subsession(BaseSubsession): pass def creating_session(subsession: Subsession): import random # 定义问题的分组 questions_1_to_2 = ['QS1', 'QS2'] questions_3_to_5 = ['QS3', 'QS4', 'QS5'] questions_6_to_9 = ['QS6', 'QS7', 'QS8', 'QS9'] questions_10_to_15 = ['QS10', 'QS11', 'QS12', 'QS13', 'QS14', 'QS15'] questions_16_to_19 = ['QS16', 'QS17', 'QS18', 'QS19'] questions_20_to_23 = ['QS20', 'QS21', 'QS22','QS23'] questions_24_to_28 = ['QS24', 'QS25', 'QS26', 'QS27','QS28'] questions_29_to_30 = ['QS29', 'QS30'] for player in subsession.get_players(): player.high_low_class = random.choice([1, 1, 1]) # 随机从每组中抽取一题 selected_qs_1_to_2 = random.sample(questions_1_to_2, 1) selected_qs_3_to_5 = random.sample(questions_3_to_5, 1) selected_qs_6_to_9 = random.sample(questions_6_to_9, 1) selected_qs_10_to_15 = random.sample(questions_10_to_15, 1) selected_qs_16_to_19 = random.sample(questions_16_to_19, 1) selected_qs_20_to_23 = random.sample(questions_20_to_23, 1) selected_qs_24_to_28 = random.sample(questions_24_to_28, 1) selected_qs_29_to_30 = random.sample(questions_29_to_30, 1) # 将所有选中的问题合并成一个列表 all_selected_questions = ( selected_qs_1_to_2 + selected_qs_3_to_5 + selected_qs_6_to_9 + selected_qs_10_to_15 + selected_qs_16_to_19 + selected_qs_20_to_23 + selected_qs_24_to_28 + selected_qs_29_to_30 ) # 随机赋值1到8的值 values = random.sample(range(1, 9), 8) # 为选中的问题赋值 for qs, value in zip(all_selected_questions, values): setattr(player, qs, value) # 打印结果 print('set high class to', player.high_low_class, ', '.join(f'{qs} {getattr(player, qs)}' for qs in all_selected_questions)) class Group(BaseGroup): pass class Player(BasePlayer): high_low_class = models.IntegerField() consent = models.StringField(choices=[['Yes', 'Yes'], ['No', 'No']], label='I have read the consent information and agree to take part in the research.', widget=widgets.RadioSelect) Student_ID = models.StringField(label='What is your Student ID?') Self_education = models.StringField(choices=[['Did not finish high school', 'Did not finish high school'], ['High school graduate or some college', 'High school graduate or some college'], ['College graduate', 'College graduate'], ['Postgraduate degree', 'Postgraduate degree']], label='What is your highest educational degree?', widget=widgets.RadioSelect) Self_job = models.StringField(label='What is your current job?') Self_income = models.StringField(choices=[['<$25,000', '<$25,000'], ['$25,001-$50,000', '$25,001-$50,000'], ['$50,001-$75,000', '$50,001-$75,000'], ['$75,001-$100,000', '$75,001-$100,000'], ['$125,001-$150,000', '$125,001-$150,000'], ['$150,001-$175,000', '$150,001-$175,000'], ['$175,001-$200,000', '$175,001-$200,000'], ['$225,001-$250,000', '$225,001-$250,000'], ['$250,001-$275,000', '$250,001-$275,000'], ['$275,001-$300,000', '$275,001-$300,000'], ['>$300,001', '>$300,001']], label='What is your annual income?') Zipcode_self = models.StringField(label='What is the zipcode where you live now?') Tax_self = models.StringField(choices=[['Less than $1000', 'Less than $1000'], ['$1001-$2000', '$1001-$2000'], ['$2001-$3000', '$2001-$3000'], ['$3001-$4000', '$3001-$4000'], ['$4001-$5000', '$4001-$5000'], ['$5001-$6000', '$5001-$6000'], ['$6001-$7000', '$6001-$7000'], ['$7001-$8000', '$7001-$8000'], ['$8001-$9000', '$8001-$9000'], ['$9001-$10000', '$9001-$10000'], ['$10001-$11000', '$10001-$11000'], ['$11001-$12000', '$11001-$12000'], ['$12001-$13000', '$12001-$13000'], ['$13001-$14000', '$13001-$14000'], ['$14001-$15000', '$14001-$15000'], ['$15001-$16000', '$15001-$16000'], ['$16001-$17000', '$16001-$17000'], ['$18001-$19000', '$18001-$19000'], ['$19001-$20000', '$19001-$20000'], ['More than $20000', 'More than $20000']], label='What are the property taxes on the house you currently live in?') Dad_education = models.StringField(choices=[['Did not finish high school', 'Did not finish high school'], ['High school graduate or some college', 'High school graduate or some college'], ['College graduate', 'College graduate'], ['Postgraduate degree', 'Postgraduate degree']], label="What is your father's highest educational degree? (If you do not know, please select the closest option.)", widget=widgets.RadioSelect) Mom_education = models.StringField(choices=[['Did not finish high school', 'Did not finish high school'], ['High school graduate or some college', 'High school graduate or some college'], ['College graduate', 'College graduate'], ['Postgraduate degree', 'Postgraduate degree']], label="What is your mother's highest educational degree? (If you do not know, please select the closest option.)", widget=widgets.RadioSelect) Dad_job = models.StringField(label="What is your father's job?") Mom_job = models.StringField(label="What is your mother's job?") Dad_income = models.StringField(choices=[['<$25,000', '<$25,000'], ['$25,001-$50,000', '$25,001-$50,000'], ['$50,001-$75,000', '$50,001-$75,000'], ['$75,001-$100,000', '$75,001-$100,000'], ['$100,001-$125,000', '$100,001-$125,000'], ['$125,001-$150,000', '$125,001-$150,000'], ['$150,001-$175,000', '$150,001-$175,000'], ['$175,001-$200,000', '$175,001-$200,000'], ['$200,001-$225,000', '$200,001-$225,000'], ['$225,001-$250,000', '$225,001-$250,000'], ['$250,001-$275,000', '$250,001-$275,000'], ['$275,001-$300,000', '$275,001-$300,000'], ['>$300,001', '>$300,001']], label='What is the annual income of your father? (If you do not know, please select the closest option.)') Mom_income = models.StringField(choices=[['<$25,000', '<$25,000'], ['$25,001-$50,000', '$25,001-$50,000'], ['$50,001-$75,000', '$50,001-$75,000'], ['$75,001-$100,000', '$75,001-$100,000'], ['$100,001-$125,000', '$100,001-$125,000'], ['$125,001-$150,000', '$125,001-$150,000'], ['$150,001-$175,000', '$150,001-$175,000'], ['$175,001-$200,000', '$175,001-$200,000'], ['$200,001-$225,000', '$200,001-$225,000'], ['$225,001-$250,000', '$225,001-$250,000'], ['$250,001-$275,000', '$250,001-$275,000'], ['$275,001-$300,000', '$275,001-$300,000'], ['>$300,001', '>$300,001']], label='What is the annual income of your mother? (If you do not know, please select the closest option.)') Zipcode_family = models.StringField(label='What is the zipcode where you grew up?') Tax_family = models.StringField(choices=[['Less than $1000', 'Less than $1000'], ['$1001-$2000', '$1001-$2000'], ['$2001-$3000', '$2001-$3000'], ['$3001-$4000', '$3001-$4000'], ['$4001-$5000', '$4001-$5000'], ['$5001-$6000', '$5001-$6000'], ['$6001-$7000', '$6001-$7000'], ['$7001-$8000', '$7001-$8000'], ['$8001-$9000', '$8001-$9000'], ['$9001-$10000', '$9001-$10000'], ['$10001-$11000', '$10001-$11000'], ['$11001-$12000', '$11001-$12000'], ['$12001-$13000', '$12001-$13000'], ['$13001-$14000', '$13001-$14000'], ['$14001-$15000', '$14001-$15000'], ['$15001-$16000', '$15001-$16000'], ['$16001-$17000', '$16001-$17000'], ['$17001-$18000', '$17001-$18000'], ['$18001-$19000', '$18001-$19000'], ['$19001-$20000', '$19001-$20000'], ['More than $20000', 'More than $20000']], label='What are the property taxes on the house your family currently live in?') interaction = models.LongStringField(label='Please vividly imagine a hypothetical interaction with the person from the bottom of the ladder in the United States. And how the differences between you and the person from the bottom of the ladder might impact what you would talk about, how the interaction is likely to go, and what you and the other person might say to each other. Please write down five sentences.') place = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7'], [8, '8'], [9, '9'], [10, '10']], label='Where would you place yourself on this ladder relative to those people at the very bottom in the United States?', widget=widgets.RadioSelectHorizontal) place_family = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7'], [8, '8'], [9, '9'], [10, '10']], label='Where would you place your family on this ladder relative to those people at the very bottom in the United States?', widget=widgets.RadioSelectHorizontal) SC1 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='I felt nervous speaking with the supervisor, who is the authority in the business field.', widget=widgets.RadioSelectHorizontal) SC2 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='I have difficulty talking with the supervisor.', widget=widgets.RadioSelectHorizontal) SC3 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='I find it easy to think of things to talk about.', widget=widgets.RadioSelectHorizontal) SC4 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='I find myself worrying that I won’t know what to say to the supervisor.', widget=widgets.RadioSelectHorizontal) SC5 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='I am unsure whether to greet the supervisor.', widget=widgets.RadioSelectHorizontal) SC6 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='I get embarrassed asking the supervisor for help.', widget=widgets.RadioSelectHorizontal) EC1 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='If I asked the supervisor for help, he would become more critical of me.', widget=widgets.RadioSelectHorizontal) EC2 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='The supervisor would think less of me if I sought help from him.', widget=widgets.RadioSelectHorizontal) Trust1 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='Generally, I trust the AI tools (e.g., ChatGPT).', widget=widgets.RadioSelectHorizontal) Trust2 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='The AI tools (e.g., ChatGPT) can help me solve many problems.', widget=widgets.RadioSelectHorizontal) Trust3 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='I think it’s a good idea to rely on the AI tools (e.g., ChatGPT) for help.', widget=widgets.RadioSelectHorizontal) Trust4 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='I don’t trust the information I get from the AI tools (e.g., ChatGPT).', widget=widgets.RadioSelectHorizontal) Trust5 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='The AI tools (e.g., ChatGPT) are reliable.', widget=widgets.RadioSelectHorizontal) Trust6 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='I rely on the AI tools (e.g., ChatGPT).', widget=widgets.RadioSelectHorizontal) USD1 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='I understand the capabilities of AI tools (e.g., ChatGPT).', widget=widgets.RadioSelectHorizontal) USD2 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='I understand the limitations of AI tools (e.g., ChatGPT).', widget=widgets.RadioSelectHorizontal) USD3 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='I understand the context of using AI tools (e.g., ChatGPT).', widget=widgets.RadioSelectHorizontal) Skill1 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='I have relevant skills to use AI tools (e.g., ChatGPT) in my work.', widget=widgets.RadioSelectHorizontal) Skill2 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='I have skills to interpret the AI tools’ outputs (e.g., ChatGPT).', widget=widgets.RadioSelectHorizontal) Skill3 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='I have skills to prepare input for AI tools (e.g., ChatGPT).', widget=widgets.RadioSelectHorizontal) Part3_Check1 = models.StringField(choices=[['Only pay $0.1 for an effective prompt generated by the system.', 'Only pay $0.1 for an effective prompt generated by the system.'], ['Only write down the prompt by yourself.', 'Only write down the prompt by yourself.'], ['Pay $0.1 per minute and write down the prompt by yourself.', 'Pay $0.1 per minute and write down the prompt by yourself.']], label='What should you do when seeking help from AI?', widget=widgets.RadioSelect) Part3_Check2 = models.StringField(choices=[['Only pay $0.1 for a communication strategy generated by the system.', 'Only pay $0.1 for a communication strategy generated by the system.'], ['Only record a video and send it to the supervisor.', 'Only record a video and send it to the supervisor.'], ['Pay $0.1 per minute and record a video and send it to the supervisor.', 'Pay $0.1 per minute and record a video and send it to the supervisor.']], label='What should you do when seeking help from the supervisor?', widget=widgets.RadioSelect) Part3_Check3 = models.StringField(choices=[['Seek help from AI.', 'Seek help from AI.'], ['Seek help from the supervisor.', 'Seek help from the supervisor.'], ['The time spent on waiting for responses is the same for AI and the supervisor.', 'The time spent on waiting for responses is the same for AI and the supervisor.']], label="In what situations would you spend more time waiting for AI or supervisor's response?", widget=widgets.RadioSelect) Part3_Check4 = models.StringField(choices=[['Seek help from AI.', 'Seek help from AI.'], ['Seek help from the supervisor.', 'Seek help from the supervisor.'], ['The quality of advice from AI and the supervisor is the same.', 'The quality of advice from AI and the supervisor is the same.']], label='In what situations would you get better advice when seeking help?', widget=widgets.RadioSelect) Part3_Check5 = models.StringField(choices=[['Pay $0.1 per minute spent on answering the questions.', 'Pay $0.1 per minute spent on answering the questions.'], ['No need to pay anything and wait for any time.', 'No need to pay anything and wait for any time.'], ['Pay a $0.1 one-time cost on each question.', 'Pay a $0.1 one-time cost on each question.']], label='What should you do when answering independently?', widget=widgets.RadioSelect) comprehension2_attempts = models.IntegerField(initial=0) comprehension2_wrong = models.BooleanField(initial=False) Part2_Check1 = models.StringField(choices=[['None.', 'None.'], ['Partial Credit.', 'Partial Credit.'], ['Full Credit.', 'Full Credit.']], label='For a select-all-that-apply question with five options ranging from A to E, the correct answers are A, C, and D. If you chose A and C, how much will you earn for this question?', widget=widgets.RadioSelect) Part2_Check2 = models.StringField(choices=[['None.', 'None.'], ['Partial Credit.', 'Partial Credit.'], ['Full Credit.', 'Full Credit.']], label='For a select-all-that-apply question with five options ranging from A to E, the correct answers are A, C, and D. If you chose A, C, D and E, how much will you earn for this question?', widget=widgets.RadioSelect) Part2_Check3 = models.StringField(choices=[['Only evaluate your performance on 3 questions you sought help from the supervisor.', 'Only evaluate your performance on 3 questions you sought help from the supervisor.'], ['Evaluate your performance on all 5 questions as if you sought help from the supervisor for 2 questions, sought help from AI for 2 questions, and answered independently for 1 question.', 'Evaluate your performance on all 5 questions as if you sought help from the supervisor for 2 questions, sought help from AI for 2 questions, and answered independently for 1 question.'], ['Evaluate your performance on all 5 questions as if you sought help from the supervisor for 2 questions, and answered independently for 3 questions.', 'Evaluate your performance on all 5 questions as if you sought help from the supervisor for 2 questions, and answered independently for 3 questions.']], label='If you seek help from the supervisor for 2 questions, seek help from AI for 2 questions, and answer independently for 1 question, how will the supervisor determine your performance?', widget=widgets.RadioSelect) comprehension1_wrong = models.BooleanField(initial=False) comprehension1_attempts = models.IntegerField(initial=0) Q1_seeking = models.StringField(choices=[['Answer independently.', 'Answer independently.'], ['Seek help from AI.', 'Seek help from AI.'], ['Seek help from the supervisor.', 'Seek help from the supervisor.']], label='Who would you like to seek help from?', widget=widgets.RadioSelect) Q2_seeking = models.StringField(choices=[['Answer independently.', 'Answer independently.'], ['Seek help from AI.', 'Seek help from AI.'], ['Seek help from the supervisor.', 'Seek help from the supervisor.']], label='Who would you like to seek help from?', widget=widgets.RadioSelect) Q3_seeking = models.StringField(choices=[['Answer independently.', 'Answer independently.'], ['Seek help from AI.', 'Seek help from AI.'], ['Seek help from the supervisor.', 'Seek help from the supervisor.']], label='Who would you like to seek help from?', widget=widgets.RadioSelect) Q4_seeking = models.StringField(choices=[['Answer independently.', 'Answer independently.'], ['Seek help from AI.', 'Seek help from AI.'], ['Seek help from the supervisor.', 'Seek help from the supervisor.']], label='Who would you like to seek help from?', widget=widgets.RadioSelect) Q5_seeking = models.StringField(choices=[['Answer independently.', 'Answer independently.'], ['Seek help from AI.', 'Seek help from AI.'], ['Seek help from the supervisor.', 'Seek help from the supervisor.']], label='Who would you like to seek help from?', widget=widgets.RadioSelect) Q6_seeking = models.StringField(choices=[['Answer independently.', 'Answer independently.'], ['Seek help from AI.', 'Seek help from AI.'], ['Seek help from the supervisor.', 'Seek help from the supervisor.']], label='Who would you like to seek help from?', widget=widgets.RadioSelect) Q7_seeking = models.StringField(choices=[['Answer independently.', 'Answer independently.'], ['Seek help from AI.', 'Seek help from AI.'], ['Seek help from the supervisor.', 'Seek help from the supervisor.']], label='Who would you like to seek help from?', widget=widgets.RadioSelect) Q8_seeking = models.StringField(choices=[['Answer independently.', 'Answer independently.'], ['Seek help from AI.', 'Seek help from AI.'], ['Seek help from the supervisor.', 'Seek help from the supervisor.']], label='Who would you like to seek help from?', widget=widgets.RadioSelect) Q1_seeking_enter = models.LongStringField(label='Please enter your help-seeking prompt to the AI tool:') Q2_seeking_enter = models.LongStringField(label='Please enter your help-seeking prompt to the AI tool:') Q3_seeking_enter = models.LongStringField(label='Please enter your help-seeking prompt to the AI tool:') Q4_seeking_enter = models.LongStringField(label='Please enter your help-seeking prompt to the AI tool:') Q5_seeking_enter = models.LongStringField(label='Please enter your help-seeking prompt to the AI tool:') Q6_seeking_enter = models.LongStringField(label='Please enter your help-seeking prompt to the AI tool:') Q7_seeking_enter = models.LongStringField(label='Please enter your help-seeking prompt to the AI tool:') Q8_seeking_enter = models.LongStringField(label='Please enter your help-seeking prompt to the AI tool:') Sup_1 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='If I chose to seek help from the supervisor, I was comfortable when recording the video during this experiment.', widget=widgets.RadioSelectHorizontal) Sup_2 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='If I chose to seek help from the supervisor, I was not fear of the negative evaluation during this experiment.', widget=widgets.RadioSelectHorizontal) AI_1 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='If I chose to seek help from the AI tools, I believed I could enter an effective prompt during this experiment.', widget=widgets.RadioSelectHorizontal) AI_2 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='If I chose to seek help from the AI tools, I trusted AI tools during this experiment.', widget=widgets.RadioSelectHorizontal) AI_3 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='If I chose to seek help from the AI tools, I understood AI tools during this experiment.', widget=widgets.RadioSelectHorizontal) EX1 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='I am the life of the party.', widget=widgets.RadioSelectHorizontal) EX2 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='I don’t talk a lot.', widget=widgets.RadioSelectHorizontal) EX3 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='I talk to a lot of different people at parties.', widget=widgets.RadioSelectHorizontal) EX4 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='I keep in the background.', widget=widgets.RadioSelectHorizontal) SR1 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='I’d rather depend on myself than others to finish my work.', widget=widgets.RadioSelectHorizontal) SR2 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='I rely on myself most of the time to finish my work.', widget=widgets.RadioSelectHorizontal) SR3 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='I rarely rely on others to finish my work.', widget=widgets.RadioSelectHorizontal) SR4 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='My personal identity, independent of others, is very important to me.', widget=widgets.RadioSelectHorizontal) Age = models.IntegerField(label='Please specify your age:') Gender = models.StringField(choices=[['Female', 'Female'], ['Male', 'Male']], label='Please specify your gender: ', widget=widgets.RadioSelect) Marriage = models.StringField(choices=[['Single', 'Single'], ['Married', 'Married'], ['Widowed', 'Widowed'], ['Divorced', 'Divorced']], label='What is your marital status?', widget=widgets.RadioSelectHorizontal) Working_Exp = models.StringField(choices=[['Less than 2 months', 'Less than 2 months'], ['2 to 6 months', '2 to 6 months'], ['6 to 12 months', '6 to 12 months'], ['1 to 2 years', '1 to 2 years'], ['2 to 3 years', '2 to 3 years'], ['More than 3 years', 'More than 3 years']], label='How long have you been in your first job?', widget=widgets.RadioSelect) PE1 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='The authority was friendly and approachable during my previous help-seeking experience in reality.', widget=widgets.RadioSelectHorizontal) PE2 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='I was comfortable with the way communication was handled when I sought help from the authorities regarding my previous experience in reality.', widget=widgets.RadioSelectHorizontal) PE3 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='I am satisfied with the help provided by the authorities regarding my previous experience in reality.', widget=widgets.RadioSelectHorizontal) AIUSE = models.StringField(choices=[['1 (Never)', '1 (Never)'], ['2', '2'], ['3', '3'], ['4 (Sometimes)', '4 (Sometimes)'], ['5', '5'], ['6', '6'], ['7 (Often)', '7 (Often)']], label='How often, on average, do you use AI tools (e.g., ChatGPT) in reality?', widget=widgets.RadioSelectHorizontal) Self_ladder = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7'], [8, '8'], [9, '9'], [10, '10']], label='Where would you put yourself on the social class ladder?', widget=widgets.RadioSelectHorizontal) family_ladder = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7'], [8, '8'], [9, '9'], [10, '10']], label='Where would you put your family on the social class ladder?', widget=widgets.RadioSelectHorizontal) QS1_A = models.BooleanField(blank=True) QS1_B = models.BooleanField(blank=True) QS1_C = models.BooleanField(blank=True) QS1_D = models.BooleanField(blank=True) QS1_E = models.BooleanField(blank=True) QS2_A = models.BooleanField(blank=True, label='Understand local cultural norms, preferences, and business practices.') QS2_B = models.BooleanField(blank=True, label='Navigate complex regulatory environments and legal frameworks.') QS2_C = models.BooleanField(blank=True, label='Evaluate socio-economic factors such as income levels and consumer behavior.') QS2_D = models.BooleanField(blank=True, label='Build strong relationships with local partners and stakeholders.') QS2_E = models.BooleanField(blank=True, label='Focus exclusively on established markets to minimize uncertainties.') QS3_A = models.BooleanField(blank=True, label='Cut costs across the board, including layoffs and salary reductions.') QS3_B = models.BooleanField(blank=True, label='Seek additional financing through loans or equity investments.') QS3_C = models.BooleanField(blank=True, label='Maintain spending levels to avoid signaling weakness to competitors.') QS3_D = models.BooleanField(blank=True, label='Diversify revenue streams to reduce reliance on a single source.') QS3_E = models.BooleanField(blank=True, label='Renegotiate contracts with suppliers and creditors for better terms.') QS4_A = models.BooleanField(blank=True, label='Revamp the company website based on the CEO’s preference.') QS4_B = models.BooleanField(blank=True, label='Make the company website accessible only via registration.') QS4_C = models.BooleanField(blank=True, label='Increase activity on all social media platforms.') QS4_D = models.BooleanField(blank=True, label='Focus on content marketing to provide value.') QS4_E = models.BooleanField(blank=True, label='Ignore online reviews and feedback.') QS5_A = models.BooleanField(blank=True, label='Partner with environmental organizations to boost the brand’s eco-friendly image.') QS5_B = models.BooleanField(blank=True, label='Expand service offerings to include eco-friendly retrofitting for existing buildings.') QS5_C = models.BooleanField(blank=True, label='Compete on low-cost construction services to gain market entry.') QS5_D = models.BooleanField(blank=True, label='Prioritize the use of innovative materials and construction techniques.') QS5_E = models.BooleanField(blank=True, label='Design the scheme using green and sustainable materials.') QS6_A = models.BooleanField(blank=True, label='Offer digital-only banking services with lower fees.') QS6_B = models.BooleanField(blank=True, label='Provide personalized financial advice through AI.') QS6_C = models.BooleanField(blank=True, label='Focus on security features to gain customer trust.') QS6_D = models.BooleanField(blank=True, label='Establish physical branches to serve as tech hubs.') QS6_E = models.BooleanField(blank=True, label='Diversify financial services to attract customers.') QS7_A = models.BooleanField(blank=True, label='Increase investment in basic research to fuel the discovery pipeline.') QS7_B = models.BooleanField(blank=True, label='Collaborate with biotech startups for access to new technologies.') QS7_C = models.BooleanField(blank=True, label='Focus on a smaller number of disease areas to concentrate resources.') QS7_D = models.BooleanField(blank=True, label='Leverage artificial intelligence for faster drug target identification.') QS7_E = models.BooleanField(blank=True, label='Showcase firms that have successfully used technology in their operations.') QS8_A = models.BooleanField(blank=True, label='Target existing electric vehicle owners for upgrades.') QS8_B = models.BooleanField(blank=True, label='Develop more affordable models for a wider market.') QS8_C = models.BooleanField(blank=True, label='Focus marketing efforts exclusively on environmental benefits.') QS8_D = models.BooleanField(blank=True, label='Establish partnerships with charging station providers for advertising opportunities.') QS8_E = models.BooleanField(blank=True, label='Seek additional financing through loans or equity investments.') QS9_A = models.BooleanField(blank=True, label='Provide personalized welcome packages.') QS9_B = models.BooleanField(blank=True, label='Increase prices to reflect the premium experience.') QS9_C = models.BooleanField(blank=True, label='Implement a guest feedback system for real-time improvements.') QS9_D = models.BooleanField(blank=True, label='Standardize all guest experiences to ensure consistency.') QS9_E = models.BooleanField(blank=True, label='Offer exclusive tours and experiences through local partnerships.') QS10_A = models.BooleanField(blank=True, label='Invest in pay-per-click advertising.') QS10_B = models.BooleanField(blank=True, label='Use aggressive email marketing campaigns.') QS10_C = models.BooleanField(blank=True, label='Collaborate with complementary brands for cross-promotion.') QS10_D = models.BooleanField(blank=True, label='Focus exclusively on social media marketing.') QS10_E = models.BooleanField(blank=True, label='Optimize the website for search engines (SEO)') QS11_A = models.BooleanField(blank=True, label='Launch a targeted social media advertising campaign.') QS11_B = models.BooleanField(blank=True, label='Reduce prices to undercut competitors.') QS11_C = models.BooleanField(blank=True, label='Collaborate with local bars and restaurants.') QS11_D = models.BooleanField(blank=True, label='Invest heavily in new brewing technology to improve quality.') QS11_E = models.BooleanField(blank=True, label='Diversify the product line to include non-alcoholic beverages.') QS12_A = models.BooleanField(blank=True, label='Make the solution extremely complex to ensure security.') QS12_B = models.BooleanField(blank=True, label='Offer a freemium model with basic features for free.') QS12_C = models.BooleanField(blank=True, label='Ensure the solution is user-friendly and easy to implement.') QS12_D = models.BooleanField(blank=True, label='Focus sales efforts on industries not typically targeted by hackers.') QS12_E = models.BooleanField(blank=True, label='Cut costs across the board, including advertisement and salary reductions.') QS13_A = models.BooleanField(blank=True, label='Create precision agriculture tools that use data analytics for crop management.') QS13_B = models.BooleanField(blank=True, label='Invest in drone technology for aerial surveys of farmland.') QS13_C = models.BooleanField(blank=True, label='Focus on creating a social network for farmers.') QS13_D = models.BooleanField(blank=True, label='Launch an e-commerce platform for direct farmer-to-consumer sales. ') QS13_E = models.BooleanField(blank=True, label='Collaborate with other agri-tech companies to integrate complementary technologies.') QS14_A = models.BooleanField(blank=True) QS14_B = models.BooleanField(blank=True) QS14_C = models.BooleanField(blank=True) QS14_D = models.BooleanField(blank=True) QS14_E = models.BooleanField(blank=True) QS15_A = models.BooleanField(blank=True) QS15_B = models.BooleanField(blank=True) QS15_C = models.BooleanField(blank=True) QS15_D = models.BooleanField(blank=True) QS15_E = models.BooleanField(blank=True) QS16_A = models.BooleanField(blank=True) QS16_B = models.BooleanField(blank=True) QS16_C = models.BooleanField(blank=True) QS16_D = models.BooleanField(blank=True) QS16_E = models.BooleanField(blank=True) QS17_A = models.BooleanField(blank=True) QS17_B = models.BooleanField(blank=True) QS17_C = models.BooleanField(blank=True) QS17_D = models.BooleanField(blank=True) QS17_E = models.BooleanField(blank=True) QS18_A = models.BooleanField(blank=True) QS18_B = models.BooleanField(blank=True) QS18_C = models.BooleanField(blank=True) QS18_D = models.BooleanField(blank=True) QS18_E = models.BooleanField(blank=True) QS19_A = models.BooleanField(blank=True) QS19_B = models.BooleanField(blank=True) QS19_C = models.BooleanField(blank=True) QS19_D = models.BooleanField(blank=True) QS19_E = models.BooleanField(blank=True) QS20_A = models.BooleanField(blank=True) QS20_B = models.BooleanField(blank=True) QS20_C = models.BooleanField(blank=True) QS20_D = models.BooleanField(blank=True) QS20_E = models.BooleanField(blank=True) QS21_A = models.BooleanField(blank=True) QS21_B = models.BooleanField(blank=True) QS21_C = models.BooleanField(blank=True) QS21_D = models.BooleanField(blank=True) QS21_E = models.BooleanField(blank=True) QS22_A = models.BooleanField(blank=True) QS22_B = models.BooleanField(blank=True) QS22_C = models.BooleanField(blank=True) QS22_D = models.BooleanField(blank=True) QS22_E = models.BooleanField(blank=True) QS23_A = models.BooleanField(blank=True) QS23_B = models.BooleanField(blank=True) QS23_C = models.BooleanField(blank=True) QS23_D = models.BooleanField(blank=True) QS23_E = models.BooleanField(blank=True) QS24_A = models.BooleanField(blank=True) QS24_B = models.BooleanField(blank=True) QS24_C = models.BooleanField(blank=True) QS24_D = models.BooleanField(blank=True) QS24_E = models.BooleanField(blank=True) QS25_A = models.BooleanField(blank=True) QS25_B = models.BooleanField(blank=True) QS25_C = models.BooleanField(blank=True) QS25_D = models.BooleanField(blank=True) QS25_E = models.BooleanField(blank=True) QS26_A = models.BooleanField(blank=True) QS26_B = models.BooleanField(blank=True) QS26_C = models.BooleanField(blank=True) QS26_D = models.BooleanField(blank=True) QS26_E = models.BooleanField(blank=True) QS27_A = models.BooleanField(blank=True) QS27_B = models.BooleanField(blank=True) QS27_C = models.BooleanField(blank=True) QS27_D = models.BooleanField(blank=True) QS27_E = models.BooleanField(blank=True) QS28_A = models.BooleanField(blank=True) QS28_B = models.BooleanField(blank=True) QS28_C = models.BooleanField(blank=True) QS28_D = models.BooleanField(blank=True) QS28_E = models.BooleanField(blank=True) QS29_A = models.BooleanField(blank=True) QS29_B = models.BooleanField(blank=True) QS29_C = models.BooleanField(blank=True) QS29_D = models.BooleanField(blank=True) QS29_E = models.BooleanField(blank=True) QS30_A = models.BooleanField(blank=True) QS30_B = models.BooleanField(blank=True) QS30_C = models.BooleanField(blank=True) QS30_D = models.BooleanField(blank=True) QS30_E = models.BooleanField(blank=True) QS1 = models.IntegerField(initial=0) QS2 = models.IntegerField(initial=0) QS3 = models.IntegerField(initial=0) QS4 = models.IntegerField(initial=0) QS5 = models.IntegerField(initial=0) QS6 = models.IntegerField(initial=0) QS7 = models.IntegerField(initial=0) QS8 = models.IntegerField(initial=0) QS9 = models.IntegerField(initial=0) QS10 = models.IntegerField(initial=0) QS11 = models.IntegerField(initial=0) QS12 = models.IntegerField(initial=0) QS13 = models.IntegerField(initial=0) QS14 = models.IntegerField(initial=0) QS15 = models.IntegerField(initial=0) QS16 = models.IntegerField(initial=0) QS17 = models.IntegerField(initial=0) QS18 = models.IntegerField(initial=0) QS19 = models.IntegerField(initial=0) QS20 = models.IntegerField(initial=0) QS21 = models.IntegerField(initial=0) QS22 = models.IntegerField(initial=0) QS23 = models.IntegerField(initial=0) QS24 = models.IntegerField(initial=0) QS25 = models.IntegerField(initial=0) QS26 = models.IntegerField(initial=0) QS27 = models.IntegerField(initial=0) QS28 = models.IntegerField(initial=0) QS29 = models.IntegerField(initial=0) QS30 = models.IntegerField(initial=0) email = models.LongStringField(label='Please specify your email address: (We will pay you through this email after this study. Your email is only linked to the amount of payment you earned in this study. Please be assured that there is no way to link your email with any of your specific answers.)') AI1 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='The AI tools (e.g., ChatGPT) were easy to use during my previous experience in reality.', widget=widgets.RadioSelectHorizontal) AI2 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='The AI tools (e.g., ChatGPT) were useful during my previous experience in reality.', widget=widgets.RadioSelectHorizontal) AI3 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='I am satisfied with the information, advice, and feedback provided by the AI tools (e.g., ChatGPT) during my previous experience in reality.', widget=widgets.RadioSelectHorizontal) SupUSE = models.StringField(choices=[['1 (Never)', '1 (Never)'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7 (Often)', '7 (Often)']], label='How often, on average, do you seek help from supervisor in reality?', widget=widgets.RadioSelectHorizontal) PI1 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='If I heard about a new information technology, I would look for ways to experiment with it.', widget=widgets.RadioSelectHorizontal) PI2 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='Among my peers, I am usually the first to try out new information technologies.', widget=widgets.RadioSelectHorizontal) PI3 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='In general, I am hesitant to try out new information technologies.', widget=widgets.RadioSelectHorizontal) PI4 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='I like to experiment with new information technologies.', widget=widgets.RadioSelectHorizontal) Resource_Q1 = models.StringField(blank=True) Resource_Q2 = models.StringField(blank=True) Resource_Q3 = models.StringField(blank=True) Resource_Q4 = models.StringField(blank=True) Resource_Q5 = models.StringField(blank=True) Resource_Q6 = models.StringField(blank=True) Resource_Q7 = models.StringField(blank=True) Resource_Q8 = models.StringField(blank=True) Open1 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='I am open to new experiences and complex.', widget=widgets.RadioSelectHorizontal) Open2 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='I am conventional and uncreative.', widget=widgets.RadioSelectHorizontal) RA1 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='Taking risks makes life more fun.', widget=widgets.RadioSelectHorizontal) RA2 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label="My friends would say that I'm a risk-taker.", widget=widgets.RadioSelectHorizontal) RA3 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='I enjoy taking risks in most aspects of my life.', widget=widgets.RadioSelectHorizontal) RA4 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='I would take a risk even if it meant I might get hurt.', widget=widgets.RadioSelectHorizontal) RA5 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='Taking risks is an important part of my life.', widget=widgets.RadioSelectHorizontal) RA6 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='I commonly make risky decisions.', widget=widgets.RadioSelectHorizontal) RA7 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='I am a believer of taking chances.', widget=widgets.RadioSelectHorizontal) RA8 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='I am attracted, rather than scared, by risk.', widget=widgets.RadioSelectHorizontal) RT = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='AI tools (e.g., ChatGPT) pose a threat to human jobs, resources, and safety.', widget=widgets.RadioSelectHorizontal) IT = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='AI tools (e.g., ChatGPT) pose a threat to human identity and distinctiveness.', widget=widgets.RadioSelectHorizontal) Con1 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='I can do just about anything I really set my mind to.', widget=widgets.RadioSelectHorizontal) Con2 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='When I really want to do something, I usually find a way to succeed at it.', widget=widgets.RadioSelectHorizontal) Con3 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='Other people determine most of what I can and cannot do.', widget=widgets.RadioSelectHorizontal) Con4 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='There is little I can do to change many of the important things in my life.', widget=widgets.RadioSelectHorizontal) Con5 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='I often feel helpless in dealing with the problems of life.', widget=widgets.RadioSelectHorizontal) Con6 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7']], label='What happens in my life is often beyond my control.', widget=widgets.RadioSelectHorizontal) Ethnic = models.StringField(choices=[['American Indian or Alaska Native', 'American Indian or Alaska Native'], ['Asian', 'Asian'], ['Black or African American', 'Black or African American'], ['Hispanic or Latino', 'Hispanic or Latino'], ['Native Hawaiian or Other Pacific Islander', 'Native Hawaiian or Other Pacific Islander'], ['White', 'White'], ['Others', 'Others']], label='What is your ethnic background?', widget=widgets.RadioSelectHorizontal) def custom_export(players): yield ['participant_code', 'id_in_group'] for p in players: pp = p.participant yield [pp.code, p.id_in_group] class Welcome(Page): form_model = 'player' class Constent_form(Page): form_model = 'player' form_fields = ['consent'] class Personal_information_part1(Page): form_model = 'player' form_fields = ['Dad_education', 'Mom_education', 'Dad_job', 'Mom_job', 'Dad_income', 'Mom_income', 'Zipcode_family', 'Tax_family'] @staticmethod def is_displayed(player: Player): if player.consent == 'Yes': return True class Social_class_writing(Page): form_model = 'player' form_fields = ['interaction'] @staticmethod def get_form_fields(player: Player): if player.high_low_class == 2: return None elif player.high_low_class == 0: return None else: return None @staticmethod def is_displayed(player: Player): if player.consent == 'Yes': return True class Social_class_answer(Page): form_model = 'player' form_fields = ['place', 'place_family'] @staticmethod def get_form_fields(player: Player): if player.high_low_class == 2: return ['place','place_family'] elif player.high_low_class == 1: return ['place','place_family'] else: return ['place','place_family'] @staticmethod def is_displayed(player: Player): if player.consent == 'Yes': return True class Testing(Page): form_model = 'player' class Instructions_part3(Page): form_model = 'player' @staticmethod def is_displayed(player: Player): if player.consent == 'Yes': return True class Instructions_part3_sup(Page): form_model = 'player' form_fields = ['SC1', 'SC2', 'SC3', 'SC4', 'SC5', 'SC6', 'EC1', 'EC2'] @staticmethod def is_displayed(player: Player): if player.consent == 'Yes' : return True class Instructions_part3_AI(Page): form_model = 'player' form_fields = ['Trust1', 'Trust2', 'Trust3', 'Trust4', 'Trust5', 'Trust6', 'USD1', 'USD2', 'USD3', 'Skill1', 'Skill2', 'Skill3'] @staticmethod def is_displayed(player: Player): if player.consent == 'Yes' : return True class Instructions_part3_Sup_vs_AI(Page): form_model = 'player' @staticmethod def is_displayed(player: Player): if player.consent == 'Yes': return True class Check1(Page): form_model = 'player' form_fields = ['Part3_Check1', 'Part3_Check2', 'Part3_Check3', 'Part3_Check4', 'Part3_Check5'] @staticmethod def is_displayed(player: Player): if player.consent == 'Yes' and player.comprehension2_attempts < 100: return True @staticmethod def error_message(player: Player, values): solutions = dict( Part3_Check1='Pay $0.1 per minute and write down the prompt by yourself.', Part3_Check2='Pay $0.1 per minute and record a video and send it to the supervisor.', Part3_Check3='The time spent on waiting for responses is the same for AI and the supervisor.', Part3_Check4='The quality of advice from AI and the supervisor is the same.', Part3_Check5='No need to pay anything and wait for any time.' ) errors = {} for key, correct_answer in solutions.items(): if values.get(key) != correct_answer: errors[key] = 'Please review the question(s) flagged below and correct them.' if not errors: return None player.comprehension2_attempts += 1 if player.comprehension2_attempts >= 100: player.comprehension2_wrong = True return None return errors class Instructions_part3_others(Page): form_model = 'player' @staticmethod def is_displayed(player: Player): if player.consent == 'Yes' and player.comprehension2_wrong == False and player.comprehension2_attempts < 100: return True class Check2(Page): form_model = 'player' form_fields = ['Part2_Check1', 'Part2_Check2', 'Part2_Check3'] @staticmethod def is_displayed(player: Player): if player.consent == 'Yes' and player.comprehension1_wrong == False and player.comprehension1_attempts < 100 and player.comprehension2_attempts < 100: return True @staticmethod def error_message(player: Player, values): solutions = dict( Part2_Check1='Partial Credit.', Part2_Check2='None.', Part2_Check3='Evaluate your performance on all 5 questions as if you sought help from the supervisor for 2 questions, and answered independently for 3 questions.' ) errors = {} for key, correct_answer in solutions.items(): if values.get(key) != correct_answer: errors[key] = 'Please review the question(s) flagged below and correct them.' if not errors: return None player.comprehension1_attempts += 1 if player.comprehension1_attempts >= 100: player.comprehension1_wrong = True return None else: return errors class Part3_Procedure(Page): form_model = 'player' @staticmethod def is_displayed(player: Player): if player.consent == 'Yes' and player.comprehension1_wrong == False and player.comprehension1_attempts < 100 and player.comprehension2_wrong == False and player.comprehension2_attempts < 100: return True class Help_seeking_instructions(Page): form_model = 'player' @staticmethod def is_displayed(player: Player): if player.consent == 'Yes' and player.comprehension1_wrong == False and player.comprehension1_attempts < 100 and player.comprehension2_wrong == False and player.comprehension2_attempts < 100: return True class Part3_Q1(Page): form_model = 'player' form_fields = ['Q1_seeking'] timeout_seconds = 30 @staticmethod def is_displayed(player: Player): if player.consent == 'Yes' and player.comprehension1_wrong == False and player.comprehension1_attempts < 100 and player.comprehension2_wrong == False and player.comprehension2_attempts < 100: return True class Part3_Q2(Page): form_model = 'player' form_fields = ['Q2_seeking'] timeout_seconds = 30 @staticmethod def is_displayed(player: Player): if player.consent == 'Yes' and player.comprehension1_wrong == False and player.comprehension1_attempts < 100 and player.comprehension2_wrong == False and player.comprehension2_attempts < 100: return True class Part3_Q3(Page): form_model = 'player' form_fields = ['Q3_seeking'] timeout_seconds = 30 @staticmethod def is_displayed(player: Player): if player.consent == 'Yes' and player.comprehension1_wrong == False and player.comprehension1_attempts < 100 and player.comprehension2_wrong == False and player.comprehension2_attempts < 100: return True class Part3_Q4(Page): form_model = 'player' form_fields = ['Q4_seeking'] timeout_seconds = 30 @staticmethod def is_displayed(player: Player): if player.consent == 'Yes' and player.comprehension1_wrong == False and player.comprehension1_attempts < 100 and player.comprehension2_wrong == False and player.comprehension2_attempts < 100: return True class Part3_Q5(Page): form_model = 'player' form_fields = ['Q5_seeking'] timeout_seconds = 30 @staticmethod def is_displayed(player: Player): if player.consent == 'Yes' and player.comprehension1_wrong == False and player.comprehension1_attempts < 100 and player.comprehension2_wrong == False and player.comprehension2_attempts < 100: return True class Part3_Q6(Page): form_model = 'player' form_fields = ['Q6_seeking'] timeout_seconds = 30 @staticmethod def is_displayed(player: Player): if player.consent == 'Yes' and player.comprehension1_wrong == False and player.comprehension1_attempts < 100 and player.comprehension2_wrong == False and player.comprehension2_attempts < 100: return True class Part3_Q7(Page): form_model = 'player' form_fields = ['Q7_seeking'] timeout_seconds = 30 @staticmethod def is_displayed(player: Player): if player.consent == 'Yes' and player.comprehension1_wrong == False and player.comprehension1_attempts < 100 and player.comprehension2_wrong == False and player.comprehension2_attempts < 100: return True class Part3_Q8(Page): form_model = 'player' form_fields = ['Q8_seeking'] timeout_seconds = 30 @staticmethod def is_displayed(player: Player): if player.consent == 'Yes' and player.comprehension1_wrong == False and player.comprehension1_attempts < 100 and player.comprehension2_wrong == False and player.comprehension2_attempts < 100: return True class Seeking_instructions(Page): form_model = 'player' @staticmethod def is_displayed(player: Player): if player.consent == 'Yes' and not player.comprehension1_wrong and not player.comprehension2_wrong and player.comprehension1_attempts < 100 and player.comprehension2_attempts < 100: if player.Q1_seeking == 'Seek help from the supervisor.' or 'Seek help from AI.': return True elif player.Q2_seeking == 'Seek help from the supervisor.' or 'Seek help from AI.': return True elif player.Q3_seeking == 'Seek help from the supervisor.' or 'Seek help from AI.': return True elif player.Q4_seeking == 'Seek help from the supervisor.' or 'Seek help from AI.': return True elif player.Q5_seeking == 'Seek help from the supervisor.' or 'Seek help from AI.': return True elif player.Q6_seeking == 'Seek help from the supervisor.' or 'Seek help from AI.': return True elif player.Q7_seeking == 'Seek help from the supervisor.' or 'Seek help from AI.': return True elif player.Q8_seeking == 'Seek help from the supervisor.' or 'Seek help from AI.': return True return False class Q1_seeking_sup(Page): form_model = 'player' @staticmethod def is_displayed(player: Player): if player.consent == 'Yes' and not player.comprehension1_wrong and not player.comprehension2_wrong and player.comprehension1_attempts < 100 and player.comprehension2_attempts < 100: if player.Q1_seeking == 'Seek help from the supervisor.': return True return False class Q1_seeking_AI(Page): form_model = 'player' form_fields = ['Q1_seeking_enter'] @staticmethod def is_displayed(player: Player): if player.consent == 'Yes' and not player.comprehension1_wrong and not player.comprehension2_wrong and player.comprehension1_attempts < 100 and player.comprehension2_attempts < 100: if player.Q1_seeking == 'Seek help from AI.': return True return False class Q2_seeking_sup(Page): form_model = 'player' @staticmethod def is_displayed(player: Player): if player.consent == 'Yes' and not player.comprehension1_wrong and not player.comprehension2_wrong and player.comprehension1_attempts < 100 and player.comprehension2_attempts < 100: if player.Q2_seeking == 'Seek help from the supervisor.': return True return False class Q2_seeking_AI(Page): form_model = 'player' form_fields = ['Q2_seeking_enter'] @staticmethod def is_displayed(player: Player): if player.consent == 'Yes' and not player.comprehension1_wrong and not player.comprehension2_wrong and player.comprehension1_attempts < 100 and player.comprehension2_attempts < 100: if player.Q2_seeking == 'Seek help from AI.': return True return False class Q3_seeking_sup(Page): form_model = 'player' @staticmethod def is_displayed(player: Player): if player.consent == 'Yes' and not player.comprehension1_wrong and not player.comprehension2_wrong and player.comprehension1_attempts < 100 and player.comprehension2_attempts < 100: if player.Q3_seeking == 'Seek help from the supervisor.': return True return False class Q3_seeking_AI(Page): form_model = 'player' form_fields = ['Q3_seeking_enter'] @staticmethod def is_displayed(player: Player): if player.consent == 'Yes' and not player.comprehension1_wrong and not player.comprehension2_wrong and player.comprehension1_attempts < 100 and player.comprehension2_attempts < 100: if player.Q3_seeking == 'Seek help from AI.': return True return False class Q4_seeking_sup(Page): form_model = 'player' @staticmethod def is_displayed(player: Player): if player.consent == 'Yes' and not player.comprehension1_wrong and not player.comprehension2_wrong and player.comprehension1_attempts < 100 and player.comprehension2_attempts < 100: if player.Q4_seeking == 'Seek help from the supervisor.': return True return False class Q4_seeking_AI(Page): form_model = 'player' form_fields = ['Q4_seeking_enter'] @staticmethod def is_displayed(player: Player): if player.consent == 'Yes' and not player.comprehension1_wrong and not player.comprehension2_wrong and player.comprehension1_attempts < 100 and player.comprehension2_attempts < 100: if player.Q4_seeking == 'Seek help from AI.': return True return False class Q5_seeking_sup(Page): form_model = 'player' @staticmethod def is_displayed(player: Player): if player.consent == 'Yes' and not player.comprehension1_wrong and not player.comprehension2_wrong and player.comprehension1_attempts < 100 and player.comprehension2_attempts < 100: if player.Q5_seeking == 'Seek help from the supervisor.': return True return False class Q5_seeking_AI(Page): form_model = 'player' form_fields = ['Q5_seeking_enter'] @staticmethod def is_displayed(player: Player): if player.consent == 'Yes' and not player.comprehension1_wrong and not player.comprehension2_wrong and player.comprehension1_attempts < 100 and player.comprehension2_attempts < 100: if player.Q5_seeking == 'Seek help from AI.': return True return False class Q6_seeking_sup(Page): form_model = 'player' @staticmethod def is_displayed(player: Player): if player.consent == 'Yes' and not player.comprehension1_wrong and not player.comprehension2_wrong and player.comprehension1_attempts < 100 and player.comprehension2_attempts < 100: if player.Q6_seeking == 'Seek help from the supervisor.': return True return False class Q6_seeking_AI(Page): form_model = 'player' form_fields = ['Q6_seeking_enter'] @staticmethod def is_displayed(player: Player): if player.consent == 'Yes' and not player.comprehension1_wrong and not player.comprehension2_wrong and player.comprehension1_attempts < 100 and player.comprehension2_attempts < 100: if player.Q6_seeking == 'Seek help from AI.': return True return False class Q7_seeking_sup(Page): form_model = 'player' @staticmethod def is_displayed(player: Player): if player.consent == 'Yes' and not player.comprehension1_wrong and not player.comprehension2_wrong and player.comprehension1_attempts < 100 and player.comprehension2_attempts < 100: if player.Q7_seeking == 'Seek help from the supervisor.': return True return False class Q7_seeking_AI(Page): form_model = 'player' form_fields = ['Q7_seeking_enter'] @staticmethod def is_displayed(player: Player): if player.consent == 'Yes' and not player.comprehension1_wrong and not player.comprehension2_wrong and player.comprehension1_attempts < 100 and player.comprehension2_attempts < 100: if player.Q7_seeking == 'Seek help from AI.': return True return False class Q8_seeking_sup(Page): form_model = 'player' @staticmethod def is_displayed(player: Player): if player.consent == 'Yes' and not player.comprehension1_wrong and not player.comprehension2_wrong and player.comprehension1_attempts < 100 and player.comprehension2_attempts < 100: if player.Q8_seeking == 'Seek help from the supervisor.': return True return False class Q8_seeking_AI(Page): form_model = 'player' form_fields = ['Q8_seeking_enter'] @staticmethod def is_displayed(player: Player): if player.consent == 'Yes' and not player.comprehension1_wrong and not player.comprehension2_wrong and player.comprehension1_attempts < 100 and player.comprehension2_attempts < 100: if player.Q8_seeking == 'Seek help from AI.': return True return False class Answer_instructions(Page): form_model = 'player' @staticmethod def is_displayed(player: Player): if player.consent == 'Yes' and player.comprehension1_wrong == False and player.comprehension1_attempts < 100 and player.comprehension2_wrong == False and player.comprehension2_attempts < 100: return True class Part3_Q1_answer(Page): form_model = 'player' form_fields = ['QS1_A', 'QS1_B', 'QS1_C', 'QS1_D', 'QS1_E', 'QS2_A', 'QS2_B', 'QS2_C', 'QS2_D', 'QS2_E', 'QS3_A', 'QS3_B', 'QS3_C', 'QS3_D', 'QS3_E', 'QS4_A', 'QS4_B', 'QS4_C', 'QS4_D', 'QS4_E', 'QS5_A', 'QS5_B', 'QS5_C', 'QS5_D', 'QS5_E', 'QS6_A', 'QS6_B', 'QS6_C', 'QS6_D', 'QS6_E', 'QS7_A', 'QS7_B', 'QS7_C', 'QS7_D', 'QS7_E', 'QS8_A', 'QS8_B', 'QS8_C', 'QS8_D', 'QS8_E', 'QS9_A', 'QS9_B', 'QS9_C', 'QS9_D', 'QS9_E', 'QS10_A', 'QS10_B', 'QS10_C', 'QS10_D', 'QS10_E', 'QS11_A', 'QS11_B', 'QS11_C', 'QS11_D', 'QS11_E', 'QS12_A', 'QS12_B', 'QS12_C', 'QS12_D', 'QS12_E', 'QS13_A', 'QS13_B', 'QS13_C', 'QS13_D', 'QS13_E', 'QS14_A', 'QS14_B', 'QS14_C', 'QS14_D', 'QS14_E', 'QS15_A', 'QS15_B', 'QS15_C', 'QS15_D', 'QS15_E', 'QS16_A', 'QS16_B', 'QS16_C', 'QS16_D', 'QS16_E', 'QS17_A', 'QS17_B', 'QS17_C', 'QS17_D', 'QS17_E', 'QS18_A', 'QS18_B', 'QS18_C', 'QS18_D', 'QS18_E', 'QS19_A', 'QS19_B', 'QS19_C', 'QS19_D', 'QS19_E', 'QS20_A', 'QS20_B', 'QS20_C', 'QS20_D', 'QS20_E', 'QS21_A', 'QS21_B', 'QS21_C', 'QS21_D', 'QS21_E', 'QS22_A', 'QS22_B', 'QS22_C', 'QS22_D', 'QS22_E', 'QS23_A', 'QS23_B', 'QS23_C', 'QS23_D', 'QS23_E', 'QS24_A', 'QS24_B', 'QS24_C', 'QS24_D', 'QS24_E', 'QS25_A', 'QS25_B', 'QS25_C', 'QS25_D', 'QS25_E', 'QS26_A', 'QS26_B', 'QS26_C', 'QS26_D', 'QS26_E', 'QS27_A', 'QS27_B', 'QS27_C', 'QS27_D', 'QS27_E', 'QS28_A', 'QS28_B', 'QS28_C', 'QS28_D', 'QS28_E', 'QS29_A', 'QS29_B', 'QS29_C', 'QS29_D', 'QS29_E', 'QS30_A', 'QS30_B', 'QS30_C', 'QS30_D', 'QS30_E'] timeout_seconds = 15 @staticmethod def is_displayed(player: Player): if player.consent == 'Yes' and player.comprehension1_wrong == False and player.comprehension1_attempts < 100 and player.comprehension2_wrong == False and player.comprehension2_attempts < 100: return True @staticmethod def vars_for_template(player: Player): import random variables = {} if player.QS1 == 1: if player.Q1_seeking == 'Seek help from AI.': player.Resource_Q1 = 'The suggestion from AI is A,B,C,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q1_seeking == 'Seek help from the supervisor.': player.Resource_Q1 = 'The suggestion from supervisor is A,B,C,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q1_seeking == 'Answer independently.': player.Resource_Q1 = 'Please answer this question independently.' else: player.Resource_Q1 = '' elif player.QS2 == 1: if player.Q1_seeking == 'Seek help from AI.': player.Resource_Q1 = 'The suggestion from AI is C,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q1_seeking == 'Seek help from the supervisor.': player.Resource_Q1 = 'The suggestion from supervisor is C,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q1_seeking == 'Answer independently.': player.Resource_Q1 = 'Please answer this question independently.' else: player.Resource_Q1 = '' elif player.QS3 == 1: if player.Q1_seeking == 'Seek help from AI.': player.Resource_Q1 = 'The suggestion from AI is A,C,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q1_seeking == 'Seek help from the supervisor.': player.Resource_Q1 = 'The suggestion from supervisor is A,C,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q1_seeking == 'Answer independently.': player.Resource_Q1 = 'Please answer this question independently.' else: player.Resource_Q1 = '' elif player.QS4 == 1: if player.Q1_seeking == 'Seek help from AI.': player.Resource_Q1 = 'The suggestion from AI is A,B,C,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q1_seeking == 'Seek help from the supervisor.': player.Resource_Q1 = 'The suggestion from supervisor is A,B,C,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q1_seeking == 'Answer independently.': player.Resource_Q1 = 'Please answer this question independently.' else: player.Resource_Q1 = '' elif player.QS5 == 1: if player.Q1_seeking == 'Seek help from AI.': player.Resource_Q1 = 'The suggestion from AI is A,B,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q1_seeking == 'Seek help from the supervisor.': player.Resource_Q1 = 'The suggestion from supervisor is A,B,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q1_seeking == 'Answer independently.': player.Resource_Q1 = 'Please answer this question independently.' else: player.Resource_Q1 = '' elif player.QS6 == 1: if player.Q1_seeking == 'Seek help from AI.': player.Resource_Q1 = 'The suggestion from AI is A,C,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q1_seeking == 'Seek help from the supervisor.': player.Resource_Q1 = 'The suggestion from supervisor is A,C,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q1_seeking == 'Answer independently.': player.Resource_Q1 = 'Please answer this question independently.' else: player.Resource_Q1 = '' elif player.QS7 == 1: if player.Q1_seeking == 'Seek help from AI.': player.Resource_Q1 = 'The suggestion from AI is A,B,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q1_seeking == 'Seek help from the supervisor.': player.Resource_Q1 = 'The suggestion from supervisor is A,B,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q1_seeking == 'Answer independently.': player.Resource_Q1 = 'Please answer this question independently.' else: player.Resource_Q1 = '' elif player.QS8 == 1: if player.Q1_seeking == 'Seek help from AI.': player.Resource_Q1 = 'The suggestion from AI is A,B,C.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q1_seeking == 'Seek help from the supervisor.': player.Resource_Q1 = 'The suggestion from supervisor is A,B,C.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q1_seeking == 'Answer independently.': player.Resource_Q1 = 'Please answer this question independently.' else: player.Resource_Q1 = '' elif player.QS9 == 1: if player.Q1_seeking == 'Seek help from AI.': player.Resource_Q1 = 'The suggestion from AI is A,B,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q1_seeking == 'Seek help from the supervisor.': player.Resource_Q1 = 'The suggestion from supervisor is A,B,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q1_seeking == 'Answer independently.': player.Resource_Q1 = 'Please answer this question independently.' else: player.Resource_Q1 = '' elif player.QS10 == 1: if player.Q1_seeking == 'Seek help from AI.': player.Resource_Q1 = 'The suggestion from AI is A,B,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q1_seeking == 'Seek help from the supervisor.': player.Resource_Q1 = 'The suggestion from supervisor is A,B,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q1_seeking == 'Answer independently.': player.Resource_Q1 = 'Please answer this question independently.' else: player.Resource_Q1 = '' elif player.QS11 == 1: if player.Q1_seeking == 'Seek help from AI.': player.Resource_Q1 = 'The suggestion from AI is B,C.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q1_seeking == 'Seek help from the supervisor.': player.Resource_Q1 = 'The suggestion from supervisor is B,C.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q1_seeking == 'Answer independently.': player.Resource_Q1 = 'Please answer this question independently.' else: player.Resource_Q1 = '' elif player.QS12 == 1: if player.Q1_seeking == 'Seek help from AI.': player.Resource_Q1 = 'The suggestion from AI is A,B,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q1_seeking == 'Seek help from the supervisor.': player.Resource_Q1 = 'The suggestion from supervisor is A,B,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q1_seeking == 'Answer independently.': player.Resource_Q1 = 'Please answer this question independently.' else: player.Resource_Q1 = '' elif player.QS13 == 1: if player.Q1_seeking == 'Seek help from AI.': player.Resource_Q1 = 'The suggestion from AI is A,B,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q1_seeking == 'Seek help from the supervisor.': player.Resource_Q1 = 'The suggestion from supervisor is A,B,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q1_seeking == 'Answer independently.': player.Resource_Q1 = 'Please answer this question independently.' else: player.Resource_Q1 = '' elif player.QS14 == 1: if player.Q1_seeking == 'Seek help from AI.': player.Resource_Q1 = 'The suggestion from AI is A,B,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q1_seeking == 'Seek help from the supervisor.': player.Resource_Q1 = 'The suggestion from supervisor is A,B,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q1_seeking == 'Answer independently.': player.Resource_Q1 = 'Please answer this question independently.' else: player.Resource_Q1 = '' elif player.QS15 == 1: if player.Q1_seeking == 'Seek help from AI.': player.Resource_Q1 = 'The suggestion from AI is A,C,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q1_seeking == 'Seek help from the supervisor.': player.Resource_Q1 = 'The suggestion from supervisor is A,C,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q1_seeking == 'Answer independently.': player.Resource_Q1 = 'Please answer this question independently.' else: player.Resource_Q1 = '' elif player.QS16 == 1: if player.Q1_seeking == 'Seek help from AI.': player.Resource_Q1 = 'The suggestion from AI is A,C,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q1_seeking == 'Seek help from the supervisor.': player.Resource_Q1 = 'The suggestion from supervisor is A,C,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q1_seeking == 'Answer independently.': player.Resource_Q1 = 'Please answer this question independently.' else: player.Resource_Q1 = '' elif player.QS17 == 1: if player.Q1_seeking == 'Seek help from AI.': player.Resource_Q1 = 'The suggestion from AI is A,B,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q1_seeking == 'Seek help from the supervisor.': player.Resource_Q1 = 'The suggestion from supervisor is A,B,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q1_seeking == 'Answer independently.': player.Resource_Q1 = 'Please answer this question independently.' else: player.Resource_Q1 = '' elif player.QS18 == 1: if player.Q1_seeking == 'Seek help from AI.': player.Resource_Q1 = 'The suggestion from AI is A,B,C,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q1_seeking == 'Seek help from the supervisor.': player.Resource_Q1 = 'The suggestion from supervisor is A,B,C,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q1_seeking == 'Answer independently.': player.Resource_Q1 = 'Please answer this question independently.' else: player.Resource_Q1 = '' elif player.QS19 == 1: if player.Q1_seeking == 'Seek help from AI.': player.Resource_Q1 = 'The suggestion from AI is B,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q1_seeking == 'Seek help from the supervisor.': player.Resource_Q1 = 'The suggestion from supervisor is B,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q1_seeking == 'Answer independently.': player.Resource_Q1 = 'Please answer this question independently.' else: player.Resource_Q1 = '' elif player.QS20 == 1: if player.Q1_seeking == 'Seek help from AI.': player.Resource_Q1 = 'The suggestion from AI is A,B,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q1_seeking == 'Seek help from the supervisor.': player.Resource_Q1 = 'The suggestion from supervisor is A,B,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q1_seeking == 'Answer independently.': player.Resource_Q1 = 'Please answer this question independently.' else: player.Resource_Q1 = '' elif player.QS21 == 1: if player.Q1_seeking == 'Seek help from AI.': player.Resource_Q1 = 'The suggestion from AI is A,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q1_seeking == 'Seek help from the supervisor.': player.Resource_Q1 = 'The suggestion from supervisor is A,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q1_seeking == 'Answer independently.': player.Resource_Q1 = 'Please answer this question independently.' else: player.Resource_Q1 = '' elif player.QS22 == 1: if player.Q1_seeking == 'Seek help from AI.': player.Resource_Q1 = 'The suggestion from AI is A,B,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q1_seeking == 'Seek help from the supervisor.': player.Resource_Q1 = 'The suggestion from supervisor is A,B,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q1_seeking == 'Answer independently.': player.Resource_Q1 = 'Please answer this question independently.' else: player.Resource_Q1 = '' elif player.QS23 == 1: if player.Q1_seeking == 'Seek help from AI.': player.Resource_Q1 = 'The suggestion from AI is A,B,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q1_seeking == 'Seek help from the supervisor.': player.Resource_Q1 = 'The suggestion from supervisor is A,B,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q1_seeking == 'Answer independently.': player.Resource_Q1 = 'Please answer this question independently.' else: player.Resource_Q1 = '' elif player.QS24 == 1: if player.Q1_seeking == 'Seek help from AI.': player.Resource_Q1 = 'The suggestion from AI is C,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q1_seeking == 'Seek help from the supervisor.': player.Resource_Q1 = 'The suggestion from supervisor is C,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q1_seeking == 'Answer independently.': player.Resource_Q1 = 'Please answer this question independently.' else: player.Resource_Q1 = '' elif player.QS25 == 1: if player.Q1_seeking == 'Seek help from AI.': player.Resource_Q1 = 'The suggestion from AI is A,B,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q1_seeking == 'Seek help from the supervisor.': player.Resource_Q1 = 'The suggestion from supervisor is A,B,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q1_seeking == 'Answer independently.': player.Resource_Q1 = 'Please answer this question independently.' else: player.Resource_Q1 = '' elif player.QS26 == 1: if player.Q1_seeking == 'Seek help from AI.': player.Resource_Q1 = 'The suggestion from AI is A,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q1_seeking == 'Seek help from the supervisor.': player.Resource_Q1 = 'The suggestion from supervisor is A,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q1_seeking == 'Answer independently.': player.Resource_Q1 = 'Please answer this question independently.' else: player.Resource_Q1 = '' elif player.QS27 == 1: if player.Q1_seeking == 'Seek help from AI.': player.Resource_Q1 = 'The suggestion from AI is A,C.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q1_seeking == 'Seek help from the supervisor.': player.Resource_Q1 = 'The suggestion from supervisor is A,C.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q1_seeking == 'Answer independently.': player.Resource_Q1 = 'Please answer this question independently.' else: player.Resource_Q1 = '' elif player.QS28 == 1: if player.Q1_seeking == 'Seek help from AI.': player.Resource_Q1 = 'The suggestion from AI is A,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q1_seeking == 'Seek help from the supervisor.': player.Resource_Q1 = 'The suggestion from supervisor is A,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q1_seeking == 'Answer independently.': player.Resource_Q1 = 'Please answer this question independently.' else: player.Resource_Q1 = '' elif player.QS29 == 1: if player.Q1_seeking == 'Seek help from AI.': player.Resource_Q1 = 'The suggestion from AI is A,B.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q1_seeking == 'Seek help from the supervisor.': player.Resource_Q1 = 'The suggestion from supervisor is A,B.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q1_seeking == 'Answer independently.': player.Resource_Q1 = 'Please answer this question independently.' else: player.Resource_Q1 = '' elif player.QS30 == 1: if player.Q1_seeking == 'Seek help from AI.': player.Resource_Q1 = 'The suggestion from AI is A,B.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q1_seeking == 'Seek help from the supervisor.': player.Resource_Q1 = 'The suggestion from supervisor is A,B.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q1_seeking == 'Answer independently.': player.Resource_Q1 = 'Please answer this question independently.' else: player.Resource_Q1 = '' return variables class Part3_Q2_answer(Page): form_model = 'player' form_fields = ['QS1_A', 'QS1_B', 'QS1_C', 'QS1_D', 'QS1_E', 'QS2_A', 'QS2_B', 'QS2_C', 'QS2_D', 'QS2_E', 'QS3_A', 'QS3_B', 'QS3_C', 'QS3_D', 'QS3_E', 'QS4_A', 'QS4_B', 'QS4_C', 'QS4_D', 'QS4_E', 'QS5_A', 'QS5_B', 'QS5_C', 'QS5_D', 'QS5_E', 'QS6_A', 'QS6_B', 'QS6_C', 'QS6_D', 'QS6_E', 'QS7_A', 'QS7_B', 'QS7_C', 'QS7_D', 'QS7_E', 'QS8_A', 'QS8_B', 'QS8_C', 'QS8_D', 'QS8_E', 'QS9_A', 'QS9_B', 'QS9_C', 'QS9_D', 'QS9_E', 'QS10_A', 'QS10_B', 'QS10_C', 'QS10_D', 'QS10_E', 'QS11_A', 'QS11_B', 'QS11_C', 'QS11_D', 'QS11_E', 'QS12_A', 'QS12_B', 'QS12_C', 'QS12_D', 'QS12_E', 'QS13_A', 'QS13_B', 'QS13_C', 'QS13_D', 'QS13_E', 'QS14_A', 'QS14_B', 'QS14_C', 'QS14_D', 'QS14_E', 'QS15_A', 'QS15_B', 'QS15_C', 'QS15_D', 'QS15_E', 'QS16_A', 'QS16_B', 'QS16_C', 'QS16_D', 'QS16_E', 'QS17_A', 'QS17_B', 'QS17_C', 'QS17_D', 'QS17_E', 'QS18_A', 'QS18_B', 'QS18_C', 'QS18_D', 'QS18_E', 'QS19_A', 'QS19_B', 'QS19_C', 'QS19_D', 'QS19_E', 'QS20_A', 'QS20_B', 'QS20_C', 'QS20_D', 'QS20_E', 'QS21_A', 'QS21_B', 'QS21_C', 'QS21_D', 'QS21_E', 'QS22_A', 'QS22_B', 'QS22_C', 'QS22_D', 'QS22_E', 'QS23_A', 'QS23_B', 'QS23_C', 'QS23_D', 'QS23_E', 'QS24_A', 'QS24_B', 'QS24_C', 'QS24_D', 'QS24_E', 'QS25_A', 'QS25_B', 'QS25_C', 'QS25_D', 'QS25_E', 'QS26_A', 'QS26_B', 'QS26_C', 'QS26_D', 'QS26_E', 'QS27_A', 'QS27_B', 'QS27_C', 'QS27_D', 'QS27_E', 'QS28_A', 'QS28_B', 'QS28_C', 'QS28_D', 'QS28_E', 'QS29_A', 'QS29_B', 'QS29_C', 'QS29_D', 'QS29_E', 'QS30_A', 'QS30_B', 'QS30_C', 'QS30_D', 'QS30_E'] timeout_seconds = 15 @staticmethod def is_displayed(player: Player): if player.consent == 'Yes' and player.comprehension1_wrong == False and player.comprehension1_attempts < 100 and player.comprehension2_wrong == False and player.comprehension2_attempts < 100: return True @staticmethod def vars_for_template(player: Player): import random variables = {} if player.QS1 == 2: if player.Q2_seeking == 'Seek help from AI.': player.Resource_Q2 = 'The suggestion from AI is A,B,C,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q2_seeking == 'Seek help from the supervisor.': player.Resource_Q2 = 'The suggestion from supervisor is A,B,C,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q2_seeking == 'Answer independently.': player.Resource_Q2 = 'Please answer this question independently.' else: player.Resource_Q2 = '' elif player.QS2 == 2: if player.Q2_seeking == 'Seek help from AI.': player.Resource_Q2 = 'The suggestion from AI is C,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q2_seeking == 'Seek help from the supervisor.': player.Resource_Q2 = 'The suggestion from supervisor is C,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q2_seeking == 'Answer independently.': player.Resource_Q2 = 'Please answer this question independently.' else: player.Resource_Q2 = '' elif player.QS3 == 2: if player.Q2_seeking == 'Seek help from AI.': player.Resource_Q2 = 'The suggestion from AI is A,C,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q2_seeking == 'Seek help from the supervisor.': player.Resource_Q2 = 'The suggestion from supervisor is A,C,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q2_seeking == 'Answer independently.': player.Resource_Q2 = 'Please answer this question independently.' else: player.Resource_Q2 = '' elif player.QS4 == 2: if player.Q2_seeking == 'Seek help from AI.': player.Resource_Q2 = 'The suggestion from AI is A,B,C,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q2_seeking == 'Seek help from the supervisor.': player.Resource_Q2 = 'The suggestion from supervisor is A,B,C,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q2_seeking == 'Answer independently.': player.Resource_Q2 = 'Please answer this question independently.' else: player.Resource_Q2 = '' elif player.QS5 == 2: if player.Q2_seeking == 'Seek help from AI.': player.Resource_Q2 = 'The suggestion from AI is A,B,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q2_seeking == 'Seek help from the supervisor.': player.Resource_Q2 = 'The suggestion from supervisor is A,B,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q2_seeking == 'Answer independently.': player.Resource_Q2 = 'Please answer this question independently.' else: player.Resource_Q2 = '' elif player.QS6 == 2: if player.Q2_seeking == 'Seek help from AI.': player.Resource_Q2 = 'The suggestion from AI is A,C,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q2_seeking == 'Seek help from the supervisor.': player.Resource_Q2 = 'The suggestion from supervisor is A,C,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q2_seeking == 'Answer independently.': player.Resource_Q2 = 'Please answer this question independently.' else: player.Resource_Q2 = '' elif player.QS7 == 2: if player.Q2_seeking == 'Seek help from AI.': player.Resource_Q2 = 'The suggestion from AI is A,B,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q2_seeking == 'Seek help from the supervisor.': player.Resource_Q2 = 'The suggestion from supervisor is A,B,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q2_seeking == 'Answer independently.': player.Resource_Q2 = 'Please answer this question independently.' else: player.Resource_Q2 = '' elif player.QS8 == 2: if player.Q2_seeking == 'Seek help from AI.': player.Resource_Q2 = 'The suggestion from AI is A,B,C.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q2_seeking == 'Seek help from the supervisor.': player.Resource_Q2 = 'The suggestion from supervisor is A,B,C.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q2_seeking == 'Answer independently.': player.Resource_Q2 = 'Please answer this question independently.' else: player.Resource_Q2 = '' elif player.QS9 == 2: if player.Q2_seeking == 'Seek help from AI.': player.Resource_Q2 = 'The suggestion from AI is A,B,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q2_seeking == 'Seek help from the supervisor.': player.Resource_Q2 = 'The suggestion from supervisor is A,B,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q2_seeking == 'Answer independently.': player.Resource_Q2 = 'Please answer this question independently.' else: player.Resource_Q2 = '' elif player.QS10 == 2: if player.Q2_seeking == 'Seek help from AI.': player.Resource_Q2 = 'The suggestion from AI is A,B,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q2_seeking == 'Seek help from the supervisor.': player.Resource_Q2 = 'The suggestion from supervisor is A,B,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q2_seeking == 'Answer independently.': player.Resource_Q2 = 'Please answer this question independently.' else: player.Resource_Q2 = '' elif player.QS11 == 2: if player.Q2_seeking == 'Seek help from AI.': player.Resource_Q2 = 'The suggestion from AI is B,C.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q2_seeking == 'Seek help from the supervisor.': player.Resource_Q2 = 'The suggestion from supervisor is B,C.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q2_seeking == 'Answer independently.': player.Resource_Q2 = 'Please answer this question independently.' else: player.Resource_Q2 = '' elif player.QS12 == 2: if player.Q2_seeking == 'Seek help from AI.': player.Resource_Q2 = 'The suggestion from AI is A,B,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q2_seeking == 'Seek help from the supervisor.': player.Resource_Q2 = 'The suggestion from supervisor is A,B,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q2_seeking == 'Answer independently.': player.Resource_Q2 = 'Please answer this question independently.' else: player.Resource_Q2 = '' elif player.QS13 == 2: if player.Q2_seeking == 'Seek help from AI.': player.Resource_Q2 = 'The suggestion from AI is A,B,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q2_seeking == 'Seek help from the supervisor.': player.Resource_Q2 = 'The suggestion from supervisor is A,B,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q2_seeking == 'Answer independently.': player.Resource_Q2 = 'Please answer this question independently.' else: player.Resource_Q2 = '' elif player.QS14 == 2: if player.Q2_seeking == 'Seek help from AI.': player.Resource_Q2 = 'The suggestion from AI is A,B,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q2_seeking == 'Seek help from the supervisor.': player.Resource_Q2 = 'The suggestion from supervisor is A,B,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q2_seeking == 'Answer independently.': player.Resource_Q2 = 'Please answer this question independently.' else: player.Resource_Q2 = '' elif player.QS15 == 2: if player.Q2_seeking == 'Seek help from AI.': player.Resource_Q2 = 'The suggestion from AI is A,C,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q2_seeking == 'Seek help from the supervisor.': player.Resource_Q2 = 'The suggestion from supervisor is A,C,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q2_seeking == 'Answer independently.': player.Resource_Q2 = 'Please answer this question independently.' else: player.Resource_Q2 = '' elif player.QS16 == 2: if player.Q2_seeking == 'Seek help from AI.': player.Resource_Q2 = 'The suggestion from AI is A,C,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q2_seeking == 'Seek help from the supervisor.': player.Resource_Q2 = 'The suggestion from supervisor is A,C,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q2_seeking == 'Answer independently.': player.Resource_Q2 = 'Please answer this question independently.' else: player.Resource_Q2 = '' elif player.QS17 == 2: if player.Q2_seeking == 'Seek help from AI.': player.Resource_Q2 = 'The suggestion from AI is A,B,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q2_seeking == 'Seek help from the supervisor.': player.Resource_Q2 = 'The suggestion from supervisor is A,B,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q2_seeking == 'Answer independently.': player.Resource_Q2 = 'Please answer this question independently.' else: player.Resource_Q2 = '' elif player.QS18 == 2: if player.Q2_seeking == 'Seek help from AI.': player.Resource_Q2 = 'The suggestion from AI is A,B,C,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q2_seeking == 'Seek help from the supervisor.': player.Resource_Q2 = 'The suggestion from supervisor is A,B,C,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q2_seeking == 'Answer independently.': player.Resource_Q2 = 'Please answer this question independently.' else: player.Resource_Q2 = '' elif player.QS19 == 2: if player.Q2_seeking == 'Seek help from AI.': player.Resource_Q2 = 'The suggestion from AI is B,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q2_seeking == 'Seek help from the supervisor.': player.Resource_Q2 = 'The suggestion from supervisor is B,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q2_seeking == 'Answer independently.': player.Resource_Q2 = 'Please answer this question independently.' else: player.Resource_Q2 = '' elif player.QS20 == 2: if player.Q2_seeking == 'Seek help from AI.': player.Resource_Q2 = 'The suggestion from AI is A,B,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q2_seeking == 'Seek help from the supervisor.': player.Resource_Q2 = 'The suggestion from supervisor is A,B,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q2_seeking == 'Answer independently.': player.Resource_Q2 = 'Please answer this question independently.' else: player.Resource_Q2 = '' elif player.QS21 == 2: if player.Q2_seeking == 'Seek help from AI.': player.Resource_Q2 = 'The suggestion from AI is A,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q2_seeking == 'Seek help from the supervisor.': player.Resource_Q2 = 'The suggestion from supervisor is A,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q2_seeking == 'Answer independently.': player.Resource_Q2 = 'Please answer this question independently.' else: player.Resource_Q2 = '' elif player.QS22 == 2: if player.Q2_seeking == 'Seek help from AI.': player.Resource_Q2 = 'The suggestion from AI is A,B,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q2_seeking == 'Seek help from the supervisor.': player.Resource_Q2 = 'The suggestion from supervisor is A,B,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q2_seeking == 'Answer independently.': player.Resource_Q2 = 'Please answer this question independently.' else: player.Resource_Q2 = '' elif player.QS23 == 2: if player.Q2_seeking == 'Seek help from AI.': player.Resource_Q2 = 'The suggestion from AI is A,B,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q2_seeking == 'Seek help from the supervisor.': player.Resource_Q2 = 'The suggestion from supervisor is A,B,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q2_seeking == 'Answer independently.': player.Resource_Q2 = 'Please answer this question independently.' else: player.Resource_Q2 = '' elif player.QS24 == 2: if player.Q2_seeking == 'Seek help from AI.': player.Resource_Q2 = 'The suggestion from AI is C,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q2_seeking == 'Seek help from the supervisor.': player.Resource_Q2 = 'The suggestion from supervisor is C,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q2_seeking == 'Answer independently.': player.Resource_Q2 = 'Please answer this question independently.' else: player.Resource_Q2 = '' elif player.QS25 == 2: if player.Q2_seeking == 'Seek help from AI.': player.Resource_Q2 = 'The suggestion from AI is A,B,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q2_seeking == 'Seek help from the supervisor.': player.Resource_Q2 = 'The suggestion from supervisor is A,B,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q2_seeking == 'Answer independently.': player.Resource_Q2 = 'Please answer this question independently.' else: player.Resource_Q2 = '' elif player.QS26 == 2: if player.Q2_seeking == 'Seek help from AI.': player.Resource_Q2 = 'The suggestion from AI is A,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q2_seeking == 'Seek help from the supervisor.': player.Resource_Q2 = 'The suggestion from supervisor is A,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q2_seeking == 'Answer independently.': player.Resource_Q2 = 'Please answer this question independently.' else: player.Resource_Q2 = '' elif player.QS27 == 2: if player.Q2_seeking == 'Seek help from AI.': player.Resource_Q2 = 'The suggestion from AI is A,C.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q2_seeking == 'Seek help from the supervisor.': player.Resource_Q2 = 'The suggestion from supervisor is A,C.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q2_seeking == 'Answer independently.': player.Resource_Q2 = 'Please answer this question independently.' else: player.Resource_Q2 = '' elif player.QS28 == 2: if player.Q2_seeking == 'Seek help from AI.': player.Resource_Q2 = 'The suggestion from AI is A,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q2_seeking == 'Seek help from the supervisor.': player.Resource_Q2 = 'The suggestion from supervisor is A,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q2_seeking == 'Answer independently.': player.Resource_Q2 = 'Please answer this question independently.' else: player.Resource_Q2 = '' elif player.QS29 == 2: if player.Q2_seeking == 'Seek help from AI.': player.Resource_Q2 = 'The suggestion from AI is A,B.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q2_seeking == 'Seek help from the supervisor.': player.Resource_Q2 = 'The suggestion from supervisor is A,B.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q2_seeking == 'Answer independently.': player.Resource_Q2 = 'Please answer this question independently.' else: player.Resource_Q2 = '' elif player.QS30 == 2: if player.Q2_seeking == 'Seek help from AI.': player.Resource_Q2 = 'The suggestion from AI is A,B.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q2_seeking == 'Seek help from the supervisor.': player.Resource_Q2 = 'The suggestion from supervisor is A,B.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q2_seeking == 'Answer independently.': player.Resource_Q2 = 'Please answer this question independently.' else: player.Resource_Q2 = '' return variables class Part3_Q3_answer(Page): form_model = 'player' form_fields = ['QS1_A', 'QS1_B', 'QS1_C', 'QS1_D', 'QS1_E', 'QS2_A', 'QS2_B', 'QS2_C', 'QS2_D', 'QS2_E', 'QS3_A', 'QS3_B', 'QS3_C', 'QS3_D', 'QS3_E', 'QS4_A', 'QS4_B', 'QS4_C', 'QS4_D', 'QS4_E', 'QS5_A', 'QS5_B', 'QS5_C', 'QS5_D', 'QS5_E', 'QS6_A', 'QS6_B', 'QS6_C', 'QS6_D', 'QS6_E', 'QS7_A', 'QS7_B', 'QS7_C', 'QS7_D', 'QS7_E', 'QS8_A', 'QS8_B', 'QS8_C', 'QS8_D', 'QS8_E', 'QS9_A', 'QS9_B', 'QS9_C', 'QS9_D', 'QS9_E', 'QS10_A', 'QS10_B', 'QS10_C', 'QS10_D', 'QS10_E', 'QS11_A', 'QS11_B', 'QS11_C', 'QS11_D', 'QS11_E', 'QS12_A', 'QS12_B', 'QS12_C', 'QS12_D', 'QS12_E', 'QS13_A', 'QS13_B', 'QS13_C', 'QS13_D', 'QS13_E', 'QS14_A', 'QS14_B', 'QS14_C', 'QS14_D', 'QS14_E', 'QS15_A', 'QS15_B', 'QS15_C', 'QS15_D', 'QS15_E', 'QS16_A', 'QS16_B', 'QS16_C', 'QS16_D', 'QS16_E', 'QS17_A', 'QS17_B', 'QS17_C', 'QS17_D', 'QS17_E', 'QS18_A', 'QS18_B', 'QS18_C', 'QS18_D', 'QS18_E', 'QS19_A', 'QS19_B', 'QS19_C', 'QS19_D', 'QS19_E', 'QS20_A', 'QS20_B', 'QS20_C', 'QS20_D', 'QS20_E', 'QS21_A', 'QS21_B', 'QS21_C', 'QS21_D', 'QS21_E', 'QS22_A', 'QS22_B', 'QS22_C', 'QS22_D', 'QS22_E', 'QS23_A', 'QS23_B', 'QS23_C', 'QS23_D', 'QS23_E', 'QS24_A', 'QS24_B', 'QS24_C', 'QS24_D', 'QS24_E', 'QS25_A', 'QS25_B', 'QS25_C', 'QS25_D', 'QS25_E', 'QS26_A', 'QS26_B', 'QS26_C', 'QS26_D', 'QS26_E', 'QS27_A', 'QS27_B', 'QS27_C', 'QS27_D', 'QS27_E', 'QS28_A', 'QS28_B', 'QS28_C', 'QS28_D', 'QS28_E', 'QS29_A', 'QS29_B', 'QS29_C', 'QS29_D', 'QS29_E', 'QS30_A', 'QS30_B', 'QS30_C', 'QS30_D', 'QS30_E'] timeout_seconds = 15 @staticmethod def is_displayed(player: Player): if player.consent == 'Yes' and player.comprehension1_wrong == False and player.comprehension1_attempts < 100 and player.comprehension2_wrong == False and player.comprehension2_attempts < 100: return True @staticmethod def vars_for_template(player: Player): import random variables = {} if player.QS1 == 3: if player.Q3_seeking == 'Seek help from AI.': player.Resource_Q3 = 'The suggestion from AI is A,B,C,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q3_seeking == 'Seek help from the supervisor.': player.Resource_Q3 = 'The suggestion from supervisor is A,B,C,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q3_seeking == 'Answer independently.': player.Resource_Q3 = 'Please answer this question independently.' else: player.Resource_Q3 = '' elif player.QS2 == 3: if player.Q3_seeking == 'Seek help from AI.': player.Resource_Q3 = 'The suggestion from AI is C,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q3_seeking == 'Seek help from the supervisor.': player.Resource_Q3 = 'The suggestion from supervisor is C,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q3_seeking == 'Answer independently.': player.Resource_Q3 = 'Please answer this question independently.' else: player.Resource_Q3 = '' elif player.QS3 == 3: if player.Q3_seeking == 'Seek help from AI.': player.Resource_Q3 = 'The suggestion from AI is A,C,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q3_seeking == 'Seek help from the supervisor.': player.Resource_Q3 = 'The suggestion from supervisor is A,C,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q3_seeking == 'Answer independently.': player.Resource_Q3 = 'Please answer this question independently.' else: player.Resource_Q3 = '' elif player.QS4 == 3: if player.Q3_seeking == 'Seek help from AI.': player.Resource_Q3 = 'The suggestion from AI is A,B,C,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q3_seeking == 'Seek help from the supervisor.': player.Resource_Q3 = 'The suggestion from supervisor is A,B,C,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q3_seeking == 'Answer independently.': player.Resource_Q3 = 'Please answer this question independently.' else: player.Resource_Q3 = '' elif player.QS5 == 3: if player.Q3_seeking == 'Seek help from AI.': player.Resource_Q3 = 'The suggestion from AI is A,B,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q3_seeking == 'Seek help from the supervisor.': player.Resource_Q3 = 'The suggestion from supervisor is A,B,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q3_seeking == 'Answer independently.': player.Resource_Q3 = 'Please answer this question independently.' else: player.Resource_Q3 = '' elif player.QS6 == 3: if player.Q3_seeking == 'Seek help from AI.': player.Resource_Q3 = 'The suggestion from AI is A,C,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q3_seeking == 'Seek help from the supervisor.': player.Resource_Q3 = 'The suggestion from supervisor is A,C,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q3_seeking == 'Answer independently.': player.Resource_Q3 = 'Please answer this question independently.' else: player.Resource_Q3 = '' elif player.QS7 == 3: if player.Q3_seeking == 'Seek help from AI.': player.Resource_Q3 = 'The suggestion from AI is A,B,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q3_seeking == 'Seek help from the supervisor.': player.Resource_Q3 = 'The suggestion from supervisor is A,B,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q3_seeking == 'Answer independently.': player.Resource_Q3 = 'Please answer this question independently.' else: player.Resource_Q3 = '' elif player.QS8 == 3: if player.Q3_seeking == 'Seek help from AI.': player.Resource_Q3 = 'The suggestion from AI is A,B,C.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q3_seeking == 'Seek help from the supervisor.': player.Resource_Q3 = 'The suggestion from supervisor is A,B,C.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q3_seeking == 'Answer independently.': player.Resource_Q3 = 'Please answer this question independently.' else: player.Resource_Q3 = '' elif player.QS9 == 3: if player.Q3_seeking == 'Seek help from AI.': player.Resource_Q3 = 'The suggestion from AI is A,B,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q3_seeking == 'Seek help from the supervisor.': player.Resource_Q3 = 'The suggestion from supervisor is A,B,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q3_seeking == 'Answer independently.': player.Resource_Q3 = 'Please answer this question independently.' else: player.Resource_Q3 = '' elif player.QS10 == 3: if player.Q3_seeking == 'Seek help from AI.': player.Resource_Q3 = 'The suggestion from AI is A,B,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q3_seeking == 'Seek help from the supervisor.': player.Resource_Q3 = 'The suggestion from supervisor is A,B,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q3_seeking == 'Answer independently.': player.Resource_Q3 = 'Please answer this question independently.' else: player.Resource_Q3 = '' elif player.QS11 == 3: if player.Q3_seeking == 'Seek help from AI.': player.Resource_Q3 = 'The suggestion from AI is B,C.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q3_seeking == 'Seek help from the supervisor.': player.Resource_Q3 = 'The suggestion from supervisor is B,C.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q3_seeking == 'Answer independently.': player.Resource_Q3 = 'Please answer this question independently.' else: player.Resource_Q3 = '' elif player.QS12 == 3: if player.Q3_seeking == 'Seek help from AI.': player.Resource_Q3 = 'The suggestion from AI is A,B,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q3_seeking == 'Seek help from the supervisor.': player.Resource_Q3 = 'The suggestion from supervisor is A,B,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q3_seeking == 'Answer independently.': player.Resource_Q3 = 'Please answer this question independently.' else: player.Resource_Q3 = '' elif player.QS13 == 3: if player.Q3_seeking == 'Seek help from AI.': player.Resource_Q3 = 'The suggestion from AI is A,B,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q3_seeking == 'Seek help from the supervisor.': player.Resource_Q3 = 'The suggestion from supervisor is A,B,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q3_seeking == 'Answer independently.': player.Resource_Q3 = 'Please answer this question independently.' else: player.Resource_Q3 = '' elif player.QS14 == 3: if player.Q3_seeking == 'Seek help from AI.': player.Resource_Q3 = 'The suggestion from AI is A,B,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q3_seeking == 'Seek help from the supervisor.': player.Resource_Q3 = 'The suggestion from supervisor is A,B,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q3_seeking == 'Answer independently.': player.Resource_Q3 = 'Please answer this question independently.' else: player.Resource_Q3 = '' elif player.QS15 == 3: if player.Q3_seeking == 'Seek help from AI.': player.Resource_Q3 = 'The suggestion from AI is A,C,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q3_seeking == 'Seek help from the supervisor.': player.Resource_Q3 = 'The suggestion from supervisor is A,C,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q3_seeking == 'Answer independently.': player.Resource_Q3 = 'Please answer this question independently.' else: player.Resource_Q3 = '' elif player.QS16 == 3: if player.Q3_seeking == 'Seek help from AI.': player.Resource_Q3 = 'The suggestion from AI is A,C,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q3_seeking == 'Seek help from the supervisor.': player.Resource_Q3 = 'The suggestion from supervisor is A,C,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q3_seeking == 'Answer independently.': player.Resource_Q3 = 'Please answer this question independently.' else: player.Resource_Q3 = '' elif player.QS17 == 3: if player.Q3_seeking == 'Seek help from AI.': player.Resource_Q3 = 'The suggestion from AI is A,B,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q3_seeking == 'Seek help from the supervisor.': player.Resource_Q3 = 'The suggestion from supervisor is A,B,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q3_seeking == 'Answer independently.': player.Resource_Q3 = 'Please answer this question independently.' else: player.Resource_Q3 = '' elif player.QS18 == 3: if player.Q3_seeking == 'Seek help from AI.': player.Resource_Q3 = 'The suggestion from AI is A,B,C,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q3_seeking == 'Seek help from the supervisor.': player.Resource_Q3 = 'The suggestion from supervisor is A,B,C,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q3_seeking == 'Answer independently.': player.Resource_Q3 = 'Please answer this question independently.' else: player.Resource_Q3 = '' elif player.QS19 == 3: if player.Q3_seeking == 'Seek help from AI.': player.Resource_Q3 = 'The suggestion from AI is B,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q3_seeking == 'Seek help from the supervisor.': player.Resource_Q3 = 'The suggestion from supervisor is B,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q3_seeking == 'Answer independently.': player.Resource_Q3 = 'Please answer this question independently.' else: player.Resource_Q3 = '' elif player.QS20 == 3: if player.Q3_seeking == 'Seek help from AI.': player.Resource_Q3 = 'The suggestion from AI is A,B,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q3_seeking == 'Seek help from the supervisor.': player.Resource_Q3 = 'The suggestion from supervisor is A,B,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q3_seeking == 'Answer independently.': player.Resource_Q3 = 'Please answer this question independently.' else: player.Resource_Q3 = '' elif player.QS21 == 3: if player.Q3_seeking == 'Seek help from AI.': player.Resource_Q3 = 'The suggestion from AI is A,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q3_seeking == 'Seek help from the supervisor.': player.Resource_Q3 = 'The suggestion from supervisor is A,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q3_seeking == 'Answer independently.': player.Resource_Q3 = 'Please answer this question independently.' else: player.Resource_Q3 = '' elif player.QS22 == 3: if player.Q3_seeking == 'Seek help from AI.': player.Resource_Q3 = 'The suggestion from AI is A,B,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q3_seeking == 'Seek help from the supervisor.': player.Resource_Q3 = 'The suggestion from supervisor is A,B,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q3_seeking == 'Answer independently.': player.Resource_Q3 = 'Please answer this question independently.' else: player.Resource_Q3 = '' elif player.QS23 == 3: if player.Q3_seeking == 'Seek help from AI.': player.Resource_Q3 = 'The suggestion from AI is A,B,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q3_seeking == 'Seek help from the supervisor.': player.Resource_Q3 = 'The suggestion from supervisor is A,B,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q3_seeking == 'Answer independently.': player.Resource_Q3 = 'Please answer this question independently.' else: player.Resource_Q3 = '' elif player.QS24 == 3: if player.Q3_seeking == 'Seek help from AI.': player.Resource_Q3 = 'The suggestion from AI is C,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q3_seeking == 'Seek help from the supervisor.': player.Resource_Q3 = 'The suggestion from supervisor is C,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q3_seeking == 'Answer independently.': player.Resource_Q3 = 'Please answer this question independently.' else: player.Resource_Q3 = '' elif player.QS25 == 3: if player.Q3_seeking == 'Seek help from AI.': player.Resource_Q3 = 'The suggestion from AI is A,B,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q3_seeking == 'Seek help from the supervisor.': player.Resource_Q3 = 'The suggestion from supervisor is A,B,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q3_seeking == 'Answer independently.': player.Resource_Q3 = 'Please answer this question independently.' else: player.Resource_Q3 = '' elif player.QS26 == 3: if player.Q3_seeking == 'Seek help from AI.': player.Resource_Q3 = 'The suggestion from AI is A,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q3_seeking == 'Seek help from the supervisor.': player.Resource_Q3 = 'The suggestion from supervisor is A,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q3_seeking == 'Answer independently.': player.Resource_Q3 = 'Please answer this question independently.' else: player.Resource_Q3 = '' elif player.QS27 == 3: if player.Q3_seeking == 'Seek help from AI.': player.Resource_Q3 = 'The suggestion from AI is A,C.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q3_seeking == 'Seek help from the supervisor.': player.Resource_Q3 = 'The suggestion from supervisor is A,C.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q3_seeking == 'Answer independently.': player.Resource_Q3 = 'Please answer this question independently.' else: player.Resource_Q3 = '' elif player.QS28 == 3: if player.Q3_seeking == 'Seek help from AI.': player.Resource_Q3 = 'The suggestion from AI is A,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q3_seeking == 'Seek help from the supervisor.': player.Resource_Q3 = 'The suggestion from supervisor is A,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q3_seeking == 'Answer independently.': player.Resource_Q3 = 'Please answer this question independently.' else: player.Resource_Q3 = '' elif player.QS29 == 3: if player.Q3_seeking == 'Seek help from AI.': player.Resource_Q3 = 'The suggestion from AI is A,B.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q3_seeking == 'Seek help from the supervisor.': player.Resource_Q3 = 'The suggestion from supervisor is A,B.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q3_seeking == 'Answer independently.': player.Resource_Q3 = 'Please answer this question independently.' else: player.Resource_Q3 = '' elif player.QS30 == 3: if player.Q3_seeking == 'Seek help from AI.': player.Resource_Q3 = 'The suggestion from AI is A,B.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q3_seeking == 'Seek help from the supervisor.': player.Resource_Q3 = 'The suggestion from supervisor is A,B.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q3_seeking == 'Answer independently.': player.Resource_Q3 = 'Please answer this question independently.' else: player.Resource_Q3 = '' return variables class Part3_Q4_answer(Page): form_model = 'player' form_fields = ['QS6_A', 'QS6_B', 'QS6_C', 'QS6_D', 'QS6_E', 'QS7_A', 'QS7_B', 'QS7_C', 'QS7_D', 'QS7_E', 'QS8_A', 'QS8_B', 'QS8_C', 'QS8_D', 'QS8_E', 'QS9_A', 'QS9_B', 'QS9_C', 'QS9_D', 'QS9_E', 'QS10_A', 'QS10_B', 'QS10_C', 'QS10_D', 'QS10_E', 'QS11_A', 'QS11_B', 'QS11_C', 'QS11_D', 'QS11_E', 'QS12_A', 'QS12_B', 'QS12_C', 'QS12_D', 'QS12_E', 'QS13_A', 'QS13_B', 'QS13_C', 'QS13_D', 'QS13_E', 'QS1_A', 'QS1_B', 'QS1_C', 'QS1_D', 'QS1_E', 'QS2_A', 'QS2_B', 'QS2_C', 'QS2_D', 'QS2_E', 'QS3_A', 'QS3_B', 'QS3_C', 'QS3_D', 'QS3_E', 'QS4_A', 'QS4_B', 'QS4_C', 'QS4_D', 'QS4_E', 'QS5_A', 'QS5_B', 'QS5_C', 'QS5_D', 'QS5_E', 'QS14_A', 'QS14_B', 'QS14_C', 'QS14_D', 'QS14_E', 'QS15_A', 'QS15_B', 'QS15_C', 'QS15_D', 'QS15_E', 'QS16_A', 'QS16_B', 'QS16_C', 'QS16_D', 'QS16_E', 'QS17_A', 'QS17_B', 'QS17_C', 'QS17_D', 'QS17_E', 'QS18_A', 'QS18_B', 'QS18_C', 'QS18_D', 'QS18_E', 'QS19_A', 'QS19_B', 'QS19_C', 'QS19_D', 'QS19_E', 'QS20_A', 'QS20_B', 'QS20_C', 'QS20_D', 'QS20_E', 'QS21_A', 'QS21_B', 'QS21_C', 'QS21_D', 'QS21_E', 'QS22_A', 'QS22_B', 'QS22_C', 'QS22_D', 'QS22_E', 'QS23_A', 'QS23_B', 'QS23_C', 'QS23_D', 'QS23_E', 'QS24_A', 'QS24_B', 'QS24_C', 'QS24_D', 'QS24_E', 'QS25_A', 'QS25_B', 'QS25_C', 'QS25_D', 'QS25_E', 'QS26_A', 'QS26_B', 'QS26_C', 'QS26_D', 'QS26_E', 'QS27_A', 'QS27_B', 'QS27_C', 'QS27_D', 'QS27_E', 'QS28_A', 'QS28_B', 'QS28_C', 'QS28_D', 'QS28_E', 'QS29_A', 'QS29_B', 'QS29_C', 'QS29_D', 'QS29_E', 'QS30_A', 'QS30_B', 'QS30_C', 'QS30_D', 'QS30_E'] timeout_seconds = 15 @staticmethod def is_displayed(player: Player): if player.consent == 'Yes' and player.comprehension1_wrong == False and player.comprehension1_attempts < 100 and player.comprehension2_wrong == False and player.comprehension2_attempts < 100: return True @staticmethod def vars_for_template(player: Player): import random variables = {} if player.QS1 == 4: if player.Q4_seeking == 'Seek help from AI.': player.Resource_Q4 = 'The suggestion from AI is A,B,C,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q4_seeking == 'Seek help from the supervisor.': player.Resource_Q4 = 'The suggestion from supervisor is A,B,C,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q4_seeking == 'Answer independently.': player.Resource_Q4 = 'Please answer this question independently.' else: player.Resource_Q4 = '' elif player.QS2 == 4: if player.Q4_seeking == 'Seek help from AI.': player.Resource_Q4 = 'The suggestion from AI is C,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q4_seeking == 'Seek help from the supervisor.': player.Resource_Q4 = 'The suggestion from supervisor is C,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q4_seeking == 'Answer independently.': player.Resource_Q4 = 'Please answer this question independently.' else: player.Resource_Q4 = '' elif player.QS3 == 4: if player.Q4_seeking == 'Seek help from AI.': player.Resource_Q4 = 'The suggestion from AI is A,C,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q4_seeking == 'Seek help from the supervisor.': player.Resource_Q4 = 'The suggestion from supervisor is A,C,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q4_seeking == 'Answer independently.': player.Resource_Q4 = 'Please answer this question independently.' else: player.Resource_Q4 = '' elif player.QS4 == 4: if player.Q4_seeking == 'Seek help from AI.': player.Resource_Q4 = 'The suggestion from AI is A,B,C,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q4_seeking == 'Seek help from the supervisor.': player.Resource_Q4 = 'The suggestion from supervisor is A,B,C,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q4_seeking == 'Answer independently.': player.Resource_Q4 = 'Please answer this question independently.' else: player.Resource_Q4 = '' elif player.QS5 == 4: if player.Q4_seeking == 'Seek help from AI.': player.Resource_Q4 = 'The suggestion from AI is A,B,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q4_seeking == 'Seek help from the supervisor.': player.Resource_Q4 = 'The suggestion from supervisor is A,B,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q4_seeking == 'Answer independently.': player.Resource_Q4 = 'Please answer this question independently.' else: player.Resource_Q4 = '' elif player.QS6 == 4: if player.Q4_seeking == 'Seek help from AI.': player.Resource_Q4 = 'The suggestion from AI is A,C,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q4_seeking == 'Seek help from the supervisor.': player.Resource_Q4 = 'The suggestion from supervisor is A,C,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q4_seeking == 'Answer independently.': player.Resource_Q4 = 'Please answer this question independently.' else: player.Resource_Q4 = '' elif player.QS7 == 4: if player.Q4_seeking == 'Seek help from AI.': player.Resource_Q4 = 'The suggestion from AI is A,B,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q4_seeking == 'Seek help from the supervisor.': player.Resource_Q4 = 'The suggestion from supervisor is A,B,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q4_seeking == 'Answer independently.': player.Resource_Q4 = 'Please answer this question independently.' else: player.Resource_Q4 = '' elif player.QS8 == 4: if player.Q4_seeking == 'Seek help from AI.': player.Resource_Q4 = 'The suggestion from AI is A,B,C.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q4_seeking == 'Seek help from the supervisor.': player.Resource_Q4 = 'The suggestion from supervisor is A,B,C.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q4_seeking == 'Answer independently.': player.Resource_Q4 = 'Please answer this question independently.' else: player.Resource_Q4 = '' elif player.QS9 == 4: if player.Q4_seeking == 'Seek help from AI.': player.Resource_Q4 = 'The suggestion from AI is A,B,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q4_seeking == 'Seek help from the supervisor.': player.Resource_Q4 = 'The suggestion from supervisor is A,B,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q4_seeking == 'Answer independently.': player.Resource_Q4 = 'Please answer this question independently.' else: player.Resource_Q4 = '' elif player.QS10 == 4: if player.Q4_seeking == 'Seek help from AI.': player.Resource_Q4 = 'The suggestion from AI is A,B,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q4_seeking == 'Seek help from the supervisor.': player.Resource_Q4 = 'The suggestion from supervisor is A,B,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q4_seeking == 'Answer independently.': player.Resource_Q4 = 'Please answer this question independently.' else: player.Resource_Q4 = '' elif player.QS11 == 4: if player.Q4_seeking == 'Seek help from AI.': player.Resource_Q4 = 'The suggestion from AI is B,C.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q4_seeking == 'Seek help from the supervisor.': player.Resource_Q4 = 'The suggestion from supervisor is B,C.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q4_seeking == 'Answer independently.': player.Resource_Q4 = 'Please answer this question independently.' else: player.Resource_Q4 = '' elif player.QS12 == 4: if player.Q4_seeking == 'Seek help from AI.': player.Resource_Q4 = 'The suggestion from AI is A,B,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q4_seeking == 'Seek help from the supervisor.': player.Resource_Q4 = 'The suggestion from supervisor is A,B,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q4_seeking == 'Answer independently.': player.Resource_Q4 = 'Please answer this question independently.' else: player.Resource_Q4 = '' elif player.QS13 == 4: if player.Q4_seeking == 'Seek help from AI.': player.Resource_Q4 = 'The suggestion from AI is A,B,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q4_seeking == 'Seek help from the supervisor.': player.Resource_Q4 = 'The suggestion from supervisor is A,B,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q4_seeking == 'Answer independently.': player.Resource_Q4 = 'Please answer this question independently.' else: player.Resource_Q4 = '' elif player.QS14 == 4: if player.Q4_seeking == 'Seek help from AI.': player.Resource_Q4 = 'The suggestion from AI is A,B,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q4_seeking == 'Seek help from the supervisor.': player.Resource_Q4 = 'The suggestion from supervisor is A,B,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q4_seeking == 'Answer independently.': player.Resource_Q4 = 'Please answer this question independently.' else: player.Resource_Q4 = '' elif player.QS15 == 4: if player.Q4_seeking == 'Seek help from AI.': player.Resource_Q4 = 'The suggestion from AI is A,C,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q4_seeking == 'Seek help from the supervisor.': player.Resource_Q4 = 'The suggestion from supervisor is A,C,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q4_seeking == 'Answer independently.': player.Resource_Q4 = 'Please answer this question independently.' else: player.Resource_Q4 = '' elif player.QS16 == 4: if player.Q4_seeking == 'Seek help from AI.': player.Resource_Q4 = 'The suggestion from AI is A,C,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q4_seeking == 'Seek help from the supervisor.': player.Resource_Q4 = 'The suggestion from supervisor is A,C,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q4_seeking == 'Answer independently.': player.Resource_Q4 = 'Please answer this question independently.' else: player.Resource_Q4 = '' elif player.QS17 == 4: if player.Q4_seeking == 'Seek help from AI.': player.Resource_Q4 = 'The suggestion from AI is A,B,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q4_seeking == 'Seek help from the supervisor.': player.Resource_Q4 = 'The suggestion from supervisor is A,B,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q4_seeking == 'Answer independently.': player.Resource_Q4 = 'Please answer this question independently.' else: player.Resource_Q4 = '' elif player.QS18 == 4: if player.Q4_seeking == 'Seek help from AI.': player.Resource_Q4 = 'The suggestion from AI is A,B,C,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q4_seeking == 'Seek help from the supervisor.': player.Resource_Q4 = 'The suggestion from supervisor is A,B,C,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q4_seeking == 'Answer independently.': player.Resource_Q4 = 'Please answer this question independently.' else: player.Resource_Q4 = '' elif player.QS19 == 4: if player.Q4_seeking == 'Seek help from AI.': player.Resource_Q4 = 'The suggestion from AI is B,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q4_seeking == 'Seek help from the supervisor.': player.Resource_Q4 = 'The suggestion from supervisor is B,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q4_seeking == 'Answer independently.': player.Resource_Q4 = 'Please answer this question independently.' else: player.Resource_Q4 = '' elif player.QS20 == 4: if player.Q4_seeking == 'Seek help from AI.': player.Resource_Q4 = 'The suggestion from AI is A,B,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q4_seeking == 'Seek help from the supervisor.': player.Resource_Q4 = 'The suggestion from supervisor is A,B,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q4_seeking == 'Answer independently.': player.Resource_Q4 = 'Please answer this question independently.' else: player.Resource_Q4 = '' elif player.QS21 == 4: if player.Q4_seeking == 'Seek help from AI.': player.Resource_Q4 = 'The suggestion from AI is A,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q4_seeking == 'Seek help from the supervisor.': player.Resource_Q4 = 'The suggestion from supervisor is A,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q4_seeking == 'Answer independently.': player.Resource_Q4 = 'Please answer this question independently.' else: player.Resource_Q4 = '' elif player.QS22 == 4: if player.Q4_seeking == 'Seek help from AI.': player.Resource_Q4 = 'The suggestion from AI is A,B,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q4_seeking == 'Seek help from the supervisor.': player.Resource_Q4 = 'The suggestion from supervisor is A,B,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q4_seeking == 'Answer independently.': player.Resource_Q4 = 'Please answer this question independently.' else: player.Resource_Q4 = '' elif player.QS23 == 4: if player.Q4_seeking == 'Seek help from AI.': player.Resource_Q4 = 'The suggestion from AI is A,B,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q4_seeking == 'Seek help from the supervisor.': player.Resource_Q4 = 'The suggestion from supervisor is A,B,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q4_seeking == 'Answer independently.': player.Resource_Q4 = 'Please answer this question independently.' else: player.Resource_Q4 = '' elif player.QS24 == 4: if player.Q4_seeking == 'Seek help from AI.': player.Resource_Q4 = 'The suggestion from AI is C,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q4_seeking == 'Seek help from the supervisor.': player.Resource_Q4 = 'The suggestion from supervisor is C,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q4_seeking == 'Answer independently.': player.Resource_Q4 = 'Please answer this question independently.' else: player.Resource_Q4 = '' elif player.QS25 == 4: if player.Q4_seeking == 'Seek help from AI.': player.Resource_Q4 = 'The suggestion from AI is A,B,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q4_seeking == 'Seek help from the supervisor.': player.Resource_Q4 = 'The suggestion from supervisor is A,B,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q4_seeking == 'Answer independently.': player.Resource_Q4 = 'Please answer this question independently.' else: player.Resource_Q4 = '' elif player.QS26 == 4: if player.Q4_seeking == 'Seek help from AI.': player.Resource_Q4 = 'The suggestion from AI is A,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q4_seeking == 'Seek help from the supervisor.': player.Resource_Q4 = 'The suggestion from supervisor is A,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q4_seeking == 'Answer independently.': player.Resource_Q4 = 'Please answer this question independently.' else: player.Resource_Q4 = '' elif player.QS27 == 4: if player.Q4_seeking == 'Seek help from AI.': player.Resource_Q4 = 'The suggestion from AI is A,C.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q4_seeking == 'Seek help from the supervisor.': player.Resource_Q4 = 'The suggestion from supervisor is A,C.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q4_seeking == 'Answer independently.': player.Resource_Q4 = 'Please answer this question independently.' else: player.Resource_Q4 = '' elif player.QS28 == 4: if player.Q4_seeking == 'Seek help from AI.': player.Resource_Q4 = 'The suggestion from AI is A,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q4_seeking == 'Seek help from the supervisor.': player.Resource_Q4 = 'The suggestion from supervisor is A,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q4_seeking == 'Answer independently.': player.Resource_Q4 = 'Please answer this question independently.' else: player.Resource_Q4 = '' elif player.QS29 == 4: if player.Q4_seeking == 'Seek help from AI.': player.Resource_Q4 = 'The suggestion from AI is A,B.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q4_seeking == 'Seek help from the supervisor.': player.Resource_Q4 = 'The suggestion from supervisor is A,B.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q4_seeking == 'Answer independently.': player.Resource_Q4 = 'Please answer this question independently.' else: player.Resource_Q4 = '' elif player.QS30 == 4: if player.Q4_seeking == 'Seek help from AI.': player.Resource_Q4 = 'The suggestion from AI is A,B.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q4_seeking == 'Seek help from the supervisor.': player.Resource_Q4 = 'The suggestion from supervisor is A,B.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q4_seeking == 'Answer independently.': player.Resource_Q4 = 'Please answer this question independently.' else: player.Resource_Q4 = '' return variables class Part3_Q5_answer(Page): form_model = 'player' form_fields = ['QS1_A', 'QS1_B', 'QS1_C', 'QS1_D', 'QS1_E', 'QS2_A', 'QS2_B', 'QS2_C', 'QS2_D', 'QS2_E', 'QS3_A', 'QS3_B', 'QS3_C', 'QS3_D', 'QS3_E', 'QS4_A', 'QS4_B', 'QS4_C', 'QS4_D', 'QS4_E', 'QS5_A', 'QS5_B', 'QS5_C', 'QS5_D', 'QS5_E', 'QS6_A', 'QS6_B', 'QS6_C', 'QS6_D', 'QS6_E', 'QS7_A', 'QS7_B', 'QS7_C', 'QS7_D', 'QS7_E', 'QS8_A', 'QS8_B', 'QS8_C', 'QS8_D', 'QS8_E', 'QS9_A', 'QS9_B', 'QS9_C', 'QS9_D', 'QS9_E', 'QS10_A', 'QS10_B', 'QS10_C', 'QS10_D', 'QS10_E', 'QS11_A', 'QS11_B', 'QS11_C', 'QS11_D', 'QS11_E', 'QS12_A', 'QS12_B', 'QS12_C', 'QS12_D', 'QS12_E', 'QS13_A', 'QS13_B', 'QS13_C', 'QS13_D', 'QS13_E', 'QS14_A', 'QS14_B', 'QS14_C', 'QS14_D', 'QS14_E', 'QS15_A', 'QS15_B', 'QS15_C', 'QS15_D', 'QS15_E', 'QS16_A', 'QS16_B', 'QS16_C', 'QS16_D', 'QS16_E', 'QS17_A', 'QS17_B', 'QS17_C', 'QS17_D', 'QS17_E', 'QS18_A', 'QS18_B', 'QS18_C', 'QS18_D', 'QS18_E', 'QS19_A', 'QS19_B', 'QS19_C', 'QS19_D', 'QS19_E', 'QS20_A', 'QS20_B', 'QS20_C', 'QS20_D', 'QS20_E', 'QS21_A', 'QS21_B', 'QS21_C', 'QS21_D', 'QS21_E', 'QS22_A', 'QS22_B', 'QS22_C', 'QS22_D', 'QS22_E', 'QS23_A', 'QS23_B', 'QS23_C', 'QS23_D', 'QS23_E', 'QS24_A', 'QS24_B', 'QS24_C', 'QS24_D', 'QS24_E', 'QS25_A', 'QS25_B', 'QS25_C', 'QS25_D', 'QS25_E', 'QS26_A', 'QS26_B', 'QS26_C', 'QS26_D', 'QS26_E', 'QS27_A', 'QS27_B', 'QS27_C', 'QS27_D', 'QS27_E', 'QS28_A', 'QS28_B', 'QS28_C', 'QS28_D', 'QS28_E', 'QS29_A', 'QS29_B', 'QS29_C', 'QS29_D', 'QS29_E', 'QS30_A', 'QS30_B', 'QS30_C', 'QS30_D', 'QS30_E'] timeout_seconds = 15 @staticmethod def is_displayed(player: Player): if player.consent == 'Yes' and player.comprehension1_wrong == False and player.comprehension1_attempts < 100 and player.comprehension2_wrong == False and player.comprehension2_attempts < 100: return True @staticmethod def vars_for_template(player: Player): import random variables = {} if player.QS1 == 5: if player.Q5_seeking == 'Seek help from AI.': player.Resource_Q5 = 'The suggestion from AI is A,B,C,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q5_seeking == 'Seek help from the supervisor.': player.Resource_Q5 = 'The suggestion from supervisor is A,B,C,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q5_seeking == 'Answer independently.': player.Resource_Q5 = 'Please answer this question independently.' else: player.Resource_Q5 = '' elif player.QS2 == 5: if player.Q5_seeking == 'Seek help from AI.': player.Resource_Q5 = 'The suggestion from AI is C,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q5_seeking == 'Seek help from the supervisor.': player.Resource_Q5 = 'The suggestion from supervisor is C,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q5_seeking == 'Answer independently.': player.Resource_Q5 = 'Please answer this question independently.' else: player.Resource_Q5 = '' elif player.QS3 == 5: if player.Q5_seeking == 'Seek help from AI.': player.Resource_Q5 = 'The suggestion from AI is A,C,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q5_seeking == 'Seek help from the supervisor.': player.Resource_Q5 = 'The suggestion from supervisor is A,C,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q5_seeking == 'Answer independently.': player.Resource_Q5 = 'Please answer this question independently.' else: player.Resource_Q5 = '' elif player.QS4 == 5: if player.Q5_seeking == 'Seek help from AI.': player.Resource_Q5 = 'The suggestion from AI is A,B,C,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q5_seeking == 'Seek help from the supervisor.': player.Resource_Q5 = 'The suggestion from supervisor is A,B,C,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q5_seeking == 'Answer independently.': player.Resource_Q5 = 'Please answer this question independently.' else: player.Resource_Q5 = '' elif player.QS5 == 5: if player.Q5_seeking == 'Seek help from AI.': player.Resource_Q5 = 'The suggestion from AI is A,B,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q5_seeking == 'Seek help from the supervisor.': player.Resource_Q5 = 'The suggestion from supervisor is A,B,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q5_seeking == 'Answer independently.': player.Resource_Q5 = 'Please answer this question independently.' else: player.Resource_Q5 = '' elif player.QS6 == 5: if player.Q5_seeking == 'Seek help from AI.': player.Resource_Q5 = 'The suggestion from AI is A,C,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q5_seeking == 'Seek help from the supervisor.': player.Resource_Q5 = 'The suggestion from supervisor is A,C,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q5_seeking == 'Answer independently.': player.Resource_Q5 = 'Please answer this question independently.' else: player.Resource_Q5 = '' elif player.QS7 == 5: if player.Q5_seeking == 'Seek help from AI.': player.Resource_Q5 = 'The suggestion from AI is A,B,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q5_seeking == 'Seek help from the supervisor.': player.Resource_Q5 = 'The suggestion from supervisor is A,B,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q5_seeking == 'Answer independently.': player.Resource_Q5 = 'Please answer this question independently.' else: player.Resource_Q5 = '' elif player.QS8 == 5: if player.Q5_seeking == 'Seek help from AI.': player.Resource_Q5 = 'The suggestion from AI is A,B,C.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q5_seeking == 'Seek help from the supervisor.': player.Resource_Q5 = 'The suggestion from supervisor is A,B,C.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q5_seeking == 'Answer independently.': player.Resource_Q5 = 'Please answer this question independently.' else: player.Resource_Q5 = '' elif player.QS9 == 5: if player.Q5_seeking == 'Seek help from AI.': player.Resource_Q5 = 'The suggestion from AI is A,B,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q5_seeking == 'Seek help from the supervisor.': player.Resource_Q5 = 'The suggestion from supervisor is A,B,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q5_seeking == 'Answer independently.': player.Resource_Q5 = 'Please answer this question independently.' else: player.Resource_Q5 = '' elif player.QS10 == 5: if player.Q5_seeking == 'Seek help from AI.': player.Resource_Q5 = 'The suggestion from AI is A,B,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q5_seeking == 'Seek help from the supervisor.': player.Resource_Q5 = 'The suggestion from supervisor is A,B,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q5_seeking == 'Answer independently.': player.Resource_Q5 = 'Please answer this question independently.' else: player.Resource_Q5 = '' elif player.QS11 == 5: if player.Q5_seeking == 'Seek help from AI.': player.Resource_Q5 = 'The suggestion from AI is B,C.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q5_seeking == 'Seek help from the supervisor.': player.Resource_Q5 = 'The suggestion from supervisor is B,C.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q5_seeking == 'Answer independently.': player.Resource_Q5 = 'Please answer this question independently.' else: player.Resource_Q5 = '' elif player.QS12 == 5: if player.Q5_seeking == 'Seek help from AI.': player.Resource_Q5 = 'The suggestion from AI is A,B,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q5_seeking == 'Seek help from the supervisor.': player.Resource_Q5 = 'The suggestion from supervisor is A,B,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q5_seeking == 'Answer independently.': player.Resource_Q5 = 'Please answer this question independently.' else: player.Resource_Q5 = '' elif player.QS13 == 5: if player.Q5_seeking == 'Seek help from AI.': player.Resource_Q5 = 'The suggestion from AI is A,B,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q5_seeking == 'Seek help from the supervisor.': player.Resource_Q5 = 'The suggestion from supervisor is A,B,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q5_seeking == 'Answer independently.': player.Resource_Q5 = 'Please answer this question independently.' else: player.Resource_Q5 = '' elif player.QS14 == 5: if player.Q5_seeking == 'Seek help from AI.': player.Resource_Q5 = 'The suggestion from AI is A,B,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q5_seeking == 'Seek help from the supervisor.': player.Resource_Q5 = 'The suggestion from supervisor is A,B,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q5_seeking == 'Answer independently.': player.Resource_Q5 = 'Please answer this question independently.' else: player.Resource_Q5 = '' elif player.QS15 == 5: if player.Q5_seeking == 'Seek help from AI.': player.Resource_Q5 = 'The suggestion from AI is A,C,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q5_seeking == 'Seek help from the supervisor.': player.Resource_Q5 = 'The suggestion from supervisor is A,C,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q5_seeking == 'Answer independently.': player.Resource_Q5 = 'Please answer this question independently.' else: player.Resource_Q5 = '' elif player.QS16 == 5: if player.Q5_seeking == 'Seek help from AI.': player.Resource_Q5 = 'The suggestion from AI is A,C,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q5_seeking == 'Seek help from the supervisor.': player.Resource_Q5 = 'The suggestion from supervisor is A,C,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q5_seeking == 'Answer independently.': player.Resource_Q5 = 'Please answer this question independently.' else: player.Resource_Q5 = '' elif player.QS17 == 5: if player.Q5_seeking == 'Seek help from AI.': player.Resource_Q5 = 'The suggestion from AI is A,B,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q5_seeking == 'Seek help from the supervisor.': player.Resource_Q5 = 'The suggestion from supervisor is A,B,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q5_seeking == 'Answer independently.': player.Resource_Q5 = 'Please answer this question independently.' else: player.Resource_Q5 = '' elif player.QS18 == 5: if player.Q5_seeking == 'Seek help from AI.': player.Resource_Q5 = 'The suggestion from AI is A,B,C,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q5_seeking == 'Seek help from the supervisor.': player.Resource_Q5 = 'The suggestion from supervisor is A,B,C,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q5_seeking == 'Answer independently.': player.Resource_Q5 = 'Please answer this question independently.' else: player.Resource_Q5 = '' elif player.QS19 == 5: if player.Q5_seeking == 'Seek help from AI.': player.Resource_Q5 = 'The suggestion from AI is B,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q5_seeking == 'Seek help from the supervisor.': player.Resource_Q5 = 'The suggestion from supervisor is B,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q5_seeking == 'Answer independently.': player.Resource_Q5 = 'Please answer this question independently.' else: player.Resource_Q5 = '' elif player.QS20 == 5: if player.Q5_seeking == 'Seek help from AI.': player.Resource_Q5 = 'The suggestion from AI is A,B,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q5_seeking == 'Seek help from the supervisor.': player.Resource_Q5 = 'The suggestion from supervisor is A,B,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q5_seeking == 'Answer independently.': player.Resource_Q5 = 'Please answer this question independently.' else: player.Resource_Q5 = '' elif player.QS21 == 5: if player.Q5_seeking == 'Seek help from AI.': player.Resource_Q5 = 'The suggestion from AI is A,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q5_seeking == 'Seek help from the supervisor.': player.Resource_Q5 = 'The suggestion from supervisor is A,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q5_seeking == 'Answer independently.': player.Resource_Q5 = 'Please answer this question independently.' else: player.Resource_Q5 = '' elif player.QS22 == 5: if player.Q5_seeking == 'Seek help from AI.': player.Resource_Q5 = 'The suggestion from AI is A,B,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q5_seeking == 'Seek help from the supervisor.': player.Resource_Q5 = 'The suggestion from supervisor is A,B,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q5_seeking == 'Answer independently.': player.Resource_Q5 = 'Please answer this question independently.' else: player.Resource_Q5 = '' elif player.QS23 == 5: if player.Q5_seeking == 'Seek help from AI.': player.Resource_Q5 = 'The suggestion from AI is A,B,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q5_seeking == 'Seek help from the supervisor.': player.Resource_Q5 = 'The suggestion from supervisor is A,B,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q5_seeking == 'Answer independently.': player.Resource_Q5 = 'Please answer this question independently.' else: player.Resource_Q5 = '' elif player.QS24 == 5: if player.Q5_seeking == 'Seek help from AI.': player.Resource_Q5 = 'The suggestion from AI is C,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q5_seeking == 'Seek help from the supervisor.': player.Resource_Q5 = 'The suggestion from supervisor is C,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q5_seeking == 'Answer independently.': player.Resource_Q5 = 'Please answer this question independently.' else: player.Resource_Q5 = '' elif player.QS25 == 5: if player.Q5_seeking == 'Seek help from AI.': player.Resource_Q5 = 'The suggestion from AI is A,B,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q5_seeking == 'Seek help from the supervisor.': player.Resource_Q5 = 'The suggestion from supervisor is A,B,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q5_seeking == 'Answer independently.': player.Resource_Q5 = 'Please answer this question independently.' else: player.Resource_Q5 = '' elif player.QS26 == 5: if player.Q5_seeking == 'Seek help from AI.': player.Resource_Q5 = 'The suggestion from AI is A,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q5_seeking == 'Seek help from the supervisor.': player.Resource_Q5 = 'The suggestion from supervisor is A,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q5_seeking == 'Answer independently.': player.Resource_Q5 = 'Please answer this question independently.' else: player.Resource_Q5 = '' elif player.QS27 == 5: if player.Q5_seeking == 'Seek help from AI.': player.Resource_Q5 = 'The suggestion from AI is A,C.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q5_seeking == 'Seek help from the supervisor.': player.Resource_Q5 = 'The suggestion from supervisor is A,C.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q5_seeking == 'Answer independently.': player.Resource_Q5 = 'Please answer this question independently.' else: player.Resource_Q5 = '' elif player.QS28 == 5: if player.Q5_seeking == 'Seek help from AI.': player.Resource_Q5 = 'The suggestion from AI is A,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q5_seeking == 'Seek help from the supervisor.': player.Resource_Q5 = 'The suggestion from supervisor is A,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q5_seeking == 'Answer independently.': player.Resource_Q5 = 'Please answer this question independently.' else: player.Resource_Q5 = '' elif player.QS29 == 5: if player.Q5_seeking == 'Seek help from AI.': player.Resource_Q5 = 'The suggestion from AI is A,B.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q5_seeking == 'Seek help from the supervisor.': player.Resource_Q5 = 'The suggestion from supervisor is A,B.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q5_seeking == 'Answer independently.': player.Resource_Q5 = 'Please answer this question independently.' else: player.Resource_Q5 = '' elif player.QS30 == 5: if player.Q5_seeking == 'Seek help from AI.': player.Resource_Q5 = 'The suggestion from AI is A,B.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q5_seeking == 'Seek help from the supervisor.': player.Resource_Q5 = 'The suggestion from supervisor is A,B.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q5_seeking == 'Answer independently.': player.Resource_Q5 = 'Please answer this question independently.' else: player.Resource_Q5 = '' return variables class Part3_Q6_answer(Page): form_model = 'player' form_fields = ['QS1_A', 'QS1_B', 'QS1_C', 'QS1_D', 'QS1_E', 'QS2_A', 'QS2_B', 'QS2_C', 'QS2_D', 'QS2_E', 'QS3_A', 'QS3_B', 'QS3_C', 'QS3_D', 'QS3_E', 'QS4_A', 'QS4_B', 'QS4_C', 'QS4_D', 'QS4_E', 'QS5_A', 'QS5_B', 'QS5_C', 'QS5_D', 'QS5_E', 'QS6_A', 'QS6_B', 'QS6_C', 'QS6_D', 'QS6_E', 'QS7_A', 'QS7_B', 'QS7_C', 'QS7_D', 'QS7_E', 'QS8_A', 'QS8_B', 'QS8_C', 'QS8_D', 'QS8_E', 'QS9_A', 'QS9_B', 'QS9_C', 'QS9_D', 'QS9_E', 'QS10_A', 'QS10_B', 'QS10_C', 'QS10_D', 'QS10_E', 'QS11_A', 'QS11_B', 'QS11_C', 'QS11_D', 'QS11_E', 'QS12_A', 'QS12_B', 'QS12_C', 'QS12_D', 'QS12_E', 'QS13_A', 'QS13_B', 'QS13_C', 'QS13_D', 'QS13_E', 'QS14_A', 'QS14_B', 'QS14_C', 'QS14_D', 'QS14_E', 'QS15_A', 'QS15_B', 'QS15_C', 'QS15_D', 'QS15_E', 'QS16_A', 'QS16_B', 'QS16_C', 'QS16_D', 'QS16_E', 'QS17_A', 'QS17_B', 'QS17_C', 'QS17_D', 'QS17_E', 'QS18_A', 'QS18_B', 'QS18_C', 'QS18_D', 'QS18_E', 'QS19_A', 'QS19_B', 'QS19_C', 'QS19_D', 'QS19_E', 'QS20_A', 'QS20_B', 'QS20_C', 'QS20_D', 'QS20_E', 'QS21_A', 'QS21_B', 'QS21_C', 'QS21_D', 'QS21_E', 'QS22_A', 'QS22_B', 'QS22_C', 'QS22_D', 'QS22_E', 'QS23_A', 'QS23_B', 'QS23_C', 'QS23_D', 'QS23_E', 'QS24_A', 'QS24_B', 'QS24_C', 'QS24_D', 'QS24_E', 'QS25_A', 'QS25_B', 'QS25_C', 'QS25_D', 'QS25_E', 'QS26_A', 'QS26_B', 'QS26_C', 'QS26_D', 'QS26_E', 'QS27_A', 'QS27_B', 'QS27_C', 'QS27_D', 'QS27_E', 'QS28_A', 'QS28_B', 'QS28_C', 'QS28_D', 'QS28_E', 'QS29_A', 'QS29_B', 'QS29_C', 'QS29_D', 'QS29_E', 'QS30_A', 'QS30_B', 'QS30_C', 'QS30_D', 'QS30_E'] timeout_seconds = 15 @staticmethod def vars_for_template(player: Player): import random variables = {} if player.QS1 == 6: if player.Q6_seeking == 'Seek help from AI.': player.Resource_Q6 = 'The suggestion from AI is A,B,C,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q6_seeking == 'Seek help from the supervisor.': player.Resource_Q6 = 'The suggestion from supervisor is A,B,C,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q6_seeking == 'Answer independently.': player.Resource_Q6 = 'Please answer this question independently.' else: player.Resource_Q6 = '' elif player.QS2 == 6: if player.Q6_seeking == 'Seek help from AI.': player.Resource_Q6 = 'The suggestion from AI is C,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q6_seeking == 'Seek help from the supervisor.': player.Resource_Q6 = 'The suggestion from supervisor is C,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q6_seeking == 'Answer independently.': player.Resource_Q6 = 'Please answer this question independently.' else: player.Resource_Q6 = '' elif player.QS3 == 6: if player.Q6_seeking == 'Seek help from AI.': player.Resource_Q6 = 'The suggestion from AI is A,C,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q6_seeking == 'Seek help from the supervisor.': player.Resource_Q6 = 'The suggestion from supervisor is A,C,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q6_seeking == 'Answer independently.': player.Resource_Q6 = 'Please answer this question independently.' else: player.Resource_Q6 = '' elif player.QS4 == 6: if player.Q6_seeking == 'Seek help from AI.': player.Resource_Q6 = 'The suggestion from AI is A,B,C,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q6_seeking == 'Seek help from the supervisor.': player.Resource_Q6 = 'The suggestion from supervisor is A,B,C,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q6_seeking == 'Answer independently.': player.Resource_Q6 = 'Please answer this question independently.' else: player.Resource_Q6 = '' elif player.QS5 == 6: if player.Q6_seeking == 'Seek help from AI.': player.Resource_Q6 = 'The suggestion from AI is A,B,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q6_seeking == 'Seek help from the supervisor.': player.Resource_Q6 = 'The suggestion from supervisor is A,B,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q6_seeking == 'Answer independently.': player.Resource_Q6 = 'Please answer this question independently.' else: player.Resource_Q6 = '' elif player.QS6 == 6: if player.Q6_seeking == 'Seek help from AI.': player.Resource_Q6 = 'The suggestion from AI is A,C,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q6_seeking == 'Seek help from the supervisor.': player.Resource_Q6 = 'The suggestion from supervisor is A,C,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q6_seeking == 'Answer independently.': player.Resource_Q6 = 'Please answer this question independently.' else: player.Resource_Q6 = '' elif player.QS7 == 6: if player.Q6_seeking == 'Seek help from AI.': player.Resource_Q6 = 'The suggestion from AI is A,B,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q6_seeking == 'Seek help from the supervisor.': player.Resource_Q6 = 'The suggestion from supervisor is A,B,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q6_seeking == 'Answer independently.': player.Resource_Q6 = 'Please answer this question independently.' else: player.Resource_Q6 = '' elif player.QS8 == 6: if player.Q6_seeking == 'Seek help from AI.': player.Resource_Q6 = 'The suggestion from AI is A,B,C.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q6_seeking == 'Seek help from the supervisor.': player.Resource_Q6 = 'The suggestion from supervisor is A,B,C.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q6_seeking == 'Answer independently.': player.Resource_Q6 = 'Please answer this question independently.' else: player.Resource_Q6 = '' elif player.QS9 == 6: if player.Q6_seeking == 'Seek help from AI.': player.Resource_Q6 = 'The suggestion from AI is A,B,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q6_seeking == 'Seek help from the supervisor.': player.Resource_Q6 = 'The suggestion from supervisor is A,B,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q6_seeking == 'Answer independently.': player.Resource_Q6 = 'Please answer this question independently.' else: player.Resource_Q6 = '' elif player.QS10 == 6: if player.Q6_seeking == 'Seek help from AI.': player.Resource_Q6 = 'The suggestion from AI is A,B,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q6_seeking == 'Seek help from the supervisor.': player.Resource_Q6 = 'The suggestion from supervisor is A,B,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q6_seeking == 'Answer independently.': player.Resource_Q6 = 'Please answer this question independently.' else: player.Resource_Q6 = '' elif player.QS11 == 6: if player.Q6_seeking == 'Seek help from AI.': player.Resource_Q6 = 'The suggestion from AI is B,C.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q6_seeking == 'Seek help from the supervisor.': player.Resource_Q6 = 'The suggestion from supervisor is B,C.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q6_seeking == 'Answer independently.': player.Resource_Q6 = 'Please answer this question independently.' else: player.Resource_Q6 = '' elif player.QS12 == 6: if player.Q6_seeking == 'Seek help from AI.': player.Resource_Q6 = 'The suggestion from AI is A,B,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q6_seeking == 'Seek help from the supervisor.': player.Resource_Q6 = 'The suggestion from supervisor is A,B,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q6_seeking == 'Answer independently.': player.Resource_Q6 = 'Please answer this question independently.' else: player.Resource_Q6 = '' elif player.QS13 == 6: if player.Q6_seeking == 'Seek help from AI.': player.Resource_Q6 = 'The suggestion from AI is A,B,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q6_seeking == 'Seek help from the supervisor.': player.Resource_Q6 = 'The suggestion from supervisor is A,B,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q6_seeking == 'Answer independently.': player.Resource_Q6 = 'Please answer this question independently.' else: player.Resource_Q6 = '' elif player.QS14 == 6: if player.Q6_seeking == 'Seek help from AI.': player.Resource_Q6 = 'The suggestion from AI is A,B,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q6_seeking == 'Seek help from the supervisor.': player.Resource_Q6 = 'The suggestion from supervisor is A,B,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q6_seeking == 'Answer independently.': player.Resource_Q6 = 'Please answer this question independently.' else: player.Resource_Q6 = '' elif player.QS15 == 6: if player.Q6_seeking == 'Seek help from AI.': player.Resource_Q6 = 'The suggestion from AI is A,C,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q6_seeking == 'Seek help from the supervisor.': player.Resource_Q6 = 'The suggestion from supervisor is A,C,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q6_seeking == 'Answer independently.': player.Resource_Q6 = 'Please answer this question independently.' else: player.Resource_Q6 = '' elif player.QS16 == 6: if player.Q6_seeking == 'Seek help from AI.': player.Resource_Q6 = 'The suggestion from AI is A,C,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q6_seeking == 'Seek help from the supervisor.': player.Resource_Q6 = 'The suggestion from supervisor is A,C,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q6_seeking == 'Answer independently.': player.Resource_Q6 = 'Please answer this question independently.' else: player.Resource_Q6 = '' elif player.QS17 == 6: if player.Q6_seeking == 'Seek help from AI.': player.Resource_Q6 = 'The suggestion from AI is A,B,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q6_seeking == 'Seek help from the supervisor.': player.Resource_Q6 = 'The suggestion from supervisor is A,B,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q6_seeking == 'Answer independently.': player.Resource_Q6 = 'Please answer this question independently.' else: player.Resource_Q6 = '' elif player.QS18 == 6: if player.Q6_seeking == 'Seek help from AI.': player.Resource_Q6 = 'The suggestion from AI is A,B,C,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q6_seeking == 'Seek help from the supervisor.': player.Resource_Q6 = 'The suggestion from supervisor is A,B,C,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q6_seeking == 'Answer independently.': player.Resource_Q6 = 'Please answer this question independently.' else: player.Resource_Q6 = '' elif player.QS19 == 6: if player.Q6_seeking == 'Seek help from AI.': player.Resource_Q6 = 'The suggestion from AI is B,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q6_seeking == 'Seek help from the supervisor.': player.Resource_Q6 = 'The suggestion from supervisor is B,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q6_seeking == 'Answer independently.': player.Resource_Q6 = 'Please answer this question independently.' else: player.Resource_Q6 = '' elif player.QS20 == 6: if player.Q6_seeking == 'Seek help from AI.': player.Resource_Q6 = 'The suggestion from AI is A,B,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q6_seeking == 'Seek help from the supervisor.': player.Resource_Q6 = 'The suggestion from supervisor is A,B,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q6_seeking == 'Answer independently.': player.Resource_Q6 = 'Please answer this question independently.' else: player.Resource_Q6 = '' elif player.QS21 == 6: if player.Q6_seeking == 'Seek help from AI.': player.Resource_Q6 = 'The suggestion from AI is A,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q6_seeking == 'Seek help from the supervisor.': player.Resource_Q6 = 'The suggestion from supervisor is A,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q6_seeking == 'Answer independently.': player.Resource_Q6 = 'Please answer this question independently.' else: player.Resource_Q6 = '' elif player.QS22 == 6: if player.Q6_seeking == 'Seek help from AI.': player.Resource_Q6 = 'The suggestion from AI is A,B,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q6_seeking == 'Seek help from the supervisor.': player.Resource_Q6 = 'The suggestion from supervisor is A,B,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q6_seeking == 'Answer independently.': player.Resource_Q6 = 'Please answer this question independently.' else: player.Resource_Q6 = '' elif player.QS23 == 6: if player.Q6_seeking == 'Seek help from AI.': player.Resource_Q6 = 'The suggestion from AI is A,B,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q6_seeking == 'Seek help from the supervisor.': player.Resource_Q6 = 'The suggestion from supervisor is A,B,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q6_seeking == 'Answer independently.': player.Resource_Q6 = 'Please answer this question independently.' else: player.Resource_Q6 = '' elif player.QS24 == 6: if player.Q6_seeking == 'Seek help from AI.': player.Resource_Q6 = 'The suggestion from AI is C,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q6_seeking == 'Seek help from the supervisor.': player.Resource_Q6 = 'The suggestion from supervisor is C,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q6_seeking == 'Answer independently.': player.Resource_Q6 = 'Please answer this question independently.' else: player.Resource_Q6 = '' elif player.QS25 == 6: if player.Q6_seeking == 'Seek help from AI.': player.Resource_Q6 = 'The suggestion from AI is A,B,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q6_seeking == 'Seek help from the supervisor.': player.Resource_Q6 = 'The suggestion from supervisor is A,B,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q6_seeking == 'Answer independently.': player.Resource_Q6 = 'Please answer this question independently.' else: player.Resource_Q6 = '' elif player.QS26 == 6: if player.Q6_seeking == 'Seek help from AI.': player.Resource_Q6 = 'The suggestion from AI is A,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q6_seeking == 'Seek help from the supervisor.': player.Resource_Q6 = 'The suggestion from supervisor is A,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q6_seeking == 'Answer independently.': player.Resource_Q6 = 'Please answer this question independently.' else: player.Resource_Q6 = '' elif player.QS27 == 6: if player.Q6_seeking == 'Seek help from AI.': player.Resource_Q6 = 'The suggestion from AI is A,C.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q6_seeking == 'Seek help from the supervisor.': player.Resource_Q6 = 'The suggestion from supervisor is A,C.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q6_seeking == 'Answer independently.': player.Resource_Q6 = 'Please answer this question independently.' else: player.Resource_Q6 = '' elif player.QS28 == 6: if player.Q6_seeking == 'Seek help from AI.': player.Resource_Q6 = 'The suggestion from AI is A,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q6_seeking == 'Seek help from the supervisor.': player.Resource_Q6 = 'The suggestion from supervisor is A,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q6_seeking == 'Answer independently.': player.Resource_Q6 = 'Please answer this question independently.' else: player.Resource_Q6 = '' elif player.QS29 == 6: if player.Q6_seeking == 'Seek help from AI.': player.Resource_Q6 = 'The suggestion from AI is A,B.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q6_seeking == 'Seek help from the supervisor.': player.Resource_Q6 = 'The suggestion from supervisor is A,B.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q6_seeking == 'Answer independently.': player.Resource_Q6 = 'Please answer this question independently.' else: player.Resource_Q6 = '' elif player.QS30 == 6: if player.Q6_seeking == 'Seek help from AI.': player.Resource_Q6 = 'The suggestion from AI is A,B.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q6_seeking == 'Seek help from the supervisor.': player.Resource_Q6 = 'The suggestion from supervisor is A,B.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q6_seeking == 'Answer independently.': player.Resource_Q6 = 'Please answer this question independently.' else: player.Resource_Q6 = '' return variables class Part3_Q7_answer(Page): form_model = 'player' form_fields = ['QS1_A', 'QS1_B', 'QS1_C', 'QS1_D', 'QS1_E', 'QS2_A', 'QS2_B', 'QS2_C', 'QS2_D', 'QS2_E', 'QS3_A', 'QS3_B', 'QS3_C', 'QS3_D', 'QS3_E', 'QS4_A', 'QS4_B', 'QS4_C', 'QS4_D', 'QS4_E', 'QS5_A', 'QS5_B', 'QS5_C', 'QS5_D', 'QS5_E', 'QS6_A', 'QS6_B', 'QS6_C', 'QS6_D', 'QS6_E', 'QS7_A', 'QS7_B', 'QS7_C', 'QS7_D', 'QS7_E', 'QS8_A', 'QS8_B', 'QS8_C', 'QS8_D', 'QS8_E', 'QS9_A', 'QS9_B', 'QS9_C', 'QS9_D', 'QS9_E', 'QS10_A', 'QS10_B', 'QS10_C', 'QS10_D', 'QS10_E', 'QS11_A', 'QS11_B', 'QS11_C', 'QS11_D', 'QS11_E', 'QS12_A', 'QS12_B', 'QS12_C', 'QS12_D', 'QS12_E', 'QS13_A', 'QS13_B', 'QS13_C', 'QS13_D', 'QS13_E', 'QS14_A', 'QS14_B', 'QS14_C', 'QS14_D', 'QS14_E', 'QS15_A', 'QS15_B', 'QS15_C', 'QS15_D', 'QS15_E', 'QS16_A', 'QS16_B', 'QS16_C', 'QS16_D', 'QS16_E', 'QS17_A', 'QS17_B', 'QS17_C', 'QS17_D', 'QS17_E', 'QS18_A', 'QS18_B', 'QS18_C', 'QS18_D', 'QS18_E', 'QS19_A', 'QS19_B', 'QS19_C', 'QS19_D', 'QS19_E', 'QS20_A', 'QS20_B', 'QS20_C', 'QS20_D', 'QS20_E', 'QS21_A', 'QS21_B', 'QS21_C', 'QS21_D', 'QS21_E', 'QS22_A', 'QS22_B', 'QS22_C', 'QS22_D', 'QS22_E', 'QS23_A', 'QS23_B', 'QS23_C', 'QS23_D', 'QS23_E', 'QS24_A', 'QS24_B', 'QS24_C', 'QS24_D', 'QS24_E', 'QS25_A', 'QS25_B', 'QS25_C', 'QS25_D', 'QS25_E', 'QS26_A', 'QS26_B', 'QS26_C', 'QS26_D', 'QS26_E', 'QS27_A', 'QS27_B', 'QS27_C', 'QS27_D', 'QS27_E', 'QS28_A', 'QS28_B', 'QS28_C', 'QS28_D', 'QS28_E', 'QS29_A', 'QS29_B', 'QS29_C', 'QS29_D', 'QS29_E', 'QS30_A', 'QS30_B', 'QS30_C', 'QS30_D', 'QS30_E'] timeout_seconds = 15 @staticmethod def vars_for_template(player: Player): import random variables = {} if player.QS1 == 7: if player.Q7_seeking == 'Seek help from AI.': player.Resource_Q7 = 'The suggestion from AI is A,B,C,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q7_seeking == 'Seek help from the supervisor.': player.Resource_Q7 = 'The suggestion from supervisor is A,B,C,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q7_seeking == 'Answer independently.': player.Resource_Q7 = 'Please answer this question independently.' else: player.Resource_Q7 = '' elif player.QS2 == 7: if player.Q7_seeking == 'Seek help from AI.': player.Resource_Q7 = 'The suggestion from AI is C,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q7_seeking == 'Seek help from the supervisor.': player.Resource_Q7 = 'The suggestion from supervisor is C,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q7_seeking == 'Answer independently.': player.Resource_Q7 = 'Please answer this question independently.' else: player.Resource_Q7 = '' elif player.QS3 == 7: if player.Q7_seeking == 'Seek help from AI.': player.Resource_Q7 = 'The suggestion from AI is A,C,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q7_seeking == 'Seek help from the supervisor.': player.Resource_Q7 = 'The suggestion from supervisor is A,C,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q7_seeking == 'Answer independently.': player.Resource_Q7 = 'Please answer this question independently.' else: player.Resource_Q7 = '' elif player.QS4 == 7: if player.Q7_seeking == 'Seek help from AI.': player.Resource_Q7 = 'The suggestion from AI is A,B,C,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q7_seeking == 'Seek help from the supervisor.': player.Resource_Q7 = 'The suggestion from supervisor is A,B,C,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q7_seeking == 'Answer independently.': player.Resource_Q7 = 'Please answer this question independently.' else: player.Resource_Q7 = '' elif player.QS5 == 7: if player.Q7_seeking == 'Seek help from AI.': player.Resource_Q7 = 'The suggestion from AI is A,B,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q7_seeking == 'Seek help from the supervisor.': player.Resource_Q7 = 'The suggestion from supervisor is A,B,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q7_seeking == 'Answer independently.': player.Resource_Q7 = 'Please answer this question independently.' else: player.Resource_Q7 = '' elif player.QS6 == 7: if player.Q7_seeking == 'Seek help from AI.': player.Resource_Q7 = 'The suggestion from AI is A,C,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q7_seeking == 'Seek help from the supervisor.': player.Resource_Q7 = 'The suggestion from supervisor is A,C,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q7_seeking == 'Answer independently.': player.Resource_Q7 = 'Please answer this question independently.' else: player.Resource_Q7 = '' elif player.QS7 == 7: if player.Q7_seeking == 'Seek help from AI.': player.Resource_Q7 = 'The suggestion from AI is A,B,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q7_seeking == 'Seek help from the supervisor.': player.Resource_Q7 = 'The suggestion from supervisor is A,B,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q7_seeking == 'Answer independently.': player.Resource_Q7 = 'Please answer this question independently.' else: player.Resource_Q7 = '' elif player.QS8 == 7: if player.Q7_seeking == 'Seek help from AI.': player.Resource_Q7 = 'The suggestion from AI is A,B,C.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q7_seeking == 'Seek help from the supervisor.': player.Resource_Q7 = 'The suggestion from supervisor is A,B,C.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q7_seeking == 'Answer independently.': player.Resource_Q7 = 'Please answer this question independently.' else: player.Resource_Q7 = '' elif player.QS9 == 7: if player.Q7_seeking == 'Seek help from AI.': player.Resource_Q7 = 'The suggestion from AI is A,B,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q7_seeking == 'Seek help from the supervisor.': player.Resource_Q7 = 'The suggestion from supervisor is A,B,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q7_seeking == 'Answer independently.': player.Resource_Q7 = 'Please answer this question independently.' else: player.Resource_Q7 = '' elif player.QS10 == 7: if player.Q7_seeking == 'Seek help from AI.': player.Resource_Q7 = 'The suggestion from AI is A,B,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q7_seeking == 'Seek help from the supervisor.': player.Resource_Q7 = 'The suggestion from supervisor is A,B,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q7_seeking == 'Answer independently.': player.Resource_Q7 = 'Please answer this question independently.' else: player.Resource_Q7 = '' elif player.QS11 == 7: if player.Q7_seeking == 'Seek help from AI.': player.Resource_Q7 = 'The suggestion from AI is B,C.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q7_seeking == 'Seek help from the supervisor.': player.Resource_Q7 = 'The suggestion from supervisor is B,C.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q7_seeking == 'Answer independently.': player.Resource_Q7 = 'Please answer this question independently.' else: player.Resource_Q7 = '' elif player.QS12 == 7: if player.Q7_seeking == 'Seek help from AI.': player.Resource_Q7 = 'The suggestion from AI is A,B,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q7_seeking == 'Seek help from the supervisor.': player.Resource_Q7 = 'The suggestion from supervisor is A,B,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q7_seeking == 'Answer independently.': player.Resource_Q7 = 'Please answer this question independently.' else: player.Resource_Q7 = '' elif player.QS13 == 7: if player.Q7_seeking == 'Seek help from AI.': player.Resource_Q7 = 'The suggestion from AI is A,B,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q7_seeking == 'Seek help from the supervisor.': player.Resource_Q7 = 'The suggestion from supervisor is A,B,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q7_seeking == 'Answer independently.': player.Resource_Q7 = 'Please answer this question independently.' else: player.Resource_Q7 = '' elif player.QS14 == 7: if player.Q7_seeking == 'Seek help from AI.': player.Resource_Q7 = 'The suggestion from AI is A,B,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q7_seeking == 'Seek help from the supervisor.': player.Resource_Q7 = 'The suggestion from supervisor is A,B,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q7_seeking == 'Answer independently.': player.Resource_Q7 = 'Please answer this question independently.' else: player.Resource_Q7 = '' elif player.QS15 == 7: if player.Q7_seeking == 'Seek help from AI.': player.Resource_Q7 = 'The suggestion from AI is A,C,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q7_seeking == 'Seek help from the supervisor.': player.Resource_Q7 = 'The suggestion from supervisor is A,C,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q7_seeking == 'Answer independently.': player.Resource_Q7 = 'Please answer this question independently.' else: player.Resource_Q7 = '' elif player.QS16 == 7: if player.Q7_seeking == 'Seek help from AI.': player.Resource_Q7 = 'The suggestion from AI is A,C,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q7_seeking == 'Seek help from the supervisor.': player.Resource_Q7 = 'The suggestion from supervisor is A,C,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q7_seeking == 'Answer independently.': player.Resource_Q7 = 'Please answer this question independently.' else: player.Resource_Q7 = '' elif player.QS17 == 7: if player.Q7_seeking == 'Seek help from AI.': player.Resource_Q7 = 'The suggestion from AI is A,B,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q7_seeking == 'Seek help from the supervisor.': player.Resource_Q7 = 'The suggestion from supervisor is A,B,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q7_seeking == 'Answer independently.': player.Resource_Q7 = 'Please answer this question independently.' else: player.Resource_Q7 = '' elif player.QS18 == 7: if player.Q7_seeking == 'Seek help from AI.': player.Resource_Q7 = 'The suggestion from AI is A,B,C,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q7_seeking == 'Seek help from the supervisor.': player.Resource_Q7 = 'The suggestion from supervisor is A,B,C,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q7_seeking == 'Answer independently.': player.Resource_Q7 = 'Please answer this question independently.' else: player.Resource_Q7 = '' elif player.QS19 == 7: if player.Q7_seeking == 'Seek help from AI.': player.Resource_Q7 = 'The suggestion from AI is B,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q7_seeking == 'Seek help from the supervisor.': player.Resource_Q7 = 'The suggestion from supervisor is B,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q7_seeking == 'Answer independently.': player.Resource_Q7 = 'Please answer this question independently.' else: player.Resource_Q7 = '' elif player.QS20 == 7: if player.Q7_seeking == 'Seek help from AI.': player.Resource_Q7 = 'The suggestion from AI is A,B,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q7_seeking == 'Seek help from the supervisor.': player.Resource_Q7 = 'The suggestion from supervisor is A,B,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q7_seeking == 'Answer independently.': player.Resource_Q7 = 'Please answer this question independently.' else: player.Resource_Q7 = '' elif player.QS21 == 7: if player.Q7_seeking == 'Seek help from AI.': player.Resource_Q7 = 'The suggestion from AI is A,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q7_seeking == 'Seek help from the supervisor.': player.Resource_Q7 = 'The suggestion from supervisor is A,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q7_seeking == 'Answer independently.': player.Resource_Q7 = 'Please answer this question independently.' else: player.Resource_Q7 = '' elif player.QS22 == 7: if player.Q7_seeking == 'Seek help from AI.': player.Resource_Q7 = 'The suggestion from AI is A,B,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q7_seeking == 'Seek help from the supervisor.': player.Resource_Q7 = 'The suggestion from supervisor is A,B,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q7_seeking == 'Answer independently.': player.Resource_Q7 = 'Please answer this question independently.' else: player.Resource_Q7 = '' elif player.QS23 == 7: if player.Q7_seeking == 'Seek help from AI.': player.Resource_Q7 = 'The suggestion from AI is A,B,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q7_seeking == 'Seek help from the supervisor.': player.Resource_Q7 = 'The suggestion from supervisor is A,B,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q7_seeking == 'Answer independently.': player.Resource_Q7 = 'Please answer this question independently.' else: player.Resource_Q7 = '' elif player.QS24 == 7: if player.Q7_seeking == 'Seek help from AI.': player.Resource_Q7 = 'The suggestion from AI is C,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q7_seeking == 'Seek help from the supervisor.': player.Resource_Q7 = 'The suggestion from supervisor is C,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q7_seeking == 'Answer independently.': player.Resource_Q7 = 'Please answer this question independently.' else: player.Resource_Q7 = '' elif player.QS25 == 7: if player.Q7_seeking == 'Seek help from AI.': player.Resource_Q7 = 'The suggestion from AI is A,B,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q7_seeking == 'Seek help from the supervisor.': player.Resource_Q7 = 'The suggestion from supervisor is A,B,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q7_seeking == 'Answer independently.': player.Resource_Q7 = 'Please answer this question independently.' else: player.Resource_Q7 = '' elif player.QS26 == 7: if player.Q7_seeking == 'Seek help from AI.': player.Resource_Q7 = 'The suggestion from AI is A,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q7_seeking == 'Seek help from the supervisor.': player.Resource_Q7 = 'The suggestion from supervisor is A,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q7_seeking == 'Answer independently.': player.Resource_Q7 = 'Please answer this question independently.' else: player.Resource_Q7 = '' elif player.QS27 == 7: if player.Q7_seeking == 'Seek help from AI.': player.Resource_Q7 = 'The suggestion from AI is A,C.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q7_seeking == 'Seek help from the supervisor.': player.Resource_Q7 = 'The suggestion from supervisor is A,C.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q7_seeking == 'Answer independently.': player.Resource_Q7 = 'Please answer this question independently.' else: player.Resource_Q7 = '' elif player.QS28 == 7: if player.Q7_seeking == 'Seek help from AI.': player.Resource_Q7 = 'The suggestion from AI is A,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q7_seeking == 'Seek help from the supervisor.': player.Resource_Q7 = 'The suggestion from supervisor is A,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q7_seeking == 'Answer independently.': player.Resource_Q7 = 'Please answer this question independently.' else: player.Resource_Q7 = '' elif player.QS29 == 7: if player.Q7_seeking == 'Seek help from AI.': player.Resource_Q7 = 'The suggestion from AI is A,B.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q7_seeking == 'Seek help from the supervisor.': player.Resource_Q7 = 'The suggestion from supervisor is A,B.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q7_seeking == 'Answer independently.': player.Resource_Q7 = 'Please answer this question independently.' else: player.Resource_Q7 = '' elif player.QS30 == 7: if player.Q7_seeking == 'Seek help from AI.': player.Resource_Q7 = 'The suggestion from AI is A,B.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q7_seeking == 'Seek help from the supervisor.': player.Resource_Q7 = 'The suggestion from supervisor is A,B.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q7_seeking == 'Answer independently.': player.Resource_Q7 = 'Please answer this question independently.' else: player.Resource_Q7 = '' return variables class Part3_Q8_answer(Page): form_model = 'player' form_fields = ['QS1_A', 'QS1_B', 'QS1_C', 'QS1_D', 'QS1_E', 'QS2_A', 'QS2_B', 'QS2_C', 'QS2_D', 'QS2_E', 'QS3_A', 'QS3_B', 'QS3_C', 'QS3_D', 'QS3_E', 'QS4_A', 'QS4_B', 'QS4_C', 'QS4_D', 'QS4_E', 'QS5_A', 'QS5_B', 'QS5_C', 'QS5_D', 'QS5_E', 'QS6_A', 'QS6_B', 'QS6_C', 'QS6_D', 'QS6_E', 'QS7_A', 'QS7_B', 'QS7_C', 'QS7_D', 'QS7_E', 'QS8_A', 'QS8_B', 'QS8_C', 'QS8_D', 'QS8_E', 'QS9_A', 'QS9_B', 'QS9_C', 'QS9_D', 'QS9_E', 'QS10_A', 'QS10_B', 'QS10_C', 'QS10_D', 'QS10_E', 'QS11_A', 'QS11_B', 'QS11_C', 'QS11_D', 'QS11_E', 'QS12_A', 'QS12_B', 'QS12_C', 'QS12_D', 'QS12_E', 'QS13_A', 'QS13_B', 'QS13_C', 'QS13_D', 'QS13_E', 'QS14_A', 'QS14_B', 'QS14_C', 'QS14_D', 'QS14_E', 'QS15_A', 'QS15_B', 'QS15_C', 'QS15_D', 'QS15_E', 'QS16_A', 'QS16_B', 'QS16_C', 'QS16_D', 'QS16_E', 'QS17_A', 'QS17_B', 'QS17_C', 'QS17_D', 'QS17_E', 'QS18_A', 'QS18_B', 'QS18_C', 'QS18_D', 'QS18_E', 'QS19_A', 'QS19_B', 'QS19_C', 'QS19_D', 'QS19_E', 'QS20_A', 'QS20_B', 'QS20_C', 'QS20_D', 'QS20_E', 'QS21_A', 'QS21_B', 'QS21_C', 'QS21_D', 'QS21_E', 'QS22_A', 'QS22_B', 'QS22_C', 'QS22_D', 'QS22_E', 'QS23_A', 'QS23_B', 'QS23_C', 'QS23_D', 'QS23_E', 'QS24_A', 'QS24_B', 'QS24_C', 'QS24_D', 'QS24_E', 'QS25_A', 'QS25_B', 'QS25_C', 'QS25_D', 'QS25_E', 'QS26_A', 'QS26_B', 'QS26_C', 'QS26_D', 'QS26_E', 'QS27_A', 'QS27_B', 'QS27_C', 'QS27_D', 'QS27_E', 'QS28_A', 'QS28_B', 'QS28_C', 'QS28_D', 'QS28_E', 'QS29_A', 'QS29_B', 'QS29_C', 'QS29_D', 'QS29_E', 'QS30_A', 'QS30_B', 'QS30_C', 'QS30_D', 'QS30_E'] timeout_seconds = 15 @staticmethod def vars_for_template(player: Player): import random variables = {} if player.QS1 == 8: if player.Q8_seeking == 'Seek help from AI.': player.Resource_Q8 = 'The suggestion from AI is A,B,C,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q8_seeking == 'Seek help from the supervisor.': player.Resource_Q8 = 'The suggestion from supervisor is A,B,C,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q8_seeking == 'Answer independently.': player.Resource_Q8 = 'Please answer this question independently.' else: player.Resource_Q8 = '' elif player.QS2 == 8: if player.Q8_seeking == 'Seek help from AI.': player.Resource_Q8 = 'The suggestion from AI is C,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q8_seeking == 'Seek help from the supervisor.': player.Resource_Q8 = 'The suggestion from supervisor is C,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q8_seeking == 'Answer independently.': player.Resource_Q8 = 'Please answer this question independently.' else: player.Resource_Q8 = '' elif player.QS3 == 8: if player.Q8_seeking == 'Seek help from AI.': player.Resource_Q8 = 'The suggestion from AI is A,C,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q8_seeking == 'Seek help from the supervisor.': player.Resource_Q8 = 'The suggestion from supervisor is A,C,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q8_seeking == 'Answer independently.': player.Resource_Q8 = 'Please answer this question independently.' else: player.Resource_Q8 = '' elif player.QS4 == 8: if player.Q8_seeking == 'Seek help from AI.': player.Resource_Q8 = 'The suggestion from AI is A,B,C,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q8_seeking == 'Seek help from the supervisor.': player.Resource_Q8 = 'The suggestion from supervisor is A,B,C,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q8_seeking == 'Answer independently.': player.Resource_Q8 = 'Please answer this question independently.' else: player.Resource_Q8 = '' elif player.QS5 == 8: if player.Q8_seeking == 'Seek help from AI.': player.Resource_Q8 = 'The suggestion from AI is A,B,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q8_seeking == 'Seek help from the supervisor.': player.Resource_Q8 = 'The suggestion from supervisor is A,B,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q8_seeking == 'Answer independently.': player.Resource_Q8 = 'Please answer this question independently.' else: player.Resource_Q8 = '' elif player.QS6 == 8: if player.Q8_seeking == 'Seek help from AI.': player.Resource_Q8 = 'The suggestion from AI is A,C,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q8_seeking == 'Seek help from the supervisor.': player.Resource_Q8 = 'The suggestion from supervisor is A,C,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q8_seeking == 'Answer independently.': player.Resource_Q8 = 'Please answer this question independently.' else: player.Resource_Q8 = '' elif player.QS7 == 8: if player.Q8_seeking == 'Seek help from AI.': player.Resource_Q8 = 'The suggestion from AI is A,B,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q8_seeking == 'Seek help from the supervisor.': player.Resource_Q8 = 'The suggestion from supervisor is A,B,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q8_seeking == 'Answer independently.': player.Resource_Q8 = 'Please answer this question independently.' else: player.Resource_Q8 = '' elif player.QS8 == 8: if player.Q8_seeking == 'Seek help from AI.': player.Resource_Q8 = 'The suggestion from AI is A,B,C.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q8_seeking == 'Seek help from the supervisor.': player.Resource_Q8 = 'The suggestion from supervisor is A,B,C.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q8_seeking == 'Answer independently.': player.Resource_Q8 = 'Please answer this question independently.' else: player.Resource_Q8 = '' elif player.QS9 == 8: if player.Q8_seeking == 'Seek help from AI.': player.Resource_Q8 = 'The suggestion from AI is A,B,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q8_seeking == 'Seek help from the supervisor.': player.Resource_Q8 = 'The suggestion from supervisor is A,B,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q8_seeking == 'Answer independently.': player.Resource_Q8 = 'Please answer this question independently.' else: player.Resource_Q8 = '' elif player.QS10 == 8: if player.Q8_seeking == 'Seek help from AI.': player.Resource_Q8 = 'The suggestion from AI is A,B,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q8_seeking == 'Seek help from the supervisor.': player.Resource_Q8 = 'The suggestion from supervisor is A,B,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q8_seeking == 'Answer independently.': player.Resource_Q8 = 'Please answer this question independently.' else: player.Resource_Q8 = '' elif player.QS11 == 8: if player.Q8_seeking == 'Seek help from AI.': player.Resource_Q8 = 'The suggestion from AI is B,C.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q8_seeking == 'Seek help from the supervisor.': player.Resource_Q8 = 'The suggestion from supervisor is B,C.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q8_seeking == 'Answer independently.': player.Resource_Q8 = 'Please answer this question independently.' else: player.Resource_Q8 = '' elif player.QS12 == 8: if player.Q8_seeking == 'Seek help from AI.': player.Resource_Q8 = 'The suggestion from AI is A,B,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q8_seeking == 'Seek help from the supervisor.': player.Resource_Q8 = 'The suggestion from supervisor is A,B,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q8_seeking == 'Answer independently.': player.Resource_Q8 = 'Please answer this question independently.' else: player.Resource_Q8 = '' elif player.QS13 == 8: if player.Q8_seeking == 'Seek help from AI.': player.Resource_Q8 = 'The suggestion from AI is A,B,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q8_seeking == 'Seek help from the supervisor.': player.Resource_Q8 = 'The suggestion from supervisor is A,B,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q8_seeking == 'Answer independently.': player.Resource_Q8 = 'Please answer this question independently.' else: player.Resource_Q8 = '' elif player.QS14 == 8: if player.Q8_seeking == 'Seek help from AI.': player.Resource_Q8 = 'The suggestion from AI is A,B,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q8_seeking == 'Seek help from the supervisor.': player.Resource_Q8 = 'The suggestion from supervisor is A,B,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q8_seeking == 'Answer independently.': player.Resource_Q8 = 'Please answer this question independently.' else: player.Resource_Q8 = '' elif player.QS15 == 8: if player.Q8_seeking == 'Seek help from AI.': player.Resource_Q8 = 'The suggestion from AI is A,C,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q8_seeking == 'Seek help from the supervisor.': player.Resource_Q8 = 'The suggestion from supervisor is A,C,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q8_seeking == 'Answer independently.': player.Resource_Q8 = 'Please answer this question independently.' else: player.Resource_Q8 = '' elif player.QS16 == 8: if player.Q8_seeking == 'Seek help from AI.': player.Resource_Q8 = 'The suggestion from AI is A,C,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q8_seeking == 'Seek help from the supervisor.': player.Resource_Q8 = 'The suggestion from supervisor is A,C,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q8_seeking == 'Answer independently.': player.Resource_Q8 = 'Please answer this question independently.' else: player.Resource_Q8 = '' elif player.QS17 == 8: if player.Q8_seeking == 'Seek help from AI.': player.Resource_Q8 = 'The suggestion from AI is A,B,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q8_seeking == 'Seek help from the supervisor.': player.Resource_Q8 = 'The suggestion from supervisor is A,B,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q8_seeking == 'Answer independently.': player.Resource_Q8 = 'Please answer this question independently.' else: player.Resource_Q8 = '' elif player.QS18 == 8: if player.Q8_seeking == 'Seek help from AI.': player.Resource_Q8 = 'The suggestion from AI is A,B,C,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q8_seeking == 'Seek help from the supervisor.': player.Resource_Q8 = 'The suggestion from supervisor is A,B,C,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q8_seeking == 'Answer independently.': player.Resource_Q8 = 'Please answer this question independently.' else: player.Resource_Q8 = '' elif player.QS19 == 8: if player.Q8_seeking == 'Seek help from AI.': player.Resource_Q8 = 'The suggestion from AI is B,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q8_seeking == 'Seek help from the supervisor.': player.Resource_Q8 = 'The suggestion from supervisor is B,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q8_seeking == 'Answer independently.': player.Resource_Q8 = 'Please answer this question independently.' else: player.Resource_Q8 = '' elif player.QS20 == 8: if player.Q8_seeking == 'Seek help from AI.': player.Resource_Q8 = 'The suggestion from AI is A,B,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q8_seeking == 'Seek help from the supervisor.': player.Resource_Q8 = 'The suggestion from supervisor is A,B,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q8_seeking == 'Answer independently.': player.Resource_Q8 = 'Please answer this question independently.' else: player.Resource_Q8 = '' elif player.QS21 == 8: if player.Q8_seeking == 'Seek help from AI.': player.Resource_Q8 = 'The suggestion from AI is A,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q8_seeking == 'Seek help from the supervisor.': player.Resource_Q8 = 'The suggestion from supervisor is A,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q8_seeking == 'Answer independently.': player.Resource_Q8 = 'Please answer this question independently.' else: player.Resource_Q8 = '' elif player.QS22 == 8: if player.Q8_seeking == 'Seek help from AI.': player.Resource_Q8 = 'The suggestion from AI is A,B,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q8_seeking == 'Seek help from the supervisor.': player.Resource_Q8 = 'The suggestion from supervisor is A,B,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q8_seeking == 'Answer independently.': player.Resource_Q8 = 'Please answer this question independently.' else: player.Resource_Q8 = '' elif player.QS23 == 8: if player.Q8_seeking == 'Seek help from AI.': player.Resource_Q8 = 'The suggestion from AI is A,B,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q8_seeking == 'Seek help from the supervisor.': player.Resource_Q8 = 'The suggestion from supervisor is A,B,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q8_seeking == 'Answer independently.': player.Resource_Q8 = 'Please answer this question independently.' else: player.Resource_Q8 = '' elif player.QS24 == 8: if player.Q8_seeking == 'Seek help from AI.': player.Resource_Q8 = 'The suggestion from AI is C,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q8_seeking == 'Seek help from the supervisor.': player.Resource_Q8 = 'The suggestion from supervisor is C,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q8_seeking == 'Answer independently.': player.Resource_Q8 = 'Please answer this question independently.' else: player.Resource_Q8 = '' elif player.QS25 == 8: if player.Q8_seeking == 'Seek help from AI.': player.Resource_Q8 = 'The suggestion from AI is A,B,D.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q8_seeking == 'Seek help from the supervisor.': player.Resource_Q8 = 'The suggestion from supervisor is A,B,D.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q8_seeking == 'Answer independently.': player.Resource_Q8 = 'Please answer this question independently.' else: player.Resource_Q8 = '' elif player.QS26 == 8: if player.Q8_seeking == 'Seek help from AI.': player.Resource_Q8 = 'The suggestion from AI is A,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q8_seeking == 'Seek help from the supervisor.': player.Resource_Q8 = 'The suggestion from supervisor is A,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q8_seeking == 'Answer independently.': player.Resource_Q8 = 'Please answer this question independently.' else: player.Resource_Q8 = '' elif player.QS27 == 8: if player.Q8_seeking == 'Seek help from AI.': player.Resource_Q8 = 'The suggestion from AI is A,C.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q8_seeking == 'Seek help from the supervisor.': player.Resource_Q8 = 'The suggestion from supervisor is A,C.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q8_seeking == 'Answer independently.': player.Resource_Q8 = 'Please answer this question independently.' else: player.Resource_Q8 = '' elif player.QS28 == 8: if player.Q8_seeking == 'Seek help from AI.': player.Resource_Q8 = 'The suggestion from AI is A,D,E.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q8_seeking == 'Seek help from the supervisor.': player.Resource_Q8 = 'The suggestion from supervisor is A,D,E.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q8_seeking == 'Answer independently.': player.Resource_Q8 = 'Please answer this question independently.' else: player.Resource_Q8 = '' elif player.QS29 == 8: if player.Q8_seeking == 'Seek help from AI.': player.Resource_Q8 = 'The suggestion from AI is A,B.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q8_seeking == 'Seek help from the supervisor.': player.Resource_Q8 = 'The suggestion from supervisor is A,B.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q8_seeking == 'Answer independently.': player.Resource_Q8 = 'Please answer this question independently.' else: player.Resource_Q8 = '' elif player.QS30 == 8: if player.Q8_seeking == 'Seek help from AI.': player.Resource_Q8 = 'The suggestion from AI is A,B.' if random.random() < 0.8 else 'AI provides no advice.' elif player.Q8_seeking == 'Seek help from the supervisor.': player.Resource_Q8 = 'The suggestion from supervisor is A,B.' if random.random() < 0.8 else 'The supervisor provides no advice.' elif player.Q8_seeking == 'Answer independently.': player.Resource_Q8 = 'Please answer this question independently.' else: player.Resource_Q8 = '' return variables class Personal_information(Page): form_model = 'player' form_fields = ['PE1', 'PE2', 'PE3', 'SupUSE', 'AI1', 'AI2', 'AI3', 'AIUSE', 'SR1', 'SR2', 'EX1', 'EX2', 'EX3', 'EX4'] @staticmethod def is_displayed(player: Player): if player.consent == 'Yes' and player.comprehension1_wrong == False and player.comprehension1_attempts < 100 and player.comprehension2_wrong == False and player.comprehension2_attempts < 100: return True class Personal_information_part4(Page): form_model = 'player' form_fields = ['Open1', 'Open2', 'PI1', 'PI2', 'PI3', 'PI4', 'RA1', 'RA2', 'RA3', 'RA4', 'RA5', 'RA6', 'RA7', 'RA8', 'RT', 'IT', 'Con1', 'Con2', 'Con3', 'Con4', 'Con5', 'Con6'] @staticmethod def is_displayed(player: Player): if player.consent == 'Yes' and player.comprehension1_wrong == False and player.comprehension1_attempts < 100 and player.comprehension2_wrong == False and player.comprehension2_attempts < 100: return True class Personal_information_part4_2(Page): form_model = 'player' form_fields = ['Age', 'Gender', 'Ethnic', 'Marriage', 'email'] @staticmethod def is_displayed(player: Player): if player.consent == 'Yes' and player.comprehension1_wrong == False and player.comprehension1_attempts < 100 and player.comprehension2_wrong == False and player.comprehension2_attempts < 100: return True class Final_page_comprehensive(Page): form_model = 'player' @staticmethod def is_displayed(player: Player): return player.comprehension1_wrong or player.comprehension2_wrong class Final_page_consent(Page): form_model = 'player' @staticmethod def is_displayed(player: Player): if player.consent == 'No': return True class Final_page_finish(Page): form_model = 'player' @staticmethod def is_displayed(player: Player): if player.consent == 'Yes' and player.comprehension1_wrong == False and player.comprehension1_attempts < 100 and player.comprehension2_wrong == False and player.comprehension2_attempts < 100: return True page_sequence = [Welcome, Constent_form, Personal_information_part1, Social_class_writing, Social_class_answer, Testing, Instructions_part3, Instructions_part3_sup, Instructions_part3_AI, Instructions_part3_Sup_vs_AI, Check1, Instructions_part3_others, Check2, Part3_Procedure, Help_seeking_instructions, Part3_Q1, Part3_Q2, Part3_Q3, Part3_Q4, Part3_Q5, Part3_Q6, Part3_Q7, Part3_Q8, Seeking_instructions, Q1_seeking_sup, Q1_seeking_AI, Q2_seeking_sup, Q2_seeking_AI, Q3_seeking_sup, Q3_seeking_AI, Q4_seeking_sup, Q4_seeking_AI, Q5_seeking_sup, Q5_seeking_AI, Q6_seeking_sup, Q6_seeking_AI, Q7_seeking_sup, Q7_seeking_AI, Q8_seeking_sup, Q8_seeking_AI, Answer_instructions, Part3_Q1_answer, Part3_Q2_answer, Part3_Q3_answer, Part3_Q4_answer, Part3_Q5_answer, Part3_Q6_answer, Part3_Q7_answer, Part3_Q8_answer, Personal_information, Personal_information_part4, Personal_information_part4_2, Final_page_comprehensive, Final_page_consent, Final_page_finish]