from otree.api import * c = cu doc = '' class Constants(BaseConstants): name_in_url = 'Survey' players_per_group = None num_rounds = 1 tutorial_p2_forecast_template = 'Survey/tutorial_p2_forecast.html' class Subsession(BaseSubsession): pass def calculate_BFAS(group): pass class Group(BaseGroup): calculate_BFAS = calculate_BFAS class Player(BasePlayer): Q1 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='1. ___ Seldom feel blue.', widget=widgets.RadioSelectHorizontal) Q2 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label="2. ___ Am not interested in other people's problems.", widget=widgets.RadioSelectHorizontal) Q3 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='3. ___ Carry out my plans.', widget=widgets.RadioSelectHorizontal) Q4 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='4. ___ Make friends easily.', widget=widgets.RadioSelectHorizontal) Q5 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='5. ___ Am quick to understand things.', widget=widgets.RadioSelectHorizontal) Q6 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='6. ___ Get angry easily.', widget=widgets.RadioSelectHorizontal) Q7 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='7. ___ Respect authority.', widget=widgets.RadioSelectHorizontal) Q8 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='8. ___ Leave my belongings around.', widget=widgets.RadioSelectHorizontal) Q9 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='9. ___ Take charge.', widget=widgets.RadioSelectHorizontal) Q10 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='10. ___ Enjoy the beauty of nature.', widget=widgets.RadioSelectHorizontal) Q11 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='11. ___ Am filled with doubts about things.', widget=widgets.RadioSelectHorizontal) Q12 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label="12. ___ Feel others' emotions.", widget=widgets.RadioSelectHorizontal) Q13 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='13. ___ Waste my time.', widget=widgets.RadioSelectHorizontal) Q14 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='14. ___ Am hard to get to know.', widget=widgets.RadioSelectHorizontal) Q15 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='15. ___ Have difficulty understanding abstract ideas.', widget=widgets.RadioSelectHorizontal) Q16 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='16. __ Rarely get irritated.', widget=widgets.RadioSelectHorizontal) Q17 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='17. ___ Believe that I am better than others.', widget=widgets.RadioSelectHorizontal) Q18 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='18. ___ Like order.', widget=widgets.RadioSelectHorizontal) Q19 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='19. ___ Have a strong personality.', widget=widgets.RadioSelectHorizontal) Q20 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='20. ___ Believe in the importance of art.', widget=widgets.RadioSelectHorizontal) Q21 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='21. ___ Feel comfortable with myself.', widget=widgets.RadioSelectHorizontal) Q22 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label="22. ___ Inquire about others' well-being.", widget=widgets.RadioSelectHorizontal) Q23 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='23. ___ Find it difficult to get down to work.', widget=widgets.RadioSelectHorizontal) Q24 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='24. ___ Keep others at a distance.', widget=widgets.RadioSelectHorizontal) Q25 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='25. ___ Can handle a lot of information.', widget=widgets.RadioSelectHorizontal) Q26 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='26. ___ Get upset easily.', widget=widgets.RadioSelectHorizontal) Q27 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='27. ___ Hate to seem pushy.', widget=widgets.RadioSelectHorizontal) Q28 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='28. ___ Keep things tidy.', widget=widgets.RadioSelectHorizontal) Q29 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='29. ___ Lack the talent for influencing people.', widget=widgets.RadioSelectHorizontal) Q30 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='30. ___ Love to reflect on things.', widget=widgets.RadioSelectHorizontal) Q31 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='31. ___ Feel threatened easily.', widget=widgets.RadioSelectHorizontal) Q32 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label="32. ___ Can't be bothered with other's needs.", widget=widgets.RadioSelectHorizontal) Q33 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='33. ___ Mess things up.', widget=widgets.RadioSelectHorizontal) Q34 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='34. ___ Reveal little about myself.', widget=widgets.RadioSelectHorizontal) Q35 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='35. ___ Like to solve complex problems.', widget=widgets.RadioSelectHorizontal) Q36 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='36. ___ Keep my emotions under control.', widget=widgets.RadioSelectHorizontal) Q37 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='37. ___ Take advantage of others.', widget=widgets.RadioSelectHorizontal) Q38 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='38. ___ Follow a schedule.', widget=widgets.RadioSelectHorizontal) Q39 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='39. ___ Know how to captivate people.', widget=widgets.RadioSelectHorizontal) Q40 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='40. ___ Get deeply immersed in music.', widget=widgets.RadioSelectHorizontal) Q41 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='41. ___ Rarely feel depressed.', widget=widgets.RadioSelectHorizontal) Q42 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label="42. ___ Sympathize with others' feelings.", widget=widgets.RadioSelectHorizontal) Q43 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='43. ___ Finish what I start.', widget=widgets.RadioSelectHorizontal) Q44 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='44. ___ Warm up quickly to others.', widget=widgets.RadioSelectHorizontal) Q45 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='45. ___ Avoid philosophical discussions.', widget=widgets.RadioSelectHorizontal) Q46 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='46. ___ Change my mood a lot.', widget=widgets.RadioSelectHorizontal) Q47 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='47. ___ Avoid imposing my will on others.', widget=widgets.RadioSelectHorizontal) Q48 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='48. ___ Am not bothered by messy people.', widget=widgets.RadioSelectHorizontal) Q49 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='49. ___ Wait for others to lead the way.', widget=widgets.RadioSelectHorizontal) Q50 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='50. ___ Do not like poetry.', widget=widgets.RadioSelectHorizontal) Q51 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='51. ___ Worry about things.', widget=widgets.RadioSelectHorizontal) Q52 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='52. ___ Am indifferent to the feelings of others.', widget=widgets.RadioSelectHorizontal) Q53 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label="53. ___ Don't put my mind on the task at hand.", widget=widgets.RadioSelectHorizontal) Q54 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='54. ___ Rarely get caught up in the excitement.', widget=widgets.RadioSelectHorizontal) Q55 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='55. ___ Avoid difficult reading material.', widget=widgets.RadioSelectHorizontal) Q56 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='56. ___ Rarely lose my composure.', widget=widgets.RadioSelectHorizontal) Q57 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='57. ___ Rarely put people under pressure.', widget=widgets.RadioSelectHorizontal) Q58 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='58. ___ Want everything to be “just right.”', widget=widgets.RadioSelectHorizontal) Q59 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='59. ___ See myself as a good leader.', widget=widgets.RadioSelectHorizontal) Q60 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='60. ___ Seldom notice the emotional aspects of paintings and pictures.', widget=widgets.RadioSelectHorizontal) Q61 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='61. ___ Am easily discouraged.', widget=widgets.RadioSelectHorizontal) Q62 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='62. ___ Take no time for others.', widget=widgets.RadioSelectHorizontal) Q63 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='63. ___ Get things done quickly.', widget=widgets.RadioSelectHorizontal) Q64 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='64. ___ Am not a very enthusiastic person.', widget=widgets.RadioSelectHorizontal) Q65 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='65. ___ Have a rich vocabulary.', widget=widgets.RadioSelectHorizontal) Q66 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='66. ___ Am a person whose moods go up and down easily.', widget=widgets.RadioSelectHorizontal) Q67 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='67. ___ Insult people.', widget=widgets.RadioSelectHorizontal) Q68 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='68. ___ Am not bothered by disorder.', widget=widgets.RadioSelectHorizontal) Q69 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='69. ___ Can talk others into doing things.', widget=widgets.RadioSelectHorizontal) Q70 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='70. ___ Need a creative outlet.', widget=widgets.RadioSelectHorizontal) Q71 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='71. ___ Am not embarrassed easily.', widget=widgets.RadioSelectHorizontal) Q72 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label="72. ___ Take an interest in other people's lives.", widget=widgets.RadioSelectHorizontal) Q73 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='73. ___ Always know what I am doing.', widget=widgets.RadioSelectHorizontal) Q74 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label="74. ___ Show my feelings when I'm happy.", widget=widgets.RadioSelectHorizontal) Q75 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='75. ___ Think quickly.', widget=widgets.RadioSelectHorizontal) Q76 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='76. ___ Am not easily annoyed.', widget=widgets.RadioSelectHorizontal) Q77 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='77. ___ Seek conflict.', widget=widgets.RadioSelectHorizontal) Q78 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='78. ___ Dislike routine.', widget=widgets.RadioSelectHorizontal) Q79 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='79. ___ Hold back my opinions.', widget=widgets.RadioSelectHorizontal) Q80 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='80. ___ Seldom get lost in thought.', widget=widgets.RadioSelectHorizontal) Q81 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='81. ___ Become overwhelmed by events.', widget=widgets.RadioSelectHorizontal) Q82 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label="82. ___ Don't have a soft side.", widget=widgets.RadioSelectHorizontal) Q83 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='83. ___ Postpone decisions.', widget=widgets.RadioSelectHorizontal) Q84 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='84. ___ Have a lot of fun.', widget=widgets.RadioSelectHorizontal) Q85 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='85. ___ Learn things slowly.', widget=widgets.RadioSelectHorizontal) Q86 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='86. ___ Get easily agitated.', widget=widgets.RadioSelectHorizontal) Q87 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='87. ___ Love a good fight.', widget=widgets.RadioSelectHorizontal) Q88 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='88. ___ See that rules are observed.', widget=widgets.RadioSelectHorizontal) Q89 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='89. ___ Am the first to act.', widget=widgets.RadioSelectHorizontal) Q90 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='90. ___ Seldom daydream.', widget=widgets.RadioSelectHorizontal) Q91 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='91. ___ Am afraid of many things.', widget=widgets.RadioSelectHorizontal) Q92 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='92. ___ Like to do things for others.', widget=widgets.RadioSelectHorizontal) Q93 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='93. ___ Am easily distracted.', widget=widgets.RadioSelectHorizontal) Q94 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='94. ___ Laugh a lot.', widget=widgets.RadioSelectHorizontal) Q95 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='95. ___ Formulate ideas clearly.', widget=widgets.RadioSelectHorizontal) Q96 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='96. ___ Can be stirred up easily.', widget=widgets.RadioSelectHorizontal) Q97 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='97. ___ Am out for my own personal gain.', widget=widgets.RadioSelectHorizontal) Q98 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='98. ___ Want every detail taken care of.', widget=widgets.RadioSelectHorizontal) Q99 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='99. ___ Do not have an assertive personality.', widget=widgets.RadioSelectHorizontal) Q100 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='100. ___ See beauty in things that others might not notice.', widget=widgets.RadioSelectHorizontal) gender = models.StringField(choices=[['Male', 'Male'], ['Female', 'Female'], ['Other', 'Other'], ['Prefer not to say', 'Prefer not to say']], label='What gender do you identify with?') race = models.StringField(choices=[['White', 'White'], ['Hispanic or Latino', 'Hispanic or Latino'], ['Black', 'Black'], ['Asian', 'Asian'], ['Pacific Islander', 'Pacific Islander'], ['Native American', 'Native American'], ['Multiple Races', 'Multiple Races'], ['Other', 'Other'], ['Prefer not to say', 'Prefer not to say']], label='What is your race (ethnicity)? ') married = models.StringField(choices=[['Never Married', 'Never Married'], ['Married', 'Married'], ['Divorced', 'Divorced'], ['Widowed', 'Widowed'], ['Prefer not to say', 'Prefer not to say']], label='What is your marital status?') education = models.StringField(choices=[['Less than a high school degree', 'Less than a high school degree'], ['High school degree (or equivalent) ', 'High school degree (or equivalent) '], ["Some college or associate's degree", "Some college or associate's degree"], ["Bachelor's degree", "Bachelor's degree"], ['Graduate or professional degree', 'Graduate or professional degree'], ['Prefer not to say', 'Prefer not to say']], label='What is your highest level of education attained?') employment = models.StringField(choices=[['Employed - full time', 'Employed - full time'], ['Employed - part time', 'Employed - part time'], ['Retired', 'Retired'], ['Unemployed - seeking employment', 'Unemployed - seeking employment'], ['Unemployed - Not seeking employment', 'Unemployed - not seeking employment'], ['Prefer not to say', 'Prefer not to say']], label='What is your current employment status?') consent = models.StringField(choices=[['agree', 'agree']], label='I agree to these terms.', widget=widgets.RadioSelect) location = models.StringField(choices=[['United States', 'United States'], ['Afghanistan', 'Afghanistan'], ['Albania', 'Albania'], ['Algeria', 'Algeria'], ['Andorra', 'Andorra'], ['Angola', 'Angola'], ['Antigua & Deps', 'Antigua & Deps'], ['Argentina', 'Argentina'], ['Armenia', 'Armenia'], ['Australia', 'Australia'], ['Austria', 'Austria'], ['Azerbaijan', 'Azerbaijan'], ['Bahamas', 'Bahamas'], ['Bahrain', 'Bahrain'], ['Bangladesh', 'Bangladesh'], ['Barbados', 'Barbados'], ['Belarus', 'Belarus'], ['Belgium', 'Belgium'], ['Belize', 'Belize'], ['Benin', 'Benin'], ['Bhutan', 'Bhutan'], ['Bolivia', 'Bolivia'], ['Bosnia Herzegovina', 'Bosnia Herzegovina'], ['Botswana', 'Botswana'], ['Brazil', 'Brazil'], ['Brunei', 'Brunei'], ['Bulgaria', 'Bulgaria'], ['Burkina', 'Burkina'], ['Burundi', 'Burundi'], ['Cambodia', 'Cambodia'], ['Cameroon', 'Cameroon'], ['Canada', 'Canada'], ['Cape Verde', 'Cape Verde'], ['Central African Rep', 'Central African Rep'], ['Chad', 'Chad'], ['Chile', 'Chile'], ['China', 'China'], ['Colombia', 'Colombia'], ['Comoros', 'Comoros'], ['Congo', 'Congo'], ['Congo {Democratic Rep}', 'Congo {Democratic Rep}'], ['Costa Rica', 'Costa Rica'], ['Croatia', 'Croatia'], ['Cuba', 'Cuba'], ['Cyprus', 'Cyprus'], ['Czech Republic', 'Czech Republic'], ['Denmark', 'Denmark'], ['Djibouti', 'Djibouti'], ['Dominica', 'Dominica'], ['Dominican Republic', 'Dominican Republic'], ['East Timor', 'East Timor'], ['Ecuador', 'Ecuador'], ['Egypt', 'Egypt'], ['El Salvador', 'El Salvador'], ['Equatorial Guinea', 'Equatorial Guinea'], ['Eritrea', 'Eritrea'], ['Estonia', 'Estonia'], ['Ethiopia', 'Ethiopia'], ['Fiji', 'Fiji'], ['Finland', 'Finland'], ['France', 'France'], ['Gabon', 'Gabon'], ['Gambia', 'Gambia'], ['Georgia', 'Georgia'], ['Germany', 'Germany'], ['Ghana', 'Ghana'], ['Greece', 'Greece'], ['Grenada', 'Grenada'], ['Guatemala', 'Guatemala'], ['Guinea', 'Guinea'], ['Guinea-Bissau', 'Guinea-Bissau'], ['Guyana', 'Guyana'], ['Haiti', 'Haiti'], ['Honduras', 'Honduras'], ['Hungary', 'Hungary'], ['Iceland', 'Iceland'], ['India', 'India'], ['Indonesia', 'Indonesia'], ['Iran', 'Iran'], ['Iraq', 'Iraq'], ['Ireland {Republic}', 'Ireland {Republic}'], ['Israel', 'Israel'], ['Italy', 'Italy'], ['Ivory Coast', 'Ivory Coast'], ['Jamaica', 'Jamaica'], ['Japan', 'Japan'], ['Jordan', 'Jordan'], ['Kazakhstan', 'Kazakhstan'], ['Kenya', 'Kenya'], ['Kiribati', 'Kiribati'], ['Korea North', 'Korea North'], ['Korea South', 'Korea South'], ['Kosovo', 'Kosovo'], ['Kuwait', 'Kuwait'], ['Kyrgyzstan', 'Kyrgyzstan'], ['Laos', 'Laos'], ['Latvia', 'Latvia'], ['Lebanon', 'Lebanon'], ['Lesotho', 'Lesotho'], ['Liberia', 'Liberia'], ['Libya', 'Libya'], ['Liechtenstein', 'Liechtenstein'], ['Lithuania', 'Lithuania'], ['Luxembourg', 'Luxembourg'], ['Macedonia', 'Macedonia'], ['Madagascar', 'Madagascar'], ['Malawi', 'Malawi'], ['Malaysia', 'Malaysia'], ['Maldives', 'Maldives'], ['Mali', 'Mali'], ['Malta', 'Malta'], ['Marshall Islands', 'Marshall Islands'], ['Mauritania', 'Mauritania'], ['Mauritius', 'Mauritius'], ['Mexico', 'Mexico'], ['Micronesia', 'Micronesia'], ['Moldova', 'Moldova'], ['Monaco', 'Monaco'], ['Mongolia', 'Mongolia'], ['Montenegro', 'Montenegro'], ['Morocco', 'Morocco'], ['Mozambique', 'Mozambique'], ['Myanmar, {Burma}', 'Myanmar, {Burma}'], ['Namibia', 'Namibia'], ['Nauru', 'Nauru'], ['Nepal', 'Nepal'], ['Netherlands', 'Netherlands'], ['New Zealand', 'New Zealand'], ['Nicaragua', 'Nicaragua'], ['Niger', 'Niger'], ['Nigeria', 'Nigeria'], ['Norway', 'Norway'], ['Oman', 'Oman'], ['Pakistan', 'Pakistan'], ['Palau', 'Palau'], ['Panama', 'Panama'], ['Papua New Guinea', 'Papua New Guinea'], ['Paraguay', 'Paraguay'], ['Peru', 'Peru'], ['Philippines', 'Philippines'], ['Poland', 'Poland'], ['Portugal', 'Portugal'], ['Qatar', 'Qatar'], ['Romania', 'Romania'], ['Russian Federation', 'Russian Federation'], ['Rwanda', 'Rwanda'], ['St Kitts & Nevis', 'St Kitts & Nevis'], ['St Lucia', 'St Lucia'], ['Saint Vincent & the Grenadines', 'Saint Vincent & the Grenadines'], ['Samoa', 'Samoa'], ['San Marino', 'San Marino'], ['Sao Tome & Principe', 'Sao Tome & Principe'], ['Saudi Arabia', 'Saudi Arabia'], ['Senegal', 'Senegal'], ['Serbia', 'Serbia'], ['Seychelles', 'Seychelles'], ['Sierra Leone', 'Sierra Leone'], ['Singapore', 'Singapore'], ['Slovakia', 'Slovakia'], ['Slovenia', 'Slovenia'], ['Solomon Islands', 'Solomon Islands'], ['Somalia', 'Somalia'], ['South Africa', 'South Africa'], ['South Sudan', 'South Sudan'], ['Spain', 'Spain'], ['Sri Lanka', 'Sri Lanka'], ['Sudan', 'Sudan'], ['Suriname', 'Suriname'], ['Swaziland', 'Swaziland'], ['Sweden', 'Sweden'], ['Switzerland', 'Switzerland'], ['Syria', 'Syria'], ['Taiwan', 'Taiwan'], ['Tajikistan', 'Tajikistan'], ['Tanzania', 'Tanzania'], ['Thailand', 'Thailand'], ['Togo', 'Togo'], ['Tonga', 'Tonga'], ['Trinidad & Tobago', 'Trinidad & Tobago'], ['Tunisia', 'Tunisia'], ['Turkey', 'Turkey'], ['Turkmenistan', 'Turkmenistan'], ['Tuvalu', 'Tuvalu'], ['Uganda', 'Uganda'], ['Ukraine', 'Ukraine'], ['United Arab Emirates', 'United Arab Emirates'], ['United Kingdom', 'United Kingdom'], ['Uruguay', 'Uruguay'], ['Uzbekistan', 'Uzbekistan'], ['Vanuatu', 'Vanuatu'], ['Vatican City', 'Vatican City'], ['Venezuela', 'Venezuela'], ['Vietnam', 'Vietnam'], ['Yemen', 'Yemen'], ['Zambia', 'Zambia'], ['Zimbabwe', 'Zimbabwe']], label='What is your country of residence?') age = models.StringField(choices=[['18 - 24', '18 - 24'], ['25 - 34', '25 - 34'], ['35 - 44', '35 - 44'], ['45 - 54', '45 - 54'], ['55 - 64', '55 - 64'], ['65 or older', '65 or older'], ['Prefer not to say', 'Prefer not to say']], label='What is your age (in years)?') B1 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='1. ___ Tends to be quiet.', widget=widgets.RadioSelectHorizontal) B2 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='2. ___ Is compassionate, has a soft heart.', widget=widgets.RadioSelectHorizontal) B3 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='3. ___ Tends to be disorganized.', widget=widgets.RadioSelectHorizontal) B4 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='4. ___ Worries a lot.', widget=widgets.RadioSelectHorizontal) B5 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='5. ___ Is fascinated by art, music, or literature.', widget=widgets.RadioSelectHorizontal) B6 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='6. ___ Is dominant, acts as a leader.', widget=widgets.RadioSelectHorizontal) B7 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='7. ___ Is sometimes rude to others.', widget=widgets.RadioSelectHorizontal) B8 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='8. ___ Has difficulty getting started on tasks.', widget=widgets.RadioSelectHorizontal) B9 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='9. ___ Tends to feel depressed, blue.', widget=widgets.RadioSelectHorizontal) B10 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='10. ___ Has little interest in abstract ideas.', widget=widgets.RadioSelectHorizontal) B11 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='11. ___ Is full of energy.', widget=widgets.RadioSelectHorizontal) B12 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='12. ___ Assumes the best about people.', widget=widgets.RadioSelectHorizontal) B13 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='13. ___ Is reliable, can always be counted on.', widget=widgets.RadioSelectHorizontal) B14 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='14. ___ Is emotionally stable, not easily upset.', widget=widgets.RadioSelectHorizontal) B15 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='15. ___ Is original, comes up with new ideas.', widget=widgets.RadioSelectHorizontal) B16 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='16. ___ Is outgoing, sociable.', widget=widgets.RadioSelectHorizontal) B17 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='17. ___ Can be cold and uncaring.', widget=widgets.RadioSelectHorizontal) B18 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='18. ___ Keeps things neat and tidy.', widget=widgets.RadioSelectHorizontal) B19 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='19. ___ Is relaxed, handles stress well.', widget=widgets.RadioSelectHorizontal) B20 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='20. ___ Has few artistic interests.', widget=widgets.RadioSelectHorizontal) B21 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='21. ___ Prefers to have others take charge.', widget=widgets.RadioSelectHorizontal) B22 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='22. ___ Is respectful, treats others with respect.', widget=widgets.RadioSelectHorizontal) B23 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='23. ___ Is persistent, works until the task is finished.', widget=widgets.RadioSelectHorizontal) B24 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='24. ___ Feels secure, comfortable with self.', widget=widgets.RadioSelectHorizontal) B25 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='25. ___ Is complex, a deep thinker.', widget=widgets.RadioSelectHorizontal) B26 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='26. ___ Is less active than other people.', widget=widgets.RadioSelectHorizontal) B27 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='27. ___ Tends to find fault with others.', widget=widgets.RadioSelectHorizontal) B28 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='28. ___ Can be somewhat careless.', widget=widgets.RadioSelectHorizontal) B29 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='29. ___ Is temperamental, gets emotional easily.', widget=widgets.RadioSelectHorizontal) B30 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='30. ___ Has little creativity.', widget=widgets.RadioSelectHorizontal) class Disclaimer(Page): form_model = 'player' form_fields = ['consent'] class Demographics(Page): form_model = 'player' form_fields = ['age', 'gender', 'race', 'married', 'education', 'employment', 'location'] class BFAS_Questionnaire(Page): form_model = 'player' form_fields = ['Q1', 'Q2', 'Q3', 'Q4', 'Q5', 'Q6', 'Q7', 'Q8', 'Q9', 'Q10', 'Q11', 'Q12', 'Q13', 'Q14', 'Q15', 'Q16', 'Q17', 'Q18', 'Q19', 'Q20', 'Q21', 'Q22', 'Q23', 'Q24', 'Q25', 'Q26', 'Q27', 'Q28', 'Q29', 'Q30', 'Q31', 'Q32', 'Q33', 'Q34', 'Q35', 'Q36', 'Q37', 'Q38', 'Q39', 'Q40', 'Q41', 'Q42', 'Q43', 'Q44', 'Q45', 'Q46', 'Q47', 'Q48', 'Q49', 'Q50', 'Q51', 'Q52', 'Q53', 'Q54', 'Q55', 'Q56', 'Q57', 'Q58', 'Q59', 'Q60', 'Q61', 'Q62', 'Q63', 'Q64', 'Q65', 'Q66', 'Q67', 'Q68', 'Q69', 'Q70', 'Q71', 'Q72', 'Q73', 'Q74', 'Q75', 'Q76', 'Q77', 'Q78', 'Q79', 'Q80', 'Q81', 'Q82', 'Q83', 'Q84', 'Q85', 'Q86', 'Q87', 'Q88', 'Q89', 'Q90', 'Q91', 'Q92', 'Q93', 'Q94', 'Q95', 'Q96', 'Q97', 'Q98', 'Q99', 'Q100'] @staticmethod def is_displayed(player): # http://deyoung.psych.umn.edu/research # Toggle which survey gets shown (switch to False if not) return False class BFI2S_Questionnaire(Page): form_model = 'player' form_fields = ['B1', 'B2', 'B3', 'B4', 'B5', 'B6', 'B7', 'B8', 'B9', 'B10', 'B11', 'B12', 'B13', 'B14', 'B15', 'B16', 'B17', 'B18', 'B19', 'B20', 'B21', 'B22', 'B23', 'B24', 'B25', 'B26', 'B27', 'B28', 'B29', 'B30'] @staticmethod def is_displayed(player): # http://www.colby.edu/psych/wp-content/uploads/sites/50/2013/08/Soto_John_2017b.pdf # Toggle which survey is given return True page_sequence = [Disclaimer, Demographics, BFAS_Questionnaire, BFI2S_Questionnaire]