from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range, ) author = 'Your name here' doc = """ Your app description """ class Constants(BaseConstants): name_in_url = 'sharing_nanon_treatment' players_per_group = 2 num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): gender_p1 = models.StringField( label="Your gender:", choices=['Male','Female','Others'], widget=widgets.RadioSelect ) gender_p2 = models.StringField( label="Your gender:", choices=['Male', 'Female', 'Others'], widget=widgets.RadioSelect ) age_p1 = models.IntegerField(label="Your age:") age_p2 = models.IntegerField(label="Your age:") race_p1 = models.StringField( label="Your race:", choices=['White','Black','Hispanic','Asian','Others'], widget=widgets.RadioSelect ) race_p2 = models.StringField( label="Your race:", choices=['White', 'Black', 'Hispanic', 'Asian', 'Others'], widget=widgets.RadioSelect ) pid_p1 = models.StringField( label="Your party identity:", choices=['Republican','Democrat','Independent'], widget=widgets.RadioSelect ) pid_p2 = models.StringField( label="Your party identity:", choices=['Republican', 'Democrat', 'Independent'], widget=widgets.RadioSelect ) sent_news_p1 = models.StringField( label="Please choose a story to share with your partner that you think will convince them to vote for your side in the next election:", choices=[ ['1.JPMorgan estimates that the economic depression will continue in 2021 due to the great damage to local businesses caused by pandemic, even with positive vaccine developments.',1], ['2.Georgia Democratic Senate candidate Jon Ossoff got dirty money from Chinese communists, recently released by a Republican TV journalist.',2], ['3.State lawmakers from South Carolina co-signed a witness letter in support of President Trump’s claim of invalid ballots and cheating election.',3], ['4.Sen. Bernie Sanders calls for more financial aid from America’s richest, such as Musk and Bezos, as many Americans suffer severe financial setbacks due to the coronavirus pandemic.',4], ['5.A new round of coronavirus relief bill as economic incentive is passed by Capitol Hill.',5], ['6.Six Republican officials in Trump’s election campaign are facing corruption investigation, released by White House officials.',6] ], widget=widgets.RadioSelect ) sent_news_p2 = models.StringField( label="Please choose a story to share with your partner that you think will convince them to vote for your side in the next election:", choices=[ ['1.GOP poll watcher Gregory Stenstrom gave explosive testimony about election fraud in Deleware County, claiming legal election process was not followed with multiple witnesses.',1], ['2.Wall street stock market records relief of investors and predicts economic increase in the next presidency.',2], ['3.Top aide of President-elect, Antony Blinken, criticized for his early support for the Iraq War, reiterated the necessity of sending troops to the Mideast recently.',3], ['4.Recent investigation released Michigan GOP Rep. Norman Shinkle who would vote for election malfeasance earned bribery from Trump family business empire.',4], ['5.Nationwide unemployment benefit systems have approved more than $140 million for prisoners during the pandemic, including well-known murderers.',5], ['6.President-elect Biden’s team schedules detailed plan for rescuing local labor market in the first 100 days of presidency.',6] ], widget=widgets.RadioSelect ) sent_news_p1_r2 = models.StringField( label="Please choose a story to share with your partner that you think will convince them to vote for your side in the next election:", choices=[ ['1.The progressive left-wing representative Rashida Tlaib illegally used of congressional campaign money, says the investigation group from House Ethics Committee.',1], ['2.Boardgames are becoming the topping wish lists this holiday season and retailers are managing to keep it in stock.',2], ['3.Latest weekly total jobless benefit claims ticked sharply up another 10% more counts, amid the rise in coronavirus infections in past weeks.',3], ['4.Trump legal campaign scored a huge win in Nevada Court with solid evidence of shoddy and fraud ballots.',4], ['5.President-elect Biden along with Alejandro Mayorkas, the recent nominated secretary of DHS, are on the way of reversing most executive immigration actions issued by Trump administration.',5], ['6. Republican members in Michigan’s board of state canvassers claimed being bullied within GOP during Trump’s presidency.',6] ], widget=widgets.RadioSelect ) sent_news_p2_r2 = models.StringField( label="Please choose a story to share with your partner that you think will convince them to vote for your side in the next election:", choices=[ ['1.Recent statistics prove Republican mayors did better job than Democrats in improving homeless people’s condition.',1], ['2.More than $320 million of dark money boosted Biden’s triumph in 2020 election, a recent analysis shows.',2], ['3.Insiders said Trump supporters in Texas offices are responsible for fabricating evidence of invalid ballots and spread fraud information through KOLs on social media.',3], ['4.Pandemic quarantine policies maintain leading to more bankruptcies in main cities, including Muji and Friendly’s Restaurants.',4], ['5.Janet Yellen, next US Treasury secretary, earns broad praise from crossed paths for her capacity to rescue domestic economy in the post-Trump world.',5], ['6.The Dow Jones Industry Average bounces back since the transition started, a symbolically significant diversion that indicates investors’ confidence in Biden’s presidency.',6] ], widget=widgets.RadioSelect ) sent_news_p1_r3 = models.StringField( label="Please choose a story to share with your partner that you think will convince them to vote for your side in the next election:", choices=[ ['1.Donald Trump Jr and Ivanka Trump are caught guilty of washing money from tax write-offs on millions of dollars in consulting fees, released by two separate fraud investigations.',1], ['2.The Justice Department opened a probe into Wisconsin Democratic Sen. Tammy Baldwin for the possible insider trading of stocksales.',2], ['3.Americans are running down their stock of savings and the poverty level spike again after the government assistance programs expire.',3], ['4.Biden’s presidency is expected to continue Obamacare through reining in pharmaceutical costs and expanding health insurance coverage.',4], ['5.Coronavirus vaccines are likely to be provided to every resident (including ones at low risk) by the end of March, 2021.',5], ['6.Trump presidency undeniably made great achievement in recovering domestic energy industry and created thousands of job positions, said House Minority Whip Steve Scalise.',6] ], widget=widgets.RadioSelect ) sent_news_p2_r3 = models.StringField( label="Please choose a story to share with your partner that you think will convince them to vote for your side in the next election:", choices=[ ['1.The recent nominated secretary of DHS, Alejandro Mayorkas, was found by inspector general to be guilty of selling green cards to Chinese nationals on behalf of Democratic donors.',1], ['2.President Trump’s Operation Warp Speed succeeds in accelerating vaccines developments, credited by FT.',2], ['3.Biden has announced details of upcoming strategies in effective control of coronavirus cases and economic incentives.',3], ['4.Hollywood has resumed production in feature films, Netflix shows and network programs by figuring out safety protocols during the second wave.',4], ['5.Quarantine strategies will continue – the coming coronavirus vaccines do not promise complete effectiveness, and side-effects are tested.',5], ['6.Trump’s campaign groups are recently sued by their donors for empty promises and fraud investigations.',6] ], widget=widgets.RadioSelect ) sent_review_p1_r1 = models.IntegerField( label="How interesting do you think this thread is??" ) sent_review_p2_r1 = models.IntegerField( label="How interesting do you think this thread is?" ) sent_review_p1_r2 = models.IntegerField( label="How interesting do you think this thread is?" ) sent_review_p2_r2 = models.IntegerField( label="How interesting do you think this thread is?" ) sent_review_p1_r3 = models.IntegerField( label="How interesting do you think this thread is?" ) sent_review_p2_r3 = models.IntegerField( label="How interesting do you think this thread is?" ) pass class Player(BasePlayer): sent_review_after_1 = models.IntegerField( label="After reading the news threads shared by your partner, how likely do you agree he/she is a good partisan?", choices=[ [1, 'Strongly disagree'], [2, 'Disagree'], [3, 'Somewhat disagree'], [4, 'Neither disagree nor agree'], [5, 'Somewhat agree'], [6, 'Agree'], [7, 'Strongly agree'], ], widget=widgets.RadioSelect ) sent_review_after_2 = models.IntegerField( label="After reading the news threads shared by your partner, how do you think of Democrats?", choices=[ [1, 'Absolutely lower'], [2, 'Lower'], [3, 'Somewhat lower'], [4, 'Neither lower nor higher'], [5, 'Somewhat higher'], [6, 'Higher'], [7, 'Absolutely higher'], ], widget=widgets.RadioSelect ) sent_review_after_3 = models.IntegerField( label="After reading the news threads shared by your partner, how do you think of Republicans?", choices=[ [1, 'Absolutely lower'], [2, 'Lower'], [3, 'Somewhat lower'], [4, 'Neither lower nor higher'], [5, 'Somewhat higher'], [6, 'Higher'], [7, 'Absolutely higher'], ], widget=widgets.RadioSelect ) pass