from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range, Page, WaitPage ) cu = c doc = '' class Constants(BaseConstants): name_in_url = 'questionnaire' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): age = models.IntegerField(label='What is your age', max=125, min=13) gender = models.StringField(choices=[['Male', 'Male'], ['Female', 'Female']], label='What is your gender', widget=widgets.RadioSelect) Instructions = models.StringField(label='Please use the 1 (never or very rarely true) to 5 (very often or always true) scale provided to indicate how true the below statements are of you. Choose the number which represents your own opinion of what is generally true for you. 1 – never or very rarely true; 2 – rarely true; 3 – sometimes true; 4 – often true; 5- very often or always true. ') q1 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='1. When I take a shower or a bath, I stay alert to the sensations of water on my body.', widget=widgets.RadioSelectHorizontal) q2 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='2. I’m good at finding words to describe my feelings. ', widget=widgets.RadioSelectHorizontal) q3 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='3. I don’t pay attention to what I’m doing because I’m daydreaming, worrying, or otherwise distracted. ', widget=widgets.RadioSelectHorizontal) q4 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='4. I believe some of my thoughts are abnormal or bad and I shouldn’t think that way. ', widget=widgets.RadioSelectHorizontal) q5 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='5. When I have distressing thoughts or images, I “step back” and am aware of the thought or image without getting taken over by it. ', widget=widgets.RadioSelectHorizontal) q6 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='6. I notice how foods and drinks affect my thoughts, bodily sensations, and emotions. ', widget=widgets.RadioSelectHorizontal) q7 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='7. I have trouble thinking of the right words to express how I feel about things. ', widget=widgets.RadioSelectHorizontal) q8 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='8. I do jobs or tasks automatically without being aware of what I’m doing. ', widget=widgets.RadioSelectHorizontal) q9 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='9. I think some of my emotions are bad or inappropriate and I shouldn’t feel them. ', widget=widgets.RadioSelectHorizontal) q10 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='10. When I have distressing thoughts or images I am able just to notice them without reacting. ', widget=widgets.RadioSelectHorizontal) q11 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='11. I pay attention to sensations, such as the wind in my hair or sun on my face. ', widget=widgets.RadioSelectHorizontal) q12 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='12. Even when I’m feeling terribly upset I can find a way to put it into words. ', widget=widgets.RadioSelectHorizontal) q13 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='13. I find myself doing things without paying attention. ', widget=widgets.RadioSelectHorizontal) q14 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='14. I tell myself I shouldn’t be feeling the way I’m feeling. ', widget=widgets.RadioSelectHorizontal) q15 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='15. When I have distressing thoughts or images I just notice them and let them go. ', widget=widgets.RadioSelectHorizontal) c1 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='1. I pay careful attention when other people talk to me about their troubles.', widget=widgets.RadioSelectHorizontal) c2 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='2. If I see someone going through a difficult time, I try to be caring toward that person.', widget=widgets.RadioSelectHorizontal) c3 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='3. I am unconcerned with other people’s problems.', widget=widgets.RadioSelectHorizontal) c4 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='4. I realize everyone feels down sometimes, it is part of being human.', widget=widgets.RadioSelectHorizontal) c5 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='5. I notice when people are upset, even if they don’t say anything.', widget=widgets.RadioSelectHorizontal) c6 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='6. I like to be there for others in times of difficulty.', widget=widgets.RadioSelectHorizontal) c7 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='7. I think little about the concerns of others.', widget=widgets.RadioSelectHorizontal) c8 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='8. I feel it’s important to recognize that all people have weaknesses and no one’s perfect.', widget=widgets.RadioSelectHorizontal) c9 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='9. I listen patiently when people tell me their problems.', widget=widgets.RadioSelectHorizontal) c10 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='10. My heart goes out to people who are unhappy.', widget=widgets.RadioSelectHorizontal) c11 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='11. I try to avoid people who are experiencing a lot of pain.', widget=widgets.RadioSelectHorizontal) c12 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='12. I feel that suffering is just a part of the common human experience.', widget=widgets.RadioSelectHorizontal) c13 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='13. When people tell me about their problems, I try to keep a balanced perspective on the situation.', widget=widgets.RadioSelectHorizontal) c14 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='14. When others feel sadness, I try to comfort them.', widget=widgets.RadioSelectHorizontal) c15 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='15. I can’t really connect with other people when they’re suffering.', widget=widgets.RadioSelectHorizontal) c16 = models.StringField(choices=[['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5']], label='16. Despite my differences with others, I know that everyone feels pain just like me.', widget=widgets.RadioSelectHorizontal)